diff options
author | crupest <crupest@outlook.com> | 2021-10-26 16:32:13 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-10-26 16:32:13 +0800 |
commit | 9dec93315173999c4fb9ab5a0e57909eb5e7fd8b (patch) | |
tree | 042fff007fc3d0959146f131f425b9626448718e /include/cru/ui/components | |
parent | 397843cda9e4161d3e92d8797f8012f478ce64f0 (diff) | |
download | cru-9dec93315173999c4fb9ab5a0e57909eb5e7fd8b.tar.gz cru-9dec93315173999c4fb9ab5a0e57909eb5e7fd8b.tar.bz2 cru-9dec93315173999c4fb9ab5a0e57909eb5e7fd8b.zip |
...
Diffstat (limited to 'include/cru/ui/components')
-rw-r--r-- | include/cru/ui/components/Menu.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/cru/ui/components/Menu.hpp b/include/cru/ui/components/Menu.hpp index dedf2bd5..d60d38eb 100644 --- a/include/cru/ui/components/Menu.hpp +++ b/include/cru/ui/components/Menu.hpp @@ -13,7 +13,7 @@ namespace cru::ui::components { class MenuItem : public Component { public: MenuItem(); - explicit MenuItem(std::u16string text); + explicit MenuItem(String text); CRU_DELETE_COPY(MenuItem) CRU_DELETE_MOVE(MenuItem) @@ -23,7 +23,7 @@ class MenuItem : public Component { public: controls::Control* GetRootControl() override { return container_; } - void SetText(std::u16string text); + void SetText(String text); private: controls::Button* container_; @@ -48,10 +48,10 @@ class Menu : public Component { void AddItem(Component* component, gsl::index index); Component* RemoveItem(gsl::index index); - void AddTextItem(std::u16string text) { + void AddTextItem(String text) { AddTextItem(std::move(text), GetItemCount()); } - void AddTextItem(std::u16string text, gsl::index index); + void AddTextItem(String text, gsl::index index); private: controls::FlexLayout* container_; |