summaryrefslogtreecommitdiff
path: root/gtk/gtkpixelcacheprivate.h
diff options
context:
space:
mode:
authorChristian Hergert <christian@hergert.me>2013-08-24 21:08:41 -0700
committerAlexander Larsson <alexl@redhat.com>2013-08-26 21:17:45 +0200
commitb1745d68cd47e2fe96ba81e8ac0a6949b118517a (patch)
tree4bfa9cb2a8ae9bbf09ed84c1bf944eeb72e11ff2 /gtk/gtkpixelcacheprivate.h
parent576ae1e3c99f85af0ff2a013cb464d7be2bc1f03 (diff)
downloadgtk+-b1745d68cd47e2fe96ba81e8ac0a6949b118517a.tar.gz
pixelcache: allow specifying content type and extra size.
Allow forcing the cairo_content_t of the surface as well as the amount of extra size to render. https://bugzilla.gnome.org/show_bug.cgi?id=706728
Diffstat (limited to 'gtk/gtkpixelcacheprivate.h')
-rw-r--r--gtk/gtkpixelcacheprivate.h27
1 files changed, 16 insertions, 11 deletions
diff --git a/gtk/gtkpixelcacheprivate.h b/gtk/gtkpixelcacheprivate.h
index 2b916d0b9c..79b60ced26 100644
--- a/gtk/gtkpixelcacheprivate.h
+++ b/gtk/gtkpixelcacheprivate.h
@@ -30,17 +30,22 @@ typedef struct _GtkPixelCache GtkPixelCache;
typedef void (*GtkPixelCacheDrawFunc) (cairo_t *cr,
gpointer user_data);
-GtkPixelCache *_gtk_pixel_cache_new (void);
-void _gtk_pixel_cache_free (GtkPixelCache *cache);
-void _gtk_pixel_cache_invalidate (GtkPixelCache *cache,
- cairo_region_t *region);
-void _gtk_pixel_cache_draw (GtkPixelCache *cache,
- cairo_t *cr,
- GdkWindow *window,
- cairo_rectangle_int_t *view_rect,
- cairo_rectangle_int_t *canvas_rect,
- GtkPixelCacheDrawFunc draw,
- gpointer user_data);
+GtkPixelCache *_gtk_pixel_cache_new (void);
+void _gtk_pixel_cache_free (GtkPixelCache *cache);
+void _gtk_pixel_cache_invalidate (GtkPixelCache *cache,
+ cairo_region_t *region);
+void _gtk_pixel_cache_draw (GtkPixelCache *cache,
+ cairo_t *cr,
+ GdkWindow *window,
+ cairo_rectangle_int_t *view_rect,
+ cairo_rectangle_int_t *canvas_rect,
+ GtkPixelCacheDrawFunc draw,
+ gpointer user_data);
+void _gtk_pixel_cache_set_extra_size (GtkPixelCache *cache,
+ guint extra_width,
+ guint extra_height);
+void _gtk_pixel_cache_set_content (GtkPixelCache *cache,
+ cairo_content_t content);
G_END_DECLS