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.

66 lines
1.6KB

  1. /*
  2. ==============================================================================
  3. This file was auto-generated!
  4. ==============================================================================
  5. */
  6. #ifndef MAINCOMPONENT_H_INCLUDED
  7. #define MAINCOMPONENT_H_INCLUDED
  8. INCLUDE_JUCE
  9. //==============================================================================
  10. /*
  11. This component lives inside our window, and this is where you should put all
  12. your controls and content.
  13. */
  14. class MainContentComponent : public OpenGLAppComponent
  15. {
  16. public:
  17. //==============================================================================
  18. MainContentComponent()
  19. {
  20. setSize (500, 400);
  21. }
  22. ~MainContentComponent()
  23. {
  24. shutdownAudio();
  25. }
  26. void paint (Graphics& g)
  27. {
  28. // (Our component is opaque, so we must completely fill the background with a solid colour)
  29. g.fillAll (Colours::black);
  30. // You can add your drawing code here!
  31. }
  32. void resized()
  33. {
  34. // This is called when the MainContentComponent is resized.
  35. // If you add any child components, this is where you should
  36. // update their positions.
  37. }
  38. private:
  39. //==============================================================================
  40. // private member variables
  41. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MainContentComponent)
  42. };
  43. // (This function is called by the app startup code to create our main component)
  44. Component* createMainContentComponent() { return new MainContentComponent(); }
  45. #endif // MAINCOMPONENT_H_INCLUDED