key-gesture? ( object -- ? )


Vocabulary
ui.gestures

Inputs and outputs
objectan object
?a boolean


Word description
Tests if the object is an instance of the key-gesture class.

Definition
USING: classes.tuple.private kernel slots.private ;

IN: ui.gestures

: key-gesture? ( object -- ? )
dup tuple?
[ layout-of 7 slot \ key-gesture eq? ] [ drop f ] if ;