fudge() — Silicon Graphics
NAME
fudge − specifies fudge values that are added to a graphics port when it is resized
SPECIFICATION
C
fudge(xfudge, yfudge)
long xfudge, yfudge;
FORTRAN
subroutine fudge(xfudge, yfudge)
integer*4 xfudge, yfudge
Pascal
procedure fudge(xfudge, yfudge: longint);
DESCRIPTION
fudge specifies fudge values that are added to the dimensions of a graphics port when it is resized. Typically, fudge creates a window border. The extra area appears as part of the port and is reflected in the size of the drag box as the user sizes it. fudge is useful in conjunction with stepunit and keepaspect.
With stepunit the port size for integers n and m is:
width = xunit∗n + xfudge
height = yunit∗m + yfudge
With keepaspect the port size is (w, h) where:
(w−xfudge)∗yaspect = (h−yfudge)∗xaspect
Call fudge at the beginning of a graphics program that runs in the window manager. If you do not call getport, or the window manager is not running, the system ignores fudge.
SEE ALSO
getport, keepaspect, stepunit Using mex, the IRIS Window Manager
NOTE
This routine is available only in immediate mode.
Version 2.5r1 — October 29, 1986