diff options
author | Alexander Larsson <alexl@redhat.com> | 2009-07-07 14:33:48 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2009-07-07 17:10:49 +0200 |
commit | 5f12fe2b3b89dc3b1c7ef391ff491aa70802049b (patch) | |
tree | b7674fc68a3929b86550bbf570ab57863ee9390a /gdk/gdkgc.c | |
parent | a7e48466d4a871a06e723835884372c297e88e04 (diff) | |
download | gdk-pixbuf-5f12fe2b3b89dc3b1c7ef391ff491aa70802049b.tar.gz |
Add _gdk_gc_get_clip_mask
Internal function to get the clip mask of a gc (if set)
Diffstat (limited to 'gdk/gdkgc.c')
-rw-r--r-- | gdk/gdkgc.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gdk/gdkgc.c b/gdk/gdkgc.c index b4c6f811d..43e2a5f32 100644 --- a/gdk/gdkgc.c +++ b/gdk/gdkgc.c @@ -775,6 +775,24 @@ _gdk_gc_get_clip_region (GdkGC *gc) } /** + * _gdk_gc_get_clip_mask: + * @gc: a #GdkGC + * + * Gets the current clip mask for @gc, if any. + * + * Return value: the clip mask for the GC, or %NULL. + * (if a clip region is set, the return will be %NULL) + * This value is owned by the GC and must not be freed. + **/ +GdkBitmap * +_gdk_gc_get_clip_mask (GdkGC *gc) +{ + g_return_val_if_fail (GDK_IS_GC (gc), NULL); + + return GDK_GC_GET_PRIVATE (gc)->clip_mask; +} + +/** * _gdk_gc_get_fill: * @gc: a #GdkGC * |