2 .\" Copyright 1999 Oracle and/or its affiliates. All rights reserved.
4 .\" Permission is hereby granted, free of charge, to any person obtaining a
5 .\" copy of this software and associated documentation files (the "Software"),
6 .\" to deal in the Software without restriction, including without limitation
7 .\" the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 .\" and/or sell copies of the Software, and to permit persons to whom the
9 .\" Software is furnished to do so, subject to the following conditions:
11 .\" The above copyright notice and this permission notice (including the next
12 .\" paragraph) shall be included in all copies or substantial portions of the
15 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 .\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 .\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 .\" THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 .\" LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 .\" FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 .\" DEALINGS IN THE SOFTWARE.
23 .TH XkbAllocGeometry __libmansuffix__ __xorgversion__ "XKB FUNCTIONS"
25 XkbAllocGeometry \- Allocate an entire geometry
28 .B Status XkbAllocGeometry
29 .BI "(\^XkbDescPtr " "xkb" "\^,"
30 .BI "XkbGeometrySizesPtr " "sizes" "\^);"
36 keyboard description for which geometry is to be allocated
39 initial sizes for all geometry components
42 Xkb provides a number of functions to allocate and free subcomponents of a
43 keyboard geometry. Use these functions to create or modify keyboard geometries.
44 Note that these functions merely allocate space for the new element(s), and it
45 is up to you to fill in the values explicitly in your code. These allocation
50 (unless there is an allocation failure, in which case they reset both
54 to zero). These functions return Success if they succeed, BadAlloc if they are
55 not able to allocate space, or BadValue if a parameter is not as expected.
58 allocates a keyboard geometry and adds it to the keyboard description specified
61 The keyboard description should be obtained via the
67 parameter specifies the number of elements to be reserved for the subcomponents
68 of the keyboard geometry and can be zero or more. These subcomponents include
70 .I properties, colors, shapes, sections, and doodads.
72 To free an entire geometry, use
77 Unable to allocate storage
80 An argument is out of range
82 .BR XkbAllocKeyboard (__libmansuffix__),
83 .BR XkbFreeGeometry (__libmansuffix__),
84 .BR XkbGetKeyboard (__libmansuffix__)