Article View: gnu.epoch.misc
Article #47Re: Pixel Coords --> Character Coords
From: Eric Eide
Date: Sun, 26 Jul 1992 14:58
Date: Sun, 26 Jul 1992 14:58
23 lines
1773 bytes
1773 bytes
In article <9207260359.AA02599@void.ncsa.uiuc.edu> Marc Andreessen writes: Marc> How about: coords-to-point: Marc> Convert X Y SCREEN in pixel coordinates to a list of Marc> (POINT BUFFER WINDOW SCREEN). I found this function, but what I want is a function that turns pixel coordinates into character coordinates, not into a buffer point value. In other words, I want a function that turns pixel coordinates into (window line, column position on that line), as Epoch 3.2 reports. If I must, I can get by with coords-to-point (I think), but it means rewriting a fair bit of my mouse-handling package. Bummer. As an aside, of what use are pixel coordinates anyway, other than that the function coords-to-point requires pixel coordinates? I suppose that it's easier for Epoch 4.0 to report pixel coordinates instead of character coordinates, but is there anything that can be done with pixel coordinates other than turning them into a (point buffer window screen) tuple? -- ------------------------------------------------------------------------------- Eric Eide | University of Utah Department of Computer Science eeide@cs.utah.edu | Buddhist to hot dog vendor: "Make me one with everything."
Technical Details
Message-ID:
<EEIDE.92Jul26145828@asylum.cs.utah.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!caen!hellgate.utah.edu!eeideReferences:
<EEIDE.92Jul24171012@asylum.cs.utah.edu> <9207260359.AA02599@void.ncsa.uiuc.edu>Show Full Headers
Complete Article Headers
Newsgroups: gnu.epoch.misc Path: arc1-ca.pugleaf.net!sparky!uunet!caen!hellgate.utah.edu!eeide From: eeide%asylum.cs.utah.edu@cs.utah.edu (Eric Eide) Subject: Re: Pixel Coords --> Character Coords Message-ID: <EEIDE.92Jul26145828@asylum.cs.utah.edu> In-reply-to: marca@ncsa.uiuc.edu's message of Sun, 26 Jul 1992 03:59:03 GMT Organization: University of Utah Department of Computer Science References: <EEIDE.92Jul24171012@asylum.cs.utah.edu> <9207260359.AA02599@void.ncsa.uiuc.edu> Distribution: gnu Date: 26 Jul 92 14:58:28 Lines: 23