Laxkit  0.0.7.1
Public Member Functions | Protected Attributes
ShortcutFilter Class Reference

Av event filter windows can use to detect keyboard shortcuts. More...

Inheritance diagram for ShortcutFilter:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual int ClearShortcut (unsigned int key, unsigned int state)
virtual int ClearShortcut (const char *keys, unsigned int *states, int n)
virtual unsigned int Shortcut (unsigned int key, unsigned int state, unsigned int action, unsigned int mode)
virtual unsigned int ShortcutChain (const char *keys, unsigned int *states, int n, unsigned int action, unsigned int mode)
virtual int eventFilter (EventData **events_ret, EventData *e, anXWindow *window)
 Filter events for shortcuts.
- Public Member Functions inherited from EventFilter
virtual int eventFilter (EventData **events_ret, EventData *event, anXWindow *target, int &isinput)=0

Protected Attributes

PtrStack< ShortcutDef > shortcuts
int index
int keyindex
int deviceid

Additional Inherited Members

- Public Attributes inherited from EventFilter
EventFilternext

Detailed Description

Av event filter windows can use to detect keyboard shortcuts.


Member Function Documentation

int ShortcutFilter::eventFilter ( EventData **  events_ret,
EventData *  e,
anXWindow *  window 
)
virtual

Filter events for shortcuts.

Returns 0 for event ignored. events_ret will be set to NULL. Return -1 for event absorbed, but they may be released in the future. Return 1 for events released. Return 2 for shortcut found and SimpleMessage(NULL,action,0,0,0, LAX_ShortcutEvent) is returned.

The previous contents of events_ret are overwritten.


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

Mon Feb 17 2014 11:52:58, Laxkit