WINDEX
|
Generate events at regularly timed intervals. More...
#include <wex.h>
Public Member Functions | |
timer (gui &g, int intervalmsecs, int id=1) | |
CTOR. More... | |
Generate events at regularly timed intervals.
myDriveTimer = new wex::timer( fm, 50 ); fm.events().timer([this](int id) { ... code to run when timer event occurs ... });
|
inline |
CTOR.
[in] | g | gui element that will receive the events |
[in] | intervalmsecs | time between events |
[in] | id | number |
The events will begin immediatly on construction and stop on destruction - don't let the timer go out of scope!
The id number will be passed as a parameter to the event handler