diff dynamin/gui/window.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 73060bc3f004
children
line wrap: on
line diff
--- a/dynamin/gui/window.d	Sat Nov 24 10:21:50 2012 -0600
+++ b/dynamin/gui/window.d	Mon Dec 17 23:41:50 2012 -0600
@@ -443,7 +443,7 @@
 	}
 
 	alias Control.repaint repaint;
-	void repaint(Rect rect) {
+	override void repaint(Rect rect) {
 		if(!handleCreated)
 			return;
 		backend_repaint(rect);
@@ -485,7 +485,7 @@
 
 	// TODO: 1.0  MinSize -> contentMinSize  MaxSize -> contentMaxSize
 	alias Control.location location;
-	void location(Point pt) {
+	override void location(Point pt) {
 		super.location(pt);
 		if(!handleCreated)
 			return;
@@ -493,7 +493,7 @@
 	}
 
 	alias Control.size size;
-	void size(Size size) {
+	override void size(Size size) {
 		super.size(size);
 		_content.size = size - _borderSize;
 		if(!handleCreated)
@@ -502,7 +502,7 @@
 	}
 
 	alias Control.text text;
-	void text(string str) {
+	override void text(string str) {
 		super.text(str);
 		if(!handleCreated)
 			return;
@@ -529,7 +529,7 @@
 			rect = desktopRect;
 		}
 		Point newLoc = Point();
-		switch(pos) {
+		final switch(pos) {
 		case Position.TopLeft:
 		case Position.Left:
 		case Position.BottomLeft:
@@ -546,7 +546,7 @@
 			newLoc.x = rect.x + rect.width - width;
 			break;
 		}
-		switch(pos) {
+		final switch(pos) {
 		case Position.TopLeft:
 		case Position.Top:
 		case Position.TopRight: