set-gestures ( class hash -- )
Factor handbook » UI framework » Implementing new gadgets » UI gestures

Next:handle-gesture ( gesture gadget -- ? )


Vocabulary
ui.gestures

Inputs
classa class word
hasha 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