diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2017-08-07 14:09:56 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2017-08-09 19:09:33 +0300 |
commit | 8aa86cb9bcb5db8a1909d4b1595e90dbffbff11e (patch) | |
tree | 22df47c5dc375ed1ef40e1da0eab29c7be4e704c /core/os/os.h | |
parent | b5c6b0cf1c3d644321ed134dbb26e111d6dbd43f (diff) | |
download | redot-engine-8aa86cb9bcb5db8a1909d4b1595e90dbffbff11e.tar.gz |
Implement NSTextInputClient protocol for IME
Diffstat (limited to 'core/os/os.h')
-rw-r--r-- | core/os/os.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/os/os.h b/core/os/os.h index 8e2257a0e4..4d64e4a9f0 100644 --- a/core/os/os.h +++ b/core/os/os.h @@ -63,6 +63,8 @@ class OS { void *_stack_bottom; public: + typedef void (*ImeCallback)(void *p_inp, String p_text, Point2 p_selection); + enum RenderThreadMode { RENDER_THREAD_UNSAFE, @@ -183,6 +185,7 @@ public: virtual bool get_borderless_window() { return 0; } virtual void set_ime_position(const Point2 &p_pos) {} + virtual void set_ime_intermediate_text_callback(ImeCallback p_callback, void *p_inp) {} virtual Error open_dynamic_library(const String p_path, void *&p_library_handle) { return ERR_UNAVAILABLE; } virtual Error close_dynamic_library(void *p_library_handle) { return ERR_UNAVAILABLE; } |