[cairo] xlib re-re-re implementing the API
Keith Packard
keithp at keithp.com
Mon May 16 23:58:11 PDT 2005
For a header with two function declarations, we've sure got a lot to
say.
here's a patch which provides the following API:
<cairo-xlib.h>
cairo_surface_t *
cairo_xlib_surface_create (Display *dpy,
Drawable drawable,
Visual *visual,
int width,
int height);
cairo_surface_t *
cairo_xlib_surface_create_for_bitmap (Display *dpy,
Pixmap bitmap,
int width,
int height);
void
cairo_xlib_surface_set_size (cairo_surface_t *surface,
int width,
int height);
<cairo-xlib-xrender.h>
cairo_surface_t *
cairo_xlib_surface_create_with_xrender_format (Display *dpy,
Drawable drawable,
XRenderPictFormat *format,
int width,
int height);
I think this is the minimal API which provides the complete set of
useful functionality.
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050516/d6da4cf9/attachment.pgp
More information about the cairo
mailing list