X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aa767a452107db3fcc5773a8955927b059ccf945..472eec8a0391538e4dcf7f7c6c4f4d44c8383616:/include/wx/event.h diff --git a/include/wx/event.h b/include/wx/event.h index 4fc87804d0..d63a1140ee 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -694,7 +694,7 @@ class WXDLLIMPEXP_CORE wxMouseEvent : public wxEvent { public: wxMouseEvent(wxEventType mouseType = wxEVT_NULL); - wxMouseEvent(const wxMouseEvent& event) : wxEvent(event) + wxMouseEvent(const wxMouseEvent& event) : wxEvent(event) { Assign(event); } // Was it a button event? (*doesn't* mean: is any button *down*?) @@ -777,6 +777,10 @@ public: // True if the mouse is just leaving the window bool Leaving() const { return (m_eventType == wxEVT_LEAVE_WINDOW); } + // Returns the number of mouse clicks associated with this event. + int GetClickCount() const { return m_clickCount; } + + // Find the position of the event void GetPosition(wxCoord *xpos, wxCoord *ypos) const { @@ -850,6 +854,8 @@ public: bool m_altDown; bool m_metaDown; + int m_clickCount; + int m_wheelAxis; int m_wheelRotation; int m_wheelDelta;