Mercurial > projects > dynamin
diff dynamin/gui/events.d @ 31:2a194d52fdb5
Implement MouseTurnedEventArgs.scrollScreen.
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Sat, 25 Jul 2009 15:38:35 -0500 |
parents | 545af935f201 |
children | c138461bf845 |
line wrap: on
line diff
--- a/dynamin/gui/events.d Sat Jul 25 15:27:35 2009 -0500 +++ b/dynamin/gui/events.d Sat Jul 25 15:38:35 2009 -0500 @@ -80,9 +80,11 @@ /// class MouseTurnedEventArgs : StopEventArgs { double _scrollAmount; + bool _scrollScreen; public: - this(double scrollAmount) { + this(double scrollAmount, bool scrollScreen) { _scrollAmount = scrollAmount; + _scrollScreen = scrollScreen; } /** * The amount that a control should scroll in response to this event. @@ -104,11 +106,11 @@ * scrollScreen will return false. */ bool scrollScreen() { - return false; + return _scrollScreen; } string toString() { return format("MouseTurnedEventArgs [scrollAmount={}, scrollScreen={}]", - _scrollAmount, scrollScreen); + _scrollAmount, _scrollScreen); } } ///