[gtkmm] Gdk::Display: Add is_composited() and is_rgba()



commit 2233dad213a95e9bbb00e5ef698fbe941e7eee9b
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date:   Fri Dec 30 16:56:45 2016 +0100

    Gdk::Display: Add is_composited() and is_rgba()
    
    and add property_composited() and property_rgba().
    Remove the const version of get_event().

 gdk/src/display.hg |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gdk/src/display.hg b/gdk/src/display.hg
index 5ecf713..d56a7e5 100644
--- a/gdk/src/display.hg
+++ b/gdk/src/display.hg
@@ -63,11 +63,12 @@ public:
   _WRAP_METHOD(void sync(), gdk_display_sync)
   _WRAP_METHOD(void    close(), gdk_display_close)
   _WRAP_METHOD(bool is_closed() const, gdk_display_is_closed)
+  _WRAP_METHOD(bool is_composited() const, gdk_display_is_composited)
+  _WRAP_METHOD(bool is_rgba() const, gdk_display_is_rgba)
 
   //TODO: Use C++ Gdk::Event:
-  //TODO: get_event() removes the next event, if there is one - then there should not be a const version:
+  // get_event() removes the next event, if there is one - therefore there is no const version:
   _WRAP_METHOD(GdkEvent* get_event(), gdk_display_get_event)
-  _WRAP_METHOD(const GdkEvent* get_event() const, gdk_display_get_event, constversion)
 
   _WRAP_METHOD(GdkEvent* peek_event(), gdk_display_peek_event)
   _WRAP_METHOD(GdkEvent* peek_event() const, gdk_display_peek_event, constversion)
@@ -168,7 +169,9 @@ public:
   _WRAP_SIGNAL(void monitor_added(const Glib::RefPtr<Monitor>& monitor), "monitor-added", no_default_handler)
   _WRAP_SIGNAL(void monitor_removed(const Glib::RefPtr<Monitor>& monitor), "monitor-removed", 
no_default_handler)
 
-  // There are no properties.
+  _WRAP_PROPERTY("composited", bool)
+  _WRAP_PROPERTY("rgba", bool)
+
   // We don't wrap the vfuncs because GdkDisplayClass is private.
 };
 


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