/* * Interface wrapper code. * * Generated by SIP 4.12-snapshot-93040d2c716c * * Copyright: (c) 2010 by Total Control Software * License: wxWindows License */ #include "sipAPI_core.h" #line 553 "sip/gen/event.sip" #include #line 15 "sip_corewxIconizeEvent.cpp" #line 40 "sip/gen/object.sip" #include #line 19 "sip_corewxIconizeEvent.cpp" #line 129 "sip/gen/event.sip" #include #line 22 "sip_corewxIconizeEvent.cpp" #line 17 "sip/gen/object.sip" #include #line 25 "sip_corewxIconizeEvent.cpp" #line 84 "sip/gen/object.sip" #include #line 28 "sip_corewxIconizeEvent.cpp" class sipwxIconizeEvent : public wxIconizeEvent { public: sipwxIconizeEvent(int,bool); sipwxIconizeEvent(const wxIconizeEvent&); virtual ~sipwxIconizeEvent(); /* * There is a protected method for every virtual method visible from * this class. */ protected: wxEvent * Clone(); wxEventCategory GetEventCategory(); wxClassInfo * GetClassInfo(); public: sipSimpleWrapper *sipPySelf; private: sipwxIconizeEvent(const sipwxIconizeEvent &); sipwxIconizeEvent &operator = (const sipwxIconizeEvent &); char sipPyMethods[3]; }; sipwxIconizeEvent::sipwxIconizeEvent(int id,bool iconized): wxIconizeEvent(id,iconized), sipPySelf(0) { memset(sipPyMethods, 0, sizeof (sipPyMethods)); } sipwxIconizeEvent::sipwxIconizeEvent(const wxIconizeEvent& a0): wxIconizeEvent(a0), sipPySelf(0) { memset(sipPyMethods, 0, sizeof (sipPyMethods)); } sipwxIconizeEvent::~sipwxIconizeEvent() { sipCommonDtor(sipPySelf); } wxEvent * sipwxIconizeEvent::Clone() { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_Clone); if (!sipMeth) return wxEvent::Clone(); extern wxEvent * sipVH__core_1(sip_gilstate_t,PyObject *); return sipVH__core_1(sipGILState,sipMeth); } wxEventCategory sipwxIconizeEvent::GetEventCategory() { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_GetEventCategory); if (!sipMeth) return wxEvent::GetEventCategory(); extern wxEventCategory sipVH__core_0(sip_gilstate_t,PyObject *); return sipVH__core_0(sipGILState,sipMeth); } wxClassInfo * sipwxIconizeEvent::GetClassInfo() { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_GetClassInfo); if (!sipMeth) return wxObject::GetClassInfo(); extern wxClassInfo * sipVH__core_6(sip_gilstate_t,PyObject *); return sipVH__core_6(sipGILState,sipMeth); } PyDoc_STRVAR(doc_wxIconizeEvent_IsIconized, "IconizeEvent.IsIconized() -> bool"); extern "C" {static PyObject *meth_wxIconizeEvent_IsIconized(PyObject *, PyObject *);} static PyObject *meth_wxIconizeEvent_IsIconized(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; { wxIconizeEvent *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxIconizeEvent, &sipCpp)) { bool sipRes; try { sipRes = sipCpp->IsIconized(); } catch (...) { sipRaiseUnknownException(); return NULL; } return PyBool_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_IconizeEvent, sipName_IsIconized, doc_wxIconizeEvent_IsIconized); return NULL; } PyDoc_STRVAR(doc_wxIconizeEvent_Iconized, "IconizeEvent.Iconized() -> bool"); extern "C" {static PyObject *meth_wxIconizeEvent_Iconized(PyObject *, PyObject *);} static PyObject *meth_wxIconizeEvent_Iconized(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; { wxIconizeEvent *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxIconizeEvent, &sipCpp)) { bool sipRes; try { sipRes = sipCpp->Iconized(); } catch (...) { sipRaiseUnknownException(); return NULL; } return PyBool_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_IconizeEvent, sipName_Iconized, doc_wxIconizeEvent_Iconized); return NULL; } /* Cast a pointer to a type somewhere in its superclass hierarchy. */ extern "C" {static void *cast_wxIconizeEvent(void *, const sipTypeDef *);} static void *cast_wxIconizeEvent(void *ptr, const sipTypeDef *targetType) { void *res; if (targetType == sipType_wxIconizeEvent) return ptr; if ((res = ((const sipClassTypeDef *)sipType_wxEvent)->ctd_cast((wxEvent *)(wxIconizeEvent *)ptr,targetType)) != NULL) return res; return NULL; } /* Call the instance's destructor. */ extern "C" {static void release_wxIconizeEvent(void *, int);} static void release_wxIconizeEvent(void *sipCppV,int sipState) { if (sipState & SIP_DERIVED_CLASS) delete reinterpret_cast(sipCppV); else delete reinterpret_cast(sipCppV); } extern "C" {static void dealloc_wxIconizeEvent(sipSimpleWrapper *);} static void dealloc_wxIconizeEvent(sipSimpleWrapper *sipSelf) { if (sipIsDerived(sipSelf)) reinterpret_cast(sipGetAddress(sipSelf))->sipPySelf = NULL; if (sipIsPyOwned(sipSelf)) { release_wxIconizeEvent(sipGetAddress(sipSelf),sipSelf->flags); } } extern "C" {static void *init_wxIconizeEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);} static void *init_wxIconizeEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr) { sipwxIconizeEvent *sipCpp = 0; { int id = 0; bool iconized = 1; static const char *sipKwdList[] = { sipName_id, sipName_iconized, }; if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|ib", &id, &iconized)) { try { sipCpp = new sipwxIconizeEvent(id,iconized); } catch (...) { sipRaiseUnknownException(); return NULL; } sipCpp->sipPySelf = sipSelf; return sipCpp; } } { const wxIconizeEvent * a0; if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_wxIconizeEvent, &a0)) { try { sipCpp = new sipwxIconizeEvent(*a0); } catch (...) { sipRaiseUnknownException(); return NULL; } sipCpp->sipPySelf = sipSelf; return sipCpp; } } return NULL; } /* Define this type's super-types. */ static sipEncodedTypeDef supers_wxIconizeEvent[] = {{19, 255, 1}}; static PyMethodDef methods_wxIconizeEvent[] = { {SIP_MLNAME_CAST(sipName_Iconized), meth_wxIconizeEvent_Iconized, METH_VARARGS, SIP_MLDOC_CAST(doc_wxIconizeEvent_Iconized)}, {SIP_MLNAME_CAST(sipName_IsIconized), meth_wxIconizeEvent_IsIconized, METH_VARARGS, SIP_MLDOC_CAST(doc_wxIconizeEvent_IsIconized)} }; PyDoc_STRVAR(doc_wxIconizeEvent, "\1IconizeEvent(int id=0, bool iconized=True)\n" "IconizeEvent(IconizeEvent)"); sipClassTypeDef sipTypeDef__core_wxIconizeEvent = { { -1, 0, 0, SIP_TYPE_CLASS, sipNameNr_wxIconizeEvent, {0} }, { sipNameNr_IconizeEvent, {0, 0, 1}, 2, methods_wxIconizeEvent, 0, 0, 0, 0, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, }, doc_wxIconizeEvent, -1, -1, supers_wxIconizeEvent, 0, init_wxIconizeEvent, 0, 0, #if PY_MAJOR_VERSION >= 3 0, 0, #else 0, 0, 0, 0, #endif dealloc_wxIconizeEvent, 0, 0, 0, release_wxIconizeEvent, cast_wxIconizeEvent, 0, 0, 0 };