![]() |
![]() |
![]() |
CCD Reference Manual | ![]() |
---|---|---|---|---|
ccd_style_t; void ccd_style_init (ccd_style_t *self); void ccd_style_draw_line (ccd_style_t const *self, cairo_t *cr, int32_t x1, int32_t x2, int32_t y1, int32_t y2); void ccd_style_draw_outline (ccd_style_t const *self, cairo_t *cr, int32_t x, int32_t y, int32_t width, int32_t height); void ccd_style_draw_rectangle (ccd_style_t const *self, cairo_t *cr, int32_t x, int32_t y, int32_t width, int32_t height); void ccd_style_dump (ccd_style_t const *self);
typedef struct { } ccd_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 CCD consumer.
void ccd_style_init (ccd_style_t *self);
Reset the object's internal state.
|
a ccd_style_t. |
void ccd_style_draw_line (ccd_style_t const *self, cairo_t *cr, int32_t x1, int32_t x2, int32_t y1, int32_t y2);
|
|
|
|
|
|
|
|
|
|
|
void ccd_style_draw_outline (ccd_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 ccd_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 ccd_style_draw_rectangle (ccd_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 ccd_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 ccd_style_dump (ccd_style_t const *self);
Print informations about the internal state of this object.
|
a ccd_style_t. |