GUI
src
EventListener.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2017 by Maciej Wiecierzewski
3
*/
4
5
#include "
EventListener.h
"
6
7
using namespace
gui
;
8
9
EventListener::EventListener
(
Function
function
)
10
{
11
bind
(
function
);
12
}
13
14
void
EventListener::bind
(
Function
&
function
)
15
{
16
func
=
function
;
17
}
18
19
void
EventListener::operator()
(
Event
& event)
20
{
21
func
(event);
22
}
Generated on Sat Feb 11 2017 20:22:31 for GUI by
1.8.13