summaryrefslogtreecommitdiff
path: root/gdk/gdkcairo.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-08-14 04:40:52 +0200
committerBenjamin Otte <otte@redhat.com>2010-09-26 15:02:59 +0200
commit96b387599d8fb2d27717256ed098fde0dee83e29 (patch)
tree34eb153e2f7d22dc0c515e962a1996c8eb1a19fc /gdk/gdkcairo.h
parent6218c16ff8d8fecb28c58ed723acf71752cb6f79 (diff)
downloadgtk+-96b387599d8fb2d27717256ed098fde0dee83e29.tar.gz
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.
Diffstat (limited to 'gdk/gdkcairo.h')
-rw-r--r--gdk/gdkcairo.h4
1 files changed, 4 insertions, 0 deletions
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__ */