Add text trimming in LinkButton

This commit is contained in:
Michael Alexsander 2025-10-24 19:03:40 -03:00
parent 0fdb93cde6
commit 687aa56ec8
No known key found for this signature in database
GPG key ID: A9C91EE110F4EABA
6 changed files with 43 additions and 30 deletions

View file

@ -54,6 +54,7 @@ private:
TextDirection text_direction = TEXT_DIRECTION_AUTO;
TextServer::StructuredTextParser st_parser = TextServer::STRUCTURED_TEXT_DEFAULT;
Array st_args;
TextServer::OverrunBehavior overrun_behavior = TextServer::OVERRUN_NO_TRIMMING;
struct ThemeCache {
Ref<StyleBox> focus;
@ -88,6 +89,9 @@ public:
void set_uri(const String &p_uri);
String get_uri() const;
void set_text_overrun_behavior(TextServer::OverrunBehavior p_behavior);
TextServer::OverrunBehavior get_text_overrun_behavior() const;
void set_structured_text_bidi_override(TextServer::StructuredTextParser p_parser);
TextServer::StructuredTextParser get_structured_text_bidi_override() const;