commands ( class -- hash )
Factor handbook » UI framework » Implementing new gadgets » UI gestures » Commands

Prev:define-command-map ( class group blurb pairs -- )
Next:command-map


Vocabulary
ui.commands

Inputs
classa class word


Outputs
hasha hashtable


Word description
Outputs a hashtable mapping command map names to command-map instances.

Definition


: commands ( class -- hash )
dup "commands" word-prop
[ ] [ H{ } clone [ "commands" set-word-prop ] keep ] ?if ;