40 void setInterval(
int milliseconds, std::function<
void()> toWrap, std::function<
void(
TimerHandle&&)> callback);
52 void setTimeout(
int milliseconds, std::function<
void()> toWrap, std::function<
void(
TimerHandle)> callback);
bool hasActiveTimer() const
Definition: timer.cpp:44
~TimerHandle()
Definition: timer.cpp:16
TimerHandle & operator=(const TimerHandle &)=delete
TimerHandle()
Definition: timer.cpp:8
TimerHandle(const TimerHandle &)=delete
void stop()
Definition: timer.cpp:34
Definition: file_dialog.hpp:6
void setTimeout(int milliseconds, std::function< void()> toWrap, std::function< void(TimerHandle)> callback)
Creates a new delayed function that calls "toWrap" after "milliseconds" milliseconds.
Definition: timer.cpp:60
void setInterval(int milliseconds, std::function< void()> toWrap, std::function< void(TimerHandle &&)> callback)
Creates a new timer that calls "toWrap" every "milliseconds" milliseconds.
Definition: timer.cpp:49