[gtkmm] Pixbuf: Add some methods.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Pixbuf: Add some methods.
- Date: Wed, 12 Jan 2011 13:56:06 +0000 (UTC)
commit 4927c5615fdd6c9f21fdd042f378ce48f903a3e4
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Jan 12 13:53:27 2011 +0100
Pixbuf: Add some methods.
* gdk/src/pixbuf.hg: Added set_option() and apply_embedded_orientation().
ChangeLog | 6 ++++++
gdk/src/pixbuf.hg | 9 ++++++---
2 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0925131..371b314 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2011-01-12 Murray Cumming <murrayc murrayc com>
+ Pixbuf: Add some methods.
+
+ * gdk/src/pixbuf.hg: Added set_option() and apply_embedded_orientation().
+
+2011-01-12 Murray Cumming <murrayc murrayc com>
+
gtkmm: Added some new methods.
* gtk/src/menuitem.hg: Added get/set_reserve_indicator().
diff --git a/gdk/src/pixbuf.hg b/gdk/src/pixbuf.hg
index 9ce030a..8148247 100644
--- a/gdk/src/pixbuf.hg
+++ b/gdk/src/pixbuf.hg
@@ -51,9 +51,7 @@ class Pixbuf
{
_CLASS_GOBJECT(Pixbuf, GdkPixbuf, GDK_PIXBUF, Glib::Object, GObject)
_IMPLEMENTS_INTERFACE(Gio::Icon)
- _IGNORE(gdk_pixbuf_ref, gdk_pixbuf_unref, gdk_pixbuf_render_pixmap_and_mask,
- gdk_pixbuf_get_from_image,
- gdk_pixbuf_set_option, gdk_pixbuf_get_option, gdk_pixbuf_non_anim_new)
+ _IGNORE(gdk_pixbuf_ref, gdk_pixbuf_unref, gdk_pixbuf_non_anim_new)
protected:
@@ -429,8 +427,13 @@ gboolean gdk_pixbuf_save_to_callbackv (GdkPixbuf *pixbuf,
_IGNORE(gdk_pixbuf_render_to_drawable, gdk_pixbuf_render_to_drawable_alpha,)
_WRAP_METHOD(Glib::ustring get_option(const Glib::ustring& key) const, gdk_pixbuf_get_option)
+
+ _WRAP_METHOD(bool set_option(const Glib::ustring& key, const Glib::ustring& value), gdk_pixbuf_set_option)
+ //This creates a new GdkPixbuf or returns the original with a reference.
+ _WRAP_METHOD(Glib::RefPtr<Pixbuf> apply_embedded_orientation(), gdk_pixbuf_apply_embedded_orientation)
+ //TODO: Documentation
typedef Glib::SListHandle< Glib::RefPtr<PixbufFormat>, PixbufFormatTraits > SListHandle_PixbufFormat;
static SListHandle_PixbufFormat get_formats();
_IGNORE(gdk_pixbuf_get_formats)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]