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
|
@ -5,20 +5,20 @@
|
|||
class Button : public Widget
|
||||
{
|
||||
private:
|
||||
std::string mLabel;
|
||||
std::string mLabel;
|
||||
|
||||
public:
|
||||
Button();
|
||||
Button();
|
||||
|
||||
void SetLabel(const std::string& text);
|
||||
static std::unique_ptr<Button> Create();
|
||||
|
||||
static std::shared_ptr<Button> Create();
|
||||
void SetLabel(const std::string& text);
|
||||
|
||||
void OnPaintEvent(PaintEventPtr event);
|
||||
void OnPaintEvent(const PaintEvent* event) override;
|
||||
|
||||
protected:
|
||||
|
||||
void OnMyMouseEvent(MouseEventPtr event);
|
||||
void OnMyMouseEvent(const MouseEvent* event) override;
|
||||
};
|
||||
|
||||
using ButtonPtr = std::shared_ptr<Button>;
|
||||
using ButtonUPtr = std::unique_ptr<Button>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue