diff options
author | crupest <crupest@outlook.com> | 2022-02-16 17:00:33 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-16 17:00:33 +0800 |
commit | 674e8af2e92074b71c77e656a54244ce2693460c (patch) | |
tree | d109201e4204011fe9e714ff81490674b2f7b042 /include/cru/ui/components/Select.h | |
parent | 43a297f30c03180427db435bb25a1a4b51ea847a (diff) | |
download | cru-674e8af2e92074b71c77e656a54244ce2693460c.tar.gz cru-674e8af2e92074b71c77e656a54244ce2693460c.tar.bz2 cru-674e8af2e92074b71c77e656a54244ce2693460c.zip |
...
Diffstat (limited to 'include/cru/ui/components/Select.h')
-rw-r--r-- | include/cru/ui/components/Select.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cru/ui/components/Select.h b/include/cru/ui/components/Select.h index cc658092..d5ff0b43 100644 --- a/include/cru/ui/components/Select.h +++ b/include/cru/ui/components/Select.h @@ -13,10 +13,10 @@ class CRU_UI_API Select : public Component { public: ui::controls::Control* GetRootControl() override { return &button_; } - std::vector<String> GetItems() { return items_; } + std::vector<String> GetItems() const { return items_; } void SetItems(std::vector<String> items); - Index GetSelectedIndex() { return selected_index_; } + Index GetSelectedIndex() const { return selected_index_; } void SetSelectedIndex(Index index); IEvent<Index>* ItemSelectedEvent() { return &item_selected_event_; } |