Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

Classes | Typedefs | Enumerations | Functions | Variables

cr-style.c File Reference

#include <string.h>
#include "cr-style.h"
Include dependency graph for cr-style.c:

Go to the source code of this file.

Classes

struct  _CRPropertyDesc
struct  CRBorderStylePropEnumDumpInfo
struct  CRNumPropEnumDumpInfo
struct  CRPropDisplayValPair
struct  CRPropPositionValPair
struct  CRRgbPropEnumDumpInfo

Typedefs

typedef struct _CRPropertyDesc CRPropertyDesc

Enumerations

enum  CRDirection {
  DIR_TOP = 0, DIR_RIGHT, DIR_BOTTOM, DIR_LEFT,
  NB_DIRS
}
enum  CRPropertyID {
  PROP_ID_NOT_KNOWN = 0, PROP_ID_PADDING_TOP, PROP_ID_PADDING_RIGHT, PROP_ID_PADDING_BOTTOM,
  PROP_ID_PADDING_LEFT, PROP_ID_PADDING, PROP_ID_BORDER_TOP_WIDTH, PROP_ID_BORDER_RIGHT_WIDTH,
  PROP_ID_BORDER_BOTTOM_WIDTH, PROP_ID_BORDER_LEFT_WIDTH, PROP_ID_BORDER_WIDTH, PROP_ID_BORDER_TOP_STYLE,
  PROP_ID_BORDER_RIGHT_STYLE, PROP_ID_BORDER_BOTTOM_STYLE, PROP_ID_BORDER_LEFT_STYLE, PROP_ID_BORDER_STYLE,
  PROP_ID_BORDER_TOP_COLOR, PROP_ID_BORDER_RIGHT_COLOR, PROP_ID_BORDER_BOTTOM_COLOR, PROP_ID_BORDER_LEFT_COLOR,
  PROP_ID_BORDER_TOP, PROP_ID_BORDER_RIGHT, PROP_ID_BORDER_BOTTOM, PROP_ID_BORDER_LEFT,
  PROP_ID_BORDER, PROP_ID_MARGIN_TOP, PROP_ID_MARGIN_RIGHT, PROP_ID_MARGIN_BOTTOM,
  PROP_ID_MARGIN_LEFT, PROP_ID_MARGIN, PROP_ID_DISPLAY, PROP_ID_POSITION,
  PROP_ID_TOP, PROP_ID_RIGHT, PROP_ID_BOTTOM, PROP_ID_LEFT,
  PROP_ID_FLOAT, PROP_ID_WIDTH, PROP_ID_COLOR, PROP_ID_BACKGROUND_COLOR,
  PROP_ID_FONT_FAMILY, PROP_ID_FONT_SIZE, PROP_ID_FONT_STYLE, PROP_ID_FONT_WEIGHT,
  PROP_ID_WHITE_SPACE, NB_PROP_IDS
}

Functions

static const gchar * border_style_prop_code_to_string (enum CRBorderStyleProp a_code)
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)
static enum CRPropertyID cr_style_get_prop_id (const guchar *a_prop)
static enum CRStatus cr_style_init_properties (void)
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_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)
static enum CRStatus init_style_font_size_field (CRStyle *a_style)
static const gchar * num_prop_code_to_string (enum CRNumProp a_code)
static const gchar * rgb_prop_code_to_string (enum CRRgbProp a_code)
static enum CRStatus set_prop_background_color (CRStyle *a_style, CRTerm *a_value)
static enum CRStatus set_prop_border_from_value (CRStyle *a_style, CRTerm *a_value)
static enum CRStatus set_prop_border_style_from_value (CRStyle *a_style, CRTerm *a_value)
static enum CRStatus set_prop_border_width_from_value (CRStyle *a_style, CRTerm *a_value)
static enum CRStatus set_prop_border_x_color_from_value (CRStyle *a_style, CRTerm *a_value, enum CRDirection a_dir)
static enum CRStatus set_prop_border_x_from_value (CRStyle *a_style, CRTerm *a_value, enum CRDirection a_dir)
static enum CRStatus set_prop_border_x_style_from_value (CRStyle *a_style, CRTerm *a_value, enum CRDirection a_dir)
static enum CRStatus set_prop_border_x_width_from_value (CRStyle *a_style, CRTerm *a_value, enum CRDirection a_dir)
static enum CRStatus set_prop_color (CRStyle *a_style, CRTerm *a_value)
static enum CRStatus set_prop_display_from_value (CRStyle *a_style, CRTerm *a_value)
static enum CRStatus set_prop_float (CRStyle *a_style, CRTerm *a_value)
static enum CRStatus set_prop_font_family_from_value (CRStyle *a_style, CRTerm *a_value)
static enum CRStatus set_prop_font_size_from_value (CRStyle *a_style, CRTerm *a_value)
static enum CRStatus set_prop_font_style_from_value (CRStyle *a_style, CRTerm *a_value)
static enum CRStatus set_prop_font_weight_from_value (CRStyle *a_style, CRTerm *a_value)
static enum CRStatus set_prop_margin_from_value (CRStyle *a_style, CRTerm *a_value)
static enum CRStatus set_prop_margin_x_from_value (CRStyle *a_style, CRTerm *a_value, enum CRDirection a_dir)
static enum CRStatus set_prop_padding_from_value (CRStyle *a_style, CRTerm *a_value)
static enum CRStatus set_prop_padding_x_from_value (CRStyle *a_style, CRTerm *a_value, enum CRDirection a_dir)
static enum CRStatus set_prop_position_from_value (CRStyle *a_style, CRTerm *a_value)
static enum CRStatus set_prop_white_space_from_value (CRStyle *a_style, CRTerm *a_value)
static enum CRStatus set_prop_width (CRStyle *a_style, CRTerm *a_value)
static enum CRStatus set_prop_x_from_value (CRStyle *a_style, CRTerm *a_value, enum CRDirection a_dir)

Variables

static struct
CRBorderStylePropEnumDumpInfo 
gv_border_style_props_dump_infos []
static struct CRNumPropEnumDumpInfo gv_num_props_dump_infos []
static GHashTable * gv_prop_hash = NULL
static gulong gv_prop_hash_ref_count = 0
static CRPropertyDesc gv_prop_table []
static struct CRRgbPropEnumDumpInfo gv_rgb_props_dump_infos []

Detailed Description

The definition of the CRStyle class.

Definition in file cr-style.c.


Generated by  Doxygen 1.6.0   Back to index