Mercurial > projects > mde
comparison 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 |
comparison
equal
deleted
inserted
replaced
171:7f7b2011b759 | 172:0dd49f333189 |
---|---|
89 dd[4*i..4*i+4] = (&d.x)[0..4]; | 89 dd[4*i..4*i+4] = (&d.x)[0..4]; |
90 } | 90 } |
91 | 91 |
92 mgr.dimData (id, dd); // save positions | 92 mgr.dimData (id, dd); // save positions |
93 return true; | 93 return true; |
94 } | |
95 | |
96 override void setContent (IContent c) { | |
97 // Pass the content on to sub-widgets, in case they want it | |
98 foreach (widg; subWidgets) | |
99 widg.setContent = c; | |
94 } | 100 } |
95 | 101 |
96 override void setWidth (wdim nw, int) { | 102 override void setWidth (wdim nw, int) { |
97 w = nw; | 103 w = nw; |
98 // check all floating widgets are visible | 104 // check all floating widgets are visible |