diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-06-30 10:41:08 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-06-30 10:41:08 -0300 |
commit | e8a2c767d2c151b7960cc8a977b09664e10824e1 (patch) | |
tree | f42fcb9edac69e94b112a1536e930dfe10b615b7 /scene/gui/line_edit.h | |
parent | e49b73e93a91ebd76671dfedd213ddf5b0ae7b56 (diff) | |
parent | d81b635957450a85efbf25066f9ee517ef10ec3f (diff) |
Merge branch 'master' of https://github.com/godotengine/godot
Diffstat (limited to 'scene/gui/line_edit.h')
-rw-r--r-- | scene/gui/line_edit.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/gui/line_edit.h b/scene/gui/line_edit.h index e4da0f0b87..112e4ad55e 100644 --- a/scene/gui/line_edit.h +++ b/scene/gui/line_edit.h @@ -67,6 +67,8 @@ private: String undo_text; String text; + String placeholder; + float placeholder_alpha; PopupMenu *menu; @@ -135,6 +137,10 @@ 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_placeholder_alpha(float p_alpha); + float get_placeholder_alpha() const; void set_cursor_pos(int p_pos); int get_cursor_pos() const; void set_max_length(int p_max_length); |