WINDEX
Public Member Functions | List of all members
wex::timer Class Reference

Generate events at regularly timed intervals. More...

#include <wex.h>

Public Member Functions

 timer (gui &g, int intervalmsecs, int id=1)
 CTOR. More...
 

Detailed Description

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 ...
});

Constructor & Destructor Documentation

◆ timer()

wex::timer::timer ( gui g,
int  intervalmsecs,
int  id = 1 
)
inline

CTOR.

Parameters
[in]ggui element that will receive the events
[in]intervalmsecstime between events
[in]idnumber

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


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