1 /*
2 * Module 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_glcanvas.h"
11
12 #include <wx/object.h>
13 #include <wx/glcanvas.h>
14 #include <wx/gdicmn.h>
15 #include <wx/window.h>
16 #include <wx/validate.h>
17 #include <wx/gdicmn.h>
18 #include <wx/event.h>
19
20 /* Define the strings used by this module. */
21 const char sipStrings__glcanvas[] = {
22 'G', 'e', 't', 'M', 'a', 'i', 'n', 'W', 'i', 'n', 'd', 'o', 'w', 'O', 'f', 'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'e', 'C', 'o', 'n', 't', 'r', 'o', 'l', 0,
23 'G', 'e', 't', 'D', 'e', 'f', 'a', 'u', 'l', 't', 'B', 'o', 'r', 'd', 'e', 'r', 'F', 'o', 'r', 'C', 'o', 'n', 't', 'r', 'o', 'l', 0,
24 'G', 'e', 't', 'C', 'l', 'a', 's', 's', 'D', 'e', 'f', 'a', 'u', 'l', 't', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 's', 0,
25 'H', 'a', 's', 'T', 'r', 'a', 'n', 's', 'p', 'a', 'r', 'e', 'n', 't', 'B', 'a', 'c', 'k', 'g', 'r', 'o', 'u', 'n', 'd', 0,
26 'A', 'c', 'c', 'e', 'p', 't', 's', 'F', 'o', 'c', 'u', 's', 'F', 'r', 'o', 'm', 'K', 'e', 'y', 'b', 'o', 'a', 'r', 'd', 0,
27 'A', 'c', 'c', 'e', 'p', 't', 's', 'F', 'o', 'c', 'u', 's', 'R', 'e', 'c', 'u', 'r', 's', 'i', 'v', 'e', 'l', 'y', 0,
28 'T', 'r', 'a', 'n', 's', 'f', 'e', 'r', 'D', 'a', 't', 'a', 'F', 'r', 'o', 'm', 'W', 'i', 'n', 'd', 'o', 'w', 0,
29 'W', 'X', '_', 'G', 'L', '_', 'M', 'I', 'N', '_', 'A', 'C', 'C', 'U', 'M', '_', 'A', 'L', 'P', 'H', 'A', 0,
30 'W', 'X', '_', 'G', 'L', '_', 'M', 'I', 'N', '_', 'A', 'C', 'C', 'U', 'M', '_', 'G', 'R', 'E', 'E', 'N', 0,
31 'I', 's', 'E', 'x', 't', 'e', 'n', 's', 'i', 'o', 'n', 'S', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 0,
32 'W', 'X', '_', 'G', 'L', '_', 'S', 'A', 'M', 'P', 'L', 'E', '_', 'B', 'U', 'F', 'F', 'E', 'R', 'S', 0,
33 'W', 'X', '_', 'G', 'L', '_', 'M', 'I', 'N', '_', 'A', 'C', 'C', 'U', 'M', '_', 'B', 'L', 'U', 'E', 0,
34 'T', 'r', 'a', 'n', 's', 'f', 'e', 'r', 'D', 'a', 't', 'a', 'T', 'o', 'W', 'i', 'n', 'd', 'o', 'w', 0,
35 'S', 'h', 'o', 'u', 'l', 'd', 'I', 'n', 'h', 'e', 'r', 'i', 't', 'C', 'o', 'l', 'o', 'u', 'r', 's', 0,
36 'I', 'n', 'f', 'o', 'r', 'm', 'F', 'i', 'r', 's', 't', 'D', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', 0,
37 'W', 'X', '_', 'G', 'L', '_', 'M', 'I', 'N', 'O', 'R', '_', 'V', 'E', 'R', 'S', 'I', 'O', 'N', 0,
38 'W', 'X', '_', 'G', 'L', '_', 'M', 'A', 'J', 'O', 'R', '_', 'V', 'E', 'R', 'S', 'I', 'O', 'N', 0,
39 'W', 'X', '_', 'G', 'L', '_', 'M', 'I', 'N', '_', 'A', 'C', 'C', 'U', 'M', '_', 'R', 'E', 'D', 0,
40 'D', 'o', 'G', 'e', 't', 'B', 'e', 's', 't', 'C', 'l', 'i', 'e', 'n', 't', 'S', 'i', 'z', 'e', 0,
41 'G', 'e', 't', 'C', 'l', 'i', 'e', 'n', 't', 'A', 'r', 'e', 'a', 'O', 'r', 'i', 'g', 'i', 'n', 0,
42 'I', 's', 'D', 'i', 's', 'p', 'l', 'a', 'y', 'S', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 0,
43 'W', 'X', '_', 'G', 'L', '_', 'C', 'O', 'R', 'E', '_', 'P', 'R', 'O', 'F', 'I', 'L', 'E', 0,
44 'W', 'X', '_', 'G', 'L', '_', 'S', 'T', 'E', 'N', 'C', 'I', 'L', '_', 'S', 'I', 'Z', 'E', 0,
45 'W', 'X', '_', 'G', 'L', '_', 'D', 'O', 'U', 'B', 'L', 'E', 'B', 'U', 'F', 'F', 'E', 'R', 0,
46 'D', 'o', 'S', 'e', 't', 'W', 'i', 'n', 'd', 'o', 'w', 'V', 'a', 'r', 'i', 'a', 'n', 't', 0,
47 'W', 'X', '_', 'G', 'L', '_', 'A', 'U', 'X', '_', 'B', 'U', 'F', 'F', 'E', 'R', 'S', 0,
48 'W', 'X', '_', 'G', 'L', '_', 'B', 'U', 'F', 'F', 'E', 'R', '_', 'S', 'I', 'Z', 'E', 0,
49 'I', 'n', 'h', 'e', 'r', 'i', 't', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 's', 0,
50 'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 'O', 't', 'h', 'e', 'r', 'D', 'i', 'r', 0,
51 'W', 'X', '_', 'G', 'L', '_', 'D', 'E', 'P', 'T', 'H', '_', 'S', 'I', 'Z', 'E', 0,
52 'S', 'e', 'n', 'd', 'D', 'e', 's', 't', 'r', 'o', 'y', 'E', 'v', 'e', 'n', 't', 0,
53 'G', 'e', 't', 'D', 'e', 'f', 'a', 'u', 'l', 't', 'B', 'o', 'r', 'd', 'e', 'r', 0,
54 'W', 'X', '_', 'G', 'L', '_', 'M', 'I', 'N', '_', 'A', 'L', 'P', 'H', 'A', 0,
55 'W', 'X', '_', 'G', 'L', '_', 'M', 'I', 'N', '_', 'G', 'R', 'E', 'E', 'N', 0,
56 'D', 'o', 'G', 'e', 't', 'B', 'o', 'r', 'd', 'e', 'r', 'S', 'i', 'z', 'e', 0,
57 'D', 'o', 'S', 'e', 't', 'C', 'l', 'i', 'e', 'n', 't', 'S', 'i', 'z', 'e', 0,
58 'D', 'o', 'G', 'e', 't', 'C', 'l', 'i', 'e', 'n', 't', 'S', 'i', 'z', 'e', 0,
59 'W', 'X', '_', 'G', 'L', '_', 'M', 'I', 'N', '_', 'B', 'L', 'U', 'E', 0,
60 'D', 'o', 'S', 'e', 't', 'S', 'i', 'z', 'e', 'H', 'i', 'n', 't', 's', 0,
61 'O', 'n', 'I', 'n', 't', 'e', 'r', 'n', 'a', 'l', 'I', 'd', 'l', 'e', 0,
62 'W', 'X', '_', 'G', 'L', '_', 'S', 'A', 'M', 'P', 'L', 'E', 'S', 0,
63 'W', 'X', '_', 'G', 'L', '_', 'M', 'I', 'N', '_', 'R', 'E', 'D', 0,
64 'D', 'o', 'G', 'e', 't', 'B', 'e', 's', 't', 'S', 'i', 'z', 'e', 0,
65 'D', 'o', 'G', 'e', 't', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
66 'U', 'S', 'E', '_', 'G', 'L', 'C', 'A', 'N', 'V', 'A', 'S', 0,
67 'W', 'X', '_', 'G', 'L', '_', 'S', 'T', 'E', 'R', 'E', 'O', 0,
68 'D', 'o', 'M', 'o', 'v', 'e', 'W', 'i', 'n', 'd', 'o', 'w', 0,
69 'S', 'e', 't', 'V', 'a', 'l', 'i', 'd', 'a', 't', 'o', 'r', 0,
70 'G', 'e', 't', 'V', 'a', 'l', 'i', 'd', 'a', 't', 'o', 'r', 0,
71 'A', 'c', 'c', 'e', 'p', 't', 's', 'F', 'o', 'c', 'u', 's', 0,
72 'P', 'r', 'o', 'c', 'e', 's', 's', 'E', 'v', 'e', 'n', 't', 0,
73 'w', 'x', '.', '_', 'g', 'l', 'c', 'a', 'n', 'v', 'a', 's', 0,
74 'S', 'w', 'a', 'p', 'B', 'u', 'f', 'f', 'e', 'r', 's', 0,
75 'w', 'x', 'G', 'L', 'C', 'o', 'n', 't', 'e', 'x', 't', 0,
76 'W', 'X', '_', 'G', 'L', '_', 'L', 'E', 'V', 'E', 'L', 0,
77 'S', 'e', 't', 'C', 'a', 'n', 'F', 'o', 'c', 'u', 's', 0,
78 'R', 'e', 'm', 'o', 'v', 'e', 'C', 'h', 'i', 'l', 'd', 0,
79 'a', 't', 't', 'r', 'i', 'b', 'L', 'i', 's', 't', 0,
80 'w', 'x', 'G', 'L', 'C', 'a', 'n', 'v', 'a', 's', 0,
81 'S', 'e', 't', 'C', 'u', 'r', 'r', 'e', 'n', 't', 0,
82 'W', 'X', '_', 'G', 'L', '_', 'R', 'G', 'B', 'A', 0,
83 'w', 'i', 'd', 't', 'h', 'T', 'i', 't', 'l', 'e', 0,
84 'I', 'n', 'i', 't', 'D', 'i', 'a', 'l', 'o', 'g', 0,
85 'c', 'o', 'l', 'u', 'm', 'n', 'M', 'a', 'x', 0,
86 'c', 'o', 'l', 'u', 'm', 'n', 'M', 'i', 'n', 0,
87 'D', 'o', 'S', 'e', 't', 'S', 'i', 'z', 'e', 0,
88 'D', 'o', 'G', 'e', 't', 'S', 'i', 'z', 'e', 0,
89 'v', 'a', 'l', 'i', 'd', 'a', 't', 'o', 'r', 0,
90 's', 'i', 'z', 'e', 'F', 'l', 'a', 'g', 's', 0,
91 'T', 'r', 'y', 'B', 'e', 'f', 'o', 'r', 'e', 0,
92 'e', 'x', 't', 'e', 'n', 's', 'i', 'o', 'n', 0,
93 'd', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', 0,
94 'S', 'e', 't', 'C', 'o', 'l', 'o', 'u', 'r', 0,
95 'D', 'o', 'F', 'r', 'e', 'e', 'z', 'e', 0,
96 'D', 'o', 'E', 'n', 'a', 'b', 'l', 'e', 0,
97 'V', 'a', 'l', 'i', 'd', 'a', 't', 'e', 0,
98 'c', 'a', 'n', 'F', 'o', 'c', 'u', 's', 0,
99 'A', 'd', 'd', 'C', 'h', 'i', 'l', 'd', 0,
100 'T', 'r', 'y', 'A', 'f', 't', 'e', 'r', 0,
101 'l', 'o', 'c', 'a', 't', 'i', 'o', 'n', 0,
102 'u', 'n', 'i', 't', 'M', 'a', 'x', 0,
103 'u', 'n', 'i', 't', 'M', 'i', 'n', 0,
104 'v', 'a', 'r', 'i', 'a', 'n', 't', 0,
105 'c', 'o', 'n', 't', 'e', 'x', 't', 0,
106 'p', 'a', 'l', 'e', 't', 't', 'e', 0,
107 'D', 'e', 's', 't', 'r', 'o', 'y', 0,
108 'c', 'l', 'i', 'e', 'n', 't', 0,
109 'd', 'i', 'a', 'l', 'o', 'g', 0,
110 'r', 'o', 'w', 'M', 'a', 'x', 0,
111 'r', 'o', 'w', 'M', 'i', 'n', 0,
112 'D', 'o', 'T', 'h', 'a', 'w', 0,
113 'p', 'a', 'r', 'e', 'n', 't', 0,
114 'e', 'n', 'a', 'b', 'l', 'e', 0,
115 's', 't', 'r', 'e', 'a', 'm', 0,
116 'c', 'o', 'l', 'u', 'm', 'n', 0,
117 'c', 'o', 'l', 'o', 'u', 'r', 0,
118 'h', 'e', 'i', 'g', 'h', 't', 0,
119 'p', 'o', 'p', 'u', 'p', 0,
120 's', 'i', 'z', 'e', 'r', 0,
121 'e', 'v', 'e', 'n', 't', 0,
122 'l', 'e', 'v', 'e', 'l', 0,
123 'c', 'h', 'i', 'l', 'd', 0,
124 's', 't', 'y', 'l', 'e', 0,
125 'w', 'i', 'd', 't', 'h', 0,
126 'c', 'o', 'u', 'n', 't', 0,
127 'f', 'l', 'a', 'g', 's', 0,
128 'o', 't', 'h', 'e', 'r', 0,
129 'u', 'n', 'i', 't', 0,
130 'i', 'n', 'c', 'H', 0,
131 'i', 'n', 'c', 'W', 0,
132 'm', 'a', 'x', 'H', 0,
133 'm', 'a', 'x', 'W', 0,
134 'm', 'i', 'n', 'H', 0,
135 'm', 'i', 'n', 'W', 0,
136 's', 'h', 'o', 'w', 0,
137 'r', 'e', 'c', 't', 0,
138 's', 'i', 'z', 'e', 0,
139 'n', 'a', 'm', 'e', 0,
140 't', 'i', 'm', 'e', 0,
141 'i', 't', 'e', 'm', 0,
142 'i', 'n', 'f', 'o', 0,
143 'i', 'd', 'x', 0,
144 'm', 's', 'g', 0,
145 'r', 'o', 'w', 0,
146 'p', 'o', 's', 0,
147 'w', 'i', 'n', 0,
148 'd', 'c', 0,
149 'i', 'd', 0,
150 };
151
sipVH__glcanvas_18(sip_gilstate_t sipGILState,sipVirtErrorHandlerFunc sipErrorHandler,sipSimpleWrapper * sipPySelf,PyObject * sipMethod,::wxWindowBase * child)152 void sipVH__glcanvas_18(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, ::wxWindowBase*child)
153 {
154 sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", child, sipType_wxWindowBase, SIP_NULLPTR);
155 }
156
sipVH__glcanvas_17(sip_gilstate_t sipGILState,sipVirtErrorHandlerFunc sipErrorHandler,sipSimpleWrapper * sipPySelf,PyObject * sipMethod,::wxEvent & event)157 bool sipVH__glcanvas_17(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, ::wxEvent& event)
158 {
159 bool sipRes = 0;
160 PyObject *sipResObj = sipCallMethod(SIP_NULLPTR, sipMethod, "D", &event, sipType_wxEvent, SIP_NULLPTR);
161
162 sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "b", &sipRes);
163
164 return sipRes;
165 }
166
sipVH__glcanvas_16(sip_gilstate_t sipGILState,sipVirtErrorHandlerFunc sipErrorHandler,sipSimpleWrapper * sipPySelf,PyObject * sipMethod,int direction,int size,int availableOtherDir)167 bool sipVH__glcanvas_16(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, int direction,int size,int availableOtherDir)
168 {
169 bool sipRes = 0;
170 PyObject *sipResObj = sipCallMethod(SIP_NULLPTR, sipMethod, "iii", direction, size, availableOtherDir);
171
172 sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "b", &sipRes);
173
174 return sipRes;
175 }
176
sipVH__glcanvas_15(sip_gilstate_t sipGILState,sipVirtErrorHandlerFunc sipErrorHandler,sipSimpleWrapper * sipPySelf,PyObject * sipMethod)177 ::wxPoint sipVH__glcanvas_15(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
178 {
179 ::wxPoint sipRes;
180 PyObject *sipResObj = sipCallMethod(SIP_NULLPTR, sipMethod, "");
181
182 sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_wxPoint, &sipRes);
183
184 return sipRes;
185 }
186
sipVH__glcanvas_14(sip_gilstate_t sipGILState,sipVirtErrorHandlerFunc sipErrorHandler,sipSimpleWrapper * sipPySelf,PyObject * sipMethod)187 ::wxValidator* sipVH__glcanvas_14(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
188 {
189 ::wxValidator* sipRes = 0;
190 PyObject *sipResObj = sipCallMethod(SIP_NULLPTR, sipMethod, "");
191
192 sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H0", sipType_wxValidator, &sipRes);
193
194 return sipRes;
195 }
196
sipVH__glcanvas_13(sip_gilstate_t sipGILState,sipVirtErrorHandlerFunc sipErrorHandler,sipSimpleWrapper * sipPySelf,PyObject * sipMethod,const::wxValidator & validator)197 void sipVH__glcanvas_13(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const ::wxValidator& validator)
198 {
199 sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "D", const_cast< ::wxValidator *>(&validator), sipType_wxValidator, SIP_NULLPTR);
200 }
201
sipVH__glcanvas_12(sip_gilstate_t sipGILState,sipVirtErrorHandlerFunc sipErrorHandler,sipSimpleWrapper * sipPySelf,PyObject * sipMethod)202 bool sipVH__glcanvas_12(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
203 {
204 bool sipRes = 0;
205 PyObject *sipResObj = sipCallMethod(SIP_NULLPTR, sipMethod, "");
206
207 sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "b", &sipRes);
208
209 return sipRes;
210 }
211
sipVH__glcanvas_11(sip_gilstate_t sipGILState,sipVirtErrorHandlerFunc sipErrorHandler,sipSimpleWrapper * sipPySelf,PyObject * sipMethod)212 ::wxWindow* sipVH__glcanvas_11(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
213 {
214 ::wxWindow* sipRes = 0;
215 PyObject *sipResObj = sipCallMethod(SIP_NULLPTR, sipMethod, "");
216
217 sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H0", sipType_wxWindow, &sipRes);
218
219 return sipRes;
220 }
221
sipVH__glcanvas_10(sip_gilstate_t sipGILState,sipVirtErrorHandlerFunc sipErrorHandler,sipSimpleWrapper * sipPySelf,PyObject * sipMethod,bool enable)222 void sipVH__glcanvas_10(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, bool enable)
223 {
224 sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "b", enable);
225 }
226
sipVH__glcanvas_9(sip_gilstate_t sipGILState,sipVirtErrorHandlerFunc sipErrorHandler,sipSimpleWrapper * sipPySelf,PyObject * sipMethod,int * width,int * height)227 void sipVH__glcanvas_9(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, int*width,int*height)
228 {
229 PyObject *sipResObj = sipCallMethod(SIP_NULLPTR, sipMethod, "");
230
231 sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "(ii)", width, height);
232 }
233
sipVH__glcanvas_8(sip_gilstate_t sipGILState,sipVirtErrorHandlerFunc sipErrorHandler,sipSimpleWrapper * sipPySelf,PyObject * sipMethod,int x,int y,int width,int height,int sizeFlags)234 void sipVH__glcanvas_8(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, int x,int y,int width,int height,int sizeFlags)
235 {
236 sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "iiiii", x, y, width, height, sizeFlags);
237 }
238
sipVH__glcanvas_7(sip_gilstate_t sipGILState,sipVirtErrorHandlerFunc sipErrorHandler,sipSimpleWrapper * sipPySelf,PyObject * sipMethod,int width,int height)239 void sipVH__glcanvas_7(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, int width,int height)
240 {
241 sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "ii", width, height);
242 }
243
sipVH__glcanvas_6(sip_gilstate_t sipGILState,sipVirtErrorHandlerFunc sipErrorHandler,sipSimpleWrapper * sipPySelf,PyObject * sipMethod,int minW,int minH,int maxW,int maxH,int incW,int incH)244 void sipVH__glcanvas_6(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, int minW,int minH,int maxW,int maxH,int incW,int incH)
245 {
246 sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "iiiiii", minW, minH, maxW, maxH, incW, incH);
247 }
248
sipVH__glcanvas_5(sip_gilstate_t sipGILState,sipVirtErrorHandlerFunc sipErrorHandler,sipSimpleWrapper * sipPySelf,PyObject * sipMethod,int x,int y,int width,int height)249 void sipVH__glcanvas_5(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, int x,int y,int width,int height)
250 {
251 sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "iiii", x, y, width, height);
252 }
253
sipVH__glcanvas_4(sip_gilstate_t sipGILState,sipVirtErrorHandlerFunc sipErrorHandler,sipSimpleWrapper * sipPySelf,PyObject * sipMethod,::wxWindowVariant variant)254 void sipVH__glcanvas_4(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, ::wxWindowVariant variant)
255 {
256 sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "F", variant, sipType_wxWindowVariant);
257 }
258
sipVH__glcanvas_3(sip_gilstate_t sipGILState,sipVirtErrorHandlerFunc sipErrorHandler,sipSimpleWrapper * sipPySelf,PyObject * sipMethod)259 ::wxBorder sipVH__glcanvas_3(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
260 {
261 ::wxBorder sipRes = ::wxBORDER_DEFAULT;
262 PyObject *sipResObj = sipCallMethod(SIP_NULLPTR, sipMethod, "");
263
264 sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "F", sipType_wxBorder, &sipRes);
265
266 return sipRes;
267 }
268
sipVH__glcanvas_2(sip_gilstate_t sipGILState,sipVirtErrorHandlerFunc sipErrorHandler,sipSimpleWrapper * sipPySelf,PyObject * sipMethod)269 void sipVH__glcanvas_2(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
270 {
271 sipCallProcedureMethod(sipGILState, sipErrorHandler, sipPySelf, sipMethod, "");
272 }
273
sipVH__glcanvas_1(sip_gilstate_t sipGILState,sipVirtErrorHandlerFunc sipErrorHandler,sipSimpleWrapper * sipPySelf,PyObject * sipMethod)274 ::wxSize sipVH__glcanvas_1(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
275 {
276 ::wxSize sipRes;
277 PyObject *sipResObj = sipCallMethod(SIP_NULLPTR, sipMethod, "");
278
279 sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_wxSize, &sipRes);
280
281 return sipRes;
282 }
283
sipVH__glcanvas_0(sip_gilstate_t sipGILState,sipVirtErrorHandlerFunc sipErrorHandler,sipSimpleWrapper * sipPySelf,PyObject * sipMethod,const::wxGLCanvas & win)284 bool sipVH__glcanvas_0(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const ::wxGLCanvas& win)
285 {
286 bool sipRes = 0;
287 PyObject *sipResObj = sipCallMethod(SIP_NULLPTR, sipMethod, "D", const_cast< ::wxGLCanvas *>(&win), sipType_wxGLCanvas, SIP_NULLPTR);
288
289 sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "b", &sipRes);
290
291 return sipRes;
292 }
293
294
295 /*
296 * This defines each type in this module.
297 */
298 sipTypeDef *sipExportedTypes__glcanvas[] = {
299 &sipTypeDef__glcanvas_wxGLCanvas.ctd_base,
300 &sipTypeDef__glcanvas_wxGLContext.ctd_base,
301 };
302
303
304 /* This defines the types that this module needs to import from _core. */
305 sipImportedTypeDef sipImportedTypes__glcanvas__core[] = {
306 {"wxArrayInt"},
307 {"wxBorder"},
308 {"wxEvent"},
309 {"wxEvtHandler"},
310 {"wxObject"},
311 {"wxPalette"},
312 {"wxPoint"},
313 {"wxSize"},
314 {"wxString"},
315 {"wxTrackable"},
316 {"wxValidator"},
317 {"wxVisualAttributes"},
318 {"wxWindow"},
319 {"wxWindowBase"},
320 {"wxWindowVariant"},
321 {SIP_NULLPTR}
322 };
323
324
325 /* This defines the modules that this module needs to import. */
326 static sipImportedModuleDef importsTable[] = {
327 {"wx._core", sipImportedTypes__glcanvas__core, SIP_NULLPTR, SIP_NULLPTR},
328 {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
329 };
330
331
332 /* Define the ints to be added to this module dictionary. */
333 static sipIntInstanceDef intInstances[] = {
334 {sipName_USE_GLCANVAS, wxUSE_GLCANVAS},
335 {sipName_WX_GL_RGBA, WX_GL_RGBA},
336 {sipName_WX_GL_BUFFER_SIZE, WX_GL_BUFFER_SIZE},
337 {sipName_WX_GL_LEVEL, WX_GL_LEVEL},
338 {sipName_WX_GL_DOUBLEBUFFER, WX_GL_DOUBLEBUFFER},
339 {sipName_WX_GL_STEREO, WX_GL_STEREO},
340 {sipName_WX_GL_AUX_BUFFERS, WX_GL_AUX_BUFFERS},
341 {sipName_WX_GL_MIN_RED, WX_GL_MIN_RED},
342 {sipName_WX_GL_MIN_GREEN, WX_GL_MIN_GREEN},
343 {sipName_WX_GL_MIN_BLUE, WX_GL_MIN_BLUE},
344 {sipName_WX_GL_MIN_ALPHA, WX_GL_MIN_ALPHA},
345 {sipName_WX_GL_DEPTH_SIZE, WX_GL_DEPTH_SIZE},
346 {sipName_WX_GL_STENCIL_SIZE, WX_GL_STENCIL_SIZE},
347 {sipName_WX_GL_MIN_ACCUM_RED, WX_GL_MIN_ACCUM_RED},
348 {sipName_WX_GL_MIN_ACCUM_GREEN, WX_GL_MIN_ACCUM_GREEN},
349 {sipName_WX_GL_MIN_ACCUM_BLUE, WX_GL_MIN_ACCUM_BLUE},
350 {sipName_WX_GL_MIN_ACCUM_ALPHA, WX_GL_MIN_ACCUM_ALPHA},
351 {sipName_WX_GL_SAMPLE_BUFFERS, WX_GL_SAMPLE_BUFFERS},
352 {sipName_WX_GL_SAMPLES, WX_GL_SAMPLES},
353 {sipName_WX_GL_CORE_PROFILE, WX_GL_CORE_PROFILE},
354 {sipName_WX_GL_MAJOR_VERSION, WX_GL_MAJOR_VERSION},
355 {sipName_WX_GL_MINOR_VERSION, WX_GL_MINOR_VERSION},
356 {0, 0}
357 };
358
359
360 /* This defines this module. */
361 sipExportedModuleDef sipModuleAPI__glcanvas = {
362 0,
363 SIP_API_MINOR_NR,
364 sipNameNr_wx__glcanvas,
365 0,
366 sipStrings__glcanvas,
367 importsTable,
368 SIP_NULLPTR,
369 2,
370 sipExportedTypes__glcanvas,
371 SIP_NULLPTR,
372 0,
373 SIP_NULLPTR,
374 0,
375 SIP_NULLPTR,
376 SIP_NULLPTR,
377 SIP_NULLPTR,
378 {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, intInstances, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
379 SIP_NULLPTR,
380 SIP_NULLPTR,
381 SIP_NULLPTR,
382 SIP_NULLPTR,
383 SIP_NULLPTR,
384 SIP_NULLPTR,
385 SIP_NULLPTR,
386 SIP_NULLPTR
387 };
388
389
390 /* The SIP API and the APIs of any imported modules. */
391 const sipAPIDef *sipAPI__glcanvas;
392
393
394 /* The Python module initialisation function. */
395 #if PY_MAJOR_VERSION >= 3
396 #define SIP_MODULE_ENTRY PyInit__glcanvas
397 #define SIP_MODULE_TYPE PyObject *
398 #define SIP_MODULE_DISCARD(r) Py_DECREF(r)
399 #define SIP_MODULE_RETURN(r) return (r)
400 #else
401 #define SIP_MODULE_ENTRY init_glcanvas
402 #define SIP_MODULE_TYPE void
403 #define SIP_MODULE_DISCARD(r)
404 #define SIP_MODULE_RETURN(r) return
405 #endif
406
407 #if defined(SIP_STATIC_MODULE)
SIP_MODULE_ENTRY()408 extern "C" SIP_MODULE_TYPE SIP_MODULE_ENTRY()
409 #else
410 PyMODINIT_FUNC SIP_MODULE_ENTRY()
411 #endif
412 {
413 static PyMethodDef sip_methods[] = {
414 {SIP_NULLPTR, SIP_NULLPTR, 0, SIP_NULLPTR}
415 };
416
417 #if PY_MAJOR_VERSION >= 3
418 static PyModuleDef sip_module_def = {
419 PyModuleDef_HEAD_INIT,
420 "wx._glcanvas",
421 SIP_NULLPTR,
422 -1,
423 sip_methods,
424 SIP_NULLPTR,
425 SIP_NULLPTR,
426 SIP_NULLPTR,
427 SIP_NULLPTR
428 };
429 #endif
430
431 PyObject *sipModule, *sipModuleDict;
432 PyObject *sip_sipmod, *sip_capiobj;
433
434 /* Initialise the module and get it's dictionary. */
435 #if PY_MAJOR_VERSION >= 3
436 sipModule = PyModule_Create(&sip_module_def);
437 #elif PY_VERSION_HEX >= 0x02050000
438 sipModule = Py_InitModule(sipName_wx__glcanvas, sip_methods);
439 #else
440 sipModule = Py_InitModule(const_cast<char *>(sipName_wx__glcanvas), sip_methods);
441 #endif
442
443 if (sipModule == SIP_NULLPTR)
444 SIP_MODULE_RETURN(SIP_NULLPTR);
445
446 sipModuleDict = PyModule_GetDict(sipModule);
447
448 /* Get the SIP module's API. */
449 #if PY_VERSION_HEX >= 0x02050000
450 sip_sipmod = PyImport_ImportModule("wx.siplib");
451 #else
452 sip_sipmod = PyImport_ImportModule(const_cast<char *>("wx.siplib"));
453 #endif
454
455 if (sip_sipmod == SIP_NULLPTR)
456 {
457 SIP_MODULE_DISCARD(sipModule);
458 SIP_MODULE_RETURN(SIP_NULLPTR);
459 }
460
461 sip_capiobj = PyDict_GetItemString(PyModule_GetDict(sip_sipmod), "_C_API");
462 Py_DECREF(sip_sipmod);
463
464 #if defined(SIP_USE_PYCAPSULE)
465 if (sip_capiobj == SIP_NULLPTR || !PyCapsule_CheckExact(sip_capiobj))
466 #else
467 if (sip_capiobj == SIP_NULLPTR || !PyCObject_Check(sip_capiobj))
468 #endif
469 {
470 SIP_MODULE_DISCARD(sipModule);
471 SIP_MODULE_RETURN(SIP_NULLPTR);
472 }
473
474 #if defined(SIP_USE_PYCAPSULE)
475 sipAPI__glcanvas = reinterpret_cast<const sipAPIDef *>(PyCapsule_GetPointer(sip_capiobj, "wx.siplib._C_API"));
476 #else
477 sipAPI__glcanvas = reinterpret_cast<const sipAPIDef *>(PyCObject_AsVoidPtr(sip_capiobj));
478 #endif
479
480 #if defined(SIP_USE_PYCAPSULE)
481 if (sipAPI__glcanvas == SIP_NULLPTR)
482 {
483 SIP_MODULE_DISCARD(sipModule);
484 SIP_MODULE_RETURN(SIP_NULLPTR);
485 }
486 #endif
487
488 /* Export the module and publish it's API. */
489 if (sipExportModule(&sipModuleAPI__glcanvas,SIP_API_MAJOR_NR,SIP_API_MINOR_NR,0) < 0)
490 {
491 SIP_MODULE_DISCARD(sipModule);
492 SIP_MODULE_RETURN(SIP_NULLPTR);
493 }
494 /* Initialise the module now all its dependencies have been set up. */
495 if (sipInitModule(&sipModuleAPI__glcanvas,sipModuleDict) < 0)
496 {
497 SIP_MODULE_DISCARD(sipModule);
498 SIP_MODULE_RETURN(SIP_NULLPTR);
499 }
500
501 SIP_MODULE_RETURN(sipModule);
502 }
503