1XkbResizeKeySyms(3) XKB FUNCTIONS XkbResizeKeySyms(3)
2
3
4
6 XkbResizeKeySyms - Change the number of symbols bound to a key
7
9 KeySym * XkbResizeKeySyms (XkbDescRec *xkb, int key, int needed);
10
12 - xkb keyboard description to be changed
13
14 - key keycode for key to modify
15
16 - needed
17 new number of keysyms required for key
18
20 XkbResizeKeySyms reserves the space needed for needed keysyms and
21 returns a pointer to the beginning of the new array that holds the
22 keysyms. It adjusts the offset field of the key_sym_map entry for the
23 key if necessary and can also change the syms, num_syms, and size_syms
24 fields of xkb->map if it is necessary to reallocate the syms array.
25 XkbResizeKeySyms does not modify either the width or number of groups
26 associated with the key.
27
28 If needed is greater than the current number of keysyms for the key,
29 XkbResizeKeySyms initializes all new keysyms in the array to NoSymbol.
30
31 Because the number of symbols needed by a key is normally computed as
32 width * number of groups, and XkbResizeKeySyms does not modify either
33 the width or number of groups for the key, a discrepancy exists upon
34 return from XkbResizeKeySyms between the space allocated for the
35 keysyms and the number required. The unused entries in the list of sym‐
36 bols returned by XkbResizeKeySyms are not preserved across future calls
37 to any of the map editing functions, so you must update the key symbol
38 mapping (which updates the width and number of groups for the key)
39 before calling another allocator function. A call to XkbChangeType‐
40 sOfKey will update the mapping.
41
42 If any allocation errors occur while resizing the number of symbols
43 bound to the key, XkbResizeKeySyms returns NULL.
44
46 XkbChangeTypesOfKey(3), XkbResizeKeyActions(3)
47
49 A change to the number of symbols bound to a key should be accompanied
50 by a change in the number of actions bound to a key. Refer to XkbRe‐
51 sizeKeyActions for more information on changing the number of actions
52 bound to a key.
53
54
55
56X Version 11 libX11 1.3.4 XkbResizeKeySyms(3)