All Manuals > LispWorks® User Guide and Reference Manual > 47 The SYSTEM Package

gesture-spec System Class

Summary

A class for input gestures.

Package

system

Superclasses

t

Readers

gesture-spec-data
gesture-spec-modifiers

Description

Instances of the system class gesture-spec are used to represent input gestures. A gesture-spec represents either a character or a keystroke like F6 and potential modifiers like Shift and Control. They are produced by LispWorks itself in response to user input and passed to user callbacks. They can also be made explictly by make-gesture-spec and coerce-to-gesture-spec.

gesture-spec-data returns the data of the gesture-spec. If the gesture-spec represents a character, gesture-spec-data returns the char-code of this character. If the gesture-spec represents a keystroke, gesture-spec-data returns a keyword such as :f6 representing this key. See make-gesture-spec for a full list of possible keywords.

gesture-spec-modifiers returns an integer representing the modifiers in the gesture-spec. The integer is a combination by logior of some (or none) of the constants gesture-spec-accelerator-bit, gesture-spec-control-bit, gesture-spec-meta-bit, gesture-spec-hyper-bit, gesture-spec-shift-bit and gesture-spec-super-bit.

Compatibility note

The concept of gesture specs existed prior to LispWorks 8.0, but gesture-spec was an internal undocumented symbol.

See also

make-gesture-spec
coerce-to-gesture-spec
print-pretty-gesture-spec
gesture-spec-p
coerce-to-gesture-spec
gesture-spec-accelerator-bit
gesture-spec-control-bit
gesture-spec-meta-bit
gesture-spec-hyper-bit
gesture-spec-shift-bit
gesture-spec-super-bit


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:31:02