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
|
@ -8,35 +8,35 @@
|
|||
class MouseEvent : public UiEvent
|
||||
{
|
||||
public:
|
||||
enum class Action
|
||||
{
|
||||
Pressed,
|
||||
Released
|
||||
};
|
||||
enum class Action
|
||||
{
|
||||
Pressed,
|
||||
Released
|
||||
};
|
||||
|
||||
private:
|
||||
Pixel mClientLocation;
|
||||
Pixel mScreenLocation;
|
||||
Action mAction;
|
||||
Pixel mClientLocation;
|
||||
Pixel mScreenLocation;
|
||||
Action mAction;
|
||||
|
||||
public:
|
||||
|
||||
MouseEvent();
|
||||
MouseEvent();
|
||||
|
||||
~MouseEvent();
|
||||
~MouseEvent();
|
||||
|
||||
static std::shared_ptr<MouseEvent> Create();
|
||||
static std::unique_ptr<MouseEvent> Create();
|
||||
|
||||
void SetClientLocation(Pixel location);
|
||||
void SetClientLocation(Pixel location);
|
||||
|
||||
void SetScreenLocation(Pixel location);
|
||||
void SetScreenLocation(Pixel location);
|
||||
|
||||
void SetAction(Action action);
|
||||
void SetAction(Action action);
|
||||
|
||||
Pixel GetClientLocation();
|
||||
Pixel GetClientLocation() const;
|
||||
|
||||
Pixel GetScreenLocation();
|
||||
Pixel GetScreenLocation() const;
|
||||
|
||||
Action GetAction();
|
||||
Action GetAction() const;
|
||||
};
|
||||
using MouseEventPtr = std::shared_ptr<MouseEvent>;
|
||||
using MouseEventUPtr = std::unique_ptr<MouseEvent>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue