X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/db0ff83efbd6105c04d5ab84c85094e887e97b9a..bffe56c5d19df9926686722fc09ad096afb47633:/wxPython/src/events.i diff --git a/wxPython/src/events.i b/wxPython/src/events.i index c270a652bc..5983169335 100644 --- a/wxPython/src/events.i +++ b/wxPython/src/events.i @@ -193,6 +193,30 @@ public: //--------------------------------------------------------------------------- +class wxMouseCaptureChangedEvent : public wxEvent +{ +public: + wxMouseCaptureChangedEvent(wxWindowID id = 0, wxWindow* gainedCapture = NULL); + wxWindow* GetCapturedWindow() const; +}; + +//--------------------------------------------------------------------------- + +class wxSetCursorEvent : public wxEvent +{ +public: + wxSetCursorEvent(wxCoord x = 0, wxCoord y = 0); + + wxCoord GetX() const; + wxCoord GetY() const; + + void SetCursor(const wxCursor& cursor); + const wxCursor& GetCursor() const; + bool HasCursor() const; +}; + +//--------------------------------------------------------------------------- + class wxKeyEvent: public wxEvent { public: wxKeyEvent(int keyEventType); @@ -487,6 +511,18 @@ public: //--------------------------------------------------------------------------- +class wxContextMenuEvent : public wxCommandEvent +{ +public: + wxContextMenuEvent(wxEventType type = wxEVT_NULL, + wxWindowID id = 0, + const wxPoint& pt = wxDefaultPosition); + const wxPoint& GetPosition(); + void SetPosition(const wxPoint& pos); +}; + +//---------------------------------------------------------------------- + class wxTimerEvent : public wxEvent { public: