![]() |
![]() |
![]() |
CCSS/Cairo Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
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);
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.
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.
|
a ccss_style_t. |
|
the target to draw onto. |
|
the starting x coordinate. |
|
the ending x coordinate. |
|
the starting y coordinate. |
|
the ending y coordinate. |
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.
|
a ccss_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 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.
|
a ccss_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 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.
|
a ccss_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. |
|
side in which to leave the gap. |
|
starting position of the gap. |
|
width of the gap. |