XkbAllocGeomRows(3)
πΈ NAME πΈ
This is XkbAllocGeomRows(3) from the XKB FUNCTIONS manual, bestie π β and it does exactly one iconic thing: XkbAllocGeomRows β Allocate rows in a section. Like, it makes room for rows inside a section, and then you fill in the actual deets yourself. No cap.
β¨ SYNOPSIS β¨
Status XkbAllocGeomRows (XkbSectionPtr section, int num_needed);
π ARGUMENTS π
sectionβ the section for which rows should be allocated. That's the target, the main character of this call π«Άnum_neededβ number of new rows required. How many rows are we making space for? This many π
π¦ DESCRIPTION π¦
Okay so, <pink>Xkb</pink> provides a bunch of functions to allocate and free subcomponents of a keyboard geometry. Use these functions to create or modify keyboard geometries. And the important 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 gonna do the 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. Noted, respected, lowkey dramatic but valid π
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.
Specifically, XkbAllocGeomRows allocates num_needed rows and adds them to the section. And no initialization of the rows is done β none, zero, zilch β so don't expect any cute default values β¨
Caveat bestie: allocation only reserves the space. You still have to fill in the row values explicitly in your code, and if allocation fails, bothsz_*andnum_*get reset to zero. π
π₯ DIAGNOSTICS π₯
BadAllocβ Unable to allocate storage πBadValueβ An argument is out of range π
footer sign-off energy: X Version 11, libX11 1.8.14, page XkbAllocGeomRows(3) β that's the source/version combo, and it ate π
β¨
π¦ where this page comes from
- alpine 3.24: libx11-doc 1.8.14-r0 Β· X11
- arch rolling: libx11 1.8.14-1 Β· MIT AND X11
- nixos 26.05: libx11 1.8.14
- nixpkgs unstable: libx11 1.8.14
- Copyright (c) 1999, Oracle and/or its affiliates
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms