Move windows to uptr. Add simple text editing.

This commit is contained in:
jmsgrogan 2020-06-20 16:34:10 +01:00
parent 2bcc7b3d83
commit b99708e7d3
55 changed files with 1257 additions and 994 deletions

View file

@ -7,25 +7,25 @@
class TextElement
{
std::string mContent;
DiscretePoint mLocation;
std::string mFontLabel;
std::string mContent;
DiscretePoint mLocation;
std::string mFontLabel;
public:
TextElement(const std::string& content, const DiscretePoint& loc);
TextElement(const std::string& content, const DiscretePoint& loc);
~TextElement();
~TextElement();
static std::shared_ptr<TextElement> Create(const std::string& content, const DiscretePoint& loc);
static std::unique_ptr<TextElement> Create(const std::string& content, const DiscretePoint& loc);
DiscretePoint GetLocation();
DiscretePoint GetLocation() const;
std::string GetContent();
std::string GetContent() const;
void SetContent(const std::string& content);
std::string GetFontLabel() const;
std::string GetFontLabel();
void SetContent(const std::string& content);
};
using TextElementPtr = std::shared_ptr<TextElement>;
using TextElementUPtr = std::unique_ptr<TextElement>;