Gnash
0.8.11dev
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
libcore
MouseButtonState.h
Go to the documentation of this file.
1
// Thatcher Ulrich <tu@tulrich.com> 2003
2
3
// This source code has been donated to the Public Domain. Do
4
// whatever you want with it.
5
6
7
#ifndef GNASH_MOUSE_BUTTON_STATE_H
8
#define GNASH_MOUSE_BUTTON_STATE_H
9
10
#include "
InteractiveObject.h
"
11
12
// Forward declarations
13
namespace
gnash {
14
class
MovieClip;
15
}
16
17
namespace
gnash {
18
20
struct
MouseButtonState
21
{
22
23
public
:
24
26
InteractiveObject
*
activeEntity
;
27
29
InteractiveObject
*
topmostEntity
;
30
32
bool
wasDown
;
33
35
bool
isDown
;
36
38
bool
wasInsideActiveEntity
;
39
40
MouseButtonState
()
41
:
42
activeEntity
(0),
43
topmostEntity
(0),
44
wasDown
(false),
45
isDown
(false),
46
wasInsideActiveEntity
(false)
47
{
48
}
49
51
void
markReachableResources
()
const
{
52
if
(
activeEntity
)
activeEntity
->
setReachable
();
53
if
(
topmostEntity
)
topmostEntity
->
setReachable
();
54
}
55
};
56
57
}
// end namespace gnash
58
59
60
#endif // GNASH_MOUSE_BUTTON_STATE_H
61
62
63
// Local Variables:
64
// mode: C++
65
// c-basic-offset: 8
66
// tab-width: 8
67
// indent-tabs-mode: nil
68
// End:
Generated on Tue Jan 28 2014 17:18:07 for Gnash by
1.8.4