diff options
author | Robert Staudinger <robsta@gnome.org> | 2008-11-25 11:36:41 +0100 |
---|---|---|
committer | Robert Staudinger <robsta@gnome.org> | 2008-11-25 11:36:41 +0100 |
commit | 70b3d383e287024236f3641639d93ebfbf65fc25 (patch) | |
tree | b317a7b0febe98e44a21081751a730dea1235923 /ccss-cairo/ccss-cairo-style.c | |
parent | 6af4a94428bc949b04e9037f18bf2e73c7d1f527 (diff) |
* ccss-cairo-doc/ccss-cairo-docs.sgml:
* ccss-cairo-doc/ccss-cairo-sections.txt:
* ccss-cairo-doc/tmpl/ccss-cairo-unused.sgml:
* ccss-cairo-doc/tmpl/ccss.sgml:
* ccss-cairo-doc/tmpl/ccss_cairo.sgml:
* ccss-cairo-doc/tmpl/style.sgml:
* ccss-cairo/ccss-cairo-style.c (ccss_cairo_style_draw_line),
(ccss_cairo_style_draw_outline), (ccss_cairo_style_draw_rectangle),
(ccss_cairo_style_draw_rectangle_with_gap):
* ccss-cairo/ccss-cairo-style.h:
* ccss-cairo/ccss-cairo.sym:
* ccss-clutter/ccss-clutter.c (ccss_clutter_paint):
* ccss-clutter/example-1.c (paint_css):
* ccss-doc/ccss-docs.sgml:
* ccss-doc/ccss-sections.txt:
* ccss-doc/tmpl/ccss-unused.sgml:
* ccss-doc/tmpl/ccss.sgml:
* ccss-doc/tmpl/ccss_gtk_style_functions.sgml:
* examples/example-1.c (expose_cb):
* examples/example-2.c (expose_cb):
* examples/example-3.c (expose_cb):
Finish doc split-out, consistent API naming convention.
Diffstat (limited to 'ccss-cairo/ccss-cairo-style.c')
-rw-r--r-- | ccss-cairo/ccss-cairo-style.c | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/ccss-cairo/ccss-cairo-style.c b/ccss-cairo/ccss-cairo-style.c index 74c63a7..47f28fc 100644 --- a/ccss-cairo/ccss-cairo-style.c +++ b/ccss-cairo/ccss-cairo-style.c @@ -248,23 +248,23 @@ lookup_property_r (ccss_style_t const *self, } /** - * ccss_style_draw_horizontal_line: - * @self: a ccss_style_t. + * ccss_cairo_style_draw_line: + * @self: a #ccss_style_t. * @cr: the target to draw onto. * @x1: the starting x coordinate. * @x2: the ending x coordinate. - * @y: the y coordinate. + * @y1: the starting y coordinate. + * @y2: the ending y coordinate. * - * Draw a horizontal line using this style instance. This takes the `top' - * border from the CSS, if specified. + * Draw a line using the given style instance. **/ 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) +ccss_cairo_style_draw_line (ccss_style_t const *self, + cairo_t *cr, + int x1, + int x2, + int y1, + int y2) { ccss_border_stroke_t stroke; double off; @@ -447,8 +447,8 @@ ccss_style_gather_background (ccss_style_t const *self, } /** - * ccss_style_draw_outline: - * @self: a ccss_style_t. + * ccss_cairo_style_draw_outline: + * @self: a #ccss_style_t. * @cr: the target to draw onto. * @x: the starting x coordinate. * @y: the starting y coordinate. @@ -459,12 +459,12 @@ ccss_style_gather_background (ccss_style_t const *self, * this style's background is diregarded. **/ 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) +ccss_cairo_style_draw_outline (ccss_style_t const *self, + cairo_t *cr, + int x, + int y, + int width, + int height) { ccss_border_stroke_t bottom, left, right, top; ccss_border_join_t const *bottom_left; @@ -484,8 +484,8 @@ ccss_style_draw_outline (ccss_style_t const *self, } /** - * ccss_style_draw_rectangle: - * @self: a ccss_style_t. + * ccss_cairo_style_draw_rectangle: + * @self: a #ccss_style_t. * @cr: the target to draw onto. * @x: the starting x coordinate. * @y: the starting y coordinate. @@ -495,12 +495,12 @@ ccss_style_draw_outline (ccss_style_t const *self, * Draw a rectangle using this style instance. **/ 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) +ccss_cairo_style_draw_rectangle (ccss_style_t const *self, + cairo_t *cr, + int x, + int y, + int width, + int height) { ccss_border_stroke_t bottom, left, right, top; ccss_border_join_t const *bottom_left; @@ -572,7 +572,7 @@ ccss_style_draw_rectangle (ccss_style_t const *self, } /** - * ccss_style_draw_gap: + * ccss_cairo_style_draw_rectangle_with_gap: * @self: a ccss_style_t. * @cr: the target to draw onto. * @x: the starting x coordinate. @@ -586,15 +586,15 @@ ccss_style_draw_rectangle (ccss_style_t const *self, * Draw a rectangle with gap using this style instance. **/ void -ccss_style_draw_gap (ccss_style_t const *self, - cairo_t *cr, - int32_t x, - int32_t y, - int32_t width, - int32_t height, - ccss_cairo_gap_side_t gap_side, - int32_t gap_start, - int32_t gap_width) +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) { ccss_border_stroke_t bottom, left, right, top; ccss_border_join_t const *bl; @@ -630,25 +630,25 @@ ccss_style_draw_gap (ccss_style_t const *self, top_right = *tr; switch (gap_side) { - case CCSS_GAP_SIDE_LEFT: + case CCSS_CAIRO_GAP_SIDE_LEFT: if (bottom_left.radius > height - gap_start - gap_width) bottom_left.radius = height - gap_start - gap_width; if (top_left.radius > gap_start) top_left.radius = gap_start; break; - case CCSS_GAP_SIDE_TOP: + case CCSS_CAIRO_GAP_SIDE_TOP: if (top_left.radius > gap_start) top_left.radius = gap_start; if (top_right.radius > width - gap_start - gap_width) top_right.radius = width - gap_start - gap_width; break; - case CCSS_GAP_SIDE_RIGHT: + case CCSS_CAIRO_GAP_SIDE_RIGHT: if (top_right.radius > gap_start) top_right.radius = gap_start; if (bottom_right.radius > height - gap_start - gap_width) bottom_right.radius = height - gap_start - gap_width; break; - case CCSS_GAP_SIDE_BOTTOM: + case CCSS_CAIRO_GAP_SIDE_BOTTOM: if (bottom_left.radius > gap_start) bottom_left.radius = gap_start; if (bottom_right.radius > width - gap_start - gap_width) @@ -696,7 +696,7 @@ ccss_style_draw_gap (ccss_style_t const *self, /* Drawing functions start at bottom-left corder and * proceed clock-wise. */ switch (gap_side) { - case CCSS_GAP_SIDE_LEFT: + case CCSS_CAIRO_GAP_SIDE_LEFT: /* Draw gap only if it's not over the whole border. */ if (gap_start > y || gap_width < height) { /* Rounding reaches until start of gap? @@ -726,7 +726,7 @@ ccss_style_draw_gap (ccss_style_t const *self, CCSS_BORDER_VISIBILITY_HIDE_LEFT, cr, x, y, width, height); break; - case CCSS_GAP_SIDE_TOP: + case CCSS_CAIRO_GAP_SIDE_TOP: /* Draw gap only if it's not over the whole border. */ if (gap_start > x || gap_width < width) { /* Rounding reaches until start of gap? */ @@ -756,7 +756,7 @@ ccss_style_draw_gap (ccss_style_t const *self, CCSS_BORDER_VISIBILITY_HIDE_TOP, cr, x, y, width, height); break; - case CCSS_GAP_SIDE_RIGHT: + case CCSS_CAIRO_GAP_SIDE_RIGHT: /* Draw gap only if it's not over the whole border. */ if (gap_start > y || gap_width < height) { /* Rounding reaches until start of gap? */ @@ -786,7 +786,7 @@ ccss_style_draw_gap (ccss_style_t const *self, CCSS_BORDER_VISIBILITY_HIDE_RIGHT, cr, x, y, width, height); break; - case CCSS_GAP_SIDE_BOTTOM: + case CCSS_CAIRO_GAP_SIDE_BOTTOM: /* Draw gap only if it's not over the whole border. */ if (gap_start > x || gap_width < width) { /* Rounding reaches until start of gap? && |