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

Method iterateMappedChildrenBackToFront

source/x11/xwindow.cpp:353–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353void XWindow::iterateMappedChildrenBackToFront(std::function<bool(const XWindowPtr& child)> callback, bool includeTransients) {
354 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(childrenMutex);
355 for (auto& child : zchildren) {
356 if (child->mapped() && (!includeTransients || !child->isTransient())) {
357 if (!callback(child)) {
358 return;
359 }
360 }
361 }
362 if (includeTransients) {
363 for (auto& child : transientChildren) {
364 if (child->mapped()) {
365 if (!callback(child)) {
366 break;
367 }
368 }
369 }
370 }
371}
372
373void XWindow::windowToScreen(S32& x, S32& y) {
374 XWindowPtr p = shared_from_this();

Callers 1

drawMethod · 0.80

Calls 3

callbackFunction · 0.85
mappedMethod · 0.80
isTransientMethod · 0.80

Tested by

no test coverage detected