XkbAllocGeomKeyAliases(3)
hey bestie π welcome to the XkbAllocGeomKeyAliases(3) page β it lives in the XKB FUNCTIONS manual, and it's here to explain how to allocate geometry key aliases. Let's get into it β¨
π NAME π
XkbAllocGeomKeyAliases β allocate geometry key aliases
β¨ SYNOPSIS β¨
Status XkbAllocGeomKeyAliases (XkbGeometryPtr geom, int num_needed);
π ARGUMENTS π
geomβ the geometry for which key aliases should be allocated. Like, this is the geometry that's getting the new alias space, bestie.num_neededβ number of new key aliases required. That's how many slots you're asking for.
π¦ DESCRIPTION π¦
okay so 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 listen: these functions merely allocate space for the new element(s) β it is up to you to fill in the values explicitly in your code. No autofill, no vibes-only initialization, you actually have to write the values yourself π
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.
XkbAllocGeomKeyAliases allocates space for num_needed key aliases and adds them to the specified geometry geom. A key alias is a pair of strings that associates an alternate name for a key with the real name for that key. Cute, right? It's basically a nickname registry for keys π
To free geometry key aliases, use XkbFreeGeomKeyAliases.
πΈ DIAGNOSTICS πΈ
BadAllocβ Unable to allocate storage πBadValueβ An argument is out of range π
π SEE ALSO π
XkbFreeGeomKeyAliases(3) β go free those aliases when you're done, bestie π
okay that's the whole page, bestie β mwah πβ¨ the footer vibes are X Version 11 and libX11 1.8.14, and this iconic little page is XkbAllocGeomKeyAliases(3) π«Ά
π¦ 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