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 /platform/osx/os_osx.h | |
parent | b5c6b0cf1c3d644321ed134dbb26e111d6dbd43f (diff) | |
download | redot-engine-8aa86cb9bcb5db8a1909d4b1595e90dbffbff11e.tar.gz |
Implement NSTextInputClient protocol for IME
Diffstat (limited to 'platform/osx/os_osx.h')
-rw-r--r-- | platform/osx/os_osx.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/osx/os_osx.h b/platform/osx/os_osx.h index 4b5682518f..56e6802eeb 100644 --- a/platform/osx/os_osx.h +++ b/platform/osx/os_osx.h @@ -104,6 +104,10 @@ public: Size2 window_size; Rect2 restore_rect; + Point2 im_position; + ImeCallback im_callback; + void *im_target; + power_osx *power_manager; float _mouse_scale(float p_scale) { @@ -203,6 +207,8 @@ public: virtual void set_borderless_window(int p_borderless); virtual bool get_borderless_window(); + virtual void set_ime_position(const Point2 &p_pos); + virtual void set_ime_intermediate_text_callback(ImeCallback p_callback, void *p_inp); virtual PowerState get_power_state(); virtual int get_power_seconds_left(); |