guile-gtk-general
[Top][All Lists]
Advanced

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

mouse events on pixel drawing


From: Tomas By
Subject: mouse events on pixel drawing
Date: Sat, 06 Feb 2016 11:47:20 +0100
User-agent: XS4ALL Webmail

Hello everybody,

What is the best way to connect mouse events to lines and dots on a drawing?

Right now I am thinking I will do my own separate calculation of the pixels when I draw (on a drawing area), and store a mapping from those pixels to the elements (ie lines and dots) which I can then use in the mouse event.

However, this feels extremely primitive.

Is there a better way to do this in Gnome/GTK?

/Tomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]