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.

66 lines
1.6KB

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