1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

Add a method for obtaining display cutouts on Android

This commit is contained in:
Marcel Admiraal
2022-04-24 19:04:05 +02:00
parent 9260dd3ac1
commit ec2270b88f
9 changed files with 68 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ private:
jmethodID _open_URI = 0;
jmethodID _get_cache_dir = 0;
jmethodID _get_data_dir = 0;
jmethodID _get_display_cutouts = 0;
jmethodID _get_locale = 0;
jmethodID _get_model = 0;
jmethodID _get_screen_DPI = 0;
@@ -75,6 +76,7 @@ public:
int get_screen_dpi();
float get_scaled_density();
void get_window_safe_area(int (&p_rect_xywh)[4]);
Array get_display_cutouts();
float get_screen_refresh_rate(float p_fallback);
String get_unique_id();
bool has_vk();