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

Function recheckCursor

examples/Info/ResizeHandle.hpp:162–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160 Size<double> resizingSize;
161
162 void recheckCursor(const Point<double>& pos)
163 {
164 const bool shouldHaveCursor = area.contains(pos);
165
166 if (shouldHaveCursor == hasCursor)
167 return;
168
169 hasCursor = shouldHaveCursor;
170 setCursor(shouldHaveCursor ? kMouseCursorUpLeftDownRight : kMouseCursorArrow);
171 }
172
173 void resetArea()
174 {

Callers 2

onMouseFunction · 0.70
onMotionFunction · 0.70

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected