diff options
author | Carl Worth <cworth@cworth.org> | 2006-09-29 16:46:39 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2006-09-29 16:46:39 -0700 |
commit | b99d41a0b075ec405d14ea8b6bbcaa50aa35e890 (patch) | |
tree | 7db6726ff98623aa532f20378bac76fd41189494 /src/cairo.c | |
parent | 3c19a6413cf77d86d75501f531af08b13db1f411 (diff) |
Fix typo in documentation of cairo_in_fill (thanks to Jonathan Watt) and clarify a bit.
Diffstat (limited to 'src/cairo.c')
-rw-r--r-- | src/cairo.c | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/src/cairo.c b/src/cairo.c index 3d574eb82..aab6705ac 100644 --- a/src/cairo.c +++ b/src/cairo.c @@ -2007,18 +2007,21 @@ cairo_show_page (cairo_t *cr) * @x: X coordinate of the point to test * @y: Y coordinate of the point to test * - * Tests whether the given point is on the area stroked by doing a - * cairo_stroke() operation on @cr given the current path and stroking - * parameters. + * Tests whether the given point is inside the area that would be + * stroked by doing a cairo_stroke() operation on @cr given the + * current path and stroking parameters. * - * See cairo_stroke, cairo_set_line_width(), cairo_set_line_join(), + * See cairo_stroke(), cairo_set_line_width(), cairo_set_line_join(), * cairo_set_line_cap(), cairo_set_dash(), and * cairo_stroke_preserve(). + * + * Return value: A non-zero value if the point is inside, or zero if + * outside. **/ cairo_bool_t cairo_in_stroke (cairo_t *cr, double x, double y) { - int inside; + cairo_bool_t inside; if (cr->status) return 0; @@ -2038,16 +2041,19 @@ cairo_in_stroke (cairo_t *cr, double x, double y) * @x: X coordinate of the point to test * @y: Y coordinate of the point to test * - * Tests whether the given point is on the area filled by doing a - * cairo_stroke() operation on @cr given the current path and filling - * parameters. + * Tests whether the given point is inside the area that would be + * filled by doing a cairo_fill() operation on @cr given the current + * path and filling parameters. * * See cairo_fill(), cairo_set_fill_rule() and cairo_fill_preserve(). + * + * Return value: A non-zero value if the point is inside, or zero if + * outside. **/ cairo_bool_t cairo_in_fill (cairo_t *cr, double x, double y) { - int inside; + cairo_bool_t inside; if (cr->status) return 0; |