diff options
author | Robert O'Callahan <rocallahan@novell.com> | 2006-06-21 15:47:03 +1200 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2006-06-25 11:23:43 +0200 |
commit | ddead8e0612162e121868ba561498b8565112f8b (patch) | |
tree | b1b66367a5c9144f1a1dcfc2cb7ca50cc42c93c9 /src/cairo-xlib.h | |
parent | 113bef399a2ca27f4c49a3d917ac1e6075449616 (diff) | |
download | cairo-ddead8e0612162e121868ba561498b8565112f8b.tar.gz |
Surface size getters for xlib
When accessing the underlying drawable etc of an xlib surface, it is
also helpful to be able to get the width and height without a server
round trip. This patch provides those functions.
Diffstat (limited to 'src/cairo-xlib.h')
-rw-r--r-- | src/cairo-xlib.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cairo-xlib.h b/src/cairo-xlib.h index f7802fd92..ad92b39ed 100644 --- a/src/cairo-xlib.h +++ b/src/cairo-xlib.h @@ -85,6 +85,12 @@ cairo_xlib_surface_get_visual (cairo_surface_t *surface); cairo_public int cairo_xlib_surface_get_depth (cairo_surface_t *surface); +cairo_public int +cairo_xlib_surface_get_width (cairo_surface_t *surface); + +cairo_public int +cairo_xlib_surface_get_height (cairo_surface_t *surface); + CAIRO_END_DECLS #else /* CAIRO_HAS_XLIB_SURFACE */ |