diff options
| author | 杨宇千 <crupest@outlook.com> | 2019-08-12 01:03:02 +0800 |
|---|---|---|
| committer | 杨宇千 <crupest@outlook.com> | 2019-08-12 01:03:02 +0800 |
| commit | 04367ead7027e9f0359d24681f5cc0dd916b934d (patch) | |
| tree | f2a277ac9d53863c9f4efc8099450138974bdb4d /include/cru/ui/control.hpp | |
| parent | 86e776eaebf7c45a269001ca7da0dfafba069d0a (diff) | |
| download | cru-04367ead7027e9f0359d24681f5cc0dd916b934d.tar.gz cru-04367ead7027e9f0359d24681f5cc0dd916b934d.tar.bz2 cru-04367ead7027e9f0359d24681f5cc0dd916b934d.zip | |
...
Diffstat (limited to 'include/cru/ui/control.hpp')
| -rw-r--r-- | include/cru/ui/control.hpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/include/cru/ui/control.hpp b/include/cru/ui/control.hpp index b39b59a0..f312272e 100644 --- a/include/cru/ui/control.hpp +++ b/include/cru/ui/control.hpp @@ -62,9 +62,11 @@ class Control : public Object { public: bool IsMouseOver() const { return is_mouse_over_; } - bool CaptureMouse(); // TODO + bool CaptureMouse(); - bool IsMouseCaptured(); // TODO + bool ReleaseMouse(); + + bool IsMouseCaptured(); //*************** region: events *************** public: @@ -128,12 +130,6 @@ class Control : public Object { virtual void OnAttachToWindow(Window* window); virtual void OnDetachToWindow(Window* window); - //*************** region: additional mouse event *************** - protected: - virtual void OnMouseClickBegin(platform::native::MouseButton button); - virtual void OnMouseClickEnd(platform::native::MouseButton button); - virtual void OnMouseClickCancel(platform::native::MouseButton button); - private: Window* window_ = nullptr; Control* parent_ = nullptr; |
