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

NAME

6       XkbAddGeomKey - Add one key at the end of an existing row of keys
7

SYNOPSIS

9       XkbKeyPtr XkbAddGeomKey (XkbRowPtr row);
10

ARGUMENTS

12       - row  row to be updated
13

DESCRIPTION

15       Xkb  provides  functions  to  add a single new element to the top-level
16       keyboard geometry. In each case the num_ * fields of the  corresponding
17       structure  is  incremented by 1. These functions do not change sz_* un‐
18       less there is no more room in the array. Some of these  functions  fill
19       in  the values of the element's structure from the arguments. For other
20       functions, you must explicitly write code to fill the structure's  ele‐
21       ments.
22
23       The  top-level geometry description includes a list of geometry proper‐
24       ties.  A geometry property  associates  an  arbitrary  string  with  an
25       equally  arbitrary  name. Programs that display images of keyboards can
26       use geometry properties as hints, but they are not interpreted by  Xkb.
27       No other geometry structures refer to geometry properties.
28
29       Keys  are  grouped into rows.  XkbAddGeomKey adds one key to the end of
30       the specified row.  The key is allocated and zeroed.  XkbAddGeomKey re‐
31       turns  NULL if row is empty or if it was not able to allocate space for
32       the key. To allocate space for an arbitrary number of keys  to  a  row,
33       use XkbAllocGeomKeys.
34

STRUCTURES

36           typedef struct _XkbKey {              /∗ key in a row */
37               XkbKeyNameRec   name;             /∗ key name */
38               short           gap;              /∗ gap in mm/10 from previous key in row */
39               unsigned char   shape_ndx;        /∗ index of shape for key */
40               unsigned char   color_ndx;        /∗ index of color for key body */
41           } XkbKeyRec, *XkbKeyPtr;
42
43

SEE ALSO

45       XkbAllocGeomKeys(3)
46
47
48
49X Version 11                     libX11 1.7.0                 XkbAddGeomKey(3)
Impressum