MCPcopy Create free account
hub / github.com/audacity/audacity / IsWithinMarker

Method IsWithinMarker

src/AdornedRulerPanel.cpp:1713–1723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1711}
1712
1713bool AdornedRulerPanel::IsWithinMarker(int mousePosX, double markerTime)
1714{
1715 if (markerTime < 0)
1716 return false;
1717
1718 int pixelPos = Time2Pos(markerTime);
1719 int boundLeft = pixelPos - SELECT_TOLERANCE_PIXEL;
1720 int boundRight = pixelPos + SELECT_TOLERANCE_PIXEL;
1721
1722 return mousePosX >= boundLeft && mousePosX < boundRight;
1723}
1724
1725#ifdef QUICK_PLAY_HANDLE
1726auto AdornedRulerPanel::QPHandle::Click(

Callers 2

HitTestMethod · 0.80
PreviewMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected