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

24 lines
372 B
C++

#pragma once
#include <string>
#include <memory>
class PlainTextDocument
{
std::string mContent;
public:
PlainTextDocument();
static std::unique_ptr<PlainTextDocument> Create();
std::string GetContent() const;
void SetContent(const std::string& content);
void Clear();
};
using PlainTextDocumentUPtr = std::unique_ptr<PlainTextDocument>;