diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-04-15 17:14:03 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-04-15 17:14:03 +1000 |
commit | 90f3835dae164b48ee63eaf4e1d586ca34961536 (patch) | |
tree | f599bc59c1244426ea8b28704f5bc4ece4a5fbdf /source/windowing/StarButtonWidget.cpp | |
parent | 37d72623759ecb36e738e5f6853293a8f021d628 (diff) |
widget.getText didn't work for labels and buttons??
Diffstat (limited to 'source/windowing/StarButtonWidget.cpp')
-rw-r--r-- | source/windowing/StarButtonWidget.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/windowing/StarButtonWidget.cpp b/source/windowing/StarButtonWidget.cpp index c19fb4b..a8c8a85 100644 --- a/source/windowing/StarButtonWidget.cpp +++ b/source/windowing/StarButtonWidget.cpp @@ -314,6 +314,10 @@ void ButtonWidget::setPressedOffset(Vec2I const& offset) { m_pressedOffset = offset; } +String const& ButtonWidget::getText() const { + return m_text; +} + void ButtonWidget::setText(String const& text) { m_text = text; } |