Move windows to uptr. Add simple text editing.
This commit is contained in:
parent
2bcc7b3d83
commit
b99708e7d3
55 changed files with 1257 additions and 994 deletions
|
@ -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>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue