defcursor(3G) defcursor(3G)
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)
DESCRIPTION
defcursor defines a cursor glyph. The arguments are a name
(n) and either a 16x16 or 32x32 bitmap. If the cursor has
type C16x2 or C32x32, the bitmap array is twice as big to
hold both layers of the cursor. The cursor origin is at its
lower left corner by default; curorigin can reset the cursor
origin. 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. By default, an arrow is defined
as cursor 0 and cannot be redefined. To replace a cursor,
the new cursor must have the same index as the previous
cursor.
When curstype specifies a cross-hair cursor, defcursor is
ignored .
SEE ALSO
curorigin, getcursor, pick, setcursor, curstype
Programming Guide , Section 6.5, Cursors
NOTE
This routine can be used only in immediate mode.
Page 1 (printed 8/20/87)