Mercurial > projects > mde
diff 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 |
line wrap: on
line diff
--- a/mde/gui/widget/AChildWidget.d Wed Feb 11 13:02:30 2009 +0000 +++ b/mde/gui/widget/AChildWidget.d Sat Mar 14 11:05:31 2009 +0100 @@ -22,7 +22,7 @@ module mde.gui.widget.AChildWidget; public import mde.gui.widget.Ifaces; -import mde.content.IContent; +import mde.content.Content; import mde.gui.exception; debug { @@ -193,6 +193,13 @@ throw new ContentException (this); } + /** Hook this function to a Content callback to cause redraws. + * + * mgr.requestRedraw could be hooked in directly if the prototype changed. */ + void contentRedraw (Content) { + mgr.requestRedraw; + } + IWidgetManager mgr; // the enclosing window IParentWidget parent; // the parent widget wdim x, y; // position