diff dynamin/gui/events.d @ 106:acdbb30fee7e

Port to D2. Most of the effort was dealing with immutable and const.
author Jordan Miner <jminer7@gmail.com>
date Mon, 17 Dec 2012 23:41:50 -0600
parents 5c8c1c2e12c0
children
line wrap: on
line diff
--- a/dynamin/gui/events.d	Sat Nov 24 10:21:50 2012 -0600
+++ b/dynamin/gui/events.d	Mon Dec 17 23:41:50 2012 -0600
@@ -59,7 +59,7 @@
 	double y() { return _location.y; }
 	///
 	MouseButton button() { return _button; }
-	string toString() {
+	override string toString() {
 		return format("MouseEventArgs [x={}, y={}, button={}]",
 			x, y, _button);
 	}
@@ -95,7 +95,7 @@
 	bool scrollScreen() {
 		return _scrollScreen;
 	}
-	string toString() {
+	override string toString() {
 		return format("MouseTurnedEventArgs [scrollAmount={}, scrollScreen={}]",
 			_scrollAmount, _scrollScreen);
 	}
@@ -130,7 +130,7 @@
 	bool controlDown() { return _controlDown; }
 	// Returns true if the alt key is currently down and false otherwise.
 	bool altDown() { return _altDown; }
-	string toString() {
+	override string toString() {
 		return format("KeyEventArgs [key={}, repeat={}]", _key, _repeat);
 	}
 }