[gtkmm] Image: Add set(Cairo::Surface)



commit 9ce2d5164ceb471ed962dc1c723106c25d061e4f
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Jul 26 11:06:42 2013 +0200

    Image: Add set(Cairo::Surface)

 gtk/src/image.hg |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/src/image.hg b/gtk/src/image.hg
index 06479d2..b313401 100644
--- a/gtk/src/image.hg
+++ b/gtk/src/image.hg
@@ -114,6 +114,9 @@ public:
   _WRAP_METHOD(void set(const Glib::RefPtr<Gdk::PixbufAnimation>& animation), gtk_image_set_from_animation)
   _WRAP_METHOD(void set(const Glib::RefPtr<const Gio::Icon>& icon, IconSize size), gtk_image_set_from_gicon)
 
+#m4 _CONVERSION(`const ::Cairo::RefPtr< ::Cairo::Surface>&',`cairo_surface_t*',`($3) ? 
const_cast<cairo_surface_t*>(($3)->cobj()) : 0')
+  _WRAP_METHOD(void set(const ::Cairo::RefPtr< ::Cairo::Surface>& surface), gtk_image_set_from_surface)
+
   _WRAP_METHOD(void set_from_icon_name(const Glib::ustring& icon_name, IconSize size), 
gtk_image_set_from_icon_name)
 
 
@@ -179,6 +182,7 @@ public:
   _WRAP_PROPERTY("gicon", Glib::RefPtr<Gio::Icon>)
   _WRAP_PROPERTY("use-fallback", bool)
   _WRAP_PROPERTY("resource", std::string)
+  _WRAP_PROPERTY("surface", ::Cairo::RefPtr< ::Cairo::Surface>)
 };
 
 } //namespace Gtk


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]