summaryrefslogtreecommitdiff
path: root/gdk/gdkcairo.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2016-06-07 16:34:50 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2016-06-09 17:45:40 +0100
commitdda6a0d385852ca93badfe4cac02e1e4ae247b09 (patch)
tree06fd11209d08e693b3fcbf9ef4f7d794bb0ab930 /gdk/gdkcairo.h
parent01b4bf19208ed65760d3c0f07871701e1094b55f (diff)
downloadgtk+-dda6a0d385852ca93badfe4cac02e1e4ae247b09.tar.gz
Associate the drawing context to the Cairo context
Instead of associating the GdkWindow that created the GdkDrawingContext we can directly bind the Cairo context to the GDK drawing context. Cairo contexts created via gdk_cairo_create() go back to not having a GdkWindow associated to them, like they did before we introduced the gdk_window_begin_draw_frame() API. https://bugzilla.gnome.org/show_bug.cgi?id=766675
Diffstat (limited to 'gdk/gdkcairo.h')
-rw-r--r--gdk/gdkcairo.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdk/gdkcairo.h b/gdk/gdkcairo.h
index 4d8d2235ff..6cd50aacac 100644
--- a/gdk/gdkcairo.h
+++ b/gdk/gdkcairo.h
@@ -25,6 +25,7 @@
#include <gdk/gdkversionmacros.h>
#include <gdk/deprecated/gdkcolor.h>
#include <gdk/gdkrgba.h>
+#include <gdk/gdkdrawingcontext.h>
#include <gdk/gdkpixbuf.h>
#include <pango/pangocairo.h>
@@ -32,8 +33,7 @@ G_BEGIN_DECLS
GDK_AVAILABLE_IN_ALL
cairo_t * gdk_cairo_create (GdkWindow *window);
-GDK_AVAILABLE_IN_3_22
-GdkWindow * gdk_cairo_get_window (cairo_t *cr);
+
GDK_AVAILABLE_IN_ALL
gboolean gdk_cairo_get_clip_rectangle (cairo_t *cr,
GdkRectangle *rect);
@@ -83,6 +83,8 @@ void gdk_cairo_draw_from_gl (cairo_t *cr,
int width,
int height);
+GDK_AVAILABLE_IN_3_22
+GdkDrawingContext * gdk_cairo_get_drawing_context (cairo_t *cr);
G_END_DECLS