Panda3D
mouseData.h
1 // Filename: mouseData.h
2 // Created by: drose (08Feb99)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef MOUSEDATA_H
16 #define MOUSEDATA_H
17 
18 #include "pandabase.h"
19 
20 #include "modifierButtons.h"
21 
22 ////////////////////////////////////////////////////////////////////
23 // Class : MouseData
24 // Description : Holds the data that might be generated by a 2-d
25 // pointer input device, such as the mouse in the
26 // GraphicsWindow.
27 ////////////////////////////////////////////////////////////////////
28 class EXPCL_PANDA_PUTIL MouseData {
29 PUBLISHED:
30  INLINE MouseData();
31  INLINE MouseData(const MouseData &copy);
32  INLINE void operator = (const MouseData &copy);
33 
34  INLINE double get_x() const;
35  INLINE double get_y() const;
36  INLINE bool get_in_window() const;
37 
38  void output(ostream &out) const;
39 
40 public:
41  bool _in_window;
42  double _xpos;
43  double _ypos;
44 };
45 
46 INLINE ostream &operator << (ostream &out, const MouseData &md);
47 
48 #include "mouseData.I"
49 
50 #endif
51 
52 
Holds the data that might be generated by a 2-d pointer input device, such as the mouse in the Graphi...
Definition: mouseData.h:28