stuff-from-scratch/apps/notes_tk/text_editor/TextEditorView.h

28 lines
482 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"
2022-11-18 15:11:54 +00:00
2020-06-27 09:47:30 +00:00
#include <functional>
class TextEditorView : public Widget
{
public:
TextEditorView();
static std::unique_ptr<TextEditorView> Create();
2022-11-18 15:11:54 +00:00
TextEditorController* getController();
2020-06-27 09:47:30 +00:00
2022-11-18 15:11:54 +00:00
void initialize();
private:
TextBox* mTextBox;
TextEditorControllerUPtr mController;
2020-06-27 09:47:30 +00:00
};
using TextEditorViewUPtr = std::unique_ptr<TextEditorView>;