1XkbAllocGeomSectionDoodads(3) XKB FUNCTIONS XkbAllocGeomSectionDoodads(3)
2
3
4
6 XkbAllocGeomSectionDoodads - Allocate doodads that are specific to a
7 section
8
10 Status XkbAllocGeomSectionDoodads (XkbSectionPtr section, int
11 num_needed);
12
14 - section
15 section for which doodads should be allocated
16
17 - num_needed
18 number of new doodads required
19
21 Xkb provides a number of functions to allocate and free subcomponents
22 of a keyboard geometry. Use these functions to create or modify key‐
23 board geometries. Note that these functions merely allocate space for
24 the new element(s), and it is up to you to fill in the values explic‐
25 itly in your code. These allocation functions increase sz_* but never
26 touch num_* (unless there is an allocation failure, in which case they
27 reset both sz_* and num_* to zero). These functions return Success if
28 they succeed, BadAlloc if they are not able to allocate space, or Bad‐
29 Value if a parameter is not as expected.
30
31 XkbAllocGeomSectionDoodads allocates num_needed doodads and adds them
32 to the specified section. No initialization of the doodads is done.
33
34 To free geometry doodads, use XkbFreeGeomDoodads.
35
37 BadAlloc Unable to allocate storage
38
39 BadValue An argument is out of range
40
42 XkbFreeGeomDoodads(3)
43
44
45
46X Version 11 libX11 1.7.3.1 XkbAllocGeomSectionDoodads(3)