aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/IClickableControl.hpp
blob: af9ae100a6e8b660e3b62bba12ce5a55f8523f94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once
#include "Base.hpp"

#include "cru/common/Event.hpp"
#include "cru/ui/helper/ClickDetector.hpp"

namespace cru::ui::controls {
struct CRU_UI_API IClickableControl : virtual Interface {
  virtual helper::ClickState GetClickState() = 0;
  virtual IEvent<helper::ClickState>* ClickStateChangeEvent() = 0;
};
}  // namespace cru::ui::controls