Handbook
Glossary
$operations ( element -- )
Factor handbook
»
UI framework
»
Implementing new gadgets
»
UI gestures
»
Operations
Prev:
define-operation-map ( class group blurb object translator -- )
Next:
$operation ( element -- )
Vocabulary
ui
.
operations
Inputs
element
a
sequence
Outputs
None
Word description
Converts the element to a quotation and calls it; the resulting quotation must have stack effect
( -- obj )
. Prints a list of operations applicable to the object, together with keyboard shortcuts.
Definition
USING:
combinators
quotations
ui.commands
;
IN:
ui.operations
:
$operations
( element -- )
>quotation
( -- obj )
call-effect
f
operations>commands
command-map.
;