![]() |
![]() |
Public Member Functions | |
void | add_widget (Widget& widget) |
Adds a widget to a Gtk::SizeGroup. | |
bool | get_ignore_hidden () const |
Returns if invisible widgets are ignored when calculating the size. | |
SizeGroupMode | get_mode () const |
Gets the current mode of the size group. | |
Glib::SListHandle<const Widget*> | get_widgets () const |
Glib::SListHandle<Widget*> | get_widgets () |
const GtkSizeGroup* | gobj () const |
Provides access to the underlying C GObject. | |
GtkSizeGroup* | gobj () |
Provides access to the underlying C GObject. | |
GtkSizeGroup* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
Glib::PropertyProxy_ReadOnly< bool > | property_ignore_hidden () const |
If TRUE. | |
Glib::PropertyProxy<bool> | property_ignore_hidden () |
If TRUE. | |
Glib::PropertyProxy_ReadOnly< SizeGroupMode > | property_mode () const |
The directions in which the size group affects the requested sizes of its component widgets. | |
Glib::PropertyProxy<SizeGroupMode> | property_mode () |
The directions in which the size group affects the requested sizes of its component widgets. | |
void | remove_widget (Widget& widget) |
Removes a widget from a Gtk::SizeGroup. | |
void | set_ignore_hidden (bool ignore_hidden=true) |
Sets whether invisible widgets should be ignored when calculating the size. | |
void | set_mode (SizeGroupMode mode) |
Sets the Gtk::SizeGroupMode of the size group. | |
virtual | ~SizeGroup () |
Static Public Member Functions | |
static Glib::RefPtr<SizeGroup> | create (SizeGroupMode mode) |
Protected Member Functions | |
SizeGroup (SizeGroupMode mode) | |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Gtk::SizeGroup> | wrap (GtkSizeGroup* object, bool take_copy=false) |
virtual Gtk::SizeGroup::~SizeGroup | ( | ) | [virtual] |
Gtk::SizeGroup::SizeGroup | ( | SizeGroupMode | mode | ) | [explicit, protected] |
void Gtk::SizeGroup::add_widget | ( | Widget& | widget | ) |
Adds a widget to a Gtk::SizeGroup.
In the future, the requisition of the widget will be determined as the maximum of its requisition and the requisition of the other widgets in the size group. Whether this applies horizontally, vertically, or in both directions depends on the mode of the size group. See set_mode().
widget | The Gtk::Widget to add. |
static Glib::RefPtr<SizeGroup> Gtk::SizeGroup::create | ( | SizeGroupMode | mode | ) | [static] |
bool Gtk::SizeGroup::get_ignore_hidden | ( | ) | const |
Returns if invisible widgets are ignored when calculating the size.
true
if invisible widgets are ignored.SizeGroupMode Gtk::SizeGroup::get_mode | ( | ) | const |
Gets the current mode of the size group.
See set_mode().
Glib::SListHandle<const Widget*> Gtk::SizeGroup::get_widgets | ( | ) | const |
Glib::SListHandle<Widget*> Gtk::SizeGroup::get_widgets | ( | ) |
const GtkSizeGroup* Gtk::SizeGroup::gobj | ( | ) | const [inline] |
GtkSizeGroup* Gtk::SizeGroup::gobj | ( | ) | [inline] |
GtkSizeGroup* Gtk::SizeGroup::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
Glib::PropertyProxy_ReadOnly<bool> Gtk::SizeGroup::property_ignore_hidden | ( | ) | const |
If TRUE.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy<bool> Gtk::SizeGroup::property_ignore_hidden | ( | ) |
If TRUE.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy_ReadOnly<SizeGroupMode> Gtk::SizeGroup::property_mode | ( | ) | const |
The directions in which the size group affects the requested sizes of its component widgets.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy<SizeGroupMode> Gtk::SizeGroup::property_mode | ( | ) |
The directions in which the size group affects the requested sizes of its component widgets.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
void Gtk::SizeGroup::remove_widget | ( | Widget& | widget | ) |
void Gtk::SizeGroup::set_ignore_hidden | ( | bool | ignore_hidden = true |
) |
Sets whether invisible widgets should be ignored when calculating the size.
ignore_hidden | Whether hidden widgets should be ignored when calculating the size. |
void Gtk::SizeGroup::set_mode | ( | SizeGroupMode | mode | ) |
Sets the Gtk::SizeGroupMode of the size group.
The mode of the size group determines whether the widgets in the size group should all have the same horizontal requisition (Gtk::SIZE_GROUP_MODE_HORIZONTAL) all have the same vertical requisition (Gtk::SIZE_GROUP_MODE_VERTICAL), or should all have the same requisition in both directions (Gtk::SIZE_GROUP_MODE_BOTH).
mode | The mode to set for the size group. |
Glib::RefPtr<Gtk::SizeGroup> wrap | ( | GtkSizeGroup * | object, | |
bool | take_copy = false | |||
) | [related] |
object | The C instance | |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |