measure


Description:

public virtual void measure (Widget widget, Orientation orientation, int for_size, out int minimum, out int natural, out int minimum_baseline, out int natural_baseline)

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

See the [[email protected]] documentation on layout management for more details.

Parameters:

this

a `GtkLayoutManager`

widget

the `GtkWidget` using this

orientation

the orientation to measure

for_size

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

the minimum size for the given size and orientation

natural

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

minimum_baseline

the baseline position for the minimum size

natural_baseline

the baseline position for the natural size




2022 vala-language.org