GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  XIDEFINECURSOR (3)

.ds Aq ’

NAME

XIDefineCursor, XIUndefineCursor - define device cursors.

CONTENTS

SYNOPSIS

#include <X11/extensions/XInput2.h>

int XIDefineCursor( Display *display,
                    int deviceid,
                    Window win,
                    Cursor cursor);

int XIUndefineCursor( Display *display,
                      int deviceid,
                      Window win);

cursor
       Specifies the cursor that is to be displayed or None.

deviceid
       Specifies the device whose cursor is to change.

display
       Specifies the connection to the X server.

win
       Specifies the window.

DESCRIPTION

If a cursor is set, it will be used when the devices pointer
is in the window. If the cursor is None, it is equivalent to
XIUndefineCursor.

The deviceid must be a master pointer device or a BadDevice error is
returned.

XIDefineCursor can generate BadDevice, BadCursor and BadWindow.

The XIUndefineCursor function undoes the effect of a previous
XIDefineCursor for this window. When the pointer is in the
window, the windows default cursor will now be used. If no
default cursor is defined, the parents cursor for this device
will be used (if defined) or the parents default cursor will
be used.

XIDefineCursor and XIUndefineCursor are identical to
XDefineCursor and XUndefineCursor but specify the device
explicitly.

XIUndefineCursor can generate a BadDevice and a BadWindow
error.

DIAGNOSTICS

BadCursor
       A value for a cursor argument does not name a defined
       cursor.

BadDevice
       An invalid device was specified. The device does not
       exist or is not a pointer device.

BadWindow
       A value for a Window argument does not name a defined
       window.

See also

XDefineCursor, XUndefineCursor

Search for    or go to Top of page |  Section 3 |  Main Index


& XIDEFINECURSOR (3) 03/09/2013

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.