Article View: gnu.epoch.misc
Article #45Pixel Coords --> Character Coords
From: Eric Eide
Date: Fri, 24 Jul 1992 17:10
Date: Fri, 24 Jul 1992 17:10
20 lines
1363 bytes
1363 bytes
Please forgive me a FAQ, but I couldn't find an answer in the online Epoch documentation. I have a mouse handling package that worked well under Epoch 3.2, but now it fails under Epoch 4.0. My problem is that button (and motion) events are now described with pixel coordinates rather than character coordinates. What I need is a function to convert screen pixel coordinates into screen character coordinates. Where can I find such a thing, or how can I write one well? (Alternately, I could use a function that converts a point-and-window value into screen-relative character coordinates. Epoch 4.0 provides a function to turn pixel coordinates into a point and buffer and window. But I want character coordinates!) Thanks for any help. -- ------------------------------------------------------------------------------- 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.92Jul24171012@asylum.cs.utah.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!caen!hellgate.utah.edu!eeideShow 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: Pixel Coords --> Character Coords Message-ID: <EEIDE.92Jul24171012@asylum.cs.utah.edu> Organization: University of Utah Department of Computer Science Distribution: gnu Date: 24 Jul 92 17:10:12 Lines: 20