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

Function SetSafeAreaFull

engine/platform/src/platform_window_glfw.cpp:389–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387 }
388
389 static void SetSafeAreaFull(HWindow window, WindowSafeArea* out)
390 {
391 const uint32_t width = GetWindowWidth(window);
392 const uint32_t height = GetWindowHeight(window);
393
394 out->m_X = 0;
395 out->m_Y = 0;
396 out->m_Width = width;
397 out->m_Height = height;
398 out->m_InsetLeft = 0;
399 out->m_InsetTop = 0;
400 out->m_InsetRight = 0;
401 out->m_InsetBottom = 0;
402 }
403
404 bool GetSafeArea(HWindow window, WindowSafeArea* out)
405 {

Callers 1

GetSafeAreaFunction · 0.70

Calls 2

GetWindowWidthFunction · 0.70
GetWindowHeightFunction · 0.70

Tested by

no test coverage detected