[cairo] 'picking' with Cairo
cworth at cworth.org
Tue Aug 5 19:05:56 PDT 2008
On Wed, 2008-08-06 at 02:08 +0100, Ioannis Nousias wrote:
> 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.
That's what cairo_in_fill is for.
PS. People often ask for "picking" and have not managed to find this
function yet. Maybe adding the word "picking" to the documentation for
cairo_in_fill and cairo_in_stroke would help.
More information about the cairo