MCPcopy Create free account
hub / github.com/MyGUI/mygui / popState

Method popState

Tools/EditorFramework/StateManager.cpp:52–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 }
51
52 void StateManager::popState()
53 {
54 StateController* clenupState = getCurentState();
55
56 if (!mStates.empty())
57 mStates.pop_back();
58
59 StateController* resumeState = getCurentState();
60
61 if (clenupState != nullptr)
62 clenupState->cleanupState();
63
64 if (resumeState != nullptr)
65 resumeState->resumeState();
66 }
67
68 bool StateManager::getStateActivate(StateController* _state)
69 {

Callers

nothing calls this directly

Calls 3

emptyMethod · 0.45
cleanupStateMethod · 0.45
resumeStateMethod · 0.45

Tested by

no test coverage detected