[cairo] Moving objects with mouse

Roman Beslik beroal at ukr.net
Fri May 7 18:43:09 PDT 2010


AFAIK Cairo does not mess with mouse at all, Cairo only draws. That task 
that you have described is a GTK task.

On 07.05.10 13:41, João Oliveira wrote:
> Hi,
>
> I am quite new to gtk and cairo and I would like to ask what is the best way of doing the following very simple program:
>
> I want to draw 2 different rectangles in a drawing area widget (?). I want to be able to move them with de mouse freely in the drawing area. Is there a way to associate the mouse to a single rectangle? How the best (the simple) way of doing this?
> In the examples I saw, the objects were draw in the same widget. Is it possible to have different ones and simply move them in the window without have to redraw?
>
> So help would be very appreciate!
>
> Thanks
> João Oliveira.
> --
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
>
>
>
>    

-- 
Best regards,
   Roman Beslik.



More information about the cairo mailing list