diff options
| author | sanikoyes <sanikoyes@163.com> | 2016-06-27 19:47:40 +0800 |
|---|---|---|
| committer | sanikoyes <sanikoyes@163.com> | 2016-06-27 19:47:40 +0800 |
| commit | 081c400ac6481192d0df214fac9da0f3206c1db7 (patch) | |
| tree | 2af6ac945d515eb7581bece55c4e1bd4b0a5a9e8 /scene/gui/line_edit.h | |
| parent | 2c59f778850dc4450481680e859efd66660c9119 (diff) | |
| download | redot-engine-081c400ac6481192d0df214fac9da0f3206c1db7.tar.gz | |
Add placeholder property for line_edit
this useful for user input tip
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 e4da0f0b87..85706982e0 100644 --- a/scene/gui/line_edit.h +++ b/scene/gui/line_edit.h @@ -67,6 +67,7 @@ private: String undo_text; String text; + String placeholder; PopupMenu *menu; @@ -135,6 +136,8 @@ public: void delete_text(int p_from_column, int p_to_column); void set_text(String p_text); String get_text() const; + void set_placeholder(String p_text); + String get_placeholder() const; void set_cursor_pos(int p_pos); int get_cursor_pos() const; void set_max_length(int p_max_length); |
