From 674e8af2e92074b71c77e656a54244ce2693460c Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 16 Feb 2022 17:00:33 +0800 Subject: ... --- include/cru/ui/components/Select.h | 4 ++-- include/cru/ui/style/Condition.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'include') 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 GetItems() { return items_; } + std::vector GetItems() const { return items_; } void SetItems(std::vector items); - Index GetSelectedIndex() { return selected_index_; } + Index GetSelectedIndex() const { return selected_index_; } void SetSelectedIndex(Index index); IEvent* ItemSelectedEvent() { return &item_selected_event_; } diff --git a/include/cru/ui/style/Condition.h b/include/cru/ui/style/Condition.h index 14d7e625..1038c34b 100644 --- a/include/cru/ui/style/Condition.h +++ b/include/cru/ui/style/Condition.h @@ -127,6 +127,8 @@ class CRU_UI_API ClickStateCondition : public Condition { return new ClickStateCondition(click_state_); } + helper::ClickState GetClickState() const { return click_state_; } + private: helper::ClickState click_state_; }; -- cgit v1.2.3