diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2016-10-03 12:00:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-03 12:00:10 +0200 |
commit | ad280e7bfccc150b81abd999f692bf1219ec87d1 (patch) | |
tree | 65ec3d5e70652c7d3ba842546bbf22bbdbf76885 /scene/gui/text_edit.h | |
parent | c939be88592a1d0085c4633cc61c844ffd95ac12 (diff) | |
parent | f81d0095259c3affeec0de79e4ad1f38ea9bba39 (diff) |
Merge pull request #6640 from Hinsbart/color_picker
Add inline ColorPicker to Script text editor.
Diffstat (limited to 'scene/gui/text_edit.h')
-rw-r--r-- | scene/gui/text_edit.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scene/gui/text_edit.h b/scene/gui/text_edit.h index cb49618f18..37477e3b7e 100644 --- a/scene/gui/text_edit.h +++ b/scene/gui/text_edit.h @@ -269,6 +269,8 @@ class TextEdit : public Control { int search_result_line; int search_result_col; + bool context_menu_enabled; + int get_visible_rows() const; int get_char_count(); @@ -319,8 +321,6 @@ class TextEdit : public Control { void _confirm_completion(); void _update_completion_candidates(); - void _get_mouse_pos(const Point2i& p_mouse, int &r_row, int &r_col) const; - protected: virtual String get_tooltip(const Point2& p_pos) const; @@ -360,6 +360,8 @@ public: virtual CursorShape get_cursor_shape(const Point2& p_pos=Point2i()) const; + void _get_mouse_pos(const Point2i& p_mouse, int &r_row, int &r_col) const; + //void delete_char(); //void delete_line(); @@ -499,6 +501,7 @@ public: void set_select_identifiers_on_hover(bool p_enable); bool is_selecting_identifiers_on_hover_enabled() const; + void set_context_menu_enabled(bool p_enable); PopupMenu *get_menu() const; String get_text_for_completion(); |