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