Re: [cairo] Hit detect surface?
- From: Bill Spitzak <spitzak d2 com>
- To: Behdad Esfahbod <behdad cs toronto edu>
- Cc: cairo cairographics org, Sven Herzberg <herzi gnome-de org>, gtk-devel-list gnome org, "Gustavo J. A. M. Carneiro" <gjc inescporto pt>
- Subject: Re: [cairo] Hit detect surface?
- Date: Wed, 01 Mar 2006 17:29:24 -0800
Behdad Esfahbod wrote:
Doesn't the distance_to_stroke/fill solve this already? You just
find the nearest object and that tells you exactly what's the
maximum radius of a circle that hits only one object?
The purpose of a hit-detect surface is to see if some arbitrary Cairo
code (perhaps in a virtual function of a draw object belonging to a
canvas) is near the cursor without having to rewrite it.
Also it may be useful for detecting transparency in images, glyphs, or
dash patterns (though these could also all be considered bugs in the hit
detect surface, too...)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]