[gtk+] pixelcache: add getter for extra width and height.
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] pixelcache: add getter for extra width and height.
- Date: Fri, 6 Sep 2013 22:57:36 +0000 (UTC)
commit 7fabc94d3c707224ada47663bb198eb2e4b69e3c
Author: Christian Hergert <christian hergert me>
Date: Fri Sep 6 15:49:50 2013 -0700
pixelcache: add getter for extra width and height.
gtk/gtkpixelcache.c | 12 ++++++++++++
gtk/gtkpixelcacheprivate.h | 3 +++
2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkpixelcache.c b/gtk/gtkpixelcache.c
index fd44f20..2529f11 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)
{
diff --git a/gtk/gtkpixelcacheprivate.h b/gtk/gtkpixelcacheprivate.h
index 79b60ce..69635b7 100644
--- a/gtk/gtkpixelcacheprivate.h
+++ b/gtk/gtkpixelcacheprivate.h
@@ -41,6 +41,9 @@ void _gtk_pixel_cache_draw (GtkPixelCache *cache,
cairo_rectangle_int_t *canvas_rect,
GtkPixelCacheDrawFunc draw,
gpointer user_data);
+void _gtk_pixel_cache_get_extra_size (GtkPixelCache *cache,
+ guint *extra_width,
+ guint *extra_height);
void _gtk_pixel_cache_set_extra_size (GtkPixelCache *cache,
guint extra_width,
guint extra_height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]