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

NAME

6       XkbAllocGeomColors - Allocate geometry colors
7

SYNOPSIS

9       Status XkbAllocGeomColors (XkbGeometryPtr geom, int num_needed);
10

ARGUMENTS

12       - geom geometry for which colors should be allocated
13
14       - num_needed
15              number of new colors required
16

DESCRIPTION

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       XkbAllocGeomColors  allocates space for num_needed colors and adds them
29       to the specified geometry geom.  A color name is a string whose  inter‐
30       pretation  is  not specified by Xkb. All other geometry data structures
31       refer to colors using their indices in this global list or pointers  to
32       colors in this list.
33

DIAGNOSTICS

35       BadAlloc       Unable to allocate storage
36
37       BadValue       An argument is out of range
38
39
40
41X Version 11                     libX11 1.6.9            XkbAllocGeomColors(3)
Impressum