| 804 | } |
| 805 | |
| 806 | void Window::PrivateData::onPuglMouse(const Widget::MouseEvent& ev) |
| 807 | { |
| 808 | DGL_DBGp("onPuglMouse : %i %i %f %f\n", ev.button, ev.press, ev.pos.getX(), ev.pos.getY()); |
| 809 | |
| 810 | if (modal.child != nullptr) |
| 811 | return modal.child->focus(); |
| 812 | |
| 813 | #ifndef DPF_TEST_WINDOW_CPP |
| 814 | FOR_EACH_TOP_LEVEL_WIDGET_INV(rit) |
| 815 | { |
| 816 | TopLevelWidget* const widget(*rit); |
| 817 | |
| 818 | if (widget->isVisible() && widget->onMouse(ev)) |
| 819 | break; |
| 820 | } |
| 821 | #endif |
| 822 | } |
| 823 | |
| 824 | void Window::PrivateData::onPuglMotion(const Widget::MotionEvent& ev) |
| 825 | { |
no test coverage detected