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

20 lines
324 B
C
Raw Normal View History

2020-06-27 09:47:30 +00:00
#pragma once
#include "PlainTextDocument.h"
#include <memory>
class TextEditorModel
{
PlainTextDocumentUPtr mDocument;
public:
TextEditorModel();
static std::unique_ptr<TextEditorModel> Create();
PlainTextDocument* GetDocument() const;
};
using TextEditorModelUPtr = std::unique_ptr<TextEditorModel>;