-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCustomLookAndFeel.h
50 lines (41 loc) · 1.4 KB
/
CustomLookAndFeel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
==============================================================================
CustomLookAndFeel.h
Created: 9 Aug 2023 10:52:09pm
Author: Alberto
==============================================================================
*/
#pragma once
#include <JuceHeader.h>
class LookAndFeelHex: public juce::LookAndFeel_V4
{
public:
LookAndFeelHex();
void drawRotarySlider(Graphics&, int x, int y, int width, int height, float sliderPosProportional, float rotaryStartAngle, float rotaryEndAngle, Slider&);
private:
Image hexKnob;
};
class LookAndFeelSelectorLo: public juce::LookAndFeel_V4
{
public:
LookAndFeelSelectorLo();
void drawRotarySlider(Graphics&, int x, int y, int width, int height, float sliderPosProportional, float rotaryStartAngle, float rotaryEndAngle, Slider&);
private:
Image selectorKnob;
};
class LookAndFeelSelectorHi : public juce::LookAndFeel_V4
{
public:
LookAndFeelSelectorHi();
void drawRotarySlider(Graphics&, int x, int y, int width, int height, float sliderPosProportional, float rotaryStartAngle, float rotaryEndAngle, Slider&);
private:
Image selectorKnob;
};
class LookAndFeelChicken: public juce::LookAndFeel_V4
{
public:
LookAndFeelChicken();
void drawRotarySlider(Graphics&, int x, int y, int width, int height, float sliderPosProportional, float rotaryStartAngle, float rotaryEndAngle, Slider&);
private:
Image chickenKnob;
};