Corrected event.h for wxKeyEvent/wxMouseEvent, and corresponding docs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-03-02 16:21:27 +00:00
parent 180307dac0
commit 803ef87492
3 changed files with 59 additions and 70 deletions

View File

@@ -517,6 +517,7 @@ public:
bool Leaving() const { return (m_eventType == wxEVT_LEAVE_WINDOW); }
// Find the position of the event
void GetPosition(long *xpos, long *ypos) const { *xpos = m_x; *ypos = m_y; }
void Position(long *xpos, long *ypos) const { *xpos = m_x; *ypos = m_y; }
// Find the position of the event
@@ -575,18 +576,18 @@ public:
bool ShiftDown() const { return m_shiftDown; }
long KeyCode() const { return m_keyCode; }
#if WXWIN_COMPATIBILITY
// Find the position of the event
void Position(float *xpos, float *ypos) const
{ *xpos = (float)m_x; *ypos = (float)m_y; }
void GetPosition(long *xpos, long *ypos) const
{ *xpos = m_x; *ypos = m_y; }
wxPoint GetPosition() const
{ return wxPoint(m_x, m_y); }
// Get X position
float GetX() const { return (float)m_x; }
long GetX() const { return m_x; }
// Get Y position
float GetY() const { return (float)m_y; }
#endif // WXWIN_COMPATIBILITY
long GetY() const { return m_y; }
public:
long m_x;