API Documentation
Button.h
1 // Button.h
3 //
5 
6 namespace nkWinUi
7 {
11  class Button : public Component
12  {
13  public :
14 
22  Button (System* system) noexcept ;
28  virtual ~Button () ;
29 
37  void setButtonClickCallback (std::function<void (Button*)> value) ;
41  std::function<void (Button*)> getButtonClickCallback () const ;
42 
43  public :
44 
45  // Statics
53  static nkMemory::UniquePtr<Button> create (System* system = nullptr) ;
54  } ;
55 }
nkWinUi::Button::getButtonClickCallback
std::function< void(Button *)> getButtonClickCallback() const
nkWinUi::Button::setButtonClickCallback
void setButtonClickCallback(std::function< void(Button *)> value)
nkWinUi::Component
Base class for any graphical component.
Definition: Component.h:12
nkWinUi::Button::Button
Button(System *system) noexcept
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::Button::~Button
virtual ~Button()
nkWinUi::Button
A graphical button.
Definition: Button.h:12
nkWinUi::Button::create
static nkMemory::UniquePtr< Button > create(System *system=nullptr)
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7