XkbAllocGeomShapes(3)
π XkbAllocGeomShapes(3) π
okay so bestie, you're on the XkbAllocGeomShapes(3) page from the XKB FUNCTIONS section β yes, we're doing geometry shape allocation today, and it's lowkey iconic. π
πΈ NAME πΈ
XkbAllocGeomShapes β allocate space for an arbitrary number of geometry shapes. β¨
β¨ SYNOPSIS β¨
Status XkbAllocGeomShapes (XkbGeometryPtr geom, int num_needed);
π«Ά ARGUMENTS π«Ά
geomβ the geometry for which shapes should be allocated. πnum_neededβ the number of new shapes required. π’
π DESCRIPTION π
okay so Xkb literally provides a number 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), and it is up to you to fill in the values explicitly in your code. They are not going to do the fill-in 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. π
XkbAllocGeomShapes allocates space for num_needed shapes in the specified geometry geom. The shapes are not initialized. π¦
To free geometry shapes, use XkbFreeGeomShapes. π§
π₯ DIAGNOSTICS π₯
BadAllocβ unable to allocate storage. πBadValueβ an argument is out of range. π
π SEE ALSO π
XkbFreeGeomShapes(3)β your bestie for freeing those geometry shapes. π
mwah π that's the page! footer sign-off: X Version 11, libX11 1.8.14, and XkbAllocGeomShapes(3) β source, version, and page/date slot, periodt. π«Ά (no separate date line was printed in the original footer, 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