JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
juce_LookAndFeel_V1.h
Go to the documentation of this file.
1 /*
2 ==============================================================================
3
4 This file is part of the JUCE library.
5 Copyright (c) 2022 - Raw Material Software Limited
6
7 JUCE is an open source library subject to commercial or open-source
8 licensing.
9
10 By using JUCE, you agree to the terms of both the JUCE 7 End-User License
11 Agreement and JUCE Privacy Policy.
12
13 End User License Agreement: www.juce.com/juce-7-licence
14 Privacy Policy: www.juce.com/juce-privacy-policy
15
16 Or: You may also use this code under the terms of the GPL v3 (see
17 www.gnu.org/licenses).
18
19 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
20 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
21 DISCLAIMED.
22
23 ==============================================================================
24*/
25
26namespace juce
27{
28
29//==============================================================================
36class JUCE_API LookAndFeel_V1 : public LookAndFeel_V2
37{
38public:
40 ~LookAndFeel_V1() override;
41
42 //==============================================================================
43 void drawButtonBackground (Graphics&, Button&, const Colour& backgroundColour,
44 bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown) override;
45
46 void drawToggleButton (Graphics&, ToggleButton&,
47 bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown) override;
48
49 void drawTickBox (Graphics&, Component&, float x, float y, float w, float h,
50 bool ticked, bool isEnabled,
51 bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown) override;
52
53 void drawProgressBar (Graphics&, ProgressBar&, int width, int height,
54 double progress, const String& textToShow) override;
55
56 //==============================================================================
57 void drawScrollbarButton (Graphics&, ScrollBar&, int width, int height,
58 int buttonDirection, bool isScrollbarVertical,
59 bool shouldDrawButtonAsHighlighted, bool shouldDrawButtonAsDown) override;
60
61 void drawScrollbar (Graphics&, ScrollBar&, int x, int y, int width, int height,
62 bool isScrollbarVertical, int thumbStartPosition, int thumbSize,
63 bool isMouseOver, bool isMouseDown) override;
64
65 ImageEffectFilter* getScrollbarEffect() override;
66
67 //==============================================================================
68 void drawTextEditorOutline (Graphics&, int width, int height, TextEditor&) override;
69
70 //==============================================================================
71 void drawPopupMenuBackground (Graphics&, int width, int height) override;
72 void drawMenuBarBackground (Graphics&, int width, int height, bool isMouseOverBar, MenuBarComponent&) override;
73
74 //==============================================================================
75 void drawComboBox (Graphics&, int width, int height, bool isButtonDown,
76 int buttonX, int buttonY, int buttonW, int buttonH, ComboBox&) override;
77
78 Font getComboBoxFont (ComboBox&) override;
79
80 //==============================================================================
81 void drawLinearSlider (Graphics&, int x, int y, int width, int height,
82 float sliderPos, float minSliderPos, float maxSliderPos,
83 Slider::SliderStyle, Slider&) override;
84
85 int getSliderThumbRadius (Slider&) override;
86 Button* createSliderButton (Slider&, bool isIncrement) override;
87 ImageEffectFilter* getSliderEffect (Slider&) override;
88
89 //==============================================================================
90 void drawCornerResizer (Graphics&, int w, int h, bool isMouseOver, bool isMouseDragging) override;
91
92 Button* createDocumentWindowButton (int buttonType) override;
93
94 void positionDocumentWindowButtons (DocumentWindow&,
95 int titleBarX, int titleBarY, int titleBarW, int titleBarH,
96 Button* minimiseButton, Button* maximiseButton, Button* closeButton,
97 bool positionTitleBarButtonsOnLeft) override;
98
99private:
100 DropShadowEffect scrollbarShadow;
101
103};
104
105} // namespace juce
A base class for buttons.
Definition juce_Button.h:43
Represents a colour, also including a transparency value.
Definition juce_Colour.h:38
A component that lets the user choose from a drop-down list of choices.
The base class for all JUCE user-interface objects.
A resizable window with a title bar and maximise, minimise and close buttons.
An effect filter that adds a drop-shadow behind the image's content.
Represents a particular font, including its size, style, etc.
Definition juce_Font.h:42
A graphics context, used for drawing a component or image.
A graphical effect filter that can be applied to components.
The original JUCE look-and-feel, as used back from 2002 to about 2007ish.
This LookAndFeel subclass implements the juce style from around 2008-12.
A menu bar component.
A progress bar component.
A scrollbar component.
A slider control for changing a value.
Definition juce_Slider.h:54
SliderStyle
The types of slider available.
Definition juce_Slider.h:62
The JUCE String class!
Definition juce_String.h:53
An editable text box.
A button that can be toggled on/off.
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className)
This is a shorthand way of writing both a JUCE_DECLARE_NON_COPYABLE and JUCE_LEAK_DETECTOR macro for ...
JUCE Namespace.