<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi all,<br>
<br>
i need some help for the following case:<br>
<br>
i am drawing on a gtk drawing area "expose" event using cairo.<br>
I draw several layers (images, from png files) with transparency
(alpha) and at the end, over them, i draw some circular buttons. <br>
All these layers + buttons are "cairo_surface_t".<br>
I am actually "drawing" the buttons since i can't create them as
real gtk buttons over the drawing area.<br>
<br>
I am looking for a way to know, after the left mouse "button click"
event happen, what is the surface(button) i am over, to simulate a
button-click event.<br>
I could keep track of buttons images coordinates/size, but these
images have a rectangular shape, so click will work also in the
corners, outside of the round button shape, and this is not desired.
<br>
<br>
Any help/suggestion is really appreciated.<br>
<br>
many thanks<br>
regards<br>
angelo<br>
<br>
<div class="moz-signature">-- <br>
<font style="font-size: 10px; font-family: 'Lucida
Console',Monaco,monospace;">
</font>
<pre><font style="font-size: 10px; font-family: 'Lucida Console',Monaco,monospace;">
</font>
</pre>
</div>
</body>
</html>