XkbAllocGeomSectionDoodads(3)

πŸŽ€ XkbAllocGeomSectionDoodads(3) β€” XKB FUNCTIONS πŸŽ€

NAME πŸ’–

XkbAllocGeomSectionDoodads β€” allocate doodads that are specific to a section. periodt.

SYNOPSIS ✨

Status XkbAllocGeomSectionDoodads (XkbSectionPtr section, int
              num_needed);

ARGUMENTS 🫢

  • section β€” the section for which doodads should be allocated, bestie.
  • num_needed β€” the number of new doodads required.

DESCRIPTION 🌸

Okay so Xkb gives you a whole bunch of functions for allocating and freeing subcomponents of a keyboard geometry. Use these functions to create or modify keyboard geometries. Note that 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. The 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.

XkbAllocGeomSectionDoodads allocates num_needed doodads and adds them to the specified section. No initialization of the doodads is done β€” like, none at all, you’re on your own for the values. To free geometry doodads, use XkbFreeGeomDoodads.

DIAGNOSTICS πŸ’€

  • BadAlloc β€” Unable to allocate storage. the allocation said nope 😭
  • BadValue β€” An argument is out of range.

SEE ALSO πŸ”₯


That’s the whole page, bestie. Footer vibes: X Version 11, libX11 1.8.14, and XkbAllocGeomSectionDoodads(3). πŸ’…βœ¨

πŸ“¦ where this page comes from