[cairo] How does one Normailze the Mouse Coordinates to the DrawingArea Box?
allen.saucier at cas-inc.com
Mon Jul 2 07:56:30 PDT 2007
does anyone know how to normalize the mouse coordinates to be between
0.0 ~ 1.0 within a particular DrawingArea?
I've just learned how to use the "scale" method for a cairo context but
my mouse positions are coming in as Pixel positions and I've No idea how
to tell if those positions are w/in the Drawing Area let alone how to
normalize them to ONLY the drawing area.
Thank you for the help ahead of time!
More information about the cairo