pref-dim ( gadget -- dim )
Factor handbook » UI framework » Building user interfaces » Gadget hierarchy and layouts » Implementing layout gadgets

Prev:layout* ( gadget -- )
Next:pref-dims ( gadgets -- seq )


Vocabulary
ui.gadgets

Inputs
gadgeta gadget


Outputs
dima pair of integers


Word description
Outputs the preferred dimensions of the gadget. The value is cached between calls, and invalidated when the gadget needs to be relayout.

See also
pref-dim*, layout, layout*

Definition