From 96b387599d8fb2d27717256ed098fde0dee83e29 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 14 Aug 2010 04:40:52 +0200 Subject: API: Add gdk_cairo_region_create_from_surface() The function converts the given surface into an alpha bitmap mask. This is mostly useful for setting shape regions. Also adds a new internal function _gdk_cairo_surface_extents() that computes a surface's extents. --- gdk/gdkcairo.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdk/gdkcairo.h') diff --git a/gdk/gdkcairo.h b/gdk/gdkcairo.h index 4ecb037a8f..c2a71e8a92 100644 --- a/gdk/gdkcairo.h +++ b/gdk/gdkcairo.h @@ -50,6 +50,10 @@ void gdk_cairo_rectangle (cairo_t *cr, void gdk_cairo_region (cairo_t *cr, const cairo_region_t *region); +cairo_region_t * + gdk_cairo_region_create_from_surface + (cairo_surface_t *surface); + G_END_DECLS #endif /* __GDK_CAIRO_H__ */ -- cgit v1.2.1