aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/ICheckableControl.h
blob: 7a6d7b8e5279e32d97b8446a01fd6bf121b7ad3a (plain)
1
2
3
4
5
6
7
8
9
10
11
#pragma once
#include "../Base.h"
#include "cru/base/Event.h"

namespace cru::ui::controls {
struct CRU_UI_API ICheckableControl : virtual Interface {
  virtual bool IsChecked() const = 0;
  virtual void SetChecked(bool checked) = 0;
  virtual IEvent<bool>* CheckedChangeEvent() = 0;
};
}  // namespace cru::ui::controls