12.07.2015 Views

Xlib − C Language X Interface

Xlib − C Language X Interface

Xlib − C Language X Interface

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Xlib</strong> − C LibraryX11, Release 6.7 DRAFTvoid XConvertCase(keysym, lower_return, upper_return)KeySym keysym;KeySym *lower_return;KeySym *upper_return;keysymlower_returnupper_returnSpecifies the KeySym that is to be converted.Returns the lowercase form of keysym, or keysym.Returns the uppercase form of keysym, or keysym.The XConvertCase function returns the uppercase and lowercase forms of the specified Keysym,if the KeySym is subject to case conversion; otherwise, the specified KeySym is returned to bothlower_return and upper_return. Support for conversion of other than Latin and Cyrillic KeySymsis implementation-dependent.KeySyms have string names as well as numeric codes. To convert the name of the KeySym to theKeySym code, use XStringToKeysym.KeySym XStringToKeysym (string)char *string;stringSpecifies the name of the KeySym that is to be converted.Standard KeySym names are obtained from byremoving the XK_ prefixfrom each name. KeySyms that are not part of the <strong>Xlib</strong> standard also may be obtained with thisfunction. The set of KeySyms that are available in this manner and the mechanisms by which<strong>Xlib</strong> obtains them is implementation-dependent.If the KeySym name is not in the Host Portable Character Encoding, the result is implementationdependent.If the specified string does not match a valid KeySym, XStringToKeysym returnsNoSymbol.To convert a KeySym code to the name of the KeySym, use XKeysymToString.char *XKeysymToString (keysym)KeySym keysym;keysymSpecifies the KeySym that is to be converted.The returned string is in a static area and must not be modified. The returned string is in the HostPortable Character Encoding. If the specified KeySym is not defined, XKeysymToString returnsaNULL.16.1.1. KeySym Classification MacrosYoumay want to test if a KeySym is, for example, on the keypad or on one of the function keys.Youcan use KeySym macros to perform the following tests.402

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!