stuff-from-scratch/apps/sample-gui/audio_editor/AudioEditorView.cpp

19 lines
410 B
C++
Raw Normal View History

2020-06-27 09:47:30 +00:00
#include "AudioEditorView.h"
2020-06-27 09:47:30 +00:00
#include "Label.h"
#include "Color.h"
2020-06-27 09:47:30 +00:00
AudioEditorView::AudioEditorView()
{
auto label = Label::Create();
label->SetLabel("Audio Editor");
label->SetBackgroundColor(Color::Create(200, 189, 160));
label->SetMargin(1);
AddWidget(std::move(label));
}
std::unique_ptr<AudioEditorView> AudioEditorView::Create()
{
return std::make_unique<AudioEditorView>();
}