TDME2
1.9.121
src
tdme
gui
events
GUIContextMenuRequestListener.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 context menu request listener
11
* @author Andreas Drewke
12
* @version $Id$
13
*/
14
struct
tdme::gui::events::GUIContextMenuRequestListener
15
{
16
/**
17
* Destructor
18
*/
19
virtual
~GUIContextMenuRequestListener
() {}
20
21
/**
22
* On mouse over
23
* @param node node
24
* @param mouseX unscaled mouse X position
25
* @param mouseY unscaled mouse Y position
26
*/
27
virtual
void
onContextMenuRequested
(
GUIElementNode
* node,
int
mouseX,
int
mouseY) = 0;
28
};
tdme::gui::nodes::GUIElementNode
GUI element node.
Definition:
GUIElementNode.h:38
fwd-tdme.h
fwd-tdme.h
tdme::gui::events::GUIContextMenuRequestListener
GUI context menu request listener.
Definition:
GUIContextMenuRequestListener.h:15
tdme::gui::events::GUIContextMenuRequestListener::~GUIContextMenuRequestListener
virtual ~GUIContextMenuRequestListener()
Destructor.
Definition:
GUIContextMenuRequestListener.h:19
tdme::gui::events::GUIContextMenuRequestListener::onContextMenuRequested
virtual void onContextMenuRequested(GUIElementNode *node, int mouseX, int mouseY)=0
On mouse over.
tdme.h
Generated by
1.9.3