summaryrefslogtreecommitdiff
path: root/src/cr-style.h
diff options
context:
space:
mode:
authorDodji Seketeli <dodji@src.gnome.org>2003-04-12 16:50:32 +0000
committerDodji Seketeli <dodji@src.gnome.org>2003-04-12 16:50:32 +0000
commit17114030e0e37f93682c903dd818da1f0e2e6f6b (patch)
treef52286082af39c649dfbc86015ab080ac2a55abd /src/cr-style.h
parent4f5560ef67d35121d1087aee9b5e34dece012d8a (diff)
downloadlibcroco-17114030e0e37f93682c903dd818da1f0e2e6f6b.tar.gz
big tree layout cleanup.
Dodji.
Diffstat (limited to 'src/cr-style.h')
-rw-r--r--src/cr-style.h212
1 files changed, 0 insertions, 212 deletions
diff --git a/src/cr-style.h b/src/cr-style.h
deleted file mode 100644
index 004a232..0000000
--- a/src/cr-style.h
+++ /dev/null
@@ -1,212 +0,0 @@
-/* -*- Mode: C; indent-tabs-mode:nil; c-basic-offset: 8-*- */
-
-/*
- * This file is part of The Croco Library
- *
- * Copyright (C) 2002-2003 Dodji Seketeli <dodji@seketeli.org>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 2.1 of the GNU Lesser General Public
- * License as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- */
-
-#ifndef __CR_STYLE_H__
-#define __CR_STYLE_H__
-
-#include "cr-utils.h"
-#include "cr-statement.h"
-
-/**
- *@file
- *The declaration of the #CRStyle class.
- */
-G_BEGIN_DECLS
-
-typedef struct _CRStyle CRStyle ;
-
-enum CRBorderStyle
-{
- BORDER_STYLE_NONE,
- BORDER_STYLE_HIDDEN,
- BORDER_STYLE_DOTTED,
- BORDER_STYLE_DASHED,
- BORDER_STYLE_SOLID,
- BORDER_STYLE_DOUBLE,
- BORDER_STYLE_GROOVE,
- BORDER_STYLE_RIDGE,
- BORDER_STYLE_INSET,
- BORDER_STYLE_OUTSET
-} ;
-
-enum CRDisplayType
-{
- DISPLAY_NONE,
- DISPLAY_INLINE,
- DISPLAY_BLOCK,
- DISPLAY_LIST_ITEM,
- DISPLAY_RUN_IN,
- DISPLAY_COMPACT,
- DISPLAY_MARKER,
- DISPLAY_TABLE,
- DISPLAY_INLINE_TABLE,
- DISPLAY_TABLE_ROW_GROUP,
- DISPLAY_TABLE_HEADER_GROUP,
- DISPLAY_TABLE_FOOTER_GROUP,
- DISPLAY_TABLE_ROW,
- DISPLAY_TABLE_COLUMN_GROUP,
- DISPLAY_TABLE_COLUMN,
- DISPLAY_TABLE_CELL,
- DISPLAY_TABLE_CAPTION,
- DISPLAY_INHERIT
-} ;
-
-enum CRPositionType
-{
- POSITION_STATIC,
- POSITION_RELATIVE,
- POSITION_ABSOLUTE,
- POSITION_FIXED,
- POSITION_INHERIT,
-} ;
-
-enum CRFloatType
-{
- FLOAT_NONE,
- FLOAT_LEFT,
- FLOAT_RIGHT,
- FLOAT_INHERIT
-} ;
-
-
-enum CRBoxOffsetType
-{
- OFFSET_DEFINED,
- OFFSET_AUTO
-} ;
-
-typedef struct _CRBoxOffset CRBoxOffset ;
-struct _CRBoxOffset
-{
- enum CRBoxOffsetType type ;
- CRNum num ;
-} ;
-
-enum CRWidthType
-{
- WIDTH_DEFINED,
- WIDTH_AUTO
-} ;
-
-typedef struct _CRWidth CRWidth ;
-struct _CRWidth
-{
- enum CRWidthType type ;
- CRNum num ;
-} ;
-
-
-#define BORDER_THIN 2
-#define BORDER_MEDIUM 4
-#define BORDER_THICK 6
-
-/**
- *The css2 style class.
- *Contains computed and actual values
- *of inferred from the declarations found
- *in the stylesheets.
- *See css2 spec chapter 6.
- */
-struct _CRStyle
-{
-
- /**padding properties, in pixel*/
- CRNum padding_top ;
- CRNum padding_right ;
- CRNum padding_bottom ;
- CRNum padding_left ;
-
- /**border properties*/
- CRNum border_top_width ;
- CRNum border_right_width ;
- CRNum border_bottom_width ;
- CRNum border_left_width ;
-
- CRRgb color ;
- CRRgb border_top_color ;
- CRRgb border_right_color ;
- CRRgb border_bottom_color ;
- CRRgb border_left_color ;
-
- enum CRBorderStyle border_top_style ;
- enum CRBorderStyle border_right_style ;
- enum CRBorderStyle border_bottom_style ;
- enum CRBorderStyle border_left_style ;
-
- /**margin properties, in pixel*/
- CRNum margin_top ;
- CRNum margin_right ;
- CRNum margin_bottom;
- CRNum margin_left ;
-
- /**box display type*/
- enum CRDisplayType display ;
-
- /**the positioning scheme*/
- enum CRPositionType position ;
-
- /**box offset*/
- CRBoxOffset top ;
- CRBoxOffset right ;
- CRBoxOffset bottom ;
- CRBoxOffset left ;
-
- /**the float property*/
- enum CRFloatType float_type ;
-
- CRWidth width ;
- CRStyle *parent_style ;
- gulong ref_count ;
-} ;
-
-
-CRStyle *
-cr_style_new (void) ;
-
-
-enum CRStatus
-cr_style_new_from_ruleset (CRStatement *a_stmt,
- CRStyle *a_parent_style,
- CRStyle **a_style) ;
-enum CRStatus
-cr_style_set_style_from_decl (CRStyle *a_this, CRDeclaration *a_decl,
- CRStyle *a_parent_style) ;
-
-enum CRStatus
-cr_style_set_style_from_ruleset (CRStyle *a_this, CRStatement *a_stmt,
- CRStyle *a_parent_style) ;
-
-enum CRStatus
-cr_style_ref (CRStyle *a_this) ;
-
-gboolean
-cr_style_unref (CRStyle *a_this) ;
-
-void
-cr_style_destroy (CRStyle *a_this) ;
-
-CRStyle *
-cr_style_dup (CRStyle *a_this) ;
-
-G_END_DECLS
-
-#endif /*__CR_STYLE_H__*/