XkbAllocGeomDoodads(3)

πŸ’– XkbAllocGeomDoodads πŸ’–

okay bestie, this icon is from the XKB FUNCTIONS manual, and she's here to make room for doodads in your keyboard geometry. It's giving "reserve the space, then fill in the details yourself" energy πŸ’…βœ¨


πŸ’– NAME πŸ’–

XkbAllocGeomDoodads β€” allocate doodads that are global to a keyboard geometry. Periodt.

✨ SYNOPSIS ✨

Status XkbAllocGeomDoodads (XkbGeometryPtr geom, int num_needed);

πŸŽ€ ARGUMENTS πŸŽ€

  • geom β€” the geometry for which doodads should be allocated, bestie.
  • num_needed β€” the number of new doodads required. Like, count them. πŸ”’

πŸ¦‹ 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. πŸ› οΈ

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 doing the whole glow-up 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.

XkbAllocGeomDoodads allocates num_needed doodads and adds them to the specified geometry geom. No initialization of the doodads is done. So they show up with zero styling β€” you have to dress them yourself. πŸŽ€

πŸ’… DIAGNOSTICS πŸ’…

  • BadAlloc β€” unable to allocate storage. The allocation said "not today" πŸ’€
  • BadValue β€” an argument is out of range. One of your params is giving "off the map" energy πŸ™ˆ

xoxo, this page is serving X Version 11 / libX11 1.8.14 energy, and the footer didn't give me a date so I'm not inventing one β€” stay iconic, bestie πŸ’–βœ¨

πŸ“¦ where this page comes from