diff dynamin/gui/container.d @ 8:b621b528823d

whenXX methods have to come before the event if switched to template mixins.
author Jordan Miner <jminer7@gmail.com>
date Wed, 15 Jul 2009 14:04:55 -0500
parents 4029d5af7542
children ccc108b25a0a
line wrap: on
line diff
--- a/dynamin/gui/container.d	Wed Jul 15 13:59:16 2009 -0500
+++ b/dynamin/gui/container.d	Wed Jul 15 14:04:55 2009 -0500
@@ -45,15 +45,15 @@
 		layout();
 	}
 public:
-	/// This event occurs after the control's minimum size has been changed.
-	Event!() minSizeChanged;
 	/// Override this method in a subclass to handle the minSizeChanged event.
 	protected void whenMinSizeChanged(EventArgs e) { }
+	/// This event occurs after the control's minimum size has been changed.
+	Event!() minSizeChanged;
 
+	/// Override this method in a subclass to handle the maxSizeChanged event.
+	protected void whenMaxSizeChanged(EventArgs e) { }
 	/// This event occurs after the control's maximum size has been changed.
 	Event!() maxSizeChanged;
-	/// Override this method in a subclass to handle the maxSizeChanged event.
-	protected void whenMaxSizeChanged(EventArgs e) { }
 
 	this() {
 		minSizeChanged = new Event!()(&whenMinSizeChanged);