[ Previous | Next | Contents | Glossary | Home | Search ]
x11 R6 Technical Reference

XRecolorCrossHairCursor Extension Function

Purpose

Changes the color of a cross-hair cursor.

Library

Enhanced X-Windows Library (libXext.a)

C Syntax

Status XRecolorCrossHairCursor(DisplayPtr, CursorPtr, XColorPtr)
Display *DisplayPtr;
Cursor *CursorPtr;
Xcolor *XColorPtr;

Description

The XRecolorCrossHairCursor extension function changes the color of a cross-hair cursor. The XColor structure is defined as follows:

typedef struct {
    unsigned long pixel;
    unsigned short red, green, blue;
} XColor;

Parameters

DisplayPtr Specifies the connection to the X server.
CursorPtr Specifies the X server resource ID of the cursor to be recolored.
XColorPtr Specifies the cross-hair color.

Return Values

True Indicates a successful recoloring of the cross-hair cursor.
False Indicates an unsuccessful recoloring of the cross-hair cursor.

Error Codes

BadCursor

BadValue

BadAlloc

Related Information

Using Extensions in AIXwindows in AIX Version 4.3 AIXwindows Programming Guide.

AIXwindows Overview for Programmers in AIX Version 4.3 AIXwindows Programming Guide.


[ Previous | Next | Contents | Glossary | Home | Search ]