Widget.allocate

void allocate(int width, int height, int baseline, gsk.transform.Transform transform = null)

This function is only used by [gtk.widget.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 [gtk.widget.Widget.sizeAllocate].

Parameters

widthNew width of widget
heightNew height of widget
baselineNew baseline of widget, or -1
transformTransformation to be applied to widget