MCPcopy Create free account
hub / github.com/VitalAudio/visage / removeChild

Method removeChild

visage_ui/frame.cpp:95–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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()) {

Callers 4

removeScrolledChildMethod · 0.45
timerCallbackMethod · 0.45
frame_tests.cppFile · 0.45

Calls 5

regionMethod · 0.80
callbackMethod · 0.80
invalidateMethod · 0.45

Tested by

no test coverage detected