NAME

XStringToKeysym, XKeysymToString, XKeycodeToKeysym, XKeysymToKeycode, XConvertCase - convert keysyms

SYNTAX

KeySym XStringToKeysym(char *_s_t_r_i_n_g); char *XKeysymToString(KeySym _k_e_y_s_y_m); KeySym XKeycodeToKeysym(Display *_d_i_s_p_l_a_y, KeyCode _k_e_y_c_o_d_e, int _i_n_d_e_x); KeyCode XKeysymToKeycode(Display *_d_i_s_p_l_a_y, KeySym _k_e_y_s_y_m); void XConvertCase(KeySym _k_e_y_s_y_m, KeySym *_l_o_w_e_r___r_e_t_u_r_n, KeySym *_u_p_p_e_r___r_e_t_u_r_n);

ARGUMENTS

_d_i_s_p_l_a_y Specifies the connection to the X server.
_i_n_d_e_x Specifies the element of KeyCode vector.
_k_e_y_c_o_d_e Specifies the KeyCode.
_k_e_y_s_y_m Specifies the KeySym that is to be searched for or converted.
_l_o_w_e_r___r_e_t_u_r_n Returns the lowercase form of keysym, or keysym.
_s_t_r_i_n_g Specifies the name of the KeySym that is to be converted.
_u_p_p_e_r___r_e_t_u_r_n Returns the uppercase form of keysym, or keysym.

DESCRIPTION

Standard KeySym names are obtained from <_X_1_1_/_k_e_y_s_y_m_d_e_f_._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 implementation-dependent.

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, _X_S_t_r_i_n_g_T_o_K_e_y_s_y_m returns _N_o_S_y_m_b_o_l.

The returned string is in a static area and must not be modified. The returned string is in the Host Portable Character Encoding. If the specified KeySym is not defined, _X_K_e_y_s_y_m_T_o_S_t_r_i_n_g returns a NULL.

The _X_K_e_y_c_o_d_e_T_o_K_e_y_s_y_m 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, _X_K_e_y_c_o_d_e_T_o_K_e_y_s_y_m returns _N_o_S_y_m_b_o_l.

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

The _X_C_o_n_v_e_r_t_C_a_s_e 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 both lower_return and upper_return. Support for conversion of other than Latin and Cyrillic KeySyms is implementation-dependent.

SEE ALSO

XLookupKeysym(3X11)
_X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e