Fix wxKeyEvent::GetPosition() after the changes of r72207.
Now that the position of wxKeyEvent is initialized on demand, don't use m_x and m_y fields directly but always use GetX() and GetY(). Also improve GetPosition() documentation slightly and mention only the new version, taking wxCoord, in it as the old one, taking long, is provided for compatiblity only. Closes #14987. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1543,11 +1543,15 @@ public:
|
||||
/**
|
||||
Obtains the position (in client coordinates) at which the key was pressed.
|
||||
|
||||
Notice that this position is simply the current mouse pointer position
|
||||
and has no special relationship to the key event itself.
|
||||
Notice that under most platforms this position is simply the current
|
||||
mouse pointer position and has no special relationship to the key event
|
||||
itself.
|
||||
|
||||
@a x and @a y may be @NULL if the corresponding coordinate is not
|
||||
needed.
|
||||
*/
|
||||
wxPoint GetPosition() const;
|
||||
void GetPosition(long* x, long* y) const;
|
||||
void GetPosition(wxCoord* x, wxCoord* y) const;
|
||||
//@}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user