X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..77436c4cbac2269e564dc4fcf4494a58feca0af4:/wxPython/src/events.i diff --git a/wxPython/src/events.i b/wxPython/src/events.i index 6ca6f66c18..029e29bdd6 100644 --- a/wxPython/src/events.i +++ b/wxPython/src/events.i @@ -30,7 +30,10 @@ //--------------------------------------------------------------------------- -class wxEvent { + +int wxNewEventType(); + +class wxEvent : public wxObject { public: wxEvent(int id = 0); ~wxEvent(); @@ -75,7 +78,8 @@ class wxCommandEvent : public wxEvent { public: wxCommandEvent(int commandEventType = 0, int id = 0); - bool Checked(); + bool IsChecked(); + %name(Checked)bool IsChecked(); long GetExtraLong(); int GetInt(); int GetSelection(); @@ -155,6 +159,22 @@ public: 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; }; //--------------------------------------------------------------------------- @@ -176,6 +196,15 @@ public: 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; + }; //--------------------------------------------------------------------------- @@ -262,7 +291,8 @@ public: class wxIconizeEvent: public wxEvent { public: - wxIconizeEvent(int id = 0); + wxIconizeEvent(int id = 0, bool iconized = TRUE); + bool Iconized(); }; //--------------------------------------------------------------------------- @@ -364,6 +394,7 @@ class wxNotifyEvent : public wxCommandEvent { public: wxNotifyEvent(int commandType = wxEVT_NULL, int id = 0); bool IsAllowed(); + void Allow(); void Veto(); }; @@ -415,6 +446,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(); +}; //--------------------------------------------------------------------------- //---------------------------------------------------------------------------