Panda3D
|
00001 // Filename: mouseData.h 00002 // Created by: drose (08Feb99) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef MOUSEDATA_H 00016 #define MOUSEDATA_H 00017 00018 #include "pandabase.h" 00019 00020 #include "modifierButtons.h" 00021 00022 //////////////////////////////////////////////////////////////////// 00023 // Class : MouseData 00024 // Description : Holds the data that might be generated by a 2-d 00025 // pointer input device, such as the mouse in the 00026 // GraphicsWindow. 00027 //////////////////////////////////////////////////////////////////// 00028 class EXPCL_PANDA_PUTIL MouseData { 00029 PUBLISHED: 00030 INLINE MouseData(); 00031 INLINE MouseData(const MouseData ©); 00032 INLINE void operator = (const MouseData ©); 00033 00034 INLINE int get_x() const; 00035 INLINE int get_y() const; 00036 INLINE bool get_in_window() const; 00037 00038 void output(ostream &out) const; 00039 00040 public: 00041 bool _in_window; 00042 int _xpos; 00043 int _ypos; 00044 }; 00045 00046 INLINE ostream &operator << (ostream &out, const MouseData &md); 00047 00048 #include "mouseData.I" 00049 00050 #endif 00051 00052