summaryrefslogtreecommitdiff
path: root/src/cairoint.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-05-24 17:05:51 -0700
committerCarl Worth <cworth@cworth.org>2006-05-24 17:19:00 -0700
commitd0dd3b822e98358e88f8c9261ef633331548ccfd (patch)
tree19c0af4030f3946e69e4c1c3060c0cbe38c31f51 /src/cairoint.h
parent0796845ae6923f3ccef5df231b7d9a2c145063fd (diff)
New API: Add new function cairo_surface_get_content
This assumes that the directfb, glitz, and quartz backends always create surfaces with content of COLOR_ALPHA which might be totally wrong.
Diffstat (limited to 'src/cairoint.h')
-rw-r--r--src/cairoint.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cairoint.h b/src/cairoint.h
index 86610e16..cebaa212 100644
--- a/src/cairoint.h
+++ b/src/cairoint.h
@@ -853,6 +853,8 @@ struct _cairo_surface {
* hide their internal type from the user-level API. */
cairo_surface_type_t type;
+ cairo_content_t content;
+
unsigned int ref_count;
cairo_status_t status;
cairo_bool_t finished;
@@ -1645,7 +1647,8 @@ _cairo_surface_create_similar_solid (cairo_surface_t *other,
cairo_private void
_cairo_surface_init (cairo_surface_t *surface,
- const cairo_surface_backend_t *backend);
+ const cairo_surface_backend_t *backend,
+ cairo_content_t content);
cairo_private cairo_clip_mode_t
_cairo_surface_get_clip_mode (cairo_surface_t *surface);