Re: [cairo] Hit detect surface?
- From: "Vladimir Vukicevic" <vladimirv gmail com>
- To: "Bill Spitzak" <spitzak d2 com>
- Cc: Sven Herzberg <herzi gnome-de org>, cairo cairographics org, gtk-devel-list gnome org, Havoc Pennington <hp redhat com>, "Gustavo J. A. M. Carneiro" <gjc inescporto pt>
- Subject: Re: [cairo] Hit detect surface?
- Date: Wed, 1 Mar 2006 01:04:10 +0100
On 2/28/06, Bill Spitzak <spitzak d2 com> wrote:
> This can be used to see if some arbitrary Cairo code draws anything (or
> anything non-transparent) in a parallelogram-shaped region. To do
> accurate hit detection the caller should loop, using smaller areas each
> time, until only one object is hit or a minimum size is reached.
This sounds impossible to implement with any surface but the image
backend -- cairo has no knowledge of what pixels actually get touched
by underlying platform methods. What are the use cases for this?
- Vlad
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]