Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ keepaspect(3g) — GL2 W2.5

Media Vault

Software Library

Restoration Projects

Artifacts Sought

keepaspect()  —  Silicon Graphics

NAME

keepaspect − specifies the aspect ratio of a graphics window

SPECIFICATION

C
keepaspect(x, y)
long x, y;

FORTRAN
subroutine keepas(x, y)
integer*4 x, y

Pascal
procedure keepaspect(x, y: longint);

DESCRIPTION

keepaspect specifies the aspect ratio of a graphics window.  Call it at the beginning of a graphics program that is run in the window manager.  It takes effect when winopen is called.  The resulting graphics window maintains the aspect ratio specified in keepaspect, even if it changes size.  For example, keepaspect(1, 1) always results in a square graphics window.  You can also call keepaspect in conjuction with winconstraints to modify the enforced aspect ratio after the window has been created.  If winopen is not called or if the system is not running the window manager, keepaspect is ignored. 

SEE ALSO

winopen, fudge, winconstraints Using mex, the IRIS Window Manager

NOTE

This routine is available only in immediate mode. 

Version 2.5  —  April 22, 1987

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026