Cursor XCreatePixmapCursor(display, source, mask, foreground_color, background_color, x, y)
Display *display;
Pixmap source;
Pixmap mask;
XColor *foreground_color;
XColor *background_color;
unsigned int x, y;
display | Specifies the connection to the X server. |
source | Specifies the shape of the source cursor. |
mask | Specifies the cursor's source bits to be displayed or None . |
foreground_color | Specifies the RGB values for the foreground of the source. |
background_color | Specifies the RGB values for the background of the source. .ds Xy |
x | |
y | Specify the x and y coordinates, which indicate the hotspot relative to the source's origin. |
The components of the cursor can be transformed arbitrarily to meet display limitations. The pixmaps can be freed immediately if no further explicit references to them are to be made. Subsequent drawing in the source or mask pixmap has an undefined effect on the cursor. The X server might or might not make a copy of the pixmap.
XCreatePixmapCursor() can generate BadAlloc and BadPixmap errors.
BadAlloc | The server failed to allocate the requested source or server memory. |
BadPixmap | A value for a Pixmap argument does not name a defined Pixmap. |