Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fudge(3g) — GL2 W2.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

fudge()  —  Silicon Graphics

NAME

fudge - specifies fudge values to be 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 to be added to the dimensions of a graphics port when it is resized.  Typically, this command is used to provide for a window border.  The extra area will appear as part of the port and will be 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 is constrained to be:

width = xunit∗n + xfudge
height = yunit∗m + yfudge

for integers n and m. With keepaspect the port size is (w, h) where:

(w−xfudge)∗yaspect = (h−yfudge)∗xaspect

It is called at the beginning of a graphics program that will be run with the window manager. If getport is not called or if the system is not running the window manager, fudge is ignored. 

SEE ALSO

getport, keepaspect, stepunit, Multiple Exposure: The IRIS Window Manager in the IRIS User’s Guide

NOTE

This command can be used only in immediate mode. 

Version 2.4  —  May 08, 1986

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