MCPcopy Create free account
hub / github.com/DISTRHO/DPF / onPuglMouse

Method onPuglMouse

dgl/src/WindowPrivateData.cpp:806–822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

804}
805
806void 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
824void Window::PrivateData::onPuglMotion(const Widget::MotionEvent& ev)
825{

Callers 1

puglEventCallbackMethod · 0.80

Calls 1

focusMethod · 0.45

Tested by

no test coverage detected