[ Previous | Next | Contents | Glossary | Home | Search ]
GL3.2 for AIX: Graphics Library (GL) Technical Reference

curorigin Subroutine

Purpose

Sets the origin of a cursor.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void curorigin
(Int16 index, Int16 xorigin, Int16 yorigin)

FORTRAN Syntax

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.

Description

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.

Parameters

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.

Implementation Specifics

This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.

Files

/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.

Related Information

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.


[ Previous | Next | Contents | Glossary | Home | Search ]