From: Vadim Zeitlin Date: Fri, 18 Apr 2008 01:51:04 +0000 (+0000) Subject: added wxMouseState::GetPosition(), for consistency with wxMouseEvent X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e38ce1bcbf503df4ea2bc5670bf53dafc9ab5eea added wxMouseState::GetPosition(), for consistency with wxMouseEvent git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/utils.h b/include/wx/utils.h index 2fd8ed4284..0458210efd 100644 --- a/include/wx/utils.h +++ b/include/wx/utils.h @@ -224,6 +224,7 @@ public: wxCoord GetX() const { return m_x; } wxCoord GetY() const { return m_y; } + wxPoint GetPosition() const { return wxPoint(m_x, m_y); } bool LeftDown() const { return m_leftDown; } bool MiddleDown() const { return m_middleDown; } diff --git a/interface/utils.h b/interface/utils.h index 806a04a88a..ff2a1f8ec8 100644 --- a/interface/utils.h +++ b/interface/utils.h @@ -104,9 +104,10 @@ class wxMouseState public: /// Returns X coordinate of the physical mouse event position. wxCoord GetX() const; - /// Returns Y coordinate of the physical mouse event position. wxCoord GetY() const; + /// Returns the physical mouse position. + wxPoint GetPosition() const; /// Returns @true if the left mouse button changed to down. bool LeftDown() const;