AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
declarative::Button Struct Reference

Declarative form of AButton. More...

#include <AUI/View/AButton.h>

Public Member Functions#

 Button (AString text)
 Basic label initializer.
 
 Button (const char *text)
 Basic label initializer.
 
template<typename... Views>
 Button (Views &&... views)
 An explicit form of AButton where you can put any views in it, i.e., icons.
 

Detailed Description#

Constructor & Destructor Documentation#

◆ Button() [1/3]#

declarative::Button::Button ( AString text)
inline
Button { "Action label" }.connect(&AView::clicked, this, [] {
  // action
}),
emits clicked
Left mouse button clicked.
Definition AView.h:933
Button(AString text)
Basic label initializer.
Definition AButton.h:81

◆ Button() [2/3]#

declarative::Button::Button ( const char * text)
inline
Button { "Action label" }.connect(&AView::clicked, this, [] {
  // action
}),

◆ Button() [3/3]#

template<typename... Views>
declarative::Button::Button ( Views &&... views)
inline
  Icon { ":img/cart.svg" },
  Label { "Cart" },
}.connect(&AView::clicked, this, [] {
  // action
}),
Declarative form of ADrawableView.
Definition ADrawableView.h:110
Declarative form of ALabel.
Definition ALabel.h:35