A timer class, which posts timer messages to CBaseObjects. More...
#include <cvstguitimer.h>
Public Member Functions | |
| CVSTGUITimer (CBaseObject *timerObject, int fireTime=100) | |
| virtual | ~CVSTGUITimer () |
| virtual bool | start () |
| starts the timer | |
| virtual bool | stop () |
| stops the timer, returns wheather timer was running or not | |
| virtual bool | setFireTime (int newFireTime) |
| in milliseconds | |
| int | getFireTime () const |
| in milliseconds | |
Reference Counting Methods | |
| virtual void | forget () |
| decrease refcount and delete object if refcount == 0 | |
| virtual void | remember () |
| increase refcount | |
| long | getNbReference () const |
| get refcount | |
Message Methods | |
| virtual CMessageResult | notify (CBaseObject *sender, const char *message) |
Static Public Attributes | |
| static const char * | kMsgTimer = "timer fired" |
| message string posted to CBaseObject's notify method | |
Protected Attributes | |
| int | fireTime |
| CBaseObject * | timerObject |
| void * | platformTimer |
A timer class, which posts timer messages to CBaseObjects.
| CVSTGUITimer | ( | CBaseObject * | timerObject, | |
| int | fireTime = 100 | |||
| ) |
| ~CVSTGUITimer | ( | ) | [virtual] |
| bool start | ( | ) | [virtual] |
starts the timer
| bool stop | ( | ) | [virtual] |
stops the timer, returns wheather timer was running or not
| bool setFireTime | ( | int | newFireTime | ) | [virtual] |
in milliseconds
| int getFireTime | ( | ) | const [inline] |
in milliseconds
| virtual void forget | ( | ) | [inline, virtual, inherited] |
decrease refcount and delete object if refcount == 0
Reimplemented in CDrawContext.
| virtual void remember | ( | ) | [inline, virtual, inherited] |
increase refcount
| long getNbReference | ( | ) | const [inline, inherited] |
get refcount
| virtual CMessageResult notify | ( | CBaseObject * | sender, | |
| const char * | message | |||
| ) | [inline, virtual, inherited] |
Reimplemented in CDataBrowser, CScrollbar, CTooltipSupport, CView, and CViewContainer.
const char * kMsgTimer = "timer fired" [static] |
message string posted to CBaseObject's notify method
int fireTime [protected] |
CBaseObject* timerObject [protected] |
void* platformTimer [protected] |
1.6.3