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

Method SetCanvas

Source/CanvasControls.cpp:65–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void CanvasControls::SetCanvas(Canvas* canvas)
66{
67 mCanvas = canvas;
68 mWidth = mCanvas->GetWidth();
69 mCanvas->SetControls(this);
70 StringCopy(NameMutable(), (std::string(mCanvas->Name()) + "_controls").c_str(), MAX_TEXTENTRY_LENGTH);
71}
72
73void CanvasControls::SetElement(CanvasElement* element)
74{

Callers 3

CreateUIControlsMethod · 0.80
CreateUIControlsMethod · 0.80
CreateUIControlsMethod · 0.80

Calls 4

StringCopyFunction · 0.85
SetControlsMethod · 0.80
GetWidthMethod · 0.45
NameMethod · 0.45

Tested by

no test coverage detected