summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-09-29 16:46:39 -0700
committerBehdad Esfahbod <behdad@behdad.org>2006-10-31 21:15:17 -0500
commit0a59ab7d553a3307bf1fb86487ef9cc0823fe625 (patch)
treeab22010d3a3227af7da76d2c34370cf3ff613fff
parent57bca39e08f003ee4685d1cfb9fc88901dd1b520 (diff)
Fix typo in documentation of cairo_in_fill (thanks to Jonathan Watt) and clarify a bit.
(cherry picked from b99d41a0b075ec405d14ea8b6bbcaa50aa35e890 commit)
-rw-r--r--src/cairo.c24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/cairo.c b/src/cairo.c
index 61dbe6ab0..6014508c5 100644
--- a/src/cairo.c
+++ b/src/cairo.c
@@ -1948,18 +1948,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;
@@ -1979,16 +1982,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;