gtkmm: Gtk::ChildPropertyProxy< T > Class Template Reference
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 () |
![]() |
|
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 |
|
![]() |
|
void | set_property_ (const Glib::ValueBase & value) |
void | get_property_ ( Glib::ValueBase & value) const |
void | reset_property_ () |
![]() |
|
Container * | parent_ |
Widget & | child_ |
const char* | property_name_ |
Detailed Description
template<class T>
class Gtk::ChildPropertyProxy< T >
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() .
Member Typedef Documentation
typedef T Gtk::ChildPropertyProxy < T >:: PropertyType |
Constructor & Destructor Documentation
|
inline |
Member Function Documentation
PropertyType Gtk::ChildPropertyProxy < T >::get_value | ( | ) | const |
Get the value of this property in child.
- Returns
- The current value of the property.
|
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.
- Parameters
-
data The new value for the property.
SignalProxyChildProperty Gtk::ChildPropertyProxy < T >::signal_changed | ( | ) |