summaryrefslogtreecommitdiff
path: root/platform/android/java_godot_io_wrapper.h
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-05-03 11:20:46 +0200
committerGitHub <noreply@github.com>2022-05-03 11:20:46 +0200
commit3894b08d0d48eb9cf99123380835750fe9691b45 (patch)
treeeb116c0448eade0992b9230466096bec8249ff7a /platform/android/java_godot_io_wrapper.h
parentf75afaa085312fe873e8723636510d1e95e9da99 (diff)
parent97e87a2daf27ff250e748cb25a29f1c91879c709 (diff)
Merge pull request #60553 from madmiraal/separate-display_safe_area
Diffstat (limited to 'platform/android/java_godot_io_wrapper.h')
-rw-r--r--platform/android/java_godot_io_wrapper.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/android/java_godot_io_wrapper.h b/platform/android/java_godot_io_wrapper.h
index 7b87f3deee..02c57130ab 100644
--- a/platform/android/java_godot_io_wrapper.h
+++ b/platform/android/java_godot_io_wrapper.h
@@ -37,6 +37,7 @@
#include <android/log.h>
#include <jni.h>
+#include "core/math/rect2i.h"
#include "core/variant/array.h"
#include "string_android.h"
@@ -50,12 +51,12 @@ private:
jmethodID _get_cache_dir = 0;
jmethodID _get_data_dir = 0;
jmethodID _get_display_cutouts = 0;
+ jmethodID _get_display_safe_area = 0;
jmethodID _get_locale = 0;
jmethodID _get_model = 0;
jmethodID _get_screen_DPI = 0;
jmethodID _get_scaled_density = 0;
jmethodID _get_screen_refresh_rate = 0;
- jmethodID _screen_get_usable_rect = 0;
jmethodID _get_unique_id = 0;
jmethodID _show_keyboard = 0;
jmethodID _hide_keyboard = 0;
@@ -77,8 +78,8 @@ public:
int get_screen_dpi();
float get_scaled_density();
float get_screen_refresh_rate(float fallback);
- void screen_get_usable_rect(int (&p_rect_xywh)[4]);
Array get_display_cutouts();
+ Rect2i get_display_safe_area();
String get_unique_id();
bool has_vk();
void show_vk(const String &p_existing, bool p_multiline, int p_max_input_length, int p_cursor_start, int p_cursor_end);