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.

62 lines
1.6KB

  1. /*
  2. ==============================================================================
  3. FILENAME
  4. Created: DATE
  5. Author: AUTHOR
  6. ==============================================================================
  7. */
  8. #pragma once
  9. INCLUDE_JUCE
  10. //==============================================================================
  11. /*
  12. */
  13. class COMPONENTCLASS : public Component
  14. {
  15. public:
  16. COMPONENTCLASS()
  17. {
  18. // In your constructor, you should add any child components, and
  19. // initialise any special settings that your component needs.
  20. }
  21. ~COMPONENTCLASS()
  22. {
  23. }
  24. void paint (Graphics& g) override
  25. {
  26. /* This demo code just fills the component's background and
  27. draws some placeholder text to get you started.
  28. You should replace everything in this method with your own
  29. drawing code..
  30. */
  31. g.fillAll (getLookAndFeel().findColour (ResizableWindow::backgroundColourId)); // clear the background
  32. g.setColour (Colours::grey);
  33. g.drawRect (getLocalBounds(), 1); // draw an outline around the component
  34. g.setColour (Colours::white);
  35. g.setFont (14.0f);
  36. g.drawText ("COMPONENTCLASS", getLocalBounds(),
  37. Justification::centred, true); // draw some placeholder text
  38. }
  39. void resized() override
  40. {
  41. // This method is where you should set the bounds of any child
  42. // components that your component contains..
  43. }
  44. private:
  45. JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (COMPONENTCLASS)
  46. };