help for mouse interaction

angelo <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Hi all,

i need some help for the following case:

i am drawing on a gtk drawing area "expose" event using cairo.
I draw several layers (images, from png files) with transparency (alpha) 
and at the end, over them, i draw some circular buttons.
All these layers + buttons are "cairo_surface_t".
I am actually "drawing" the buttons since i can't create them as real 
gtk buttons over the drawing area.

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.
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.

Any help/suggestion is really appreciated.

many thanks
regards
angelo

--

--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.