Set up stacked widget.
This commit is contained in:
parent
4e85edacc8
commit
ee51f3ee09
51 changed files with 808 additions and 195 deletions
16
src/client/web_client/WebClientView.cpp
Normal file
16
src/client/web_client/WebClientView.cpp
Normal file
|
@ -0,0 +1,16 @@
|
|||
#include "WebClientView.h"
|
||||
#include "Label.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>();
|
||||
}
|
14
src/client/web_client/WebClientView.h
Normal file
14
src/client/web_client/WebClientView.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
|
||||
#include "Widget.h"
|
||||
|
||||
class WebClientView : public Widget
|
||||
{
|
||||
public:
|
||||
|
||||
WebClientView();
|
||||
|
||||
static std::unique_ptr<WebClientView> Create();
|
||||
};
|
||||
|
||||
using WebClientViewUPtr = std::unique_ptr<WebClientView>;
|
Loading…
Add table
Add a link
Reference in a new issue