XLib BackendXLib Backend — | |
Details
cairo_set_target_drawable ()
void cairo_set_target_drawable (cairo_t *cr,
Display *dpy,
Drawable drawable);
Directs output for a cairo_t to an Xlib drawable. drawable must
be a Window or Pixmap on the default screen of dpy using the
default colormap and visual. Using this function is slow because
the function must retrieve information about drawable from the X
server.
The combination of cairo_xlib_surface_create() and
cairo_set_target_surface() is somewhat more flexible, although
it still is slow.
cr : | a cairo_t
|
dpy : | an X display
|
drawable : | a window or pixmap on the default screen of dpy
|
cairo_xlib_surface_create ()
cairo_surface_t* cairo_xlib_surface_create (Display *dpy,
Drawable drawable,
Visual *visual,
cairo_format_t format,
Colormap colormap);
dpy : |
|
drawable : |
|
visual : |
|
format : |
|
colormap : |
|
Returns : |
|