API Documentation
CheckBox.h
1 // CheckBox.h
3 //
5 
6 namespace nkWinUi
7 {
11  class CheckBox : public Component
12  {
13  public :
14 
22  CheckBox (System* system) noexcept ;
26  virtual ~CheckBox () ;
27 
28  // Getters
32  virtual bool isChecked () const = 0 ;
36  std::function<void (CheckBox*)> getCheckCallback () const ;
37 
38  // Setters
44  virtual void setChecked (bool val) = 0 ;
50  void setCheckCallback (std::function<void (CheckBox*)> value) ;
51 
52  public :
53 
54  // Statics
62  static nkMemory::UniquePtr<CheckBox> create (System* system = nullptr) ;
63  } ;
64 }
nkWinUi::CheckBox::~CheckBox
virtual ~CheckBox()
nkWinUi::CheckBox::create
static nkMemory::UniquePtr< CheckBox > create(System *system=nullptr)
nkWinUi::CheckBox::setCheckCallback
void setCheckCallback(std::function< void(CheckBox *)> value)
nkWinUi::CheckBox::setChecked
virtual void setChecked(bool val)=0
nkWinUi::CheckBox
A graphical check box.
Definition: CheckBox.h:12
nkWinUi::CheckBox::CheckBox
CheckBox(System *system) noexcept
nkWinUi::Component
Base class for any graphical component.
Definition: Component.h:12
nkWinUi::System
The main system of the component.
Definition: System.h:18
nkMemory::UniquePtr
Smart pointer owning the object instance it encapsulates.
Definition: UniquePtr.h:17
nkWinUi::CheckBox::isChecked
virtual bool isChecked() const =0
nkWinUi::CheckBox::getCheckCallback
std::function< void(CheckBox *)> getCheckCallback() const
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7