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

@ -6,17 +6,17 @@ class Label : public Widget
{
private:
std::string mLabel;
std::string mLabel;
public:
Label();
Label();
void SetLabel(const std::string& text);
static std::unique_ptr<Label> Create();
static std::shared_ptr<Label> Create();
void SetLabel(const std::string& text);
void OnPaintEvent(PaintEventPtr event);
void OnPaintEvent(const PaintEvent* event) override;
};
using LabelPtr = std::shared_ptr<Label>;
using LabelUPtr = std::unique_ptr<Label>;