hand-click-rel ( gadget -- loc )
Factor handbook » UI framework » Implementing new gadgets » UI gestures » Mouse gestures

Prev:hand-rel ( gadget -- loc )
Next:drag-loc ( -- loc )


Vocabulary
ui.gestures

Inputs
gadgeta gadget


Outputs
loca pair of integers


Word description
Outputs the location of the last mouse relative to the top-left corner of the gadget. Only meaningful inside a button-down, button-up, motion or drag gesture handler, where the gadget is contained in the same world as the gadget receiving the gesture.

Definition