TDME2
1.9.121
src
tdme
gui
events
GUIActionListener.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
tdme/tdme.h
>
4
#include <
tdme/gui/events/fwd-tdme.h
>
5
#include <
tdme/gui/nodes/fwd-tdme.h
>
6
7
using
tdme::gui::nodes::GUIElementNode
;
8
9
namespace
tdme
{
10
namespace
gui {
11
namespace
events {
12
enum
GUIActionListenerType
{
13
PERFORMED
,
14
PERFORMING
15
};
16
}
17
}
18
}
19
20
/**
21
* GUI action listener interface
22
* @author Andreas Drewke
23
* @version $Id$
24
*/
25
struct
tdme::gui::events::GUIActionListener
26
{
27
/**
28
* Destructor
29
*/
30
virtual
~GUIActionListener
() {}
31
32
/**
33
* On action performed
34
* @param type type
35
* @param node element node
36
*/
37
virtual
void
onActionPerformed
(
GUIActionListenerType
type,
GUIElementNode
* node) = 0;
38
};
tdme::gui::nodes::GUIElementNode
GUI element node.
Definition:
GUIElementNode.h:38
fwd-tdme.h
fwd-tdme.h
tdme::gui::events::GUIActionListenerType
GUIActionListenerType
Definition:
GUIActionListener.h:12
tdme::gui::events::PERFORMING
@ PERFORMING
Definition:
GUIActionListener.h:14
tdme::gui::events::PERFORMED
@ PERFORMED
Definition:
GUIActionListener.h:13
tdme
Definition:
fwd-tdme.h:4
tdme::gui::events::GUIActionListener
GUI action listener interface.
Definition:
GUIActionListener.h:26
tdme::gui::events::GUIActionListener::~GUIActionListener
virtual ~GUIActionListener()
Destructor.
Definition:
GUIActionListener.h:30
tdme::gui::events::GUIActionListener::onActionPerformed
virtual void onActionPerformed(GUIActionListenerType type, GUIElementNode *node)=0
On action performed.
tdme.h
Generated by
1.9.3