Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/windowing/StarButtonWidget.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-04-15 17:14:03 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-04-15 17:14:03 +1000
commit90f3835dae164b48ee63eaf4e1d586ca34961536 (patch)
treef599bc59c1244426ea8b28704f5bc4ece4a5fbdf /source/windowing/StarButtonWidget.cpp
parent37d72623759ecb36e738e5f6853293a8f021d628 (diff)
widget.getText didn't work for labels and buttons??
Diffstat (limited to 'source/windowing/StarButtonWidget.cpp')
-rw-r--r--source/windowing/StarButtonWidget.cpp4
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;
}