Logo Search packages:      
Sourcecode: inkscape version File versions

cr-style.h File Reference


Detailed Description

The declaration of the CRStyle class.

Definition in file cr-style.h.

#include "cr-utils.h"
#include "cr-statement.h"
#include "cr-fonts.h"

Go to the source code of this file.

Classes

struct  _CRFontSizeVal
struct  _CRNumPropVal
struct  _CRRgbPropVal
struct  _CRStyle

Defines

#define BORDER_MEDIUM   4
#define BORDER_THICK   6
#define BORDER_THIN   2

Typedefs

typedef struct _CRFontSizeVal CRFontSizeVal
typedef struct _CRNumPropVal CRNumPropVal
typedef struct _CRRgbPropVal CRRgbPropVal
typedef typedefG_BEGIN_DECLS
struct _CRStyle 
CRStyle

Enumerations

enum  CRBorderStyle {
  BORDER_STYLE_NONE = 0, 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, BORDER_STYLE_INHERIT, BORDER_STYLE_NONE = 0,
  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, BORDER_STYLE_INHERIT
}
enum  CRBorderStyleProp {
  BORDER_STYLE_PROP_TOP = 0, BORDER_STYLE_PROP_RIGHT, BORDER_STYLE_PROP_BOTTOM, BORDER_STYLE_PROP_LEFT,
  NB_BORDER_STYLE_PROPS, BORDER_STYLE_PROP_TOP = 0, BORDER_STYLE_PROP_RIGHT, BORDER_STYLE_PROP_BOTTOM,
  BORDER_STYLE_PROP_LEFT, NB_BORDER_STYLE_PROPS
}
enum  CRBoxOffsetProp {
  BOX_OFFSET_PROP_TOP = 0, BOX_OFFSET_PROP_RIGHT, BOX_OFFSET_PROP_BOTTOM, BOX_OFFSET_PROP_LEFT,
  NB_BOX_OFFSET_PROPS, BOX_OFFSET_PROP_TOP = 0, BOX_OFFSET_PROP_RIGHT, BOX_OFFSET_PROP_BOTTOM,
  BOX_OFFSET_PROP_LEFT, NB_BOX_OFFSET_PROPS
}
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, 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  CRFloatType {
  FLOAT_NONE, FLOAT_LEFT, FLOAT_RIGHT, FLOAT_INHERIT,
  FLOAT_NONE, FLOAT_LEFT, FLOAT_RIGHT, FLOAT_INHERIT
}
enum  CRNumProp {
  NUM_PROP_TOP = 0, NUM_PROP_RIGHT, NUM_PROP_BOTTOM, NUM_PROP_LEFT,
  NUM_PROP_PADDING_TOP, NUM_PROP_PADDING_RIGHT, NUM_PROP_PADDING_BOTTOM, NUM_PROP_PADDING_LEFT,
  NUM_PROP_BORDER_TOP, NUM_PROP_BORDER_RIGHT, NUM_PROP_BORDER_BOTTOM, NUM_PROP_BORDER_LEFT,
  NUM_PROP_MARGIN_TOP, NUM_PROP_MARGIN_RIGHT, NUM_PROP_MARGIN_BOTTOM, NUM_PROP_MARGIN_LEFT,
  NUM_PROP_WIDTH, NB_NUM_PROPS, NUM_PROP_TOP = 0, NUM_PROP_RIGHT,
  NUM_PROP_BOTTOM, NUM_PROP_LEFT, NUM_PROP_PADDING_TOP, NUM_PROP_PADDING_RIGHT,
  NUM_PROP_PADDING_BOTTOM, NUM_PROP_PADDING_LEFT, NUM_PROP_BORDER_TOP, NUM_PROP_BORDER_RIGHT,
  NUM_PROP_BORDER_BOTTOM, NUM_PROP_BORDER_LEFT, NUM_PROP_MARGIN_TOP, NUM_PROP_MARGIN_RIGHT,
  NUM_PROP_MARGIN_BOTTOM, NUM_PROP_MARGIN_LEFT, NUM_PROP_WIDTH, NB_NUM_PROPS
}
enum  CRPositionType {
  POSITION_STATIC, POSITION_RELATIVE, POSITION_ABSOLUTE, POSITION_FIXED,
  POSITION_INHERIT, POSITION_STATIC, POSITION_RELATIVE, POSITION_ABSOLUTE,
  POSITION_FIXED, POSITION_INHERIT
}
enum  CRRgbProp {
  RGB_PROP_BORDER_TOP_COLOR = 0, RGB_PROP_BORDER_RIGHT_COLOR, RGB_PROP_BORDER_BOTTOM_COLOR, RGB_PROP_BORDER_LEFT_COLOR,
  RGB_PROP_COLOR, RGB_PROP_BACKGROUND_COLOR, NB_RGB_PROPS, RGB_PROP_BORDER_TOP_COLOR = 0,
  RGB_PROP_BORDER_RIGHT_COLOR, RGB_PROP_BORDER_BOTTOM_COLOR, RGB_PROP_BORDER_LEFT_COLOR, RGB_PROP_COLOR,
  RGB_PROP_BACKGROUND_COLOR, NB_RGB_PROPS
}
enum  CRWhiteSpaceType {
  WHITE_SPACE_NORMAL, WHITE_SPACE_PRE, WHITE_SPACE_NOWRAP, WHITE_SPACE_INHERIT,
  WHITE_SPACE_NORMAL, WHITE_SPACE_PRE, WHITE_SPACE_NOWRAP, WHITE_SPACE_INHERIT
}

Functions

enum CRStatus cr_style_border_style_to_string (enum CRBorderStyle a_prop, GString *a_str, guint a_nb_indent)
enum CRStatus cr_style_copy (CRStyle *a_dest, CRStyle *a_src)
void cr_style_destroy (CRStyle *a_this)
enum CRStatus cr_style_display_type_to_string (enum CRDisplayType a_code, GString *a_str, guint a_nb_indent)
CRStyle * cr_style_dup (CRStyle *a_this)
enum CRStatus cr_style_float_type_to_string (enum CRFloatType a_code, GString *a_str, guint a_nb_indent)
CRStyle * cr_style_new (gboolean a_set_props_to_initial_values)
enum CRStatus cr_style_num_prop_val_to_string (CRNumPropVal *a_prop_val, GString *a_str, guint a_nb_indent)
enum CRStatus cr_style_position_type_to_string (enum CRPositionType a_code, GString *a_str, guint a_nb_indent)
enum CRStatus cr_style_propagate_from_parent (CRStyle *a_this)
enum CRStatus cr_style_ref (CRStyle *a_this)
enum CRStatus cr_style_resolve_inherited_properties (CRStyle *a_this)
enum CRStatus cr_style_rgb_prop_val_to_string (CRRgbPropVal *a_prop_val, GString *a_str, guint a_nb_indent)
enum CRStatus cr_style_set_props_to_default_values (CRStyle *a_this)
enum CRStatus cr_style_set_props_to_initial_values (CRStyle *a_this)
enum CRStatus cr_style_set_style_from_decl (CRStyle *a_this, CRDeclaration *a_decl)
enum CRStatus cr_style_to_string (CRStyle *a_this, GString **a_str, guint a_nb_indent)
gboolean cr_style_unref (CRStyle *a_this)
enum CRStatus cr_style_white_space_type_to_string (enum CRWhiteSpaceType a_code, GString *a_str, guint a_nb_indent)


Generated by  Doxygen 1.6.0   Back to index