-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathGUIEvent.cpp
More file actions
92 lines (69 loc) · 2.65 KB
/
GUIEvent.cpp
File metadata and controls
92 lines (69 loc) · 2.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
//////////////////////////////////////////////////////////////////////////////////////////
// File: GUIEvent.h
//////////////////////////////////////////////////////////////////////////////////////////
// Description: GUIEvent class
// Project: GUI Library
// Author(s): Jason Boettcher
// jackal@shplorb.com
// www.shplorb.com/~jackal
//////////////////////////////////////////////////////////////////////////////////////////
// Inclusions of header files
#include "GUI.h"
using namespace RTE;
//////////////////////////////////////////////////////////////////////////////////////////
// Constructor: GUIEvent
//////////////////////////////////////////////////////////////////////////////////////////
// Description: Constructor method used to instantiate a GUIEvent object in system
// memory.
GUIEvent::GUIEvent()
{
m_Control = 0;
m_Type = 0;
m_Msg = 0;
m_Data = 0;
}
//////////////////////////////////////////////////////////////////////////////////////////
// Constructor: GUIEvent
//////////////////////////////////////////////////////////////////////////////////////////
// Description: Constructor method used to instantiate a GUIEvent object in system
// memory.
GUIEvent::GUIEvent(GUIControl *Control, int Type, int Msg, int Data)
{
assert(Control);
m_Control = Control;
m_Type = Type;
m_Msg = Msg;
m_Data = Data;
}
//////////////////////////////////////////////////////////////////////////////////////////
// Method: GetType
//////////////////////////////////////////////////////////////////////////////////////////
// Description: Gets the event type
int GUIEvent::GetType(void)
{
return m_Type;
}
//////////////////////////////////////////////////////////////////////////////////////////
// Method: GetControl
//////////////////////////////////////////////////////////////////////////////////////////
// Description: Gets the event control.
GUIControl *GUIEvent::GetControl(void)
{
return m_Control;
}
//////////////////////////////////////////////////////////////////////////////////////////
// Method: GetMsg
//////////////////////////////////////////////////////////////////////////////////////////
// Description: Gets the msg.
int GUIEvent::GetMsg(void)
{
return m_Msg;
}
//////////////////////////////////////////////////////////////////////////////////////////
// Method: GetData
//////////////////////////////////////////////////////////////////////////////////////////
// Description: Gets the data.
int GUIEvent::GetData(void)
{
return m_Data;
}