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

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


Vocabulary
ui.gestures

Inputs and outputs
classa class word
hasha hashtable


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