[gtkmm] Gdk::Pixbuf: Change PixbufRotation to Pixbuf::Rotation.



commit ae9d0f62224525223c986208dbf210ee57d4084b
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Apr 27 14:13:18 2017 +0200

    Gdk::Pixbuf: Change PixbufRotation to Pixbuf::Rotation.

 gdk/src/pixbuf.hg       |    6 +++---
 tools/m4/convert_gdk.m4 |    4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gdk/src/pixbuf.hg b/gdk/src/pixbuf.hg
index d67663d..82f13d0 100644
--- a/gdk/src/pixbuf.hg
+++ b/gdk/src/pixbuf.hg
@@ -42,8 +42,6 @@ namespace Gdk
 _CC_INCLUDE(gdk-pixbuf/gdk-pixbuf.h)
 _WRAP_ENUM(Colorspace, GdkColorspace)
 _WRAP_ENUM(InterpType, GdkInterpType)
-_WRAP_ENUM(PixbufAlphaMode, GdkPixbufAlphaMode)
-_WRAP_ENUM(PixbufRotation, GdkPixbufRotation)
 
 /** Exception class for Gdk::Pixbuf errors.
  */
@@ -58,6 +56,8 @@ class Pixbuf
   _IGNORE(gdk_pixbuf_ref, gdk_pixbuf_unref,  gdk_pixbuf_non_anim_new)
 
 protected:
+  _WRAP_ENUM(AlphaMode, GdkPixbufAlphaMode)
+  _WRAP_ENUM(Rotation, GdkPixbufRotation)
 
   /** Transfers image data from a Cairo::Surface and converts it to an RGB(A)
    * representation inside a Gdk::Pixbuf. This allows you to efficiently read
@@ -415,7 +415,7 @@ gboolean gdk_pixbuf_save_to_callbackv   (GdkPixbuf  *pixbuf,
                    guint32 color1, guint32 color2) const,
                gdk_pixbuf_composite_color_simple)
 
-  _WRAP_METHOD(Glib::RefPtr<Gdk::Pixbuf> rotate_simple(PixbufRotation angle) const, gdk_pixbuf_rotate_simple)
+  _WRAP_METHOD(Glib::RefPtr<Gdk::Pixbuf> rotate_simple(Rotation angle) const, gdk_pixbuf_rotate_simple)
   _WRAP_METHOD(Glib::RefPtr<Gdk::Pixbuf> flip(bool horizontal = true) const, gdk_pixbuf_flip)
 
   _WRAP_METHOD(Glib::ustring get_option(const Glib::ustring& key) const, gdk_pixbuf_get_option)
diff --git a/tools/m4/convert_gdk.m4 b/tools/m4/convert_gdk.m4
index 6e87e8f..843705d 100644
--- a/tools/m4/convert_gdk.m4
+++ b/tools/m4/convert_gdk.m4
@@ -55,7 +55,6 @@ _CONV_ENUM(Gdk,LineStyle)
 _CONV_ENUM(Gdk,ModifierType)
 _CONV_ENUM(Gdk,ModifierIntent)
 _CONV_ENUM(Gdk,OverlapType)
-_CONV_ENUM(Gdk,PixbufAlphaMode)
 _CONV_ENUM(Gdk,RgbDither)
 _CONV_ENUM(Gdk,SeatCapabilities)
 _CONV_ENUM(Gdk,Status)
@@ -71,7 +70,8 @@ _CONV_ENUM(Gdk,WindowTypeHint)
 _CONV_ENUM(Gdk,WMDecoration)
 _CONV_ENUM(Gdk,WMFunction)
 _CONV_ENUM(Gdk,GrabStatus)
-_CONV_ENUM(Gdk,PixbufRotation)
+_CONV_INCLASS_ENUM(Gdk,Pixbuf,AlphaMode)
+_CONV_INCLASS_ENUM(Gdk,Pixbuf,Rotation)
 _CONV_ENUM(Gdk,GLError)
 
 _CONVERSION(`guint32&',`guint32*',`&($3)')


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