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.

49 lines
1.5KB

  1. #pragma once
  2. %%include_juce%%
  3. //==============================================================================
  4. /*
  5. This component lives inside our window, and this is where you should put all
  6. your controls and content.
  7. */
  8. class %%content_component_class%% : public juce::Component
  9. {
  10. public:
  11. //==============================================================================
  12. %%content_component_class%%()
  13. {
  14. setSize (600, 400);
  15. }
  16. ~%%content_component_class%%() override
  17. {
  18. }
  19. //==============================================================================
  20. void paint (juce::Graphics& g) override
  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. g.setFont (juce::Font (16.0f));
  25. g.setColour (juce::Colours::white);
  26. g.drawText ("Hello World!", getLocalBounds(), juce::Justification::centred, true);
  27. }
  28. void resized() override
  29. {
  30. // This is called when the %%content_component_class%% is resized.
  31. // If you add any child components, this is where you should
  32. // update their positions.
  33. }
  34. private:
  35. //==============================================================================
  36. // Your private member variables go here...
  37. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (%%content_component_class%%)
  38. };