* Find the Window whose parent pointer points to this window * @param wc Window class of the window to find. * @param number Window number of the window to find. * @return a Window pointer that is the child of this window, or \c nullptr otherwise */
| 1062 | * @return a Window pointer that is the child of this window, or \c nullptr otherwise |
| 1063 | */ |
| 1064 | Window *Window::FindChildWindowById(WindowClass wc, WindowNumber number) const |
| 1065 | { |
| 1066 | for (Window *v : Window::Iterate()) { |
| 1067 | if (wc == v->window_class && number == v->window_number && v->parent == this) return v; |
| 1068 | } |
| 1069 | |
| 1070 | return nullptr; |
| 1071 | } |
| 1072 | |
| 1073 | /** |
| 1074 | * Close all children a window might have in a head-recursive manner |
no outgoing calls
no test coverage detected