LayoutManager.measure

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

See the gtk.widget.Widget documentation on layout management for more details.

class LayoutManager
void
measure

Parameters

widget gtk.widget.Widget

the gtk.widget.Widget using manager

orientation gtk.types.Orientation

the orientation to measure

forSize int

Size for the opposite of orientation; for instance, if the orientation is gtk.types.Orientation.Horizontal, this is the height of the widget; if the orientation is gtk.types.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