XkbAllocGeomSections(3)
π NAME π
okay bestie, this page is XkbAllocGeomSections(3), and it lives in the XKB FUNCTIONS manual. It does exactly what it says on the tin: allocates geometry sections. iconic allocation behavior, no cap β¨
π SYNOPSIS π
Status XkbAllocGeomSections (XkbGeometryPtr geom, int num_needed);
πΈ ARGUMENTS πΈ
geomβ the geometry for which sections should be allocated π«Άnum_neededβ the number of new sections required π
π¦ DESCRIPTION π¦
Xkb provides a whole little collection of functions to allocate and free subcomponents of a keyboard geometry. Use these functions to create or modify keyboard geometries. Important vibe check: 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 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.
XkbAllocGeomSections allocates num_needed sections and adds them to the geometry geom. No initialization of the sections is done. Like, zero. none. you're on your own to fill them in π
To free geometry sections, use XkbFreeGeomSections.
π DIAGNOSTICS π
BadAllocβ Unable to allocate storage πBadValueβ An argument is out of range π
π SEE ALSO π
with all my love and absolutely no cap: <rainbow>X Version 11</rainbow>, <pink>libX11 1.8.14</pink>, and this XkbAllocGeomSections(3) page. the footer didn't hand me a date, so no invented date bestie β periodt πβ¨
π¦ 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