LMMS
Loading...
Searching...
No Matches
juce::LambdaInvoker Struct Reference
Inheritance diagram for juce::LambdaInvoker:
juce::Timer

Public Member Functions

 LambdaInvoker (int milliseconds, std::function< void()> f)
void timerCallback () override

Public Attributes

std::function< void()> function

Additional Inherited Members

Private Member Functions inherited from juce::Timer
virtual ~Timer ()
void startTimer (int intervalInMilliseconds) noexcept
void startTimerHz (int timerFrequencyHz) noexcept
void stopTimer () noexcept
bool isTimerRunning () const noexcept
int getTimerInterval () const noexcept
 Timer () noexcept
 Timer (const Timer &) noexcept
Static Private Member Functions inherited from juce::Timer
static void JUCE_CALLTYPE callAfterDelay (int milliseconds, std::function< void()> functionToCall)
static void JUCE_CALLTYPE callPendingTimersSynchronously ()

Constructor & Destructor Documentation

◆ LambdaInvoker()

juce::LambdaInvoker::LambdaInvoker ( int milliseconds,
std::function< void()> f )
inline

Member Function Documentation

◆ timerCallback()

void juce::LambdaInvoker::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.

Member Data Documentation

◆ function

std::function<void()> juce::LambdaInvoker::function

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