diff options
Diffstat (limited to 'scene/gui/button.h')
-rw-r--r-- | scene/gui/button.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/scene/gui/button.h b/scene/gui/button.h index 1abf86c986..9d8d457f7c 100644 --- a/scene/gui/button.h +++ b/scene/gui/button.h @@ -43,9 +43,9 @@ private: String xl_text; Ref<TextParagraph> text_buf; - Dictionary opentype_features; String language; TextDirection text_direction = TEXT_DIRECTION_AUTO; + TextServer::OverrunBehavior overrun_behavior = TextServer::OVERRUN_NO_TRIMMING; Ref<Texture2D> icon; bool expand_icon = false; @@ -61,23 +61,18 @@ protected: void _notification(int p_what); static void _bind_methods(); - bool _set(const StringName &p_name, const Variant &p_value); - bool _get(const StringName &p_name, Variant &r_ret) const; - void _get_property_list(List<PropertyInfo> *p_list) const; - public: virtual Size2 get_minimum_size() const override; void set_text(const String &p_text); String get_text() const; + void set_text_overrun_behavior(TextServer::OverrunBehavior p_behavior); + TextServer::OverrunBehavior get_text_overrun_behavior() const; + void set_text_direction(TextDirection p_text_direction); TextDirection get_text_direction() const; - void set_opentype_feature(const String &p_name, int p_value); - int get_opentype_feature(const String &p_name) const; - void clear_opentype_features(); - void set_language(const String &p_language); String get_language() const; @@ -103,4 +98,4 @@ public: ~Button(); }; -#endif +#endif // BUTTON_H |