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

setvaluator Subroutine

Purpose

Assigns an initial value to a valuator.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void setvaluator
(Device val, 
Int16 init, Int16 min, Int16 max)

FORTRAN Syntax

SUBROUTINE SETVAL(val, init, min, max)
INTEGER*4 val, init, min, max
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 setvaluator subroutine sets the initial value and the minimum and maximum values the device can assume.

Notes:
  1. Some devices, such as tablets, report values fixed to a grid. In such a case, the device defines an initial position and is ignored.
  2. This subroutine cannot be used to add to a display list.
  3. When there is a conflict between GL standards and AIXwindows standards, the AIXwindows standard overrides the GL standard. The setvaluator subroutine cannot be used to restrict the movement of the cursor because the AIXwindows standard states that no client process (such as GL) can restrict the cursor.

Parameters

val Specifies the device number for the valuator being set.
init Specifies the initial value to be assigned to the valuator.
min Specifies the minimum value that the device can assume.
max Specifies the maximum value that the device can assume.

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.
/usr/include/gl/device.h Contains C language constant and variable type definitions for GL.
/usr/include/gl/fdevice.h Contains FORTRAN constant and variable type definitions for GL.

Related Information

Returning the current state of a valuator with the getvaluator subroutine.

AIX Graphics Library Overview, Using the Keyboard, and Controlling Queues and Devices.


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