SDL++
C++wrapperfortheSDLlibrary.

sdl::devices::Timer Class Reference

Represents a timer. More...

#include <Timer.h>

List of all members.

Public Types

typedef unsigned int(* Callback )(unsigned int interval, void *param)
 The Timer callback declaration.

Public Member Functions

 Timer (unsigned int interval, Callback callback, void *param)
 ~Timer ()

Detailed Description

Represents a timer.

class Timer

Definition at line 41 of file Timer.h.


Member Typedef Documentation

unsigned int(* sdl::devices::Timer::Callback)(unsigned int interval, void *param),

The Timer callback declaration.

Parameters:
intervalThe number of milliseconds to delay.
paramThe callback's parameters.
Returns:
The next Timer interval.

Definition at line 52 of file Timer.h.


Constructor & Destructor Documentation

sdl::devices::Timer::Timer ( unsigned int  interval,
Callback  callback,
void *  param 
) [inline]

Constructs a Timer.

Parameters:
intervalThe number of milliseconds to delay.
callbackThe callback to call.
paramThe callback's parameters.

Definition at line 61 of file Timer.h.

sdl::devices::Timer::~Timer ( ) [inline]

Destroy the Timer.

Definition at line 68 of file Timer.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs