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

NAME

6       XkbAddGeomRow - Add a row to a section
7

SYNOPSIS

9       XkbRowPtr XkbAddGeomRow (XkbSectionPtr section, int sz_keys);
10

ARGUMENTS

12       - section
13              section to be updated
14
15       - sz_keys
16              number of keys to be reserved
17

DESCRIPTION

19       Xkb  provides  functions  to  add a single new element to the top-level
20       keyboard geometry. In each case the num_ * fields of the  corresponding
21       structure  is  incremented by 1. These functions do not change sz_* un‐
22       less there is no more room in the array. Some of these  functions  fill
23       in  the values of the element's structure from the arguments. For other
24       functions, you must explicitly write code to fill the structure's  ele‐
25       ments.
26
27       The  top-level geometry description includes a list of geometry proper‐
28       ties.  A geometry property  associates  an  arbitrary  string  with  an
29       equally  arbitrary  name. Programs that display images of keyboards can
30       use geometry properties as hints, but they are not interpreted by  Xkb.
31       No other geometry structures refer to geometry properties.
32
33       One  of  the  components  of a keyboard geometry section is one or more
34       rows of keys.  XkbAddGeomRow adds one row  to  the  specified  section.
35       The  newly  created row contains space for the number of keys specified
36       in sz_keys.  They are allocated and zeroed,  but  otherwise  uninitial‐
37       ized.   XkbAddGeomRow returns NULL if any of the parameters is empty or
38       if it was not able to allocate space for the row. To allocate space for
39       an  arbitrary  number  of  rows  to a section, use the XkbAllocGeomRows
40       function.
41

STRUCTURES

43       typedef struct _XkbRow {
44               short           top;
45               short           left;
46               unsigned short  num_keys;
47               unsigned short  sz_keys;
48               int             vertical;
49               XkbKeyPtr       keys;
50               XkbBoundsRec    bounds;
51       } XkbRowRec, *XkbRowPtr;
52

SEE ALSO

54       XkbAllocGeomRows(3)
55
56
57
58X Version 11                     libX11 1.7.0                 XkbAddGeomRow(3)
Impressum