1XkbAddGeomKeyAlias(3) XKB FUNCTIONS XkbAddGeomKeyAlias(3)
2
3
4
6 XkbAddGeomKeyAlias - Add one key alias to an existing keyboard geometry
7 description
8
10 XkbKeyAliasPtr XkbAddGeomKeyAlias (XkbGeometryPtr geom, _Xconst char
11 *alias, _Xconst char *real);
12
14 geom geometry to be updated
15
16 alias alias to be added
17
18 real real name to be bound to the new alias
19
21 Xkb provides functions to add a single new element to the top-level
22 keyboard geometry. In each case the num_ * fields of the corresponding
23 structure is incremented by 1. These functions do not change sz_* un‐
24 less there is no more room in the array. Some of these functions fill
25 in the values of the element's structure from the arguments. For other
26 functions, you must explicitly write code to fill the structure's ele‐
27 ments.
28
29 The top-level geometry description includes a list of geometry proper‐
30 ties. A geometry property associates an arbitrary string with an
31 equally arbitrary name. Programs that display images of keyboards can
32 use geometry properties as hints, but they are not interpreted by Xkb.
33 No other geometry structures refer to geometry properties.
34
35 XkbAddGeomKeyAlias adds one key alias with the value alias to the geom‐
36 etry geom, and associates it with the key whose real name is real. Xk‐
37 bAddGeomKeyAlias returns NULL if any of the parameters is empty or if
38 it was not able to allocate space for the alias. To allocate space for
39 an arbitrary number of aliases, use the XkbAllocGeomKeyAliases func‐
40 tion.
41
43 typedef struct {
44 char real[XkbKeyNameLength]; /* this key name must be in the keys array */
45 char alias[XkbKeyNameLength]; /* symbolic key name as alias for the key */
46 } XkbKeyAliasRec,*XkbKeyAliasPtr;
47
49 XkbAllocGeomKeyAliases(3)
50
51
52
53X Version 11 libX11 1.8.7 XkbAddGeomKeyAlias(3)