MCPcopy Create free account
hub / github.com/defold/defold / OnWindowIconify

Function OnWindowIconify

engine/engine/src/engine.cpp:285–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283 }
284
285 static void OnWindowIconify(void* user_data, uint32_t iconify)
286 {
287 Engine* engine = (Engine*)user_data;
288
289 // We reset the time on both events because
290 // on some platforms both events will arrive when regaining focus
291 engine->m_PreviousFrameTime = dmTime::GetMonotonicTime(); // we might have stalled for a long time
292
293 ScopedExtensionParams params(engine);
294
295 dmExtension::Event event;
296 event.m_Event = iconify ? EXTENSION_EVENT_ID_ICONIFYAPP : EXTENSION_EVENT_ID_DEICONIFYAPP;
297 dmExtension::DispatchEvent( params, &event );
298
299 dmGameSystem::OnWindowIconify(iconify != 0);
300 }
301
302 static void SetupComponentCreateContext(HEngine engine, dmGameObject::ComponentTypeCreateCtx& component_create_ctx)
303 {

Callers

nothing calls this directly

Calls 2

DispatchEventFunction · 0.85
GetMonotonicTimeFunction · 0.50

Tested by

no test coverage detected