Author: qmathe
Date: Mon May 25 20:37:00 2009
New Revision: 4693
URL: http://svn.gna.org/viewcvs/etoile?rev=4693&view=rev
Log:
Rewritten ETEvent to return the event location in window base coordinates with
-locationInWindowItem and not -locationInWindowContentItem as wrongly
implemented previously.
The previous implementation happens to work correctly on Mac OS X, because the
bottom border is zero pixel thick and the window base coordinates are not
flipped. I wrongly/weirdly assumed that the window coordinate base was the
content view coordinate space (except it was always non-flipped... extra
assumption I made) when I initially wrote the code.
Also fixed -location to handle the case where the window layer uses flipped
coordinates.
Improved -[ETInstrument hitTestWithEvent:] to intercept and handle window layer
related events correctly.
Updated, cleaned and improved the event handling test suite as necessary.
Modified:
trunk/Etoile/Frameworks/EtoileUI/ChangeLog
trunk/Etoile/Frameworks/EtoileUI/Source/ETEvent.m
trunk/Etoile/Frameworks/EtoileUI/Source/ETInstrument.m
trunk/Etoile/Frameworks/EtoileUI/Tests/test_ETInstrument.m
_______________________________________________
Etoile-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-cvs