XkbLookupKeyBinding(3) XKB FUNCTIONS XkbLookupKeyBinding(3)NAME
XkbLookupKeyBinding - Find the string bound to a key by XRebindKeySym
SYNOPSIS
int XkbLookupKeyBinding ( dpy, sym, state, buf, nbytes, extra_rtrn )
Display * dpy;
KeySym sym;
unsigned int state;
char * buf;
int nbytes;
int * extra_rtrn;
ARGUMENTS
- dpy connection to server
- sym connection to server
- state
state for which string is to be looked up
- buf buffer into which returned string is written
- nbytes
size of buffer in bytes
- extra_rtrn
backfilled with number bytes overflow
DESCRIPTION
XkbLookupKeyBinding is the equivalent of the core XLookupString function.
XRebindKeysym binds an ASCII string to a specified keysym, so that the string and keysym are returned when the key is pressed and a speci-
fied list of modifiers are also being held down. XkbLookupKeyBinding returns in buf the string associated with the keysym sym and modifier
state state. buf is NULL terminated unless there's an overflow. If the string returned is larger than nbytes, a count of bytes that does
not fit into the buffer is returned in extra_rtrn. XkbTranslateKeySym returns the number of bytes that it placed into buf.
SEE ALSO XkbTranslateKeySym(3), XLookupString(3X11), XRebindKeysym(3X11)X Version 11 libX11 1.2.1 XkbLookupKeyBinding(3)
Check Out this Related Man Page
XRebindKeysym() XRebindKeysym()
Name
XRebindKeysym - rebind a keysym to a string for client.
Synopsis
XRebindKeysym(display, keysym, mod_list, mod_count, string,
num_bytes)
Display *display;
KeySym keysym;
KeySym *mod_list;
int mod_count;
unsigned char *string;
int num_bytes;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
keysym Specifies the keysym to be rebound.
mod_list Specifies a pointer to an array of keysyms that are being used as modifiers.
mod_count Specifies the number of modifiers in the modifier list.
string Specifies a pointer to the string that is to be copied and returned by XLookupString() in response to later events.
num_bytes Specifies the length of the string.
Description
XRebindKeysym() binds the string to the specified keysym, so that string and keysym are returned by XLookukpString when that key is pressed
and the modifiers specified in mod_list are also being held down. This function rebinds the meaning of a keysym for a client. It does not
redefine the keycode in the server but merely provides an easy way for long strings to be attached to keys. No text conversions are per-
formed; the client is responsible for supplying appropriately encoded strings. Note that you are allowed to rebind a keysym that may not
exist.
See Volume One, Chapter 9, The Keyboard and Pointer, for a description of keysyms and keyboard mapping.
See Also
XChangeKeyboardMapping(), XDeleteModifiermapEntry(), XFreeModifiermap(), XGetKeyboardMapping(), XGetModifierMapping(), XInsertModi-
fiermapEntry(), XKeycodeToKeysym(), XKeysymToKeycode(), XKeysymToString(), XLookupKeysym(), XLookupString(), XNewModifiermap(),
XQueryKeymap(), XRefreshKeyboardMapping(), XSetModifierMapping(), XStringToKeysym().
Xlib - Keyboard XRebindKeysym()