stuff-from-scratch/apps/sample-gui/image_editor/ImageEditorView.cpp
2022-11-11 14:22:31 +00:00

18 lines
410 B
C++

#include "ImageEditorView.h"
#include "Label.h"
#include "Color.h"
ImageEditorView::ImageEditorView()
{
auto label = Label::Create();
label->setLabel("Image Editor");
label->setBackgroundColor(Color::Create(200, 189, 160));
label->setMargin(1);
addWidget(std::move(label));
}
std::unique_ptr<ImageEditorView> ImageEditorView::Create()
{
return std::make_unique<ImageEditorView>();
}