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.

43 lines
1.3KB

  1. /*
  2. ==============================================================================
  3. This file was auto-generated!
  4. It contains the basic framework code for a JUCE plugin editor.
  5. ==============================================================================
  6. */
  7. EDITORCPPHEADERS
  8. //==============================================================================
  9. EDITORCLASSNAME::EDITORCLASSNAME (FILTERCLASSNAME& p)
  10. : AudioProcessorEditor (&p), processor (p)
  11. {
  12. // Make sure that before the constructor has finished, you've set the
  13. // editor's size to whatever you need it to be.
  14. setSize (400, 300);
  15. }
  16. EDITORCLASSNAME::~EDITORCLASSNAME()
  17. {
  18. }
  19. //==============================================================================
  20. void EDITORCLASSNAME::paint (Graphics& g)
  21. {
  22. // (Our component is opaque, so we must completely fill the background with a solid colour)
  23. g.fillAll (getLookAndFeel().findColour (ResizableWindow::backgroundColourId));
  24. g.setColour (Colours::white);
  25. g.setFont (15.0f);
  26. g.drawFittedText ("Hello World!", getLocalBounds(), Justification::centred, 1);
  27. }
  28. void EDITORCLASSNAME::resized()
  29. {
  30. // This is generally where you'll want to lay out the positions of any
  31. // subcomponents in your editor..
  32. }