---
name: "XcmsSetWhitePoint"
section: "3"
platform: "linux"
package: "libx11"
version: "1.8.14-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XcmsSetWhitePoint"
---

# XcmsSetWhitePoint(3)

modifying CCC attributes

## NAME

XcmsSetWhitePoint, XcmsSetWhiteAdjustProc - modifying CCC attributes

## SYNTAX

Status XcmsSetWhitePoint(XcmsCCC *ccc*, XcmsColor \**color*);

XcmsWhiteAdjustProc XcmsSetWhiteAdjustProc(XcmsCCC *ccc*, XcmsWhiteAdjustProc *white\_adjust\_proc*, XPointer *client\_data*);

## ARGUMENTS

- *ccc*

  Specifies the CCC.

- *client\_data*

  Specifies client data for the white point adjustment procedure or NULL.

- *color*

  Specifies the new Client White Point.

- *white\_adjust\_proc*

  Specifies the white point adjustment procedure.

## DESCRIPTION

The **XcmsSetWhitePoint** 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 **XcmsCIEXYZFormat**, **XcmsCIEuvYFormat**, **XcmsCIExyYFormat**, or **XcmsUndefinedFormat**. If the color argument is NULL, this function sets the format component of the Client White Point specification to **XcmsUndefinedFormat**, 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 **XcmsSetWhiteAdjustProc** 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**(3)](/DisplayOfCCC/3.md), [**XcmsCCCOfColormap**(3)](/XcmsCCCOfColormap/3.md), [**XcmsConvertColors**(3)](/XcmsConvertColors/3.md), [**XcmsCreateCCC**(3)](/XcmsCreateCCC/3.md), [**XcmsDefaultCCC**(3)](/XcmsDefaultCCC/3.md)\
 *Xlib - C Language X Interface*
