allocate


Description:

public virtual void allocate (int width, int height)

Allocates a width and/or a height for all rows which are to be rendered with this.

Usually allocation is performed only horizontally or sometimes vertically since a group of rows are usually rendered side by side vertically or horizontally and share either the same width or the same height. Sometimes they are allocated in both horizontal and vertical orientations producing a homogeneous effect of the rows. This is generally the case for TreeView when fixed_height_mode is enabled.

Since 3.0

Parameters:

this

a CellAreaContext

width

the allocated width for all TreeModel rows rendered with this, or -1.

height

the allocated height for all TreeModel rows rendered with this, or -1.