summaryrefslogtreecommitdiffstats
path: root/scene/gui/line_edit.h
diff options
context:
space:
mode:
authorConteZero <one@contezero.com>2021-10-21 23:02:46 +0200
committerConteZero <one@contezero.com>2021-10-27 19:45:52 +0200
commitfbee4efa5fd0f977075ff8e5e5436c59ea56d479 (patch)
tree1771593981610faacff1aeecf0bfdc6abfadb0b4 /scene/gui/line_edit.h
parent8474bb0a3c4c231016a827e582f9bb54979911f1 (diff)
downloadredot-engine-fbee4efa5fd0f977075ff8e5e5436c59ea56d479.tar.gz
Add option to make selection unique
Diffstat (limited to 'scene/gui/line_edit.h')
-rw-r--r--scene/gui/line_edit.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/line_edit.h b/scene/gui/line_edit.h
index cd7737e5fe..951e179f7d 100644
--- a/scene/gui/line_edit.h
+++ b/scene/gui/line_edit.h
@@ -97,6 +97,7 @@ private:
float full_width = 0.0;
bool selecting_enabled = true;
+ bool deselect_on_focus_loss_enabled = true;
bool context_menu_enabled = true;
PopupMenu *menu = nullptr;
@@ -326,6 +327,9 @@ public:
void set_selecting_enabled(bool p_enabled);
bool is_selecting_enabled() const;
+ void set_deselect_on_focus_loss_enabled(const bool p_enabled);
+ bool is_deselect_on_focus_loss_enabled() const;
+
void set_right_icon(const Ref<Texture2D> &p_icon);
Ref<Texture2D> get_right_icon();