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) ;
enum CRFloatType float_type
the float 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.
enum CRStatus cr_style_border_style_to_string(enum CRBorderStyle a_prop, GString *a_str, guint a_nb_indent)
CRFontSizeAdjust * font_size_adjust
typedefG_BEGIN_DECLS struct _CRRgb CRRgb
Declaration of the CRStatement class.
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...
gboolean cr_style_unref(CRStyle *a_this)
Decreases the reference count of the current instance of CRStyle.
The Croco library basic types definitions And global definitions.
enum CRStatus cr_style_white_space_type_to_string(enum CRWhiteSpaceType a_code, GString *a_str, guint a_nb_indent)
Various type declarations about font selection related properties.
CRStyle * cr_style_dup(CRStyle *a_this)
Duplicates the current instance of CRStyle .
enum CRPositionType position
the positioning scheme
enum CRStatus cr_style_display_type_to_string(enum CRDisplayType a_code, GString *a_str, guint a_nb_indent)
CRStatus
The status type returned by the methods of the croco library.
enum CRStatus cr_style_rgb_prop_val_to_string(CRRgbPropVal *a_prop_val, GString *a_str, guint a_nb_indent)
CRFontSizeVal font_size
the 'font-size' property.
enum CRFontWeight font_weight
enum CRStatus cr_style_resolve_inherited_properties(CRStyle *a_this)
Resolves the inherited properties.
gboolean inherited_props_resolved
CRRgbPropVal rgb_props[NB_RGB_PROPS]
color properties.
enum CRStatus cr_style_propagate_from_parent(CRStyle *a_this)
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.
enum CRStatus cr_style_position_type_to_string(enum CRPositionType a_code, GString *a_str, guint a_nb_indent)
enum CRFontStretch font_stretch
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...
CRStyle * cr_style_new(gboolean a_set_props_to_initial_values)
Default constructor of CRStyle.
void cr_style_destroy(CRStyle *a_this)
Destructor of the CRStyle class.
CRFontFamily * font_family
enum CRWhiteSpaceType white_space
the 'tex' properties
enum CRDisplayType display
box display type
enum CRFontVariant font_variant
enum CRStatus cr_style_to_string(CRStyle *a_this, GString **a_str, guint a_nb_indent)
Serializes in instance of CRStyle into a string.
An abstraction of a number (num) as defined in the css2 spec.
enum CRStatus cr_style_ref(CRStyle *a_this)
Increases the reference count of the current instance of CRStyle.
CRNumPropVal num_props[NB_NUM_PROPS]
numerical properties.
enum CRBorderStyle border_style_props[NB_BORDER_STYLE_PROPS]
border style properties.
enum CRStatus cr_style_float_type_to_string(enum CRFloatType a_code, GString *a_str, guint a_nb_indent)
enum CRStatus cr_style_copy(CRStyle *a_dest, CRStyle *a_src)
Copies a style data structure into another.
enum CRFontStyle font_style
typedefG_BEGIN_DECLS struct _CRStyle CRStyle