Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!cernvax!chx400!chx400!bernina!neptune!c!mneerach From: mneerach@iiic.ethz.ch (Matthias Ulrich Neeracher) Newsgroups: comp.sys.mac.programmer Subject: Re: GlobalToLocal() LocalToGlobal() information Keywords: QuickDraw, GlobalToLocal, Window Managare Message-ID: <25528@neptune.inf.ethz.ch> Date: 18 Feb 91 09:26:41 GMT References: <1991Feb17.190448.19116@dartvax.dartmouth.edu> Sender: news@neptune.inf.ethz.ch Reply-To: mneerach@iiic.ethz.ch Distribution: comp Organization: Departement Informatik, ETH, Zurich Lines: 21 In article <1991Feb17.190448.19116@dartvax.dartmouth.edu>, watt@eleazar.dartmouth.edu (Gill Watt) writes: >The (WindowPtr).portRect contains the dimensions of a window >in the local coordinate system. To translate a point to the >global coordinate system one uses LocalToGlobal( &point ). > >This LocalToGlobal() translation is simply addition or >subtraction from some reference point (window location in >global coordinates). This information is contained in the >WDEFResource boundsRect element, but I don't know where >it goes during the GetWindow( ) function call. > >Where is this reference point stored? (structure? element?). The reference point is the topLeft of portBits.bounds, I think. Matthias -- Matthias Neeracher mneerach@iiic.ethz.ch "These days, though, you have to be pretty technical before you can even aspire to crudeness." -- William Gibson, _Johnny Mnemonic_