| 175 | |
| 176 | |
| 177 | void Widget::addChildBottom(Widget* child) { |
| 178 | assert(child); |
| 179 | assert(!child->parent); |
| 180 | // Add child |
| 181 | child->parent = this; |
| 182 | children.push_front(child); |
| 183 | // Dispatch Add event |
| 184 | AddEvent eAdd; |
| 185 | child->onAdd(eAdd); |
| 186 | } |
| 187 | |
| 188 | |
| 189 | void Widget::addChildBelow(Widget* child, Widget* sibling) { |