stuff-from-scratch/apps/sample-gui/text_editor/TextEditorView.h

26 lines
472 B
C
Raw Normal View History

2020-06-27 09:47:30 +00:00
#pragma once
#include "Widget.h"
#include "Button.h"
#include "Label.h"
#include "TextBox.h"
#include "TextEditorController.h"
#include <functional>
class TextEditorView : public Widget
{
TextBox* mTextBox;
TextEditorControllerUPtr mController;
public:
TextEditorView();
static std::unique_ptr<TextEditorView> Create();
TextEditorController* GetController();
void Initialize();
};
using TextEditorViewUPtr = std::unique_ptr<TextEditorView>;