//---------------------------------------------------------------------------
-class wxEvent {
+
+int wxNewEventType();
+
+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();
};
//---------------------------------------------------------------------------
public:
wxCommandEvent(int commandEventType = 0, int id = 0);
- bool Checked();
+ bool IsChecked();
+ %name(Checked)bool IsChecked();
long GetExtraLong();
int GetInt();
int GetSelection();
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;
+ }
+ }
+ }
};
wxPoint GetLogicalPosition(const wxDC& dc);
long GetX();
long GetY();
+
+ int GetWheelRotation() const { return m_wheelRotation; }
+ int GetWheelDelta() const { return m_wheelDelta; }
+ int GetLinesPerAction() const { return m_linesPerAction; }
+
+ long m_x, m_y;
+ bool m_leftDown;
+ bool m_middleDown;
+ bool m_rightDown;
+ bool m_controlDown;
+ bool m_shiftDown;
+ bool m_altDown;
+ bool m_metaDown;
+ int m_wheelRotation;
+ int m_wheelDelta;
+ int m_linesPerAction;
};
//---------------------------------------------------------------------------
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;
+
};
//---------------------------------------------------------------------------
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{
class wxIconizeEvent: public wxEvent {
public:
- wxIconizeEvent(int id = 0);
+ wxIconizeEvent(int id = 0, bool iconized = TRUE);
+ bool Iconized();
};
//---------------------------------------------------------------------------
public:
wxNotifyEvent(int commandType = wxEVT_NULL, int id = 0);
bool IsAllowed();
+ void Allow();
void Veto();
};
int GetInterval();
};
+//---------------------------------------------------------------------------
+
+class wxTextUrlEvent : public wxCommandEvent
+{
+public:
+ wxTextUrlEvent(int id, const wxMouseEvent& evtMouse,
+ long start, long end);
+ const wxMouseEvent& GetMouseEvent();
+ long GetURLStart();
+ long GetURLEnd();
+};
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------