XcmsSetWhitePoint(3)
π XcmsSetWhitePoint(3) β from the XLIB FUNCTIONS manual π
okay bestie, weβre in the XLIB FUNCTIONS section and the two functions on deck are XcmsSetWhitePoint and XcmsSetWhiteAdjustProc. Itβs giving CCC attribute makeover, and honestly? Obsessed. π
π NAME π
XcmsSetWhitePoint, XcmsSetWhiteAdjustProc β modifying CCC attributes. periodt. β¨
πΈ SYNTAX πΈ
Status XcmsSetWhitePoint(XcmsCCC ccc, XcmsColor *color);
XcmsWhiteAdjustProc XcmsSetWhiteAdjustProc(XcmsCCC ccc,
XcmsWhiteAdjustProc white_adjust_proc, XPointer client_data);
π¦ ARGUMENTS π¦
cccβ Specifies the CCC. Thatβs the main character here. πclient_dataβ Specifies client data for the white point adjustment procedure orNULL. Like, optional bestie behavior. πcolorβ Specifies the new Client White Point. The glow-up target. πwhite_adjust_procβ Specifies the white point adjustment procedure. The lil procedure in question. π§
π₯ DESCRIPTION π₯
So XcmsSetWhitePoint changes the Client White Point in the specified ccc. Not me being like βnew white point, who disβ β it literally swaps it. β¨
Some important receipts, bestie: the pixel member is ignored, and the color specification is left unchanged upon return. No cap. The format for the new white point must be XcmsCIEXYZFormat, XcmsCIEuvYFormat, XcmsCIExyYFormat, or XcmsUndefinedFormat. Those are the only valid format vibes. π
If the color argument is NULL, this function sets the format component of the Client White Point specification to XcmsUndefinedFormat, indicating that the Client White Point is assumed to be the same as the Screen White Point. iykyk. π
This function returns nonzero status if the format for the new white point is valid; otherwise, it returns zero. So itβs a little format vibe check: nonzero = valid, zero = nope. π«Ά
Now XcmsSetWhiteAdjustProc β okay so first it sets the white point adjustment procedure and client data in the specified ccc with the newly specified procedure and client data, and then it returns the old procedure. The way that it swaps in the new stuff and hands you the old stuff? Lowkey iconic. π
π SEE ALSO π
DisplayOfCCC(3)XcmsCCCOfColormap(3)XcmsConvertColors(3)XcmsCreateCCC(3)XcmsDefaultCCC(3)Xlib - C Language X Interface
Thatβs the whole page, bestie. Source/version sign-off tea: X Version 11, libX11 1.8.14 β and ngl this footer doesnβt give us a separate date line, so thatβs the full receipt. Stay slaying those CCC attributes. ππβ¨
π¦ 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
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms