Re: GTK3 -- query mouse pointer coordinates for keyboard input?






On Fri, Jan 17, 2014 at 5:29 PM, Stefan Salewski <mail ssalewski de> wrote:
On Fri, 2014-01-17 at 17:18 -0500, Paul Davis wrote:
> you can track where the mouse is with enter/leave events, and there
> are
> often good reasons for wanting to do that anyway.

That should not work well for CAD applications.

We have a large drawing area, where we draw objects using cairo drawing
functions. That are not GTK widgets!

Ardour does the same thing. Except that our objects (all drawn using a custom cairo canvas) do have enter/leave handling. Pressing delete while the mouse pointer is inside an object deletes that object.
 
http://ardour.org/

(*) the current release version uses gnomecanvas, but the next major release will use our new cairo canvas; the principle remains the same either way.



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