summaryrefslogtreecommitdiff
path: root/gdk/gdkdrawcontext.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-04-23 18:24:29 +0200
committerBenjamin Otte <otte@redhat.com>2018-04-24 23:16:58 +0200
commitfd686afeb2bba843c7b63a5b2284141981042439 (patch)
treed36cc9912d2cf877ad9847aedde2c4544382504a /gdk/gdkdrawcontext.h
parent6aa89f2163cf335d267412b5220bcbf272f8efd8 (diff)
downloadgtk+-fd686afeb2bba843c7b63a5b2284141981042439.tar.gz
drawcontext: Add gdk_draw_context_in_frame() API
This makes the previous gdk_draw_context_is_drawing() function public under a new name. I decided against the old name because we use the term "frame" for a drawing operation, so I wanted to have this boolean flag reuse the term.
Diffstat (limited to 'gdk/gdkdrawcontext.h')
-rw-r--r--gdk/gdkdrawcontext.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/gdkdrawcontext.h b/gdk/gdkdrawcontext.h
index 4fdc2898d7..6a851d1951 100644
--- a/gdk/gdkdrawcontext.h
+++ b/gdk/gdkdrawcontext.h
@@ -48,6 +48,8 @@ void gdk_draw_context_begin_frame (GdkDrawContext
GDK_AVAILABLE_IN_ALL
void gdk_draw_context_end_frame (GdkDrawContext *context);
GDK_AVAILABLE_IN_ALL
+gboolean gdk_draw_context_is_in_frame (GdkDrawContext *context);
+GDK_AVAILABLE_IN_ALL
const cairo_region_t * gdk_draw_context_get_frame_region (GdkDrawContext *context);
G_END_DECLS