Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csTimer Class Reference

Timer is a pseudo-component class which counts time and generates a cscmdTimerPulse command to its parent each time timer crosses bound between two periods. More...

#include <cstimer.h>

Inheritance diagram for csTimer:

csComponent List of all members.

Public Methods

 csTimer (csComponent *iParent, unsigned iPeriod)
 Create timer object: the timer is created in running state.

virtual bool HandleEvent (iEvent &Event)
 Handle external events and generate timeouts.

void Stop ()
 Stop timer.

void Restart ()
 Restart timer from period start point.

void Pause (unsigned iPause)
 Pause for specified time.

bool Running ()
 Check if timer is running.


Detailed Description

Timer is a pseudo-component class which counts time and generates a cscmdTimerPulse command to its parent each time timer crosses bound between two periods.

Timer period can be set either at run time or during object creation. This component is always invisible.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000