aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/ICheckableControl.h
blob: 2c7aace85141903f3f57a920a01c5d7532645371 (plain)
1
2
3
4
5
6
7
8
9
10
11
#pragma once
#include "../Base.h"
#include "cru/common/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