| 38 | } |
| 39 | |
| 40 | void UiManager::AddWindow(IUiWindow *w) |
| 41 | { |
| 42 | assert(w); |
| 43 | |
| 44 | for (auto it = m_widgets.begin(); it != m_widgets.end(); ++it) |
| 45 | { |
| 46 | if ((*it) == w){ |
| 47 | return; |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | m_widgets.push_back(w); |
| 52 | |
| 53 | //Init the ui. |
| 54 | w->UpdateFont(); |
| 55 | w->UpdateLanguage(); |
| 56 | w->UpdateTheme(); |
| 57 | } |
| 58 | |
| 59 | void UiManager::RemoveWindow(IUiWindow *w) |
| 60 | { |
nothing calls this directly
no test coverage detected