wavetable/plugin/Source/PluginEditor.cpp
2023-08-23 08:45:23 -07:00

35 lines
900 B
C++

#include "PluginProcessor.h"
#include "PluginEditor.h"
//==============================================================================
WavetableAudioProcessorEditor::WavetableAudioProcessorEditor (WavetableAudioProcessor& p)
: ProcessorEditor (p), vaProc (p)
{
addAndMakeVisible (editor);
setSize (901, 753);
}
WavetableAudioProcessorEditor::~WavetableAudioProcessorEditor()
{
}
//==============================================================================
void WavetableAudioProcessorEditor::paint (juce::Graphics& g)
{
ProcessorEditor::paint (g);
titleBar.setShowBrowser (true);
g.fillAll (findColour (gin::PluginLookAndFeel::blackColourId));
}
void WavetableAudioProcessorEditor::resized()
{
ProcessorEditor::resized ();
auto rc = getLocalBounds().reduced (1);
rc.removeFromTop (40);
editor.setBounds (rc);
}