XkbFreeGeomPoints(3)

NAME ✨ β€” XkbFreeGeomPoints

okay so bestie, welcome to XkbFreeGeomPoints from the XKB FUNCTIONS manual. The official NAME line is literally:

XkbFreeGeomPoints - Free points in a outline

Yes, β€œa outline.” We are keeping the original wording, no edits, no notes πŸ’….


SYNOPSIS πŸŽ€

       void XkbFreeGeomPoints (XkbOutlinePtr outline, int first, int count,
              Bool free_all);

That’s the whole signature. She takes an outline, a first, a count, and a free_all and goes to work ✨.

ARGUMENTS 🫢

  • outline β€” outline in which points should be freed. Like, this is the outline getting the cleanup.
  • first β€” first point to be freed. First in line for the point-freeing.
  • count β€” number of points to be freed. The amount. The math. We love her.
  • free_all β€” True => all points are freed. Not some. All. She said what she said πŸ’€.

DESCRIPTION 🌸

okay so the lore: Xkb provides a number of functions to allocate and free subcomponents of a keyboard geometry. Use these functions to create or modify keyboard geometries. Big important note, bestie: 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 do not fill in the values for you; that part is your main character responsibility 🫑. 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.

If free_all is True, all points are freed regardless of the value of >i first and count. Otherwise, the number of points specified by count are freed, beginning with the point specified by first in the specified outline.

RETURN VALUES πŸ‘‘

  • Success β€” The XkbFreeGeomPoints function returns Success when there are no allocation or argument errors. Clean, no notes, slay ✨.

DIAGNOSTICS πŸ’€

  • BadAlloc β€” Unable to allocate storage. The storage said β€œno ❀️.”
  • BadValue β€” An argument is out of range. One of the args is not passing the vibe check.

Cute sign-off: this XkbFreeGeomPoints(3) page is stamped with X Version 11 and libX11 1.8.14; the footer doesn’t give a separate date, so no invented date, bestie πŸŽ€πŸ’–. Go free those points, periodt. πŸ‘‘

πŸ“¦ where this page comes from