XkbAllocGeomPoints(3)
π NAME π
okay so bestie, this is XkbAllocGeomPoints(3) from the XKB FUNCTIONS manual: XkbAllocGeomPoints β allocate points in an outline. slay.
β¨ SYNOPSIS β¨
Status XkbAllocGeomPoints (XkbOutlinePtr outline, int num_needed);
π ARGUMENTS π
outlineβ the outline where the points should be allocated, bestie. this is the one getting the new point space.num_neededβ the number of new points required. literally how many new points you need.
π¦ DESCRIPTION π¦
Okay so context: Xkb provides a number of functions to allocate and free subcomponents of a keyboard geometry. Use these functions to create or modify keyboard geometries. Major vibe check though: 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. no cap.
Also heads up: 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. so dramatic π.
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.
XkbAllocGeomPoints allocates space for num_needed points in the specified outline. The points are not initialized. it's giving "reserved seats but nobody sat down yet" β¨.
π DIAGNOSTICS π
BadAllocβ unable to allocate storage. storage said no πBadValueβ an argument is out of range. one of the args is acting out of pocket π
that's the whole page, bestie π«Ά footer energy: X Version 11, libX11 1.8.14, and the XkbAllocGeomPoints(3) tag. mwah π
π¦ 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