Handbook
Glossary
<labeled-gadget> ( content title -- labeled )
Factor handbook
»
UI framework
»
Building user interfaces
»
Pre-made UI gadgets
»
Labeled gadgets
Prev:
labeled-gadget
Next:
<colored-labeled-gadget> ( content title color -- labeled )
Vocabulary
ui
.
gadgets
.
labeled
Inputs
content
a
gadget
title
a
string
Outputs
labeled
a
labeled-gadget
Word description
Creates a new
labeled-gadget
displaying
content
with
title
on top.
Definition
USING:
accessors
kernel
ui.gadgets
ui.gadgets.labeled.private
ui.gadgets.tracks
;
IN:
ui.gadgets.labeled
:
<labeled-gadget>
( content title -- labeled )
vertical
labeled-gadget
new-track
swap
<title-bar>
f
track-add
swap
[
>>content
]
[
1
track-add
]
bi
;