XKB FUNCTIONS XkbTranslateKeySym(3x11)
NAME
XkbTranslateKeySym - Find the string and symbol associated
with a keysym for a given keyboard stateSYNOPSIS
cc [ flag... ] file... -lX11 [ library... ]
int XkbTranslateKeySym (Display *dpy, KeySym *sym_inout,
unsigned int mods, char *buf, int nbytes, int*extra_rtrn);
ARGUMENTS- dpy
connection to X server- sym_inout
symbol to be translated; result of translation- mods
modifiers to apply to sym_inout
- buf
buffer into which returned string is written- nbytes
size of buffer in bytes- extra_rtrn
number of bytes overflowDESCRIPTION
XkbTranslateKeySym applies the transformations specified in
mods to the symbol specified by sym_inout. It returns in buf
the string, if any, associated with the keysym for the current locale. If the transformations in mods changes thekeysym, sym_inout is updated accordingly. If the string
returned is larger than nbytes, a count of bytes that doesnot fit into the buffer is returned in extra_rtrn.
XkbTranslateKeySym returns the number of bytes it placed
into buf.RETURN VALUES
buf Returns the string, if any, associated with the keysym for the current locale.ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes: X Version 11 Last change: libX11 1.3.5 1XKB FUNCTIONS XkbTranslateKeySym(3x11)
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Availability | x11/library/libx11 ||_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | See XInitThreads(3X11) |
|_____________________________|_____________________________|
X Version 11 Last change: libX11 1.3.5 2