3.7A.1 ~ RoJtJnes
PROCE1RE MNeTd...
ttl. v:
L~MNeTm.. moves the
pen
to location (tuI) In view coordlnates. ~ ~ Isperformed.
PRO(E1RE ~ (eI\. eN: LaGNT);
~ rroves the pen a dlstfme of CI'I oorlzontally nJ
*
verticallytrom
Itscurrent location; It calls
MNeTt:l..(h+ctUt..w),Where
(tuI)Is
thecurrent
location In view coordinates. 1lle positive directions are to the rlg'lt En2c doWn. No ~ Is perfOrmed.
PROCaJ·p£ UnaTm.. ~
v:
~UneTd... draWS a line
trom
thecurrent
pen location to the location speclfled (In viewcoordlnates)
byh
;n1v.
Thenew pen
locatloo Is (tuI) after theltne
Is draWn.PROCEX..RE LIneL (eI\. dV: L~
LIneL dI1r.'s 8 line to the locat1on that Is 8 dlstfme Of CIl
nortzmtally
rid dV verticallytrom
thecurrent
pen locaUm;It cans
UneT~~ Where (tuI)Is
tnecurrent locaUoo.
TheposlUve
dlrecUOOsare to
tne rl~t ald doWn. The pen locaUon beComes tne coordlnates of the En1 of the Une aftertne llne
Is
draWn.L/$II TOOlKIt Refen!nce ~
3.7.4.2
Qi4IlIC
qeatlms m ~~ FnmeLRect (r: ~
FnmeLRect draWS 8'l ouU1ne ).1st inside tile specified recta'lgle, using the
current views pen pattem, mode, and size. 1he ouU1ne Is as wide as the pen w1dUl crld
as
tall as tile pen hel~t. ItIs
draWn with tne the current pen pattern (&:rAIt1 axxlrtJlng to tne pattern tnrlSfer mode (p MJde~ Tne pen lOcation Is not eta _ by this proceclJre.~ PatnU..Rect (r. ~
PatnU..Rect paints tne specified recta'lgle with tne current pen pattern and mode. The rectangle 00 the bitmap
Is
fllled wltn the pPat, CDX)~ to thepattern tra ~er mode specified by II MJde. The pen location Is not ctwlged by this proceclJre.
~ EIaseLRect (r. ~
EraseLRect paints the specified rectangle '4Ilth the current GrafPort'$ back-gJ'OlRJ pattern
twat
(In patCq)y mode~ne
GrafPort's p-Pat. en:! pMlde"are Ig1Ored; the pen lOcation Is not ~cta~ "
PRCXEX.RE IrM1LRect (r. ~
IrM1LRect Inverts the pixels erolosed by the specified rec~le: f!NeTy White
pixel becomes black
am every
black pixel becomes White. The GlafPort'spPat, II MJde,
ens
R*Patare
all Ig"med; the pen locaUoo Is rot ~ PRCX:EI1RE Fl1LRect (r.LRect:
IPat: LPat~Fl1I..Rect fills the specified rectangle with the given pattern (In patCq)y mode~ 1he GrafPort's ~ pMJde,
em twat
are all l~red; the penlocation is rot Char ~
3.7.A3 Gi8Jldc qeatIons .... 0V8ls
PRCXHlLRE FraneLOV8l (r. ~
FraneLovat· draWs al ouU1ne ).1St lnslde the oval that flts inside tile specified
rec~le.. 1te outline Is
as
wideas
the pen widtham as tall as
the penhel~ It Is draWn with the prPa\, accordlng to the pattern tJar.sfer mode
specified by pMJde. The pen location Is rot
cra9ld
by thls procedJre.PROCE11.RE Pak1tL.0V8l (r. ~
Pak1tL.0V8l paints 8'l oval )at Inslete the speclfled l8Cta'lgl8. The OWl Is flllad with tile pen pattern pPat, acco~ to the pattern
tra.fer
modespecified by
PI
MJde. The pan locationIs
rot cta'9d by this procedJre.PROCE:UI: EraseLOV8l (r. ~
EmseLovat paints CI'l oval ).1st inside tile specified rect.arge with the current
backg1"om pattern
twat
(In patCcJpy mode~ The pen patternJI'Pat
CIld thepattern tnnsfer mode prMJde are t(JOl'ed; tile pen locattcn Is not chal9'C1
L/ss TooJKJt ReIWence /t1InJ8J
3.7AA
GI"'c
Operatlons .01 RolnB1-COmer RectfnIeSPRCJC:t7I1RE FnmeLRRect (r. L.Rect; CMIl~ ~ NIE~
FnmeLRRect draWS til OUUlne ),1st inside the speclfled ro.niBd-comer
rec~le, us~ the current
pen
pattern, roode, an:J size. OV8lWldth ani ovaIHBl~ specify the dicrneters Of curvature for the comers. 1lle outline Is as wide as Ulepen
width cn:J as tall as the pen hel~l Thepen
.locatlm Is rot ~ by this pl'OC8Cl.lr8.PRCX::HU£ PaInU...RRect (r.
LRect.:
CMIl~ ~ NIE~PaIntLRRect paints the specified rou Ided-OOrner recta"lgle with tne current GIafPOrt's pen pattern
em
rmde. OV8lWldUl cn:J ovaIlEJIg't specify thediameters of curvature for the comers. The ro.nted-comer recWge CI'l the bitmap Is fllled with the prPat, acco~ to the pattern tnnsfer roode specified by pMldB. The
pen
locaUmlsrot chal9'd
by thisproceclAre.
PRCXE1RE EmseLRRect (r. L.Rect; CMlWldUl. CMIII ~ NIE~
ErasaLRRsct paints the specified ro.niBd-comer recta1gle· with tne current GlafPort's baCkgr0.n2 pattern bkPat (In ~ roode~ OV8IWldth
em
~ speclfy the diameters Of curvature for the comers. Tne GIafPOrt's pf>at crld JI fitJde are I~red; Ule
pen
locaUm Is rot challge(1PRCX::HU£ hIrtLRRect (r:
LRect.:
CMIl~ oval ~ NIE~hIrtLRRect Inverts the pixelS arolosed by the speclfled reJU'Gd-comer recW9e: every white plxel beca'nes bleD
cnt
every bla:;k plxel beca'nesFI1LRR8ct fills tne speciftedro.niBd-comer recWge with the given pattern (In patCqJy roode~ OV8IWIdth
am
oval _ _ specify the diameters ofcurvature fOr the comers. Tne p-Pat., pi fitJde, cn:J I*Pat are all t~red; the
pen
locaUO'l Is rot challge(1LI$II ToolKIt ReRmJnce I-1BfUJJ
uslrYJ the current GrafPort's
pen
pattern, roode., and size. stm1.PfQle lrdcates where· the arc begins en:J Is treated rood~· ~ deflnes the extent Of thearc.
1lle ~esare given
InpostUw or negaUve
degreeS;a poslUve
~e goes clockwise., '-"lIe a negatlve 8'9\e
goes
COU'lterolOCkwlse. zero degrees Is at 12 o'clOCk tll~ goo (or -27lrlls at 3 o'clOCk" lao- (or -lao-) Is the current GrafPort's backgrou'YJ pattern I*Pat (In patCqJy mode~StartArge and acArQIe define tne arc of the wedge as In FnrneArc. The lworat the·pen locatlmls