[cairo] help for mouse interaction
angelo70 at gmail.com
Fri Jan 27 14:32:37 PST 2012
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
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cairo