| 93 | } |
| 94 | |
| 95 | void Frame::removeChild(Frame* child) { |
| 96 | VISAGE_ASSERT(child && child != this); |
| 97 | if (child == nullptr) |
| 98 | return; |
| 99 | |
| 100 | child->region()->invalidate(); |
| 101 | child->notifyRemoveFromHierarchy(); |
| 102 | eraseChild(child); |
| 103 | child->notifyHierarchyChanged(); |
| 104 | on_child_removed_.callback(child); |
| 105 | |
| 106 | if (owned_children_.count(child)) |
| 107 | owned_children_.erase(child); |
| 108 | |
| 109 | computeLayout(); |
| 110 | } |
| 111 | |
| 112 | void Frame::removeAllChildren() { |
| 113 | while (!children_.empty()) { |
no test coverage detected