|
| SizeGroup (SizeGroup && src) noexcept |
|
SizeGroup & | operator= (SizeGroup && src) noexcept |
|
| ~SizeGroup () noexcept override |
|
GtkSizeGroup * | gobj () |
| Provides access to the underlying C GObject.
|
|
const GtkSizeGroup * | gobj () const |
| 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.
|
|
void | set_mode (Mode mode) |
| Sets the Gtk::SizeGroup::Mode of the size group.
|
|
Mode | get_mode () const |
| Gets the current mode of the size group.
|
|
void | add_widget (Widget & widget) |
| Adds a widget to a Gtk::SizeGroup .
|
|
void | remove_widget (Widget & widget) |
| Removes a widget from a Gtk::SizeGroup .
|
|
std::vector< Widget * > | get_widgets () |
| Returns the list of widgets associated with size_group.
|
|
std::vector< const Widget * > | get_widgets () const |
| Returns the list of widgets associated with size_group.
|
|
Glib::PropertyProxy< Mode > | property_mode () |
| The direction in which the size group affects requested sizes.
|
|
Glib::PropertyProxy_ReadOnly< Mode > | property_mode () const |
| The direction in which the size group affects requested sizes.
|
|
| Object (const Object &)=delete |
|
Object & | operator= (const Object &)=delete |
|
| Object (Object &&src) noexcept |
|
Object & | operator= (Object &&src) noexcept |
|
void * | get_data (const QueryQuark &key) |
|
void | set_data (const Quark &key, void *data) |
|
void | set_data (const Quark &key, void *data, DestroyNotify notify) |
|
void | remove_data (const QueryQuark &quark) |
|
void * | steal_data (const QueryQuark &quark) |
|
Glib::RefPtr< Glib::Object > | wrap (GObject *object, bool take_copy=false) |
|
| ObjectBase (const ObjectBase &)=delete |
|
ObjectBase & | operator= (const ObjectBase &)=delete |
|
void | set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value) |
|
void | get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const |
|
void | set_property (const Glib::ustring &property_name, const PropertyType &value) |
|
void | get_property (const Glib::ustring &property_name, PropertyType &value) const |
|
PropertyType | get_property (const Glib::ustring &property_name) const |
|
sigc::connection | connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void()> &slot) |
|
sigc::connection | connect_property_changed (const Glib::ustring &property_name, sigc::slot< void()> &&slot) |
|
void | freeze_notify () |
|
void | thaw_notify () |
|
virtual void | reference () const |
|
virtual void | unreference () const |
|
GObject * | gobj () |
|
const GObject * | gobj () const |
|
GObject * | gobj_copy () const |
|
| Buildable (Buildable && src) noexcept |
|
Buildable & | operator= (Buildable && src) noexcept |
|
| ~Buildable () noexcept override |
|
GtkBuildable * | gobj () |
| Provides access to the underlying C GObject.
|
|
const GtkBuildable * | gobj () const |
| Provides access to the underlying C GObject.
|
|
Glib::ustring | get_buildable_id () const |
| Gets the ID of the buildable object.
|
|
| Interface () |
|
| Interface (Interface &&src) noexcept |
|
Interface & | operator= (Interface &&src) noexcept |
|
| Interface (const Glib::Interface_Class &interface_class) |
|
| Interface (GObject *castitem) |
|
| ~Interface () noexcept override |
|
| Interface (const Interface &)=delete |
|
Interface & | operator= (const Interface &)=delete |
|
GObject * | gobj () |
|
const GObject * | gobj () const |
|
Gtk::SizeGroup provides a mechanism for grouping a number of widgets together so they all request the same amount of space.
This is typically useful when you want a column of widgets to have the same size, but you can't use a Gtk::Grid widget.
In detail, the size requested for each widget in a Gtk::SizeGroup is the maximum of the sizes that would have been requested for each widget in the size group if they were not in the size group. The mode of the size group (see set_mode()) determines whether this applies to the horizontal size, the vertical size, or both sizes.
Note that size groups only affect the amount of space requested, not the size that the widgets finally receive. If you want the widgets in a GtkSizeGroup to actually be the same size, you need to pack them in such a way that they get the size they request and not more. For example, if you are packing your widgets into a table, you would not include the Gtk::FILL flag.
Widgets can be part of multiple size groups; GTK+ will compute the horizontal size of a widget from the horizontal requisition of all widgets that can be reached from the widget by a chain of size groups of type Gtk::SizeGroup::Mode::HORIZONTAL or Gtk::SizeGroup::Mode::BOTH, and the vertical size from the vertical requisition of all widgets that can be reached from the widget by a chain of size groups of type Gtk::SizeGroup::Mode::VERTICAL or Gtk::SizeGroup::Mode::BOTH.
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().
When the widget is destroyed or no longer referenced elsewhere, it will be removed from the size group.
- Parameters
-