X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d56cebe7a497773d8753ea2ab874c4445bac18dc..45eb5249574b0f1f50db5e6a7eb5bba43fd99cb9:/wxPython/src/events.i?ds=sidebyside diff --git a/wxPython/src/events.i b/wxPython/src/events.i index 03c1a0d1bb..e6933f8e25 100644 --- a/wxPython/src/events.i +++ b/wxPython/src/events.i @@ -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; + } + } + } }; @@ -446,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(); +}; //--------------------------------------------------------------------------- //---------------------------------------------------------------------------