JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::ProgressBar::LookAndFeelMethods Struct Referenceabstract

This abstract base class is implemented by LookAndFeel classes. More...

#include <juce_ProgressBar.h>

Inheritance diagram for juce::ProgressBar::LookAndFeelMethods:

Public Member Functions

virtual ~LookAndFeelMethods ()
 
virtual void drawProgressBar (Graphics &, ProgressBar &, int width, int height, double progress, const String &textToShow)=0
 Draws a progress bar. More...
 
virtual bool isProgressBarOpaque (ProgressBar &)=0
 

Detailed Description

This abstract base class is implemented by LookAndFeel classes.

Constructor & Destructor Documentation

◆ ~LookAndFeelMethods()

virtual juce::ProgressBar::LookAndFeelMethods::~LookAndFeelMethods ( )
inlinevirtual

Member Function Documentation

◆ drawProgressBar()

virtual void juce::ProgressBar::LookAndFeelMethods::drawProgressBar ( Graphics ,
ProgressBar ,
int  width,
int  height,
double  progress,
const String textToShow 
)
pure virtual

Draws a progress bar.

If the progress value is less than 0 or greater than 1.0, this should draw a spinning bar that fills the whole space (i.e. to say that the app is still busy but the progress isn't known). It can use the current time as a basis for playing an animation.

(Used by progress bars in AlertWindow).

Implemented in juce::LookAndFeel_V4, juce::LookAndFeel_V2, and juce::LookAndFeel_V1.

◆ isProgressBarOpaque()

virtual bool juce::ProgressBar::LookAndFeelMethods::isProgressBarOpaque ( ProgressBar )
pure virtual

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