measure


Description:

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

Measures this in the orientation orientation and for the given for_size.

As an example, if orientation is gtk_orientation_horizontal and for_size is 300, this functions will compute the minimum and natural width of this if it is allocated at a height of 300 pixels.

See [GtkWidget’s geometry management section](class.Widget.html#height-for-width-geometry-management) for a more details on implementing `GtkWidgetClass.measure()`.

Parameters:

this

A `GtkWidget` instance

orientation

the orientation to measure

for_size

Size for the opposite of orientation, i.e. if orientation is gtk_orientation_horizontal, this is the height the widget should be measured with. The gtk_orientation_vertical case is analogous. This way, both height-for-width and width-for-height requests can be implemented. If no size is known, -1 can be passed.

minimum

location to store the minimum size

natural

location to store the natural size

minimum_baseline

location to store the baseline position for the minimum size, or -1 to report no baseline

natural_baseline

location to store the baseline position for the natural size, or -1 to report no baseline