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.

65 lines
1.8KB

  1. /*
  2. ==============================================================================
  3. This file was auto-generated!
  4. ==============================================================================
  5. */
  6. INCLUDE_JUCE
  7. //==============================================================================
  8. /*
  9. This component lives inside our window, and this is where you should put all
  10. your controls and content.
  11. */
  12. class MainContentComponent : public AnimatedAppComponent
  13. {
  14. public:
  15. //==============================================================================
  16. MainContentComponent()
  17. {
  18. setSize (800, 600);
  19. setFramesPerSecond (60);
  20. }
  21. ~MainContentComponent()
  22. {
  23. }
  24. void update() override
  25. {
  26. // This function is called at the frequency specified by the setFramesPerSecond() call
  27. // in the constructor. You can use it to update counters, animate values, etc.
  28. }
  29. void paint (Graphics& g) override
  30. {
  31. // (Our component is opaque, so we must completely fill the background with a solid colour)
  32. g.fillAll (getLookAndFeel().findColour (ResizableWindow::backgroundColourId));
  33. // You can add your drawing code here!
  34. }
  35. void resized() override
  36. {
  37. // This is called when the MainContentComponent is resized.
  38. // If you add any child components, this is where you should
  39. // update their positions.
  40. }
  41. private:
  42. //==============================================================================
  43. // Your private member variables go here...
  44. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MainContentComponent)
  45. };
  46. // (This function is called by the app startup code to create our main component)
  47. Component* createMainContentComponent() { return new MainContentComponent(); }