- Note
- This Source File belongs to Minimal UI Template XMake Example. Please follow the link for example explanation.
#include "MainWindow.h"
#include <AUI/Util/UIBuildingHelpers.h>
#include <AUI/View/ALabel.h>
#include <AUI/View/AButton.h>
#include <AUI/Platform/APlatform.h>
using namespace declarative;
MainWindow::MainWindow():
AWindow(
"Project template app", 300_dp, 200_dp) {
setContents(
Centered{
Vertical{
Centered {
Label {
"Hello world from AUI!" } },
_new<AButton>(
"Visit GitHub repo").connect(&
AView::clicked,
this, [] {
}),
}),
}),
}
}
);
}
emits clicked
Left mouse button clicked.
Definition AView.h:945
Represents a window in the underlying windowing system.
Definition AWindow.h:45
Declarative form of ALabel.
Definition ALabel.h:35