NAME

XcmsCCCOfColormap, XcmsSetCCCOfColormap - query and modify CCC of a colormap

SYNTAX

XcmsCCC XcmsCCCOfColormap(Display *_d_i_s_p_l_a_y, Colormap _c_o_l_o_r_m_a_p); XcmsCCC XcmsSetCCCOfColormap(Display *_d_i_s_p_l_a_y, Colormap _c_o_l_o_r_m_a_p, XcmsCCC _c_c_c);

ARGUMENTS

_d_i_s_p_l_a_y Specifies the connection to the X server.
_c_c_c Specifies the CCC.
_c_o_l_o_r_m_a_p Specifies the colormap.

DESCRIPTION

The _X_c_m_s_C_C_C_O_f_C_o_l_o_r_m_a_p 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 _X_c_m_s_S_e_t_C_C_C_O_f_C_o_l_o_r_m_a_p, this CCC is used when the specified colormap is used as an argument to color functions.

The _X_c_m_s_S_e_t_C_C_C_O_f_C_o_l_o_r_m_a_p function changes the CCC associated with the specified colormap. It returns the CCC previously associated with the colormap. If they are not used again in the application, CCCs should be freed by calling _X_c_m_s_F_r_e_e_C_C_C. Several colormaps may share the same CCC without restriction; this includes the CCCs generated by Xlib with each colormap. Xlib, however, creates a new CCC with each new colormap.

SEE ALSO

DisplayOfCCC(3X11), XcmsConvertColors(3X11), XcmsCreateCCC(3X11), XcmsDefaultCCC(3X11), XcmsSetWhitePoint(3X11)
_X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e