1XkbGetControls(3) XKB FUNCTIONS XkbGetControls(3)
2
3
4
6 XkbGetControls - Finds the current state of Xkb server controls
7
9 Status XkbGetControls (Display *display, unsigned long which, XkbDe‐
10 scPtr xkb);
11
13 display
14 connection to X server
15
16 which mask of controls requested
17
18 xkb keyboard description for controls information
19
21 XkbGetControls queries the server for the requested control informa‐
22 tion, waits for a reply, and then copies the server's values for the
23 requested information into the ctrls structure of the xkb argument.
24 Only those components specified by the which parameter are copied.
25 Valid values for which are any combination of the masks listed in Table
26 1 that have "ok" in the which column.
27
28 Table 1 shows the actual values for the individual mask bits used to
29 select controls for modification and to enable and disable the control.
30 Note that the same mask bit is used to specify general modifications to
31 the parameters used to configure the control (which), and to enable and
32 disable the control (enabled_ctrls). The anomalies in Table 1 (no "ok"
33 in column) are for controls that have no configurable attributes; and
34 for controls that are not boolean controls and therefore cannot be en‐
35 abled or disabled.
36
37
38 Table 1 Controls Mask Bits
39 ───────────────────────────────────────────────────────────────────────────
40 Mask Bit which or enabled Value
41 changed_ctrls _ctrls
42 ───────────────────────────────────────────────────────────────────────────
43 XkbRepeatKeysMask ok ok (1L<<0)
44 XkbSlowKeysMask ok ok (1L<<1)
45 XkbBounceKeysMask ok ok (1L<<2)
46 XkbStickyKeysMask ok ok (1L<<3)
47 XkbMouseKeysMask ok ok (1L<<4)
48 XkbMouseKeysAccelMask ok ok (1L<<5)
49 XkbAccessXKeysMask ok ok (1L<<6)
50 XkbAccessXTimeoutMask ok ok (1L<<7)
51 XkbAccessXFeedbackMask ok ok (1L<<8)
52 XkbAudibleBellMask ok (1L<<9)
53 XkbOverlay1Mask ok (1L<<10)
54 XkbOverlay2Mask ok (1L<<11)
55 XkbIgnoreGroupLockMask ok (1L<<12)
56 XkbGroupsWrapMask ok (1L<<27)
57 XkbInternalModsMask ok (1L<<28)
58 XkbIgnoreLockModsMask ok (1L<<29)
59 XkbPerKeyRepeatMask ok (1L<<30)
60 XkbControlsEnabledMask ok (1L<<31)
61 XkbAccessXOptionsMask ok ok (XkbStickyKeysMask |
62 XkbAccessXFeedbackMask)
63 XkbAllBooleanCtrlsMask ok (0x00001FFF)
64 XkbAllControlsMask ok (0xF8001FFF)
65
66
67 If xkb->ctrls is NULL, XkbGetControls allocates and initializes it be‐
68 fore obtaining the values specified by which. If xkb->ctrls is not
69 NULL, XkbGetControls modifies only those portions of xkb->ctrls corre‐
70 sponding to the values specified by which.
71
72 XkbGetControls returns Success if successful; otherwise, it returns
73 BadAlloc if it cannot obtain sufficient storage, BadMatch if xkb is
74 NULL or which is empty, or BadImplementation.
75
76 To free the ctrls member of a keyboard description, use XkbFreeCon‐
77 trols.
78
79 The num_groups field in the ctrls structure is always filled in by Xk‐
80 bGetControls, regardless of which bits are selected by which.
81
83 Success The XkbGetControls function returns Success if success‐
84 ful.
85
87 BadAlloc Unable to allocate storage
88
89 BadImplementation
90 Invalid reply from server
91
92 BadMatch A compatible version of Xkb was not available in the
93 server or an argument has correct type and range, but is
94 otherwise invalid
95
96
98 XkbFreeControls(3)
99
100
101
102X Version 11 libX11 1.8.7 XkbGetControls(3)