/* * 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 728 "sip/gen/event.sip" #include #line 15 "sip_corewxMaximizeEvent.cpp" #line 40 "sip/gen/object.sip" #include #line 19 "sip_corewxMaximizeEvent.cpp" #line 129 "sip/gen/event.sip" #include #line 22 "sip_corewxMaximizeEvent.cpp" #line 17 "sip/gen/object.sip" #include #line 25 "sip_corewxMaximizeEvent.cpp" #line 84 "sip/gen/object.sip" #include #line 28 "sip_corewxMaximizeEvent.cpp" class sipwxMaximizeEvent : public wxMaximizeEvent { public: sipwxMaximizeEvent(int); sipwxMaximizeEvent(const wxMaximizeEvent&); virtual ~sipwxMaximizeEvent(); /* * There is a protected method for every virtual method visible from * this class. */ protected: wxEvent * Clone(); wxEventCategory GetEventCategory(); wxClassInfo * GetClassInfo(); public: sipSimpleWrapper *sipPySelf; private: sipwxMaximizeEvent(const sipwxMaximizeEvent &); sipwxMaximizeEvent &operator = (const sipwxMaximizeEvent &); char sipPyMethods[3]; }; sipwxMaximizeEvent::sipwxMaximizeEvent(int id): wxMaximizeEvent(id), sipPySelf(0) { memset(sipPyMethods, 0, sizeof (sipPyMethods)); } sipwxMaximizeEvent::sipwxMaximizeEvent(const wxMaximizeEvent& a0): wxMaximizeEvent(a0), sipPySelf(0) { memset(sipPyMethods, 0, sizeof (sipPyMethods)); } sipwxMaximizeEvent::~sipwxMaximizeEvent() { sipCommonDtor(sipPySelf); } wxEvent * sipwxMaximizeEvent::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 sipwxMaximizeEvent::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 * sipwxMaximizeEvent::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); } /* Cast a pointer to a type somewhere in its superclass hierarchy. */ extern "C" {static void *cast_wxMaximizeEvent(void *, const sipTypeDef *);} static void *cast_wxMaximizeEvent(void *ptr, const sipTypeDef *targetType) { void *res; if (targetType == sipType_wxMaximizeEvent) return ptr; if ((res = ((const sipClassTypeDef *)sipType_wxEvent)->ctd_cast((wxEvent *)(wxMaximizeEvent *)ptr,targetType)) != NULL) return res; return NULL; } /* Call the instance's destructor. */ extern "C" {static void release_wxMaximizeEvent(void *, int);} static void release_wxMaximizeEvent(void *sipCppV,int sipState) { if (sipState & SIP_DERIVED_CLASS) delete reinterpret_cast(sipCppV); else delete reinterpret_cast(sipCppV); } extern "C" {static void dealloc_wxMaximizeEvent(sipSimpleWrapper *);} static void dealloc_wxMaximizeEvent(sipSimpleWrapper *sipSelf) { if (sipIsDerived(sipSelf)) reinterpret_cast(sipGetAddress(sipSelf))->sipPySelf = NULL; if (sipIsPyOwned(sipSelf)) { release_wxMaximizeEvent(sipGetAddress(sipSelf),sipSelf->flags); } } extern "C" {static void *init_wxMaximizeEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);} static void *init_wxMaximizeEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr) { sipwxMaximizeEvent *sipCpp = 0; { int id = 0; static const char *sipKwdList[] = { sipName_id, }; if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|i", &id)) { try { sipCpp = new sipwxMaximizeEvent(id); } catch (...) { sipRaiseUnknownException(); return NULL; } sipCpp->sipPySelf = sipSelf; return sipCpp; } } { const wxMaximizeEvent * a0; if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_wxMaximizeEvent, &a0)) { try { sipCpp = new sipwxMaximizeEvent(*a0); } catch (...) { sipRaiseUnknownException(); return NULL; } sipCpp->sipPySelf = sipSelf; return sipCpp; } } return NULL; } /* Define this type's super-types. */ static sipEncodedTypeDef supers_wxMaximizeEvent[] = {{19, 255, 1}}; PyDoc_STRVAR(doc_wxMaximizeEvent, "\1MaximizeEvent(int id=0)\n" "MaximizeEvent(MaximizeEvent)"); sipClassTypeDef sipTypeDef__core_wxMaximizeEvent = { { -1, 0, 0, SIP_TYPE_CLASS, sipNameNr_wxMaximizeEvent, {0} }, { sipNameNr_MaximizeEvent, {0, 0, 1}, 0, 0, 0, 0, 0, 0, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, }, doc_wxMaximizeEvent, -1, -1, supers_wxMaximizeEvent, 0, init_wxMaximizeEvent, 0, 0, #if PY_MAJOR_VERSION >= 3 0, 0, #else 0, 0, 0, 0, #endif dealloc_wxMaximizeEvent, 0, 0, 0, release_wxMaximizeEvent, cast_wxMaximizeEvent, 0, 0, 0 };