ccd_style_t

ccd_style_t

Synopsis

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

Description

Details

ccd_style_t

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.


ccd_style_init ()

void                ccd_style_init                      (ccd_style_t *self);

Reset the object's internal state.

self :

a ccd_style_t.

ccd_style_draw_line ()

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

self :

cr :

x1 :

x2 :

y1 :

y2 :


ccd_style_draw_outline ()

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.

self :

a ccd_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.

ccd_style_draw_rectangle ()

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.

self :

a ccd_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.

ccd_style_dump ()

void                ccd_style_dump                      (ccd_style_t const *self);

Print informations about the internal state of this object.

self :

a ccd_style_t.