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 ?