|
| CenterLayout (CenterLayout &&src) noexcept |
|
CenterLayout & | operator= (CenterLayout &&src) noexcept |
|
| ~CenterLayout () noexcept override |
|
GtkCenterLayout * | gobj () |
| Provides access to the underlying C GObject.
|
|
const GtkCenterLayout * | gobj () const |
| Provides access to the underlying C GObject.
|
|
GtkCenterLayout * | 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_orientation (Orientation orientation) |
| Sets the orientation of self.
|
|
Orientation | get_orientation () const |
| Gets the current orienration of the layout manager.
|
|
void | set_baseline_position (BaselinePosition baseline_position) |
| Sets the new baseline position of self.
|
|
BaselinePosition | get_baseline_position () const |
| Returns the baseline position of the layout.
|
|
void | set_start_widget (Widget *widget) |
| Sets the new start widget of self.
|
|
Widget * | get_start_widget () |
| Returns the start widget of the layout.
|
|
const Widget * | get_start_widget () const |
| Returns the start widget of the layout.
|
|
void | set_center_widget (Widget *widget) |
| Sets the new center widget of self.
|
|
Widget * | get_center_widget () |
| Returns the center widget of the layout.
|
|
const Widget * | get_center_widget () const |
| Returns the center widget of the layout.
|
|
void | set_end_widget (Widget *widget) |
| Sets the new end widget of self.
|
|
Widget * | get_end_widget () |
| Returns the end widget of the layout.
|
|
const Widget * | get_end_widget () const |
| Returns the end widget of the layout.
|
|
void | set_shrink_center_last (bool shrink_center_last=true) |
| Sets whether to shrink the center widget after other children.
|
|
bool | get_shrink_center_last () const |
| Gets whether self shrinks the center widget after other children.
|
|
Glib::PropertyProxy< bool > | property_shrink_center_last () |
| Whether to shrink the center widget after other children.
|
|
Glib::PropertyProxy_ReadOnly< bool > | property_shrink_center_last () const |
| Whether to shrink the center widget after other children.
|
|
| LayoutManager (LayoutManager &&src) noexcept |
|
LayoutManager & | operator= (LayoutManager &&src) noexcept |
|
| ~LayoutManager () noexcept override |
|
GtkLayoutManager * | gobj () |
| Provides access to the underlying C GObject.
|
|
const GtkLayoutManager * | gobj () const |
| Provides access to the underlying C GObject.
|
|
GtkLayoutManager * | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
|
void | measure (Widget &widget, Orientation orientation, int for_size, int & minimum, int & natural, int &minimum_baseline, int &natural_baseline) const |
| Measures the size of the widget using manager, for the given orientation and size.
|
|
void | allocate (Widget &widget, int width, int height, int baseline) |
| Assigns the given width, height, and baseline to a widget, and computes the position and sizes of the children of the widget using the layout management policy of manager.
|
|
SizeRequestMode | get_request_mode () const |
| Retrieves the request mode of manager.
|
|
Widget * | get_widget () |
| Retrieves the Gtk::Widget using the given Gtk::LayoutManager .
|
|
const Widget * | get_widget () const |
| Retrieves the Gtk::Widget using the given Gtk::LayoutManager .
|
|
void | layout_changed () |
| Queues a resize on the Gtk::Widget using manager, if any.
|
|
Glib::RefPtr< LayoutChild > | get_layout_child (Widget &child) |
| Retrieves a Gtk::LayoutChild instance for the Gtk::LayoutManager , creating one if necessary.
|
|
Glib::RefPtr< const LayoutChild > | get_layout_child (Widget &child) const |
| Retrieves a Gtk::LayoutChild instance for the Gtk::LayoutManager , creating one if necessary.
|
|
A centering layout.
A Gtk::CenterLayout is a layout manager that manages up to three children. The start widget is allocated at the start of the layout (left in LRT layouts and right in RTL ones), and the end widget at the end.
The center widget is centered regarding the full width of the layout.
- Since gtkmm 3.96:
Glib::PropertyProxy< bool > Gtk::CenterLayout::property_shrink_center_last |
( |
| ) |
|
Whether to shrink the center widget after other children.
By default, when there's no space to give all three children their natural widths, the start and end widgets start shrinking and the center child keeps natural width until they reach minimum width.
If set to false
, start and end widgets keep natural width and the center widget starts shrinking instead.
- Since gtkmm 4.12:
Default value: true
- Returns
- A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes.
Glib::PropertyProxy_ReadOnly< bool > Gtk::CenterLayout::property_shrink_center_last |
( |
| ) |
const |
Whether to shrink the center widget after other children.
By default, when there's no space to give all three children their natural widths, the start and end widgets start shrinking and the center child keeps natural width until they reach minimum width.
If set to false
, start and end widgets keep natural width and the center widget starts shrinking instead.
- Since gtkmm 4.12:
Default value: true
- Returns
- A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.
void Gtk::CenterLayout::set_shrink_center_last |
( |
bool |
shrink_center_last = true | ) |
|
Sets whether to shrink the center widget after other children.
By default, when there's no space to give all three children their natural widths, the start and end widgets start shrinking and the center child keeps natural width until they reach minimum width.
If set to false
, start and end widgets keep natural width and the center widget starts shrinking instead.
- Since gtkmm 4.12:
- Parameters
-
shrink_center_last | Whether to shrink the center widget after others. |