X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7bf854050fd5c04469d4334524433a31d4ba997a..34e5bea57399f535aaece163f6b9b0cc3fd0c4f1:/utils/wxPython/src/events.i?ds=sidebyside diff --git a/utils/wxPython/src/events.i b/utils/wxPython/src/events.i index f2ae9c056a..254b42e63c 100644 --- a/utils/wxPython/src/events.i +++ b/utils/wxPython/src/events.i @@ -1,5 +1,3 @@ -%module events -%{ ///////////////////////////////////////////////////////////////////////////// // Name: events.i // Purpose: SWIGgable Event classes for wxPython @@ -13,7 +11,11 @@ ///////////////////////////////////////////////////////////////////////////// +%module events + +%{ #include "helpers.h" +#include %} //---------------------------------------------------------------------- @@ -52,12 +54,12 @@ public: class wxCloseEvent : public wxEvent { public: - bool GetSessionEnding(); + void SetLoggingOff(bool loggingOff); bool GetLoggingOff(); void Veto(bool veto = TRUE); + bool CanVeto(); bool GetVeto(); - void SetForce(bool force); - bool GetForce(); + void SetCanVeto(bool canVeto); }; //--------------------------------------------------------------------------- @@ -68,9 +70,8 @@ public: long GetExtraLong(); int GetInt(); int GetSelection(); - char* GetString(); + wxString GetString(); bool IsSelection(); - }; @@ -84,6 +85,13 @@ public: //--------------------------------------------------------------------------- +class wxSpinEvent : public wxScrollEvent { +public: + +}; + +//--------------------------------------------------------------------------- + class wxMouseEvent: public wxEvent { public: bool IsButton(); @@ -128,9 +136,7 @@ public: bool AltDown(); bool ShiftDown(); long KeyCode(); - void Position(float *OUTPUT, float *OUTPUT); - float GetX(); - float GetY(); + }; //--------------------------------------------------------------------------- @@ -284,12 +290,25 @@ public: //--------------------------------------------------------------------------- +class wxPyEvent : public wxCommandEvent { +public: + wxPyEvent(wxEventType commandType = wxEVT_NULL, PyObject* userData = Py_None); + ~wxPyEvent(); -///////////////////////////////////////////////////////////////////////////// -// -// $Log$ -// Revision 1.1 1998/08/09 08:25:50 RD -// Initial version -// -// + void SetUserData(PyObject* userData); + PyObject* GetUserData(); +}; + + + +//--------------------------------------------------------------------------- + +class wxNotifyEvent : public wxCommandEvent { +public: + bool IsAllowed(); + void Veto(); +}; + +//--------------------------------------------------------------------------- +//---------------------------------------------------------------------------