NAME

XcmsSetWhitePoint, XcmsSetWhiteAdjustProc - modifying CCC attributes

SYNTAX

Status XcmsSetWhitePoint(XcmsCCC _c_c_c, XcmsColor *_c_o_l_o_r); XcmsWhiteAdjustProc XcmsSetWhiteAdjustProc(XcmsCCC _c_c_c, XcmsWhiteAdjustProc _w_h_i_t_e___a_d_j_u_s_t___p_r_o_c, XPointer _c_l_i_e_n_t___d_a_t_a);

ARGUMENTS

_c_c_c Specifies the CCC.
_c_l_i_e_n_t___d_a_t_a Specifies client data for the white point adjustment procedure or NULL.
_c_o_l_o_r Specifies the new Client White Point.
_w_h_i_t_e___a_d_j_u_s_t___p_r_o_c Specifies the white point adjustment procedure.

DESCRIPTION

The _X_c_m_s_S_e_t_W_h_i_t_e_P_o_i_n_t function changes the Client White Point in the specified CCC. Note that the pixel member is ignored and that the color specification is left unchanged upon return. The format for the new white point must be _X_c_m_s_C_I_E_X_Y_Z_F_o_r_m_a_t, _X_c_m_s_C_I_E_u_v_Y_F_o_r_m_a_t, _X_c_m_s_C_I_E_x_y_Y_F_o_r_m_a_t, or _X_c_m_s_U_n_d_e_f_i_n_e_d_F_o_r_m_a_t. If the color argument is NULL, this function sets the format component of the Client White Point specification to _X_c_m_s_U_n_d_e_f_i_n_e_d_F_o_r_m_a_t, indicating that the Client White Point is assumed to be the same as the Screen White Point.

This function returns nonzero status if the format for the new white point is valid; otherwise, it returns zero.

The _X_c_m_s_S_e_t_W_h_i_t_e_A_d_j_u_s_t_P_r_o_c function first sets the white point adjustment procedure and client data in the specified CCC with the newly specified procedure and client data and then returns the old procedure.

SEE ALSO

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