XkbAddGeomOutline(3)
π¦ XkbAddGeomOutline π¦
okay bestie, welcome to the XKB FUNCTIONS corner of the manual β yes, we're really out here learning keyboard geometry at this hour. π
This page is all about XkbAddGeomOutline, and it's giving very specific "add one outline to an existing shape" energy. iconic.
πΈ NAME πΈ
XkbAddGeomOutline β add one outline to an existing shape. β¨
π SYNOPSIS π
XkbOutlinePtr XkbAddGeomOutline (XkbShapePtr shape, int sz_points);
π«Ά ARGUMENTS π«Ά
shapeβ shape to be updated. the shape getting the little geometry glow-up πsz_pointsβ number of points to be reserved. reserve the spots, bestie β¨
π₯ DESCRIPTION π₯
okay so here's the big-picture tea: Xkb provides functions to add a single new element to the top-level keyboard geometry. In each case, the num_ * fields of the corresponding structure is incremented by 1. These functions do not change sz_* unless there is no more room in the array. Some of these functions fill in the values of the element's structure from the arguments. For other functions, you must explicitly write code to fill the structure's elements. no cap. π―
The top-level geometry description includes a list of geometry properties. A geometry property associates an arbitrary string with an equally arbitrary name. Programs that display images of keyboards can use geometry properties as hints, but they are not interpreted by Xkb. No other geometry structures refer to geometry properties. π
An outline consists of an arbitrary number of points. XkbAddGeomOutline adds an outline to the specified shape by reserving sz_points points for it. The new outline is allocated and zeroed.
π¨ so listen:XkbAddGeomOutlinereturnsNULLif any of the parameters is empty or if it was not able to allocate space. that's the whole mood. π
To allocate space for an arbitrary number of outlines to a shape, use XkbAllocGeomOutlines.
π§ STRUCTURES π§
typedef struct _XkbOutline {
unsigned short num_points; /* number of points in the outline */
unsigned short sz_points; /* size of the points array */
unsigned short corner_radius; /* draw corners as circles with this radius */
XkbPointPtr points; /* array of points defining the outline */
} XkbOutlineRec, *XkbOutlinePtr;
π SEE ALSO π
XkbAllocGeomOutlines(3)β the one to reach for when you need space for an arbitrary number of outlines, bestie. π
mwah π footer sign-off: this page is from X Version 11, version libX11 1.8.14 β and there's no separate date line in the footer, so that's the source/version tea. XkbAddGeomOutline(3) out. π«Άβ¨
π¦ 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