summaryrefslogtreecommitdiff
path: root/src/cairo.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-07-27 15:39:34 +0000
committerCarl Worth <cworth@cworth.org>2005-07-27 15:39:34 +0000
commit2b5d9c8e007f4198b1c48bce53491842f065a759 (patch)
tree3b2cf306a63ef8d18117c69a52ca419a581c12c3 /src/cairo.h
parentc884c4c541abe380500e24a55ec017677d56db19 (diff)
Add CAIRO_STATUS_INVALID_CONTENT, CAIRO_STATUS_INVALID_FORMAT, and CAIRO_STATUS_INVALID_VISUAL.
Change functions to return type of void: cairo_scaled_font_extents cairo_surface_finish Add new functions to query object status: cairo_scaled_font_status cairo_surface_status Implementation of new error handling scheme for cairo_surface_t and cairo_scaled_font_t. Track change in return value of cairo_surface_finish.
Diffstat (limited to 'src/cairo.h')
-rw-r--r--src/cairo.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/cairo.h b/src/cairo.h
index bf398c5fe..5252d2325 100644
--- a/src/cairo.h
+++ b/src/cairo.h
@@ -154,6 +154,9 @@ typedef struct _cairo_user_data_key {
* @CAIRO_STATUS_SURFACE_FINISHED: target surface has been finished
* @CAIRO_STATUS_SURFACE_TYPE_MISMATCH: the surface type is not appropriate for the operation
* @CAIRO_STATUS_PATTERN_TYPE_MISMATCH: the pattern type is not appropriate for the operation
+ * @CAIRO_STATUS_INVALID_CONTENT: invalid value for an input cairo_content_t
+ * @CAIRO_STATUS_INVALID_FORMAT: invalid value for an input cairo_format_t
+ * @CAIRO_STATUS_INVALID_VISUAL: invalid value for an input Visual*
*
* #cairo_status_t is used to indicate errors that can occur when
* using Cairo. In some cases it is returned directly by functions.
@@ -175,7 +178,10 @@ typedef enum _cairo_status {
CAIRO_STATUS_WRITE_ERROR,
CAIRO_STATUS_SURFACE_FINISHED,
CAIRO_STATUS_SURFACE_TYPE_MISMATCH,
- CAIRO_STATUS_PATTERN_TYPE_MISMATCH
+ CAIRO_STATUS_PATTERN_TYPE_MISMATCH,
+ CAIRO_STATUS_INVALID_CONTENT,
+ CAIRO_STATUS_INVALID_FORMAT,
+ CAIRO_STATUS_INVALID_VISUAL
} cairo_status_t;
/**
@@ -894,6 +900,9 @@ void
cairo_scaled_font_destroy (cairo_scaled_font_t *scaled_font);
cairo_status_t
+cairo_scaled_font_status (cairo_scaled_font_t *scaled_font);
+
+void
cairo_scaled_font_extents (cairo_scaled_font_t *scaled_font,
cairo_font_extents_t *extents);
@@ -1102,6 +1111,9 @@ void
cairo_surface_destroy (cairo_surface_t *surface);
cairo_status_t
+cairo_surface_status (cairo_surface_t *surface);
+
+void
cairo_surface_finish (cairo_surface_t *surface);
#if CAIRO_HAS_PNG_FUNCTIONS