home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / man / cat3 / xttranslatekeycode.0 < prev    next >
Encoding:
Text File  |  1996-10-17  |  4.2 KB  |  133 lines

  1.  
  2.  
  3.  
  4. XtSetKeyTranslator(3Xt)       XT FUNCTIONS      XtSetKeyTranslator(3Xt)
  5.  
  6.  
  7. NNAAMMEE
  8.        XtSetKeyTranslator, XtTranslateKeycode, XtRegisterCase-
  9.        Converter, XtConvertCase - convert KeySym to KeyCodes
  10.  
  11. SSYYNNTTAAXX
  12.        void XtSetKeyTranslator(_d_i_s_p_l_a_y, _p_r_o_c)
  13.        Display *_d_i_s_p_l_a_y;
  14.        XtKeyProc _p_r_o_c;
  15.  
  16.        void XtTranslateKeycode(_d_i_s_p_l_a_y, _k_e_y_c_o_d_e, _m_o_d_i_f_i_e_r_s, _m_o_d_i_-
  17.        _f_i_e_r_s___r_e_t_u_r_n, _k_e_y_s_y_m___r_e_t_u_r_n)
  18.        Display *_d_i_s_p_l_a_y;
  19.        KeyCode _k_e_y_c_o_d_e;
  20.        Modifiers _m_o_d_i_f_i_e_r_s;
  21.        Modifiers *_m_o_d_i_f_i_e_r_s___r_e_t_u_r_n;
  22.        KeySym *_k_e_y_s_y_m___r_e_t_u_r_n;
  23.  
  24.        void XtRegisterCaseConverter(_d_i_s_p_l_a_y, _p_r_o_c, _s_t_a_r_t, _s_t_o_p)
  25.        Display *_d_i_s_p_l_a_y;
  26.        XtCaseProc _p_r_o_c;
  27.        KeySym _s_t_a_r_t;
  28.        KeySym _s_t_o_p;
  29.  
  30.        void XtConvertCase(_d_i_s_p_l_a_y, _k_e_y_s_y_m, _l_o_w_e_r___r_e_t_u_r_n,
  31.        _u_p_p_e_r___r_e_t_u_r_n)
  32.        Display *_d_i_s_p_l_a_y;
  33.        KeySym _k_e_y_s_y_m;
  34.        KeySym *_l_o_w_e_r___r_e_t_u_r_n;
  35.        KeySym *_u_p_p_e_r___r_e_t_u_r_n;
  36.  
  37. AARRGGUUMMEENNTTSS
  38.        _d_i_s_p_l_a_y     Specifies the display.
  39.  
  40.        _k_e_y_c_o_d_e     Specifies the KeyCode to translate.
  41.  
  42.        _k_e_y_s_y_m     Specifies the KeySym to convert.
  43.  
  44.        _k_e_y_s_y_m___r_e_t_u_r_n
  45.          Returns the resulting KeySym.
  46.  
  47.        _l_o_w_e_r___r_e_t_u_r_n
  48.          Returns the lowercase equivalent of the KeySym.
  49.  
  50.        _u_p_p_e_r___r_e_t_u_r_n
  51.          Returns the uppercase equivalent of the KeySym.
  52.  
  53.        _m_o_d_i_f_i_e_r_s Specifies the modifiers to the KeyCode.
  54.  
  55.        _m_o_d_i_f_i_e_r_s___r_e_t_u_r_n
  56.          Returns a mask that indicates the modifiers
  57.          actually used to generate the KeySym.
  58.  
  59.        _p_r_o_c     Specifies the procedure that is to perform key
  60.          translations or conversions.
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XtSetKeyTranslator(3Xt)       XT FUNCTIONS      XtSetKeyTranslator(3Xt)
  71.  
  72.  
  73.        _s_t_a_r_t     Specifies the first KeySym for which this con-
  74.          verter is valid.
  75.  
  76.        _s_t_o_p     Specifies the last KeySym for which this con-
  77.          verter is valid.
  78.  
  79. DDEESSCCRRIIPPTTIIOONN
  80.        The _X_t_S_e_t_K_e_y_T_r_a_n_s_l_a_t_o_r function sets the specified proce-
  81.        dure as the current key translator.  The default transla-
  82.        tor is _X_t_T_r_a_n_s_l_a_t_e_K_e_y, an _X_t_K_e_y_P_r_o_c that uses Shift and
  83.        Lock modifiers with the interpretations defined by the
  84.        core protocol.  It is provided so that new translators can
  85.        call it to get default KeyCode-to-KeySym translations and
  86.        so that the default translator can be reinstalled.
  87.  
  88.        The _X_t_T_r_a_n_s_l_a_t_e_K_e_y_c_o_d_e function passes the specified argu-
  89.        ments directly to the currently registered KeyCode to
  90.        KeySym translator.
  91.  
  92.        The _X_t_R_e_g_i_s_t_e_r_C_a_s_e_C_o_n_v_e_r_t_e_r registers the specified case
  93.        converter.  The start and stop arguments provide the
  94.        inclusive range of KeySyms for which this converter is to
  95.        be called.  The new converter overrides any previous con-
  96.        verters for KeySyms in that range.  No interface exists to
  97.        remove converters; you need to register an identity con-
  98.        verter.    When a new converter is registered, the Intrin-
  99.        sics  refreshes the keyboard state if necessary.     The
  100.        default converter understands case conversion for all
  101.        KeySyms defined in the core protocol.
  102.  
  103.        The _X_t_C_o_n_v_e_r_t_C_a_s_e function calls the appropriate converter
  104.        and returns the results.     A user-supplied _X_t_K_e_y_P_r_o_c may
  105.        need to use this function.
  106.  
  107. SSEEEE AALLSSOO
  108.        _X _T_o_o_l_k_i_t _I_n_t_r_i_n_s_i_c_s _- _C _L_a_n_g_u_a_g_e _I_n_t_e_r_f_a_c_e
  109.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. X Version 11           Release 6.1                2
  131.  
  132.  
  133.