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;
+ }
+ }
+ }
};
//---------------------------------------------------------------------------
+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);
long GetKeyCode();
bool HasModifiers();
+ // get the raw key code (platform-dependent)
+ long GetRawKeyCode() const;
+
+ // get the raw key flags (platform-dependent)
+ long GetRawKeyFlags() const;
+
long GetX();
long GetY();
wxPoint GetPosition();
%name(GetPositionTuple) void GetPosition(long* OUTPUT, long* OUTPUT);
- long m_x, m_y;
- long m_keyCode;
- bool m_controlDown;
- bool m_shiftDown;
- bool m_altDown;
- bool m_metaDown;
- bool m_scanCode;
+ long m_x, m_y;
+ long m_keyCode;
+ bool m_controlDown;
+ bool m_shiftDown;
+ bool m_altDown;
+ bool m_metaDown;
+ bool m_scanCode;
+ long m_rawCode;
+ long m_rawFlags;
};
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{
public:
wxMenuEvent(WXTYPE id = 0, int id = 0);
int GetMenuId();
+ bool IsPopup();
};
//---------------------------------------------------------------------------
class wxIconizeEvent: public wxEvent {
public:
- wxIconizeEvent(int id = 0);
+ wxIconizeEvent(int id = 0, bool iconized = TRUE);
+ bool Iconized();
};
//---------------------------------------------------------------------------
}
for (int i=0; i<count; i++) {
+#if wxUSE_UNICODE
+ PyList_SetItem(list, i, PyUnicode_FromUnicode(files[i], files[i].Len()));
+#else
PyList_SetItem(list, i, PyString_FromString((const char*)files[i]));
+#endif
}
return list;
}
};
+//---------------------------------------------------------------------------
+
+class wxDisplayChangedEvent : public wxEvent
+{
+public:
+ wxDisplayChangedEvent();
+};
+
+
//---------------------------------------------------------------------------
class wxPaletteChangedEvent : 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();
+};
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------