Package: gtk

Function gtk:widget-allocate

Lambda List

gtk:widget-allocate (widget width height baseline transform)

Arguments

widget -- a gtk:widget object
width -- an integer with the new width of the widget
height -- an integer with the new height of the widget
baseline -- an integer with the baseline of the widget, or -1
transform -- a gsk:transform object to be applied to the widget

Details

This function is only used by gtk:widget subclasses, to assign a size, position and (optionally) baseline to their child widgets. In this function, the allocation and baseline may be adjusted. The given allocation will be forced to be bigger than the widget's minimum size, as well as at least 0×0 in size. For a version that does not take a transform, see the gtk:widget-size-allocate function.
 

See also

2024-11-1