Package: gtk

Function gtk-widget-size-allocate-with-baseline

Lambda List

gtk-widget-size-allocate-with-baseline (widget allocation baseline)

Arguments

widget -- a gtk-widget object
allocation -- a gdk-rectangle instance with the position and size to be allocated to widget
baseline -- an integer with the baseline of the child, or -1

Details

This function is only used by gtk-container subclasses, to assign a size, position and (optionally) baseline to their child widgets.

In this function, the allocation and baseline may be adjusted. It will be forced to a 1 x 1 minimum size, and the adjust_size_allocation and adjust_baseline_allocation virtual methods on the child will be used to adjust the allocation and baseline. Standard adjustments include removing the margins of the widget, and applying the halign and valign properties of the widget.

If the child widget does not have a :baseline vertical alignment the baseline argument is ignored and -1 is used instead.
 

See also

2021-9-21