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 /scene/gui/text_edit.h | |
parent | b5c6b0cf1c3d644321ed134dbb26e111d6dbd43f (diff) | |
download | redot-engine-8aa86cb9bcb5db8a1909d4b1595e90dbffbff11e.tar.gz |
Implement NSTextInputClient protocol for IME
Diffstat (limited to 'scene/gui/text_edit.h')
-rw-r--r-- | scene/gui/text_edit.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/gui/text_edit.h b/scene/gui/text_edit.h index f8f60d2b03..afb4b1c547 100644 --- a/scene/gui/text_edit.h +++ b/scene/gui/text_edit.h @@ -184,6 +184,9 @@ class TextEdit : public Control { bool chain_backward; }; + String ime_text; + Point2 ime_selection; + TextOperation current_op; List<TextOperation> undo_stack; @@ -299,6 +302,8 @@ class TextEdit : public Control { void _scroll_lines_up(); void _scroll_lines_down(); + static void _ime_text_callback(void *p_self, String p_text, Point2 p_selection); + //void mouse_motion(const Point& p_pos, const Point& p_rel, int p_button_mask); Size2 get_minimum_size() const; |