1XkbResizeKeySyms(3)              XKB FUNCTIONS             XkbResizeKeySyms(3)
2
3
4

NAME

6       XkbResizeKeySyms - Change the number of symbols bound to a key
7

SYNOPSIS

9       KeySym * XkbResizeKeySyms (XkbDescRec *xkb, int key, int needed);
10

ARGUMENTS

12       xkb    keyboard description to be changed
13
14       key    keycode for key to modify
15
16       needed new number of keysyms required for key
17

DESCRIPTION

19       XkbResizeKeySyms  reserves  the space needed for needed keysyms and re‐
20       turns a pointer to the beginning  of  the  new  array  that  holds  the
21       keysyms.  It  adjusts the offset field of the key_sym_map entry for the
22       key if necessary and can also change the syms, num_syms, and  size_syms
23       fields  of  xkb->map  if  it is necessary to reallocate the syms array.
24       XkbResizeKeySyms does not modify either the width or number  of  groups
25       associated with the key.
26
27       If  needed  is  greater than the current number of keysyms for the key,
28       XkbResizeKeySyms initializes all new keysyms in the array to NoSymbol.
29
30       Because the number of symbols needed by a key is normally  computed  as
31       width  *  number of groups, and XkbResizeKeySyms does not modify either
32       the width or number of groups for the key, a  discrepancy  exists  upon
33       return  from  XkbResizeKeySyms  between  the  space  allocated  for the
34       keysyms and the number required. The unused entries in the list of sym‐
35       bols returned by XkbResizeKeySyms are not preserved across future calls
36       to any of the map editing functions, so you must update the key  symbol
37       mapping  (which updates the width and number of groups for the key) be‐
38       fore calling another allocator function. A call to  XkbChangeTypesOfKey
39       will update the mapping.
40
41       If  any  allocation  errors  occur while resizing the number of symbols
42       bound to the key, XkbResizeKeySyms returns NULL.
43

SEE ALSO

45       XkbChangeTypesOfKey(3), XkbResizeKeyActions(3)
46

NOTES

48       A change to the number of symbols bound to a key should be  accompanied
49       by  a  change  in the number of actions bound to a key. Refer to XkbRe‐
50       sizeKeyActions for more information on changing the number  of  actions
51       bound to a key.
52
53
54
55X Version 11                     libX11 1.8.7              XkbResizeKeySyms(3)
Impressum