yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
ios_platform_state.mm
Go to the documentation of this file.
1
#include "
app/platform/ios/ios_platform_state.h
"
2
3
namespace
yaze
{
4
namespace
platform {
5
namespace
ios {
6
7
namespace
{
8
void
*
g_metal_view
=
nullptr
;
9
SafeAreaInsets
g_safe_area_insets
= {};
10
}
// namespace
11
12
void
SetMetalView
(
void
* view) {
13
g_metal_view = view;
14
}
15
16
void
*
GetMetalView
() {
17
return
g_metal_view;
18
}
19
20
void
SetSafeAreaInsets
(
float
left,
float
right,
float
top,
float
bottom) {
21
g_safe_area_insets = {left, right, top, bottom};
22
}
23
24
SafeAreaInsets
GetSafeAreaInsets
() {
25
return
g_safe_area_insets;
26
}
27
28
}
// namespace ios
29
}
// namespace platform
30
}
// namespace yaze
ios_platform_state.h
yaze::platform::ios::anonymous_namespace{ios_platform_state.mm}::g_metal_view
void * g_metal_view
Definition
ios_platform_state.mm:8
yaze::platform::ios::anonymous_namespace{ios_platform_state.mm}::g_safe_area_insets
SafeAreaInsets g_safe_area_insets
Definition
ios_platform_state.mm:9
yaze::platform::ios::GetSafeAreaInsets
SafeAreaInsets GetSafeAreaInsets()
Definition
ios_platform_state.mm:24
yaze::platform::ios::SetSafeAreaInsets
void SetSafeAreaInsets(float left, float right, float top, float bottom)
Definition
ios_platform_state.mm:20
yaze::platform::ios::GetMetalView
void * GetMetalView()
Definition
ios_platform_state.mm:16
yaze::platform::ios::SetMetalView
void SetMetalView(void *view)
Definition
ios_platform_state.mm:12
yaze
Definition
patch_export_usage.cc:8
yaze::platform::ios::SafeAreaInsets
Definition
ios_platform_state.h:7
src
app
platform
ios
ios_platform_state.mm
Generated by
1.10.0