Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fudge(3G) — IRIX 6.5.3f

Media Vault

Software Library

Restoration Projects

Artifacts Sought



fudge(3G)                                                            fudge(3G)



NAME
     fudge - specifies fudge values that are added to a graphics window

C SPECIFICATION
     void fudge(xfudge, yfudge)
     long xfudge, yfudge;

PARAMETERS
     xfudge   expects the number of pixels added in the x direction.

     yfudge   expects the number of pixels added in the y direction.

DESCRIPTION
     fudge specifies fudge values that are added to the dimensions of a
     graphics window when it is sized.  Typically, you use it to create
     interior window borders.  Call fudge prior to calling winopen.

     fudge is useful in conjunction with stepunit and keepaspect.  With
     stepunit the window size for integers m and n is:

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

     With keepaspect the window size is (width, height), where:

          (width - xfudge) * yaspect = (height - yfudge) * xaspect

SEE ALSO
     keepaspect, stepunit, winopen

NOTE
     This routine is available only in immediate mode.























                                                                        Page 1



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