summaryrefslogtreecommitdiff
path: root/gdk/gdkwindow.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2013-06-24 12:10:02 +0200
committerAlexander Larsson <alexl@redhat.com>2013-07-03 14:34:13 +0200
commit04f83a56a2080f8c6947ff42535363331b16c39a (patch)
tree6153fc00524c1a7c90b33a22ce72594eda567682 /gdk/gdkwindow.h
parent56bec0c70c1c507934a27b6c241b63360f53e731 (diff)
downloadgtk+-04f83a56a2080f8c6947ff42535363331b16c39a.tar.gz
gdk: add gdk_window_create_similar_image_surface
This lets us create image surfaces that render faster on specific windows. It also supports creating scaled image surfaces.
Diffstat (limited to 'gdk/gdkwindow.h')
-rw-r--r--gdk/gdkwindow.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdk/gdkwindow.h b/gdk/gdkwindow.h
index 7840c6e096..0c394d8c4d 100644
--- a/gdk/gdkwindow.h
+++ b/gdk/gdkwindow.h
@@ -911,6 +911,13 @@ cairo_surface_t *
cairo_content_t content,
int width,
int height);
+GDK_AVAILABLE_IN_3_10
+cairo_surface_t *
+ gdk_window_create_similar_image_surface (GdkWindow *window,
+ cairo_format_t format,
+ int width,
+ int height,
+ int scale);
GDK_AVAILABLE_IN_ALL
void gdk_window_beep (GdkWindow *window);