![]() |
![]() |
![]() |
LibRepTool Reference Manual | ![]() |
---|---|---|---|---|
RptColor; RptPoint; RptSize; RptRotation; RptFont; RptBorder; enum eRptHAlign; enum eRptVAlign; RptAlign; RptStroke; RptPoint* rpt_common_get_position (xmlNode *xnode); void rpt_common_set_position (xmlNode *xnode, const RptPoint *position); RptSize* rpt_common_get_size (xmlNode *xnode); void rpt_common_set_size (xmlNode *xnode, const RptSize *size); RptRotation* rpt_common_get_rotation (xmlNode *xnode); void rpt_common_set_rotation (xmlNode *xnode, const RptRotation *rotation); RptFont* rpt_common_get_font (xmlNode *xnode); void rpt_common_set_font (xmlNode *xnode, const RptFont *font); RptBorder* rpt_common_get_border (xmlNode *xnode); void rpt_common_set_border (xmlNode *xnode, const RptBorder *border); RptAlign* rpt_common_get_align (xmlNode *xnode); void rpt_common_set_align (xmlNode *xnode, const RptAlign *align); RptStroke* rpt_common_get_stroke (xmlNode *xnode); void rpt_common_set_stroke (xmlNode *xnode, const RptStroke *stroke); RptColor* rpt_common_parse_color (const gchar *str_color); gchar* rpt_common_rptcolor_to_string (const RptColor *color); gdouble* rpt_common_style_to_array (const GArray *style);
typedef struct { gdouble r; gdouble g; gdouble b; gdouble a; } RptColor;
gdouble r ; |
the red channel. |
gdouble g ; |
the green channel. |
gdouble b ; |
the blue channel. |
gdouble a ; |
the alpha channel. |
typedef struct { gchar *name; gdouble size; gboolean bold; gboolean italic; PangoUnderline underline; gboolean strike; RptColor *color; } RptFont;
typedef struct { gdouble top_width; gdouble right_width; gdouble bottom_width; gdouble left_width; RptColor *top_color; RptColor *right_color; RptColor *bottom_color; RptColor *left_color; GArray *top_style; GArray *right_style; GArray *bottom_style; GArray *left_style; } RptBorder;
gdouble top_width ; |
|
gdouble right_width ; |
|
gdouble bottom_width ; |
|
gdouble left_width ; |
|
RptColor *top_color ; |
an RptColor |
RptColor *right_color ; |
an RptColor |
RptColor *bottom_color ; |
an RptColor |
RptColor *left_color ; |
an RptColor |
GArray *top_style ; |
a GArray of gdouble values representing dashes sequence |
GArray *right_style ; |
a GArray of gdouble values representing dashes sequence |
GArray *bottom_style ; |
a GArray of gdouble values representing dashes sequence |
GArray *left_style ; |
a GArray of gdouble values representing dashes sequence |
typedef enum { RPT_HALIGN_LEFT, RPT_HALIGN_CENTER, RPT_HALIGN_RIGHT, RPT_HALIGN_JUSTIFIED } eRptHAlign;
RptPoint* rpt_common_get_position (xmlNode *xnode);
xnode : |
an xmlNode. |
Returns : | an RptPoint struct that represent the object's position specified
on xnode .
|
void rpt_common_set_position (xmlNode *xnode, const RptPoint *position);
xnode : |
an xmlNode. |
position : |
RptSize* rpt_common_get_size (xmlNode *xnode);
xnode : |
an xmlNode. |
Returns : | an RptSize struct that represent the object's size specified
on xnode .
|
void rpt_common_set_size (xmlNode *xnode, const RptSize *size);
xnode : |
an xmlNode. |
size : |
RptRotation* rpt_common_get_rotation (xmlNode *xnode);
xnode : |
an xmlNode. |
Returns : | an RptRotation struct that represent the object's rotation
specified on xnode .
|
void rpt_common_set_rotation (xmlNode *xnode, const RptRotation *rotation);
xnode : |
an xmlNode. |
rotation : |
RptFont* rpt_common_get_font (xmlNode *xnode);
xnode : |
an xmlNode. |
Returns : | an RptFont struct that represent the object's font
specified on xnode .
|
void rpt_common_set_font (xmlNode *xnode, const RptFont *font);
xnode : |
an xmlNode. |
font : |
RptBorder* rpt_common_get_border (xmlNode *xnode);
xnode : |
an xmlNode. |
Returns : | an RptBorder struct that represent the object's border
specified on xnode .
|
void rpt_common_set_border (xmlNode *xnode, const RptBorder *border);
xnode : |
an xmlNode. |
border : |
RptAlign* rpt_common_get_align (xmlNode *xnode);
xnode : |
an xmlNode. |
Returns : | an RptAlign struct that represent the object's alignment
specified on xnode .
|
void rpt_common_set_align (xmlNode *xnode, const RptAlign *align);
xnode : |
an xmlNode. |
align : |
RptStroke* rpt_common_get_stroke (xmlNode *xnode);
xnode : |
an xmlNode. |
Returns : | an RptStroke struct that represent the object's stroke
specified on xnode .
|
void rpt_common_set_stroke (xmlNode *xnode, const RptStroke *stroke);
xnode : |
an xmlNode. |
stroke : |
RptColor* rpt_common_parse_color (const gchar *str_color);
str_color : |
a color string. |
Returns : | an RptColor. |
gchar* rpt_common_rptcolor_to_string (const RptColor *color);
Converts an RptColor value to a string.
color : |
an RptColor value. |
Returns : | the color string correspondent to color .
|