#pragma once #include "../properties/SelectPropertyEditor.h" #include "ConditionEditor.h" #include "cru/base/ClonablePtr.h" #include "cru/base/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(ui::style::ClickStateCondition* value, bool trigger_change = true); void SetValue(const ClonablePtr& value, bool trigger_change = true) { SetValue(value.get(), trigger_change); } ClonablePtr GetCondition() override { return GetValue(); } private: properties::SelectPropertyEditor click_state_select_; }; } // namespace cru::theme_builder::components::conditions