ccss_style_t

ccss_style_t

Synopsis

                    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);

Description

Details

ccss_style_t

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.


ccss_style_init ()

void                ccss_style_init                     (ccss_style_t *self);

Reset the object's internal state.

self :

a ccss_style_t.

ccss_style_draw_line ()

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);

self :

cr :

x1 :

x2 :

y1 :

y2 :


ccss_style_draw_outline ()

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.

self :

a ccss_style_t.

cr :

the target to draw onto.

x :

the starting x coordinate.

y :

the starting y coordinate.

width :

width of the outline to draw.

height :

height of the outline to draw.

ccss_style_draw_rectangle ()

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.

self :

a ccss_style_t.

cr :

the target to draw onto.

x :

the starting x coordinate.

y :

the starting y coordinate.

width :

width of the outline to draw.

height :

height of the outline to draw.

ccss_style_dump ()

void                ccss_style_dump                     (ccss_style_t const *self);

Print informations about the internal state of this object.

self :

a ccss_style_t.