text: /*
    ==============================================================================
  
      This file contains the basic framework code for a JUCE plugin editor.
  
    ==============================================================================
  */
  
  #include "PluginProcessor.h"
  #include "PluginEditor.h"
  
  //==============================================================================
  NewProjectAudioProcessorEditor::NewProjectAudioProcessorEditor (NewProjectAudioProcessor& 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.
      addAndMakeVisible(rett);
      update();
      startTimer(30);
      setSize (400, 300);
  }
  
  NewProjectAudioProcessorEditor::~NewProjectAudioProcessorEditor()
  {
  }
  
  //==============================================================================
  void NewProjectAudioProcessorEditor::paint (juce::Graphics& g)
  {
      // (Our component is opaque, so we must completely fill the background with a solid colour)
      g.fillAll (getLookAndFeel().findColour (juce::ResizableWindow::backgroundColourId));
      
  
  }
  
  void NewProjectAudioProcessorEditor::resized()
  {
      //rett.setBounds(10, 200 - level, 30, level);
      rett.setBounds(10, 30, level, 5);
  }
  
  void Rettangolo::paint(juce::Graphics& g)
  {
      g.fillAll(juce::Colours::green);
  }
  
  void Rettangolo::resized()
  {
      
  }
  