fixed wxMOUSE_BTN_XXX values, use them instead of hard coded constants

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-10-03 22:22:59 +00:00
parent 851d4ac7fa
commit 3e89999c1a
2 changed files with 81 additions and 57 deletions

View File

@@ -660,10 +660,10 @@ private:
enum
{
wxMOUSE_BTN_ANY = -1,
wxMOUSE_BTN_NONE = -1,
wxMOUSE_BTN_LEFT = 0,
wxMOUSE_BTN_MIDDLE = 1,
wxMOUSE_BTN_RIGHT = 2
wxMOUSE_BTN_NONE = 0,
wxMOUSE_BTN_LEFT = 1,
wxMOUSE_BTN_MIDDLE = 2,
wxMOUSE_BTN_RIGHT = 3
};
class WXDLLIMPEXP_CORE wxMouseEvent : public wxEvent
@@ -676,19 +676,19 @@ public:
// Was it a button event? (*doesn't* mean: is any button *down*?)
bool IsButton() const { return Button(wxMOUSE_BTN_ANY); }
// Was it a down event from button 1, 2 or 3 or any?
// Was it a down event from this (or any) button?
bool ButtonDown(int but = wxMOUSE_BTN_ANY) const;
// Was it a dclick event from button 1, 2 or 3 or any?
// Was it a dclick event from this (or any) button?
bool ButtonDClick(int but = wxMOUSE_BTN_ANY) const;
// Was it a up event from button 1, 2 or 3 or any?
// Was it a up event from this (or any) button?
bool ButtonUp(int but = wxMOUSE_BTN_ANY) const;
// Was the given button 1,2,3 or any changing state?
// Was the given button?
bool Button(int but) const;
// Was the given button 1,2,3 or any in Down state?
// Was the given button in Down state?
bool ButtonIsDown(int but) const;
// Get the button which is changing state (wxMOUSE_BTN_NONE if none)