Main Page | Modules | Class List | File List | Class Members | File Members

XKB event handling and management


Defines

#define XKLL_MANAGE_WINDOW_STATES   0x01
#define XKLL_TRACK_KEYBOARD_STATE   0x02
#define XKLL_MANAGE_LAYOUTS   0x04

Functions

int XklStartListen (int what)
int XklStopListen (void)
int XklPauseListen (void)
int XklResumeListen (void)
Bool XklGrabKey (int keycode, unsigned modifiers)
Bool XklUngrabKey (int keycode, unsigned modifiers)
int XklFilterEvents (XEvent *evt)
void XklAllowOneSwitchToSecondaryGroup (void)

Define Documentation

#define XKLL_MANAGE_LAYOUTS   0x04
 

The listener process should help backend to maintain the configuration (manually switch layouts etc).

#define XKLL_MANAGE_WINDOW_STATES   0x01
 

The listener process should handle the per-window states and all the related activity

#define XKLL_TRACK_KEYBOARD_STATE   0x02
 

Just track the state and pass it to the application above.


Function Documentation

void XklAllowOneSwitchToSecondaryGroup void   ) 
 

Allows to switch (once) to the secondary group

int XklFilterEvents XEvent *  evt  ) 
 

Processes X events. Should be included into the main event cycle of an application. One of the most important functions.

Parameters:
evt is delivered X event
Returns:
0 if the event it processed - 1 otherwise
See also:
XklStartListen

Bool XklGrabKey int  keycode,
unsigned  modifiers
 

Grabs some key

Parameters:
keycode is a keycode
modifiers is a bitmask of modifiers
Returns:
True on success

int XklPauseListen void   ) 
 

Temporary pauses listening for XKB-related events

Returns:
0

int XklResumeListen void   ) 
 

Resumes listening for XKB-related events

Returns:
0

int XklStartListen int  what  ) 
 

Starts listening for XKB-related events

Parameters:
what any combination of XKLL_* constants
Returns:
0

int XklStopListen void   ) 
 

Stops listening for XKB-related events

Returns:
0

Bool XklUngrabKey int  keycode,
unsigned  modifiers
 

Ungrabs some key

Parameters:
keycode is a keycode
modifiers is a bitmask of modifiers
Returns:
True on success


Generated on Thu Dec 30 23:19:19 2004 for libxklavier by  doxygen 1.3.9.1