1XtSetKeyTranslator(3)            XT FUNCTIONS            XtSetKeyTranslator(3)
2
3
4

NAME

6       XtSetKeyTranslator, XtTranslateKeycode, XtRegisterCaseConverter,
7       XtConvertCase - convert KeySym to KeyCodes
8

SYNTAX

10       #include <X11/Intrinsic.h>
11
12       void XtSetKeyTranslator(Display *display, XtKeyProc proc);
13
14       void XtTranslateKeycode(Display *display, KeyCode keycode, Modifiers
15              modifiers, Modifiers *modifiers_return, KeySym *keysym_return);
16
17       void XtRegisterCaseConverter(Display *display, XtCaseProc proc, KeySym
18              start, KeySym stop);
19
20       void XtConvertCase(Display *display, KeySym keysym, KeySym *lower_re‐
21              turn, KeySym *upper_return);
22

ARGUMENTS

24       display   Specifies the display.
25
26       keycode   Specifies the KeyCode to translate.
27
28       keysym    Specifies the KeySym to convert.
29
30       keysym_return
31                 Returns the resulting KeySym.
32
33       lower_return
34                 Returns the lowercase equivalent of the KeySym.
35
36       upper_return
37                 Returns the uppercase equivalent of the KeySym.
38
39       modifiers Specifies the modifiers to the KeyCode.
40
41       modifiers_return
42                 Returns a mask that indicates the modifiers actually used to
43                 generate the KeySym.
44
45       proc      Specifies the procedure that is to perform key translations
46                 or conversions.
47
48       start     Specifies the first KeySym for which this converter is valid.
49
50       stop      Specifies the last KeySym for which this converter is valid.
51

DESCRIPTION

53       The XtSetKeyTranslator function sets the specified procedure as the
54       current key translator.  The default translator is XtTranslateKey, an
55       XtKeyProc that uses Shift and Lock modifiers with the interpretations
56       defined by the core protocol.  It is provided so that new translators
57       can call it to get default KeyCode-to-KeySym translations and so that
58       the default translator can be reinstalled.
59
60       The XtTranslateKeycode function passes the specified arguments directly
61       to the currently registered KeyCode to KeySym translator.
62
63       The XtRegisterCaseConverter registers the specified case converter.
64       The start and stop arguments provide the inclusive range of KeySyms for
65       which this converter is to be called.  The new converter overrides any
66       previous converters for KeySyms in that range.  No interface exists to
67       remove converters; you need to register an identity converter.  When a
68       new converter is registered, the Intrinsics refreshes the keyboard
69       state if necessary.  The default converter understands case conversion
70       for all KeySyms defined in the core protocol.
71
72       The XtConvertCase function calls the appropriate converter and returns
73       the results.  A user-supplied XtKeyProc may need to use this function.
74

SEE ALSO

76       X Toolkit Intrinsics - C Language Interface
77       Xlib - C Language X Interface
78
79
80
81X Version 11                      libXt 1.2.1            XtSetKeyTranslator(3)
Impressum