XkbAllocGeomOverlayKeys(3)

πŸ’… XkbAllocGeomOverlayKeys(3) πŸ’…

manual name: XKB FUNCTIONS β€” we're in the XKB functions section, bestie ✨

🌸 NAME 🌸

XkbAllocGeomOverlayKeys β€” Allocate keys in an overlay row πŸ‘‘

πŸ› οΈ SYNOPSIS πŸ› οΈ

Status XkbAllocGeomOverlayKeys (XkbOverlayRowPtr row, int num_needed);

πŸŽ€ ARGUMENTS πŸŽ€

  • row β€” section for which rows should be allocated 🫢
  • num_needed β€” number of new rows required ✨

πŸ’– 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, bestie πŸ¦‹.

Big important note: these functions merely allocate space for the new element(s). It is up to you to fill in the values explicitly in your code β€” yes, you, manually, no cap πŸ™ˆ.

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.

XkbAllocGeomOverlayKeys allocates num_needed keys and adds them to the row. No initialization of the keys is done β€” literally none, zero, nada πŸ’€.

🚨 DIAGNOSTICS 🚨

  • BadAlloc β€” Unable to allocate storage πŸ˜΅β€πŸ’«
  • BadValue β€” An argument is out of range 🚫

k bye bestie πŸ’– this page is from X Version 11, libX11 1.8.14 β€” catch u on the next manpage πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from