comparison 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
comparison
equal deleted inserted replaced
128:41582439a42b 129:ad91de8867a0
45 45
46 override Content[] list () { 46 override Content[] list () {
47 return list_; 47 return list_;
48 } 48 }
49 49
50 ContentList append (Content x) {
51 size_t l = list_.length;
52 list_.length = l + 1;
53 list_[l] = x;
54 return this;
55 }
56 ContentList append (Content[] x) {
57 list_ ~= x;
58 return this;
59 }
60
50 protected: 61 protected:
51 final Content[] list_; 62 final Content[] list_;
52 } 63 }
53 64
54 /** Created on errors to display and log a message. */ 65 /** Created on errors to display and log a message. */