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

Function onMotion

tests/FileBrowserDialog.cpp:85–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 }
84
85 bool onMotion(const MotionEvent& ev) override
86 {
87 const bool newButtonHover = buttonBounds.contains(ev.pos);
88
89 if (newButtonHover != buttonHover)
90 {
91 buttonHover = newButtonHover;
92 repaint();
93 return true;
94 }
95
96 return newButtonHover;
97 }
98
99 bool onMouse(const MouseEvent& ev) override
100 {

Callers 2

onMotionMethod · 0.50

Calls 2

repaintFunction · 0.50
containsMethod · 0.45

Tested by

no test coverage detected