* Get the main window, i.e. FindWindowById(WC_MAIN_WINDOW, 0). * If the main window is not available, this function will trigger an assert. * @return Pointer to the main window. */
| 1180 | * @return Pointer to the main window. |
| 1181 | */ |
| 1182 | Window *GetMainWindow() |
| 1183 | { |
| 1184 | Window *w = FindWindowById(WC_MAIN_WINDOW, 0); |
| 1185 | assert(w != nullptr); |
| 1186 | return w; |
| 1187 | } |
| 1188 | |
| 1189 | /** |
| 1190 | * Close a window by its class and window number (if it is open). |
no test coverage detected