diff options
author | Christian Hergert <christian@hergert.me> | 2013-09-06 15:49:50 -0700 |
---|---|---|
committer | Christian Hergert <christian@hergert.me> | 2013-09-06 15:57:22 -0700 |
commit | 7fabc94d3c707224ada47663bb198eb2e4b69e3c (patch) | |
tree | edc68f18d67ca181cb80a44a74d03c8665462998 /gtk/gtkpixelcache.c | |
parent | 0eb8479256a879164484bec4513e9c1a5329a4d5 (diff) | |
download | gtk+-7fabc94d3c707224ada47663bb198eb2e4b69e3c.tar.gz |
pixelcache: add getter for extra width and height.
Diffstat (limited to 'gtk/gtkpixelcache.c')
-rw-r--r-- | gtk/gtkpixelcache.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk/gtkpixelcache.c b/gtk/gtkpixelcache.c index fd44f206c4..2529f11845 100644 --- a/gtk/gtkpixelcache.c +++ b/gtk/gtkpixelcache.c @@ -91,6 +91,18 @@ _gtk_pixel_cache_set_extra_size (GtkPixelCache *cache, } void +_gtk_pixel_cache_get_extra_size (GtkPixelCache *cache, + guint *extra_width, + guint *extra_height) +{ + if (extra_width) + *extra_width = cache->extra_width; + + if (extra_height) + *extra_height = cache->extra_height; +} + +void _gtk_pixel_cache_set_content (GtkPixelCache *cache, cairo_content_t content) { |