MCPcopy Create free account
hub / github.com/VCVRack/Rack / NotesWidget

Method NotesWidget

src/core/Notes.cpp:71–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70struct NotesWidget : ModuleWidget {
71 NotesWidget(NotesModule* module) {
72 setModule(module);
73 setPanel(createPanel(asset::system("res/Core/Notes.svg"), asset::system("res/Core/Notes-dark.svg")));
74
75 addChild(createWidget<ThemedScrew>(Vec(RACK_GRID_WIDTH, 0)));
76 addChild(createWidget<ThemedScrew>(Vec(box.size.x - 2 * RACK_GRID_WIDTH, 0)));
77 addChild(createWidget<ThemedScrew>(Vec(RACK_GRID_WIDTH, RACK_GRID_HEIGHT - RACK_GRID_WIDTH)));
78 addChild(createWidget<ThemedScrew>(Vec(box.size.x - 2 * RACK_GRID_WIDTH, RACK_GRID_HEIGHT - RACK_GRID_WIDTH)));
79
80 NotesDisplay* notesDisplay = createWidget<NotesDisplay>(mm2px(Vec(0.0, 12.869)));
81 notesDisplay->box.size = mm2px(Vec(81.28, 105.059));
82 notesDisplay->setModule(module);
83 addChild(notesDisplay);
84 }
85};
86
87

Callers

nothing calls this directly

Calls 5

createPanelFunction · 0.85
systemFunction · 0.85
VecClass · 0.85
mm2pxFunction · 0.85
setModuleMethod · 0.45

Tested by

no test coverage detected