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

Method onPuglMotion

dgl/src/WindowPrivateData.cpp:824–840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

822}
823
824void Window::PrivateData::onPuglMotion(const Widget::MotionEvent& ev)
825{
826 DGL_DBGp("onPuglMotion : %f %f\n", ev.pos.getX(), ev.pos.getY());
827
828 if (modal.child != nullptr)
829 return modal.child->focus();
830
831#ifndef DPF_TEST_WINDOW_CPP
832 FOR_EACH_TOP_LEVEL_WIDGET_INV(rit)
833 {
834 TopLevelWidget* const widget(*rit);
835
836 if (widget->isVisible() && widget->onMotion(ev))
837 break;
838 }
839#endif
840}
841
842void Window::PrivateData::onPuglScroll(const Widget::ScrollEvent& ev)
843{

Callers 2

stopModalMethod · 0.80
puglEventCallbackMethod · 0.80

Calls 1

focusMethod · 0.45

Tested by

no test coverage detected