Handbook
Glossary
<pane-control> ( model quot -- pane )
Factor handbook
»
UI framework
»
Building user interfaces
»
Pre-made UI gadgets
»
Pane gadgets
Prev:
<pane> ( -- pane )
Next:
pane-stream
Vocabulary
ui
.
gadgets
.
panes
Inputs
model
a
model
quot
a
quotation
with stack effect
( value -- )
Outputs
pane
a new
pane
Word description
Creates a new control delegating to a
pane
. When the value of the model changes, the value is pushed on the stack and the quotation is called using
with-pane
.
Definition
USING:
accessors
kernel
;
IN:
ui.gadgets.panes
:
<pane-control>
( model quot -- pane )
f
pane-control
new-pane
swap
>>quot
swap
>>model
;