TDME2
1.9.121
src
tdme
gui
events
GUIFocusListener.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
/**
10
* GUI focus listener interface
11
* @author Andreas Drewke
12
* @version $Id$
13
*/
14
struct
tdme::gui::events::GUIFocusListener
15
{
16
17
/**
18
* Destructor
19
*/
20
virtual
~GUIFocusListener
() {}
21
22
/**
23
* On focus
24
* @param node node
25
*/
26
virtual
void
onFocus
(
GUIElementNode
* node) = 0;
27
28
/**
29
* On unfocus
30
* @param node node
31
*/
32
virtual
void
onUnfocus
(
GUIElementNode
* node) = 0;
33
34
};
tdme::gui::nodes::GUIElementNode
GUI element node.
Definition:
GUIElementNode.h:38
fwd-tdme.h
fwd-tdme.h
tdme::gui::events::GUIFocusListener
GUI focus listener interface.
Definition:
GUIFocusListener.h:15
tdme::gui::events::GUIFocusListener::onUnfocus
virtual void onUnfocus(GUIElementNode *node)=0
On unfocus.
tdme::gui::events::GUIFocusListener::onFocus
virtual void onFocus(GUIElementNode *node)=0
On focus.
tdme::gui::events::GUIFocusListener::~GUIFocusListener
virtual ~GUIFocusListener()
Destructor.
Definition:
GUIFocusListener.h:20
tdme.h
Generated by
1.9.3