summaryrefslogtreecommitdiff
path: root/src/cairo.h
diff options
context:
space:
mode:
authorAlp Toker <alp@atoker.com>2008-01-31 01:33:50 +0000
committerBehdad Esfahbod <behdad@behdad.org>2008-02-06 01:06:01 -0500
commite104fcab1c8c8d9a7a7962a1dbea0c87867c8f9a (patch)
tree0c3a2a40374b5af2fb588aca5f7642261033d630 /src/cairo.h
parent1f0c3d06895ebcbfbae252e6b7298da0b64b37a9 (diff)
Introduce cairo_has_current_point()
cairo_has_current_point() can be used to determine whether a current point is defined. We introduce this new symbol with a boolean return value to avoid the versioning ambiguity of modifying cairo_get_current_point(). This way we also don't have to map what should be a routine operation to an error condition as was previously proposed.
Diffstat (limited to 'src/cairo.h')
-rw-r--r--src/cairo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cairo.h b/src/cairo.h
index 01a6a2ed..0c244ba3 100644
--- a/src/cairo.h
+++ b/src/cairo.h
@@ -1276,6 +1276,9 @@ cairo_get_tolerance (cairo_t *cr);
cairo_public cairo_antialias_t
cairo_get_antialias (cairo_t *cr);
+cairo_public cairo_bool_t
+cairo_has_current_point (cairo_t *cr);
+
cairo_public void
cairo_get_current_point (cairo_t *cr, double *x, double *y);