2016-10-10 13:56:52 +00:00
|
|
|
/*
|
|
|
|
==============================================================================
|
|
|
|
|
|
|
|
OPLLookAndFeel.h
|
|
|
|
Created: 10 Oct 2016 9:38:20pm
|
|
|
|
Author: bruce
|
|
|
|
|
|
|
|
==============================================================================
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef OPLLOOKANDFEEL_H_INCLUDED
|
|
|
|
#define OPLLOOKANDFEEL_H_INCLUDED
|
|
|
|
|
|
|
|
#include "JuceHeader.h"
|
|
|
|
|
|
|
|
class OPLLookAndFeel : public LookAndFeel_V3
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
Image toggleOff;
|
|
|
|
Image toggleOn;
|
|
|
|
Rectangle<float> toggleRect;
|
|
|
|
|
|
|
|
public:
|
2017-05-28 13:57:32 +00:00
|
|
|
static const Colour DOS_GREEN;
|
2017-11-28 13:10:16 +00:00
|
|
|
static const Colour DOS_GREEN_DARK;
|
2017-05-28 13:57:32 +00:00
|
|
|
|
2016-10-10 13:56:52 +00:00
|
|
|
OPLLookAndFeel();
|
|
|
|
|
|
|
|
void drawTickBox(Graphics &g,
|
|
|
|
Component &c,
|
|
|
|
float x,
|
|
|
|
float y,
|
|
|
|
float w,
|
|
|
|
float h,
|
|
|
|
bool ticked,
|
|
|
|
bool isEnabled,
|
|
|
|
bool isMouseOverButton,
|
|
|
|
bool isButtonDown
|
|
|
|
);
|
|
|
|
|
2017-03-04 05:55:44 +00:00
|
|
|
int getSliderThumbRadius(Slider& s);
|
|
|
|
void drawLinearSliderThumb(Graphics& g, int x, int y, int width, int height,
|
|
|
|
float sliderPos, float minSliderPos, float maxSliderPos,
|
|
|
|
const Slider::SliderStyle style, Slider& slider);
|
|
|
|
void drawLinearSliderBackground(Graphics& g, int x, int y, int width, int height,
|
|
|
|
float /*sliderPos*/,
|
|
|
|
float /*minSliderPos*/,
|
|
|
|
float /*maxSliderPos*/,
|
|
|
|
const Slider::SliderStyle /*style*/, Slider& slider);
|
2016-10-10 13:56:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // OPLLOOKANDFEEL_H_INCLUDED
|