![]() |
![]() |
![]() |
CCSS Reference Manual | ![]() |
---|---|---|---|---|
ccss_style_t; void ccss_style_init (ccss_style_t *self); void ccss_style_draw_line (ccss_style_t const *self, cairo_t *cr, int32_t x1, int32_t x2, int32_t y1, int32_t y2); void ccss_style_draw_outline (ccss_style_t const *self, cairo_t *cr, int32_t x, int32_t y, int32_t width, int32_t height); void ccss_style_draw_rectangle (ccss_style_t const *self, cairo_t *cr, int32_t x, int32_t y, int32_t width, int32_t height); void ccss_style_dump (ccss_style_t const *self);
typedef struct { } ccss_style_t;
Representation of a block of CSS statements.
Memory management: Style objects are owned by the stylesheet, and therefore not created or modified by the CCSS consumer.
void ccss_style_init (ccss_style_t *self);
Reset the object's internal state.
|
a ccss_style_t. |
void ccss_style_draw_line (ccss_style_t const *self, cairo_t *cr, int32_t x1, int32_t x2, int32_t y1, int32_t y2);
|
|
|
|
|
|
|
|
|
|
|
void ccss_style_draw_outline (ccss_style_t const *self, cairo_t *cr, int32_t x, int32_t y, int32_t width, int32_t height);
Draw an outline using this style instance. Information about how to draw this style's background is diregarded.
|
a ccss_style_t. |
|
the target to draw onto. |
|
the starting x coordinate. |
|
the starting y coordinate. |
|
width of the outline to draw. |
|
height of the outline to draw. |
void ccss_style_draw_rectangle (ccss_style_t const *self, cairo_t *cr, int32_t x, int32_t y, int32_t width, int32_t height);
Draw a rectangle using this style instance.
|
a ccss_style_t. |
|
the target to draw onto. |
|
the starting x coordinate. |
|
the starting y coordinate. |
|
width of the outline to draw. |
|
height of the outline to draw. |
void ccss_style_dump (ccss_style_t const *self);
Print informations about the internal state of this object.
|
a ccss_style_t. |