On 17.05.2012, at 15:50, [email protected] wrote:

> Author: manolo
> Date: 2012-05-17 06:50:11 -0700 (Thu, 17 May 2012)
> New Revision: 9514
> Log:
> Created function fltk3::Widget* fltk3::event_widget() with this Doxygen 
> description:
> Widget to which mouse event coordinates relate.
> 
> Functions fltk3::event_x() and fltk3::event_y() return values that are 
> offsets from the top-left of the widget returned by this function.
> Outside of event-handling contexts, this function returns NULL.

Hmm, I don;t understand why all this is needed. fltk3::Widget::send() should 
update event_x and event_y for the widget that receives the event. So 
AnyWidget::handle() should always read event_x() and _y() relative to its own 
origin (top, left).
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to