12.07.2015 Views

Xlib − C Language X Interface

Xlib − C Language X Interface

Xlib − C Language X Interface

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Xlib</strong> − C LibraryX11, Release 6.7 DRAFTthe specified colormap is changed with XcmsSetCCCOfColormap, this CCC is used when thespecified colormap is used as an argument to color functions.To change the CCC associated with a colormap, use XcmsSetCCCOfColormap.XcmsCCC XcmsSetCCCOfColormap(display, colormap, ccc)Display *display;Colormap colormap;XcmsCCC ccc;displaycolormapcccSpecifies the connection to the X server.Specifies the colormap.Specifies the CCC.The XcmsSetCCCOfColormap function changes the CCC associated with the specified colormap.It returns the CCC previously associated with the colormap. If they are not used again inthe application, CCCs should be freed by calling XcmsFreeCCC. Several colormaps may sharethe same CCC without restriction; this includes the CCCs generated by <strong>Xlib</strong> with each colormap.<strong>Xlib</strong>, however, creates a new CCC with each new colormap.6.8.2. Obtaining the Default Color Conversion ContextYoucan change the default CCC attributes for subsequently created CCCs by changing the CCCattributes of the default CCC. Adefault CCC is associated with each screen.To obtain the default CCC for a screen, use XcmsDefaultCCC.XcmsCCC XcmsDefaultCCC (display, screen_number)Display *display;int screen_number;displayscreen_numberSpecifies the connection to the X server.Specifies the appropriate screen number on the host server.The XcmsDefaultCCC function returns the default CCC for the specified screen. Its visual isthe default visual of the screen. Its initial gamut compression and white point adjustment proceduresas well as the associated client data are implementation specific.6.8.3. Color Conversion Context MacrosApplications should not directly modify any part of the XcmsCCC. The following lists the Clanguage macros, their corresponding function equivalents for other language bindings, and whatdata they both can return.101

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!