allocate


Description:

public void allocate (int width, int height, int baseline, owned Transform? transform)

Assigns size, position, (optionally) a baseline and transform to a child widget.

The given allocation must be large enough for the widget's minimum size, as well as at least 0×0 in size. See [method@Gtk.Widget.measure ] for querying a minimum size.

This function is only used by widget implementations to allocate a size for their direct children.

For a version that does not take a transform, see [method@Gtk.Widget.size_allocate].

Parameters:

this

a widget

width

new width

height

new height

baseline

new baseline, or -1

transform

transformation to be applied