]>
Commit | Line | Data |
---|---|---|
325274bb RD |
1 | /* |
2 | * FILE : msw/glcanvas.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
d2103cf2 | 6 | * Version 1.1 (Build 810) |
325274bb RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a) a _export | |
31 | # else | |
32 | # define SWIGEXPORT(a) a | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a) a | |
37 | #endif | |
38 | ||
39 | #ifdef __cplusplus | |
40 | extern "C" { | |
41 | #endif | |
42 | #include "Python.h" | |
43 | extern void SWIG_MakePtr(char *, void *, char *); | |
44 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
45 | extern char *SWIG_GetPtr(char *, void **, char *); | |
46 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
47 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
48 | extern PyObject *SWIG_newvarlink(void); | |
49 | #ifdef __cplusplus | |
50 | } | |
51 | #endif | |
52 | #define SWIG_init initglcanvasc | |
53 | ||
54 | #define SWIG_name "glcanvasc" | |
55 | ||
56 | #include "helpers.h" | |
57 | #include <glcanvas.h> | |
58 | ||
59 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
60 | PyObject* o2; | |
61 | PyObject* o3; | |
62 | if (!target) { | |
63 | target = o; | |
64 | } else if (target == Py_None) { | |
65 | Py_DECREF(Py_None); | |
66 | target = o; | |
67 | } else { | |
68 | if (!PyList_Check(target)) { | |
69 | o2 = target; | |
70 | target = PyList_New(0); | |
71 | PyList_Append(target, o2); | |
72 | Py_XDECREF(o2); | |
73 | } | |
74 | PyList_Append(target,o); | |
75 | Py_XDECREF(o); | |
76 | } | |
77 | return target; | |
78 | } | |
79 | ||
80 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
81 | PyObject* o2; | |
82 | PyObject* o3; | |
83 | ||
84 | if (!target) { | |
85 | target = o; | |
86 | } else if (target == Py_None) { | |
87 | Py_DECREF(Py_None); | |
88 | target = o; | |
89 | } else { | |
90 | if (!PyTuple_Check(target)) { | |
91 | o2 = target; | |
92 | target = PyTuple_New(1); | |
93 | PyTuple_SetItem(target, 0, o2); | |
94 | } | |
95 | o3 = PyTuple_New(1); | |
96 | PyTuple_SetItem(o3, 0, o); | |
97 | ||
98 | o2 = target; | |
99 | target = PySequence_Concat(o2, o3); | |
100 | Py_DECREF(o2); | |
101 | Py_DECREF(o3); | |
102 | } | |
103 | return target; | |
104 | } | |
105 | ||
d2103cf2 | 106 | static char* wxStringErrorMsg = "string type is required for parameter"; |
325274bb | 107 | |
d2103cf2 RD |
108 | #if defined(__WXMSW__) |
109 | static wxString wxPyEmptyStr(""); | |
110 | static wxPoint wxPyDefaultPosition(-1, -1); | |
111 | static wxSize wxPyDefaultSize(-1, -1); | |
112 | #endif | |
113 | #ifdef __cplusplus | |
114 | extern "C" { | |
115 | #endif | |
325274bb | 116 | #define new_wxGLContext(_swigarg0,_swigarg1,_swigarg2) (new wxGLContext(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 117 | static PyObject *_wrap_new_wxGLContext(PyObject *self, PyObject *args, PyObject *kwargs) { |
325274bb RD |
118 | PyObject * _resultobj; |
119 | wxGLContext * _result; | |
120 | bool _arg0; | |
121 | wxGLCanvas * _arg1; | |
122 | wxPalette * _arg2 = (wxPalette *) &wxNullPalette; | |
123 | int tempbool0; | |
124 | PyObject * _argo1 = 0; | |
125 | PyObject * _argo2 = 0; | |
efc5f224 | 126 | char *_kwnames[] = { "isRGB","win","palette", NULL }; |
325274bb RD |
127 | char _ptemp[128]; |
128 | ||
129 | self = self; | |
efc5f224 | 130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iO|O:new_wxGLContext",_kwnames,&tempbool0,&_argo1,&_argo2)) |
325274bb RD |
131 | return NULL; |
132 | _arg0 = (bool ) tempbool0; | |
133 | if (_argo1) { | |
134 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
135 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxGLCanvas_p")) { | |
136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxGLContext. Expected _wxGLCanvas_p."); | |
137 | return NULL; | |
138 | } | |
139 | } | |
140 | if (_argo2) { | |
141 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
142 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPalette_p")) { | |
143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxGLContext. Expected _wxPalette_p."); | |
144 | return NULL; | |
145 | } | |
146 | } | |
147 | { | |
148 | wxPy_BEGIN_ALLOW_THREADS; | |
149 | _result = (wxGLContext *)new_wxGLContext(_arg0,_arg1,*_arg2); | |
150 | ||
151 | wxPy_END_ALLOW_THREADS; | |
152 | } if (_result) { | |
153 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGLContext_p"); | |
154 | _resultobj = Py_BuildValue("s",_ptemp); | |
155 | } else { | |
156 | Py_INCREF(Py_None); | |
157 | _resultobj = Py_None; | |
158 | } | |
159 | return _resultobj; | |
160 | } | |
161 | ||
162 | #define delete_wxGLContext(_swigobj) (delete _swigobj) | |
efc5f224 | 163 | static PyObject *_wrap_delete_wxGLContext(PyObject *self, PyObject *args, PyObject *kwargs) { |
325274bb RD |
164 | PyObject * _resultobj; |
165 | wxGLContext * _arg0; | |
166 | PyObject * _argo0 = 0; | |
efc5f224 | 167 | char *_kwnames[] = { "self", NULL }; |
325274bb RD |
168 | |
169 | self = self; | |
efc5f224 | 170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGLContext",_kwnames,&_argo0)) |
325274bb RD |
171 | return NULL; |
172 | if (_argo0) { | |
173 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
174 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) { | |
175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGLContext. Expected _wxGLContext_p."); | |
176 | return NULL; | |
177 | } | |
178 | } | |
179 | { | |
180 | wxPy_BEGIN_ALLOW_THREADS; | |
181 | delete_wxGLContext(_arg0); | |
182 | ||
183 | wxPy_END_ALLOW_THREADS; | |
184 | } Py_INCREF(Py_None); | |
185 | _resultobj = Py_None; | |
186 | return _resultobj; | |
187 | } | |
188 | ||
189 | #define wxGLContext_SetCurrent(_swigobj) (_swigobj->SetCurrent()) | |
efc5f224 | 190 | static PyObject *_wrap_wxGLContext_SetCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { |
325274bb RD |
191 | PyObject * _resultobj; |
192 | wxGLContext * _arg0; | |
193 | PyObject * _argo0 = 0; | |
efc5f224 | 194 | char *_kwnames[] = { "self", NULL }; |
325274bb RD |
195 | |
196 | self = self; | |
efc5f224 | 197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLContext_SetCurrent",_kwnames,&_argo0)) |
325274bb RD |
198 | return NULL; |
199 | if (_argo0) { | |
200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) { | |
202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_SetCurrent. Expected _wxGLContext_p."); | |
203 | return NULL; | |
204 | } | |
205 | } | |
206 | { | |
207 | wxPy_BEGIN_ALLOW_THREADS; | |
208 | wxGLContext_SetCurrent(_arg0); | |
209 | ||
210 | wxPy_END_ALLOW_THREADS; | |
211 | } Py_INCREF(Py_None); | |
212 | _resultobj = Py_None; | |
213 | return _resultobj; | |
214 | } | |
215 | ||
216 | #define wxGLContext_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
efc5f224 | 217 | static PyObject *_wrap_wxGLContext_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
325274bb RD |
218 | PyObject * _resultobj; |
219 | wxGLContext * _arg0; | |
220 | char * _arg1; | |
221 | PyObject * _argo0 = 0; | |
efc5f224 | 222 | char *_kwnames[] = { "self","colour", NULL }; |
325274bb RD |
223 | |
224 | self = self; | |
efc5f224 | 225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxGLContext_SetColour",_kwnames,&_argo0,&_arg1)) |
325274bb RD |
226 | return NULL; |
227 | if (_argo0) { | |
228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) { | |
230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_SetColour. Expected _wxGLContext_p."); | |
231 | return NULL; | |
232 | } | |
233 | } | |
234 | { | |
235 | wxPy_BEGIN_ALLOW_THREADS; | |
236 | wxGLContext_SetColour(_arg0,_arg1); | |
237 | ||
238 | wxPy_END_ALLOW_THREADS; | |
239 | } Py_INCREF(Py_None); | |
240 | _resultobj = Py_None; | |
241 | return _resultobj; | |
242 | } | |
243 | ||
244 | #define wxGLContext_SwapBuffers(_swigobj) (_swigobj->SwapBuffers()) | |
efc5f224 | 245 | static PyObject *_wrap_wxGLContext_SwapBuffers(PyObject *self, PyObject *args, PyObject *kwargs) { |
325274bb RD |
246 | PyObject * _resultobj; |
247 | wxGLContext * _arg0; | |
248 | PyObject * _argo0 = 0; | |
efc5f224 | 249 | char *_kwnames[] = { "self", NULL }; |
325274bb RD |
250 | |
251 | self = self; | |
efc5f224 | 252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLContext_SwapBuffers",_kwnames,&_argo0)) |
325274bb RD |
253 | return NULL; |
254 | if (_argo0) { | |
255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) { | |
257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_SwapBuffers. Expected _wxGLContext_p."); | |
258 | return NULL; | |
259 | } | |
260 | } | |
261 | { | |
262 | wxPy_BEGIN_ALLOW_THREADS; | |
263 | wxGLContext_SwapBuffers(_arg0); | |
264 | ||
265 | wxPy_END_ALLOW_THREADS; | |
266 | } Py_INCREF(Py_None); | |
267 | _resultobj = Py_None; | |
268 | return _resultobj; | |
269 | } | |
270 | ||
271 | #define wxGLContext_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
efc5f224 | 272 | static PyObject *_wrap_wxGLContext_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
325274bb RD |
273 | PyObject * _resultobj; |
274 | wxWindow * _result; | |
275 | wxGLContext * _arg0; | |
276 | PyObject * _argo0 = 0; | |
efc5f224 | 277 | char *_kwnames[] = { "self", NULL }; |
325274bb RD |
278 | char _ptemp[128]; |
279 | ||
280 | self = self; | |
efc5f224 | 281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLContext_GetWindow",_kwnames,&_argo0)) |
325274bb RD |
282 | return NULL; |
283 | if (_argo0) { | |
284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLContext_p")) { | |
286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLContext_GetWindow. Expected _wxGLContext_p."); | |
287 | return NULL; | |
288 | } | |
289 | } | |
290 | { | |
291 | wxPy_BEGIN_ALLOW_THREADS; | |
292 | _result = (wxWindow *)wxGLContext_GetWindow(_arg0); | |
293 | ||
294 | wxPy_END_ALLOW_THREADS; | |
295 | } if (_result) { | |
296 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
297 | _resultobj = Py_BuildValue("s",_ptemp); | |
298 | } else { | |
299 | Py_INCREF(Py_None); | |
300 | _resultobj = Py_None; | |
301 | } | |
302 | return _resultobj; | |
303 | } | |
304 | ||
305 | static void *SwigwxGLCanvasTowxScrolledWindow(void *ptr) { | |
306 | wxGLCanvas *src; | |
307 | wxScrolledWindow *dest; | |
308 | src = (wxGLCanvas *) ptr; | |
309 | dest = (wxScrolledWindow *) src; | |
310 | return (void *) dest; | |
311 | } | |
312 | ||
313 | static void *SwigwxGLCanvasTowxPanel(void *ptr) { | |
314 | wxGLCanvas *src; | |
315 | wxPanel *dest; | |
316 | src = (wxGLCanvas *) ptr; | |
317 | dest = (wxPanel *) src; | |
318 | return (void *) dest; | |
319 | } | |
320 | ||
321 | static void *SwigwxGLCanvasTowxWindow(void *ptr) { | |
322 | wxGLCanvas *src; | |
323 | wxWindow *dest; | |
324 | src = (wxGLCanvas *) ptr; | |
325 | dest = (wxWindow *) src; | |
326 | return (void *) dest; | |
327 | } | |
328 | ||
329 | static void *SwigwxGLCanvasTowxEvtHandler(void *ptr) { | |
330 | wxGLCanvas *src; | |
331 | wxEvtHandler *dest; | |
332 | src = (wxGLCanvas *) ptr; | |
333 | dest = (wxEvtHandler *) src; | |
334 | return (void *) dest; | |
335 | } | |
336 | ||
337 | #define new_wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7) (new wxGLCanvas(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7)) | |
efc5f224 | 338 | static PyObject *_wrap_new_wxGLCanvas(PyObject *self, PyObject *args, PyObject *kwargs) { |
325274bb RD |
339 | PyObject * _resultobj; |
340 | wxGLCanvas * _result; | |
341 | wxWindow * _arg0; | |
342 | wxWindowID _arg1 = (wxWindowID ) -1; | |
343 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; | |
344 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
345 | long _arg4 = (long ) 0; | |
346 | char * _arg5 = (char *) "GLCanvas"; | |
347 | int * _arg6 = (int *) 0; | |
348 | wxPalette * _arg7 = (wxPalette *) &wxNullPalette; | |
349 | PyObject * _argo0 = 0; | |
d2103cf2 RD |
350 | wxPoint temp; |
351 | PyObject * _obj2 = 0; | |
352 | wxSize temp0; | |
353 | PyObject * _obj3 = 0; | |
325274bb RD |
354 | PyObject * _argo6 = 0; |
355 | PyObject * _argo7 = 0; | |
efc5f224 | 356 | char *_kwnames[] = { "parent","id","pos","size","style","name","attribList","palette", NULL }; |
325274bb RD |
357 | char _ptemp[128]; |
358 | ||
359 | self = self; | |
d2103cf2 | 360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlsOO:new_wxGLCanvas",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5,&_argo6,&_argo7)) |
325274bb RD |
361 | return NULL; |
362 | if (_argo0) { | |
363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxGLCanvas. Expected _wxWindow_p."); | |
366 | return NULL; | |
367 | } | |
368 | } | |
d2103cf2 RD |
369 | if (_obj2) |
370 | { | |
371 | _arg2 = &temp; | |
372 | if (! wxPoint_helper(_obj2, &_arg2)) | |
325274bb | 373 | return NULL; |
d2103cf2 RD |
374 | } |
375 | if (_obj3) | |
376 | { | |
377 | _arg3 = &temp0; | |
378 | if (! wxSize_helper(_obj3, &_arg3)) | |
325274bb | 379 | return NULL; |
d2103cf2 | 380 | } |
325274bb RD |
381 | if (_argo6) { |
382 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
383 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_int_p")) { | |
384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of new_wxGLCanvas. Expected _int_p."); | |
385 | return NULL; | |
386 | } | |
387 | } | |
388 | if (_argo7) { | |
389 | if (_argo7 == Py_None) { _arg7 = NULL; } | |
390 | else if (SWIG_GetPtrObj(_argo7,(void **) &_arg7,"_wxPalette_p")) { | |
391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 8 of new_wxGLCanvas. Expected _wxPalette_p."); | |
392 | return NULL; | |
393 | } | |
394 | } | |
395 | { | |
396 | wxPy_BEGIN_ALLOW_THREADS; | |
397 | _result = (wxGLCanvas *)new_wxGLCanvas(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5,_arg6,*_arg7); | |
398 | ||
399 | wxPy_END_ALLOW_THREADS; | |
400 | } if (_result) { | |
401 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGLCanvas_p"); | |
402 | _resultobj = Py_BuildValue("s",_ptemp); | |
403 | } else { | |
404 | Py_INCREF(Py_None); | |
405 | _resultobj = Py_None; | |
406 | } | |
407 | return _resultobj; | |
408 | } | |
409 | ||
410 | #define wxGLCanvas_SetCurrent(_swigobj) (_swigobj->SetCurrent()) | |
efc5f224 | 411 | static PyObject *_wrap_wxGLCanvas_SetCurrent(PyObject *self, PyObject *args, PyObject *kwargs) { |
325274bb RD |
412 | PyObject * _resultobj; |
413 | wxGLCanvas * _arg0; | |
414 | PyObject * _argo0 = 0; | |
efc5f224 | 415 | char *_kwnames[] = { "self", NULL }; |
325274bb RD |
416 | |
417 | self = self; | |
efc5f224 | 418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLCanvas_SetCurrent",_kwnames,&_argo0)) |
325274bb RD |
419 | return NULL; |
420 | if (_argo0) { | |
421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) { | |
423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_SetCurrent. Expected _wxGLCanvas_p."); | |
424 | return NULL; | |
425 | } | |
426 | } | |
427 | { | |
428 | wxPy_BEGIN_ALLOW_THREADS; | |
429 | wxGLCanvas_SetCurrent(_arg0); | |
430 | ||
431 | wxPy_END_ALLOW_THREADS; | |
432 | } Py_INCREF(Py_None); | |
433 | _resultobj = Py_None; | |
434 | return _resultobj; | |
435 | } | |
436 | ||
437 | #define wxGLCanvas_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0)) | |
efc5f224 | 438 | static PyObject *_wrap_wxGLCanvas_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
325274bb RD |
439 | PyObject * _resultobj; |
440 | wxGLCanvas * _arg0; | |
441 | char * _arg1; | |
442 | PyObject * _argo0 = 0; | |
efc5f224 | 443 | char *_kwnames[] = { "self","colour", NULL }; |
325274bb RD |
444 | |
445 | self = self; | |
efc5f224 | 446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxGLCanvas_SetColour",_kwnames,&_argo0,&_arg1)) |
325274bb RD |
447 | return NULL; |
448 | if (_argo0) { | |
449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) { | |
451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_SetColour. Expected _wxGLCanvas_p."); | |
452 | return NULL; | |
453 | } | |
454 | } | |
455 | { | |
456 | wxPy_BEGIN_ALLOW_THREADS; | |
457 | wxGLCanvas_SetColour(_arg0,_arg1); | |
458 | ||
459 | wxPy_END_ALLOW_THREADS; | |
460 | } Py_INCREF(Py_None); | |
461 | _resultobj = Py_None; | |
462 | return _resultobj; | |
463 | } | |
464 | ||
465 | #define wxGLCanvas_SwapBuffers(_swigobj) (_swigobj->SwapBuffers()) | |
efc5f224 | 466 | static PyObject *_wrap_wxGLCanvas_SwapBuffers(PyObject *self, PyObject *args, PyObject *kwargs) { |
325274bb RD |
467 | PyObject * _resultobj; |
468 | wxGLCanvas * _arg0; | |
469 | PyObject * _argo0 = 0; | |
efc5f224 | 470 | char *_kwnames[] = { "self", NULL }; |
325274bb RD |
471 | |
472 | self = self; | |
efc5f224 | 473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLCanvas_SwapBuffers",_kwnames,&_argo0)) |
325274bb RD |
474 | return NULL; |
475 | if (_argo0) { | |
476 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
477 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) { | |
478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_SwapBuffers. Expected _wxGLCanvas_p."); | |
479 | return NULL; | |
480 | } | |
481 | } | |
482 | { | |
483 | wxPy_BEGIN_ALLOW_THREADS; | |
484 | wxGLCanvas_SwapBuffers(_arg0); | |
485 | ||
486 | wxPy_END_ALLOW_THREADS; | |
487 | } Py_INCREF(Py_None); | |
488 | _resultobj = Py_None; | |
489 | return _resultobj; | |
490 | } | |
491 | ||
492 | #define wxGLCanvas_GetContext(_swigobj) (_swigobj->GetContext()) | |
efc5f224 | 493 | static PyObject *_wrap_wxGLCanvas_GetContext(PyObject *self, PyObject *args, PyObject *kwargs) { |
325274bb RD |
494 | PyObject * _resultobj; |
495 | wxGLContext * _result; | |
496 | wxGLCanvas * _arg0; | |
497 | PyObject * _argo0 = 0; | |
efc5f224 | 498 | char *_kwnames[] = { "self", NULL }; |
325274bb RD |
499 | char _ptemp[128]; |
500 | ||
501 | self = self; | |
efc5f224 | 502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGLCanvas_GetContext",_kwnames,&_argo0)) |
325274bb RD |
503 | return NULL; |
504 | if (_argo0) { | |
505 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGLCanvas_p")) { | |
507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGLCanvas_GetContext. Expected _wxGLCanvas_p."); | |
508 | return NULL; | |
509 | } | |
510 | } | |
511 | { | |
512 | wxPy_BEGIN_ALLOW_THREADS; | |
513 | _result = (wxGLContext *)wxGLCanvas_GetContext(_arg0); | |
514 | ||
515 | wxPy_END_ALLOW_THREADS; | |
516 | } if (_result) { | |
517 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGLContext_p"); | |
518 | _resultobj = Py_BuildValue("s",_ptemp); | |
519 | } else { | |
520 | Py_INCREF(Py_None); | |
521 | _resultobj = Py_None; | |
522 | } | |
523 | return _resultobj; | |
524 | } | |
525 | ||
526 | static PyMethodDef glcanvascMethods[] = { | |
efc5f224 RD |
527 | { "wxGLCanvas_GetContext", (PyCFunction) _wrap_wxGLCanvas_GetContext, METH_VARARGS | METH_KEYWORDS }, |
528 | { "wxGLCanvas_SwapBuffers", (PyCFunction) _wrap_wxGLCanvas_SwapBuffers, METH_VARARGS | METH_KEYWORDS }, | |
529 | { "wxGLCanvas_SetColour", (PyCFunction) _wrap_wxGLCanvas_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
530 | { "wxGLCanvas_SetCurrent", (PyCFunction) _wrap_wxGLCanvas_SetCurrent, METH_VARARGS | METH_KEYWORDS }, | |
531 | { "new_wxGLCanvas", (PyCFunction) _wrap_new_wxGLCanvas, METH_VARARGS | METH_KEYWORDS }, | |
532 | { "wxGLContext_GetWindow", (PyCFunction) _wrap_wxGLContext_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
533 | { "wxGLContext_SwapBuffers", (PyCFunction) _wrap_wxGLContext_SwapBuffers, METH_VARARGS | METH_KEYWORDS }, | |
534 | { "wxGLContext_SetColour", (PyCFunction) _wrap_wxGLContext_SetColour, METH_VARARGS | METH_KEYWORDS }, | |
535 | { "wxGLContext_SetCurrent", (PyCFunction) _wrap_wxGLContext_SetCurrent, METH_VARARGS | METH_KEYWORDS }, | |
536 | { "delete_wxGLContext", (PyCFunction) _wrap_delete_wxGLContext, METH_VARARGS | METH_KEYWORDS }, | |
537 | { "new_wxGLContext", (PyCFunction) _wrap_new_wxGLContext, METH_VARARGS | METH_KEYWORDS }, | |
325274bb RD |
538 | { NULL, NULL } |
539 | }; | |
540 | #ifdef __cplusplus | |
541 | } | |
542 | #endif | |
543 | /* | |
544 | * This table is used by the pointer type-checker | |
545 | */ | |
546 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
547 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
548 | { "_wxEvent","_class_wxEvent",0}, | |
549 | { "_class_wxActivateEvent","_wxActivateEvent",0}, | |
325274bb RD |
550 | { "_signed_long","_long",0}, |
551 | { "_wxMenuEvent","_class_wxMenuEvent",0}, | |
552 | { "_class_wxJPEGHandler","_wxJPEGHandler",0}, | |
d2103cf2 RD |
553 | { "_wxPyBitmapDataObject","_class_wxPyBitmapDataObject",0}, |
554 | { "_wxBitmapDataObject","_class_wxBitmapDataObject",0}, | |
555 | { "_class_wxPyCommandEvent","_wxPyCommandEvent",0}, | |
325274bb RD |
556 | { "_wxBMPHandler","_class_wxBMPHandler",0}, |
557 | { "_wxImage","_class_wxImage",0}, | |
d2103cf2 | 558 | { "_wxPrintQuality","_wxCoord",0}, |
325274bb RD |
559 | { "_wxPrintQuality","_int",0}, |
560 | { "_wxPrintQuality","_signed_int",0}, | |
561 | { "_wxPrintQuality","_unsigned_int",0}, | |
562 | { "_wxPrintQuality","_wxWindowID",0}, | |
563 | { "_wxPrintQuality","_uint",0}, | |
564 | { "_wxPrintQuality","_EBool",0}, | |
565 | { "_wxPrintQuality","_size_t",0}, | |
d2103cf2 | 566 | { "_class_wxCustomDataObject","_wxCustomDataObject",0}, |
325274bb | 567 | { "_wxFontData","_class_wxFontData",0}, |
325274bb | 568 | { "_class_wxRegionIterator","_wxRegionIterator",0}, |
d2103cf2 | 569 | { "_class_wxPyTextDropTarget","_wxPyTextDropTarget",0}, |
325274bb RD |
570 | { "_class_wxMenuBar","_wxMenuBar",0}, |
571 | { "_class_wxPyTreeItemData","_wxPyTreeItemData",0}, | |
d2103cf2 | 572 | { "_class_wxStaticBoxSizer","_wxStaticBoxSizer",0}, |
325274bb RD |
573 | { "_class_wxEvtHandler","_class_wxGLCanvas",SwigwxGLCanvasTowxEvtHandler}, |
574 | { "_class_wxEvtHandler","_wxGLCanvas",SwigwxGLCanvasTowxEvtHandler}, | |
575 | { "_class_wxEvtHandler","_wxEvtHandler",0}, | |
576 | { "_wxPaintEvent","_class_wxPaintEvent",0}, | |
577 | { "_wxGIFHandler","_class_wxGIFHandler",0}, | |
d2103cf2 | 578 | { "_wxPySizer","_class_wxPySizer",0}, |
325274bb RD |
579 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, |
580 | { "_wxCursor","_class_wxCursor",0}, | |
581 | { "_wxNotifyEvent","_class_wxNotifyEvent",0}, | |
582 | { "_wxImageHandler","_class_wxImageHandler",0}, | |
d2103cf2 | 583 | { "_class_wxToolBarBase","_wxToolBarBase",0}, |
325274bb RD |
584 | { "_class_wxTreeCtrl","_wxTreeCtrl",0}, |
585 | { "_wxMask","_class_wxMask",0}, | |
586 | { "_wxToolTip","_class_wxToolTip",0}, | |
587 | { "_wxGrid","_class_wxGrid",0}, | |
588 | { "_wxPNGHandler","_class_wxPNGHandler",0}, | |
589 | { "_class_wxColourData","_wxColourData",0}, | |
590 | { "_class_wxPageSetupDialogData","_wxPageSetupDialogData",0}, | |
591 | { "_wxPrinter","_class_wxPrinter",0}, | |
325274bb RD |
592 | { "_wxPen","_class_wxPen",0}, |
593 | { "_wxUpdateUIEvent","_class_wxUpdateUIEvent",0}, | |
325274bb | 594 | { "_byte","_unsigned_char",0}, |
d2103cf2 RD |
595 | { "_wxDataObject","_class_wxDataObject",0}, |
596 | { "_class_wxPyFontEnumerator","_wxPyFontEnumerator",0}, | |
325274bb | 597 | { "_wxStaticBox","_class_wxStaticBox",0}, |
d2103cf2 RD |
598 | { "_wxPyDataObjectSimple","_class_wxPyDataObjectSimple",0}, |
599 | { "_wxPyDropSource","_class_wxPyDropSource",0}, | |
325274bb RD |
600 | { "_wxChoice","_class_wxChoice",0}, |
601 | { "_wxSlider","_class_wxSlider",0}, | |
602 | { "_wxNotebookEvent","_class_wxNotebookEvent",0}, | |
603 | { "_wxPyPrintout","_class_wxPyPrintout",0}, | |
604 | { "_long","_wxDash",0}, | |
605 | { "_long","_unsigned_long",0}, | |
606 | { "_long","_signed_long",0}, | |
607 | { "_wxImageList","_class_wxImageList",0}, | |
d2103cf2 | 608 | { "_wxDataObjectSimple","_class_wxDataObjectSimple",0}, |
325274bb RD |
609 | { "_wxDropFilesEvent","_class_wxDropFilesEvent",0}, |
610 | { "_wxBitmapButton","_class_wxBitmapButton",0}, | |
611 | { "_wxSashWindow","_class_wxSashWindow",0}, | |
d2103cf2 RD |
612 | { "_class_wxSizer","_wxSizer",0}, |
613 | { "_class_wxTIFFHandler","_wxTIFFHandler",0}, | |
325274bb RD |
614 | { "_class_wxPrintDialogData","_wxPrintDialogData",0}, |
615 | { "_wxGLContext","_class_wxGLContext",0}, | |
616 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, | |
d2103cf2 | 617 | { "_class_wxClipboard","_wxClipboard",0}, |
325274bb RD |
618 | { "_class_wxGauge","_wxGauge",0}, |
619 | { "_class_wxSashEvent","_wxSashEvent",0}, | |
325274bb | 620 | { "_wxDC","_class_wxDC",0}, |
d2103cf2 RD |
621 | { "_wxSizerItem","_class_wxSizerItem",0}, |
622 | { "_class_wxBitmapDataObject","_wxBitmapDataObject",0}, | |
325274bb RD |
623 | { "_wxListEvent","_class_wxListEvent",0}, |
624 | { "_class_wxSingleChoiceDialog","_wxSingleChoiceDialog",0}, | |
625 | { "_wxProgressDialog","_class_wxProgressDialog",0}, | |
626 | { "_class_wxBMPHandler","_wxBMPHandler",0}, | |
627 | { "_wxPrintPreview","_class_wxPrintPreview",0}, | |
628 | { "_wxSpinEvent","_class_wxSpinEvent",0}, | |
629 | { "_wxSashLayoutWindow","_class_wxSashLayoutWindow",0}, | |
d2103cf2 | 630 | { "_size_t","_wxCoord",0}, |
325274bb RD |
631 | { "_size_t","_wxPrintQuality",0}, |
632 | { "_size_t","_unsigned_int",0}, | |
633 | { "_size_t","_int",0}, | |
634 | { "_size_t","_wxWindowID",0}, | |
635 | { "_size_t","_uint",0}, | |
636 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
d2103cf2 RD |
637 | { "_wxNavigationKeyEvent","_class_wxNavigationKeyEvent",0}, |
638 | { "_wxPNMHandler","_class_wxPNMHandler",0}, | |
325274bb | 639 | { "_wxPrinterDC","_class_wxPrinterDC",0}, |
d2103cf2 | 640 | { "_wxWindowCreateEvent","_class_wxWindowCreateEvent",0}, |
325274bb RD |
641 | { "_class_wxMenuItem","_wxMenuItem",0}, |
642 | { "_class_wxPaintEvent","_wxPaintEvent",0}, | |
643 | { "_wxSysColourChangedEvent","_class_wxSysColourChangedEvent",0}, | |
644 | { "_class_wxStatusBar","_wxStatusBar",0}, | |
645 | { "_class_wxGIFHandler","_wxGIFHandler",0}, | |
d2103cf2 | 646 | { "_class_wxPySizer","_wxPySizer",0}, |
325274bb RD |
647 | { "_wxPanel","_class_wxGLCanvas",SwigwxGLCanvasTowxPanel}, |
648 | { "_wxPanel","_wxGLCanvas",SwigwxGLCanvasTowxPanel}, | |
649 | { "_wxPanel","_class_wxPanel",0}, | |
650 | { "_wxInitDialogEvent","_class_wxInitDialogEvent",0}, | |
651 | { "_wxCheckBox","_class_wxCheckBox",0}, | |
652 | { "_wxPyEvent","_class_wxPyEvent",0}, | |
653 | { "_wxTextCtrl","_class_wxTextCtrl",0}, | |
325274bb | 654 | { "_class_wxMask","_wxMask",0}, |
d2103cf2 | 655 | { "_wxTextDataObject","_class_wxTextDataObject",0}, |
325274bb | 656 | { "_class_wxKeyEvent","_wxKeyEvent",0}, |
d2103cf2 | 657 | { "_class_wxToolTip","_wxToolTip",0}, |
325274bb RD |
658 | { "_class_wxGrid","_wxGrid",0}, |
659 | { "_class_wxPNGHandler","_wxPNGHandler",0}, | |
660 | { "_wxColour","_class_wxColour",0}, | |
661 | { "_class_wxDialog","_wxDialog",0}, | |
d2103cf2 | 662 | { "_wxBusyCursor","_class_wxBusyCursor",0}, |
325274bb RD |
663 | { "_wxPageSetupDialog","_class_wxPageSetupDialog",0}, |
664 | { "_class_wxPrinter","_wxPrinter",0}, | |
d2103cf2 | 665 | { "_class_wxFileDataObject","_wxFileDataObject",0}, |
325274bb RD |
666 | { "_wxIdleEvent","_class_wxIdleEvent",0}, |
667 | { "_class_wxUpdateUIEvent","_wxUpdateUIEvent",0}, | |
668 | { "_wxToolBar","_class_wxToolBar",0}, | |
d2103cf2 RD |
669 | { "_class_wxDataObject","_wxDataObject",0}, |
670 | { "_wxCaret","_class_wxCaret",0}, | |
325274bb RD |
671 | { "_wxStaticLine","_class_wxStaticLine",0}, |
672 | { "_class_wxLayoutAlgorithm","_wxLayoutAlgorithm",0}, | |
673 | { "_wxBrush","_class_wxBrush",0}, | |
674 | { "_wxMiniFrame","_class_wxMiniFrame",0}, | |
675 | { "_class_wxNotebookEvent","_wxNotebookEvent",0}, | |
676 | { "_class_wxPyPrintout","_wxPyPrintout",0}, | |
d2103cf2 RD |
677 | { "_wxDataFormat","_class_wxDataFormat",0}, |
678 | { "_class_wxDataObjectSimple","_wxDataObjectSimple",0}, | |
325274bb | 679 | { "_class_wxSashWindow","_wxSashWindow",0}, |
325274bb | 680 | { "_wxShowEvent","_class_wxShowEvent",0}, |
d2103cf2 | 681 | { "_uint","_wxCoord",0}, |
325274bb RD |
682 | { "_uint","_wxPrintQuality",0}, |
683 | { "_uint","_size_t",0}, | |
684 | { "_uint","_unsigned_int",0}, | |
685 | { "_uint","_int",0}, | |
686 | { "_uint","_wxWindowID",0}, | |
d2103cf2 | 687 | { "_wxPyValidator","_class_wxPyValidator",0}, |
325274bb RD |
688 | { "_class_wxEvent","_wxEvent",0}, |
689 | { "_wxCheckListBox","_class_wxCheckListBox",0}, | |
690 | { "_wxSplitterEvent","_class_wxSplitterEvent",0}, | |
691 | { "_wxGridEvent","_class_wxGridEvent",0}, | |
692 | { "_wxRect","_class_wxRect",0}, | |
693 | { "_wxCommandEvent","_class_wxCommandEvent",0}, | |
694 | { "_wxSizeEvent","_class_wxSizeEvent",0}, | |
695 | { "_class_wxImage","_wxImage",0}, | |
325274bb RD |
696 | { "_wxPoint","_class_wxPoint",0}, |
697 | { "_class_wxSashLayoutWindow","_wxSashLayoutWindow",0}, | |
698 | { "_class_wxButton","_wxButton",0}, | |
699 | { "_wxRadioBox","_class_wxRadioBox",0}, | |
700 | { "_class_wxFontData","_wxFontData",0}, | |
d2103cf2 RD |
701 | { "_class_wxPNMHandler","_wxPNMHandler",0}, |
702 | { "_wxBoxSizer","_class_wxBoxSizer",0}, | |
325274bb RD |
703 | { "_wxBitmap","_class_wxBitmap",0}, |
704 | { "_wxTaskBarIcon","_class_wxTaskBarIcon",0}, | |
705 | { "_wxPrintDialog","_class_wxPrintDialog",0}, | |
706 | { "_wxPyTimer","_class_wxPyTimer",0}, | |
707 | { "_wxWindowDC","_class_wxWindowDC",0}, | |
708 | { "_wxScrollBar","_class_wxScrollBar",0}, | |
709 | { "_wxSpinButton","_class_wxSpinButton",0}, | |
325274bb RD |
710 | { "_wxColourDialog","_class_wxColourDialog",0}, |
711 | { "_wxPrintData","_class_wxPrintData",0}, | |
712 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
713 | { "_class_wxNotifyEvent","_wxNotifyEvent",0}, | |
714 | { "_wxMessageDialog","_class_wxMessageDialog",0}, | |
d2103cf2 | 715 | { "_class_wxValidator","_wxValidator",0}, |
325274bb RD |
716 | { "_class_wxPyEvent","_wxPyEvent",0}, |
717 | { "_wxTextEntryDialog","_class_wxTextEntryDialog",0}, | |
718 | { "_class_wxIconizeEvent","_wxIconizeEvent",0}, | |
719 | { "_class_wxStaticBitmap","_wxStaticBitmap",0}, | |
d2103cf2 RD |
720 | { "_class_wxBusyCursor","_wxBusyCursor",0}, |
721 | { "_wxToolBarSimple","_class_wxToolBarSimple",0}, | |
325274bb RD |
722 | { "_wxMDIChildFrame","_class_wxMDIChildFrame",0}, |
723 | { "_wxListItem","_class_wxListItem",0}, | |
724 | { "_class_wxToolBar","_wxToolBar",0}, | |
d2103cf2 | 725 | { "_wxDropTarget","_class_wxDropTarget",0}, |
325274bb RD |
726 | { "_class_wxStaticLine","_wxStaticLine",0}, |
727 | { "_wxScrollEvent","_class_wxScrollEvent",0}, | |
d2103cf2 | 728 | { "_wxToolBarToolBase","_class_wxToolBarToolBase",0}, |
325274bb | 729 | { "_wxCalculateLayoutEvent","_class_wxCalculateLayoutEvent",0}, |
d2103cf2 | 730 | { "_EBool","_wxCoord",0}, |
325274bb RD |
731 | { "_EBool","_wxPrintQuality",0}, |
732 | { "_EBool","_signed_int",0}, | |
733 | { "_EBool","_int",0}, | |
734 | { "_EBool","_wxWindowID",0}, | |
735 | { "_class_wxRegion","_wxRegion",0}, | |
d2103cf2 | 736 | { "_class_wxDataFormat","_wxDataFormat",0}, |
325274bb | 737 | { "_class_wxDropFilesEvent","_wxDropFilesEvent",0}, |
d2103cf2 | 738 | { "_wxWindowDestroyEvent","_class_wxWindowDestroyEvent",0}, |
325274bb RD |
739 | { "_class_wxPreviewFrame","_wxPreviewFrame",0}, |
740 | { "_wxStaticText","_class_wxStaticText",0}, | |
741 | { "_wxFont","_class_wxFont",0}, | |
d2103cf2 | 742 | { "_class_wxPyDropTarget","_wxPyDropTarget",0}, |
325274bb RD |
743 | { "_wxCloseEvent","_class_wxCloseEvent",0}, |
744 | { "_class_wxSplitterEvent","_wxSplitterEvent",0}, | |
745 | { "_wxNotebook","_class_wxNotebook",0}, | |
746 | { "_unsigned_long","_wxDash",0}, | |
747 | { "_unsigned_long","_long",0}, | |
748 | { "_class_wxRect","_wxRect",0}, | |
749 | { "_class_wxDC","_wxDC",0}, | |
d2103cf2 | 750 | { "_wxScrollWinEvent","_class_wxScrollWinEvent",0}, |
325274bb | 751 | { "_class_wxProgressDialog","_wxProgressDialog",0}, |
d2103cf2 | 752 | { "_wxQueryNewPaletteEvent","_class_wxQueryNewPaletteEvent",0}, |
325274bb | 753 | { "_wxPyApp","_class_wxPyApp",0}, |
d2103cf2 | 754 | { "_class_wxWindowCreateEvent","_wxWindowCreateEvent",0}, |
325274bb RD |
755 | { "_wxMDIParentFrame","_class_wxMDIParentFrame",0}, |
756 | { "_class_wxTreeEvent","_wxTreeEvent",0}, | |
757 | { "_class_wxDirDialog","_wxDirDialog",0}, | |
758 | { "_class_wxPyTimer","_wxPyTimer",0}, | |
759 | { "_wxFocusEvent","_class_wxFocusEvent",0}, | |
760 | { "_wxMaximizeEvent","_class_wxMaximizeEvent",0}, | |
761 | { "_class_wxSpinButton","_wxSpinButton",0}, | |
762 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, | |
763 | { "_class_wxPanel","_class_wxGLCanvas",SwigwxGLCanvasTowxPanel}, | |
764 | { "_class_wxPanel","_wxGLCanvas",SwigwxGLCanvasTowxPanel}, | |
765 | { "_class_wxPanel","_wxPanel",0}, | |
766 | { "_class_wxCheckBox","_wxCheckBox",0}, | |
767 | { "_wxComboBox","_class_wxComboBox",0}, | |
768 | { "_wxRadioButton","_class_wxRadioButton",0}, | |
769 | { "_class_wxMessageDialog","_wxMessageDialog",0}, | |
d2103cf2 | 770 | { "_signed_int","_wxCoord",0}, |
325274bb RD |
771 | { "_signed_int","_wxPrintQuality",0}, |
772 | { "_signed_int","_EBool",0}, | |
773 | { "_signed_int","_wxWindowID",0}, | |
774 | { "_signed_int","_int",0}, | |
775 | { "_class_wxTextCtrl","_wxTextCtrl",0}, | |
325274bb RD |
776 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, |
777 | { "_wxMetaFileDC","_class_wxMetaFileDC",0}, | |
d2103cf2 | 778 | { "_class_wxTextDataObject","_wxTextDataObject",0}, |
325274bb RD |
779 | { "_wxMenu","_class_wxMenu",0}, |
780 | { "_class_wxMoveEvent","_wxMoveEvent",0}, | |
781 | { "_wxListBox","_class_wxListBox",0}, | |
782 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
d2103cf2 | 783 | { "_class_wxToolBarSimple","_wxToolBarSimple",0}, |
325274bb | 784 | { "_class_wxMDIChildFrame","_wxMDIChildFrame",0}, |
325274bb RD |
785 | { "_WXTYPE","_short",0}, |
786 | { "_WXTYPE","_signed_short",0}, | |
787 | { "_WXTYPE","_unsigned_short",0}, | |
788 | { "_wxFileDialog","_class_wxFileDialog",0}, | |
d2103cf2 RD |
789 | { "_class_wxDropTarget","_wxDropTarget",0}, |
790 | { "_class_wxCaret","_wxCaret",0}, | |
325274bb RD |
791 | { "_class_wxMDIClientWindow","_wxMDIClientWindow",0}, |
792 | { "_class_wxBrush","_wxBrush",0}, | |
325274bb RD |
793 | { "_unsigned_short","_WXTYPE",0}, |
794 | { "_unsigned_short","_short",0}, | |
795 | { "_class_wxWindow","_class_wxGLCanvas",SwigwxGLCanvasTowxWindow}, | |
796 | { "_class_wxWindow","_wxGLCanvas",SwigwxGLCanvasTowxWindow}, | |
797 | { "_class_wxWindow","_wxWindow",0}, | |
798 | { "_wxSplitterWindow","_class_wxSplitterWindow",0}, | |
799 | { "_class_wxStaticText","_wxStaticText",0}, | |
800 | { "_wxPrintDialogData","_class_wxPrintDialogData",0}, | |
325274bb | 801 | { "_class_wxFont","_wxFont",0}, |
d2103cf2 RD |
802 | { "_wxClipboard","_class_wxClipboard",0}, |
803 | { "_class_wxPyValidator","_wxPyValidator",0}, | |
325274bb RD |
804 | { "_class_wxCloseEvent","_wxCloseEvent",0}, |
805 | { "_wxSashEvent","_class_wxSashEvent",0}, | |
d2103cf2 | 806 | { "_wxBusyInfo","_class_wxBusyInfo",0}, |
325274bb | 807 | { "_class_wxMenuEvent","_wxMenuEvent",0}, |
d2103cf2 RD |
808 | { "_wxPaletteChangedEvent","_class_wxPaletteChangedEvent",0}, |
809 | { "_class_wxPyBitmapDataObject","_wxPyBitmapDataObject",0}, | |
325274bb RD |
810 | { "_wxClientDC","_class_wxClientDC",0}, |
811 | { "_wxMouseEvent","_class_wxMouseEvent",0}, | |
812 | { "_wxListCtrl","_class_wxListCtrl",0}, | |
813 | { "_wxSingleChoiceDialog","_class_wxSingleChoiceDialog",0}, | |
814 | { "_wxGLCanvas","_class_wxGLCanvas",0}, | |
815 | { "_class_wxPoint","_wxPoint",0}, | |
816 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
817 | { "_class_wxRadioBox","_wxRadioBox",0}, | |
818 | { "_wxGridCell","_class_wxGridCell",0}, | |
d2103cf2 | 819 | { "_class_wxBoxSizer","_wxBoxSizer",0}, |
325274bb RD |
820 | { "_signed_short","_WXTYPE",0}, |
821 | { "_signed_short","_short",0}, | |
822 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
d2103cf2 | 823 | { "_wxPyTextDataObject","_class_wxPyTextDataObject",0}, |
325274bb RD |
824 | { "_class_wxTaskBarIcon","_wxTaskBarIcon",0}, |
825 | { "_class_wxPrintDialog","_wxPrintDialog",0}, | |
826 | { "_wxPaintDC","_class_wxPaintDC",0}, | |
827 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
828 | { "_class_wxFocusEvent","_wxFocusEvent",0}, | |
829 | { "_class_wxMaximizeEvent","_wxMaximizeEvent",0}, | |
830 | { "_wxStatusBar","_class_wxStatusBar",0}, | |
325274bb RD |
831 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, |
832 | { "_class_wxCursor","_wxCursor",0}, | |
d2103cf2 | 833 | { "_wxPyFileDropTarget","_class_wxPyFileDropTarget",0}, |
325274bb RD |
834 | { "_class_wxImageHandler","_wxImageHandler",0}, |
835 | { "_wxScrolledWindow","_class_wxGLCanvas",SwigwxGLCanvasTowxScrolledWindow}, | |
836 | { "_wxScrolledWindow","_wxGLCanvas",SwigwxGLCanvasTowxScrolledWindow}, | |
837 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, | |
838 | { "_wxTreeItemId","_class_wxTreeItemId",0}, | |
325274bb RD |
839 | { "_unsigned_char","_byte",0}, |
840 | { "_class_wxMetaFileDC","_wxMetaFileDC",0}, | |
841 | { "_class_wxMenu","_wxMenu",0}, | |
842 | { "_wxControl","_class_wxControl",0}, | |
843 | { "_class_wxListBox","_wxListBox",0}, | |
d2103cf2 | 844 | { "_unsigned_int","_wxCoord",0}, |
325274bb RD |
845 | { "_unsigned_int","_wxPrintQuality",0}, |
846 | { "_unsigned_int","_size_t",0}, | |
847 | { "_unsigned_int","_uint",0}, | |
848 | { "_unsigned_int","_wxWindowID",0}, | |
849 | { "_unsigned_int","_int",0}, | |
850 | { "_wxIcon","_class_wxIcon",0}, | |
851 | { "_wxDialog","_class_wxDialog",0}, | |
852 | { "_class_wxListItem","_wxListItem",0}, | |
325274bb RD |
853 | { "_class_wxPen","_wxPen",0}, |
854 | { "_class_wxFileDialog","_wxFileDialog",0}, | |
855 | { "_wxQueryLayoutInfoEvent","_class_wxQueryLayoutInfoEvent",0}, | |
325274bb RD |
856 | { "_short","_WXTYPE",0}, |
857 | { "_short","_unsigned_short",0}, | |
858 | { "_short","_signed_short",0}, | |
859 | { "_class_wxStaticBox","_wxStaticBox",0}, | |
860 | { "_wxLayoutAlgorithm","_class_wxLayoutAlgorithm",0}, | |
d2103cf2 RD |
861 | { "_class_wxPyDataObjectSimple","_wxPyDataObjectSimple",0}, |
862 | { "_class_wxPyDropSource","_wxPyDropSource",0}, | |
325274bb RD |
863 | { "_class_wxScrollEvent","_wxScrollEvent",0}, |
864 | { "_wxJoystickEvent","_class_wxJoystickEvent",0}, | |
865 | { "_class_wxChoice","_wxChoice",0}, | |
866 | { "_class_wxSlider","_wxSlider",0}, | |
867 | { "_class_wxCalculateLayoutEvent","_wxCalculateLayoutEvent",0}, | |
868 | { "_class_wxImageList","_wxImageList",0}, | |
869 | { "_class_wxBitmapButton","_wxBitmapButton",0}, | |
870 | { "_wxFrame","_class_wxFrame",0}, | |
d2103cf2 | 871 | { "_wxPCXHandler","_class_wxPCXHandler",0}, |
325274bb | 872 | { "_class_wxGLContext","_wxGLContext",0}, |
d2103cf2 | 873 | { "_class_wxPaletteChangedEvent","_wxPaletteChangedEvent",0}, |
325274bb RD |
874 | { "_class_wxNotebook","_wxNotebook",0}, |
875 | { "_wxJPEGHandler","_class_wxJPEGHandler",0}, | |
d2103cf2 | 876 | { "_wxWindowID","_wxCoord",0}, |
325274bb RD |
877 | { "_wxWindowID","_wxPrintQuality",0}, |
878 | { "_wxWindowID","_size_t",0}, | |
879 | { "_wxWindowID","_EBool",0}, | |
880 | { "_wxWindowID","_uint",0}, | |
881 | { "_wxWindowID","_int",0}, | |
882 | { "_wxWindowID","_signed_int",0}, | |
883 | { "_wxWindowID","_unsigned_int",0}, | |
d2103cf2 RD |
884 | { "_class_wxScrollWinEvent","_wxScrollWinEvent",0}, |
885 | { "_class_wxSizerItem","_wxSizerItem",0}, | |
886 | { "_int","_wxCoord",0}, | |
325274bb RD |
887 | { "_int","_wxPrintQuality",0}, |
888 | { "_int","_size_t",0}, | |
889 | { "_int","_EBool",0}, | |
890 | { "_int","_uint",0}, | |
891 | { "_int","_wxWindowID",0}, | |
892 | { "_int","_unsigned_int",0}, | |
893 | { "_int","_signed_int",0}, | |
894 | { "_class_wxMouseEvent","_wxMouseEvent",0}, | |
d2103cf2 | 895 | { "_wxPyCommandEvent","_class_wxPyCommandEvent",0}, |
325274bb RD |
896 | { "_class_wxListEvent","_wxListEvent",0}, |
897 | { "_class_wxPrintPreview","_wxPrintPreview",0}, | |
898 | { "_class_wxSpinEvent","_wxSpinEvent",0}, | |
d2103cf2 RD |
899 | { "_class_wxQueryNewPaletteEvent","_wxQueryNewPaletteEvent",0}, |
900 | { "_class_wxNavigationKeyEvent","_wxNavigationKeyEvent",0}, | |
325274bb RD |
901 | { "_wxButton","_class_wxButton",0}, |
902 | { "_class_wxPyApp","_wxPyApp",0}, | |
903 | { "_wxSize","_class_wxSize",0}, | |
904 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
905 | { "_class_wxPrinterDC","_wxPrinterDC",0}, | |
d2103cf2 | 906 | { "_class_wxPyTextDataObject","_wxPyTextDataObject",0}, |
325274bb RD |
907 | { "_class_wxMDIParentFrame","_wxMDIParentFrame",0}, |
908 | { "_wxPyTreeItemData","_class_wxPyTreeItemData",0}, | |
d2103cf2 | 909 | { "_wxStaticBoxSizer","_class_wxStaticBoxSizer",0}, |
325274bb RD |
910 | { "_class_wxPaintDC","_wxPaintDC",0}, |
911 | { "_class_wxSysColourChangedEvent","_wxSysColourChangedEvent",0}, | |
d2103cf2 | 912 | { "_class_wxPyFileDropTarget","_wxPyFileDropTarget",0}, |
325274bb RD |
913 | { "_class_wxInitDialogEvent","_wxInitDialogEvent",0}, |
914 | { "_class_wxComboBox","_wxComboBox",0}, | |
915 | { "_class_wxRadioButton","_wxRadioButton",0}, | |
d2103cf2 RD |
916 | { "_wxValidator","_class_wxValidator",0}, |
917 | { "_wxToolBarBase","_class_wxToolBarBase",0}, | |
325274bb RD |
918 | { "_class_wxTreeItemId","_wxTreeItemId",0}, |
919 | { "_wxTreeCtrl","_class_wxTreeCtrl",0}, | |
920 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, | |
921 | { "_wxIconizeEvent","_class_wxIconizeEvent",0}, | |
922 | { "_class_wxControl","_wxControl",0}, | |
923 | { "_wxStaticBitmap","_class_wxStaticBitmap",0}, | |
924 | { "_class_wxIcon","_wxIcon",0}, | |
925 | { "_class_wxColour","_wxColour",0}, | |
926 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
927 | { "_class_wxPageSetupDialog","_wxPageSetupDialog",0}, | |
928 | { "_wxPalette","_class_wxPalette",0}, | |
929 | { "_class_wxIdleEvent","_wxIdleEvent",0}, | |
d2103cf2 RD |
930 | { "_wxCoord","_int",0}, |
931 | { "_wxCoord","_signed_int",0}, | |
932 | { "_wxCoord","_unsigned_int",0}, | |
933 | { "_wxCoord","_wxWindowID",0}, | |
934 | { "_wxCoord","_uint",0}, | |
935 | { "_wxCoord","_EBool",0}, | |
936 | { "_wxCoord","_size_t",0}, | |
937 | { "_wxCoord","_wxPrintQuality",0}, | |
325274bb | 938 | { "_wxEraseEvent","_class_wxEraseEvent",0}, |
d2103cf2 | 939 | { "_wxDataObjectComposite","_class_wxDataObjectComposite",0}, |
325274bb RD |
940 | { "_class_wxJoystickEvent","_wxJoystickEvent",0}, |
941 | { "_class_wxMiniFrame","_wxMiniFrame",0}, | |
942 | { "_wxFontDialog","_class_wxFontDialog",0}, | |
943 | { "_wxRegion","_class_wxRegion",0}, | |
944 | { "_class_wxSplitterWindow","_wxSplitterWindow",0}, | |
945 | { "_wxPreviewFrame","_class_wxPreviewFrame",0}, | |
d2103cf2 | 946 | { "_wxSizer","_class_wxSizer",0}, |
325274bb | 947 | { "_class_wxShowEvent","_wxShowEvent",0}, |
d2103cf2 RD |
948 | { "_class_wxPCXHandler","_wxPCXHandler",0}, |
949 | { "_wxTIFFHandler","_class_wxTIFFHandler",0}, | |
950 | { "_wxPyDropTarget","_class_wxPyDropTarget",0}, | |
325274bb RD |
951 | { "_wxActivateEvent","_class_wxActivateEvent",0}, |
952 | { "_wxGauge","_class_wxGauge",0}, | |
953 | { "_class_wxCheckListBox","_wxCheckListBox",0}, | |
d2103cf2 | 954 | { "_class_wxBusyInfo","_wxBusyInfo",0}, |
325274bb RD |
955 | { "_class_wxGridEvent","_wxGridEvent",0}, |
956 | { "_class_wxCommandEvent","_wxCommandEvent",0}, | |
325274bb RD |
957 | { "_class_wxClientDC","_wxClientDC",0}, |
958 | { "_class_wxSizeEvent","_wxSizeEvent",0}, | |
959 | { "_class_wxListCtrl","_wxListCtrl",0}, | |
960 | { "_class_wxGLCanvas","_wxGLCanvas",0}, | |
d2103cf2 | 961 | { "_wxCustomDataObject","_class_wxCustomDataObject",0}, |
325274bb RD |
962 | { "_class_wxGridCell","_wxGridCell",0}, |
963 | { "_class_wxSize","_wxSize",0}, | |
964 | { "_class_wxBitmap","_wxBitmap",0}, | |
965 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
d2103cf2 | 966 | { "_wxPyTextDropTarget","_class_wxPyTextDropTarget",0}, |
325274bb RD |
967 | { "_wxMenuBar","_class_wxMenuBar",0}, |
968 | { "_wxTreeEvent","_class_wxTreeEvent",0}, | |
969 | { "_wxDirDialog","_class_wxDirDialog",0}, | |
970 | { "_wxEvtHandler","_class_wxGLCanvas",SwigwxGLCanvasTowxEvtHandler}, | |
971 | { "_wxEvtHandler","_wxGLCanvas",SwigwxGLCanvasTowxEvtHandler}, | |
972 | { "_wxEvtHandler","_class_wxEvtHandler",0}, | |
973 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
974 | { "_class_wxScrollBar","_wxScrollBar",0}, | |
975 | { "_class_wxColourDialog","_wxColourDialog",0}, | |
976 | { "_class_wxPrintData","_wxPrintData",0}, | |
977 | { "_wxDash","_unsigned_long",0}, | |
978 | { "_wxDash","_long",0}, | |
979 | { "_class_wxScrolledWindow","_class_wxGLCanvas",SwigwxGLCanvasTowxScrolledWindow}, | |
980 | { "_class_wxScrolledWindow","_wxGLCanvas",SwigwxGLCanvasTowxScrolledWindow}, | |
981 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, | |
982 | { "_class_wxTextEntryDialog","_wxTextEntryDialog",0}, | |
983 | { "_wxKeyEvent","_class_wxKeyEvent",0}, | |
984 | { "_wxMoveEvent","_class_wxMoveEvent",0}, | |
985 | { "_wxColourData","_class_wxColourData",0}, | |
986 | { "_wxPageSetupDialogData","_class_wxPageSetupDialogData",0}, | |
987 | { "_class_wxPalette","_wxPalette",0}, | |
d2103cf2 | 988 | { "_wxFileDataObject","_class_wxFileDataObject",0}, |
325274bb RD |
989 | { "_class_wxQueryLayoutInfoEvent","_wxQueryLayoutInfoEvent",0}, |
990 | { "_class_wxEraseEvent","_wxEraseEvent",0}, | |
d2103cf2 | 991 | { "_wxPyFontEnumerator","_class_wxPyFontEnumerator",0}, |
325274bb | 992 | { "_wxMDIClientWindow","_class_wxMDIClientWindow",0}, |
d2103cf2 RD |
993 | { "_class_wxDataObjectComposite","_wxDataObjectComposite",0}, |
994 | { "_class_wxToolBarToolBase","_wxToolBarToolBase",0}, | |
325274bb RD |
995 | { "_class_wxFontDialog","_wxFontDialog",0}, |
996 | { "_wxWindow","_class_wxGLCanvas",SwigwxGLCanvasTowxWindow}, | |
997 | { "_wxWindow","_wxGLCanvas",SwigwxGLCanvasTowxWindow}, | |
998 | { "_wxWindow","_class_wxWindow",0}, | |
d2103cf2 | 999 | { "_class_wxWindowDestroyEvent","_wxWindowDestroyEvent",0}, |
325274bb RD |
1000 | { "_class_wxFrame","_wxFrame",0}, |
1001 | {0,0,0}}; | |
1002 | ||
1003 | static PyObject *SWIG_globals; | |
1004 | #ifdef __cplusplus | |
1005 | extern "C" | |
1006 | #endif | |
1007 | SWIGEXPORT(void) initglcanvasc() { | |
1008 | PyObject *m, *d; | |
1009 | SWIG_globals = SWIG_newvarlink(); | |
1010 | m = Py_InitModule("glcanvasc", glcanvascMethods); | |
1011 | d = PyModule_GetDict(m); | |
325274bb RD |
1012 | |
1013 | ||
1014 | wxClassInfo::CleanUpClasses(); | |
1015 | wxClassInfo::InitializeClasses(); | |
1016 | ||
1017 | { | |
1018 | int i; | |
1019 | for (i = 0; _swig_mapping[i].n1; i++) | |
1020 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
1021 | } | |
1022 | } |