comparison mde/gui/widget/Floating.d @ 147:075705ad664a

Added a border widget.
author Diggory Hardy <diggory.hardy@gmail.com>
date Wed, 11 Feb 2009 13:02:30 +0000
parents 66c58e5b0062
children a86f8445ccc8
comparison
equal deleted inserted replaced
146:783969f4665c 147:075705ad664a
11 See the GNU General Public License for more details. 11 See the GNU General Public License for more details.
12 12
13 You should have received a copy of the GNU General Public License 13 You should have received a copy of the GNU General Public License
14 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 14 along with this program. If not, see <http://www.gnu.org/licenses/>. */
15 15
16 /** The Window class. Becoming a widget. */ 16 /** The "window" class − a widget. */
17 module mde.gui.widget.Floating; 17 module mde.gui.widget.Floating;
18 18
19 import mde.gui.widget.AParentWidget; 19 import mde.gui.widget.AParentWidget;
20 import mde.gui.exception; 20 import mde.gui.exception;
21 import mde.content.IContent; 21 import mde.content.IContent;
157 super.draw; 157 super.draw;
158 158
159 mgr.renderer.restrict (x,y, w,h); 159 mgr.renderer.restrict (x,y, w,h);
160 foreach (i; sWOrder) 160 foreach (i; sWOrder)
161 with (sWData[i]) { 161 with (sWData[i]) {
162 mgr.renderer.drawWindow (&border, this.x + x, this.y + y, w, h); 162 mgr.renderer.drawBorder (&border, this.x + x, this.y + y, w, h);
163 subWidgets[i].draw; 163 subWidgets[i].draw;
164 } 164 }
165 mgr.renderer.relax; 165 mgr.renderer.relax;
166 } 166 }
167 167