/* ============================================================================== This file contains the basic framework code for a JUCE plugin editor. ============================================================================== */ #include "PluginProcessor.h" #include "PluginEditor.h" //============================================================================== CrushFXAudioProcessorEditor::CrushFXAudioProcessorEditor (CrushFXAudioProcessor& p) : AudioProcessorEditor (&p), audioProcessor (p) { // Make sure that before the constructor has finished, you've set the // editor's size to whatever you need it to be. bg = juce::ImageCache::getFromMemory(BinaryData::BG_png, BinaryData::BG_pngSize); setSize (696, 400); } CrushFXAudioProcessorEditor::~CrushFXAudioProcessorEditor() { } //============================================================================== void CrushFXAudioProcessorEditor::paint (juce::Graphics& g) { g.drawImage(bg, getLocalBounds().toFloat()); } void CrushFXAudioProcessorEditor::resized() { // This is generally where you'll want to lay out the positions of any // subcomponents in your editor.. }