Provide forward-compatible {Left,Middle,Right}IsDown() accessors.

Allow using the same code using XXXIsDown() to work with both 2.8 and 2.9
without provoking deprecation warnings with the latter for XXXDown().

Closes #11382.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-11-03 14:11:30 +00:00
parent a24cdadaf7
commit 3900ddc6a0
2 changed files with 7 additions and 0 deletions

View File

@@ -229,6 +229,12 @@ public:
bool MiddleDown() { return m_middleDown; }
bool RightDown() { return m_rightDown; }
#if wxABI_VERSION >= 20811
bool LeftIsDown() { return m_leftDown; }
bool MiddleIsDown() { return m_middleDown; }
bool RightIsDown() { return m_rightDown; }
#endif // wx >= 2.8.11
bool ControlDown() { return m_controlDown; }
bool ShiftDown() { return m_shiftDown; }
bool AltDown() { return m_altDown; }

View File

@@ -33,6 +33,7 @@
*wxDC*SetDeviceClippingRegion*;
*wxGraphicsContext*GetCairoRenderer*;
*wxIconizeEvent*IsIconized*;
*wxMouseState*IsDown*;
*wxRichTextCtrl*GetContextMenu*;
*wxRichTextCtrl*SetContextMenu*;
*wxShowEvent*IsShown*;