Laxkit  0.0.7.1
Public Member Functions | Public Attributes
Laxkit::ShortcutDef Class Reference

List of all members.

Public Member Functions

 ShortcutDef (unsigned int key, unsigned int state, int a, int m=-1)
virtual int match (unsigned int key, unsigned int state)
 Return 0 for no match, or 1 or more for level the key and state matches.

Public Attributes

KeyInfokeys
int mode
int action

Constructor & Destructor Documentation

Laxkit::ShortcutDef::ShortcutDef ( unsigned int  key,
unsigned int  state,
int  m,
int  a = -1 
)

If key!=0, then define a single key shortcut.


Member Function Documentation

int Laxkit::ShortcutDef::match ( unsigned int  key,
unsigned int  state 
)
virtual

Return 0 for no match, or 1 or more for level the key and state matches.

If keys is a sequence, scan down the sequence. 1 is first key in sequence, 2 is second, etc.

References Laxkit::KeyInfo::state.

Referenced by Laxkit::ShortcutHandler::FindShortcutIndex().


The documentation for this class was generated from the following files:

Mon Feb 17 2014 11:53:00, Laxkit