diff options
author | Carl Worth <cworth@cworth.org> | 2005-05-17 06:05:13 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2005-05-17 06:05:13 +0000 |
commit | 0c05b23b3165ec6908c28f56b3446cf43dff44a2 (patch) | |
tree | 88a37f1ff47b08ea10968a8c09e41f92f209b40d /src/cairo-xlib.h | |
parent | 84bc5a32d6b3ad366698c14a01f7a4898f1cd25c (diff) |
Rework of cairo_xlib_surface create functions by Keith Packard:
Add cairo_xlib_surface_create_with_render_format.
Reduce Xlib constructors down to two simple forms. Add width, height to constructors and eliminate any synchronous size queries from the implementation.
Update to match new cairo_xlib_surface_t create functions.
Diffstat (limited to 'src/cairo-xlib.h')
-rw-r--r-- | src/cairo-xlib.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/cairo-xlib.h b/src/cairo-xlib.h index 7c71c4e3..3fe285fd 100644 --- a/src/cairo-xlib.h +++ b/src/cairo-xlib.h @@ -46,14 +46,17 @@ CAIRO_BEGIN_DECLS cairo_surface_t * -cairo_xlib_surface_create (Display *dpy, - Drawable drawable, - cairo_format_t format); +cairo_xlib_surface_create (Display *dpy, + Drawable drawable, + Visual *visual, + int width, + int height); cairo_surface_t * -cairo_xlib_surface_create_with_visual (Display *dpy, - Drawable drawable, - Visual *visual); +cairo_xlib_surface_create_for_bitmap (Display *dpy, + Pixmap bitmap, + int width, + int height); void cairo_xlib_surface_set_size (cairo_surface_t *surface, |