Video display and composing engine for JUCE
Loading...
Searching...
No Matches
LevelMeterLookAndFeel Class Reference

Convenience LookAndFeel which derives from LookAndFeel_V3 and LevelMeter::LookAndFeelMethods. More...

#include <LevelMeterLookAndFeel.h>

+ Inheritance diagram for LevelMeterLookAndFeel:

Public Member Functions

 LevelMeterLookAndFeel ()
 
virtual ~LevelMeterLookAndFeel () override
 
- Public Member Functions inherited from LevelMeter::LookAndFeelMethods
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.
 
- Public Member Functions inherited from StereoFieldComponent::LookAndFeelMethods
virtual ~LookAndFeelMethods ()
 
virtual void setupDefaultStereoFieldColours ()=0
 
virtual void drawGonioBackground (juce::Graphics &g, juce::Rectangle< float > bounds, float margin, float border)=0
 
virtual void drawGonioMeter (juce::Graphics &g, juce::Rectangle< float > bounds, const StereoFieldBuffer< float > &stereoBuffer, int leftIdx, int rightIdx)=0
 
virtual void drawStereoFieldBackground (juce::Graphics &g, juce::Rectangle< float > bounds, float margin, float border)=0
 
virtual void drawStereoField (juce::Graphics &g, juce::Rectangle< float > bounds, const StereoFieldBuffer< float > &, int leftIdx=0, int rightIdx=1)=0
 

Detailed Description

Convenience LookAndFeel which derives from LookAndFeel_V3 and LevelMeter::LookAndFeelMethods.

This is the shortcut, to get a component going without inheriting any LookAndFeel class. If you write your own LookAndFeel, you can include ff_meters_LookAndFeelMethods.h inside your LookAndFeel:

class MyLookAndFeel : public LookAndFeel_V4, LevelMeter::LookAndFeelMethods
{
public:
#include "ff_meters_LookAndFeelMethods.h"
// ...
};
These methods define a interface for the LookAndFeel class of juce.
Definition LevelMeter.h:98

Constructor & Destructor Documentation

◆ LevelMeterLookAndFeel()

◆ ~LevelMeterLookAndFeel()

virtual ~LevelMeterLookAndFeel ( )
overridevirtual

The documentation for this class was generated from the following file: