Handbook
Glossary
set-gestures ( class hash -- )
Factor handbook
»
UI framework
»
Implementing new gadgets
»
UI gestures
Next:
handle-gesture ( gesture gadget -- ? )
Vocabulary
ui
.
gestures
Inputs
class
a class word
hash
a
hashtable
Outputs
None
Word description
Sets the gestures a gadget class responds to. The hashtable maps gestures to quotations with stack effect
( gadget -- )
.
See also
propagate-gesture
,
handle-gesture
,
handles-gesture?
Definition
USING:
words
;
IN:
ui.gestures
:
set-gestures
( class hash -- )
"gestures"
set-word-prop
;