]> git.saurik.com Git - wxWidgets.git/commitdiff
keep {Left,Middle,Right}Down() methods of wxMouseState which were present in 2.9...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 2 May 2009 13:10:38 +0000 (13:10 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 2 May 2009 13:10:38 +0000 (13:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
include/wx/mousestate.h

index 9de3209663a8b339ffe858f3f887f4f50d898c2f..afe352382e0bb4e044d0db1837bdaf4299360119 100644 (file)
@@ -289,6 +289,9 @@ Deprecated methods and their replacements
   on some ports (e.g. wxGTK).
   You should now create windows placed inside a wxStaticBox as children of
   the static box itself.
+- wxMouseState::{Left,Middle,Right}Down() were renamed to XXXIsDown() for
+  consistency with wxMouseEvent and the old names were deprecated.
+
 
 Major new features in this release
 ----------------------------------
index 7ad3ec4999bc0eedb14eef6384ffc9262cb56738..1e6dc5070d46b48a14683a6268eeb97de9846eef 100644 (file)
@@ -118,6 +118,15 @@ public:
     // this mostly makes sense in the derived classes such as wxMouseEvent
     void SetState(const wxMouseState& state) { *this = state; }
 
+    // these functions are for compatibility only, they were used in 2.8
+    // version of wxMouseState but their names are confusing as wxMouseEvent
+    // has methods with the same names which do something quite different so
+    // don't use them any more
+#ifdef WXWIN_COMPATIBILITY_2_8
+    wxDEPRECATED_INLINE(bool LeftDown() const, return LeftIsDown(); )
+    wxDEPRECATED_INLINE(bool MiddleDown() const, return MiddleIsDown(); )
+    wxDEPRECATED_INLINE(bool RightDown() const, return RightIsDown(); )
+#endif // WXWIN_COMPATIBILITY_2_8
 
     // for compatibility reasons these variables are public as the code using
     // wxMouseEvent often uses them directly -- however they should not be