summaryrefslogtreecommitdiffstats
path: root/scene/gui/tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/gui/tree.h')
-rw-r--r--scene/gui/tree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/tree.h b/scene/gui/tree.h
index cb00889cb9..4afe94a3a0 100644
--- a/scene/gui/tree.h
+++ b/scene/gui/tree.h
@@ -117,6 +117,7 @@ private:
Cell() {
text_buf.instantiate();
+ text_buf->set_text_overrun_behavior(TextServer::OVERRUN_TRIM_ELLIPSIS);
}
Size2 get_icon_size() const;
@@ -231,6 +232,9 @@ public:
void set_autowrap_mode(int p_column, TextServer::AutowrapMode p_mode);
TextServer::AutowrapMode get_autowrap_mode(int p_column) const;
+ void set_text_overrun_behavior(int p_column, TextServer::OverrunBehavior p_behavior);
+ TextServer::OverrunBehavior get_text_overrun_behavior(int p_column) const;
+
void set_structured_text_bidi_override(int p_column, TextServer::StructuredTextParser p_parser);
TextServer::StructuredTextParser get_structured_text_bidi_override(int p_column) const;