allocate


Description:

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

This function is only used by 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 size_allocate

Parameters:

this

A Widget

width

New width of this

height

New height of this

baseline

New baseline of this, or -1

transform

Transformation to be applied to this