summaryrefslogtreecommitdiff
path: root/src/cairo-misc.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-07-08 13:05:18 +0200
committerBenjamin Otte <otte@redhat.com>2010-07-08 14:27:16 +0200
commitb870cc030d8e0eb6309695e5a101c802f688cf40 (patch)
tree943381b08e5af5a8053d043b1465c0b2340e50a4 /src/cairo-misc.c
parent65a1e351330106ee0af9f6f0df06b82954341ee6 (diff)
doc: Move tmpl/ docs to inline docs
I did this manually so I could review the docs at the same time. If anyone finds typos or other mistakes I did, please complain to me (or better: fix them).
Diffstat (limited to 'src/cairo-misc.c')
-rw-r--r--src/cairo-misc.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/cairo-misc.c b/src/cairo-misc.c
index 4d5e1801..60372595 100644
--- a/src/cairo-misc.c
+++ b/src/cairo-misc.c
@@ -44,6 +44,26 @@
COMPILE_TIME_ASSERT (CAIRO_STATUS_LAST_STATUS < CAIRO_INT_STATUS_UNSUPPORTED);
COMPILE_TIME_ASSERT (CAIRO_INT_STATUS_LAST_STATUS <= 127);
+/**
+ * SECTION:cairo-status
+ * @Title: Error handling
+ * @Short_Description: Decoding cairo's status
+ * @See_Also: cairo_status(), cairo_surface_status(), cairo_pattern_status(),
+ * cairo_font_face_status(), cairo_scaled_font_status(),
+ * cairo_region_status()
+ *
+ * Cairo uses a single status type to represent all kinds of errors. A status
+ * value of %CAIRO_STATUS_SUCCESS represents no error and has an integer value
+ * of zero. All other status values represent an error.
+ *
+ * Cairo's error handling is designed to be easy to use and safe. All major
+ * cairo objects <firstterm>retain</firstterm> an error status internally which
+ * can be queried anytime by the users using cairo*_status() calls. In
+ * the mean time, it is safe to call all cairo functions normally even if the
+ * underlying object is in an error status. This means that no error handling
+ * code is required before or after each individual cairo function call.
+ */
+
/* Public stuff */
/**