MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / AddWindow

Method AddWindow

DSView/pv/ui/uimanager.cpp:40–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void 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
59void UiManager::RemoveWindow(IUiWindow *w)
60{

Callers

nothing calls this directly

Calls 4

endMethod · 0.45
UpdateFontMethod · 0.45
UpdateLanguageMethod · 0.45
UpdateThemeMethod · 0.45

Tested by

no test coverage detected