summaryrefslogtreecommitdiff
path: root/src/cairo-xcb.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-05-14 14:01:46 +0000
committerCarl Worth <cworth@cworth.org>2005-05-14 14:01:46 +0000
commit60b0a05df73cef4a67d111a282b20ce1fd5081e6 (patch)
treebf0fccf0602328ceae9fc3cdb659df534a64f6ba /src/cairo-xcb.h
parent6a1af1999dfb79f05341ea6c4bf0e23795db01bc (diff)
downloadcairo-60b0a05df73cef4a67d111a282b20ce1fd5081e6.tar.gz
Brush the dust off the XCB backend and get it compiling and working again. This patch makes the XCB surface API match that of the Xlib surface API as of yesterday. But, it's already stale as the Xlib API changed again. So we'll need one more revision of the XCB backend before the next snapshot.
Add support for testing of the xcb backend as well.
Diffstat (limited to 'src/cairo-xcb.h')
-rw-r--r--src/cairo-xcb.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/cairo-xcb.h b/src/cairo-xcb.h
index 2300a6822..abc11cf54 100644
--- a/src/cairo-xcb.h
+++ b/src/cairo-xcb.h
@@ -47,10 +47,24 @@
CAIRO_BEGIN_DECLS
cairo_surface_t *
-cairo_xcb_surface_create (XCBConnection *dpy,
- XCBDRAWABLE drawable,
- XCBVISUALTYPE *visual,
- cairo_format_t format);
+cairo_xcb_surface_create_for_pixmap (XCBConnection *c,
+ XCBPIXMAP pixmap,
+ cairo_format_t format);
+
+cairo_surface_t *
+cairo_xcb_surface_create_for_pixmap_with_visual (XCBConnection *c,
+ XCBPIXMAP pixmap,
+ XCBVISUALTYPE *visual);
+
+cairo_surface_t *
+cairo_xcb_surface_create_for_window_with_visual (XCBConnection *c,
+ XCBWINDOW window,
+ XCBVISUALTYPE *visual);
+
+void
+cairo_xcb_surface_set_size (cairo_surface_t *surface,
+ int width,
+ int height);
CAIRO_END_DECLS