Mercurial > projects > mde
diff mde/gui/widget/Floating.d @ 172:0dd49f333189
Implemented "void setContent (IContent)".
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Wed, 29 Jul 2009 20:28:22 +0200 |
parents | ccd01fde535e |
children | a1ba9157510e |
line wrap: on
line diff
--- a/mde/gui/widget/Floating.d Sun Jul 26 11:04:17 2009 +0200 +++ b/mde/gui/widget/Floating.d Wed Jul 29 20:28:22 2009 +0200 @@ -93,6 +93,12 @@ return true; } + override void setContent (IContent c) { + // Pass the content on to sub-widgets, in case they want it + foreach (widg; subWidgets) + widg.setContent = c; + } + override void setWidth (wdim nw, int) { w = nw; // check all floating widgets are visible