void AG_BindGlobalKey (AG_KeySym key, AG_KeyMod mod, void (*fn)(void))
void AG_BindGlobalKeyEv (AG_KeySym key, AG_KeyMod mod, void (*fn)(AG_Event *))
void AG_BindStdGlobalKeys (void)
int AG_UnbindGlobalKey (AG_KeySym key, AG_KeyMod mod)
void AG_ClearGlobalKeys (void)
|
AG_BindGlobalKey() binds the specified routine to the given key combination.
Keys are represented by
AG_KeySym enums, and acceptable values for
sym and
mod arguments are listed under
AG_KeySym(3) and
AG_KeyMod(3).
The
AG_BindGlobalKeyEv() variant accepts an
AG_Event(3) style function.
Note that arguments of
AG_KEY_ANY and
AG_KEYMOD_ANY are acceptable, in which case any key or key modifier will be matched.
The
AG_BindStdGlobalKeys() routine sets up the standard key bindings:
AG_UnbindGlobalKey() removes the given key mapping.
AG_ClearGlobalKeys() removes all existing key mappings.
|