From 2b5d9c8e007f4198b1c48bce53491842f065a759 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 27 Jul 2005 15:39:34 +0000 Subject: 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. --- src/cairo.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/cairo.h') 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 -- cgit v1.2.3