From 0fc0c3f8115e7f2b624b8ebae59bc3c9d5248e6b Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Mon, 15 Jul 2002 23:24:50 +0000 Subject: [PATCH] inline --- panda/src/putil/mouseData.cxx | 31 ------------------------------- panda/src/putil/mouseData.h | 6 +++--- 2 files changed, 3 insertions(+), 34 deletions(-) diff --git a/panda/src/putil/mouseData.cxx b/panda/src/putil/mouseData.cxx index 58a99f0e21..e9d2375a96 100644 --- a/panda/src/putil/mouseData.cxx +++ b/panda/src/putil/mouseData.cxx @@ -18,7 +18,6 @@ #include "mouseData.h" - //////////////////////////////////////////////////////////////////// // Function: MouseData::Constructor // Access: Public @@ -30,33 +29,3 @@ MouseData() { _xpos = 0; _ypos = 0; } - -//////////////////////////////////////////////////////////////////// -// Function: MouseData::get_x -// Access: Public -// Description: -//////////////////////////////////////////////////////////////////// -int MouseData:: -get_x() const { - return _xpos; -} - -//////////////////////////////////////////////////////////////////// -// Function: MouseData::get_y -// Access: Public -// Description: -//////////////////////////////////////////////////////////////////// -int MouseData:: -get_y() const { - return _ypos; -} - -//////////////////////////////////////////////////////////////////// -// Function: MouseData::get_in_window -// Access: Public -// Description: -//////////////////////////////////////////////////////////////////// -bool MouseData:: -get_in_window() const { - return _in_window; -} diff --git a/panda/src/putil/mouseData.h b/panda/src/putil/mouseData.h index 815b964fba..8ca3c0adeb 100644 --- a/panda/src/putil/mouseData.h +++ b/panda/src/putil/mouseData.h @@ -33,9 +33,9 @@ class EXPCL_PANDA MouseData { PUBLISHED: MouseData(); - int get_x() const; - int get_y() const; - bool get_in_window() const; + INLINE int get_x() const {return _xpos;}; + INLINE int get_y() const {return _ypos;}; + INLINE bool get_in_window() const {return _in_window;}; public: bool _in_window;