[cairo] 'picking' with Cairo

Ioannis Nousias s0238762 at sms.ed.ac.uk
Tue Aug 5 18:08:13 PDT 2008


what's the preferred way to do 'picking' in Cairo. And by that I mean, 
given a 'path', to be able to test if a given point is within that path.

I'm planning to use cairo_path_extents() and then test if the 'point' 
(the mouse to be precise) is within the resulting bounding box, but I'd 
like to follow the 'shape' of the path as well.

any ideas?


The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.

More information about the cairo mailing list