aboutsummaryrefslogtreecommitdiff
path: root/include/gui/RadioButton.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/gui/RadioButton.hpp')
-rw-r--r--include/gui/RadioButton.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/gui/RadioButton.hpp b/include/gui/RadioButton.hpp
index 16d638e..e319aa0 100644
--- a/include/gui/RadioButton.hpp
+++ b/include/gui/RadioButton.hpp
@@ -23,7 +23,8 @@ namespace gsr {
void add_item(const std::string &text, const std::string &id);
void set_selected_item(const std::string &id, bool trigger_event = true, bool trigger_event_even_if_selection_not_changed = true);
- const std::string get_selected_id() const;
+ const std::string& get_selected_id() const;
+ const std::string& get_selected_text() const;
mgl::vec2f get_size() override;