Package: gtk

Function gtk:layout-manager-measure

Lambda List

gtk:layout-manager-measure (layout widget orientation size)

Syntax

(gtk:layout-manager-measure layout widget orientation size) => min, nat, min-baseline, nat-baseline

Arguments

layout -- a gtk:layout-manager object
widget -- a gtk:widget object using layout
orientation -- a gtk:orientation value to measure
size -- an integer for the size for the opposite of orientation
min -- an integer for the minimum size for the given size and orientation
nat -- an integer for the natural, or preferred size for the given size and orientation
min-baseline -- an integer for the baseline position for the minimum size
nat-baseline -- an integer for the baseline position for the natural size

Details

Measures the size of the widget using layout, for the given orientation and size. For instance, if the orientation is :horizontal, this is the height of the widget, if the orientation is :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. See the gtk:widget objects geometry management section for more details.
 

See also

2025-08-07