|
| virtual | ~LookAndFeelMethods () |
| |
| virtual void | setupDefaultMeterColours ()=0 |
| | Define your default colours in this callback.
|
| |
| virtual void | updateMeterGradients ()=0 |
| | Call this to create the cached ColourGradients after changing colours of the meter gradients.
|
| |
| virtual juce::Rectangle< float > | getMeterInnerBounds (juce::Rectangle< float > bounds, MeterFlags meterType) const =0 |
| | Override this to change the inner rectangle in case you want to paint a border e.g.
|
| |
| virtual juce::Rectangle< float > | getMeterBounds (juce::Rectangle< float > bounds, MeterFlags meterType, int numChannels, int channel) const =0 |
| | Override this callback to define the placement of a meter channel.
|
| |
| virtual juce::Rectangle< float > | getMeterBarBounds (juce::Rectangle< float > bounds, MeterFlags meterType) const =0 |
| | Override this callback to define the placement of the actual meter bar.
|
| |
| virtual juce::Rectangle< float > | getMeterTickmarksBounds (juce::Rectangle< float > bounds, MeterFlags meterType) const =0 |
| | Override this callback to define the placement of the tickmarks.
|
| |
| virtual juce::Rectangle< float > | getMeterClipIndicatorBounds (juce::Rectangle< float > bounds, MeterFlags meterType) const =0 |
| | Override this callback to define the placement of the clip indicator light.
|
| |
| virtual juce::Rectangle< float > | drawBackground (juce::Graphics &, MeterFlags meterType, juce::Rectangle< float > bounds)=0 |
| | Override this to draw background and if wanted a frame.
|
| |
| virtual void | drawMeterBars (juce::Graphics &, MeterFlags meterType, juce::Rectangle< float > bounds, const LevelMeterSource *source, int fixedNumChannels=-1, int selectedChannel=-1)=0 |
| | This is called to draw the actual numbers and bars on top of the static background.
|
| |
| virtual void | drawMeterBarsBackground (juce::Graphics &, MeterFlags meterType, juce::Rectangle< float > bounds, int numChannels, int fixedNumChannels=-1)=0 |
| | This draws the static background of the whole level meter group with all channels.
|
| |
| virtual void | drawMeterChannel (juce::Graphics &, MeterFlags meterType, juce::Rectangle< float > bounds, const LevelMeterSource *source, int selectedChannel)=0 |
| | This draws a group of informations representing one channel.
|
| |
| virtual void | drawMeterChannelBackground (juce::Graphics &, MeterFlags meterType, juce::Rectangle< float > bounds)=0 |
| | This draws the static backgrounds representing one channel.
|
| |
| virtual void | drawMeterBar (juce::Graphics &, MeterFlags meterType, juce::Rectangle< float > bounds, float rms, const float peak)=0 |
| | This callback draws the actual level bar.
|
| |
| virtual void | drawMeterReduction (juce::Graphics &g, foleys::LevelMeter::MeterFlags meterType, juce::Rectangle< float > bounds, float reduction)=0 |
| | This callback draws an reduction from top.
|
| |
| virtual void | drawMeterBarBackground (juce::Graphics &, MeterFlags meterType, juce::Rectangle< float > bounds)=0 |
| | This draws the background for the actual level bar.
|
| |
| virtual void | drawTickMarks (juce::Graphics &, MeterFlags meterType, juce::Rectangle< float > bounds)=0 |
| | This draws the tickmarks for the level scale.
|
| |
| virtual void | drawClipIndicator (juce::Graphics &, MeterFlags meterType, juce::Rectangle< float > bounds, bool hasClipped)=0 |
| | This callback draws the clip indicator.
|
| |
| virtual void | drawClipIndicatorBackground (juce::Graphics &, MeterFlags meterType, juce::Rectangle< float > bounds)=0 |
| | This draws the background for the clip indicator LED.
|
| |
| virtual juce::Rectangle< float > | getMeterMaxNumberBounds (juce::Rectangle< float > bounds, MeterFlags meterType) const =0 |
| | Override this callback to define the placement of the max level.
|
| |
| virtual void | drawMaxNumber (juce::Graphics &, MeterFlags meterType, juce::Rectangle< float > bounds, float maxGain)=0 |
| | This callback draws the number of maximum level.
|
| |
| virtual void | drawMaxNumberBackground (juce::Graphics &, MeterFlags meterType, juce::Rectangle< float > bounds)=0 |
| | This draws the background for the maximum level display.
|
| |
| virtual int | hitTestClipIndicator (juce::Point< int > position, MeterFlags meterType, juce::Rectangle< float > bounds, const LevelMeterSource *source) const =0 |
| | This is called by the frontend to check, if the clip indicator was clicked (e.g.
|
| |
| virtual int | hitTestMaxNumber (juce::Point< int > position, MeterFlags meterType, juce::Rectangle< float > bounds, const LevelMeterSource *source) const =0 |
| | This is called by the frontend to check, if the maximum level number was clicked (e.g.
|
| |
These methods define a interface for the LookAndFeel class of juce.
The LevelMeter needs a LookAndFeel, that implements these methods. There is a default implementation to be included in your custom LookAndFeel class,
- See also
- LookAndFeelMethods.h