XcmsCreateCCC(3)

πŸ’– XcmsCreateCCC(3) πŸ’–

okay so this is the XLIB FUNCTIONS page for XcmsCreateCCC and XcmsFreeCCC, and it's literally giving "CCC creation and destruction era" ✨ buckle up, bestie.


πŸŽ€ NAME πŸŽ€

XcmsCreateCCC, XcmsFreeCCC β€” creating and destroying CCCs. periodt πŸ’…


✨ SYNTAX ✨

here's the exact signature, no cap:

       XcmsCCC XcmsCreateCCC(Display *display, int screen_number, Visual
              *visual, XcmsColor *client_white_point, XcmsCompressionProc
              compression_proc, XPointer compression_client_data,
              XcmsWhiteAdjustProc white_adjust_proc, XPointer
              white_adjust_client_data);

       void XcmsFreeCCC(XcmsCCC ccc);

🫢 ARGUMENTS 🫢

  • display β€” Specifies the connection to the X server. the whole "hello, server" vibe πŸ’«
  • ccc β€” Specifies the CCC. that's the main character right there πŸ‘‘
  • client_white_point β€” Specifies the Client White Point. If NULL is specified, the Client White Point is to be assumed to be the same as the Screen White Point. Note that the pixel member is ignored. yes, ignored β€” leave it alone πŸ™ˆ
  • compression_client_data β€” Specifies client data for use by the gamut compression procedure or NULL. optional little sidekick energy πŸŽ€
  • compression_proc β€” Specifies the gamut compression procedure that is to be applied when a color lies outside the screen's color gamut. If NULL is specified and a function using this CCC must convert a color specification to a device-dependent format and encounters a color that lies outside the screen's color gamut, that function will return XcmsFailure. so like… no compression proc means possible XcmsFailure, and that's the teaaa 😭
  • screen_number β€” Specifies the appropriate screen number on the host server. know your screen, bestie πŸ”₯
  • visual β€” Specifies the visual type. the visual of it all 🌈
  • white_adjust_client_data β€” Specifies client data for use with the white point adjustment procedure or NULL. more optional sidekick data, slay πŸ¦‹
  • white_adjust_proc β€” Specifies the white adjustment procedure that is to be applied when the Client White Point differs from the Screen White Point. NULL indicates that no white point adjustment is desired. if you don't want the adjustment, NULL is your girl πŸ’…

πŸ’… DESCRIPTION πŸ’…

The XcmsCreateCCC function creates a CCC for the specified display, screen, and visual. it's giving "custom CCC, made for you" ✨

The XcmsFreeCCC function frees the memory used for the specified CCC. Note that default CCCs and those currently associated with colormaps are ignored. so yeah β€” it's not coming for those, okay? πŸ’€


🌈 SEE ALSO 🌈


πŸ’Œ and that's the whole page, bestie! this cutie comes from X Version 11, libX11 1.8.14, and the page is XcmsCreateCCC(3) β€” mwah πŸ’‹

πŸ“¦ where this page comes from