XCUP(3)
π XCUP β XcupGetReservedColormapEntries (manual, section 3, the X FUNCTIONS girlies) β¨
okay bestie, sit DOWN, because this one is literally about finding out which colormap entries the system already called dibs on π
πΈ NAME πΈ
XcupGetReservedColormapEntries β list colormap entries reserved by the system π
β¨ SYNOPSIS β¨
cc [ flag ... ] file ... -lXext [ library ... ]
#include <X11/extensions/Xcup.h>
Status XcupGetReservedColormapEntries(Display *display,
int screen, XColor **colors_out, int *ncolors);
no cap, that's the whole vibe. compile with -lXext and include that header, periodt π«Ά
π¦ ARGUMENTS π¦
displayβ the connection to the X server. your lil hotline to the server, basically πscreenβ screen number on the host server. which screen we're talking about, bestie πcolors_outβ returns the values reserved by the server. this is where the tea gets poured out πΈncolorsβ returns the number of items incolors_out. how many lil entries showed up to the party π
π DESCRIPTION π
so the way that XcupGetReservedColormapEntries works is: it returns a list of colormap entries (pixels) that are reserved by the system. that's it, that's the function, and it ate π₯
this list will, at a minimum, contain entries for the BlackPixel and WhitePixel of the specified screen. so even on the most minimal day, black and white are always in the group chat β¨
bestie listen. useXFreeto freecolors_out. do NOT forget. we do not leak memory in this house, that's not the vibe π
and here's the iconic part β to minimize colormap flash, an application which installs its own private colormap should query the special colors by calling XCupGetReservedColormapEntries, and can then store those entries (in the proper location) in its private colormap using XCupStoreColors. like, look before you leap, queen π
π SEE ALSO π
XcupQueryVersion(3Xext)XcupStoreColors(3Xext)XFree(3X11)- Colormap Utilization Policy and Extension
that's the whole page, bestie, you're officially an Xcup girlie now π§π
this was X Version 11, libXext 1.3.6, and yeah it's page XCUP(3) β mwah, slay, bye π
π
π¦ where this page comes from
- alpine 3.22: libxext-doc 1.3.6-r2 Β· MIT
- alpine 3.23: libxext-doc 1.3.6-r2 Β· MIT
- centos-stream 10: libXext-devel 1.3.6-3.el10 Β· MIT-open-group AND X11 AND HPND AND HPND-sell-variant AND SMLNJ AND MIT AND ISC AND HPND-doc AND HPND-doc-sell
- fedora 43: libXext-devel 1.3.6-4.fc43 Β· MIT-open-group AND X11 AND HPND AND HPND-sell-variant AND SMLNJ AND MIT AND ISC AND HPND-doc AND HPND-doc-sell
- fedora 43: libXext-devel 1.3.6-4.fc43 Β· MIT-open-group AND X11 AND HPND AND HPND-sell-variant AND SMLNJ AND MIT AND ISC AND HPND-doc AND HPND-doc-sell
- fedora 44: libXext-devel 1.3.6-5.fc44 Β· MIT-open-group AND X11 AND HPND AND HPND-sell-variant AND SMLNJ AND MIT AND ISC AND HPND-doc AND HPND-doc-sell
- fedora 44: libXext-devel 1.3.6-5.fc44 Β· MIT-open-group AND X11 AND HPND AND HPND-sell-variant AND SMLNJ AND MIT AND ISC AND HPND-doc AND HPND-doc-sell
- opensuse-leap 16.0: libXext-devel 1.3.6-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXext-devel 1.3.6-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXext-devel 1.3.6-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXext-devel 1.3.6-160000.3.2 Β· MIT
- Copyright (c) 1999, 2005, Oracle and/or its affiliates
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms