[cairo] Mouse click collision with cairo curve

Deepankar Sharma deepankar.sharma at gmail.com
Mon Aug 27 18:07:11 PDT 2007


I am just beginning to play with cairo and am currently battling with this
problem. I have a few cairo curves (drawn with cairo_curve_to) on the
screen. I am storing the begin, end, thickness and control points for the
curves. When I detect a click, I want to check if I just clicked over a
curve. In essence, I want to check if an x,y co-ordinate lies on a curve.
Any ideas / hints / approaches ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20070827/2f51f129/attachment.html 


More information about the cairo mailing list