XcmsCCCofColormap(), XcmsSetCCCOfColormap() - query and modify CCC of a colormap
XcmsCCC XcmsCCCofColormap (Display *display, Colormap colormap)
XcmsCCC XcmsSetCCCOfColormap (Display *display, Colormap colormap,
XcmsCCC ccc)
The XcmsCCCofColormap(3) function returns the CCC associated with the specified colormap. Once obtained, the CCC attributes can be queried or modified. Unless the CCC associated with the specified colormap is changed with XcmsSetCCCOfColormap(3), this CCC is used when the specified colormap is used as an argument to color functions.
The XcmsSetCCCOfColormap(3) function changes the CCC associated with the specified colormap. It returns the CCC previously associated to the colormap. If they are not used again in the application, CCCs should be freed by calling XcmsFreeCCC(3).
Xlib