| 163 | |
| 164 | |
| 165 | void Widget::addChild(Widget* child) { |
| 166 | assert(child); |
| 167 | assert(!child->parent); |
| 168 | // Add child |
| 169 | child->parent = this; |
| 170 | children.push_back(child); |
| 171 | // Dispatch Add event |
| 172 | AddEvent eAdd; |
| 173 | child->onAdd(eAdd); |
| 174 | } |
| 175 | |
| 176 | |
| 177 | void Widget::addChildBottom(Widget* child) { |
no test coverage detected