[gtkmm] Widget: Add some methods.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Widget: Add some methods.
- Date: Fri, 28 Jan 2011 09:22:43 +0000 (UTC)
commit 15cd28fb52a0219299d160ef5df0f75da5112734
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Jan 28 10:22:38 2011 +0100
Widget: Add some methods.
* gtk/src/widget.hg: Added set_state_flags(), get_state_flags(),
reset_state_flags(), set_device_enable(), get_device_enabled(), and
reset_style().
ChangeLog | 8 ++++++++
gtk/src/widget.hg | 10 ++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 924ad48..453f108 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2011-01-28 Murray Cumming <murrayc murrayc com>
+ Widget: Add some methods.
+
+ * gtk/src/widget.hg: Added set_state_flags(), get_state_flags(),
+ reset_state_flags(), set_device_enable(), get_device_enabled(), and
+ reset_style().
+
+2011-01-28 Murray Cumming <murrayc murrayc com>
+
Widget: Simplify the get_request_mode vfunc wrapping.
* gtk/src/widget.[hg|ccg]: Use a simple _WRAP_VFUNC() now that the C code
diff --git a/gtk/src/widget.hg b/gtk/src/widget.hg
index ea9829e..04791b5 100644
--- a/gtk/src/widget.hg
+++ b/gtk/src/widget.hg
@@ -219,6 +219,11 @@ public:
_WRAP_METHOD(void set_state(StateType state), gtk_widget_set_state)
_WRAP_METHOD(StateType get_state() const, gtk_widget_get_state)
+
+ _WRAP_METHOD(void set_state_flags(StateFlags flags, bool clear = true), gtk_widget_set_state_flags)
+ _WRAP_METHOD(void unset_state_flags(StateFlags flags), gtk_widget_unset_state_flags)
+ _WRAP_METHOD(StateFlags get_state_flags() const, gtk_widget_get_state_flags)
+
_WRAP_METHOD(void set_sensitive(bool sensitive = true), gtk_widget_set_sensitive)
_WRAP_METHOD(bool get_sensitive() const, gtk_widget_get_sensitive)
_WRAP_METHOD(bool is_sensitive() const, gtk_widget_is_sensitive)
@@ -276,6 +281,9 @@ public:
_WRAP_METHOD(void set_device_events(const Glib::RefPtr<const Gdk::Device>& device, Gdk::EventMask events), gtk_widget_set_device_events)
_WRAP_METHOD(void add_device_events(const Glib::RefPtr<const Gdk::Device>& device, Gdk::EventMask events), gtk_widget_add_device_events)
+
+ _WRAP_METHOD(void set_device_enabled(const Glib::RefPtr<Gdk::Device>& device, bool enabled = true), gtk_widget_set_device_enabled)
+ _WRAP_METHOD(bool get_device_enabled(const Glib::RefPtr<const Gdk::Device>& device) const, gtk_widget_get_device_enabled)
_WRAP_METHOD(Container* get_toplevel(), gtk_widget_get_toplevel)
_WRAP_METHOD(const Container* get_toplevel() const, gtk_widget_get_toplevel, constversion)
@@ -380,6 +388,8 @@ public:
_IGNORE(gtk_widget_modify_fg, gtk_widget_modify_bg, gtk_widget_modify_font, gtk_widget_modify_text,
gtk_widget_modify_base, gtk_widget_modify_cursor, gtk_widget_modify_symbolic_color) //deprecated
+ _WRAP_METHOD(void reset_style(), gtk_widget_reset_style)
+
//The parameter name is "the_property_name" to avoid a warning because there is a method with the "property_name" name.
template <class PropertyType>
void get_style_property(const Glib::ustring& the_property_name, PropertyType& value) const;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]