getport(3G) — Silicon Graphics
NAME
getport − creates a graphics window under the window manager
SPECIFICATION
C
getport(arg)
char arg[];
FORTRAN
subroutine getpor(arg, length)
character*(*) arg
integer*4 length
Pascal
procedure getport(arg: pstring128);
DESCRIPTION
getport does a graphics initialization and creates a graphics window according to the constraints specified in minsize, maxsize, keepaspect, prefsize, prefposition, stepunit, fudge, noport, and foreground. After they are bound to the graphics window, these constraints are reset to zero.
If no constraints are specified or if the description is incomplete, the window manager prompts for the missing information. If you use the cursor to show the size and location of the graphics window, getport puts the graphics program in the background, unless foreground is called before getport.
When you call getport, the pseudo devices INPUTCHANGE and REDRAW are automatically queued.
When you call getport outside the window manager, it creates a standard-size graphics window: (xmin 0, xmax 1023, ymin 0, ymax 767).
arg has no function at this time.
In FORTRAN, there is an extra argument, length, which is the number of characters in the name string.
SEE ALSO
foreground, fudge, keepaspect, maxsize, minsize, noport, prefposition, prefsize, stepunit, winconstraints, winopen Using mex , Chapter 2, Programming with mex
NOTE
winopen is preferred over getport for manipulating graphics windows. This routine is available only in immediate mode.
Version 3.6 — December 20, 1987