|
@@ -208,23 +208,23 @@ void ButtonEventHandler::setCallback(Callback* const callback) noexcept |
|
|
pData->callback = callback; |
|
|
pData->callback = callback; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
ButtonEventHandler::State ButtonEventHandler::getState() const noexcept |
|
|
|
|
|
|
|
|
bool ButtonEventHandler::mouseEvent(const Widget::MouseEvent& ev) |
|
|
{ |
|
|
{ |
|
|
return static_cast<State>(pData->state); |
|
|
|
|
|
|
|
|
return pData->mouseEvent(ev); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void ButtonEventHandler::stateChanged(State, State) |
|
|
|
|
|
|
|
|
bool ButtonEventHandler::motionEvent(const Widget::MotionEvent& ev) |
|
|
{ |
|
|
{ |
|
|
|
|
|
return pData->motionEvent(ev); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
bool ButtonEventHandler::mouseEvent(const Widget::MouseEvent& ev) |
|
|
|
|
|
|
|
|
ButtonEventHandler::State ButtonEventHandler::getState() const noexcept |
|
|
{ |
|
|
{ |
|
|
return pData->mouseEvent(ev); |
|
|
|
|
|
|
|
|
return static_cast<State>(pData->state); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
bool ButtonEventHandler::motionEvent(const Widget::MotionEvent& ev) |
|
|
|
|
|
|
|
|
void ButtonEventHandler::stateChanged(State, State) |
|
|
{ |
|
|
{ |
|
|
return pData->motionEvent(ev); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------------------------------------------------------- |
|
|
// -------------------------------------------------------------------------------------------------------------------- |
|
|