Sets the origin of a cursor.
void curorigin (Int16 index, Int16 xorigin, Int16 yorigin)
SUBROUTINE CURORI(index, xorigin, yorigin) INTEGER*4 index, xorigin, yorigin
Note: For FORTRAN users, this subroutine accepts long integer parameters (INTEGER*4) when invoked from a FORTRAN program, although it accepts short integers when invoked from a C program. The C and FORTRAN syntax shown here reflect this difference.
The curorigin subroutine sets the origin of a cursor glyph. The origin is the point on the cursor glyph that aligns with the current cursor valuators. The origin is specified in pixels from the lower left-hand corner of the cursor glyph. Before calling the curorigin subroutine, the cursor glyph must have been defined with the defcursor subroutine. The curorigin subroutine does not take effect until the setcursor subroutine is called.
The default origin for a user-defined cursor glyph is (0,0), that is, the lower left-hand corner.
Note: This subroutine cannot be used to add to a display list.
|index||Specifies an index into the cursor table.|
|xorigin||Specifies the x distance of the origin relative to the lower left corner of the cursor.|
|yorigin||Specifies the y distance of the origin relative to the lower left corner of the cursor.|
This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.
|/usr/include/gl/gl.h||Contains C language constant and variable type definitions for GL.|
|/usr/include/gl/fgl.h||Contains FORTRAN constant and variable type definitions for GL.|
Defining the type and size of a cursor with the curstype subroutine.
Defining a cursor with the defcursor subroutine.
Setting the drawing mode to CURSORDRAW with the drawmode subroutine.
Setting the cursor characteristics with the setcursor subroutine.
AIX Graphics Library Overview, Creating a Cursor, and Creating and Managing Windows.