Virtual Method
Gtk.Widget.measure
Declaration [src]
void
measure (
GtkWidget* widget,
GtkOrientation orientation,
int for_size,
int* minimum,
int* natural,
int* minimum_baseline,
int* natural_baseline
)
Description [src]
Measures widget
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 widget
if it is allocated at a height of 300 pixels.
See GtkWidget’s geometry management section for
a more details on implementing GtkWidgetClass
.measure()
.
Parameters
orientation |
GtkOrientation |
the orientation to measure |
|
for_size |
int |
Size for the opposite of |
|
minimum |
int* |
location to store the minimum size, or |
|
Direction: out | |
Ownership of the data is transferred to the callee | |
natural |
int* |
location to store the natural size, or |
|
Direction: out | |
Ownership of the data is transferred to the callee | |
minimum_baseline |
int* |
location to store the baseline
position for the minimum size, or |
|
Direction: out | |
Ownership of the data is transferred to the callee | |
natural_baseline |
int* |
location to store the baseline
position for the natural size, or |
|
Direction: out | |
Ownership of the data is transferred to the callee |