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.

38 lines
1.3KB

  1. %%include_corresponding_header%%
  2. //==============================================================================
  3. %%content_component_class%%::%%content_component_class%%()
  4. {
  5. // Make sure you set the size of the component after
  6. // you add any child components.
  7. setSize (800, 600);
  8. setFramesPerSecond (60); // This sets the frequency of the update calls.
  9. }
  10. %%content_component_class%%::~%%content_component_class%%()
  11. {
  12. }
  13. //==============================================================================
  14. void %%content_component_class%%::update()
  15. {
  16. // This function is called at the frequency specified by the setFramesPerSecond() call
  17. // in the constructor. You can use it to update counters, animate values, etc.
  18. }
  19. //==============================================================================
  20. void %%content_component_class%%::paint (juce::Graphics& g)
  21. {
  22. // (Our component is opaque, so we must completely fill the background with a solid colour)
  23. g.fillAll (getLookAndFeel().findColour (juce::ResizableWindow::backgroundColourId));
  24. // You can add your drawing code here!
  25. }
  26. void %%content_component_class%%::resized()
  27. {
  28. // This is called when the MainContentComponent is resized.
  29. // If you add any child components, this is where you should
  30. // update their positions.
  31. }