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

Function GetSafeArea

engine/platform/src/platform_window_null.cpp:82–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 }
81
82 bool GetSafeArea(HWindow window, WindowSafeArea* out)
83 {
84 const uint32_t width = GetWindowWidth(window);
85 const uint32_t height = GetWindowHeight(window);
86
87 out->m_X = 0;
88 out->m_Y = 0;
89 out->m_Width = width;
90 out->m_Height = height;
91 out->m_InsetLeft = 0;
92 out->m_InsetTop = 0;
93 out->m_InsetRight = 0;
94 out->m_InsetBottom = 0;
95
96 return true;
97 }
98
99 uint32_t GetWindowStateParam(HWindow window, WindowState state)
100 {

Callers 3

GetSafeAreaAndroidFunction · 0.70
WindowGetSafeAreaFunction · 0.70
UpdateGuiSafeAreaAdjustFunction · 0.50

Calls 2

GetWindowWidthFunction · 0.70
GetWindowHeightFunction · 0.70

Tested by

no test coverage detected