stuff-from-scratch/apps/sample-gui/text_editor/TextEditorModel.h
2022-11-11 11:48:42 +00:00

19 lines
324 B
C++

#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>;