Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ defcursor(3G) — GL2 W3.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

defcursor(3G)  —  Silicon Graphics

NAME

defcursor − defines a cursor glyph

SPECIFICATION

C
defcursor(n, curs)
short n;
Cursor curs;

FORTRAN
subroutine defcur(n, curs)
integer*4 n
integer*2 curs(16)

Pascal
procedure defcursor(n: Short; var curs: Cursor);

DESCRIPTION

defcursor defines a cursor glyph.  The arguments are a name (n) and a 16x16 bitmap.  The cursor origin is at the cursor’s lower-left corner by default; use curorigin to reset it.  The cursor origin is the position influenced by valuators attached to the cursor, and is also the position pick uses for the picking region.  The name is used in subsequent cursor routines.  An arrow is defined as cursor 0 by default and cannot be redefined.  To replace a cursor, the new cursor must have the same index as the previous one. 

When using multiple windows, patterns, cursors, and fonts are available to all windows. 

SEE ALSO

curorigin, getcursor, pick, setcursor Programming Guide, Section 6.4, Cursors

NOTE

This routine can be used only in immediate mode. 

Version 3.6  —  December 20, 1987

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