Mercurial > projects > dynamin
diff dynamin/gui/window.d @ 35:ee9a564d2814
Allow more use of Containers versus Panels.
author | Jordan Miner <jminer7@gmail.com> |
---|---|
date | Mon, 27 Jul 2009 01:35:35 -0500 |
parents | d55b5b998412 |
children | ad551ec36b75 |
line wrap: on
line diff
--- a/dynamin/gui/window.d Sat Jul 25 22:50:45 2009 -0500 +++ b/dynamin/gui/window.d Mon Jul 27 01:35:35 2009 -0500 @@ -154,7 +154,7 @@ Window _owner; WindowBorderStyle _borderStyle; bool _resizable = true; - Panel _content; + Container _content; Control _focusedControl; package Control focusedControl() { return _focusedControl; } package void focusedControl(Control c) { @@ -180,7 +180,7 @@ this.text = text; } - void content(Panel panel) { + void content(Container panel) { if(panel is null) throw new IllegalArgumentException("content must not be null"); // TODO: remove handlers @@ -224,7 +224,7 @@ _content.size = _size-_borderSize; ignoreResize = false; } - Panel content() { + Container content() { return _content; }