1XkbAllocGeomProps(3) XKB FUNCTIONS XkbAllocGeomProps(3)
2
3
4
6 XkbAllocGeomProps - Allocate geometry properties
7
9 Status XkbAllocGeomProps (XkbGeometryPtr geom, int num_needed);
10
12 - geom _summary_
13
14 - num_needed
15 _summary_
16
18 Xkb provides a number of functions to allocate and free subcomponents
19 of a keyboard geometry. Use these functions to create or modify key‐
20 board geometries. Note that these functions merely allocate space for
21 the new element(s), and it is up to you to fill in the values explic‐
22 itly in your code. These allocation functions increase sz_* but never
23 touch num_* (unless there is an allocation failure, in which case they
24 reset both sz_* and num_* to zero). These functions return Success if
25 they succeed, BadAlloc if they are not able to allocate space, or Bad‐
26 Value if a parameter is not as expected.
27
28 XkbAllocGeomProps allocates space for num_needed properties and adds
29 them to the specified geometry geom. No initialization of the proper‐
30 ties is done. A geometry property associates an arbitrary string with
31 an equally arbitrary name. Geometry properties can be used to provide
32 hints to programs that display images of keyboards, but they are not
33 interpreted by Xkb. No other geometry structures refer to geometry
34 properties.
35
37 BadAlloc Unable to allocate storage
38
39 BadValue An argument is out of range
40
41
42
43X Version 11 libX11 1.6.12 XkbAllocGeomProps(3)