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

Function GetSafeArea

engine/platform/src/platform_window_glfw.cpp:404–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402 }
403
404 bool GetSafeArea(HWindow window, WindowSafeArea* out)
405 {
406 SetSafeAreaFull(window, out);
407
408#if defined(ANDROID)
409 if (GetSafeAreaAndroid(window, out))
410 {
411 return true;
412 }
413#elif defined(DM_PLATFORM_IOS)
414 if (GetSafeAreaiOS(window, out))
415 {
416 return true;
417 }
418#endif
419
420 return true;
421 }
422
423 static int WindowStateToGLFW(WindowState state)
424 {

Callers

nothing calls this directly

Calls 2

SetSafeAreaFullFunction · 0.70
GetSafeAreaAndroidFunction · 0.70

Tested by

no test coverage detected