diff dynamin/gui/scrollable.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/scrollable.d	Sat Nov 24 10:21:50 2012 -0600
+++ b/dynamin/gui/scrollable.d	Mon Dec 17 23:41:50 2012 -0600
@@ -230,7 +230,7 @@
 	 * Gets whether the horizontal scroll bar is currently shown.
 	 */
 	bool HScrollBarVisible() {
-		switch(_scrollBars) {
+		final switch(_scrollBars) {
 		case VisibleScrollBars.None:
 		case VisibleScrollBars.Vertical:
 			return false;
@@ -251,7 +251,7 @@
 	 * Gets whether the vertical scroll bar is currently shown.
 	 */
 	bool VScrollBarVisible() {
-		switch(_scrollBars) {
+		final switch(_scrollBars) {
 		case VisibleScrollBars.None:
 		case VisibleScrollBars.Horizontal:
 			return false;