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

Method drawImGui

plugins/Cardinal/src/SassyScope.cpp:280–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278 }
279
280 void drawImGui() override
281 {
282 const float scaleFactor = getScaleFactor();
283
284 ImGui::SetNextWindowPos(ImVec2(0, 0));
285 ImGui::SetNextWindowSize(ImVec2(box.size.x * scaleFactor, box.size.y * scaleFactor));
286
287 ScopeData* const scope = module != nullptr ? &module->scope : getFakeScopeInstance();
288 scope->darkMode = settings::preferDarkPanels;
289 do_show_scope_window(scope, scaleFactor);
290 }
291
292 void onButton(const ButtonEvent& e) override
293 {

Callers

nothing calls this directly

Calls 3

ImVec2Function · 0.85
getFakeScopeInstanceFunction · 0.85
do_show_scope_windowFunction · 0.85

Tested by

no test coverage detected