Application callbacks support


Typedefs

typedef void(*) XklConfigCallback (void *userData)
typedef int(*) XklWinCallback (Window win, Window parent, void *userData)
typedef void(*) XklStateCallback (XklStateChange changeType, int group, Bool restore, void *userData)

Functions

int XklRegisterConfigCallback (XklConfigCallback fun, void *userData)
int XklRegisterWindowCallback (XklWinCallback fun, void *userData)
int XklRegisterStateCallback (XklStateCallback fun, void *userData)

Typedef Documentation

typedef void( *) XklConfigCallback(void *userData)

Used for notifying application of the XKB configuration change.

Parameters:
userData is anything which can be stored into the pointer
See also:
XklRegisterConfigCallback

typedef void( *) XklStateCallback(XklStateChange changeType, int group, Bool restore, void *userData)

Used for notifying application of the window state change.

Parameters:
changeType is a mask of changes
group is a new group
restore is indicator of whether this state is restored from saved state of set as new.
userData is anything which can be stored into the pointer
See also:
XklRegisterConfigCallback

typedef int( *) XklWinCallback(Window win, Window parent, void *userData)

Used for notifying application of new window creation (actually, registration).

Parameters:
win is a new window
parent is a new window's parent
userData is anything which can be stored into the pointer
Returns:
the initial group id for the window (-1 to use the default value)
See also:
XklRegisterConfigCallback

XklSetDefaultGroup

XklGetDefaultGroup


Function Documentation

int XklRegisterConfigCallback ( XklConfigCallback  fun,
void *  userData 
)

Registers user callback. Only one callback can be registered at a time

Parameters:
fun is the function to call
userData is the data to pass
See also:
XklConfigCallback

int XklRegisterStateCallback ( XklStateCallback  fun,
void *  userData 
)

Registers user callback. Only one callback can be registered at a time

Parameters:
fun is the function to call
userData is the data to pass
See also:
XklStateCallback

int XklRegisterWindowCallback ( XklWinCallback  fun,
void *  userData 
)

Registers user callback. Only one callback can be registered at a time

Parameters:
fun is the function to call
userData is the data to pass
See also:
XklWindowCallback


Generated on Thu Feb 22 20:44:55 2007 for libxklavier by  doxygen 1.5.1