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
2.0KB

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