00001 // Filename: mouseData.I 00002 // Created by: drose (15Jul02) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Function: MouseData::Constructor 00022 // Access: Published 00023 // Description: 00024 //////////////////////////////////////////////////////////////////// 00025 INLINE MouseData:: 00026 MouseData() { 00027 _in_window = false; 00028 _xpos = 0; 00029 _ypos = 0; 00030 } 00031 00032 //////////////////////////////////////////////////////////////////// 00033 // Function: MouseData::Copy Constructor 00034 // Access: Published 00035 // Description: 00036 //////////////////////////////////////////////////////////////////// 00037 INLINE MouseData:: 00038 MouseData(const MouseData ©) : 00039 _in_window(copy._in_window), 00040 _xpos(copy._xpos), 00041 _ypos(copy._ypos) 00042 { 00043 } 00044 00045 //////////////////////////////////////////////////////////////////// 00046 // Function: MouseData::Copy Assignment Operator 00047 // Access: Published 00048 // Description: 00049 //////////////////////////////////////////////////////////////////// 00050 INLINE void MouseData:: 00051 operator = (const MouseData ©) { 00052 _in_window = copy._in_window; 00053 _xpos = copy._xpos; 00054 _ypos = copy._ypos; 00055 } 00056 00057 //////////////////////////////////////////////////////////////////// 00058 // Function: MouseData::get_x 00059 // Access: Published 00060 // Description: 00061 //////////////////////////////////////////////////////////////////// 00062 INLINE int MouseData:: 00063 get_x() const { 00064 return _xpos; 00065 } 00066 00067 //////////////////////////////////////////////////////////////////// 00068 // Function: MouseData::get_y 00069 // Access: Published 00070 // Description: 00071 //////////////////////////////////////////////////////////////////// 00072 INLINE int MouseData:: 00073 get_y() const { 00074 return _ypos; 00075 } 00076 00077 //////////////////////////////////////////////////////////////////// 00078 // Function: MouseData::get_in_window 00079 // Access: Published 00080 // Description: 00081 //////////////////////////////////////////////////////////////////// 00082 INLINE bool MouseData:: 00083 get_in_window() const { 00084 return _in_window; 00085 }