"Floating" shapes on image



Hi,
I wnat to add shapes (rectangles, polygons) to an image that I'm displaying in a Gtk::Image . The shapes should be "floating" on top of the image so that they can be moved or resized with the mouse. I suppose a class that redraws itself at different locations is a good start? But how would I capture mouse events on such an object though? Can I simply use _clicked()? I suppose its sort of like a canvas effect - should I use Gnome Canvas instead?

Thanks...
Johan










--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
--------------------------------------------------------------------
Please find our disclaimer at http://www.ukzn.ac.za/disclaimer
--------------------------------------------------------------------
<<<<gwavasig>>>>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]