winopen() — Silicon Graphics Silicon Graphics
NAME
winopen − creates a graphics window in the window manager
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 current graphics window’s state and replaces it as the current window. If no window characteristics are specified or the description is incomplete, the window manager prompts the user for the missing information. Use the cursor to show the size and location of the graphics window. In FORTRAN, there is an extra argument, length, which is the number of characters in the name string.
SEE ALSO
minsize, maxsize, keepaspect, prefsize, prefposition, stepunit, fudge, noport, foreground, winclose Using mex, the IRIS Window Manager
NOTE
This routine is available only in immediate mode in the window manager.
Version 2.5 — April 22, 1987