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.

46 lines
1.5KB

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