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.

26 lines
862B

  1. #include "MainComponent.h"
  2. //==============================================================================
  3. MainComponent::MainComponent()
  4. {
  5. setSize (600, 400);
  6. }
  7. //==============================================================================
  8. void MainComponent::paint (juce::Graphics& g)
  9. {
  10. // (Our component is opaque, so we must completely fill the background with a solid colour)
  11. g.fillAll (getLookAndFeel().findColour (juce::ResizableWindow::backgroundColourId));
  12. g.setFont (juce::Font (16.0f));
  13. g.setColour (juce::Colours::white);
  14. g.drawText ("Hello World!", getLocalBounds(), juce::Justification::centred, true);
  15. }
  16. void MainComponent::resized()
  17. {
  18. // This is called when the MainComponent is resized.
  19. // If you add any child components, this is where you should
  20. // update their positions.
  21. }