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

Method MoveTo

libraries/lib-label-track/LabelTrack.cpp:199–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197
198
199void LabelTrack::MoveTo(double origin)
200{
201 if (!mLabels.empty()) {
202 const auto offset = origin - mLabels[0].selectedRegion.t0();
203 for (auto &labelStruct: mLabels) {
204 labelStruct.selectedRegion.move(offset);
205 }
206 }
207}
208
209void LabelTrack::ShiftBy(double t0, double delta)
210{

Callers 1

ModifiedAnalysisTrackMethod · 0.45

Calls 2

moveMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected