Audio plugin host https://kx.studio/carla
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.

juce_LookAndFeel_V3.h 3.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. ==============================================================================
  3. This file is part of the JUCE library.
  4. Copyright (c) 2013 - Raw Material Software Ltd.
  5. Permission is granted to use this software under the terms of either:
  6. a) the GPL v2 (or any later version)
  7. b) the Affero GPL v3
  8. Details of these licenses can be found at: www.gnu.org/licenses
  9. JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  11. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  12. ------------------------------------------------------------------------------
  13. To release a closed-source product which uses JUCE, commercial licenses are
  14. available: visit www.juce.com for more information.
  15. ==============================================================================
  16. */
  17. #ifndef JUCE_LOOKANDFEEL_V3_H_INCLUDED
  18. #define JUCE_LOOKANDFEEL_V3_H_INCLUDED
  19. //==============================================================================
  20. /**
  21. The latest JUCE look-and-feel style, as introduced in 2013.
  22. @see LookAndFeel, LookAndFeel_V1, LookAndFeel_V2
  23. */
  24. class JUCE_API LookAndFeel_V3 : public LookAndFeel_V2
  25. {
  26. public:
  27. LookAndFeel_V3();
  28. ~LookAndFeel_V3();
  29. //==============================================================================
  30. void drawButtonBackground (Graphics&, Button&, const Colour& backgroundColour,
  31. bool isMouseOverButton, bool isButtonDown) override;
  32. void drawTableHeaderBackground (Graphics&, TableHeaderComponent&) override;
  33. void drawTreeviewPlusMinusBox (Graphics&, const Rectangle<float>& area,
  34. Colour backgroundColour, bool isOpen, bool isMouseOver) override;
  35. bool areLinesDrawnForTreeView (TreeView&) override;
  36. int getTreeViewIndentSize (TreeView&) override;
  37. void drawComboBox (Graphics& g, int width, int height, bool isButtonDown,
  38. int buttonX, int buttonY, int buttonW, int buttonH, ComboBox& box) override;
  39. void drawKeymapChangeButton (Graphics& g, int width, int height, Button& button, const String& keyDescription) override;
  40. void drawPopupMenuBackground (Graphics& g, int width, int height) override;
  41. int getTabButtonOverlap (int tabDepth) override;
  42. int getTabButtonSpaceAroundImage() override;
  43. void drawTabButton (TabBarButton&, Graphics&, bool isMouseOver, bool isMouseDown) override;
  44. void drawStretchableLayoutResizerBar (Graphics&, int w, int h, bool isVerticalBar, bool isMouseOver, bool isMouseDragging) override;
  45. bool areScrollbarButtonsVisible() override;
  46. void drawScrollbar (Graphics&, ScrollBar&, int x, int y, int width, int height, bool isScrollbarVertical,
  47. int thumbStartPosition, int thumbSize, bool isMouseOver, bool isMouseDown) override;
  48. void drawConcertinaPanelHeader (Graphics&, const Rectangle<int>& area, bool isMouseOver, bool isMouseDown,
  49. ConcertinaPanel&, Component&) override;
  50. static void createTabTextLayout (const TabBarButton& button, float length, float depth, Colour colour, TextLayout&);
  51. private:
  52. Image backgroundTexture;
  53. Colour backgroundTextureBaseColour;
  54. };
  55. #endif // JUCE_LOOKANDFEEL_H_INCLUDED