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