summaryrefslogtreecommitdiffstats
path: root/scene/gui/label.h
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2023-10-01 13:39:13 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2023-12-04 08:21:42 +0200
commit56579f397decc0d399ff3ca49f0a3abeadda682b (patch)
tree7782d59d8b691719c136a36e733cdb2cb4cf4cf9 /scene/gui/label.h
parentd76c1d0e516fedc535a2e394ab780cac79203477 (diff)
downloadredot-engine-56579f397decc0d399ff3ca49f0a3abeadda682b.tar.gz
[Text Overrun] Add option to set custom ellipsis character, add support for system font fallback.
Diffstat (limited to 'scene/gui/label.h')
-rw-r--r--scene/gui/label.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/label.h b/scene/gui/label.h
index a5126c6b91..44443e3eb4 100644
--- a/scene/gui/label.h
+++ b/scene/gui/label.h
@@ -45,6 +45,7 @@ private:
TextServer::AutowrapMode autowrap_mode = TextServer::AUTOWRAP_OFF;
BitField<TextServer::JustificationFlag> jst_flags = TextServer::JUSTIFICATION_WORD_BOUND | TextServer::JUSTIFICATION_KASHIDA | TextServer::JUSTIFICATION_SKIP_LAST_LINE | TextServer::JUSTIFICATION_DO_NOT_SKIP_SINGLE_LINE;
bool clip = false;
+ String el_char = U"…";
TextServer::OverrunBehavior overrun_behavior = TextServer::OVERRUN_NO_TRIMMING;
Size2 minsize;
bool uppercase = false;
@@ -147,6 +148,9 @@ public:
void set_text_overrun_behavior(TextServer::OverrunBehavior p_behavior);
TextServer::OverrunBehavior get_text_overrun_behavior() const;
+ void set_ellipsis_char(const String &p_char);
+ String get_ellipsis_char() const;
+
void set_lines_skipped(int p_lines);
int get_lines_skipped() const;