mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add text trimming in LinkButton
This commit is contained in:
parent
0fdb93cde6
commit
687aa56ec8
6 changed files with 43 additions and 30 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue