[Cairo] mouse pointer and cairo

Carl Worth cworth at east.isi.edu
Wed Oct 22 06:23:27 PDT 2003


On Oct 12, Thomas Hunger wrote:
 > > 	int
 > > 	cairo_in_stroke (cairo_t *cr, double x, double y);
 > >
 > > 	int
 > > 	cairo_in_fill (cairo_t *cr, double x, double y);
 > 
 > if these functions return success if a point intersects, they cannot return 
 > cairo_status_t anymore.

None of the Cairo functions that accept a pointer to cairo_t return
cairo_status_t. Most are void, although a few of the cairo_current
functions do return values. Instead, the status is always saved within
the cairo_t itself.

So there would be no problem with using the return value to indicate
intersection here.

-Carl




More information about the cairo mailing list