Class: Gtk::LayoutManager
- Inherits:
-
Object
- Object
- Gtk::LayoutManager
- Defined in:
- (unknown)
Overview
The GtkLayoutManagerClass structure contains only private data, and
should only be accessed through the provided API, or when subclassing
GtkLayoutManager.
Direct Known Subclasses
BinLayout, BoxLayout, CenterLayout, ConstraintLayout, CustomLayout, FixedLayout, GridLayout, OverlayLayout
Instance Method Summary collapse
-
#allocate(widget, width, height, baseline) ⇒ nil
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.
-
#get_layout_child(child) ⇒ Gtk::LayoutChild
Retrieves a
GtkLayoutChildinstance for theGtkLayoutManager, creating one if necessary. -
#layout_changed ⇒ nil
Queues a resize on the
GtkWidgetusing manager, if any. -
#measure(widget, orientation, for_size, minimum, natural, minimum_baseline, natural_baseline) ⇒ nil
Measures the size of the widget using manager, for the given orientation and size.
-
#request_mode ⇒ Gtk::SizeRequestMode
Retrieves the request mode of manager.
-
#widget ⇒ Gtk::Widget
Retrieves the
GtkWidgetusing the givenGtkLayoutManager.
Instance Method Details
#allocate(widget, width, height, baseline) ⇒ nil
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.
#get_layout_child(child) ⇒ Gtk::LayoutChild
Retrieves a GtkLayoutChild instance for the GtkLayoutManager,
creating one if necessary.
The child widget must be a child of the widget using manager.
The GtkLayoutChild instance is owned by the GtkLayoutManager,
and is guaranteed to exist as long as child is a child of the
GtkWidget using the given GtkLayoutManager.
#layout_changed ⇒ nil
Queues a resize on the GtkWidget using manager, if any.
This function should be called by subclasses of GtkLayoutManager
in response to changes to their layout management policies.
#measure(widget, orientation, for_size, minimum, natural, minimum_baseline, natural_baseline) ⇒ nil
Measures the size of the widget using manager, for the given orientation and size.
See the [classGtk.Widget] documentation on layout management for more details.
#request_mode ⇒ Gtk::SizeRequestMode
Retrieves the request mode of manager.
#widget ⇒ Gtk::Widget
Retrieves the GtkWidget using the given GtkLayoutManager.