X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d1679124ae303fb78561ee2b0c56b5831fd0fafe..742fc581e46beca2328551cdaec38c3dfca50cb1:/wxPython/src/events.i?ds=inline diff --git a/wxPython/src/events.i b/wxPython/src/events.i index 3cf5673359..e6933f8e25 100644 --- a/wxPython/src/events.i +++ b/wxPython/src/events.i @@ -33,7 +33,7 @@ int wxNewEventType(); -class wxEvent { +class wxEvent : public wxObject { public: wxEvent(int id = 0); ~wxEvent(); @@ -89,6 +89,18 @@ public: void SetExtraLong(long extraLong); void SetInt(int i); + %addmethods { + PyObject* GetClientData() { + wxPyClientData* data = (wxPyClientData*)self->GetClientObject(); + if (data) { + Py_INCREF(data->m_obj); + return data->m_obj; + } else { + Py_INCREF(Py_None); + return Py_None; + } + } + } }; @@ -291,7 +303,8 @@ public: class wxIconizeEvent: public wxEvent { public: - wxIconizeEvent(int id = 0); + wxIconizeEvent(int id = 0, bool iconized = TRUE); + bool Iconized(); }; //--------------------------------------------------------------------------- @@ -445,6 +458,17 @@ public: int GetInterval(); }; +//--------------------------------------------------------------------------- + +class wxTextUrlEvent : public wxCommandEvent +{ +public: + wxTextUrlEvent(int id, const wxMouseEvent& evtMouse, + long start, long end); + const wxMouseEvent& GetMouseEvent(); + long GetURLStart(); + long GetURLEnd(); +}; //--------------------------------------------------------------------------- //---------------------------------------------------------------------------