On 11/27/06, <b class="gmail_sendername">Piotr Zurek</b> &lt;<a href="mailto:p.zurek@gmail.com">p.zurek@gmail.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi there,<br><br>Don't worry - I'm not going to ask if cairo supports hit detection.<br>I was just wondering how do you guys usually approach that problem in<br>your applications. What I'm doing is simply calculating a bounding box
<br>of some objects and then simply comparing them to hit coordinates.<br>That's all good for rectangular (or almost rectangular) objects but what<br>about things like bezier curves. Of course, I could calculate that as<br>
well but I hope there exists an easier way.<br>I guess I should simply ask what's the best way to utilize in_fill and<br>in_stroke but maybe someone has different suggestion?</blockquote><div><br>&nbsp; GooCanvas (one cairo based canvas widget) uses in_stroke and in_fill.&nbsp; Simple but works pretty well.
<br>&nbsp;</div></div>-- <br>Gustavo J. A. M. Carneiro<br>&quot;The universe is always one step beyond logic.&quot;