pref-dim* ( gadget -- dim )
Factor handbook » UI framework » Building user interfaces » Gadget hierarchy and layouts » Layout basics

Prev:relayout-1 ( gadget -- )


Vocabulary
ui.gadgets

Inputs
gadgeta gadget


Outputs
dima pair of integers


Generic word contract
Outputs the preferred dimensions of the gadget, possibly computing them from the preferred dimensions of the gadget's children.

Notes
User code should not call this word directly, instead call pref-dim.

See also
pref-dim, layout, layout*

Definition

GENERIC: pref-dim* ( gadget -- dim )


Methods

M:: L-system pref-dim* ( L-SYSTEM -- dim ) { 400 400 } ;