X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6d26dc89c5e7a421f4f8807728928eee91aa5f7e..b9ac87bc5cbe46227195e32c44e25831f8206e3c:/wxPython/src/events.i?ds=sidebyside diff --git a/wxPython/src/events.i b/wxPython/src/events.i index 5d2bd07da5..aba54b3e45 100644 --- a/wxPython/src/events.i +++ b/wxPython/src/events.i @@ -202,6 +202,21 @@ public: //--------------------------------------------------------------------------- +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); @@ -210,9 +225,9 @@ public: bool MetaDown(); bool AltDown(); bool ShiftDown(); - long KeyCode(); long GetKeyCode(); + %pragma(python) addtoclass = "KeyCode = GetKeyCode" bool HasModifiers(); // get the raw key code (platform-dependent) @@ -392,7 +407,7 @@ public: for (int i=0; i