NextPrevUpTopContentsIndex

make-gesture-spec

Function
Summary

Create a Gesture Spec object.

Package

system

Signature

make-gesture-spec data modifiers => gspec

Arguments

data

A non-negative integer less than char-code-limit , or a Gesture Spec keyword, or nil .

modifiers

A non-negative integer less than 64, or nil .

Values

gspec

A Gesture Spec object

Description

The function make-gesture-spec returns a new Gesture Spec object gspec. This can be used to represent a keystroke consisting of the key indicated by data , modified by the modifier keys indicated by modifiers .

If data is an integer, it represents the key (code-char data ) . If data is a keyword, it must be one of the known Gesture Spec keywords and represents the key with the same name. If data is nil , then gspec has a wild data component.

If modifers is an integer, it represents modifer keys according to the values gesture-spec-accelerator-bit, gesture-spec-control-bit, gesture-spec-hyper-bit, gesture-spec-meta-bit, gesture-spec-shift-bit, and gesture-spec-super-bit. If modifiers is nil , then gspec has a wild modifiers component.

Wild Gesture Specs can be useful when specifying an input model for a capi:output-pane .

Example
(sys:make-gesture-spec 
 97
 (logior sys:gesture-spec-control-bit
         sys:gesture-spec-meta-bit))
See also

gesture-spec-accelerator-bit
gesture-spec-control-bit
gesture-spec-data
gesture-spec-hyper-bit
gesture-spec-meta-bit
gesture-spec-modifiers
gesture-spec-p
gesture-spec-shift-bit
gesture-spec-super-bit
print-pretty-gesture-spec


LispWorks Reference Manual - 23 Jul 2004

NextPrevUpTopContentsIndex