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.

40 lines
1.3KB

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