Simple drawing example.

This commit is contained in:
James Grogan 2022-12-05 10:59:45 +00:00
parent d7fe11913f
commit f0091f9e04
27 changed files with 450 additions and 68 deletions

View file

@ -72,9 +72,9 @@ void TextEditorView::initialize()
loadButton->setOnClickFunction(onLoad);
auto buttonSpacer = VerticalSpacer::Create();
buttonSpacer->AddWidgetWithScale(std::move(saveButton), 1);
buttonSpacer->AddWidgetWithScale(std::move(clearButton), 1);
buttonSpacer->AddWidgetWithScale(std::move(loadButton), 1);
buttonSpacer->addWidgetWithScale(std::move(saveButton), 1);
buttonSpacer->addWidgetWithScale(std::move(clearButton), 1);
buttonSpacer->addWidgetWithScale(std::move(loadButton), 1);
auto hSpacer = HorizontalSpacer::Create();
hSpacer->addWidgetWithScale(std::move(label), 1);

View file

@ -11,7 +11,6 @@
class TextEditorView : public Widget
{
public:
TextEditorView();
static std::unique_ptr<TextEditorView> Create();