Re: Intersect in Canvas
- From: Lauris Kaplinski <lauris helixcode com>
- To: "Florent. Devin" <Florent Devin lifl fr>
- Cc: GNOME List <gnome-devel-list gnome org>
- Subject: Re: Intersect in Canvas
- Date: Wed, 5 Jul 2000 21:40:47 +0200 (CEST)
On Tue, 4 Jul 2000, Florent. Devin wrote:
> Hi,
> Is there a way to test if a CanvasItem intersect or
> will intersect with another CanvasItem ?
Not an easy, user-level way.
For canvasitems having SVP-s (sorted vector paths) - most usual shapes
on aa canvas, you can always do art_svp_intersect and test, if result is
empty. You probably would also want to check their binding boxes
overlapping first :) But such API will be unportable and so should be
implemented inside item definitions.
Regards,
Lauris
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]