Package: gtk

Function gtk-widget-size-allocate

Lambda List

gtk-widget-size-allocate (widget allocation)

Arguments

widget -- a gtk-widget object
allocation -- a gdk-rectangle instance with the position and size to be allocated to the widget

Details

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

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

See also

2021-9-16