Mercurial > projects > dynamin
comparison dynamin/gui/events.d @ 30:545af935f201
Remove delta from MouseTurnedEventArgs (Windows-centric).
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Sat, 25 Jul 2009 15:27:35 -0500 |
parents | dfaa3da21b27 |
children | 2a194d52fdb5 |
comparison
equal
deleted
inserted
replaced
29:e6843df719a8 | 30:545af935f201 |
---|---|
77 x, y, _button); | 77 x, y, _button); |
78 } | 78 } |
79 } | 79 } |
80 /// | 80 /// |
81 class MouseTurnedEventArgs : StopEventArgs { | 81 class MouseTurnedEventArgs : StopEventArgs { |
82 int _delta; | |
83 double _scrollAmount; | 82 double _scrollAmount; |
84 public: | 83 public: |
85 this(int delta, double scrollAmount) { | 84 this(double scrollAmount) { |
86 _delta = delta; | |
87 _scrollAmount = scrollAmount; | 85 _scrollAmount = scrollAmount; |
88 } | 86 } |
89 /* | |
90 * This is the amount the mouse wheel was turned. | |
91 */ | |
92 //int delta() { return _delta; } | |
93 /** | 87 /** |
94 * The amount that a control should scroll in response to this event. | 88 * The amount that a control should scroll in response to this event. |
95 * In a text control, this is the number of lines to scroll. | 89 * In a text control, this is the number of lines to scroll. |
96 * This will be negative if the control should scroll upward and positive | 90 * This will be negative if the control should scroll upward and positive |
97 * if the control should scroll downward. If the amount to be scrolled | 91 * if the control should scroll downward. If the amount to be scrolled |