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

XGetCrossHairCursorInfo Extension Function

Purpose

Determines the attributes for the cross hair cursor on a per screen basis.

Library

Enhanced X-Windows Library (libXext.a)

C Syntax

Status XGetCrossHairCursorInfo(DisplayPtr, DrawablePtr, MinimumWidth, 
                                                       MaximumWidth, BestWidth, Base)
Display *DisplayPtr;
Drawable *DrawablePtr;
short *MinimumWidth;
short *MaximumWidth;
short *BestWidth;
short *Base;

Description

The XGetCrossHairCursorInfo extension function returns the minimum width, the maximum width, the best width, number of colors, and the type of base support for the cross hair cursor on a per screen basis. The base is returned with all the supported bases for the screen. (For example, the bit that corresponds to each type of base is ORed together. The combined value is returned.)

The value for each type of the cross hair cursor base is defined in the AIX.h file.

#define PSEUDO_BASED_CROSSHAIR 4
#define SCREEN_BASED_CROSSHAIR 1
#define WINDOW_BASED_CROSSHAIR 2
#define NO_CROSSHAIR 0

Parameters

DisplayPtr Specifies the connection to the X server.
DrawablePtr Specifies the screen by way of a drawable for the server specified.
MinimumWidth Returns the minimum width of the cross hair.
MaximumWidth Returns the maximum width of the cross hair.
BestWidth Returns the best width of the cross hair.
Base Returns the types of base support for the specified screen.

Error Codes

BadDrawable

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 ]