Initial commit.
This commit is contained in:
commit
59c6161fdb
134 changed files with 4751 additions and 0 deletions
24
src/ui_elements/widgets/Button.h
Normal file
24
src/ui_elements/widgets/Button.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
#pragma once
|
||||
|
||||
#include "Widget.h"
|
||||
|
||||
class Button : public Widget
|
||||
{
|
||||
private:
|
||||
std::string mLabel;
|
||||
|
||||
public:
|
||||
Button();
|
||||
|
||||
void SetLabel(const std::string& text);
|
||||
|
||||
static std::shared_ptr<Button> Create();
|
||||
|
||||
void OnPaintEvent(PaintEventPtr event);
|
||||
|
||||
protected:
|
||||
|
||||
void OnMyMouseEvent(MouseEventPtr event);
|
||||
};
|
||||
|
||||
using ButtonPtr = std::shared_ptr<Button>;
|
Loading…
Add table
Add a link
Reference in a new issue