MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / removeFromParent

Method removeFromParent

source/x11/xwindow.cpp:154–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void XWindow::removeFromParent() {
155 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(parent->childrenMutex);
156 parent->children.remove(id);
157 int index = vectorIndexOf(parent->zchildren, shared_from_this());
158 if (index >= 0 && index < (int)parent->zchildren.size()) {
159 parent->zchildren.erase(parent->zchildren.begin() + index);
160 }
161}
162
163void XWindow::addToParent() {
164 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(parent->childrenMutex);

Callers

nothing calls this directly

Calls 5

vectorIndexOfFunction · 0.85
removeMethod · 0.45
sizeMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected