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

Method CreateDuplicate

Source/CanvasElement.cpp:347–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347CanvasElement* NoteCanvasElement::CreateDuplicate() const
348{
349 NoteCanvasElement* element = new NoteCanvasElement(mCanvas, mCol, mRow, mOffset, mLength);
350 element->mVelocity = mVelocity;
351 element->mVoiceIdx = mVoiceIdx;
352 return element;
353}
354
355void NoteCanvasElement::DrawContents(bool clamp, bool wrapped, ofVec2f offset)
356{

Callers 1

MouseMovedMethod · 0.80

Calls 2

DataMethod · 0.80
CreateMethod · 0.45

Tested by

no test coverage detected