MCPcopy Create free account
hub / github.com/GuitarML/NeuralPi / paint

Method paint

Source/PluginEditor.cpp:584–595  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

582
583//==============================================================================
584void NeuralPiAudioProcessorEditor::paint (Graphics& g)
585{
586 // Workaround for graphics on Windows builds (clipping code doesn't work correctly on Windows)
587#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
588 g.drawImageAt(background, 0, 0); // Debug Line: Redraw entire background image
589#else
590// Redraw only the clipped part of the background image
591 juce::Rectangle<int> ClipRect = g.getClipBounds();
592 g.drawImage(background, ClipRect.getX(), ClipRect.getY(), ClipRect.getWidth(), ClipRect.getHeight(), ClipRect.getX(), ClipRect.getY(), ClipRect.getWidth(), ClipRect.getHeight());
593#endif
594
595}
596
597void NeuralPiAudioProcessorEditor::resized()
598{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected