diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-04-22 06:07:59 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-04-22 06:07:59 +1000 |
commit | ca1426eabc873f781eb0dd389d45634b7d183250 (patch) | |
tree | 15ea83658ca3824232f14fe4b32ec714e0aa05c6 /source/windowing/StarLabelWidget.hpp | |
parent | d5f5fb5ddf0d4a9f0b0e6ac012121926d2fcd949 (diff) |
Lua chat callbacks + better font styling
golly gee whiz!! i hope i didn't fuck something up
Diffstat (limited to 'source/windowing/StarLabelWidget.hpp')
-rw-r--r-- | source/windowing/StarLabelWidget.hpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/windowing/StarLabelWidget.hpp b/source/windowing/StarLabelWidget.hpp index a25e531..da65fb3 100644 --- a/source/windowing/StarLabelWidget.hpp +++ b/source/windowing/StarLabelWidget.hpp @@ -25,6 +25,7 @@ public: void setLineSpacing(Maybe<float> lineSpacing); void setDirectives(String const& directives); void setTextCharLimit(Maybe<unsigned> charLimit); + void setTextStyle(TextStyle const& style); RectI relativeBoundRect() const override; @@ -36,13 +37,9 @@ private: void updateTextRegion(); String m_text; - int m_fontSize; - FontMode m_fontMode; - Color m_color; + TextStyle m_style; HorizontalAnchor m_hAnchor; VerticalAnchor m_vAnchor; - String m_processingDirectives; - String m_font; Maybe<unsigned> m_wrapWidth; Maybe<float> m_lineSpacing; Maybe<unsigned> m_textCharLimit; |