VSTGUI  4.2
Graphical User Interface Framework not only for VST plugins
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
CVSTGUITimer Class Reference

A timer class, which posts timer messages to CBaseObjects. More...

+ Inheritance diagram for CVSTGUITimer:
+ Collaboration diagram for CVSTGUITimer:

Public Member Functions

 CVSTGUITimer (CBaseObject *timerObject, int32_t fireTime=100)
 
virtual bool start ()
 starts the timer More...
 
virtual bool stop ()
 stops the timer, returns wheather timer was running or not More...
 
virtual bool setFireTime (int32_t newFireTime)
 in milliseconds More...
 
int32_t getFireTime () const
 in milliseconds More...
 
virtual bool isTypeOf (IdStringPtr s) const
 
virtual CBaseObjectnewCopy () const
 
Reference Counting Methods
virtual void forget ()
 decrease refcount and delete object if refcount == 0 More...
 
virtual void remember ()
 increase refcount More...
 
virtual int32_t getNbReference () const
 get refcount More...
 
Message Methods
virtual CMessageResult notify (CBaseObject *sender, IdStringPtr message)
 

Static Public Attributes

static IdStringPtr kMsgTimer = "timer fired"
 message string posted to CBaseObject's notify method More...
 

Protected Member Functions

 ~CVSTGUITimer ()
 

Protected Attributes

int32_t fireTime
 
CBaseObjecttimerObject
 
void * platformTimer
 

Detailed Description

A timer class, which posts timer messages to CBaseObjects.

Constructor & Destructor Documentation

CVSTGUITimer ( CBaseObject timerObject,
int32_t  fireTime = 100 
)
~CVSTGUITimer ( )
protected

+ Here is the call graph for this function:

Member Function Documentation

virtual void forget ( )
inlinevirtualinherited

decrease refcount and delete object if refcount == 0

int32_t getFireTime ( ) const
inline

in milliseconds

virtual int32_t getNbReference ( ) const
inlinevirtualinherited

get refcount

virtual bool isTypeOf ( IdStringPtr  s) const
inlinevirtual
virtual CBaseObject* newCopy ( ) const
inlinevirtual
virtual void remember ( )
inlinevirtualinherited

increase refcount

+ Here is the caller graph for this function:

bool setFireTime ( int32_t  newFireTime)
virtual

in milliseconds

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool start ( )
virtual

starts the timer

+ Here is the caller graph for this function:

bool stop ( )
virtual

stops the timer, returns wheather timer was running or not

+ Here is the caller graph for this function:

Member Data Documentation

int32_t fireTime
protected
IdStringPtr kMsgTimer = "timer fired"
static

message string posted to CBaseObject's notify method

void* platformTimer
protected
CBaseObject* timerObject
protected

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