MCPcopy Create free account
hub / github.com/jerryuhoo/Fire / resized

Method resized

Source/Panels/SpectrogramPanel/SpectrumBackground.cpp:56–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void SpectrumBackground::resized()
57{
58 // First, get the scale factor from the parent editor, as before.
59 if (auto* editor = findParentComponentOfClass<juce::AudioProcessorEditor>())
60 if (auto* lnf = dynamic_cast<FireLookAndFeel*>(&editor->getLookAndFeel()))
61 scale = lnf->scale;
62
63 // Now, trigger the regeneration of the background image.
64 // The resize itself will cause a repaint, which will then draw the new image.
65 createBackgroundImage();
66}
67
68void SpectrumBackground::createBackgroundImage()
69{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected