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

NextPrevUpTopContentsIndex

gesture-spec-to-character

Function
Summary

Returns the character corresponding to a Gesture Spec object.

Package

system

Signature

gesture-spec-to-character gspec &key errorp => char

Arguments

gspec

A Gesture Spec object

Values

char

A Lisp character.

errorp

A generalized boolean.

Description

The function gesture-spec-to-character returns the Lisp character object corresponding to the Gesture Spec object gspec.

A Gesture Spec with modifiers or data which is not an integer cannot be converted to a character. When supplied such a Gesture Spec, gesture-spec-to-character either signals an error (if errorp is true), or returns nil (if errorp is nil). The default value of errorp is t.

gesture-spec-accelerator-bit is ignored.

Compatibility note

In LispWorks 6.1 and earlier versions, gesture-spec-to-character allows modifiers and does not error when the data is not an integer. LispWorks 7.0 and later versions do not support character bits, therefore if gspec contains non-zero modifier bits, gesture-spec-to-character signals an error.

See also

coerce-to-gesture-spec
make-gesture-spec


LispWorks User Guide and Reference Manual - 20 Sep 2017

NextPrevUpTopContentsIndex