# HG changeset patch # User Jordan Miner # Date 1249781748 18000 # Node ID 84beb40c1665ee5971fd731eafc6b979a69ec7c6 # Parent 60832e1eef04d2ec35d84ff9f92224632d9d4c25 Edit some comments. diff -r 60832e1eef04 -r 84beb40c1665 dynamin/gui/button.d --- a/dynamin/gui/button.d Sat Aug 08 20:35:20 2009 -0500 +++ b/dynamin/gui/button.d Sat Aug 08 20:35:48 2009 -0500 @@ -172,16 +172,20 @@ /// This event occurs after the button has been clicked. Event!(whenClicked) clicked; + /// this() { clicked.mainHandler = &whenClicked; _focusable = true; } + /// this(string text) { this(); this.text = text; } override Size bestSize() { return Theme.current.Button_bestSize(this); } + /// ButtonState state() { return _state; } + /// void state(ButtonState s) { _state = s; repaint(); } /** * Returns true if this button should be painted as being default. diff -r 60832e1eef04 -r 84beb40c1665 dynamin/gui/window.d --- a/dynamin/gui/window.d Sat Aug 08 20:35:20 2009 -0500 +++ b/dynamin/gui/window.d Sat Aug 08 20:35:48 2009 -0500 @@ -461,7 +461,7 @@ */ Rect[] snapRects = null; /** - * Convenience method that sets SnapRects to an array + * Convenience method that sets snapRects to an array * with just the specified Rect. */ void snapRect(Rect rect) { @@ -469,7 +469,7 @@ } /** - * The SnapDistance specifies how close a window has to be to a + * The snapDistance specifies how close a window has to be to a * snap rectangle for the window to snap to it. The default is 10 pixels. */ uint snapDistance = 10; @@ -521,9 +521,9 @@ } /** - * 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. + * 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. */ void position(Position pos, Control c = null) { Rect rect;