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