Mercurial > projects > mde
diff mde/content/miscContent.d @ 129:ad91de8867a0
Added a widget size printing debug function. Fixed a bug in SwitchWidget.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Thu, 15 Jan 2009 16:52:46 +0000 |
parents | 41582439a42b |
children | 9cff74f68b84 |
line wrap: on
line diff
--- a/mde/content/miscContent.d Wed Jan 14 20:24:14 2009 +0000 +++ b/mde/content/miscContent.d Thu Jan 15 16:52:46 2009 +0000 @@ -47,6 +47,17 @@ return list_; } + ContentList append (Content x) { + size_t l = list_.length; + list_.length = l + 1; + list_[l] = x; + return this; + } + ContentList append (Content[] x) { + list_ ~= x; + return this; + } + protected: final Content[] list_; }