* Find the Window whose parent pointer points to this window * @param wc Window class of the window to find; #WC_INVALID if class does not matter * @return a Window pointer that is the child of this window, or \c nullptr otherwise */
| 1047 | * @return a Window pointer that is the child of this window, or \c nullptr otherwise |
| 1048 | */ |
| 1049 | Window *Window::FindChildWindow(WindowClass wc) const |
| 1050 | { |
| 1051 | for (Window *v : Window::Iterate()) { |
| 1052 | if ((wc == WC_INVALID || wc == v->window_class) && v->parent == this) return v; |
| 1053 | } |
| 1054 | |
| 1055 | return nullptr; |
| 1056 | } |
| 1057 | |
| 1058 | /** |
| 1059 | * Find the Window whose parent pointer points to this window |
no outgoing calls
no test coverage detected