1XkbFreeControls(3) XKB FUNCTIONS XkbFreeControls(3)
2
3
4
6 XkbFreeControls - Frees memory used by the ctrls member of an XkbDe‐
7 scRec structure
8
10 void XkbFreeControls (XkbDescPtr xkb, unsigned int which, Bool
11 free_all);
12
14 xkb Xkb description in which to free controls components
15
16 which mask of components of ctrls to free
17
18 free_all
19 True => free everything + ctrls itself
20
22 XkbFreeControls frees the specified components of the ctrls field in
23 the xkb keyboard description and sets the corresponding structure com‐
24 ponent values to NULL or zero. The which mask specifies the fields of
25 ctrls to be freed and can contain any of the controls components speci‐
26 fied in Table 1.
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 the table (no
33 "ok" in column) are for controls that have no configurable attributes;
34 and for controls that are not boolean controls and therefore cannot be
35 enabled 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 If free_all is True, XkbFreeControls frees every non-NULL structure
67 component in the controls, frees the XkbControlsRec structure refer‐
68 enced by the ctrls member of xkb, and sets ctrls to NULL.
69
70
71
72X Version 11 libX11 1.8.7 XkbFreeControls(3)