diff options
author | Zak <zakscomputers@hotmail.com> | 2019-07-18 14:34:33 +0300 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-17 15:27:33 +0100 |
commit | d73a9b56b08864b5e5ccf0df910190b064ff7463 (patch) | |
tree | 8ab88d41e9b19a24f96edd54cd356e637e0a8140 /scene/gui/link_button.h | |
parent | c023d41036f676572c43421670b2961991487884 (diff) |
Add `uri` property for LinkButton
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
Diffstat (limited to 'scene/gui/link_button.h')
-rw-r--r-- | scene/gui/link_button.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/link_button.h b/scene/gui/link_button.h index accd848163..c71872fc86 100644 --- a/scene/gui/link_button.h +++ b/scene/gui/link_button.h @@ -49,6 +49,7 @@ private: String xl_text; Ref<TextLine> text_buf; UnderlineMode underline_mode = UNDERLINE_MODE_ALWAYS; + String uri; String language; TextDirection text_direction = TEXT_DIRECTION_AUTO; @@ -76,6 +77,7 @@ private: void _shape(); protected: + virtual void pressed() override; virtual Size2 get_minimum_size() const override; virtual void _update_theme_item_cache() override; void _notification(int p_what); @@ -84,6 +86,8 @@ protected: public: void set_text(const String &p_text); String get_text() const; + void set_uri(const String &p_uri); + String get_uri() const; void set_structured_text_bidi_override(TextServer::StructuredTextParser p_parser); TextServer::StructuredTextParser get_structured_text_bidi_override() const; |