MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / CardinalEmbedWidget

Method CardinalEmbedWidget

plugins/Cardinal/src/MPV.cpp:70–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 bool videoIsLoaded = false;
69
70 CardinalEmbedWidget(CardinalEmbedModule* const m)
71 : ModuleWidget(),
72 ExternalWindow(),
73 module(m),
74 pcontext(m != nullptr ? m->pcontext : nullptr)
75 {
76 setModule(module);
77 setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/MPV.svg")));
78
79 if (m != nullptr)
80 {
81 embedWidget = new EmbedWidget(box.size);
82 addChild(embedWidget);
83 }
84 }
85
86 ~CardinalEmbedWidget()
87 {

Callers

nothing calls this directly

Calls 2

loadSvgMethod · 0.80
pluginFunction · 0.50

Tested by

no test coverage detected