comparison mde/gui/widget/AChildWidget.d @ 148:17438f17bfb5

Hooked redraws in for BoolContentWidget and SliderContentWidget.
author Diggory Hardy <diggory.hardy@gmail.com>
date Sat, 14 Mar 2009 11:05:31 +0100
parents 783969f4665c
children ccd01fde535e
comparison
equal deleted inserted replaced
147:075705ad664a 148:17438f17bfb5
20 * 'I' convention for interfaces. 20 * 'I' convention for interfaces.
21 *****************************************************************************/ 21 *****************************************************************************/
22 module mde.gui.widget.AChildWidget; 22 module mde.gui.widget.AChildWidget;
23 23
24 public import mde.gui.widget.Ifaces; 24 public import mde.gui.widget.Ifaces;
25 import mde.content.IContent; 25 import mde.content.Content;
26 import mde.gui.exception; 26 import mde.gui.exception;
27 27
28 debug { 28 debug {
29 import tango.util.log.Log : Log, Logger; 29 import tango.util.log.Log : Log, Logger;
30 private Logger logger; 30 private Logger logger;
191 throw new WidgetDataException (this); 191 throw new WidgetDataException (this);
192 if (c is null) 192 if (c is null)
193 throw new ContentException (this); 193 throw new ContentException (this);
194 } 194 }
195 195
196 /** Hook this function to a Content callback to cause redraws.
197 *
198 * mgr.requestRedraw could be hooked in directly if the prototype changed. */
199 void contentRedraw (Content) {
200 mgr.requestRedraw;
201 }
202
196 IWidgetManager mgr; // the enclosing window 203 IWidgetManager mgr; // the enclosing window
197 IParentWidget parent; // the parent widget 204 IParentWidget parent; // the parent widget
198 wdim x, y; // position 205 wdim x, y; // position
199 widgetID id; // The widget's ID, used for saving data 206 widgetID id; // The widget's ID, used for saving data
200 wdim w, h; // size 207 wdim w, h; // size