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

stepunit Subroutine

Purpose

Specifies that a window change size in discrete steps.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void stepunit(Int32 xunit, Int32 yunit)

FORTRAN Syntax

SUBROUTINE STEPUN(xunit, yunit)
INTEGER*4 xunit, yunit

Description

The stepunit subroutine specifies the smallest steps (in pixels) by which a window can be resized. This subroutine is called at the beginning of a subroutine, but takes effect only when the winopen subroutine is called.

The stepunit subroutine can also be called in conjunction with the winconstraints subroutine to modify the enforced step size after the window is created. The default step unit is one pixel by one pixel. In other words, by default, the window can be resized arbitrarily.

With the stepunit subroutine, the programmer can prevent the user from resizing a window except in discrete jumps. If the step unit is large, this subroutine essentially limits the sizes and shapes of a window.

Note: This subroutine cannot be used to add to a display list.

Parameters

xunit Specifies the amount of change per unit in the x direction, measured in pixels.
yunit Specifies the amount of change per unit in the y direction, measured in pixels.

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

Specifying pixel values to be added to a window with the fudge subroutine.

Binding window constraints to the current window with the winconstraints subroutine.

Creating a window with the winopen subroutine.

Creating and Managing Windows.


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