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

Method SetNumGuides

src/AdornedRulerPanel.cpp:2704–2715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2702}
2703
2704void AdornedRulerPanel::SetNumGuides(size_t nn)
2705{
2706 nn = std::min(nn, MAX_GUIDES);
2707 // If increasing the number of guides, reinitialize newer ones
2708 for (size_t ii = mNumGuides; ii < nn; ++ii) {
2709 mQuickPlayOffset[ii] = 0;
2710 mQuickPlayPosUnsnapped[ii] = 0;
2711 mQuickPlayPos[ii] = 0;
2712 mIsSnapped[ii] = false;
2713 }
2714 mNumGuides = nn;
2715}
2716
2717void AdornedRulerPanel::SetFocusFromKbd()
2718{

Callers 3

PreviewMethod · 0.80
PreviewMethod · 0.80
PreviewMethod · 0.80

Calls 1

minFunction · 0.50

Tested by

no test coverage detected