handles-gesture? ( gesture gadget -- ? )


Vocabulary
ui.gestures

Inputs
gesturea gesture
gadgetthe receiver of the gesture


Outputs
?a boolean


Generic word contract
Returns a true value if gadget would handle gesture in its handle-gesture method.

The default implementation looks at the "gestures" word property of each superclass of the gadget's class and returns true if a handler is present for gesture.

Notes
This word is used in Factor's MacOS X UI to validate menu items.

See also
propagate-gesture, handle-gesture, set-gestures

Definition

GENERIC: handles-gesture? ( gesture gadget -- ? )


Methods