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.

72 lines
1.9KB

  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 AnimatedAppComponent
  15. {
  16. public:
  17. //==============================================================================
  18. MainContentComponent()
  19. {
  20. setSize (800, 600);
  21. setFramesPerSecond (60);
  22. }
  23. ~MainContentComponent()
  24. {
  25. }
  26. void update() override
  27. {
  28. // This function is called at the frequency specified by the setFramesPerSecond() call
  29. // in the constructor. You can use it to update counters, animate values, etc.
  30. }
  31. void paint (Graphics& g) override
  32. {
  33. // (Our component is opaque, so we must completely fill the background with a solid colour)
  34. g.fillAll (Colours::black);
  35. // You can add your drawing code here!
  36. }
  37. void resized() override
  38. {
  39. // This is called when the MainContentComponent is resized.
  40. // If you add any child components, this is where you should
  41. // update their positions.
  42. }
  43. private:
  44. //==============================================================================
  45. // Your private member variables go here...
  46. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MainContentComponent)
  47. };
  48. // (This function is called by the app startup code to create our main component)
  49. Component* createMainContentComponent() { return new MainContentComponent(); }
  50. #endif // MAINCOMPONENT_H_INCLUDED