![]() |
Clapkit
|
Defines a timer that can execute code on a pre-defined interval. More...
#include <ckTimer.h>
Public Member Functions | |
CKTimer () | |
virtual | ~CKTimer () |
bool | Update () |
Let the timer check if its appropriate to run. | |
void | Start () |
void | Stop () |
![]() | |
CKObject () | |
virtual | ~CKObject () |
virtual void | AddHandler (CKEventType type, CKEventHandlerFunc cb) |
virtual void | RemoveHandler (CKEventType type) |
virtual bool | HasHandler (CKEventType type) const |
virtual bool | HandleEvent (const CKEvent &evt) |
virtual void | SetPropertyObserver (CKPropertyObserverFunc cb) |
virtual void | UnsetPropertyObserver () |
virtual void | RaisePropertyChange (const char *propertyName) |
Public Attributes | |
bool | enabled = false |
bool | multiRun = true |
UInt16 | interval = 1000 |
UInt32 | nextRun |
CKTimerCallbackFunc | callback |
void * | userData = nullptr |
CKObject * | owner = nullptr |
CKApp * | app = nullptr |
Additional Inherited Members | |
![]() | |
std::map< CKEventType, CKEventHandlerFunc > | __handlers |
CKPropertyObserverFunc | propertyObserverCB = nullptr |
Defines a timer that can execute code on a pre-defined interval.
CKTimer::CKTimer | ( | ) |
|
virtual |
void CKTimer::Start | ( | ) |
void CKTimer::Stop | ( | ) |
bool CKTimer::Update | ( | ) |
Let the timer check if its appropriate to run.
CKApp* CKTimer::app = nullptr |
CKTimerCallbackFunc CKTimer::callback |
bool CKTimer::enabled = false |
UInt16 CKTimer::interval = 1000 |
bool CKTimer::multiRun = true |
UInt32 CKTimer::nextRun |
CKObject* CKTimer::owner = nullptr |
void* CKTimer::userData = nullptr |