Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ winopen(3G) — GL2 W3.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

winopen(3G)  —  Silicon Graphics

NAME

winopen − creates a graphics window

SPECIFICATION

C
long winopen(name)
char name[];

FORTRAN
integer*4 function winope(name,length)
character*(*) name
integer*4 length

Pascal
function winopen(name: pstring128): longint;

DESCRIPTION

winopen creates a graphics window.  Before calling winopen, the characteristics of the graphics window must be specified by minsize, maxsize, keepaspect, prefsize, prefposition, stepunit, fudge, and foreground.  This will initialize graphics the first time it is called in a program. 

winopen returns a small integer value (gid) identifying the graphics window, or −1 if no additional graphics windows are available.  The new window inherits the state of the current graphics window, and replaces it as the current window.  If no window characteristics are specified or if the description is incomplete, the window manager prompts you for the missing information.  Use the cursor to show the size and location of the graphics window.  name specifies the window .deskconfig uses to refer to the window.  In FORTRAN, there is an extra argument, length, which is the number of characters in the name string.  winopen queues the pseudo devices INPUTCHANGE and REDRAW. 

SEE ALSO

foreground, fudge, keepaspect, maxsize, minsize, noport, prefposition, prefsize, stepunit, winclose Using mex, Chapter 2, Programming with mex

NOTE

This routine is available only in immediate mode under the window manager. 
 

Version 3.6  —  December 20, 1987

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