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

Method SetUpFromSaveData

Source/EventCanvas.cpp:397–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397void EventCanvas::SetUpFromSaveData()
398{
399 mCanvas->SetDimensions(mModuleSaveData.GetFloat("canvaswidth"), mModuleSaveData.GetFloat("canvasheight"));
400 assert(mModuleSaveData.GetInt("num_rows") <= kMaxEventRows);
401 mCanvas->SetNumRows(mModuleSaveData.GetInt("num_rows"));
402 SyncControlCablesToCanvas();
403}
404
405void EventCanvas::SaveLayout(ofxJSONElement& moduleInfo)
406{

Callers

nothing calls this directly

Calls 4

GetFloatMethod · 0.80
GetIntMethod · 0.80
SetNumRowsMethod · 0.80
SetDimensionsMethod · 0.45

Tested by

no test coverage detected