getport() — Silicon Graphics Silicon Graphics
NAME
getport − creates a graphics window in the window manager
SPECIFICATION
C
getport(name)
char name[];
FORTRAN
subroutine getpor(name, length)
character*(*) name
integer*4 length
Pascal
procedure getport(name: 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 (0).
If no constraints are specified or if the description is incomplete, the window manager prompts the user for the missing information. The user employs 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 outside the window manager, it creates a standard-size graphics : (xmin 0, xmax 1023, ymin 0, ymax 767). In FORTRAN, there is an extra argument, length, which is the number of characters in the name string.
SEE ALSO
winopen, minsize, maxsize, keepaspect, prefsize, prefposition, stepunit, fudge, noport, foreground, winconstraints Using mex, the IRIS Window Manager
NOTE
winopen is preferred over getport for manipulating graphics windows. sp. getport is available only in immediate mode.
Version 2.5 — April 22, 1987