


XStringToKeysym(3X11)					XStringToKeysym(3X11)
X11R5									X11R5



NAME
  XStringToKeysym, XKeysymToString, XKeycodeToKeysym, XKeysymToKeycode - con-
  vert keysyms

SYNTAX
  KeySym XStringToKeysym(_s_t_r_i_n_g)
	char *_s_t_r_i_n_g;

  char *XKeysymToString(_k_e_y_s_y_m)
	KeySym _k_e_y_s_y_m;

  KeySym XKeycodeToKeysym(_d_i_s_p_l_a_y, _k_e_y_c_o_d_e, _i_n_d_e_x)
	Display	*_d_i_s_p_l_a_y;
	KeyCode	_k_e_y_c_o_d_e;
	int _i_n_d_e_x;

  KeyCode XKeysymToKeycode(_d_i_s_p_l_a_y, _k_e_y_s_y_m)
	Display	*_d_i_s_p_l_a_y;
	KeySym _k_e_y_s_y_m;

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.

  _s_t_r_i_n_g    Specifies the name of the KeySym that is to	be converted.

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.  Note that the set of KeySysms
  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 speci-
  fied 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.




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































































