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

curstype Subroutine

Purpose

Defines the type and size of the cursor.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void curstype(Int32 type)

FORTRAN Syntax

SUBROUTINE CURSTY(type)
INTEGER*4 type

Description

The curstype subroutine defines the type and size of the cursor. The system supports five cursor types:

Type Size Description
C16X1 16x16 bit No more than one color (default)
C16X2 16x16 bit No more than three colors
C32X1 32x32 bits No more than one color
C32X2 32x32 bits No more than three colors
CCROSS Full window Cross-hair

After calling the curstype subroutine, call the defcursor subroutine to assign a numeric value to the cursor and specify the cursor bitmap.

The cross-hair cursor is formed with a horizontal line and a vertical line (each one pixel wide) that extend completely across the window. Its origin (15,15) is at the intersection of the two lines. It is a one-color cursor that uses color number one.

Parameter

type Specifies one of five values that describe the cursor. (The values are the same for both C and FORTRAN.)

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

Setting the origin of a cursor with the curorigin subroutine.

Controlling cursor visibility by window with the curson or cursoff subroutine.

Defining a cursor with the defcursor subroutine.

Setting the drawing mode to CURSORDRAW with the drawmode subroutine.

Changing a color map entry with the mapcolor subroutine.

Setting the cursor characteristics with the setcursor subroutine.

AIX Graphics Library Overview, Creating a Cursor, and Creating and Managing Windows.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]