|
gtkmm
3.24.2
|
A ChildPropertyProxy can be used to get and set the value of a GtkContainer's child property. More...
#include <gtkmm/childpropertyproxy.h>

Public Types | |
| typedef T | PropertyType |
Public Member Functions | |
| ChildPropertyProxy (Gtk::Container* parent, Gtk::Widget& child, const char* property_name) | |
| void | set_value (const PropertyType& data) |
| Set the value of this property in child. More... | |
| PropertyType | get_value () const |
| Get the value of this property in child. More... | |
| void | reset_value () |
| Set the value of this property in child back to its default value. More... | |
| ChildPropertyProxy< T >& | operator= (const PropertyType& data) |
| operator PropertyType () const | |
| SignalProxyChildProperty | signal_changed () |
Public Member Functions inherited from Gtk::ChildPropertyProxy_Base | |
| ChildPropertyProxy_Base (Container* parent, Widget& child, const char* property_name) | |
| ChildPropertyProxy_Base (const ChildPropertyProxy_Base& other) | |
| SignalProxyChildProperty | signal_changed () |
| Container* | get_parent () const |
| Widget& | get_child () const |
| const char* | get_name () const |
Additional Inherited Members | |
Protected Member Functions inherited from Gtk::ChildPropertyProxy_Base | |
| void | set_property_ (const Glib::ValueBase& value) |
| void | get_property_ (Glib::ValueBase& value) const |
| void | reset_property_ () |
Protected Attributes inherited from Gtk::ChildPropertyProxy_Base | |
| Container* | parent_ |
| Widget& | child_ |
| const char* | property_name_ |
A ChildPropertyProxy can be used to get and set the value of a GtkContainer's child property.
Child properties are not specific to either the container or the contained widget, but rather to their relation. With the ChildPropertyProxy, you may use either get_value() and set_value(), or operator=() and operator PropertyType(), like in this example:
You may also receive notification when a property's value changes on a child, by connecting to signal_changed().
| typedef T Gtk::ChildPropertyProxy< T >::PropertyType |
|
inline |
| PropertyType Gtk::ChildPropertyProxy< T >::get_value | ( | ) | const |
Get the value of this property in child.
|
inline |
|
inline |
|
inline |
Set the value of this property in child back to its default value.
| void Gtk::ChildPropertyProxy< T >::set_value | ( | const PropertyType& | data | ) |
Set the value of this property in child.
| data | The new value for the property. |
| SignalProxyChildProperty Gtk::ChildPropertyProxy< T >::signal_changed | ( | ) |
1.8.16