1 /*
2 * Interface wrapper code.
3 *
4 * Generated by SIP 4.19.16
5 *
6 * Copyright: (c) 2018 by Total Control Software
7 * License: wxWindows License
8 */
9
10 #include "sipAPI_core.h"
11
12 #include <wx/evtloop.h>
13
14 #include <wx/evtloop.h>
15
16
17 /* Call the instance's destructor. */
18 extern "C" {static void release_wxEventLoopActivator(void *, int);}
release_wxEventLoopActivator(void * sipCppV,int)19 static void release_wxEventLoopActivator(void *sipCppV, int)
20 {
21 Py_BEGIN_ALLOW_THREADS
22
23 delete reinterpret_cast< ::wxEventLoopActivator *>(sipCppV);
24
25 Py_END_ALLOW_THREADS
26 }
27
28
29 extern "C" {static void dealloc_wxEventLoopActivator(sipSimpleWrapper *);}
dealloc_wxEventLoopActivator(sipSimpleWrapper * sipSelf)30 static void dealloc_wxEventLoopActivator(sipSimpleWrapper *sipSelf)
31 {
32 if (sipIsOwnedByPython(sipSelf))
33 {
34 release_wxEventLoopActivator(sipGetAddress(sipSelf), 0);
35 }
36 }
37
38
39 extern "C" {static void *init_type_wxEventLoopActivator(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxEventLoopActivator(sipSimpleWrapper *,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject **,PyObject ** sipParseErr)40 static void *init_type_wxEventLoopActivator(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
41 {
42 ::wxEventLoopActivator *sipCpp = SIP_NULLPTR;
43
44 {
45 ::wxEventLoopBase* loop;
46
47 static const char *sipKwdList[] = {
48 sipName_loop,
49 };
50
51 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J8", sipType_wxEventLoopBase, &loop))
52 {
53 PyErr_Clear();
54
55 Py_BEGIN_ALLOW_THREADS
56 sipCpp = new ::wxEventLoopActivator(loop);
57 Py_END_ALLOW_THREADS
58
59 if (PyErr_Occurred())
60 {
61 delete sipCpp;
62 return SIP_NULLPTR;
63 }
64
65 return sipCpp;
66 }
67 }
68
69 return SIP_NULLPTR;
70 }
71
72 PyDoc_STRVAR(doc_wxEventLoopActivator, "EventLoopActivator(loop)\n"
73 "\n"
74 "Makes an event loop temporarily active.");
75
76
77 sipClassTypeDef sipTypeDef__core_wxEventLoopActivator = {
78 {
79 -1,
80 SIP_NULLPTR,
81 SIP_NULLPTR,
82 SIP_TYPE_CLASS,
83 sipNameNr_wxEventLoopActivator,
84 {SIP_NULLPTR},
85 SIP_NULLPTR
86 },
87 {
88 sipNameNr_EventLoopActivator,
89 {0, 0, 1},
90 0, SIP_NULLPTR,
91 0, SIP_NULLPTR,
92 0, SIP_NULLPTR,
93 {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
94 },
95 doc_wxEventLoopActivator,
96 -1,
97 -1,
98 SIP_NULLPTR,
99 SIP_NULLPTR,
100 init_type_wxEventLoopActivator,
101 SIP_NULLPTR,
102 SIP_NULLPTR,
103 #if PY_MAJOR_VERSION >= 3
104 SIP_NULLPTR,
105 SIP_NULLPTR,
106 #else
107 SIP_NULLPTR,
108 SIP_NULLPTR,
109 SIP_NULLPTR,
110 SIP_NULLPTR,
111 #endif
112 dealloc_wxEventLoopActivator,
113 SIP_NULLPTR,
114 SIP_NULLPTR,
115 SIP_NULLPTR,
116 release_wxEventLoopActivator,
117 SIP_NULLPTR,
118 SIP_NULLPTR,
119 SIP_NULLPTR,
120 SIP_NULLPTR,
121 SIP_NULLPTR,
122 SIP_NULLPTR,
123 SIP_NULLPTR
124 };
125