XkbAllocGeometry(3)
π NAME π
XkbAllocGeometry β allocate an entire geometry π
okay so bestie, youβre in the XKB FUNCTIONS manual and this page is XkbAllocGeometry(3). Weβre allocating a whole keyboard geometry, no cap β¨
β¨ SYNOPSIS β¨
Status XkbAllocGeometry (XkbDescPtr xkb, XkbGeometrySizesPtr sizes);
π§ ARGUMENTS π§
xkbβ the keyboard description for which geometry is to be allocated π«Άsizesβ initial sizes for all geometry components π
πΈ DESCRIPTION πΈ
Xkb provides a number of functions to allocate and free subcomponents of a keyboard geometry. Use these functions to create or modify keyboard geometries. And lowkey important: these functions merely allocate space for the new element(s) β it is up to you to fill in the values explicitly in your code. Theyβre not gonna do it for you, bestie π
These allocation functions increase sz_* but never touch num_* (unless there is an allocation failure, in which case they reset both sz_* and num_* to zero). These functions return Success if they succeed, BadAlloc if they are not able to allocate space, or BadValue if a parameter is not as expected. periodt π
XkbAllocGeometry allocates a keyboard geometry and adds it to the keyboard description specified by xkb. The keyboard description should be obtained via the XkbGetKeyboard or XkbAllocKeyboard functions. The sizes parameter specifies the number of elements to be reserved for the subcomponents of the keyboard geometry and can be zero or more. These subcomponents include the properties, colors, shapes, sections, and doodads β yes, doodads πβ¨
To free an entire geometry, use XkbFreeGeometry.
π DIAGNOSTICS π
BadAllocβ unable to allocate storage πBadValueβ an argument is out of range π
π¦ SEE ALSO π¦
xoxo, this page is from X Version 11, libX11 1.8.14, and itβs literally the XkbAllocGeometry(3) page β byeee bestie π
π¦ where this page comes from
- alpine 3.24: libx11-doc 1.8.14-r0 Β· X11
- arch rolling: libx11 1.8.14-1 Β· MIT AND X11
- nixos 26.05: libx11 1.8.14
- nixpkgs unstable: libx11 1.8.14
- Copyright (c) 1999, Oracle and/or its affiliates
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms