Vital
Loading...
Searching...
No Matches
curve_look_and_feel.h
Go to the documentation of this file.
1#pragma once
2
3#include "JuceHeader.h"
5
15public:
17 virtual ~CurveLookAndFeel() { }
18
31 void drawRotarySlider(Graphics& g, int x, int y, int width, int height,
32 float slider_t, float start_angle, float end_angle,
33 Slider& slider) override;
34
46 void drawCurve(Graphics& g, Slider& slider, int x, int y, int width, int height, bool active, bool bipolar);
47
54 return &instance;
55 }
56
57private:
60
61 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(CurveLookAndFeel)
62};
A specialized LookAndFeel class for drawing curve-shaped rotary sliders.
Definition curve_look_and_feel.h:14
void drawRotarySlider(Graphics &g, int x, int y, int width, int height, float slider_t, float start_angle, float end_angle, Slider &slider) override
Draws a rotary slider with a curve-shaped indicator.
Definition curve_look_and_feel.cpp:11
virtual ~CurveLookAndFeel()
Destructor.
Definition curve_look_and_feel.h:17
void drawCurve(Graphics &g, Slider &slider, int x, int y, int width, int height, bool active, bool bipolar)
Draws the power-scale curve for the slider.
Definition curve_look_and_feel.cpp:37
static CurveLookAndFeel * instance()
Gets the singleton instance of CurveLookAndFeel.
Definition curve_look_and_feel.h:52
A base LookAndFeel class providing default styling for UI elements.
Definition default_look_and_feel.h:31