aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/components/PopupButton.h
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-10-17 12:06:14 +0800
committerYuqian Yang <crupest@crupest.life>2025-10-17 12:06:14 +0800
commit32aa6f116acc6e3e20a1ec76cef45b29f7005ad7 (patch)
tree892b71060a88b58d9293d78033000b05818783df /include/cru/ui/components/PopupButton.h
parentfaf77949e19dc0d01f75bf8abb783eda70328048 (diff)
downloadcru-32aa6f116acc6e3e20a1ec76cef45b29f7005ad7.tar.gz
cru-32aa6f116acc6e3e20a1ec76cef45b29f7005ad7.tar.bz2
cru-32aa6f116acc6e3e20a1ec76cef45b29f7005ad7.zip
Remove String stage 1.
Diffstat (limited to 'include/cru/ui/components/PopupButton.h')
-rw-r--r--include/cru/ui/components/PopupButton.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/cru/ui/components/PopupButton.h b/include/cru/ui/components/PopupButton.h
index c8ef9c50..5fa69044 100644
--- a/include/cru/ui/components/PopupButton.h
+++ b/include/cru/ui/components/PopupButton.h
@@ -18,14 +18,14 @@ class CRU_UI_API PopupMenuTextButton : public Component {
ui::controls::Button* GetButton() { return &button_; }
- String GetButtonText() { return button_text_.GetText(); }
- void SetButtonText(String text) { button_text_.SetText(std::move(text)); }
+ std::string GetButtonText() { return button_text_.GetText(); }
+ void SetButtonText(std::string text) { button_text_.SetText(std::move(text)); }
void SetButtonTextColor(const Color& color) {
button_text_.SetTextColor(color);
}
- void SetMenuItems(std::vector<String> items);
+ void SetMenuItems(std::vector<std::string> items);
IEvent<Index>* MenuItemSelectedEvent() { return &menu_item_selected_event_; }
@@ -47,7 +47,7 @@ class CRU_UI_API PopupMenuIconButton : public Component {
ui::controls::IconButton* GetButton() { return &button_; }
- void SetMenuItems(std::vector<String> items);
+ void SetMenuItems(std::vector<std::string> items);
IEvent<Index>* MenuItemSelectedEvent() { return &menu_item_selected_event_; }