[cairo] 'picking' with Cairo
tgriggs at cincom.com
Tue Aug 5 21:07:04 PDT 2008
On Aug 5, 2008, at 7:05 PM, Carl Worth wrote:
> 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
>> 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
The use of "is" is a great way to indicate it's a predicate test.
Just my 2 c
10 2 letter words: "If it is to be, it is up to me"
More information about the cairo