OpenShot Library | OpenShotAudio 0.2.2
juce::MultiTimerCallback Struct Reference
+ Inheritance diagram for juce::MultiTimerCallback:

Public Member Functions

 MultiTimerCallback (const int tid, MultiTimer &mt) noexcept
 
void timerCallback () override
 The user-defined callback routine that actually gets called periodically. More...
 
- Public Member Functions inherited from juce::Timer
virtual ~Timer ()
 Destructor. More...
 
virtual void timerCallback ()=0
 The user-defined callback routine that actually gets called periodically. More...
 
void startTimer (int intervalInMilliseconds) noexcept
 Starts the timer and sets the length of interval required. More...
 
void startTimerHz (int timerFrequencyHz) noexcept
 Starts the timer with an interval specified in Hertz. More...
 
void stopTimer () noexcept
 Stops the timer. More...
 
bool isTimerRunning () const noexcept
 Returns true if the timer is currently running. More...
 
int getTimerInterval () const noexcept
 Returns the timer's interval. More...
 

Public Attributes

MultiTimerowner
 
const int timerID
 

Additional Inherited Members

- Static Public Member Functions inherited from juce::Timer
static void JUCE_CALLTYPE callAfterDelay (int milliseconds, std::function< void()> functionToCall)
 Invokes a lambda after a given number of milliseconds. More...
 
static void JUCE_CALLTYPE callPendingTimersSynchronously ()
 For internal use only: invokes any timers that need callbacks. More...
 
- Protected Member Functions inherited from juce::Timer
 Timer () noexcept
 Creates a Timer. More...
 
 Timer (const Timer &) noexcept
 Creates a copy of another timer. More...
 

Detailed Description

Definition at line 26 of file juce_MultiTimer.cpp.

Constructor & Destructor Documentation

◆ MultiTimerCallback()

juce::MultiTimerCallback::MultiTimerCallback ( const int  tid,
MultiTimer mt 
)
inlinenoexcept

Definition at line 28 of file juce_MultiTimer.cpp.

Member Function Documentation

◆ timerCallback()

void juce::MultiTimerCallback::timerCallback ( )
inlineoverridevirtual

The user-defined callback routine that actually gets called periodically.

It's perfectly ok to call startTimer() or stopTimer() from within this callback to change the subsequent intervals.

Implements juce::Timer.

Definition at line 33 of file juce_MultiTimer.cpp.

References juce::MultiTimer::timerCallback().

Member Data Documentation

◆ owner

MultiTimer& juce::MultiTimerCallback::owner

Definition at line 38 of file juce_MultiTimer.cpp.

◆ timerID

const int juce::MultiTimerCallback::timerID

Definition at line 39 of file juce_MultiTimer.cpp.


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