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
- 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