stuff-from-scratch/apps/sample-gui/web_client/WebClientView.cpp
2022-11-11 11:48:42 +00:00

18 lines
396 B
C++

#include "WebClientView.h"
#include "Label.h"
#include "Color.h"
WebClientView::WebClientView()
{
auto label = Label::Create();
label->SetLabel("Web Client");
label->SetBackgroundColor(Color::Create(200, 189, 160));
label->SetMargin(1);
AddWidget(std::move(label));
}
std::unique_ptr<WebClientView> WebClientView::Create()
{
return std::make_unique<WebClientView>();
}