diff options
author | reduz <reduzio@gmail.com> | 2021-07-16 18:36:05 -0300 |
---|---|---|
committer | reduz <reduzio@gmail.com> | 2021-07-17 10:57:14 -0300 |
commit | a3fb76cd450661816f2e4f65dc172917b47c11e6 (patch) | |
tree | 5902ff9c82cbc62f2603472c5b39bcb221f2a955 /scene/gui/line_edit.h | |
parent | de83ee57e5bb0e4fb494455a98d597d76289d321 (diff) |
Create many types of popups on demand
* LineEdit popups created on demand.
* TextEdit popups created on demand.
* SpinSlider popups created on demand.
* ResourcePicker popups created on demand.
Improves editor responsiveness.
Diffstat (limited to 'scene/gui/line_edit.h')
-rw-r--r-- | scene/gui/line_edit.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/gui/line_edit.h b/scene/gui/line_edit.h index 12fec2f98b..16f3356637 100644 --- a/scene/gui/line_edit.h +++ b/scene/gui/line_edit.h @@ -198,6 +198,8 @@ private: void _backspace(bool p_word = false, bool p_all_to_left = false); void _delete(bool p_word = false, bool p_all_to_right = false); + void _ensure_menu(); + protected: void _notification(int p_what); static void _bind_methods(); @@ -222,6 +224,7 @@ public: void set_context_menu_enabled(bool p_enable); bool is_context_menu_enabled(); PopupMenu *get_menu() const; + bool is_menu_visible() const; void select(int p_from = 0, int p_to = -1); void select_all(); |