]>
Commit | Line | Data |
---|---|---|
ab9bc19b RD |
1 | /* |
2 | * FILE : gtk/image.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Patch 5) | |
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,b) __declspec(dllexport) a b | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a,b) a _export b | |
31 | # else | |
32 | # define SWIGEXPORT(a,b) a b | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a,b) a b | |
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 void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
47 | extern PyObject *SWIG_newvarlink(void); | |
48 | #ifdef __cplusplus | |
49 | } | |
50 | #endif | |
51 | ||
52 | #define SWIG_init initimagec | |
53 | ||
54 | #define SWIG_name "imagec" | |
55 | ||
56 | #include "helpers.h" | |
57 | #include <wx/image.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 | ||
106 | ||
107 | extern byte* byte_LIST_helper(PyObject* source); | |
108 | extern int* int_LIST_helper(PyObject* source); | |
109 | extern long* long_LIST_helper(PyObject* source); | |
110 | extern char** string_LIST_helper(PyObject* source); | |
111 | extern wxPoint* wxPoint_LIST_helper(PyObject* source); | |
112 | extern wxBitmap** wxBitmap_LIST_helper(PyObject* source); | |
113 | extern wxString* wxString_LIST_helper(PyObject* source); | |
114 | extern wxAcceleratorEntry* wxAcceleratorEntry_LIST_helper(PyObject* source); | |
115 | ||
116 | ||
117 | static char* wxStringErrorMsg = "string type is required for parameter"; | |
118 | ||
119 | wxImage* wxNullImage() { | |
120 | return new wxImage; | |
121 | } | |
122 | ||
123 | wxImage* wxEmptyImage(int width, int height) { | |
124 | return new wxImage(width, height); | |
125 | } | |
126 | ||
127 | wxImage* wxImageFromMime(const wxString& name, const wxString& mimetype) { | |
128 | return new wxImage(name, mimetype); | |
129 | } | |
130 | ||
131 | wxImage* wxImageFromBitmap(const wxBitmap &bitmap) { | |
132 | return new wxImage(bitmap); | |
133 | } | |
134 | ||
135 | void wxImage_AddHandler(wxImageHandler *handler) { | |
136 | wxImage::AddHandler(handler); | |
137 | } | |
138 | static PyObject *_wrap_wxNullImage(PyObject *self, PyObject *args) { | |
139 | PyObject * _resultobj; | |
140 | wxImage * _result; | |
141 | char _ptemp[128]; | |
142 | ||
143 | self = self; | |
144 | if(!PyArg_ParseTuple(args,":wxNullImage")) | |
145 | return NULL; | |
146 | { | |
147 | wxPy_BEGIN_ALLOW_THREADS; | |
148 | _result = (wxImage *)wxNullImage(); | |
149 | ||
150 | wxPy_END_ALLOW_THREADS; | |
151 | } SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p"); | |
152 | _resultobj = Py_BuildValue("s",_ptemp); | |
153 | return _resultobj; | |
154 | } | |
155 | ||
156 | static PyObject *_wrap_wxEmptyImage(PyObject *self, PyObject *args) { | |
157 | PyObject * _resultobj; | |
158 | wxImage * _result; | |
159 | int _arg0; | |
160 | int _arg1; | |
161 | char _ptemp[128]; | |
162 | ||
163 | self = self; | |
164 | if(!PyArg_ParseTuple(args,"ii:wxEmptyImage",&_arg0,&_arg1)) | |
165 | return NULL; | |
166 | { | |
167 | wxPy_BEGIN_ALLOW_THREADS; | |
168 | _result = (wxImage *)wxEmptyImage(_arg0,_arg1); | |
169 | ||
170 | wxPy_END_ALLOW_THREADS; | |
171 | } SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p"); | |
172 | _resultobj = Py_BuildValue("s",_ptemp); | |
173 | return _resultobj; | |
174 | } | |
175 | ||
176 | static PyObject *_wrap_wxImageFromMime(PyObject *self, PyObject *args) { | |
177 | PyObject * _resultobj; | |
178 | wxImage * _result; | |
179 | wxString * _arg0; | |
180 | wxString * _arg1; | |
181 | PyObject * _obj0 = 0; | |
182 | PyObject * _obj1 = 0; | |
183 | char _ptemp[128]; | |
184 | ||
185 | self = self; | |
186 | if(!PyArg_ParseTuple(args,"OO:wxImageFromMime",&_obj0,&_obj1)) | |
187 | return NULL; | |
188 | { | |
189 | if (!PyString_Check(_obj0)) { | |
190 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
191 | return NULL; | |
192 | } | |
193 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
194 | } | |
195 | { | |
196 | if (!PyString_Check(_obj1)) { | |
197 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
198 | return NULL; | |
199 | } | |
200 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
201 | } | |
202 | { | |
203 | wxPy_BEGIN_ALLOW_THREADS; | |
204 | _result = (wxImage *)wxImageFromMime(*_arg0,*_arg1); | |
205 | ||
206 | wxPy_END_ALLOW_THREADS; | |
207 | } SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p"); | |
208 | _resultobj = Py_BuildValue("s",_ptemp); | |
209 | { | |
210 | if (_obj0) | |
211 | delete _arg0; | |
212 | } | |
213 | { | |
214 | if (_obj1) | |
215 | delete _arg1; | |
216 | } | |
217 | return _resultobj; | |
218 | } | |
219 | ||
220 | static PyObject *_wrap_wxImageFromBitmap(PyObject *self, PyObject *args) { | |
221 | PyObject * _resultobj; | |
222 | wxImage * _result; | |
223 | wxBitmap * _arg0; | |
224 | char * _argc0 = 0; | |
225 | char _ptemp[128]; | |
226 | ||
227 | self = self; | |
228 | if(!PyArg_ParseTuple(args,"s:wxImageFromBitmap",&_argc0)) | |
229 | return NULL; | |
230 | if (_argc0) { | |
231 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxBitmap_p")) { | |
232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageFromBitmap. Expected _wxBitmap_p."); | |
233 | return NULL; | |
234 | } | |
235 | } | |
236 | { | |
237 | wxPy_BEGIN_ALLOW_THREADS; | |
238 | _result = (wxImage *)wxImageFromBitmap(*_arg0); | |
239 | ||
240 | wxPy_END_ALLOW_THREADS; | |
241 | } SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p"); | |
242 | _resultobj = Py_BuildValue("s",_ptemp); | |
243 | return _resultobj; | |
244 | } | |
245 | ||
246 | static PyObject *_wrap_wxImage_AddHandler(PyObject *self, PyObject *args) { | |
247 | PyObject * _resultobj; | |
248 | wxImageHandler * _arg0; | |
249 | char * _argc0 = 0; | |
250 | ||
251 | self = self; | |
252 | if(!PyArg_ParseTuple(args,"s:wxImage_AddHandler",&_argc0)) | |
253 | return NULL; | |
254 | if (_argc0) { | |
255 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImageHandler_p")) { | |
256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_AddHandler. Expected _wxImageHandler_p."); | |
257 | return NULL; | |
258 | } | |
259 | } | |
260 | { | |
261 | wxPy_BEGIN_ALLOW_THREADS; | |
262 | wxImage_AddHandler(_arg0); | |
263 | ||
264 | wxPy_END_ALLOW_THREADS; | |
265 | } Py_INCREF(Py_None); | |
266 | _resultobj = Py_None; | |
267 | return _resultobj; | |
268 | } | |
269 | ||
270 | #define new_wxImageHandler() (new wxImageHandler()) | |
271 | static PyObject *_wrap_new_wxImageHandler(PyObject *self, PyObject *args) { | |
272 | PyObject * _resultobj; | |
273 | wxImageHandler * _result; | |
274 | char _ptemp[128]; | |
275 | ||
276 | self = self; | |
277 | if(!PyArg_ParseTuple(args,":new_wxImageHandler")) | |
278 | return NULL; | |
279 | { | |
280 | wxPy_BEGIN_ALLOW_THREADS; | |
281 | _result = (wxImageHandler *)new_wxImageHandler(); | |
282 | ||
283 | wxPy_END_ALLOW_THREADS; | |
284 | } SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageHandler_p"); | |
285 | _resultobj = Py_BuildValue("s",_ptemp); | |
286 | return _resultobj; | |
287 | } | |
288 | ||
289 | #define wxImageHandler_GetName(_swigobj) (_swigobj->GetName()) | |
290 | static PyObject *_wrap_wxImageHandler_GetName(PyObject *self, PyObject *args) { | |
291 | PyObject * _resultobj; | |
292 | wxString * _result; | |
293 | wxImageHandler * _arg0; | |
294 | char * _argc0 = 0; | |
295 | ||
296 | self = self; | |
297 | if(!PyArg_ParseTuple(args,"s:wxImageHandler_GetName",&_argc0)) | |
298 | return NULL; | |
299 | if (_argc0) { | |
300 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImageHandler_p")) { | |
301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetName. Expected _wxImageHandler_p."); | |
302 | return NULL; | |
303 | } | |
304 | } | |
305 | { | |
306 | wxPy_BEGIN_ALLOW_THREADS; | |
307 | _result = new wxString (wxImageHandler_GetName(_arg0)); | |
308 | ||
309 | wxPy_END_ALLOW_THREADS; | |
310 | }{ | |
311 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
312 | } | |
313 | { | |
314 | delete _result; | |
315 | } | |
316 | return _resultobj; | |
317 | } | |
318 | ||
319 | #define wxImageHandler_GetExtension(_swigobj) (_swigobj->GetExtension()) | |
320 | static PyObject *_wrap_wxImageHandler_GetExtension(PyObject *self, PyObject *args) { | |
321 | PyObject * _resultobj; | |
322 | wxString * _result; | |
323 | wxImageHandler * _arg0; | |
324 | char * _argc0 = 0; | |
325 | ||
326 | self = self; | |
327 | if(!PyArg_ParseTuple(args,"s:wxImageHandler_GetExtension",&_argc0)) | |
328 | return NULL; | |
329 | if (_argc0) { | |
330 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImageHandler_p")) { | |
331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetExtension. Expected _wxImageHandler_p."); | |
332 | return NULL; | |
333 | } | |
334 | } | |
335 | { | |
336 | wxPy_BEGIN_ALLOW_THREADS; | |
337 | _result = new wxString (wxImageHandler_GetExtension(_arg0)); | |
338 | ||
339 | wxPy_END_ALLOW_THREADS; | |
340 | }{ | |
341 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
342 | } | |
343 | { | |
344 | delete _result; | |
345 | } | |
346 | return _resultobj; | |
347 | } | |
348 | ||
349 | #define wxImageHandler_GetType(_swigobj) (_swigobj->GetType()) | |
350 | static PyObject *_wrap_wxImageHandler_GetType(PyObject *self, PyObject *args) { | |
351 | PyObject * _resultobj; | |
352 | long _result; | |
353 | wxImageHandler * _arg0; | |
354 | char * _argc0 = 0; | |
355 | ||
356 | self = self; | |
357 | if(!PyArg_ParseTuple(args,"s:wxImageHandler_GetType",&_argc0)) | |
358 | return NULL; | |
359 | if (_argc0) { | |
360 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImageHandler_p")) { | |
361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetType. Expected _wxImageHandler_p."); | |
362 | return NULL; | |
363 | } | |
364 | } | |
365 | { | |
366 | wxPy_BEGIN_ALLOW_THREADS; | |
367 | _result = (long )wxImageHandler_GetType(_arg0); | |
368 | ||
369 | wxPy_END_ALLOW_THREADS; | |
370 | } _resultobj = Py_BuildValue("l",_result); | |
371 | return _resultobj; | |
372 | } | |
373 | ||
374 | #define wxImageHandler_GetMimeType(_swigobj) (_swigobj->GetMimeType()) | |
375 | static PyObject *_wrap_wxImageHandler_GetMimeType(PyObject *self, PyObject *args) { | |
376 | PyObject * _resultobj; | |
377 | wxString * _result; | |
378 | wxImageHandler * _arg0; | |
379 | char * _argc0 = 0; | |
380 | ||
381 | self = self; | |
382 | if(!PyArg_ParseTuple(args,"s:wxImageHandler_GetMimeType",&_argc0)) | |
383 | return NULL; | |
384 | if (_argc0) { | |
385 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImageHandler_p")) { | |
386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_GetMimeType. Expected _wxImageHandler_p."); | |
387 | return NULL; | |
388 | } | |
389 | } | |
390 | { | |
391 | wxPy_BEGIN_ALLOW_THREADS; | |
392 | _result = new wxString (wxImageHandler_GetMimeType(_arg0)); | |
393 | ||
394 | wxPy_END_ALLOW_THREADS; | |
395 | }{ | |
396 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
397 | } | |
398 | { | |
399 | delete _result; | |
400 | } | |
401 | return _resultobj; | |
402 | } | |
403 | ||
404 | #define wxImageHandler_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
405 | static PyObject *_wrap_wxImageHandler_SetName(PyObject *self, PyObject *args) { | |
406 | PyObject * _resultobj; | |
407 | wxImageHandler * _arg0; | |
408 | wxString * _arg1; | |
409 | char * _argc0 = 0; | |
410 | PyObject * _obj1 = 0; | |
411 | ||
412 | self = self; | |
413 | if(!PyArg_ParseTuple(args,"sO:wxImageHandler_SetName",&_argc0,&_obj1)) | |
414 | return NULL; | |
415 | if (_argc0) { | |
416 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImageHandler_p")) { | |
417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetName. Expected _wxImageHandler_p."); | |
418 | return NULL; | |
419 | } | |
420 | } | |
421 | { | |
422 | if (!PyString_Check(_obj1)) { | |
423 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
424 | return NULL; | |
425 | } | |
426 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
427 | } | |
428 | { | |
429 | wxPy_BEGIN_ALLOW_THREADS; | |
430 | wxImageHandler_SetName(_arg0,*_arg1); | |
431 | ||
432 | wxPy_END_ALLOW_THREADS; | |
433 | } Py_INCREF(Py_None); | |
434 | _resultobj = Py_None; | |
435 | { | |
436 | if (_obj1) | |
437 | delete _arg1; | |
438 | } | |
439 | return _resultobj; | |
440 | } | |
441 | ||
442 | #define wxImageHandler_SetExtension(_swigobj,_swigarg0) (_swigobj->SetExtension(_swigarg0)) | |
443 | static PyObject *_wrap_wxImageHandler_SetExtension(PyObject *self, PyObject *args) { | |
444 | PyObject * _resultobj; | |
445 | wxImageHandler * _arg0; | |
446 | wxString * _arg1; | |
447 | char * _argc0 = 0; | |
448 | PyObject * _obj1 = 0; | |
449 | ||
450 | self = self; | |
451 | if(!PyArg_ParseTuple(args,"sO:wxImageHandler_SetExtension",&_argc0,&_obj1)) | |
452 | return NULL; | |
453 | if (_argc0) { | |
454 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImageHandler_p")) { | |
455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetExtension. Expected _wxImageHandler_p."); | |
456 | return NULL; | |
457 | } | |
458 | } | |
459 | { | |
460 | if (!PyString_Check(_obj1)) { | |
461 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
462 | return NULL; | |
463 | } | |
464 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
465 | } | |
466 | { | |
467 | wxPy_BEGIN_ALLOW_THREADS; | |
468 | wxImageHandler_SetExtension(_arg0,*_arg1); | |
469 | ||
470 | wxPy_END_ALLOW_THREADS; | |
471 | } Py_INCREF(Py_None); | |
472 | _resultobj = Py_None; | |
473 | { | |
474 | if (_obj1) | |
475 | delete _arg1; | |
476 | } | |
477 | return _resultobj; | |
478 | } | |
479 | ||
480 | #define wxImageHandler_SetType(_swigobj,_swigarg0) (_swigobj->SetType(_swigarg0)) | |
481 | static PyObject *_wrap_wxImageHandler_SetType(PyObject *self, PyObject *args) { | |
482 | PyObject * _resultobj; | |
483 | wxImageHandler * _arg0; | |
484 | long _arg1; | |
485 | char * _argc0 = 0; | |
486 | ||
487 | self = self; | |
488 | if(!PyArg_ParseTuple(args,"sl:wxImageHandler_SetType",&_argc0,&_arg1)) | |
489 | return NULL; | |
490 | if (_argc0) { | |
491 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImageHandler_p")) { | |
492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetType. Expected _wxImageHandler_p."); | |
493 | return NULL; | |
494 | } | |
495 | } | |
496 | { | |
497 | wxPy_BEGIN_ALLOW_THREADS; | |
498 | wxImageHandler_SetType(_arg0,_arg1); | |
499 | ||
500 | wxPy_END_ALLOW_THREADS; | |
501 | } Py_INCREF(Py_None); | |
502 | _resultobj = Py_None; | |
503 | return _resultobj; | |
504 | } | |
505 | ||
506 | #define wxImageHandler_SetMimeType(_swigobj,_swigarg0) (_swigobj->SetMimeType(_swigarg0)) | |
507 | static PyObject *_wrap_wxImageHandler_SetMimeType(PyObject *self, PyObject *args) { | |
508 | PyObject * _resultobj; | |
509 | wxImageHandler * _arg0; | |
510 | wxString * _arg1; | |
511 | char * _argc0 = 0; | |
512 | PyObject * _obj1 = 0; | |
513 | ||
514 | self = self; | |
515 | if(!PyArg_ParseTuple(args,"sO:wxImageHandler_SetMimeType",&_argc0,&_obj1)) | |
516 | return NULL; | |
517 | if (_argc0) { | |
518 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImageHandler_p")) { | |
519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageHandler_SetMimeType. Expected _wxImageHandler_p."); | |
520 | return NULL; | |
521 | } | |
522 | } | |
523 | { | |
524 | if (!PyString_Check(_obj1)) { | |
525 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
526 | return NULL; | |
527 | } | |
528 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
529 | } | |
530 | { | |
531 | wxPy_BEGIN_ALLOW_THREADS; | |
532 | wxImageHandler_SetMimeType(_arg0,*_arg1); | |
533 | ||
534 | wxPy_END_ALLOW_THREADS; | |
535 | } Py_INCREF(Py_None); | |
536 | _resultobj = Py_None; | |
537 | { | |
538 | if (_obj1) | |
539 | delete _arg1; | |
540 | } | |
541 | return _resultobj; | |
542 | } | |
543 | ||
544 | static void *SwigwxPNGHandlerTowxImageHandler(void *ptr) { | |
545 | wxPNGHandler *src; | |
546 | wxImageHandler *dest; | |
547 | src = (wxPNGHandler *) ptr; | |
548 | dest = (wxImageHandler *) src; | |
549 | return (void *) dest; | |
550 | } | |
551 | ||
552 | #define new_wxPNGHandler() (new wxPNGHandler()) | |
553 | static PyObject *_wrap_new_wxPNGHandler(PyObject *self, PyObject *args) { | |
554 | PyObject * _resultobj; | |
555 | wxPNGHandler * _result; | |
556 | char _ptemp[128]; | |
557 | ||
558 | self = self; | |
559 | if(!PyArg_ParseTuple(args,":new_wxPNGHandler")) | |
560 | return NULL; | |
561 | { | |
562 | wxPy_BEGIN_ALLOW_THREADS; | |
563 | _result = (wxPNGHandler *)new_wxPNGHandler(); | |
564 | ||
565 | wxPy_END_ALLOW_THREADS; | |
566 | } SWIG_MakePtr(_ptemp, (char *) _result,"_wxPNGHandler_p"); | |
567 | _resultobj = Py_BuildValue("s",_ptemp); | |
568 | return _resultobj; | |
569 | } | |
570 | ||
571 | static void *SwigwxJPEGHandlerTowxImageHandler(void *ptr) { | |
572 | wxJPEGHandler *src; | |
573 | wxImageHandler *dest; | |
574 | src = (wxJPEGHandler *) ptr; | |
575 | dest = (wxImageHandler *) src; | |
576 | return (void *) dest; | |
577 | } | |
578 | ||
579 | #define new_wxJPEGHandler() (new wxJPEGHandler()) | |
580 | static PyObject *_wrap_new_wxJPEGHandler(PyObject *self, PyObject *args) { | |
581 | PyObject * _resultobj; | |
582 | wxJPEGHandler * _result; | |
583 | char _ptemp[128]; | |
584 | ||
585 | self = self; | |
586 | if(!PyArg_ParseTuple(args,":new_wxJPEGHandler")) | |
587 | return NULL; | |
588 | { | |
589 | wxPy_BEGIN_ALLOW_THREADS; | |
590 | _result = (wxJPEGHandler *)new_wxJPEGHandler(); | |
591 | ||
592 | wxPy_END_ALLOW_THREADS; | |
593 | } SWIG_MakePtr(_ptemp, (char *) _result,"_wxJPEGHandler_p"); | |
594 | _resultobj = Py_BuildValue("s",_ptemp); | |
595 | return _resultobj; | |
596 | } | |
597 | ||
598 | static void *SwigwxBMPHandlerTowxImageHandler(void *ptr) { | |
599 | wxBMPHandler *src; | |
600 | wxImageHandler *dest; | |
601 | src = (wxBMPHandler *) ptr; | |
602 | dest = (wxImageHandler *) src; | |
603 | return (void *) dest; | |
604 | } | |
605 | ||
606 | #define new_wxBMPHandler() (new wxBMPHandler()) | |
607 | static PyObject *_wrap_new_wxBMPHandler(PyObject *self, PyObject *args) { | |
608 | PyObject * _resultobj; | |
609 | wxBMPHandler * _result; | |
610 | char _ptemp[128]; | |
611 | ||
612 | self = self; | |
613 | if(!PyArg_ParseTuple(args,":new_wxBMPHandler")) | |
614 | return NULL; | |
615 | { | |
616 | wxPy_BEGIN_ALLOW_THREADS; | |
617 | _result = (wxBMPHandler *)new_wxBMPHandler(); | |
618 | ||
619 | wxPy_END_ALLOW_THREADS; | |
620 | } SWIG_MakePtr(_ptemp, (char *) _result,"_wxBMPHandler_p"); | |
621 | _resultobj = Py_BuildValue("s",_ptemp); | |
622 | return _resultobj; | |
623 | } | |
624 | ||
625 | static void *SwigwxGIFHandlerTowxImageHandler(void *ptr) { | |
626 | wxGIFHandler *src; | |
627 | wxImageHandler *dest; | |
628 | src = (wxGIFHandler *) ptr; | |
629 | dest = (wxImageHandler *) src; | |
630 | return (void *) dest; | |
631 | } | |
632 | ||
633 | #define new_wxGIFHandler() (new wxGIFHandler()) | |
634 | static PyObject *_wrap_new_wxGIFHandler(PyObject *self, PyObject *args) { | |
635 | PyObject * _resultobj; | |
636 | wxGIFHandler * _result; | |
637 | char _ptemp[128]; | |
638 | ||
639 | self = self; | |
640 | if(!PyArg_ParseTuple(args,":new_wxGIFHandler")) | |
641 | return NULL; | |
642 | { | |
643 | wxPy_BEGIN_ALLOW_THREADS; | |
644 | _result = (wxGIFHandler *)new_wxGIFHandler(); | |
645 | ||
646 | wxPy_END_ALLOW_THREADS; | |
647 | } SWIG_MakePtr(_ptemp, (char *) _result,"_wxGIFHandler_p"); | |
648 | _resultobj = Py_BuildValue("s",_ptemp); | |
649 | return _resultobj; | |
650 | } | |
651 | ||
652 | #define new_wxImage(_swigarg0,_swigarg1) (new wxImage(_swigarg0,_swigarg1)) | |
653 | static PyObject *_wrap_new_wxImage(PyObject *self, PyObject *args) { | |
654 | PyObject * _resultobj; | |
655 | wxImage * _result; | |
656 | wxString * _arg0; | |
657 | long _arg1 = (wxBITMAP_TYPE_PNG); | |
658 | PyObject * _obj0 = 0; | |
659 | char _ptemp[128]; | |
660 | ||
661 | self = self; | |
662 | if(!PyArg_ParseTuple(args,"O|l:new_wxImage",&_obj0,&_arg1)) | |
663 | return NULL; | |
664 | { | |
665 | if (!PyString_Check(_obj0)) { | |
666 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
667 | return NULL; | |
668 | } | |
669 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); | |
670 | } | |
671 | { | |
672 | wxPy_BEGIN_ALLOW_THREADS; | |
673 | _result = (wxImage *)new_wxImage(*_arg0,_arg1); | |
674 | ||
675 | wxPy_END_ALLOW_THREADS; | |
676 | } SWIG_MakePtr(_ptemp, (char *) _result,"_wxImage_p"); | |
677 | _resultobj = Py_BuildValue("s",_ptemp); | |
678 | { | |
679 | if (_obj0) | |
680 | delete _arg0; | |
681 | } | |
682 | return _resultobj; | |
683 | } | |
684 | ||
685 | #define delete_wxImage(_swigobj) (delete _swigobj) | |
686 | static PyObject *_wrap_delete_wxImage(PyObject *self, PyObject *args) { | |
687 | PyObject * _resultobj; | |
688 | wxImage * _arg0; | |
689 | char * _argc0 = 0; | |
690 | ||
691 | self = self; | |
692 | if(!PyArg_ParseTuple(args,"s:delete_wxImage",&_argc0)) | |
693 | return NULL; | |
694 | if (_argc0) { | |
695 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImage. Expected _wxImage_p."); | |
697 | return NULL; | |
698 | } | |
699 | } | |
700 | { | |
701 | wxPy_BEGIN_ALLOW_THREADS; | |
702 | delete_wxImage(_arg0); | |
703 | ||
704 | wxPy_END_ALLOW_THREADS; | |
705 | } Py_INCREF(Py_None); | |
706 | _resultobj = Py_None; | |
707 | return _resultobj; | |
708 | } | |
709 | ||
710 | #define wxImage_ConvertToBitmap(_swigobj) (_swigobj->ConvertToBitmap()) | |
711 | static PyObject *_wrap_wxImage_ConvertToBitmap(PyObject *self, PyObject *args) { | |
712 | PyObject * _resultobj; | |
713 | wxBitmap * _result; | |
714 | wxImage * _arg0; | |
715 | char * _argc0 = 0; | |
716 | char _ptemp[128]; | |
717 | ||
718 | self = self; | |
719 | if(!PyArg_ParseTuple(args,"s:wxImage_ConvertToBitmap",&_argc0)) | |
720 | return NULL; | |
721 | if (_argc0) { | |
722 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_ConvertToBitmap. Expected _wxImage_p."); | |
724 | return NULL; | |
725 | } | |
726 | } | |
727 | { | |
728 | wxPy_BEGIN_ALLOW_THREADS; | |
729 | _result = new wxBitmap (wxImage_ConvertToBitmap(_arg0)); | |
730 | ||
731 | wxPy_END_ALLOW_THREADS; | |
732 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
733 | _resultobj = Py_BuildValue("s",_ptemp); | |
734 | return _resultobj; | |
735 | } | |
736 | ||
737 | #define wxImage_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1)) | |
738 | static PyObject *_wrap_wxImage_Create(PyObject *self, PyObject *args) { | |
739 | PyObject * _resultobj; | |
740 | wxImage * _arg0; | |
741 | int _arg1; | |
742 | int _arg2; | |
743 | char * _argc0 = 0; | |
744 | ||
745 | self = self; | |
746 | if(!PyArg_ParseTuple(args,"sii:wxImage_Create",&_argc0,&_arg1,&_arg2)) | |
747 | return NULL; | |
748 | if (_argc0) { | |
749 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Create. Expected _wxImage_p."); | |
751 | return NULL; | |
752 | } | |
753 | } | |
754 | { | |
755 | wxPy_BEGIN_ALLOW_THREADS; | |
756 | wxImage_Create(_arg0,_arg1,_arg2); | |
757 | ||
758 | wxPy_END_ALLOW_THREADS; | |
759 | } Py_INCREF(Py_None); | |
760 | _resultobj = Py_None; | |
761 | return _resultobj; | |
762 | } | |
763 | ||
764 | #define wxImage_Destroy(_swigobj) (_swigobj->Destroy()) | |
765 | static PyObject *_wrap_wxImage_Destroy(PyObject *self, PyObject *args) { | |
766 | PyObject * _resultobj; | |
767 | wxImage * _arg0; | |
768 | char * _argc0 = 0; | |
769 | ||
770 | self = self; | |
771 | if(!PyArg_ParseTuple(args,"s:wxImage_Destroy",&_argc0)) | |
772 | return NULL; | |
773 | if (_argc0) { | |
774 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Destroy. Expected _wxImage_p."); | |
776 | return NULL; | |
777 | } | |
778 | } | |
779 | { | |
780 | wxPy_BEGIN_ALLOW_THREADS; | |
781 | wxImage_Destroy(_arg0); | |
782 | ||
783 | wxPy_END_ALLOW_THREADS; | |
784 | } Py_INCREF(Py_None); | |
785 | _resultobj = Py_None; | |
786 | return _resultobj; | |
787 | } | |
788 | ||
789 | #define wxImage_Scale(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scale(_swigarg0,_swigarg1)) | |
790 | static PyObject *_wrap_wxImage_Scale(PyObject *self, PyObject *args) { | |
791 | PyObject * _resultobj; | |
792 | wxImage * _result; | |
793 | wxImage * _arg0; | |
794 | int _arg1; | |
795 | int _arg2; | |
796 | char * _argc0 = 0; | |
797 | char _ptemp[128]; | |
798 | ||
799 | self = self; | |
800 | if(!PyArg_ParseTuple(args,"sii:wxImage_Scale",&_argc0,&_arg1,&_arg2)) | |
801 | return NULL; | |
802 | if (_argc0) { | |
803 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Scale. Expected _wxImage_p."); | |
805 | return NULL; | |
806 | } | |
807 | } | |
808 | { | |
809 | wxPy_BEGIN_ALLOW_THREADS; | |
810 | _result = new wxImage (wxImage_Scale(_arg0,_arg1,_arg2)); | |
811 | ||
812 | wxPy_END_ALLOW_THREADS; | |
813 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxImage_p"); | |
814 | _resultobj = Py_BuildValue("s",_ptemp); | |
815 | return _resultobj; | |
816 | } | |
817 | ||
818 | #define wxImage_SetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
819 | static PyObject *_wrap_wxImage_SetRGB(PyObject *self, PyObject *args) { | |
820 | PyObject * _resultobj; | |
821 | wxImage * _arg0; | |
822 | int _arg1; | |
823 | int _arg2; | |
824 | unsigned char _arg3; | |
825 | unsigned char _arg4; | |
826 | unsigned char _arg5; | |
827 | char * _argc0 = 0; | |
828 | ||
829 | self = self; | |
830 | if(!PyArg_ParseTuple(args,"siibbb:wxImage_SetRGB",&_argc0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) | |
831 | return NULL; | |
832 | if (_argc0) { | |
833 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
834 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetRGB. Expected _wxImage_p."); | |
835 | return NULL; | |
836 | } | |
837 | } | |
838 | { | |
839 | wxPy_BEGIN_ALLOW_THREADS; | |
840 | wxImage_SetRGB(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
841 | ||
842 | wxPy_END_ALLOW_THREADS; | |
843 | } Py_INCREF(Py_None); | |
844 | _resultobj = Py_None; | |
845 | return _resultobj; | |
846 | } | |
847 | ||
848 | #define wxImage_GetRed(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRed(_swigarg0,_swigarg1)) | |
849 | static PyObject *_wrap_wxImage_GetRed(PyObject *self, PyObject *args) { | |
850 | PyObject * _resultobj; | |
851 | unsigned char _result; | |
852 | wxImage * _arg0; | |
853 | int _arg1; | |
854 | int _arg2; | |
855 | char * _argc0 = 0; | |
856 | ||
857 | self = self; | |
858 | if(!PyArg_ParseTuple(args,"sii:wxImage_GetRed",&_argc0,&_arg1,&_arg2)) | |
859 | return NULL; | |
860 | if (_argc0) { | |
861 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetRed. Expected _wxImage_p."); | |
863 | return NULL; | |
864 | } | |
865 | } | |
866 | { | |
867 | wxPy_BEGIN_ALLOW_THREADS; | |
868 | _result = (unsigned char )wxImage_GetRed(_arg0,_arg1,_arg2); | |
869 | ||
870 | wxPy_END_ALLOW_THREADS; | |
871 | } _resultobj = Py_BuildValue("b",_result); | |
872 | return _resultobj; | |
873 | } | |
874 | ||
875 | #define wxImage_GetGreen(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetGreen(_swigarg0,_swigarg1)) | |
876 | static PyObject *_wrap_wxImage_GetGreen(PyObject *self, PyObject *args) { | |
877 | PyObject * _resultobj; | |
878 | unsigned char _result; | |
879 | wxImage * _arg0; | |
880 | int _arg1; | |
881 | int _arg2; | |
882 | char * _argc0 = 0; | |
883 | ||
884 | self = self; | |
885 | if(!PyArg_ParseTuple(args,"sii:wxImage_GetGreen",&_argc0,&_arg1,&_arg2)) | |
886 | return NULL; | |
887 | if (_argc0) { | |
888 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetGreen. Expected _wxImage_p."); | |
890 | return NULL; | |
891 | } | |
892 | } | |
893 | { | |
894 | wxPy_BEGIN_ALLOW_THREADS; | |
895 | _result = (unsigned char )wxImage_GetGreen(_arg0,_arg1,_arg2); | |
896 | ||
897 | wxPy_END_ALLOW_THREADS; | |
898 | } _resultobj = Py_BuildValue("b",_result); | |
899 | return _resultobj; | |
900 | } | |
901 | ||
902 | #define wxImage_GetBlue(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetBlue(_swigarg0,_swigarg1)) | |
903 | static PyObject *_wrap_wxImage_GetBlue(PyObject *self, PyObject *args) { | |
904 | PyObject * _resultobj; | |
905 | unsigned char _result; | |
906 | wxImage * _arg0; | |
907 | int _arg1; | |
908 | int _arg2; | |
909 | char * _argc0 = 0; | |
910 | ||
911 | self = self; | |
912 | if(!PyArg_ParseTuple(args,"sii:wxImage_GetBlue",&_argc0,&_arg1,&_arg2)) | |
913 | return NULL; | |
914 | if (_argc0) { | |
915 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetBlue. Expected _wxImage_p."); | |
917 | return NULL; | |
918 | } | |
919 | } | |
920 | { | |
921 | wxPy_BEGIN_ALLOW_THREADS; | |
922 | _result = (unsigned char )wxImage_GetBlue(_arg0,_arg1,_arg2); | |
923 | ||
924 | wxPy_END_ALLOW_THREADS; | |
925 | } _resultobj = Py_BuildValue("b",_result); | |
926 | return _resultobj; | |
927 | } | |
928 | ||
929 | #define wxImage_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
930 | static PyObject *_wrap_wxImage_LoadFile(PyObject *self, PyObject *args) { | |
931 | PyObject * _resultobj; | |
932 | bool _result; | |
933 | wxImage * _arg0; | |
934 | wxString * _arg1; | |
935 | long _arg2 = (wxBITMAP_TYPE_PNG); | |
936 | char * _argc0 = 0; | |
937 | PyObject * _obj1 = 0; | |
938 | ||
939 | self = self; | |
940 | if(!PyArg_ParseTuple(args,"sO|l:wxImage_LoadFile",&_argc0,&_obj1,&_arg2)) | |
941 | return NULL; | |
942 | if (_argc0) { | |
943 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_LoadFile. Expected _wxImage_p."); | |
945 | return NULL; | |
946 | } | |
947 | } | |
948 | { | |
949 | if (!PyString_Check(_obj1)) { | |
950 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
951 | return NULL; | |
952 | } | |
953 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
954 | } | |
955 | { | |
956 | wxPy_BEGIN_ALLOW_THREADS; | |
957 | _result = (bool )wxImage_LoadFile(_arg0,*_arg1,_arg2); | |
958 | ||
959 | wxPy_END_ALLOW_THREADS; | |
960 | } _resultobj = Py_BuildValue("i",_result); | |
961 | { | |
962 | if (_obj1) | |
963 | delete _arg1; | |
964 | } | |
965 | return _resultobj; | |
966 | } | |
967 | ||
968 | #define wxImage_LoadMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1)) | |
969 | static PyObject *_wrap_wxImage_LoadMimeFile(PyObject *self, PyObject *args) { | |
970 | PyObject * _resultobj; | |
971 | bool _result; | |
972 | wxImage * _arg0; | |
973 | wxString * _arg1; | |
974 | wxString * _arg2; | |
975 | char * _argc0 = 0; | |
976 | PyObject * _obj1 = 0; | |
977 | PyObject * _obj2 = 0; | |
978 | ||
979 | self = self; | |
980 | if(!PyArg_ParseTuple(args,"sOO:wxImage_LoadMimeFile",&_argc0,&_obj1,&_obj2)) | |
981 | return NULL; | |
982 | if (_argc0) { | |
983 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
984 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_LoadMimeFile. Expected _wxImage_p."); | |
985 | return NULL; | |
986 | } | |
987 | } | |
988 | { | |
989 | if (!PyString_Check(_obj1)) { | |
990 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
991 | return NULL; | |
992 | } | |
993 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
994 | } | |
995 | { | |
996 | if (!PyString_Check(_obj2)) { | |
997 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
998 | return NULL; | |
999 | } | |
1000 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
1001 | } | |
1002 | { | |
1003 | wxPy_BEGIN_ALLOW_THREADS; | |
1004 | _result = (bool )wxImage_LoadMimeFile(_arg0,*_arg1,*_arg2); | |
1005 | ||
1006 | wxPy_END_ALLOW_THREADS; | |
1007 | } _resultobj = Py_BuildValue("i",_result); | |
1008 | { | |
1009 | if (_obj1) | |
1010 | delete _arg1; | |
1011 | } | |
1012 | { | |
1013 | if (_obj2) | |
1014 | delete _arg2; | |
1015 | } | |
1016 | return _resultobj; | |
1017 | } | |
1018 | ||
1019 | #define wxImage_SaveFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1)) | |
1020 | static PyObject *_wrap_wxImage_SaveFile(PyObject *self, PyObject *args) { | |
1021 | PyObject * _resultobj; | |
1022 | bool _result; | |
1023 | wxImage * _arg0; | |
1024 | wxString * _arg1; | |
1025 | int _arg2; | |
1026 | char * _argc0 = 0; | |
1027 | PyObject * _obj1 = 0; | |
1028 | ||
1029 | self = self; | |
1030 | if(!PyArg_ParseTuple(args,"sOi:wxImage_SaveFile",&_argc0,&_obj1,&_arg2)) | |
1031 | return NULL; | |
1032 | if (_argc0) { | |
1033 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
1034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SaveFile. Expected _wxImage_p."); | |
1035 | return NULL; | |
1036 | } | |
1037 | } | |
1038 | { | |
1039 | if (!PyString_Check(_obj1)) { | |
1040 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1041 | return NULL; | |
1042 | } | |
1043 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
1044 | } | |
1045 | { | |
1046 | wxPy_BEGIN_ALLOW_THREADS; | |
1047 | _result = (bool )wxImage_SaveFile(_arg0,*_arg1,_arg2); | |
1048 | ||
1049 | wxPy_END_ALLOW_THREADS; | |
1050 | } _resultobj = Py_BuildValue("i",_result); | |
1051 | { | |
1052 | if (_obj1) | |
1053 | delete _arg1; | |
1054 | } | |
1055 | return _resultobj; | |
1056 | } | |
1057 | ||
1058 | #define wxImage_SaveMimeFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->SaveFile(_swigarg0,_swigarg1)) | |
1059 | static PyObject *_wrap_wxImage_SaveMimeFile(PyObject *self, PyObject *args) { | |
1060 | PyObject * _resultobj; | |
1061 | bool _result; | |
1062 | wxImage * _arg0; | |
1063 | wxString * _arg1; | |
1064 | wxString * _arg2; | |
1065 | char * _argc0 = 0; | |
1066 | PyObject * _obj1 = 0; | |
1067 | PyObject * _obj2 = 0; | |
1068 | ||
1069 | self = self; | |
1070 | if(!PyArg_ParseTuple(args,"sOO:wxImage_SaveMimeFile",&_argc0,&_obj1,&_obj2)) | |
1071 | return NULL; | |
1072 | if (_argc0) { | |
1073 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
1074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SaveMimeFile. Expected _wxImage_p."); | |
1075 | return NULL; | |
1076 | } | |
1077 | } | |
1078 | { | |
1079 | if (!PyString_Check(_obj1)) { | |
1080 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1081 | return NULL; | |
1082 | } | |
1083 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
1084 | } | |
1085 | { | |
1086 | if (!PyString_Check(_obj2)) { | |
1087 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1088 | return NULL; | |
1089 | } | |
1090 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
1091 | } | |
1092 | { | |
1093 | wxPy_BEGIN_ALLOW_THREADS; | |
1094 | _result = (bool )wxImage_SaveMimeFile(_arg0,*_arg1,*_arg2); | |
1095 | ||
1096 | wxPy_END_ALLOW_THREADS; | |
1097 | } _resultobj = Py_BuildValue("i",_result); | |
1098 | { | |
1099 | if (_obj1) | |
1100 | delete _arg1; | |
1101 | } | |
1102 | { | |
1103 | if (_obj2) | |
1104 | delete _arg2; | |
1105 | } | |
1106 | return _resultobj; | |
1107 | } | |
1108 | ||
1109 | #define wxImage_Ok(_swigobj) (_swigobj->Ok()) | |
1110 | static PyObject *_wrap_wxImage_Ok(PyObject *self, PyObject *args) { | |
1111 | PyObject * _resultobj; | |
1112 | bool _result; | |
1113 | wxImage * _arg0; | |
1114 | char * _argc0 = 0; | |
1115 | ||
1116 | self = self; | |
1117 | if(!PyArg_ParseTuple(args,"s:wxImage_Ok",&_argc0)) | |
1118 | return NULL; | |
1119 | if (_argc0) { | |
1120 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
1121 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_Ok. Expected _wxImage_p."); | |
1122 | return NULL; | |
1123 | } | |
1124 | } | |
1125 | { | |
1126 | wxPy_BEGIN_ALLOW_THREADS; | |
1127 | _result = (bool )wxImage_Ok(_arg0); | |
1128 | ||
1129 | wxPy_END_ALLOW_THREADS; | |
1130 | } _resultobj = Py_BuildValue("i",_result); | |
1131 | return _resultobj; | |
1132 | } | |
1133 | ||
1134 | #define wxImage_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1135 | static PyObject *_wrap_wxImage_GetWidth(PyObject *self, PyObject *args) { | |
1136 | PyObject * _resultobj; | |
1137 | int _result; | |
1138 | wxImage * _arg0; | |
1139 | char * _argc0 = 0; | |
1140 | ||
1141 | self = self; | |
1142 | if(!PyArg_ParseTuple(args,"s:wxImage_GetWidth",&_argc0)) | |
1143 | return NULL; | |
1144 | if (_argc0) { | |
1145 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
1146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetWidth. Expected _wxImage_p."); | |
1147 | return NULL; | |
1148 | } | |
1149 | } | |
1150 | { | |
1151 | wxPy_BEGIN_ALLOW_THREADS; | |
1152 | _result = (int )wxImage_GetWidth(_arg0); | |
1153 | ||
1154 | wxPy_END_ALLOW_THREADS; | |
1155 | } _resultobj = Py_BuildValue("i",_result); | |
1156 | return _resultobj; | |
1157 | } | |
1158 | ||
1159 | #define wxImage_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1160 | static PyObject *_wrap_wxImage_GetHeight(PyObject *self, PyObject *args) { | |
1161 | PyObject * _resultobj; | |
1162 | int _result; | |
1163 | wxImage * _arg0; | |
1164 | char * _argc0 = 0; | |
1165 | ||
1166 | self = self; | |
1167 | if(!PyArg_ParseTuple(args,"s:wxImage_GetHeight",&_argc0)) | |
1168 | return NULL; | |
1169 | if (_argc0) { | |
1170 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
1171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetHeight. Expected _wxImage_p."); | |
1172 | return NULL; | |
1173 | } | |
1174 | } | |
1175 | { | |
1176 | wxPy_BEGIN_ALLOW_THREADS; | |
1177 | _result = (int )wxImage_GetHeight(_arg0); | |
1178 | ||
1179 | wxPy_END_ALLOW_THREADS; | |
1180 | } _resultobj = Py_BuildValue("i",_result); | |
1181 | return _resultobj; | |
1182 | } | |
1183 | ||
1184 | #define wxImage_GetData(_swigobj) (_swigobj->GetData()) | |
1185 | static PyObject *_wrap_wxImage_GetData(PyObject *self, PyObject *args) { | |
1186 | PyObject * _resultobj; | |
1187 | unsigned char * _result; | |
1188 | wxImage * _arg0; | |
1189 | char * _argc0 = 0; | |
1190 | char _ptemp[128]; | |
1191 | ||
1192 | self = self; | |
1193 | if(!PyArg_ParseTuple(args,"s:wxImage_GetData",&_argc0)) | |
1194 | return NULL; | |
1195 | if (_argc0) { | |
1196 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
1197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetData. Expected _wxImage_p."); | |
1198 | return NULL; | |
1199 | } | |
1200 | } | |
1201 | { | |
1202 | wxPy_BEGIN_ALLOW_THREADS; | |
1203 | _result = (unsigned char *)wxImage_GetData(_arg0); | |
1204 | ||
1205 | wxPy_END_ALLOW_THREADS; | |
1206 | } SWIG_MakePtr(_ptemp, (char *) _result,"_unsigned_char_p"); | |
1207 | _resultobj = Py_BuildValue("s",_ptemp); | |
1208 | return _resultobj; | |
1209 | } | |
1210 | ||
1211 | #define wxImage_SetData(_swigobj,_swigarg0) (_swigobj->SetData(_swigarg0)) | |
1212 | static PyObject *_wrap_wxImage_SetData(PyObject *self, PyObject *args) { | |
1213 | PyObject * _resultobj; | |
1214 | wxImage * _arg0; | |
1215 | unsigned char * _arg1; | |
1216 | char * _argc0 = 0; | |
1217 | char * _argc1 = 0; | |
1218 | ||
1219 | self = self; | |
1220 | if(!PyArg_ParseTuple(args,"ss:wxImage_SetData",&_argc0,&_argc1)) | |
1221 | return NULL; | |
1222 | if (_argc0) { | |
1223 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
1224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetData. Expected _wxImage_p."); | |
1225 | return NULL; | |
1226 | } | |
1227 | } | |
1228 | if (_argc1) { | |
1229 | if (SWIG_GetPtr(_argc1,(void **) &_arg1,"_unsigned_char_p")) { | |
1230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImage_SetData. Expected _unsigned_char_p."); | |
1231 | return NULL; | |
1232 | } | |
1233 | } | |
1234 | { | |
1235 | wxPy_BEGIN_ALLOW_THREADS; | |
1236 | wxImage_SetData(_arg0,_arg1); | |
1237 | ||
1238 | wxPy_END_ALLOW_THREADS; | |
1239 | } Py_INCREF(Py_None); | |
1240 | _resultobj = Py_None; | |
1241 | return _resultobj; | |
1242 | } | |
1243 | ||
1244 | #define wxImage_SetMaskColour(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetMaskColour(_swigarg0,_swigarg1,_swigarg2)) | |
1245 | static PyObject *_wrap_wxImage_SetMaskColour(PyObject *self, PyObject *args) { | |
1246 | PyObject * _resultobj; | |
1247 | wxImage * _arg0; | |
1248 | unsigned char _arg1; | |
1249 | unsigned char _arg2; | |
1250 | unsigned char _arg3; | |
1251 | char * _argc0 = 0; | |
1252 | ||
1253 | self = self; | |
1254 | if(!PyArg_ParseTuple(args,"sbbb:wxImage_SetMaskColour",&_argc0,&_arg1,&_arg2,&_arg3)) | |
1255 | return NULL; | |
1256 | if (_argc0) { | |
1257 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
1258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetMaskColour. Expected _wxImage_p."); | |
1259 | return NULL; | |
1260 | } | |
1261 | } | |
1262 | { | |
1263 | wxPy_BEGIN_ALLOW_THREADS; | |
1264 | wxImage_SetMaskColour(_arg0,_arg1,_arg2,_arg3); | |
1265 | ||
1266 | wxPy_END_ALLOW_THREADS; | |
1267 | } Py_INCREF(Py_None); | |
1268 | _resultobj = Py_None; | |
1269 | return _resultobj; | |
1270 | } | |
1271 | ||
1272 | #define wxImage_GetMaskRed(_swigobj) (_swigobj->GetMaskRed()) | |
1273 | static PyObject *_wrap_wxImage_GetMaskRed(PyObject *self, PyObject *args) { | |
1274 | PyObject * _resultobj; | |
1275 | unsigned char _result; | |
1276 | wxImage * _arg0; | |
1277 | char * _argc0 = 0; | |
1278 | ||
1279 | self = self; | |
1280 | if(!PyArg_ParseTuple(args,"s:wxImage_GetMaskRed",&_argc0)) | |
1281 | return NULL; | |
1282 | if (_argc0) { | |
1283 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
1284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskRed. Expected _wxImage_p."); | |
1285 | return NULL; | |
1286 | } | |
1287 | } | |
1288 | { | |
1289 | wxPy_BEGIN_ALLOW_THREADS; | |
1290 | _result = (unsigned char )wxImage_GetMaskRed(_arg0); | |
1291 | ||
1292 | wxPy_END_ALLOW_THREADS; | |
1293 | } _resultobj = Py_BuildValue("b",_result); | |
1294 | return _resultobj; | |
1295 | } | |
1296 | ||
1297 | #define wxImage_GetMaskGreen(_swigobj) (_swigobj->GetMaskGreen()) | |
1298 | static PyObject *_wrap_wxImage_GetMaskGreen(PyObject *self, PyObject *args) { | |
1299 | PyObject * _resultobj; | |
1300 | unsigned char _result; | |
1301 | wxImage * _arg0; | |
1302 | char * _argc0 = 0; | |
1303 | ||
1304 | self = self; | |
1305 | if(!PyArg_ParseTuple(args,"s:wxImage_GetMaskGreen",&_argc0)) | |
1306 | return NULL; | |
1307 | if (_argc0) { | |
1308 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
1309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskGreen. Expected _wxImage_p."); | |
1310 | return NULL; | |
1311 | } | |
1312 | } | |
1313 | { | |
1314 | wxPy_BEGIN_ALLOW_THREADS; | |
1315 | _result = (unsigned char )wxImage_GetMaskGreen(_arg0); | |
1316 | ||
1317 | wxPy_END_ALLOW_THREADS; | |
1318 | } _resultobj = Py_BuildValue("b",_result); | |
1319 | return _resultobj; | |
1320 | } | |
1321 | ||
1322 | #define wxImage_GetMaskBlue(_swigobj) (_swigobj->GetMaskBlue()) | |
1323 | static PyObject *_wrap_wxImage_GetMaskBlue(PyObject *self, PyObject *args) { | |
1324 | PyObject * _resultobj; | |
1325 | unsigned char _result; | |
1326 | wxImage * _arg0; | |
1327 | char * _argc0 = 0; | |
1328 | ||
1329 | self = self; | |
1330 | if(!PyArg_ParseTuple(args,"s:wxImage_GetMaskBlue",&_argc0)) | |
1331 | return NULL; | |
1332 | if (_argc0) { | |
1333 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
1334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_GetMaskBlue. Expected _wxImage_p."); | |
1335 | return NULL; | |
1336 | } | |
1337 | } | |
1338 | { | |
1339 | wxPy_BEGIN_ALLOW_THREADS; | |
1340 | _result = (unsigned char )wxImage_GetMaskBlue(_arg0); | |
1341 | ||
1342 | wxPy_END_ALLOW_THREADS; | |
1343 | } _resultobj = Py_BuildValue("b",_result); | |
1344 | return _resultobj; | |
1345 | } | |
1346 | ||
1347 | #define wxImage_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0)) | |
1348 | static PyObject *_wrap_wxImage_SetMask(PyObject *self, PyObject *args) { | |
1349 | PyObject * _resultobj; | |
1350 | wxImage * _arg0; | |
1351 | bool _arg1 = (1); | |
1352 | char * _argc0 = 0; | |
1353 | int tempbool1; | |
1354 | ||
1355 | self = self; | |
1356 | if(!PyArg_ParseTuple(args,"s|i:wxImage_SetMask",&_argc0,&tempbool1)) | |
1357 | return NULL; | |
1358 | if (_argc0) { | |
1359 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
1360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetMask. Expected _wxImage_p."); | |
1361 | return NULL; | |
1362 | } | |
1363 | } | |
1364 | _arg1 = (bool ) tempbool1; | |
1365 | { | |
1366 | wxPy_BEGIN_ALLOW_THREADS; | |
1367 | wxImage_SetMask(_arg0,_arg1); | |
1368 | ||
1369 | wxPy_END_ALLOW_THREADS; | |
1370 | } Py_INCREF(Py_None); | |
1371 | _resultobj = Py_None; | |
1372 | return _resultobj; | |
1373 | } | |
1374 | ||
1375 | #define wxImage_HasMask(_swigobj) (_swigobj->HasMask()) | |
1376 | static PyObject *_wrap_wxImage_HasMask(PyObject *self, PyObject *args) { | |
1377 | PyObject * _resultobj; | |
1378 | bool _result; | |
1379 | wxImage * _arg0; | |
1380 | char * _argc0 = 0; | |
1381 | ||
1382 | self = self; | |
1383 | if(!PyArg_ParseTuple(args,"s:wxImage_HasMask",&_argc0)) | |
1384 | return NULL; | |
1385 | if (_argc0) { | |
1386 | if (SWIG_GetPtr(_argc0,(void **) &_arg0,"_wxImage_p")) { | |
1387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_HasMask. Expected _wxImage_p."); | |
1388 | return NULL; | |
1389 | } | |
1390 | } | |
1391 | { | |
1392 | wxPy_BEGIN_ALLOW_THREADS; | |
1393 | _result = (bool )wxImage_HasMask(_arg0); | |
1394 | ||
1395 | wxPy_END_ALLOW_THREADS; | |
1396 | } _resultobj = Py_BuildValue("i",_result); | |
1397 | return _resultobj; | |
1398 | } | |
1399 | ||
1400 | static PyMethodDef imagecMethods[] = { | |
1401 | { "wxImage_HasMask", _wrap_wxImage_HasMask, 1 }, | |
1402 | { "wxImage_SetMask", _wrap_wxImage_SetMask, 1 }, | |
1403 | { "wxImage_GetMaskBlue", _wrap_wxImage_GetMaskBlue, 1 }, | |
1404 | { "wxImage_GetMaskGreen", _wrap_wxImage_GetMaskGreen, 1 }, | |
1405 | { "wxImage_GetMaskRed", _wrap_wxImage_GetMaskRed, 1 }, | |
1406 | { "wxImage_SetMaskColour", _wrap_wxImage_SetMaskColour, 1 }, | |
1407 | { "wxImage_SetData", _wrap_wxImage_SetData, 1 }, | |
1408 | { "wxImage_GetData", _wrap_wxImage_GetData, 1 }, | |
1409 | { "wxImage_GetHeight", _wrap_wxImage_GetHeight, 1 }, | |
1410 | { "wxImage_GetWidth", _wrap_wxImage_GetWidth, 1 }, | |
1411 | { "wxImage_Ok", _wrap_wxImage_Ok, 1 }, | |
1412 | { "wxImage_SaveMimeFile", _wrap_wxImage_SaveMimeFile, 1 }, | |
1413 | { "wxImage_SaveFile", _wrap_wxImage_SaveFile, 1 }, | |
1414 | { "wxImage_LoadMimeFile", _wrap_wxImage_LoadMimeFile, 1 }, | |
1415 | { "wxImage_LoadFile", _wrap_wxImage_LoadFile, 1 }, | |
1416 | { "wxImage_GetBlue", _wrap_wxImage_GetBlue, 1 }, | |
1417 | { "wxImage_GetGreen", _wrap_wxImage_GetGreen, 1 }, | |
1418 | { "wxImage_GetRed", _wrap_wxImage_GetRed, 1 }, | |
1419 | { "wxImage_SetRGB", _wrap_wxImage_SetRGB, 1 }, | |
1420 | { "wxImage_Scale", _wrap_wxImage_Scale, 1 }, | |
1421 | { "wxImage_Destroy", _wrap_wxImage_Destroy, 1 }, | |
1422 | { "wxImage_Create", _wrap_wxImage_Create, 1 }, | |
1423 | { "wxImage_ConvertToBitmap", _wrap_wxImage_ConvertToBitmap, 1 }, | |
1424 | { "delete_wxImage", _wrap_delete_wxImage, 1 }, | |
1425 | { "new_wxImage", _wrap_new_wxImage, 1 }, | |
1426 | { "new_wxGIFHandler", _wrap_new_wxGIFHandler, 1 }, | |
1427 | { "new_wxBMPHandler", _wrap_new_wxBMPHandler, 1 }, | |
1428 | { "new_wxJPEGHandler", _wrap_new_wxJPEGHandler, 1 }, | |
1429 | { "new_wxPNGHandler", _wrap_new_wxPNGHandler, 1 }, | |
1430 | { "wxImageHandler_SetMimeType", _wrap_wxImageHandler_SetMimeType, 1 }, | |
1431 | { "wxImageHandler_SetType", _wrap_wxImageHandler_SetType, 1 }, | |
1432 | { "wxImageHandler_SetExtension", _wrap_wxImageHandler_SetExtension, 1 }, | |
1433 | { "wxImageHandler_SetName", _wrap_wxImageHandler_SetName, 1 }, | |
1434 | { "wxImageHandler_GetMimeType", _wrap_wxImageHandler_GetMimeType, 1 }, | |
1435 | { "wxImageHandler_GetType", _wrap_wxImageHandler_GetType, 1 }, | |
1436 | { "wxImageHandler_GetExtension", _wrap_wxImageHandler_GetExtension, 1 }, | |
1437 | { "wxImageHandler_GetName", _wrap_wxImageHandler_GetName, 1 }, | |
1438 | { "new_wxImageHandler", _wrap_new_wxImageHandler, 1 }, | |
1439 | { "wxImage_AddHandler", _wrap_wxImage_AddHandler, 1 }, | |
1440 | { "wxImageFromBitmap", _wrap_wxImageFromBitmap, 1 }, | |
1441 | { "wxImageFromMime", _wrap_wxImageFromMime, 1 }, | |
1442 | { "wxEmptyImage", _wrap_wxEmptyImage, 1 }, | |
1443 | { "wxNullImage", _wrap_wxNullImage, 1 }, | |
1444 | { NULL, NULL } | |
1445 | }; | |
1446 | static PyObject *SWIG_globals; | |
1447 | #ifdef __cplusplus | |
1448 | extern "C" | |
1449 | #endif | |
1450 | SWIGEXPORT(void,initimagec)() { | |
1451 | PyObject *m, *d; | |
1452 | SWIG_globals = SWIG_newvarlink(); | |
1453 | m = Py_InitModule("imagec", imagecMethods); | |
1454 | d = PyModule_GetDict(m); | |
1455 | /* | |
1456 | * These are the pointer type-equivalency mappings. | |
1457 | * (Used by the SWIG pointer type-checker). | |
1458 | */ | |
1459 | SWIG_RegisterMapping("_wxAcceleratorTable","_class_wxAcceleratorTable",0); | |
1460 | SWIG_RegisterMapping("_signed_long","_long",0); | |
1461 | SWIG_RegisterMapping("_class_wxJPEGHandler","_wxJPEGHandler",0); | |
1462 | SWIG_RegisterMapping("_wxBMPHandler","_class_wxBMPHandler",0); | |
1463 | SWIG_RegisterMapping("_wxImage","_class_wxImage",0); | |
d24a34bb RD |
1464 | SWIG_RegisterMapping("_wxPrintQuality","_int",0); |
1465 | SWIG_RegisterMapping("_wxPrintQuality","_signed_int",0); | |
1466 | SWIG_RegisterMapping("_wxPrintQuality","_unsigned_int",0); | |
1467 | SWIG_RegisterMapping("_wxPrintQuality","_wxWindowID",0); | |
1468 | SWIG_RegisterMapping("_wxPrintQuality","_uint",0); | |
1469 | SWIG_RegisterMapping("_wxPrintQuality","_EBool",0); | |
1470 | SWIG_RegisterMapping("_wxPrintQuality","_size_t",0); | |
ab9bc19b RD |
1471 | SWIG_RegisterMapping("_class_wxRegionIterator","_wxRegionIterator",0); |
1472 | SWIG_RegisterMapping("_wxGIFHandler","_class_wxGIFHandler",0); | |
1473 | SWIG_RegisterMapping("_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0); | |
1474 | SWIG_RegisterMapping("_wxCursor","_class_wxCursor",0); | |
1475 | SWIG_RegisterMapping("_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler); | |
1476 | SWIG_RegisterMapping("_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler); | |
1477 | SWIG_RegisterMapping("_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler); | |
1478 | SWIG_RegisterMapping("_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler); | |
1479 | SWIG_RegisterMapping("_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler); | |
1480 | SWIG_RegisterMapping("_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler); | |
1481 | SWIG_RegisterMapping("_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler); | |
1482 | SWIG_RegisterMapping("_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler); | |
1483 | SWIG_RegisterMapping("_wxImageHandler","_class_wxImageHandler",0); | |
ab9bc19b RD |
1484 | SWIG_RegisterMapping("_wxMask","_class_wxMask",0); |
1485 | SWIG_RegisterMapping("_wxPNGHandler","_class_wxPNGHandler",0); | |
1486 | SWIG_RegisterMapping("_wxPen","_class_wxPen",0); | |
1487 | SWIG_RegisterMapping("_byte","_unsigned_char",0); | |
1488 | SWIG_RegisterMapping("_long","_wxDash",0); | |
1489 | SWIG_RegisterMapping("_long","_unsigned_long",0); | |
1490 | SWIG_RegisterMapping("_long","_signed_long",0); | |
1491 | SWIG_RegisterMapping("_wxImageList","_class_wxImageList",0); | |
1492 | SWIG_RegisterMapping("_class_wxAcceleratorTable","_wxAcceleratorTable",0); | |
1493 | SWIG_RegisterMapping("_wxDC","_class_wxDC",0); | |
1494 | SWIG_RegisterMapping("_class_wxBMPHandler","_wxBMPHandler",0); | |
d24a34bb | 1495 | SWIG_RegisterMapping("_size_t","_wxPrintQuality",0); |
e6c95f27 RD |
1496 | SWIG_RegisterMapping("_size_t","_unsigned_int",0); |
1497 | SWIG_RegisterMapping("_size_t","_int",0); | |
1498 | SWIG_RegisterMapping("_size_t","_wxWindowID",0); | |
1499 | SWIG_RegisterMapping("_size_t","_uint",0); | |
ab9bc19b RD |
1500 | SWIG_RegisterMapping("_class_wxRealPoint","_wxRealPoint",0); |
1501 | SWIG_RegisterMapping("_class_wxGIFHandler","_wxGIFHandler",0); | |
1502 | SWIG_RegisterMapping("_class_wxPostScriptDC","_wxPostScriptDC",0); | |
ab9bc19b RD |
1503 | SWIG_RegisterMapping("_class_wxMask","_wxMask",0); |
1504 | SWIG_RegisterMapping("_class_wxPNGHandler","_wxPNGHandler",0); | |
1505 | SWIG_RegisterMapping("_wxColour","_class_wxColour",0); | |
1506 | SWIG_RegisterMapping("_wxBrush","_class_wxBrush",0); | |
d24a34bb | 1507 | SWIG_RegisterMapping("_uint","_wxPrintQuality",0); |
e6c95f27 | 1508 | SWIG_RegisterMapping("_uint","_size_t",0); |
ab9bc19b RD |
1509 | SWIG_RegisterMapping("_uint","_unsigned_int",0); |
1510 | SWIG_RegisterMapping("_uint","_int",0); | |
1511 | SWIG_RegisterMapping("_uint","_wxWindowID",0); | |
1512 | SWIG_RegisterMapping("_wxRect","_class_wxRect",0); | |
1513 | SWIG_RegisterMapping("_class_wxImage","_wxImage",0); | |
1514 | SWIG_RegisterMapping("_wxPoint","_class_wxPoint",0); | |
1515 | SWIG_RegisterMapping("_wxBitmap","_class_wxBitmap",0); | |
1516 | SWIG_RegisterMapping("_wxPyTimer","_class_wxPyTimer",0); | |
1517 | SWIG_RegisterMapping("_wxWindowDC","_class_wxWindowDC",0); | |
1518 | SWIG_RegisterMapping("_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0); | |
d24a34bb | 1519 | SWIG_RegisterMapping("_EBool","_wxPrintQuality",0); |
ab9bc19b RD |
1520 | SWIG_RegisterMapping("_EBool","_signed_int",0); |
1521 | SWIG_RegisterMapping("_EBool","_int",0); | |
1522 | SWIG_RegisterMapping("_EBool","_wxWindowID",0); | |
1523 | SWIG_RegisterMapping("_class_wxRegion","_wxRegion",0); | |
1524 | SWIG_RegisterMapping("_wxFont","_class_wxFont",0); | |
1525 | SWIG_RegisterMapping("_unsigned_long","_wxDash",0); | |
1526 | SWIG_RegisterMapping("_unsigned_long","_long",0); | |
1527 | SWIG_RegisterMapping("_class_wxRect","_wxRect",0); | |
1528 | SWIG_RegisterMapping("_class_wxDC","_wxDC",0); | |
1529 | SWIG_RegisterMapping("_class_wxPyTimer","_wxPyTimer",0); | |
1530 | SWIG_RegisterMapping("_wxAcceleratorEntry","_class_wxAcceleratorEntry",0); | |
d24a34bb | 1531 | SWIG_RegisterMapping("_signed_int","_wxPrintQuality",0); |
ab9bc19b RD |
1532 | SWIG_RegisterMapping("_signed_int","_EBool",0); |
1533 | SWIG_RegisterMapping("_signed_int","_wxWindowID",0); | |
1534 | SWIG_RegisterMapping("_signed_int","_int",0); | |
1535 | SWIG_RegisterMapping("_wxLayoutConstraints","_class_wxLayoutConstraints",0); | |
1536 | SWIG_RegisterMapping("_wxScreenDC","_class_wxScreenDC",0); | |
1537 | SWIG_RegisterMapping("_WXTYPE","_short",0); | |
1538 | SWIG_RegisterMapping("_WXTYPE","_signed_short",0); | |
1539 | SWIG_RegisterMapping("_WXTYPE","_unsigned_short",0); | |
1540 | SWIG_RegisterMapping("_class_wxBrush","_wxBrush",0); | |
1541 | SWIG_RegisterMapping("_unsigned_short","_WXTYPE",0); | |
1542 | SWIG_RegisterMapping("_unsigned_short","_short",0); | |
1543 | SWIG_RegisterMapping("_class_wxFont","_wxFont",0); | |
1544 | SWIG_RegisterMapping("_wxClientDC","_class_wxClientDC",0); | |
1545 | SWIG_RegisterMapping("_class_wxPoint","_wxPoint",0); | |
1546 | SWIG_RegisterMapping("_wxRealPoint","_class_wxRealPoint",0); | |
1547 | SWIG_RegisterMapping("_signed_short","_WXTYPE",0); | |
1548 | SWIG_RegisterMapping("_signed_short","_short",0); | |
1549 | SWIG_RegisterMapping("_wxMemoryDC","_class_wxMemoryDC",0); | |
1550 | SWIG_RegisterMapping("_wxPaintDC","_class_wxPaintDC",0); | |
1551 | SWIG_RegisterMapping("_class_wxWindowDC","_wxWindowDC",0); | |
1552 | SWIG_RegisterMapping("_class_wxAcceleratorEntry","_wxAcceleratorEntry",0); | |
1553 | SWIG_RegisterMapping("_class_wxCursor","_wxCursor",0); | |
1554 | SWIG_RegisterMapping("_wxPostScriptDC","_class_wxPostScriptDC",0); | |
1555 | SWIG_RegisterMapping("_class_wxImageHandler","_class_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler); | |
1556 | SWIG_RegisterMapping("_class_wxImageHandler","_wxGIFHandler",SwigwxGIFHandlerTowxImageHandler); | |
1557 | SWIG_RegisterMapping("_class_wxImageHandler","_class_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler); | |
1558 | SWIG_RegisterMapping("_class_wxImageHandler","_wxBMPHandler",SwigwxBMPHandlerTowxImageHandler); | |
1559 | SWIG_RegisterMapping("_class_wxImageHandler","_class_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler); | |
1560 | SWIG_RegisterMapping("_class_wxImageHandler","_wxJPEGHandler",SwigwxJPEGHandlerTowxImageHandler); | |
1561 | SWIG_RegisterMapping("_class_wxImageHandler","_class_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler); | |
1562 | SWIG_RegisterMapping("_class_wxImageHandler","_wxPNGHandler",SwigwxPNGHandlerTowxImageHandler); | |
1563 | SWIG_RegisterMapping("_class_wxImageHandler","_wxImageHandler",0); | |
1564 | SWIG_RegisterMapping("_unsigned_char","_byte",0); | |
d24a34bb | 1565 | SWIG_RegisterMapping("_unsigned_int","_wxPrintQuality",0); |
e6c95f27 | 1566 | SWIG_RegisterMapping("_unsigned_int","_size_t",0); |
ab9bc19b RD |
1567 | SWIG_RegisterMapping("_unsigned_int","_uint",0); |
1568 | SWIG_RegisterMapping("_unsigned_int","_wxWindowID",0); | |
1569 | SWIG_RegisterMapping("_unsigned_int","_int",0); | |
1570 | SWIG_RegisterMapping("_wxIcon","_class_wxIcon",0); | |
1571 | SWIG_RegisterMapping("_class_wxPen","_wxPen",0); | |
1572 | SWIG_RegisterMapping("_short","_WXTYPE",0); | |
1573 | SWIG_RegisterMapping("_short","_unsigned_short",0); | |
1574 | SWIG_RegisterMapping("_short","_signed_short",0); | |
1575 | SWIG_RegisterMapping("_class_wxImageList","_wxImageList",0); | |
1576 | SWIG_RegisterMapping("_wxJPEGHandler","_class_wxJPEGHandler",0); | |
d24a34bb | 1577 | SWIG_RegisterMapping("_wxWindowID","_wxPrintQuality",0); |
e6c95f27 | 1578 | SWIG_RegisterMapping("_wxWindowID","_size_t",0); |
ab9bc19b RD |
1579 | SWIG_RegisterMapping("_wxWindowID","_EBool",0); |
1580 | SWIG_RegisterMapping("_wxWindowID","_uint",0); | |
1581 | SWIG_RegisterMapping("_wxWindowID","_int",0); | |
1582 | SWIG_RegisterMapping("_wxWindowID","_signed_int",0); | |
1583 | SWIG_RegisterMapping("_wxWindowID","_unsigned_int",0); | |
d24a34bb | 1584 | SWIG_RegisterMapping("_int","_wxPrintQuality",0); |
e6c95f27 | 1585 | SWIG_RegisterMapping("_int","_size_t",0); |
ab9bc19b RD |
1586 | SWIG_RegisterMapping("_int","_EBool",0); |
1587 | SWIG_RegisterMapping("_int","_uint",0); | |
1588 | SWIG_RegisterMapping("_int","_wxWindowID",0); | |
1589 | SWIG_RegisterMapping("_int","_unsigned_int",0); | |
1590 | SWIG_RegisterMapping("_int","_signed_int",0); | |
1591 | SWIG_RegisterMapping("_wxSize","_class_wxSize",0); | |
1592 | SWIG_RegisterMapping("_wxRegionIterator","_class_wxRegionIterator",0); | |
1593 | SWIG_RegisterMapping("_class_wxPaintDC","_wxPaintDC",0); | |
1594 | SWIG_RegisterMapping("_class_wxLayoutConstraints","_wxLayoutConstraints",0); | |
1595 | SWIG_RegisterMapping("_class_wxIcon","_wxIcon",0); | |
1596 | SWIG_RegisterMapping("_class_wxColour","_wxColour",0); | |
1597 | SWIG_RegisterMapping("_class_wxScreenDC","_wxScreenDC",0); | |
1598 | SWIG_RegisterMapping("_wxPalette","_class_wxPalette",0); | |
1599 | SWIG_RegisterMapping("_wxRegion","_class_wxRegion",0); | |
1600 | SWIG_RegisterMapping("_class_wxClientDC","_wxClientDC",0); | |
1601 | SWIG_RegisterMapping("_class_wxSize","_wxSize",0); | |
1602 | SWIG_RegisterMapping("_class_wxBitmap","_wxBitmap",0); | |
1603 | SWIG_RegisterMapping("_class_wxMemoryDC","_wxMemoryDC",0); | |
1604 | SWIG_RegisterMapping("_wxDash","_unsigned_long",0); | |
1605 | SWIG_RegisterMapping("_wxDash","_long",0); | |
1606 | SWIG_RegisterMapping("_class_wxPalette","_wxPalette",0); | |
1607 | } |