LayoutManager.measure

Measures the size of the @widget using @manager, for the given @orientation and size.

See the [class@Gtk.Widget] documentation on layout management for more details.

class LayoutManager
void
measure

Parameters

widget Widget

the GtkWidget using @manager

orientation GtkOrientation

the orientation to measure

forSize int

Size for the opposite of @orientation; for instance, if the @orientation is %GTK_ORIENTATION_HORIZONTAL, this is the height of the widget; if the @orientation is %GTK_ORIENTATION_VERTICAL, this is the width of the widget. This allows to measure the height for the given width, and the width for the given height. Use -1 if the size is not known

minimum int

the minimum size for the given size and orientation

natural int

the natural, or preferred size for the given size and orientation

minimumBaseline int

the baseline position for the minimum size

naturalBaseline int

the baseline position for the natural size

Meta