Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XDefCur(3X) — AOS 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XCreateFontCursor(3X)

XRecolorCursor(3X)

XDefineCursor(3X)  —  X Version 11

NAME

XDefineCursor, XUndefineCursor − define cursors

SYNTAX

XDefineCursor(display, w, cursor)
      Display ∗display;
      Window w;
      Cursor cursor;

XUndefineCursor(display, w)
      Display ∗display;
      Window w;

ARGUMENTS

cursorSpecifies the cursor that is to be displayed when the pointer is in the specified window.  You can pass None if no cursor is to be displayed.

displaySpecifies the connection to the X server. 

wSpecifies the window ID. 

DESCRIPTION

The XDefineCursor function defines the mouse cursor. .PN XDefineCursor can generate BadAlloc, BadCursor, and BadWindow errors.

The XUndefineCursor undoes the effect of a previous XDefineCursor for this window. .PN XUndefineCursor can generate a BadWindow error.

DIAGNOSTICS

BadAlloc The server failed to allocate the requested resource or server memory. 

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

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

SEE ALSO

XCreateFontCursor(3X), XRecolorCursor(3X)
Xlib − C Language X Interface

1 March 1988

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026