#pragma once #include "../properties/SelectPropertyEditor.h" #include "ConditionEditor.h" #include "cru/common/ClonablePtr.h" #include "cru/common/Event.h" #include "cru/ui/style/Condition.h" namespace cru::theme_builder::components::conditions { class ClickStateConditionEditor : public ConditionEditor { public: ClickStateConditionEditor(); ~ClickStateConditionEditor(); public: ClonablePtr GetValue() const; void SetValue(ClonablePtr value, bool trigger_change = true); ClonablePtr GetCondition() override { return GetValue(); } IEvent* ChangeEvent() { return &change_event_; } private: properties::SelectPropertyEditor click_state_select_; Event change_event_; }; } // namespace cru::theme_builder::components::conditions