[gtkmm/gtkmm-2-22] gdkmm: Visual: Added methods.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm/gtkmm-2-22] gdkmm: Visual: Added methods.
- Date: Sun, 26 Sep 2010 08:53:06 +0000 (UTC)
commit 380ae053c398458ead62c112185c27aa32cdcaf5
Author: Murray Cumming <murrayc murrayc com>
Date: Sun Sep 26 10:51:42 2010 +0200
gdkmm: Visual: Added methods.
* gdk/src/visual.hg: Added get_visual_type(), get_depth(), get_byte_order(),
get_colormap_size(), get_bits_per_rgb(), get_red_pixel_details(),
get_green_pixel_details(), get_blue_pixel_details(), which are already in
git master.
* tools/m4/convert_gdk.m4: Added enum conversion.
ChangeLog | 10 ++++++++++
gdk/src/visual.hg | 9 +++++++++
tools/m4/convert_gdk.m4 | 1 +
3 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 81ab11b..d4b2d87 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2010-09-26 Murray Cumming <murrayc murrayc com>
+
+ gdkmm: Visual: Added methods.
+
+ * gdk/src/visual.hg: Added get_visual_type(), get_depth(), get_byte_order(),
+ get_colormap_size(), get_bits_per_rgb(), get_red_pixel_details(),
+ get_green_pixel_details(), get_blue_pixel_details(), which are already in
+ git master.
+ * tools/m4/convert_gdk.m4: Added enum conversion.
+
2010-09-25 Murray Cumming <murrayc murrayc com>
gtkmm: Added remaining missing properties.
diff --git a/gdk/src/visual.hg b/gdk/src/visual.hg
index 041c67b..6f87082 100644
--- a/gdk/src/visual.hg
+++ b/gdk/src/visual.hg
@@ -74,6 +74,15 @@ public:
_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(int get_depth() const, gdk_visual_get_depth)
+ _WRAP_METHOD(ByteOrder get_byte_order(), gdk_visual_get_byte_order)
+ _WRAP_METHOD(int get_colormap_size() const, gdk_visual_get_colormap_size)
+ _WRAP_METHOD(int get_bits_per_rgb() const, gdk_visual_get_bits_per_rgb)
+ _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)
+ _WRAP_METHOD(void get_blue_pixel_details(guint32& mask, int& shift, int& precision) const, gdk_visual_get_blue_pixel_details)
};
} //namespace Gdk
diff --git a/tools/m4/convert_gdk.m4 b/tools/m4/convert_gdk.m4
index 1dc7d22..5dd2bf0 100644
--- a/tools/m4/convert_gdk.m4
+++ b/tools/m4/convert_gdk.m4
@@ -67,6 +67,7 @@ _CONV_ENUM(Gdk,WMFunction)
_CONV_ENUM(Gdk,GrabStatus)
_CONV_ENUM(Gdk,PixbufRotation)
+_CONVERSION(`guint32&',`guint32*',`&($3)')
_CONVERSION(`Gdk::EventMask',`gint',`$3')
_CONVERSION(`gint',`Gdk::EventMask',`static_cast<Gdk::EventMask>($3)')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]