The JUCE cross-platform C++ framework, with DISTRHO/KXStudio specific changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.2KB

  1. #include "PluginProcessor.h"
  2. #include "PluginEditor.h"
  3. //==============================================================================
  4. AudioPluginAudioProcessorEditor::AudioPluginAudioProcessorEditor (AudioPluginAudioProcessor& p)
  5. : AudioProcessorEditor (&p), processorRef (p)
  6. {
  7. juce::ignoreUnused (processorRef);
  8. // Make sure that before the constructor has finished, you've set the
  9. // editor's size to whatever you need it to be.
  10. setSize (400, 300);
  11. }
  12. AudioPluginAudioProcessorEditor::~AudioPluginAudioProcessorEditor()
  13. {
  14. }
  15. //==============================================================================
  16. void AudioPluginAudioProcessorEditor::paint (juce::Graphics& g)
  17. {
  18. // (Our component is opaque, so we must completely fill the background with a solid colour)
  19. g.fillAll (getLookAndFeel().findColour (juce::ResizableWindow::backgroundColourId));
  20. g.setColour (juce::Colours::white);
  21. g.setFont (15.0f);
  22. g.drawFittedText ("Hello World!", getLocalBounds(), juce::Justification::centred, 1);
  23. }
  24. void AudioPluginAudioProcessorEditor::resized()
  25. {
  26. // This is generally where you'll want to lay out the positions of any
  27. // subcomponents in your editor..
  28. }