openshot-audio  0.1.7
juce_LookAndFeel_V3.h
Go to the documentation of this file.
1 /*
2  ==============================================================================
3 
4  This file is part of the JUCE library.
5  Copyright (c) 2015 - ROLI Ltd.
6 
7  Permission is granted to use this software under the terms of either:
8  a) the GPL v2 (or any later version)
9  b) the Affero GPL v3
10 
11  Details of these licenses can be found at: www.gnu.org/licenses
12 
13  JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
14  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
15  A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 
17  ------------------------------------------------------------------------------
18 
19  To release a closed-source product which uses JUCE, commercial licenses are
20  available: visit www.juce.com for more information.
21 
22  ==============================================================================
23 */
24 
25 #ifndef JUCE_LOOKANDFEEL_V3_H_INCLUDED
26 #define JUCE_LOOKANDFEEL_V3_H_INCLUDED
27 
28 //==============================================================================
34 {
35 public:
37  ~LookAndFeel_V3();
38 
39  //==============================================================================
40  void drawButtonBackground (Graphics&, Button&, const Colour& backgroundColour,
41  bool isMouseOverButton, bool isButtonDown) override;
42 
44 
46  Colour backgroundColour, bool isOpen, bool isMouseOver) override;
47  bool areLinesDrawnForTreeView (TreeView&) override;
48  int getTreeViewIndentSize (TreeView&) override;
49 
50  Button* createDocumentWindowButton (int buttonType) override;
51 
52  void drawComboBox (Graphics&, int width, int height, bool isButtonDown,
53  int buttonX, int buttonY, int buttonW, int buttonH, ComboBox& box) override;
54 
55  void drawKeymapChangeButton (Graphics&, int width, int height, Button& button, const String& keyDescription) override;
56 
57  void drawPopupMenuBackground (Graphics&, int width, int height) override;
58  void drawMenuBarBackground (Graphics&, int width, int height, bool, MenuBarComponent&) override;
59 
60  int getTabButtonOverlap (int tabDepth) override;
61  int getTabButtonSpaceAroundImage() override;
62  void drawTabButton (TabBarButton&, Graphics&, bool isMouseOver, bool isMouseDown) override;
63  void drawTabAreaBehindFrontButton (TabbedButtonBar& bar, Graphics& g, int w, int h) override;
64 
65  void drawTextEditorOutline (Graphics&, int width, int height, TextEditor&) override;
66 
67  void drawStretchableLayoutResizerBar (Graphics&, int w, int h, bool isVerticalBar, bool isMouseOver, bool isMouseDragging) override;
68 
69  bool areScrollbarButtonsVisible() override;
70 
71  void drawScrollbar (Graphics&, ScrollBar&, int x, int y, int width, int height, bool isScrollbarVertical,
72  int thumbStartPosition, int thumbSize, bool isMouseOver, bool isMouseDown) override;
73 
74  void drawLinearSlider (Graphics&, int x, int y, int width, int height,
75  float sliderPos, float minSliderPos, float maxSliderPos,
76  const Slider::SliderStyle, Slider&) override;
77 
78  void drawLinearSliderBackground (Graphics&, int x, int y, int width, int height,
79  float sliderPos, float minSliderPos, float maxSliderPos,
80  const Slider::SliderStyle, Slider&) override;
81 
82  void drawConcertinaPanelHeader (Graphics&, const Rectangle<int>& area, bool isMouseOver, bool isMouseDown,
83  ConcertinaPanel&, Component&) override;
84 
85  Path getTickShape (float height) override;
86  Path getCrossShape (float height) override;
87 
88  static void createTabTextLayout (const TabBarButton& button, float length, float depth, Colour colour, TextLayout&);
89 
90 private:
91  Image backgroundTexture;
92  Colour backgroundTextureBaseColour;
93 };
94 
95 
96 #endif // JUCE_LOOKANDFEEL_V3_H_INCLUDED
void drawTreeviewPlusMinusBox(Graphics &, const Rectangle< float > &area, Colour backgroundColour, bool isOpen, bool isMouseOver) override
Definition: juce_LookAndFeel_V2.cpp:802
bool areLinesDrawnForTreeView(TreeView &) override
Definition: juce_LookAndFeel_V2.cpp:827
Definition: juce_ScrollBar.h:49
void drawLinearSlider(Graphics &, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, const Slider::SliderStyle, Slider &) override
Definition: juce_LookAndFeel_V2.cpp:1338
void drawTextEditorOutline(Graphics &, int width, int height, TextEditor &) override
Definition: juce_LookAndFeel_V2.cpp:1082
Button * createDocumentWindowButton(int buttonType) override
Definition: juce_LookAndFeel_V2.cpp:1832
void drawTableHeaderBackground(Graphics &, TableHeaderComponent &) override
Definition: juce_LookAndFeel_V2.cpp:2283
int getTabButtonSpaceAroundImage() override
Definition: juce_LookAndFeel_V2.cpp:2007
Definition: juce_Button.h:39
SliderStyle
Definition: juce_Slider.h:59
Definition: juce_TabbedButtonBar.h:40
Definition: juce_TextLayout.h:38
Definition: juce_String.h:43
Definition: juce_ConcertinaPanel.h:37
Path getCrossShape(float height) override
Definition: juce_LookAndFeel_V2.cpp:782
void drawStretchableLayoutResizerBar(Graphics &, int w, int h, bool isVerticalBar, bool isMouseOver, bool isMouseDragging) override
Definition: juce_LookAndFeel_V2.cpp:1917
#define JUCE_API
Definition: juce_StandardHeader.h:139
void drawLinearSliderBackground(Graphics &, int x, int y, int width, int height, float sliderPos, float minSliderPos, float maxSliderPos, const Slider::SliderStyle, Slider &) override
Definition: juce_LookAndFeel_V2.cpp:1217
void drawComboBox(Graphics &, int width, int height, bool isButtonDown, int buttonX, int buttonY, int buttonW, int buttonH, ComboBox &) override
Definition: juce_LookAndFeel_V2.cpp:1115
int getTreeViewIndentSize(TreeView &) override
Definition: juce_LookAndFeel_V2.cpp:832
void drawScrollbar(Graphics &, ScrollBar &, int x, int y, int width, int height, bool isScrollbarVertical, int thumbStartPosition, int thumbSize, bool isMouseOver, bool isMouseDown) override
Definition: juce_LookAndFeel_V2.cpp:634
Definition: juce_Rectangle.h:36
Definition: juce_LookAndFeel_V2.h:35
void drawTabAreaBehindFrontButton(TabbedButtonBar &, Graphics &, int w, int h) override
Definition: juce_LookAndFeel_V2.cpp:2197
Definition: juce_TabbedButtonBar.h:147
Definition: juce_TableHeaderComponent.h:43
Path getTickShape(float height) override
Definition: juce_LookAndFeel_V2.cpp:765
Definition: juce_Path.h:62
Definition: juce_Colour.h:35
Definition: juce_MenuBarComponent.h:35
void drawButtonBackground(Graphics &, Button &, const Colour &backgroundColour, bool isMouseOverButton, bool isButtonDown) override
Definition: juce_LookAndFeel_V2.cpp:210
Definition: juce_TreeView.h:603
Definition: juce_Component.h:33
void drawMenuBarBackground(Graphics &, int width, int height, bool isMouseOverBar, MenuBarComponent &) override
Definition: juce_LookAndFeel_V2.cpp:1029
png_uint_32 length
Definition: juce_PNGLoader.cpp:2078
Definition: juce_TextEditor.h:38
png_const_structrp png_const_inforp int png_fixed_point * width
Definition: juce_PNGLoader.cpp:2339
void drawTabButton(TabBarButton &, Graphics &, bool isMouseOver, bool isMouseDown) override
Definition: juce_LookAndFeel_V2.cpp:2180
bool areScrollbarButtonsVisible() override
Definition: juce_LookAndFeel_V2.cpp:593
void drawKeymapChangeButton(Graphics &, int width, int height, Button &, const String &keyDescription) override
Definition: juce_LookAndFeel_V2.cpp:2683
int getTabButtonOverlap(int tabDepth) override
Definition: juce_LookAndFeel_V2.cpp:2002
Definition: juce_GraphicsContext.h:42
Definition: juce_Image.h:54
Definition: juce_ComboBox.h:44
Definition: juce_Slider.h:50
void drawPopupMenuBackground(Graphics &, int width, int height) override
Definition: juce_LookAndFeel_V2.cpp:879
Definition: juce_LookAndFeel_V3.h:33
Definition: jquant2.c:258
void drawConcertinaPanelHeader(Graphics &, const Rectangle< int > &area, bool isMouseOver, bool isMouseDown, ConcertinaPanel &, Component &panel) override
Definition: juce_LookAndFeel_V2.cpp:1617