Handbook
Glossary
print-gadget ( gadget stream -- )
Factor handbook
»
UI framework
»
Building user interfaces
»
Pre-made UI gadgets
»
Pane gadgets
Prev:
write-gadget ( gadget stream -- )
Next:
gadget. ( gadget -- )
Vocabulary
ui
.
gadgets
.
panes
Inputs
gadget
a
gadget
stream
an output stream
Outputs
None
Word description
Writes a gadget to the stream, followed by a newline.
Notes
Not all streams support this operation.
See also
write-gadget
,
gadget.
Definition
USING:
io
kernel
;
IN:
ui.gadgets.panes
:
print-gadget
( gadget stream -- )
[
write-gadget
]
[
nip
stream-nl
]
2bi
;