Canvas Toolkit
← Class index

CLayoutItem

Layouts

Abstract base class for items managed by a layout.

Module layouts/CLayoutItem.js. This class is available through the browser modules in the download.

Declared members

alignment(): CAlignment | 0;

Zero preserves normal size-policy-driven filling on both axes.

setAlignment(alignment: CAlignment | 0): void;

Call the containing layout's update() after changing an item directly.

abstract widget(): CWidget | null;

Returns the widget represented by this layout item, or `null` if the item does not represent a widget.

sizeHint(): CSize;

Default geometry and sizing delegate to the represented widget.

minimumSize(): CSize;
maximumSize(): CSize;
sizePolicy(): CSizePolicy;
geometry(): CRect;
setGeometry(x: number, y: number, width: number, height: number): void;