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

Method SvgPort

src/app/SvgPort.cpp:8–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7
8SvgPort::SvgPort() {
9 fb = new widget::FramebufferWidget;
10 addChild(fb);
11
12 shadow = new CircularShadow;
13 fb->addChild(shadow);
14 // Avoid breakage if plugins fail to call setSvg()
15 // In that case, just disable the shadow.
16 shadow->box.size = math::Vec();
17
18 sw = new widget::SvgWidget;
19 fb->addChild(sw);
20}
21
22void SvgPort::setSvg(std::shared_ptr<window::Svg> svg) {
23 if (svg == sw->svg)

Callers

nothing calls this directly

Calls 2

VecClass · 0.85
addChildMethod · 0.80

Tested by

no test coverage detected