added wxMouseState::GetPosition(), for consistency with wxMouseEvent

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-04-18 01:51:04 +00:00
parent 6e3515377c
commit e38ce1bcbf
2 changed files with 3 additions and 1 deletions

View File

@@ -224,6 +224,7 @@ public:
wxCoord GetX() const { return m_x; } wxCoord GetX() const { return m_x; }
wxCoord GetY() const { return m_y; } wxCoord GetY() const { return m_y; }
wxPoint GetPosition() const { return wxPoint(m_x, m_y); }
bool LeftDown() const { return m_leftDown; } bool LeftDown() const { return m_leftDown; }
bool MiddleDown() const { return m_middleDown; } bool MiddleDown() const { return m_middleDown; }

View File

@@ -104,9 +104,10 @@ class wxMouseState
public: public:
/// Returns X coordinate of the physical mouse event position. /// Returns X coordinate of the physical mouse event position.
wxCoord GetX() const; wxCoord GetX() const;
/// Returns Y coordinate of the physical mouse event position. /// Returns Y coordinate of the physical mouse event position.
wxCoord GetY() const; wxCoord GetY() const;
/// Returns the physical mouse position.
wxPoint GetPosition() const;
/// Returns @true if the left mouse button changed to down. /// Returns @true if the left mouse button changed to down.
bool LeftDown() const; bool LeftDown() const;