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.

52 lines
1.4KB

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