| 152 | } |
| 153 | |
| 154 | void 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 | |
| 163 | void XWindow::addToParent() { |
| 164 | BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(parent->childrenMutex); |
nothing calls this directly
no test coverage detected