MirBSD manpage: XConvertCase(3), XKeycodeToKeysym(3), XKeysymToKeycode(3), XKeysymToString(3), XStringToKeysym(3)

XStringToKeysym(3X11)    XLIB FUNCTIONS     XStringToKeysym(3X11)


     XStringToKeysym, XKeysymToString, XKeycodeToKeysym, XKeysym-
     ToKeycode, XConvertCase - convert keysyms


     KeySym XStringToKeysym(char *string);

     char *XKeysymToString(KeySym keysym);

     KeySym XKeycodeToKeysym(Display *display, KeyCode keycode,
          int index);

     KeyCode XKeysymToKeycode(Display *display, KeySym keysym);

     void XConvertCase(KeySym keysym, KeySym *lower_return,
          KeySym *upper_return);


     display   Specifies the connection to the X server.

     index     Specifies the element of KeyCode vector.

     keycode   Specifies the KeyCode.

     keysym    Specifies the KeySym that is to be searched for or

               Returns the lowercase form of keysym, or keysym.

     string    Specifies the name of the KeySym that is to be

               Returns the uppercase form of keysym, or keysym.


     Standard KeySym names are obtained from <X11/keysymdef.h> by
     removing the XK_ prefix from each name. KeySyms that are not
     part of the Xlib standard also may be obtained with this
     function. The set of KeySyms that are available in this
     manner and the mechanisms by which Xlib obtains them is

     If the KeySym name is not in the Host Portable Character
     Encoding, the result is implementation-dependent. If the
     specified string does not match a valid KeySym,
     XStringToKeysym returns NoSymbol.

     The returned string is in a static area and must not be
     modified. The returned string is in the Host Portable Char-
     acter Encoding. If the specified KeySym is not defined,

XFree86                   Version 4.5.0                         1

XStringToKeysym(3X11)    XLIB FUNCTIONS     XStringToKeysym(3X11)

     XKeysymToString returns a NULL.

     The XKeycodeToKeysym function uses internal Xlib tables and
     returns the KeySym defined for the specified KeyCode and the
     element of the KeyCode vector. If no symbol is defined,
     XKeycodeToKeysym returns NoSymbol.

     If the specified KeySym is not defined for any KeyCode,
     XKeysymToKeycode returns zero.

     The XConvertCase function returns the uppercase and lower-
     case forms of the specified Keysym, if the KeySym is subject
     to case conversion; otherwise, the specified KeySym is
     returned to both lower_return and upper_return. Support for
     conversion of other than Latin and Cyrillic KeySyms is


     Xlib - C Language X Interface

XFree86                   Version 4.5.0                         2

Generated on 2021-12-07 11:07:08 by $MirOS: src/scripts/roff2htm,v 1.103 2021/01/23 20:24:35 tg Exp $ — This product includes material provided by mirabilos.

These manual pages and other documentation are copyrighted by their respective writers; their sources are available at the project’s CVSweb, AnonCVS and other mirrors. The rest is Copyright © 2002–2021 MirBSD.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report — diffs preferred.