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 or NULL. 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 🌈


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