# HG changeset patch # User Jordan Miner # Date 1249763484 18000 # Node ID 3738a2d0bac3f7ed1323dba139a95956ed6a12d6 # Parent 6e33b00595e9fb165d975433fd807c728311ad37 Fix comments and add blank lines. diff -r 6e33b00595e9 -r 3738a2d0bac3 dynamin/gui/window.d --- a/dynamin/gui/window.d Tue Aug 04 21:37:55 2009 -0500 +++ b/dynamin/gui/window.d Sat Aug 08 15:31:24 2009 -0500 @@ -111,7 +111,7 @@ /** * The different types of borders that a window may have. * These do not affect whether the window is resizable-- - * use Window.Resizable for that. + * use Window.resizable for that. */ enum WindowBorderStyle { /** Specifies that the window has no border around the content area. */ @@ -121,7 +121,9 @@ * and minimize button. */ Normal, - /** Specifies that the window has a normal border without a minimize button. */ + /** + * Specifies that the window has a normal border without a minimize button. + */ Dialog, /** Specifies that the window has the border of a floating tool box. */ Tool @@ -175,6 +177,7 @@ _borderStyle = WindowBorderStyle.Normal; recreateHandle(); } + /// ditto this(string text) { this(); this.text = text; @@ -198,6 +201,7 @@ _content.size = best; } + bool ignoreResize; void whenContentResized(EventArgs e) { if(ignoreResize) @@ -243,8 +247,10 @@ return _handle; } + /// bool handleCreated() { return backend_handleCreated; } + /// void recreateHandle() { backend_recreateHandle(); } @@ -268,6 +274,7 @@ } override bool topLevel() { return true; } override Container parent() { return null; } + // TODO: because you should always be able to click a window from // the taskbar, then show it on taskbar if window has an owner, // but don't if it does not @@ -278,6 +285,7 @@ recreateHandle(); } Window owner() { return _owner; } + alias Control.visible visible; void visible(bool b) { _visible = b; @@ -350,6 +358,7 @@ return; backend_location = pt; } + alias Control.size size; void size(Size size) { super.size(size); @@ -358,12 +367,7 @@ return; backend_size = size; } - /** - * Gets the size of the border/frame around this window. - */ - BorderSize borderSize() { - return _borderSize; - } + alias Control.text text; void text(string str) { super.text(str); @@ -373,6 +377,13 @@ } /** + * Gets the size of the border/frame around this window. + */ + BorderSize borderSize() { + return _borderSize; + } + + /** * Moves this window to the specified position relative to * the specified control. If no control is specified, the * window is positioned relative to the screen.