[gtkmm] Gkd::Visual: Change VisualType to Visual::Type.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gkd::Visual: Change VisualType to Visual::Type.
- Date: Thu, 27 Apr 2017 15:27:19 +0000 (UTC)
commit b204a56b91082d43acda17c9fbb500dcd9e0ea20
Author: Murray Cumming <murrayc murrayc com>
Date: Thu Apr 27 14:17:17 2017 +0200
Gkd::Visual: Change VisualType to Visual::Type.
gdk/src/visual.ccg | 2 ++
gdk/src/visual.hg | 6 +++---
tools/m4/convert_gdk.m4 | 2 +-
3 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/gdk/src/visual.ccg b/gdk/src/visual.ccg
index 0e5e164..e4ea3e9 100644
--- a/gdk/src/visual.ccg
+++ b/gdk/src/visual.ccg
@@ -18,6 +18,8 @@
#include <gdk/gdk.h>
+using Type = Gdk::Visual::Type;
+
namespace Gdk
{
diff --git a/gdk/src/visual.hg b/gdk/src/visual.hg
index 4a223f8..6f7845a 100644
--- a/gdk/src/visual.hg
+++ b/gdk/src/visual.hg
@@ -30,8 +30,6 @@ namespace Gdk
class Screen;
-_WRAP_ENUM(VisualType, GdkVisualType)
-
/** A Gdk::Visual describes a particular video hardware display format.
* It includes information about the number of bits used for each color, the way the bits are translated
into an RGB value
* for display, and the way the bits are stored in memory. For example, a piece of display hardware might
support 24-bit
@@ -55,10 +53,12 @@ protected:
_CTOR_DEFAULT
public:
+ _WRAP_ENUM(Type, GdkVisualType)
+
_WRAP_METHOD(Glib::RefPtr<Screen> get_screen(), gdk_visual_get_screen, refreturn)
_WRAP_METHOD(Glib::RefPtr<const Screen> get_screen() const, gdk_visual_get_screen, refreturn,
constversion)
- _WRAP_METHOD(VisualType get_visual_type() const, gdk_visual_get_visual_type)
+ _WRAP_METHOD(Type get_visual_type() const, gdk_visual_get_visual_type)
_WRAP_METHOD(int get_depth() const, gdk_visual_get_depth)
_WRAP_METHOD(void get_red_pixel_details(guint32& mask, int& shift, int& precision) const,
gdk_visual_get_red_pixel_details)
_WRAP_METHOD(void get_green_pixel_details(guint32& mask, int& shift, int& precision) const,
gdk_visual_get_green_pixel_details)
diff --git a/tools/m4/convert_gdk.m4 b/tools/m4/convert_gdk.m4
index 843705d..752c57e 100644
--- a/tools/m4/convert_gdk.m4
+++ b/tools/m4/convert_gdk.m4
@@ -60,7 +60,7 @@ _CONV_ENUM(Gdk,SeatCapabilities)
_CONV_ENUM(Gdk,Status)
_CONV_ENUM(Gdk,SubpixelLayout)
_CONV_ENUM(Gdk,SubwindowMode)
-_CONV_ENUM(Gdk,VisualType)
+_CONV_INCLASS_ENUM(Gdk,Visual,Type)
_CONV_ENUM(Gdk,WindowAttributesType)
_CONV_ENUM(Gdk,WindowEdge)
_CONV_ENUM(Gdk,WindowHints)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]