Handbook
Glossary
new-track ( orientation class -- track )
Vocabulary
ui
.
gadgets
.
tracks
Inputs
orientation
an orientation specifier
class
a gadget class
Outputs
track
a
gadget
Word description
Creates a new container gadget of the specified class and sets its children layout to either
horizontal
or
vertical
.
Definition
USING:
accessors
kernel
;
IN:
ui.gadgets.tracks
:
new-track
( orientation class -- track )
new
1
>>fill
V{
}
clone
>>sizes
swap
>>orientation
;
inline