class wxEvent : public wxObject {
public:
- wxEvent(int id = 0);
+ // wxEvent(int id = 0); // *** This class is now an ABC
~wxEvent();
wxObject* GetEventObject();
void SetId(int id);
void SetTimestamp(long timeStamp);
void Skip(bool skip = TRUE);
+
+ wxEvent *Clone();
};
//---------------------------------------------------------------------------
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;
+ }
+ }
+ }
};
wxFocusEvent(WXTYPE eventType = 0, int id = 0);
};
+//---------------------------------------------------------------------------
+
+// wxChildFocusEvent notifies the parent that a child has got the focus: unlike
+// wxFocusEvent it is propgated upwards the window chain
+class wxChildFocusEvent : public wxCommandEvent
+{
+public:
+ wxChildFocusEvent(wxWindow *win = NULL);
+ wxWindow *GetWindow() const;
+};
+
+
//---------------------------------------------------------------------------
class wxActivateEvent: public wxEvent{
int GetInterval();
};
+//---------------------------------------------------------------------------
+
+class wxTextUrlEvent : public wxCommandEvent
+{
+public:
+ wxTextUrlEvent(int id, const wxMouseEvent& evtMouse,
+ long start, long end);
+ const wxMouseEvent& GetMouseEvent();
+ long GetURLStart();
+ long GetURLEnd();
+};
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------