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:
parent
6e3515377c
commit
e38ce1bcbf
@ -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; }
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user