MCPcopy Create free account
hub / github.com/SpartanJ/eepp / destroyWindow

Method destroyWindow

src/eepp/window/engine.cpp:195–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195void Engine::destroyWindow( EE::Window::Window* window ) {
196 mWindows.erase( window->getWindowID() );
197
198 if ( window == mWindow ) {
199 if ( mWindows.size() > 0 ) {
200 mWindow = mWindows.begin()->second;
201 } else {
202 mWindow = NULL;
203 }
204 }
205
206 eeSAFE_DELETE( window );
207}
208
209bool Engine::existsWindow( EE::Window::Window* window ) {
210 for ( auto& it : mWindows ) {

Callers

nothing calls this directly

Calls 4

eraseMethod · 0.45
getWindowIDMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected