MyGUI
3.2.1
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
mygui
MyGUIEngine
include
MyGUI_MouseButton.h
Go to the documentation of this file.
1
/*
2
* This source file is part of MyGUI. For the latest info, see http://mygui.info/
3
* Distributed under the MIT License
4
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5
*/
6
7
#ifndef __MYGUI_MOUSE_BUTTON_H__
8
#define __MYGUI_MOUSE_BUTTON_H__
9
10
#include "
MyGUI_Prerequest.h
"
11
12
namespace
MyGUI
13
{
14
15
struct
MYGUI_EXPORT
MouseButton
16
{
17
enum
Enum
18
{
19
None = -1,
20
21
Left
= 0,
22
Right
,
23
Middle
,
24
25
Button0 = 0,
26
Button1
,
27
Button2
,
28
Button3
,
29
Button4
,
30
Button5
,
31
Button6
,
32
Button7
,
33
MAX
34
};
35
36
MouseButton
(
Enum
_value = None) :
37
mValue(_value)
38
{
39
}
40
41
friend
bool
operator ==
(
MouseButton
const
& a,
MouseButton
const
& b)
42
{
43
return
a.mValue == b.mValue;
44
}
45
46
friend
bool
operator !=
(
MouseButton
const
& a,
MouseButton
const
& b)
47
{
48
return
a.mValue != b.mValue;
49
}
50
51
int
getValue()
const
52
{
53
return
mValue;
54
}
55
56
private
:
57
Enum
mValue;
58
};
59
60
}
// namespace MyGUI
61
62
#endif // __MYGUI_MOUSE_BUTTON_H__
Generated on Wed Aug 20 2014 00:03:33 for MyGUI by
1.8.3.1