Handbook
Glossary
<colored-labeled-gadget> ( content title color -- labeled )
Factor handbook
»
UI framework
»
Building user interfaces
»
Pre-made UI gadgets
»
Labeled gadgets
Prev:
<labeled-gadget> ( content title -- labeled )
Next:
<framed-labeled-gadget> ( content title color -- labeled )
Vocabulary
ui
.
gadgets
.
labeled
Inputs
content
a
gadget
title
a
string
color
a color
Outputs
labeled
a
labeled-gadget
Word description
Creates a new
labeled-gadget
displaying
content
with
title
on top, adding a
color
colored divider between title bar and content.
Definition
USING:
accessors
kernel
ui.pens.solid
;
IN:
ui.gadgets.labeled
:
<colored-labeled-gadget>
( content title color -- labeled )
[
<labeled-gadget>
]
dip
<solid>
>>interior
{
0 3
}
>>gap
;