ccss_style_t

ccss_style_t

Synopsis

enum                ccss_cairo_gap_side_t;
void                ccss_cairo_style_draw_line          (ccss_style_t const *self,
                                                         cairo_t *cr,
                                                         int x1,
                                                         int x2,
                                                         int y1,
                                                         int y2);
void                ccss_cairo_style_draw_outline       (ccss_style_t const *self,
                                                         cairo_t *cr,
                                                         int x,
                                                         int y,
                                                         int width,
                                                         int height);
void                ccss_cairo_style_draw_rectangle     (ccss_style_t const *self,
                                                         cairo_t *cr,
                                                         int x,
                                                         int y,
                                                         int width,
                                                         int height);
void                ccss_cairo_style_draw_rectangle_with_gap
                                                        (ccss_style_t const *self,
                                                         cairo_t *cr,
                                                         int x,
                                                         int y,
                                                         int width,
                                                         int height,
                                                         ccss_cairo_gap_side_t gap_side,
                                                         int gap_start,
                                                         int gap_width);

Description

Details

enum ccss_cairo_gap_side_t

typedef enum {
	CCSS_CAIRO_GAP_SIDE_LEFT,
	CCSS_CAIRO_GAP_SIDE_RIGHT,
	CCSS_CAIRO_GAP_SIDE_TOP,
	CCSS_CAIRO_GAP_SIDE_BOTTOM
} ccss_cairo_gap_side_t;

This enum mirrors GtkPositionType.

CCSS_CAIRO_GAP_SIDE_LEFT

gap on the left.

CCSS_CAIRO_GAP_SIDE_RIGHT

gap on the right.

CCSS_CAIRO_GAP_SIDE_TOP

gap on top.

CCSS_CAIRO_GAP_SIDE_BOTTOM

gap on the bottom.

ccss_cairo_style_draw_line ()

void                ccss_cairo_style_draw_line          (ccss_style_t const *self,
                                                         cairo_t *cr,
                                                         int x1,
                                                         int x2,
                                                         int y1,
                                                         int y2);

Draw a line using the given style instance.

self :

a ccss_style_t.

cr :

the target to draw onto.

x1 :

the starting x coordinate.

x2 :

the ending x coordinate.

y1 :

the starting y coordinate.

y2 :

the ending y coordinate.

ccss_cairo_style_draw_outline ()

void                ccss_cairo_style_draw_outline       (ccss_style_t const *self,
                                                         cairo_t *cr,
                                                         int x,
                                                         int y,
                                                         int width,
                                                         int 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_cairo_style_draw_rectangle ()

void                ccss_cairo_style_draw_rectangle     (ccss_style_t const *self,
                                                         cairo_t *cr,
                                                         int x,
                                                         int y,
                                                         int width,
                                                         int 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_cairo_style_draw_rectangle_with_gap ()

void                ccss_cairo_style_draw_rectangle_with_gap
                                                        (ccss_style_t const *self,
                                                         cairo_t *cr,
                                                         int x,
                                                         int y,
                                                         int width,
                                                         int height,
                                                         ccss_cairo_gap_side_t gap_side,
                                                         int gap_start,
                                                         int gap_width);

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

gap_side :

side in which to leave the gap.

gap_start :

starting position of the gap.

gap_width :

width of the gap.