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

Method paint

Source/PluginEditor.cpp:444–464  ·  view source on GitHub ↗

==============================================================================

Source from the content-addressed store, hash-verified

442
443//==============================================================================
444void FireAudioProcessorEditor::paint(juce::Graphics& g)
445{
446 const float newDisplayScale = g.getInternalContext().getPhysicalPixelScaleFactor();
447
448 if (newDisplayScale != currentDisplayScale)
449 {
450 currentDisplayScale = newDisplayScale;
451 resized();
452 return;
453 }
454 g.drawImage(backgroundCache, getLocalBounds().toFloat());
455
456 int focusIndex = multiband.getFocusIndex();
457
458 bool left = windowLeftButton.getToggleState();
459
460 if (left)
461 {
462 bandPanel.setFocusBandNum(focusIndex);
463 }
464}
465
466void FireAudioProcessorEditor::resized()
467{

Callers

nothing calls this directly

Calls 2

getFocusIndexMethod · 0.80
setFocusBandNumMethod · 0.45

Tested by

no test coverage detected