Go to the documentation of this file.
25 #ifndef __CR_STYLE_H__
26 #define __CR_STYLE_H__
103 #define BORDER_THIN 2
104 #define BORDER_MEDIUM 4
105 #define BORDER_THICK 6
286 GString * a_str, guint a_nb_indent) ;
CRNumPropVal num_props[NB_NUM_PROPS]
numerical properties.
enum CRStatus cr_style_float_type_to_string(enum CRFloatType a_code, GString *a_str, guint a_nb_indent)
@ DISPLAY_TABLE_FOOTER_GROUP
enum CRStatus cr_style_propagate_from_parent(CRStyle *a_this)
void cr_style_destroy(CRStyle *a_this)
Destructor of the CRStyle class.
@ NUM_PROP_PADDING_BOTTOM
CRStyle * cr_style_new(gboolean a_set_props_to_initial_values)
Default constructor of CRStyle.
enum CRFloatType float_type
the float property
enum CRPositionType position
the positioning scheme
enum CRStatus cr_style_ref(CRStyle *a_this)
Increases the reference count of the current instance of CRStyle.
@ RGB_PROP_BORDER_TOP_COLOR
enum CRStatus cr_style_copy(CRStyle *a_dest, CRStyle *a_src)
Copies a style data structure into another.
enum CRStatus cr_style_to_string(CRStyle *a_this, GString **a_str, guint a_nb_indent)
Serializes in instance of CRStyle into a string.
@ BORDER_STYLE_PROP_RIGHT
enum CRFontWeight font_weight
@ RGB_PROP_BORDER_LEFT_COLOR
enum CRFontStretch font_stretch
An abstraction of a number (num) as defined in the css2 spec.
@ DISPLAY_TABLE_COLUMN_GROUP
CRFontSizeVal font_size
the 'font-size' property.
enum CRStatus cr_style_set_props_to_initial_values(CRStyle *a_this)
Sets the style properties to their initial value according to the css2 spec.
@ RGB_PROP_BORDER_BOTTOM_COLOR
enum CRStatus cr_style_position_type_to_string(enum CRPositionType a_code, GString *a_str, guint a_nb_indent)
@ RGB_PROP_BORDER_RIGHT_COLOR
gboolean inherited_props_resolved
CRStyle * cr_style_dup(CRStyle *a_this)
Duplicates the current instance of CRStyle .
CRFontFamily * font_family
enum CRFontStyle font_style
enum CRStatus cr_style_white_space_type_to_string(enum CRWhiteSpaceType a_code, GString *a_str, guint a_nb_indent)
@ DISPLAY_TABLE_HEADER_GROUP
enum CRWhiteSpaceType white_space
the 'tex' properties
enum CRBorderStyle border_style_props[NB_BORDER_STYLE_PROPS]
border style properties.
CRRgbPropVal rgb_props[NB_RGB_PROPS]
color properties.
enum CRStatus cr_style_resolve_inherited_properties(CRStyle *a_this)
Resolves the inherited properties.
gboolean cr_style_unref(CRStyle *a_this)
Decreases the reference count of the current instance of CRStyle.
enum CRStatus cr_style_border_style_to_string(enum CRBorderStyle a_prop, GString *a_str, guint a_nb_indent)
enum CRStatus cr_style_set_props_to_default_values(CRStyle *a_this)
Sets the style properties to their default values according to the css2 spec i.e inherit if the prope...
enum CRStatus cr_style_rgb_prop_val_to_string(CRRgbPropVal *a_prop_val, GString *a_str, guint a_nb_indent)
typedefG_BEGIN_DECLS struct _CRRgb CRRgb
@ DISPLAY_TABLE_ROW_GROUP
typedefG_BEGIN_DECLS struct _CRStyle CRStyle
CRStatus
The status type returned by the methods of the croco library.
@ RGB_PROP_BACKGROUND_COLOR
enum CRStatus cr_style_display_type_to_string(enum CRDisplayType a_code, GString *a_str, guint a_nb_indent)
enum CRFontVariant font_variant
enum CRStatus cr_style_set_style_from_decl(CRStyle *a_this, CRDeclaration *a_decl)
Walks through a css2 property declaration, and populated the according field(s) in the CRStyle struct...
enum CRDisplayType display
box display type
CRFontSizeAdjust * font_size_adjust
@ BORDER_STYLE_PROP_BOTTOM
enum CRStatus cr_style_num_prop_val_to_string(CRNumPropVal *a_prop_val, GString *a_str, guint a_nb_indent)
dump a CRNumpPropVal in a string.