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.

36 lines
871B

  1. /*
  2. ==============================================================================
  3. This file was auto-generated!
  4. ==============================================================================
  5. */
  6. #include "MainComponent.h"
  7. //==============================================================================
  8. MainContentComponent::MainContentComponent()
  9. : lightGrid ("lightGrid") //initialise the ToggleLightGridComponent object
  10. {
  11. setSize (600, 600);
  12. // add the light grid to out main component.
  13. addAndMakeVisible (lightGrid);
  14. }
  15. MainContentComponent::~MainContentComponent()
  16. {
  17. }
  18. void MainContentComponent::paint (Graphics& g)
  19. {
  20. g.fillAll (Colour (0xff001F36));
  21. }
  22. void MainContentComponent::resized()
  23. {
  24. // set the size of the grid to fill the whole window.
  25. lightGrid.setBounds (getLocalBounds());
  26. }