aboutsummaryrefslogtreecommitdiff
path: root/src/ui/helper/ClickDetector.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-12-13 20:58:42 +0800
committercrupest <crupest@outlook.com>2021-12-13 20:58:42 +0800
commit21fccf43ec049569f690674840ca1a10420a40da (patch)
tree33341a51f41bc9d783221ad363e33ffeb177886b /src/ui/helper/ClickDetector.cpp
parentc850d817cc0d8c2c80728f373f89dce91650023a (diff)
downloadcru-21fccf43ec049569f690674840ca1a10420a40da.tar.gz
cru-21fccf43ec049569f690674840ca1a10420a40da.tar.bz2
cru-21fccf43ec049569f690674840ca1a10420a40da.zip
...
Diffstat (limited to 'src/ui/helper/ClickDetector.cpp')
-rw-r--r--src/ui/helper/ClickDetector.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/helper/ClickDetector.cpp b/src/ui/helper/ClickDetector.cpp
index 309685d3..d8d51327 100644
--- a/src/ui/helper/ClickDetector.cpp
+++ b/src/ui/helper/ClickDetector.cpp
@@ -12,7 +12,7 @@ ClickDetector::ClickDetector(controls::Control* control) {
event_rovoker_guards_.push_back(
EventRevokerGuard(control->MouseEnterEvent()->Direct()->AddHandler(
- [this](event::MouseEventArgs&) {
+ [this](events::MouseEventArgs&) {
if (this->enable_) {
if (this->state_ == ClickState::PressInactive) {
if ((this->button_ & this->trigger_button_)) {
@@ -26,7 +26,7 @@ ClickDetector::ClickDetector(controls::Control* control) {
event_rovoker_guards_.push_back(
EventRevokerGuard(control->MouseLeaveEvent()->Direct()->AddHandler(
- [this](event::MouseEventArgs&) {
+ [this](events::MouseEventArgs&) {
if (this->enable_) {
if (this->state_ == ClickState::Press) {
if ((this->button_ & this->trigger_button_)) {
@@ -40,7 +40,7 @@ ClickDetector::ClickDetector(controls::Control* control) {
event_rovoker_guards_.push_back(
EventRevokerGuard(control->MouseDownEvent()->Direct()->AddHandler(
- [this](event::MouseButtonEventArgs& args) {
+ [this](events::MouseButtonEventArgs& args) {
const auto button = args.GetButton();
if (this->enable_ && (button & this->trigger_button_) &&
this->state_ == ClickState::Hover) {
@@ -59,7 +59,7 @@ ClickDetector::ClickDetector(controls::Control* control) {
event_rovoker_guards_.push_back(
EventRevokerGuard(control->MouseUpEvent()->Direct()->AddHandler(
- [this](event::MouseButtonEventArgs& args) {
+ [this](events::MouseButtonEventArgs& args) {
const auto button = args.GetButton();
if (this->enable_ && (button & this->trigger_button_) &&
button == button_) {