MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / SetStart

Method SetStart

Source/CanvasElement.cpp:177–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void CanvasElement::SetStart(float start, bool preserveLength)
178{
179 float end = 0;
180 if (!preserveLength)
181 end = GetEnd();
182 start *= mCanvas->GetNumCols();
183 mCol = int(start + .5f);
184 mOffset = start - mCol;
185 if (!preserveLength)
186 SetEnd(end);
187}
188
189float CanvasElement::GetEnd() const
190{

Callers 5

OnTransportAdvancedMethod · 0.80
ClipNotesMethod · 0.80
ButtonClickedMethod · 0.80
MouseMovedMethod · 0.80
RescaleNumColsMethod · 0.80

Calls 1

GetNumColsMethod · 0.80

Tested by

no test coverage detected