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.

57 lines
1.7KB

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