libpromeki main
PROfessional MEdia toolKIt
 
Loading...
Searching...
No Matches
timerevent.h
Go to the documentation of this file.
1
8#pragma once
9
10#include <promeki/core/event.h>
11
13
22class TimerEvent : public Event {
23 public:
28 TimerEvent(int timerId) : Event(Event::Timer), _timerId(timerId) {}
29
34 int timerId() const { return _timerId; }
35
36 private:
37 int _timerId;
38};
39
Base class for the event system.
Definition event.h:29
static const Type Timer
Event type for TimerEvent.
Definition event.h:47
Event delivered when a timer fires.
Definition timerevent.h:22
int timerId() const
Returns the ID of the timer that fired.
Definition timerevent.h:34
TimerEvent(int timerId)
Constructs a TimerEvent for the given timer.
Definition timerevent.h:28
#define PROMEKI_NAMESPACE_BEGIN
Starts a promeki namespace block.
Definition namespace.h:14
#define PROMEKI_NAMESPACE_END
Ends a promeki namespace block.
Definition namespace.h:19