Samchon Framework for CPP  1.0.0
Event.cpp
1 #include <samchon/library/Event.hpp>
2 #include <samchon/library/EventDispatcher.hpp>
3 using namespace samchon::library;
4 
5 Event::Event(EventDispatcher *source, int type)
6 {
7  this->source = source;
8  this->type = type;
9 }
10 
12 {
13  return source;
14 }
15 auto Event::getType() const -> int
16 {
17  return type;
18 }
auto getSource() const -> EventDispatcher *
Get source of the Event.
Definition: Event.cpp:11
auto getType() const -> int
Get type of the Event.
Definition: Event.cpp:15
Package of libraries.
Definition: library.hpp:84
Event(EventDispatcher *, int)
Construct from source and type.
Definition: Event.cpp:5
EventDispatcher * source
Source of the event.
Definition: Event.hpp:56
int type
Type of the event.
Definition: Event.hpp:61
Abstract class for dispatching Event.