ccd_style_t Gtk+ Support

ccd_style_t Gtk+ Support

Synopsis

void                ccd_style_draw_gap                  (ccd_style_t const *self,
                                                         cairo_t *cr,
                                                         int32_t x,
                                                         int32_t y,
                                                         int32_t width,
                                                         int32_t height,
                                                         GtkPositionType gap_side,
                                                         int32_t gap_x,
                                                         int32_t gap_width);
void                ccd_style_draw_polygon              (ccd_style_t const *self,
                                                         cairo_t *cr,
                                                         GdkPoint *points,
                                                         int32_t n_points,
                                                         bool fill);

Description

Details

ccd_style_draw_gap ()

void                ccd_style_draw_gap                  (ccd_style_t const *self,
                                                         cairo_t *cr,
                                                         int32_t x,
                                                         int32_t y,
                                                         int32_t width,
                                                         int32_t height,
                                                         GtkPositionType gap_side,
                                                         int32_t gap_x,
                                                         int32_t gap_width);

Draw a rectangle with gap 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.

gap_side :

side in which to leave the gap.

gap_x :

gap_width :

width of the gap.

ccd_style_draw_polygon ()

void                ccd_style_draw_polygon              (ccd_style_t const *self,
                                                         cairo_t *cr,
                                                         GdkPoint *points,
                                                         int32_t n_points,
                                                         bool fill);

Draw a rectangle with gap using this style instance.

self :

a ccd_style_t.

cr :

the target to draw onto.

points :

an array of GdkPoints.

n_points :

length of points.

fill :

true if the polygon should be filled.