XkbAllocGeomOutlines(3)

πŸŽ€ NAME πŸŽ€

XkbAllocGeomOutlines(3) from XKB FUNCTIONS is here to allocate space for an arbitrary number of outlines to a shape. Okay bestie, this is the geometry-allocation corner of libX11, and it’s lowkey iconic. πŸ’…


✨ SYNOPSIS ✨

Status XkbAllocGeomOutlines (XkbShapePtr shape, int num_needed);

πŸ’– ARGUMENTS πŸ’–

  • shape β€” the shape for which outlines should be allocated.
  • num_needed β€” the number of new outlines required. Yes, exactly that many. πŸ”₯

🌸 DESCRIPTION 🌸

Xkb provides a number of functions to allocate and free subcomponents of a keyboard geometry. Use these functions to create or modify keyboard geometries.

Real talk: 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. 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. Periodt. πŸ’€

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.

XkbAllocGeomOutlines allocates space for num_needed outlines in the specified shape. The outlines are not initialized.

⚠️ Not initialized means not initialized, bestie β€” you gotta fill in the values explicitly in your code. No cap.

To free geometry outlines, use XkbFreeGeomOutlines.


πŸ”₯ DIAGNOSTICS πŸ”₯

  • BadAlloc β€” unable to allocate storage.
  • BadValue β€” an argument is out of range.

🫢 SEE ALSO 🫢


k bye bestie πŸ’œ β€” sign-off brought to you by X Version 11, libX11 1.8.14, and the footer tag XkbAllocGeomOutlines(3). That’s the whole page, and it ate. ✨🌸

πŸ“¦ where this page comes from