define-command-map ( class group blurb pairs -- )
Factor handbook » UI framework » Implementing new gadgets » UI gestures » Commands

Prev:define-command ( word hash -- )
Next:commands ( class -- hash )


Vocabulary
ui.commands

Inputs
classa class word
groupa string
blurba string or f
pairsa sequence of gesture/word pairs


Outputs
None

Word description
Defines a command map on the specified gadget class. The blurb is an optional description. The pairs parameter is a sequence of pairs { gesture word }. The gesture may be f if you are defining a "toolbar" group. The words must be valid commands; see define-command.

Notes
Only one of define-command-map and set-gestures can be used on a given gadget class, since each word will overwrite the other word's definitions.

Definition