stuff-from-scratch/apps/sample-gui/web_client/WebClientView.cpp

19 lines
388 B
C++
Raw Normal View History

2020-06-27 09:47:30 +00:00
#include "WebClientView.h"
2020-06-27 09:47:30 +00:00
#include "Label.h"
#include "Color.h"
2020-06-27 09:47:30 +00:00
WebClientView::WebClientView()
{
auto label = Label::Create();
2022-11-11 14:22:31 +00:00
label->setLabel("Web Client");
2022-11-13 17:02:09 +00:00
label->setBackgroundColor(Color(200, 189, 160));
2022-11-11 14:22:31 +00:00
label->setMargin(1);
addWidget(std::move(label));
2020-06-27 09:47:30 +00:00
}
std::unique_ptr<WebClientView> WebClientView::Create()
{
return std::make_unique<WebClientView>();
}