]>
Commit | Line | Data |
---|---|---|
e6056257 RD |
1 | /* |
2 | * FILE : src/mac/misc.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
6 | * Version 1.1 (Build 883) | |
7 | * | |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
27 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
28 | # else | |
29 | # if defined(__BORLANDC__) | |
30 | # define SWIGEXPORT(a) a _export | |
31 | # else | |
32 | # define SWIGEXPORT(a) a | |
33 | # endif | |
34 | # endif | |
35 | #else | |
36 | # define SWIGEXPORT(a) a | |
37 | #endif | |
38 | ||
39 | #include "Python.h" | |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
44 | ||
45 | extern void SWIG_MakePtr(char *, void *, char *); | |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); | |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
54 | #define SWIG_init initmiscc | |
55 | ||
56 | #define SWIG_name "miscc" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/resource.h> | |
60 | #include <wx/tooltip.h> | |
61 | #include <wx/busyinfo.h> | |
62 | ||
63 | ||
64 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
65 | PyObject* o2; | |
66 | PyObject* o3; | |
67 | ||
68 | if (!target) { | |
69 | target = o; | |
70 | } else if (target == Py_None) { | |
71 | Py_DECREF(Py_None); | |
72 | target = o; | |
73 | } else { | |
74 | if (!PyTuple_Check(target)) { | |
75 | o2 = target; | |
76 | target = PyTuple_New(1); | |
77 | PyTuple_SetItem(target, 0, o2); | |
78 | } | |
79 | o3 = PyTuple_New(1); | |
80 | PyTuple_SetItem(o3, 0, o); | |
81 | ||
82 | o2 = target; | |
83 | target = PySequence_Concat(o2, o3); | |
84 | Py_DECREF(o2); | |
85 | Py_DECREF(o3); | |
86 | } | |
87 | return target; | |
88 | } | |
89 | ||
90 | #if PYTHON_API_VERSION >= 1009 | |
91 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
92 | #else | |
93 | static char* wxStringErrorMsg = "String type required"; | |
94 | #endif | |
95 | ||
96 | static wxString wxPyEmptyStr(""); | |
97 | ||
98 | PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) { | |
99 | wxRegion reg1(*r1); | |
100 | wxRegion reg2(*r2); | |
101 | wxRect dest(0,0,0,0); | |
102 | PyObject* obj; | |
103 | ||
104 | reg1.Intersect(reg2); | |
105 | dest = reg1.GetBox(); | |
106 | ||
107 | if (dest != wxRect(0,0,0,0)) { | |
0e2ff151 | 108 | wxPyBeginBlockThreads(); |
e6056257 RD |
109 | wxRect* newRect = new wxRect(dest); |
110 | obj = wxPyConstructObject((void*)newRect, "wxRect"); | |
111 | PyObject* one = PyInt_FromLong(1); | |
112 | PyObject_SetAttrString(obj, "thisown", one); | |
113 | Py_DECREF(one); | |
0e2ff151 | 114 | wxPyEndBlockThreads(); |
e6056257 RD |
115 | return obj; |
116 | } | |
117 | Py_INCREF(Py_None); | |
118 | return Py_None; | |
119 | } | |
120 | ||
121 | char* wxGetResource(char *section, char *entry, char *file = NULL) { | |
122 | char * retval; | |
123 | wxGetResource(section, entry, &retval, file); | |
124 | return retval; | |
125 | } | |
126 | ||
127 | #if 0 // we want to use the definition from the header, not the | |
128 | // one SWIG will generate. | |
129 | extern wxAcceleratorTable wxNullAcceleratorTable; | |
130 | ||
131 | #endif | |
132 | #ifdef __cplusplus | |
133 | extern "C" { | |
134 | #endif | |
135 | static PyObject *_wrap_wxIntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
136 | PyObject * _resultobj; | |
137 | PyObject * _result; | |
138 | wxRect * _arg0; | |
139 | wxRect * _arg1; | |
140 | wxRect temp; | |
141 | PyObject * _obj0 = 0; | |
142 | wxRect temp0; | |
143 | PyObject * _obj1 = 0; | |
144 | char *_kwnames[] = { "r1","r2", NULL }; | |
145 | ||
146 | self = self; | |
147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIntersectRect",_kwnames,&_obj0,&_obj1)) | |
148 | return NULL; | |
149 | { | |
150 | _arg0 = &temp; | |
151 | if (! wxRect_helper(_obj0, &_arg0)) | |
152 | return NULL; | |
153 | } | |
154 | { | |
155 | _arg1 = &temp0; | |
156 | if (! wxRect_helper(_obj1, &_arg1)) | |
157 | return NULL; | |
158 | } | |
159 | { | |
0e2ff151 | 160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
161 | _result = (PyObject *)wxIntersectRect(_arg0,_arg1); |
162 | ||
0e2ff151 | 163 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
164 | if (PyErr_Occurred()) return NULL; |
165 | }{ | |
166 | _resultobj = _result; | |
167 | } | |
168 | return _resultobj; | |
169 | } | |
170 | ||
171 | static PyObject *_wrap_wxNewId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
172 | PyObject * _resultobj; | |
173 | long _result; | |
174 | char *_kwnames[] = { NULL }; | |
175 | ||
176 | self = self; | |
177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxNewId",_kwnames)) | |
178 | return NULL; | |
179 | { | |
0e2ff151 | 180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
181 | _result = (long )wxNewId(); |
182 | ||
0e2ff151 | 183 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
184 | if (PyErr_Occurred()) return NULL; |
185 | } _resultobj = Py_BuildValue("l",_result); | |
186 | return _resultobj; | |
187 | } | |
188 | ||
189 | static PyObject *_wrap_wxRegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
190 | PyObject * _resultobj; | |
191 | long _arg0; | |
192 | char *_kwnames[] = { "id", NULL }; | |
193 | ||
194 | self = self; | |
195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxRegisterId",_kwnames,&_arg0)) | |
196 | return NULL; | |
197 | { | |
0e2ff151 | 198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
199 | wxRegisterId(_arg0); |
200 | ||
0e2ff151 | 201 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
202 | if (PyErr_Occurred()) return NULL; |
203 | } Py_INCREF(Py_None); | |
204 | _resultobj = Py_None; | |
205 | return _resultobj; | |
206 | } | |
207 | ||
208 | static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
209 | PyObject * _resultobj; | |
210 | long _result; | |
211 | char *_kwnames[] = { NULL }; | |
212 | ||
213 | self = self; | |
214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":NewId",_kwnames)) | |
215 | return NULL; | |
216 | { | |
0e2ff151 | 217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
218 | _result = (long )wxNewId(); |
219 | ||
0e2ff151 | 220 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
221 | if (PyErr_Occurred()) return NULL; |
222 | } _resultobj = Py_BuildValue("l",_result); | |
223 | return _resultobj; | |
224 | } | |
225 | ||
226 | static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
227 | PyObject * _resultobj; | |
228 | long _arg0; | |
229 | char *_kwnames[] = { "id", NULL }; | |
230 | ||
231 | self = self; | |
232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:RegisterId",_kwnames,&_arg0)) | |
233 | return NULL; | |
234 | { | |
0e2ff151 | 235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
236 | wxRegisterId(_arg0); |
237 | ||
0e2ff151 | 238 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
239 | if (PyErr_Occurred()) return NULL; |
240 | } Py_INCREF(Py_None); | |
241 | _resultobj = Py_None; | |
242 | return _resultobj; | |
243 | } | |
244 | ||
245 | static PyObject *_wrap_wxGetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
246 | PyObject * _resultobj; | |
247 | long _result; | |
248 | char *_kwnames[] = { NULL }; | |
249 | ||
250 | self = self; | |
251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetCurrentId",_kwnames)) | |
252 | return NULL; | |
253 | { | |
0e2ff151 | 254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
255 | _result = (long )wxGetCurrentId(); |
256 | ||
0e2ff151 | 257 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
258 | if (PyErr_Occurred()) return NULL; |
259 | } _resultobj = Py_BuildValue("l",_result); | |
260 | return _resultobj; | |
261 | } | |
262 | ||
263 | static PyObject *_wrap_wxBell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
264 | PyObject * _resultobj; | |
265 | char *_kwnames[] = { NULL }; | |
266 | ||
267 | self = self; | |
268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxBell",_kwnames)) | |
269 | return NULL; | |
270 | { | |
0e2ff151 | 271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
272 | wxBell(); |
273 | ||
0e2ff151 | 274 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
275 | if (PyErr_Occurred()) return NULL; |
276 | } Py_INCREF(Py_None); | |
277 | _resultobj = Py_None; | |
278 | return _resultobj; | |
279 | } | |
280 | ||
281 | static PyObject *_wrap_wxEndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
282 | PyObject * _resultobj; | |
283 | char *_kwnames[] = { NULL }; | |
284 | ||
285 | self = self; | |
286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEndBusyCursor",_kwnames)) | |
287 | return NULL; | |
288 | { | |
0e2ff151 | 289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
290 | wxEndBusyCursor(); |
291 | ||
0e2ff151 | 292 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
293 | if (PyErr_Occurred()) return NULL; |
294 | } Py_INCREF(Py_None); | |
295 | _resultobj = Py_None; | |
296 | return _resultobj; | |
297 | } | |
298 | ||
299 | static PyObject *_wrap_wxGetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
300 | PyObject * _resultobj; | |
301 | long _result; | |
302 | bool _arg0 = (bool ) TRUE; | |
303 | int tempbool0 = (int) TRUE; | |
304 | char *_kwnames[] = { "resetTimer", NULL }; | |
305 | ||
306 | self = self; | |
307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxGetElapsedTime",_kwnames,&tempbool0)) | |
308 | return NULL; | |
309 | _arg0 = (bool ) tempbool0; | |
310 | { | |
0e2ff151 | 311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
312 | _result = (long )wxGetElapsedTime(_arg0); |
313 | ||
0e2ff151 | 314 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
315 | if (PyErr_Occurred()) return NULL; |
316 | } _resultobj = Py_BuildValue("l",_result); | |
317 | return _resultobj; | |
318 | } | |
319 | ||
320 | static PyObject *_wrap_wxGetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
321 | PyObject * _resultobj; | |
322 | int * _arg0; | |
323 | int temp; | |
324 | int * _arg1; | |
325 | int temp0; | |
326 | char *_kwnames[] = { NULL }; | |
327 | ||
328 | self = self; | |
329 | { | |
330 | _arg0 = &temp; | |
331 | } | |
332 | { | |
333 | _arg1 = &temp0; | |
334 | } | |
335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetMousePosition",_kwnames)) | |
336 | return NULL; | |
337 | { | |
0e2ff151 | 338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
339 | wxGetMousePosition(_arg0,_arg1); |
340 | ||
0e2ff151 | 341 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
342 | if (PyErr_Occurred()) return NULL; |
343 | } Py_INCREF(Py_None); | |
344 | _resultobj = Py_None; | |
345 | { | |
346 | PyObject *o; | |
347 | o = PyInt_FromLong((long) (*_arg0)); | |
348 | _resultobj = t_output_helper(_resultobj, o); | |
349 | } | |
350 | { | |
351 | PyObject *o; | |
352 | o = PyInt_FromLong((long) (*_arg1)); | |
353 | _resultobj = t_output_helper(_resultobj, o); | |
354 | } | |
355 | return _resultobj; | |
356 | } | |
357 | ||
358 | static PyObject *_wrap_wxIsBusy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
359 | PyObject * _resultobj; | |
360 | bool _result; | |
361 | char *_kwnames[] = { NULL }; | |
362 | ||
363 | self = self; | |
364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxIsBusy",_kwnames)) | |
365 | return NULL; | |
366 | { | |
0e2ff151 | 367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
368 | _result = (bool )wxIsBusy(); |
369 | ||
0e2ff151 | 370 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
371 | if (PyErr_Occurred()) return NULL; |
372 | } _resultobj = Py_BuildValue("i",_result); | |
373 | return _resultobj; | |
374 | } | |
375 | ||
376 | static PyObject *_wrap_wxNow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
377 | PyObject * _resultobj; | |
378 | wxString * _result; | |
379 | char *_kwnames[] = { NULL }; | |
380 | ||
381 | self = self; | |
382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxNow",_kwnames)) | |
383 | return NULL; | |
384 | { | |
0e2ff151 | 385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
386 | _result = new wxString (wxNow()); |
387 | ||
0e2ff151 | 388 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
389 | if (PyErr_Occurred()) return NULL; |
390 | }{ | |
391 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
392 | } | |
393 | { | |
394 | delete _result; | |
395 | } | |
396 | return _resultobj; | |
397 | } | |
398 | ||
399 | static PyObject *_wrap_wxShell(PyObject *self, PyObject *args, PyObject *kwargs) { | |
400 | PyObject * _resultobj; | |
401 | bool _result; | |
402 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; | |
403 | PyObject * _obj0 = 0; | |
404 | char *_kwnames[] = { "command", NULL }; | |
405 | ||
406 | self = self; | |
407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxShell",_kwnames,&_obj0)) | |
408 | return NULL; | |
409 | if (_obj0) | |
410 | { | |
411 | #if PYTHON_API_VERSION >= 1009 | |
412 | char* tmpPtr; int tmpSize; | |
413 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
414 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
415 | return NULL; | |
416 | } | |
417 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
418 | return NULL; | |
419 | _arg0 = new wxString(tmpPtr, tmpSize); | |
420 | #else | |
421 | if (!PyString_Check(_obj0)) { | |
422 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
423 | return NULL; | |
424 | } | |
425 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
426 | #endif | |
427 | } | |
428 | { | |
0e2ff151 | 429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
430 | _result = (bool )wxShell(*_arg0); |
431 | ||
0e2ff151 | 432 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
433 | if (PyErr_Occurred()) return NULL; |
434 | } _resultobj = Py_BuildValue("i",_result); | |
435 | { | |
436 | if (_obj0) | |
437 | delete _arg0; | |
438 | } | |
439 | return _resultobj; | |
440 | } | |
441 | ||
442 | static PyObject *_wrap_wxStartTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
443 | PyObject * _resultobj; | |
444 | char *_kwnames[] = { NULL }; | |
445 | ||
446 | self = self; | |
447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxStartTimer",_kwnames)) | |
448 | return NULL; | |
449 | { | |
0e2ff151 | 450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
451 | wxStartTimer(); |
452 | ||
0e2ff151 | 453 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
454 | if (PyErr_Occurred()) return NULL; |
455 | } Py_INCREF(Py_None); | |
456 | _resultobj = Py_None; | |
457 | return _resultobj; | |
458 | } | |
459 | ||
460 | static PyObject *_wrap_wxGetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) { | |
461 | PyObject * _resultobj; | |
462 | int _result; | |
463 | int * _arg0; | |
464 | int temp; | |
465 | int * _arg1; | |
466 | int temp0; | |
467 | char *_kwnames[] = { NULL }; | |
468 | ||
469 | self = self; | |
470 | { | |
471 | _arg0 = &temp; | |
472 | } | |
473 | { | |
474 | _arg1 = &temp0; | |
475 | } | |
476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetOsVersion",_kwnames)) | |
477 | return NULL; | |
478 | { | |
0e2ff151 | 479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
480 | _result = (int )wxGetOsVersion(_arg0,_arg1); |
481 | ||
0e2ff151 | 482 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
483 | if (PyErr_Occurred()) return NULL; |
484 | } _resultobj = Py_BuildValue("i",_result); | |
485 | { | |
486 | PyObject *o; | |
487 | o = PyInt_FromLong((long) (*_arg0)); | |
488 | _resultobj = t_output_helper(_resultobj, o); | |
489 | } | |
490 | { | |
491 | PyObject *o; | |
492 | o = PyInt_FromLong((long) (*_arg1)); | |
493 | _resultobj = t_output_helper(_resultobj, o); | |
494 | } | |
495 | return _resultobj; | |
496 | } | |
497 | ||
498 | static PyObject *_wrap_wxGetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
499 | PyObject * _resultobj; | |
500 | wxString * _result; | |
501 | char *_kwnames[] = { NULL }; | |
502 | ||
503 | self = self; | |
504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetOsDescription",_kwnames)) | |
505 | return NULL; | |
506 | { | |
0e2ff151 | 507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
508 | _result = new wxString (wxGetOsDescription()); |
509 | ||
0e2ff151 | 510 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
511 | if (PyErr_Occurred()) return NULL; |
512 | }{ | |
513 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
514 | } | |
515 | { | |
516 | delete _result; | |
517 | } | |
518 | return _resultobj; | |
519 | } | |
520 | ||
521 | static PyObject *_wrap_wxSleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
522 | PyObject * _resultobj; | |
523 | int _arg0; | |
524 | char *_kwnames[] = { "secs", NULL }; | |
525 | ||
526 | self = self; | |
527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSleep",_kwnames,&_arg0)) | |
528 | return NULL; | |
529 | { | |
0e2ff151 | 530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
531 | wxSleep(_arg0); |
532 | ||
0e2ff151 | 533 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
534 | if (PyErr_Occurred()) return NULL; |
535 | } Py_INCREF(Py_None); | |
536 | _resultobj = Py_None; | |
537 | return _resultobj; | |
538 | } | |
539 | ||
540 | static PyObject *_wrap_wxUsleep(PyObject *self, PyObject *args, PyObject *kwargs) { | |
541 | PyObject * _resultobj; | |
542 | unsigned long _arg0; | |
543 | char *_kwnames[] = { "milliseconds", NULL }; | |
544 | ||
545 | self = self; | |
546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxUsleep",_kwnames,&_arg0)) | |
547 | return NULL; | |
548 | { | |
0e2ff151 | 549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
550 | wxUsleep(_arg0); |
551 | ||
0e2ff151 | 552 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
553 | if (PyErr_Occurred()) return NULL; |
554 | } Py_INCREF(Py_None); | |
555 | _resultobj = Py_None; | |
556 | return _resultobj; | |
557 | } | |
558 | ||
559 | static PyObject *_wrap_wxYield(PyObject *self, PyObject *args, PyObject *kwargs) { | |
560 | PyObject * _resultobj; | |
561 | bool _result; | |
562 | char *_kwnames[] = { NULL }; | |
563 | ||
564 | self = self; | |
565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxYield",_kwnames)) | |
566 | return NULL; | |
567 | { | |
0e2ff151 | 568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
569 | _result = (bool )wxYield(); |
570 | ||
0e2ff151 | 571 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
572 | if (PyErr_Occurred()) return NULL; |
573 | } _resultobj = Py_BuildValue("i",_result); | |
574 | return _resultobj; | |
575 | } | |
576 | ||
577 | static PyObject *_wrap_wxYieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
578 | PyObject * _resultobj; | |
579 | bool _result; | |
580 | char *_kwnames[] = { NULL }; | |
581 | ||
582 | self = self; | |
583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxYieldIfNeeded",_kwnames)) | |
584 | return NULL; | |
585 | { | |
0e2ff151 | 586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
587 | _result = (bool )wxYieldIfNeeded(); |
588 | ||
0e2ff151 | 589 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
590 | if (PyErr_Occurred()) return NULL; |
591 | } _resultobj = Py_BuildValue("i",_result); | |
592 | return _resultobj; | |
593 | } | |
594 | ||
595 | static PyObject *_wrap_wxEnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
596 | PyObject * _resultobj; | |
597 | bool _arg0; | |
598 | int tempbool0; | |
599 | char *_kwnames[] = { "enable", NULL }; | |
600 | ||
601 | self = self; | |
602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxEnableTopLevelWindows",_kwnames,&tempbool0)) | |
603 | return NULL; | |
604 | _arg0 = (bool ) tempbool0; | |
605 | { | |
0e2ff151 | 606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
607 | wxEnableTopLevelWindows(_arg0); |
608 | ||
0e2ff151 | 609 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
610 | if (PyErr_Occurred()) return NULL; |
611 | } Py_INCREF(Py_None); | |
612 | _resultobj = Py_None; | |
613 | return _resultobj; | |
614 | } | |
615 | ||
616 | static PyObject *_wrap_wxGetResource(PyObject *self, PyObject *args, PyObject *kwargs) { | |
617 | PyObject * _resultobj; | |
618 | char * _result; | |
619 | char * _arg0; | |
620 | char * _arg1; | |
621 | char * _arg2 = (char *) NULL; | |
622 | char *_kwnames[] = { "section","entry","file", NULL }; | |
623 | ||
624 | self = self; | |
625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ss|s:wxGetResource",_kwnames,&_arg0,&_arg1,&_arg2)) | |
626 | return NULL; | |
627 | { | |
0e2ff151 | 628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
629 | _result = (char *)wxGetResource(_arg0,_arg1,_arg2); |
630 | ||
0e2ff151 | 631 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
632 | if (PyErr_Occurred()) return NULL; |
633 | } _resultobj = Py_BuildValue("s", _result); | |
634 | return _resultobj; | |
635 | } | |
636 | ||
637 | static PyObject *_wrap_wxStripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
638 | PyObject * _resultobj; | |
639 | wxString * _result; | |
640 | wxString * _arg0; | |
641 | PyObject * _obj0 = 0; | |
642 | char *_kwnames[] = { "in", NULL }; | |
643 | ||
644 | self = self; | |
645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStripMenuCodes",_kwnames,&_obj0)) | |
646 | return NULL; | |
647 | { | |
648 | #if PYTHON_API_VERSION >= 1009 | |
649 | char* tmpPtr; int tmpSize; | |
650 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
651 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
652 | return NULL; | |
653 | } | |
654 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
655 | return NULL; | |
656 | _arg0 = new wxString(tmpPtr, tmpSize); | |
657 | #else | |
658 | if (!PyString_Check(_obj0)) { | |
659 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
660 | return NULL; | |
661 | } | |
662 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
663 | #endif | |
664 | } | |
665 | { | |
0e2ff151 | 666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
667 | _result = new wxString (wxStripMenuCodes(*_arg0)); |
668 | ||
0e2ff151 | 669 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
670 | if (PyErr_Occurred()) return NULL; |
671 | }{ | |
672 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
673 | } | |
674 | { | |
675 | if (_obj0) | |
676 | delete _arg0; | |
677 | } | |
678 | { | |
679 | delete _result; | |
680 | } | |
681 | return _resultobj; | |
682 | } | |
683 | ||
684 | static PyObject *_wrap_wxGetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
685 | PyObject * _resultobj; | |
686 | wxString * _result; | |
687 | char *_kwnames[] = { NULL }; | |
688 | ||
689 | self = self; | |
690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetEmailAddress",_kwnames)) | |
691 | return NULL; | |
692 | { | |
0e2ff151 | 693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
694 | _result = new wxString (wxGetEmailAddress()); |
695 | ||
0e2ff151 | 696 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
697 | if (PyErr_Occurred()) return NULL; |
698 | }{ | |
699 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
700 | } | |
701 | { | |
702 | delete _result; | |
703 | } | |
704 | return _resultobj; | |
705 | } | |
706 | ||
707 | static PyObject *_wrap_wxGetHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
708 | PyObject * _resultobj; | |
709 | wxString * _result; | |
710 | char *_kwnames[] = { NULL }; | |
711 | ||
712 | self = self; | |
713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetHostName",_kwnames)) | |
714 | return NULL; | |
715 | { | |
0e2ff151 | 716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
717 | _result = new wxString (wxGetHostName()); |
718 | ||
0e2ff151 | 719 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
720 | if (PyErr_Occurred()) return NULL; |
721 | }{ | |
722 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
723 | } | |
724 | { | |
725 | delete _result; | |
726 | } | |
727 | return _resultobj; | |
728 | } | |
729 | ||
730 | static PyObject *_wrap_wxGetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
731 | PyObject * _resultobj; | |
732 | wxString * _result; | |
733 | char *_kwnames[] = { NULL }; | |
734 | ||
735 | self = self; | |
736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetFullHostName",_kwnames)) | |
737 | return NULL; | |
738 | { | |
0e2ff151 | 739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
740 | _result = new wxString (wxGetFullHostName()); |
741 | ||
0e2ff151 | 742 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
743 | if (PyErr_Occurred()) return NULL; |
744 | }{ | |
745 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
746 | } | |
747 | { | |
748 | delete _result; | |
749 | } | |
750 | return _resultobj; | |
751 | } | |
752 | ||
753 | static PyObject *_wrap_wxGetUserId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
754 | PyObject * _resultobj; | |
755 | wxString * _result; | |
756 | char *_kwnames[] = { NULL }; | |
757 | ||
758 | self = self; | |
759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetUserId",_kwnames)) | |
760 | return NULL; | |
761 | { | |
0e2ff151 | 762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
763 | _result = new wxString (wxGetUserId()); |
764 | ||
0e2ff151 | 765 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
766 | if (PyErr_Occurred()) return NULL; |
767 | }{ | |
768 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
769 | } | |
770 | { | |
771 | delete _result; | |
772 | } | |
773 | return _resultobj; | |
774 | } | |
775 | ||
776 | static PyObject *_wrap_wxGetUserName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
777 | PyObject * _resultobj; | |
778 | wxString * _result; | |
779 | char *_kwnames[] = { NULL }; | |
780 | ||
781 | self = self; | |
782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetUserName",_kwnames)) | |
783 | return NULL; | |
784 | { | |
0e2ff151 | 785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
786 | _result = new wxString (wxGetUserName()); |
787 | ||
0e2ff151 | 788 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
789 | if (PyErr_Occurred()) return NULL; |
790 | }{ | |
791 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
792 | } | |
793 | { | |
794 | delete _result; | |
795 | } | |
796 | return _resultobj; | |
797 | } | |
798 | ||
799 | static PyObject *_wrap_wxGetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
800 | PyObject * _resultobj; | |
801 | wxString * _result; | |
802 | char *_kwnames[] = { NULL }; | |
803 | ||
804 | self = self; | |
805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetHomeDir",_kwnames)) | |
806 | return NULL; | |
807 | { | |
0e2ff151 | 808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
809 | _result = new wxString (wxGetHomeDir()); |
810 | ||
0e2ff151 | 811 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
812 | if (PyErr_Occurred()) return NULL; |
813 | }{ | |
814 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
815 | } | |
816 | { | |
817 | delete _result; | |
818 | } | |
819 | return _resultobj; | |
820 | } | |
821 | ||
822 | static PyObject *_wrap_wxGetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
823 | PyObject * _resultobj; | |
824 | wxAcceleratorEntry * _result; | |
825 | wxString * _arg0; | |
826 | PyObject * _obj0 = 0; | |
827 | char *_kwnames[] = { "label", NULL }; | |
828 | char _ptemp[128]; | |
829 | ||
830 | self = self; | |
831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGetAccelFromString",_kwnames,&_obj0)) | |
832 | return NULL; | |
833 | { | |
834 | #if PYTHON_API_VERSION >= 1009 | |
835 | char* tmpPtr; int tmpSize; | |
836 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
837 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
838 | return NULL; | |
839 | } | |
840 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
841 | return NULL; | |
842 | _arg0 = new wxString(tmpPtr, tmpSize); | |
843 | #else | |
844 | if (!PyString_Check(_obj0)) { | |
845 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
846 | return NULL; | |
847 | } | |
848 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
849 | #endif | |
850 | } | |
851 | { | |
0e2ff151 | 852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
853 | _result = (wxAcceleratorEntry *)wxGetAccelFromString(*_arg0); |
854 | ||
0e2ff151 | 855 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
856 | if (PyErr_Occurred()) return NULL; |
857 | } if (_result) { | |
858 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
859 | _resultobj = Py_BuildValue("s",_ptemp); | |
860 | } else { | |
861 | Py_INCREF(Py_None); | |
862 | _resultobj = Py_None; | |
863 | } | |
864 | { | |
865 | if (_obj0) | |
866 | delete _arg0; | |
867 | } | |
868 | return _resultobj; | |
869 | } | |
870 | ||
871 | static int _wrap_wxNullAcceleratorTable_set(PyObject *val) { | |
872 | ||
873 | PyErr_SetString(PyExc_TypeError,"Variable wxNullAcceleratorTable is read-only."); | |
874 | return 1; | |
875 | } | |
876 | ||
877 | static PyObject *_wrap_wxNullAcceleratorTable_get() { | |
878 | PyObject * pyobj; | |
879 | char ptemp[128]; | |
880 | ||
881 | SWIG_MakePtr(ptemp,(char *) &wxNullAcceleratorTable,"_wxAcceleratorTable_p"); | |
882 | pyobj = PyString_FromString(ptemp); | |
883 | return pyobj; | |
884 | } | |
885 | ||
886 | static const char * wxObject_GetClassName(wxObject *self) { | |
887 | return self->GetClassInfo()->GetClassName(); | |
888 | } | |
889 | static PyObject *_wrap_wxObject_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
890 | PyObject * _resultobj; | |
891 | char * _result; | |
892 | wxObject * _arg0; | |
893 | PyObject * _argo0 = 0; | |
894 | char *_kwnames[] = { "self", NULL }; | |
895 | ||
896 | self = self; | |
897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxObject_GetClassName",_kwnames,&_argo0)) | |
898 | return NULL; | |
899 | if (_argo0) { | |
900 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
901 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxObject_p")) { | |
902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxObject_GetClassName. Expected _wxObject_p."); | |
903 | return NULL; | |
904 | } | |
905 | } | |
906 | { | |
0e2ff151 | 907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
908 | _result = (char *)wxObject_GetClassName(_arg0); |
909 | ||
0e2ff151 | 910 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
911 | if (PyErr_Occurred()) return NULL; |
912 | } _resultobj = Py_BuildValue("s", _result); | |
913 | return _resultobj; | |
914 | } | |
915 | ||
916 | static void wxObject_Destroy(wxObject *self) { | |
917 | delete self; | |
918 | } | |
919 | static PyObject *_wrap_wxObject_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
920 | PyObject * _resultobj; | |
921 | wxObject * _arg0; | |
922 | PyObject * _argo0 = 0; | |
923 | char *_kwnames[] = { "self", NULL }; | |
924 | ||
925 | self = self; | |
926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxObject_Destroy",_kwnames,&_argo0)) | |
927 | return NULL; | |
928 | if (_argo0) { | |
929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxObject_p")) { | |
931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxObject_Destroy. Expected _wxObject_p."); | |
932 | return NULL; | |
933 | } | |
934 | } | |
935 | { | |
0e2ff151 | 936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
937 | wxObject_Destroy(_arg0); |
938 | ||
0e2ff151 | 939 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
940 | if (PyErr_Occurred()) return NULL; |
941 | } Py_INCREF(Py_None); | |
942 | _resultobj = Py_None; | |
943 | return _resultobj; | |
944 | } | |
945 | ||
946 | #define wxSize_x_set(_swigobj,_swigval) (_swigobj->x = _swigval,_swigval) | |
947 | static PyObject *_wrap_wxSize_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
948 | PyObject * _resultobj; | |
949 | long _result; | |
950 | wxSize * _arg0; | |
951 | long _arg1; | |
952 | wxSize temp; | |
953 | PyObject * _obj0 = 0; | |
954 | char *_kwnames[] = { "self","x", NULL }; | |
955 | ||
956 | self = self; | |
957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxSize_x_set",_kwnames,&_obj0,&_arg1)) | |
958 | return NULL; | |
959 | { | |
960 | _arg0 = &temp; | |
961 | if (! wxSize_helper(_obj0, &_arg0)) | |
962 | return NULL; | |
963 | } | |
964 | { | |
0e2ff151 | 965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
966 | _result = (long )wxSize_x_set(_arg0,_arg1); |
967 | ||
0e2ff151 | 968 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
969 | if (PyErr_Occurred()) return NULL; |
970 | } _resultobj = Py_BuildValue("l",_result); | |
971 | return _resultobj; | |
972 | } | |
973 | ||
974 | #define wxSize_x_get(_swigobj) ((long ) _swigobj->x) | |
975 | static PyObject *_wrap_wxSize_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
976 | PyObject * _resultobj; | |
977 | long _result; | |
978 | wxSize * _arg0; | |
979 | wxSize temp; | |
980 | PyObject * _obj0 = 0; | |
981 | char *_kwnames[] = { "self", NULL }; | |
982 | ||
983 | self = self; | |
984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSize_x_get",_kwnames,&_obj0)) | |
985 | return NULL; | |
986 | { | |
987 | _arg0 = &temp; | |
988 | if (! wxSize_helper(_obj0, &_arg0)) | |
989 | return NULL; | |
990 | } | |
991 | { | |
0e2ff151 | 992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
993 | _result = (long )wxSize_x_get(_arg0); |
994 | ||
0e2ff151 | 995 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
996 | if (PyErr_Occurred()) return NULL; |
997 | } _resultobj = Py_BuildValue("l",_result); | |
998 | return _resultobj; | |
999 | } | |
1000 | ||
1001 | #define wxSize_y_set(_swigobj,_swigval) (_swigobj->y = _swigval,_swigval) | |
1002 | static PyObject *_wrap_wxSize_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1003 | PyObject * _resultobj; | |
1004 | long _result; | |
1005 | wxSize * _arg0; | |
1006 | long _arg1; | |
1007 | wxSize temp; | |
1008 | PyObject * _obj0 = 0; | |
1009 | char *_kwnames[] = { "self","y", NULL }; | |
1010 | ||
1011 | self = self; | |
1012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxSize_y_set",_kwnames,&_obj0,&_arg1)) | |
1013 | return NULL; | |
1014 | { | |
1015 | _arg0 = &temp; | |
1016 | if (! wxSize_helper(_obj0, &_arg0)) | |
1017 | return NULL; | |
1018 | } | |
1019 | { | |
0e2ff151 | 1020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1021 | _result = (long )wxSize_y_set(_arg0,_arg1); |
1022 | ||
0e2ff151 | 1023 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1024 | if (PyErr_Occurred()) return NULL; |
1025 | } _resultobj = Py_BuildValue("l",_result); | |
1026 | return _resultobj; | |
1027 | } | |
1028 | ||
1029 | #define wxSize_y_get(_swigobj) ((long ) _swigobj->y) | |
1030 | static PyObject *_wrap_wxSize_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1031 | PyObject * _resultobj; | |
1032 | long _result; | |
1033 | wxSize * _arg0; | |
1034 | wxSize temp; | |
1035 | PyObject * _obj0 = 0; | |
1036 | char *_kwnames[] = { "self", NULL }; | |
1037 | ||
1038 | self = self; | |
1039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSize_y_get",_kwnames,&_obj0)) | |
1040 | return NULL; | |
1041 | { | |
1042 | _arg0 = &temp; | |
1043 | if (! wxSize_helper(_obj0, &_arg0)) | |
1044 | return NULL; | |
1045 | } | |
1046 | { | |
0e2ff151 | 1047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1048 | _result = (long )wxSize_y_get(_arg0); |
1049 | ||
0e2ff151 | 1050 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1051 | if (PyErr_Occurred()) return NULL; |
1052 | } _resultobj = Py_BuildValue("l",_result); | |
1053 | return _resultobj; | |
1054 | } | |
1055 | ||
1056 | #define new_wxSize(_swigarg0,_swigarg1) (new wxSize(_swigarg0,_swigarg1)) | |
1057 | static PyObject *_wrap_new_wxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1058 | PyObject * _resultobj; | |
1059 | wxSize * _result; | |
1060 | long _arg0 = (long ) 0; | |
1061 | long _arg1 = (long ) 0; | |
1062 | char *_kwnames[] = { "w","h", NULL }; | |
1063 | char _ptemp[128]; | |
1064 | ||
1065 | self = self; | |
1066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ll:new_wxSize",_kwnames,&_arg0,&_arg1)) | |
1067 | return NULL; | |
1068 | { | |
0e2ff151 | 1069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1070 | _result = (wxSize *)new_wxSize(_arg0,_arg1); |
1071 | ||
0e2ff151 | 1072 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1073 | if (PyErr_Occurred()) return NULL; |
1074 | } if (_result) { | |
1075 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSize_p"); | |
1076 | _resultobj = Py_BuildValue("s",_ptemp); | |
1077 | } else { | |
1078 | Py_INCREF(Py_None); | |
1079 | _resultobj = Py_None; | |
1080 | } | |
1081 | return _resultobj; | |
1082 | } | |
1083 | ||
1084 | #define delete_wxSize(_swigobj) (delete _swigobj) | |
1085 | static PyObject *_wrap_delete_wxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1086 | PyObject * _resultobj; | |
1087 | wxSize * _arg0; | |
1088 | wxSize temp; | |
1089 | PyObject * _obj0 = 0; | |
1090 | char *_kwnames[] = { "self", NULL }; | |
1091 | ||
1092 | self = self; | |
1093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxSize",_kwnames,&_obj0)) | |
1094 | return NULL; | |
1095 | { | |
1096 | _arg0 = &temp; | |
1097 | if (! wxSize_helper(_obj0, &_arg0)) | |
1098 | return NULL; | |
1099 | } | |
1100 | { | |
0e2ff151 | 1101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1102 | delete_wxSize(_arg0); |
1103 | ||
0e2ff151 | 1104 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1105 | if (PyErr_Occurred()) return NULL; |
1106 | } Py_INCREF(Py_None); | |
1107 | _resultobj = Py_None; | |
1108 | return _resultobj; | |
1109 | } | |
1110 | ||
1111 | #define wxSize_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1)) | |
1112 | static PyObject *_wrap_wxSize_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1113 | PyObject * _resultobj; | |
1114 | wxSize * _arg0; | |
1115 | long _arg1; | |
1116 | long _arg2; | |
1117 | wxSize temp; | |
1118 | PyObject * _obj0 = 0; | |
1119 | char *_kwnames[] = { "self","w","h", NULL }; | |
1120 | ||
1121 | self = self; | |
1122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxSize_Set",_kwnames,&_obj0,&_arg1,&_arg2)) | |
1123 | return NULL; | |
1124 | { | |
1125 | _arg0 = &temp; | |
1126 | if (! wxSize_helper(_obj0, &_arg0)) | |
1127 | return NULL; | |
1128 | } | |
1129 | { | |
0e2ff151 | 1130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1131 | wxSize_Set(_arg0,_arg1,_arg2); |
1132 | ||
0e2ff151 | 1133 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1134 | if (PyErr_Occurred()) return NULL; |
1135 | } Py_INCREF(Py_None); | |
1136 | _resultobj = Py_None; | |
1137 | return _resultobj; | |
1138 | } | |
1139 | ||
1140 | #define wxSize_GetX(_swigobj) (_swigobj->GetX()) | |
1141 | static PyObject *_wrap_wxSize_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1142 | PyObject * _resultobj; | |
1143 | long _result; | |
1144 | wxSize * _arg0; | |
1145 | wxSize temp; | |
1146 | PyObject * _obj0 = 0; | |
1147 | char *_kwnames[] = { "self", NULL }; | |
1148 | ||
1149 | self = self; | |
1150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSize_GetX",_kwnames,&_obj0)) | |
1151 | return NULL; | |
1152 | { | |
1153 | _arg0 = &temp; | |
1154 | if (! wxSize_helper(_obj0, &_arg0)) | |
1155 | return NULL; | |
1156 | } | |
1157 | { | |
0e2ff151 | 1158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1159 | _result = (long )wxSize_GetX(_arg0); |
1160 | ||
0e2ff151 | 1161 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1162 | if (PyErr_Occurred()) return NULL; |
1163 | } _resultobj = Py_BuildValue("l",_result); | |
1164 | return _resultobj; | |
1165 | } | |
1166 | ||
1167 | #define wxSize_GetY(_swigobj) (_swigobj->GetY()) | |
1168 | static PyObject *_wrap_wxSize_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1169 | PyObject * _resultobj; | |
1170 | long _result; | |
1171 | wxSize * _arg0; | |
1172 | wxSize temp; | |
1173 | PyObject * _obj0 = 0; | |
1174 | char *_kwnames[] = { "self", NULL }; | |
1175 | ||
1176 | self = self; | |
1177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSize_GetY",_kwnames,&_obj0)) | |
1178 | return NULL; | |
1179 | { | |
1180 | _arg0 = &temp; | |
1181 | if (! wxSize_helper(_obj0, &_arg0)) | |
1182 | return NULL; | |
1183 | } | |
1184 | { | |
0e2ff151 | 1185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1186 | _result = (long )wxSize_GetY(_arg0); |
1187 | ||
0e2ff151 | 1188 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1189 | if (PyErr_Occurred()) return NULL; |
1190 | } _resultobj = Py_BuildValue("l",_result); | |
1191 | return _resultobj; | |
1192 | } | |
1193 | ||
1194 | #define wxSize_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
1195 | static PyObject *_wrap_wxSize_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1196 | PyObject * _resultobj; | |
1197 | long _result; | |
1198 | wxSize * _arg0; | |
1199 | wxSize temp; | |
1200 | PyObject * _obj0 = 0; | |
1201 | char *_kwnames[] = { "self", NULL }; | |
1202 | ||
1203 | self = self; | |
1204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSize_GetWidth",_kwnames,&_obj0)) | |
1205 | return NULL; | |
1206 | { | |
1207 | _arg0 = &temp; | |
1208 | if (! wxSize_helper(_obj0, &_arg0)) | |
1209 | return NULL; | |
1210 | } | |
1211 | { | |
0e2ff151 | 1212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1213 | _result = (long )wxSize_GetWidth(_arg0); |
1214 | ||
0e2ff151 | 1215 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1216 | if (PyErr_Occurred()) return NULL; |
1217 | } _resultobj = Py_BuildValue("l",_result); | |
1218 | return _resultobj; | |
1219 | } | |
1220 | ||
1221 | #define wxSize_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
1222 | static PyObject *_wrap_wxSize_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1223 | PyObject * _resultobj; | |
1224 | long _result; | |
1225 | wxSize * _arg0; | |
1226 | wxSize temp; | |
1227 | PyObject * _obj0 = 0; | |
1228 | char *_kwnames[] = { "self", NULL }; | |
1229 | ||
1230 | self = self; | |
1231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSize_GetHeight",_kwnames,&_obj0)) | |
1232 | return NULL; | |
1233 | { | |
1234 | _arg0 = &temp; | |
1235 | if (! wxSize_helper(_obj0, &_arg0)) | |
1236 | return NULL; | |
1237 | } | |
1238 | { | |
0e2ff151 | 1239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1240 | _result = (long )wxSize_GetHeight(_arg0); |
1241 | ||
0e2ff151 | 1242 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1243 | if (PyErr_Occurred()) return NULL; |
1244 | } _resultobj = Py_BuildValue("l",_result); | |
1245 | return _resultobj; | |
1246 | } | |
1247 | ||
1248 | #define wxSize_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
1249 | static PyObject *_wrap_wxSize_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1250 | PyObject * _resultobj; | |
1251 | wxSize * _arg0; | |
1252 | long _arg1; | |
1253 | wxSize temp; | |
1254 | PyObject * _obj0 = 0; | |
1255 | char *_kwnames[] = { "self","w", NULL }; | |
1256 | ||
1257 | self = self; | |
1258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxSize_SetWidth",_kwnames,&_obj0,&_arg1)) | |
1259 | return NULL; | |
1260 | { | |
1261 | _arg0 = &temp; | |
1262 | if (! wxSize_helper(_obj0, &_arg0)) | |
1263 | return NULL; | |
1264 | } | |
1265 | { | |
0e2ff151 | 1266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1267 | wxSize_SetWidth(_arg0,_arg1); |
1268 | ||
0e2ff151 | 1269 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1270 | if (PyErr_Occurred()) return NULL; |
1271 | } Py_INCREF(Py_None); | |
1272 | _resultobj = Py_None; | |
1273 | return _resultobj; | |
1274 | } | |
1275 | ||
1276 | #define wxSize_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
1277 | static PyObject *_wrap_wxSize_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1278 | PyObject * _resultobj; | |
1279 | wxSize * _arg0; | |
1280 | long _arg1; | |
1281 | wxSize temp; | |
1282 | PyObject * _obj0 = 0; | |
1283 | char *_kwnames[] = { "self","h", NULL }; | |
1284 | ||
1285 | self = self; | |
1286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxSize_SetHeight",_kwnames,&_obj0,&_arg1)) | |
1287 | return NULL; | |
1288 | { | |
1289 | _arg0 = &temp; | |
1290 | if (! wxSize_helper(_obj0, &_arg0)) | |
1291 | return NULL; | |
1292 | } | |
1293 | { | |
0e2ff151 | 1294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1295 | wxSize_SetHeight(_arg0,_arg1); |
1296 | ||
0e2ff151 | 1297 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1298 | if (PyErr_Occurred()) return NULL; |
1299 | } Py_INCREF(Py_None); | |
1300 | _resultobj = Py_None; | |
1301 | return _resultobj; | |
1302 | } | |
1303 | ||
1304 | static PyObject * wxSize_asTuple(wxSize *self) { | |
1305 | PyObject* tup = PyTuple_New(2); | |
1306 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
1307 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
1308 | return tup; | |
1309 | } | |
1310 | static PyObject *_wrap_wxSize_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1311 | PyObject * _resultobj; | |
1312 | PyObject * _result; | |
1313 | wxSize * _arg0; | |
1314 | wxSize temp; | |
1315 | PyObject * _obj0 = 0; | |
1316 | char *_kwnames[] = { "self", NULL }; | |
1317 | ||
1318 | self = self; | |
1319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSize_asTuple",_kwnames,&_obj0)) | |
1320 | return NULL; | |
1321 | { | |
1322 | _arg0 = &temp; | |
1323 | if (! wxSize_helper(_obj0, &_arg0)) | |
1324 | return NULL; | |
1325 | } | |
1326 | { | |
0e2ff151 | 1327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1328 | _result = (PyObject *)wxSize_asTuple(_arg0); |
1329 | ||
0e2ff151 | 1330 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1331 | if (PyErr_Occurred()) return NULL; |
1332 | }{ | |
1333 | _resultobj = _result; | |
1334 | } | |
1335 | return _resultobj; | |
1336 | } | |
1337 | ||
1338 | static int wxSize___cmp__(wxSize *self,const wxSize * sz) { | |
1339 | if (! sz) return 1; | |
1340 | if (*self == *sz) return 0; | |
1341 | return -1; | |
1342 | } | |
1343 | static PyObject *_wrap_wxSize___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1344 | PyObject * _resultobj; | |
1345 | int _result; | |
1346 | wxSize * _arg0; | |
1347 | wxSize * _arg1; | |
1348 | wxSize temp; | |
1349 | PyObject * _obj0 = 0; | |
1350 | wxSize temp0; | |
1351 | PyObject * _obj1 = 0; | |
1352 | char *_kwnames[] = { "self","sz", NULL }; | |
1353 | ||
1354 | self = self; | |
1355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSize___cmp__",_kwnames,&_obj0,&_obj1)) | |
1356 | return NULL; | |
1357 | { | |
1358 | _arg0 = &temp; | |
1359 | if (! wxSize_helper(_obj0, &_arg0)) | |
1360 | return NULL; | |
1361 | } | |
1362 | { | |
1363 | _arg1 = &temp0; | |
1364 | if (! wxSize_helper(_obj1, &_arg1)) | |
1365 | return NULL; | |
1366 | } | |
1367 | { | |
0e2ff151 | 1368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1369 | _result = (int )wxSize___cmp__(_arg0,_arg1); |
1370 | ||
0e2ff151 | 1371 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1372 | if (PyErr_Occurred()) return NULL; |
1373 | } _resultobj = Py_BuildValue("i",_result); | |
1374 | return _resultobj; | |
1375 | } | |
1376 | ||
1377 | #define wxRealPoint_x_set(_swigobj,_swigval) (_swigobj->x = _swigval,_swigval) | |
1378 | static PyObject *_wrap_wxRealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1379 | PyObject * _resultobj; | |
1380 | double _result; | |
1381 | wxRealPoint * _arg0; | |
1382 | double _arg1; | |
1383 | wxRealPoint temp; | |
1384 | PyObject * _obj0 = 0; | |
1385 | char *_kwnames[] = { "self","x", NULL }; | |
1386 | ||
1387 | self = self; | |
1388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxRealPoint_x_set",_kwnames,&_obj0,&_arg1)) | |
1389 | return NULL; | |
1390 | { | |
1391 | _arg0 = &temp; | |
1392 | if (! wxRealPoint_helper(_obj0, &_arg0)) | |
1393 | return NULL; | |
1394 | } | |
1395 | { | |
0e2ff151 | 1396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1397 | _result = (double )wxRealPoint_x_set(_arg0,_arg1); |
1398 | ||
0e2ff151 | 1399 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1400 | if (PyErr_Occurred()) return NULL; |
1401 | } _resultobj = Py_BuildValue("d",_result); | |
1402 | return _resultobj; | |
1403 | } | |
1404 | ||
1405 | #define wxRealPoint_x_get(_swigobj) ((double ) _swigobj->x) | |
1406 | static PyObject *_wrap_wxRealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1407 | PyObject * _resultobj; | |
1408 | double _result; | |
1409 | wxRealPoint * _arg0; | |
1410 | wxRealPoint temp; | |
1411 | PyObject * _obj0 = 0; | |
1412 | char *_kwnames[] = { "self", NULL }; | |
1413 | ||
1414 | self = self; | |
1415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRealPoint_x_get",_kwnames,&_obj0)) | |
1416 | return NULL; | |
1417 | { | |
1418 | _arg0 = &temp; | |
1419 | if (! wxRealPoint_helper(_obj0, &_arg0)) | |
1420 | return NULL; | |
1421 | } | |
1422 | { | |
0e2ff151 | 1423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1424 | _result = (double )wxRealPoint_x_get(_arg0); |
1425 | ||
0e2ff151 | 1426 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1427 | if (PyErr_Occurred()) return NULL; |
1428 | } _resultobj = Py_BuildValue("d",_result); | |
1429 | return _resultobj; | |
1430 | } | |
1431 | ||
1432 | #define wxRealPoint_y_set(_swigobj,_swigval) (_swigobj->y = _swigval,_swigval) | |
1433 | static PyObject *_wrap_wxRealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1434 | PyObject * _resultobj; | |
1435 | double _result; | |
1436 | wxRealPoint * _arg0; | |
1437 | double _arg1; | |
1438 | wxRealPoint temp; | |
1439 | PyObject * _obj0 = 0; | |
1440 | char *_kwnames[] = { "self","y", NULL }; | |
1441 | ||
1442 | self = self; | |
1443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxRealPoint_y_set",_kwnames,&_obj0,&_arg1)) | |
1444 | return NULL; | |
1445 | { | |
1446 | _arg0 = &temp; | |
1447 | if (! wxRealPoint_helper(_obj0, &_arg0)) | |
1448 | return NULL; | |
1449 | } | |
1450 | { | |
0e2ff151 | 1451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1452 | _result = (double )wxRealPoint_y_set(_arg0,_arg1); |
1453 | ||
0e2ff151 | 1454 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1455 | if (PyErr_Occurred()) return NULL; |
1456 | } _resultobj = Py_BuildValue("d",_result); | |
1457 | return _resultobj; | |
1458 | } | |
1459 | ||
1460 | #define wxRealPoint_y_get(_swigobj) ((double ) _swigobj->y) | |
1461 | static PyObject *_wrap_wxRealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1462 | PyObject * _resultobj; | |
1463 | double _result; | |
1464 | wxRealPoint * _arg0; | |
1465 | wxRealPoint temp; | |
1466 | PyObject * _obj0 = 0; | |
1467 | char *_kwnames[] = { "self", NULL }; | |
1468 | ||
1469 | self = self; | |
1470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRealPoint_y_get",_kwnames,&_obj0)) | |
1471 | return NULL; | |
1472 | { | |
1473 | _arg0 = &temp; | |
1474 | if (! wxRealPoint_helper(_obj0, &_arg0)) | |
1475 | return NULL; | |
1476 | } | |
1477 | { | |
0e2ff151 | 1478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1479 | _result = (double )wxRealPoint_y_get(_arg0); |
1480 | ||
0e2ff151 | 1481 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1482 | if (PyErr_Occurred()) return NULL; |
1483 | } _resultobj = Py_BuildValue("d",_result); | |
1484 | return _resultobj; | |
1485 | } | |
1486 | ||
1487 | #define new_wxRealPoint(_swigarg0,_swigarg1) (new wxRealPoint(_swigarg0,_swigarg1)) | |
1488 | static PyObject *_wrap_new_wxRealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1489 | PyObject * _resultobj; | |
1490 | wxRealPoint * _result; | |
1491 | double _arg0 = (double ) 0.0; | |
1492 | double _arg1 = (double ) 0.0; | |
1493 | char *_kwnames[] = { "x","y", NULL }; | |
1494 | char _ptemp[128]; | |
1495 | ||
1496 | self = self; | |
1497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|dd:new_wxRealPoint",_kwnames,&_arg0,&_arg1)) | |
1498 | return NULL; | |
1499 | { | |
0e2ff151 | 1500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1501 | _result = (wxRealPoint *)new_wxRealPoint(_arg0,_arg1); |
1502 | ||
0e2ff151 | 1503 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1504 | if (PyErr_Occurred()) return NULL; |
1505 | } if (_result) { | |
1506 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRealPoint_p"); | |
1507 | _resultobj = Py_BuildValue("s",_ptemp); | |
1508 | } else { | |
1509 | Py_INCREF(Py_None); | |
1510 | _resultobj = Py_None; | |
1511 | } | |
1512 | return _resultobj; | |
1513 | } | |
1514 | ||
1515 | #define delete_wxRealPoint(_swigobj) (delete _swigobj) | |
1516 | static PyObject *_wrap_delete_wxRealPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1517 | PyObject * _resultobj; | |
1518 | wxRealPoint * _arg0; | |
1519 | wxRealPoint temp; | |
1520 | PyObject * _obj0 = 0; | |
1521 | char *_kwnames[] = { "self", NULL }; | |
1522 | ||
1523 | self = self; | |
1524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRealPoint",_kwnames,&_obj0)) | |
1525 | return NULL; | |
1526 | { | |
1527 | _arg0 = &temp; | |
1528 | if (! wxRealPoint_helper(_obj0, &_arg0)) | |
1529 | return NULL; | |
1530 | } | |
1531 | { | |
0e2ff151 | 1532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1533 | delete_wxRealPoint(_arg0); |
1534 | ||
0e2ff151 | 1535 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1536 | if (PyErr_Occurred()) return NULL; |
1537 | } Py_INCREF(Py_None); | |
1538 | _resultobj = Py_None; | |
1539 | return _resultobj; | |
1540 | } | |
1541 | ||
1542 | static void wxRealPoint_Set(wxRealPoint *self,double x,double y) { | |
1543 | self->x = x; | |
1544 | self->y = y; | |
1545 | } | |
1546 | static PyObject *_wrap_wxRealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1547 | PyObject * _resultobj; | |
1548 | wxRealPoint * _arg0; | |
1549 | double _arg1; | |
1550 | double _arg2; | |
1551 | wxRealPoint temp; | |
1552 | PyObject * _obj0 = 0; | |
1553 | char *_kwnames[] = { "self","x","y", NULL }; | |
1554 | ||
1555 | self = self; | |
1556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxRealPoint_Set",_kwnames,&_obj0,&_arg1,&_arg2)) | |
1557 | return NULL; | |
1558 | { | |
1559 | _arg0 = &temp; | |
1560 | if (! wxRealPoint_helper(_obj0, &_arg0)) | |
1561 | return NULL; | |
1562 | } | |
1563 | { | |
0e2ff151 | 1564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1565 | wxRealPoint_Set(_arg0,_arg1,_arg2); |
1566 | ||
0e2ff151 | 1567 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1568 | if (PyErr_Occurred()) return NULL; |
1569 | } Py_INCREF(Py_None); | |
1570 | _resultobj = Py_None; | |
1571 | return _resultobj; | |
1572 | } | |
1573 | ||
1574 | static PyObject * wxRealPoint_asTuple(wxRealPoint *self) { | |
1575 | PyObject* tup = PyTuple_New(2); | |
1576 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x)); | |
1577 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y)); | |
1578 | return tup; | |
1579 | } | |
1580 | static PyObject *_wrap_wxRealPoint_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1581 | PyObject * _resultobj; | |
1582 | PyObject * _result; | |
1583 | wxRealPoint * _arg0; | |
1584 | wxRealPoint temp; | |
1585 | PyObject * _obj0 = 0; | |
1586 | char *_kwnames[] = { "self", NULL }; | |
1587 | ||
1588 | self = self; | |
1589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRealPoint_asTuple",_kwnames,&_obj0)) | |
1590 | return NULL; | |
1591 | { | |
1592 | _arg0 = &temp; | |
1593 | if (! wxRealPoint_helper(_obj0, &_arg0)) | |
1594 | return NULL; | |
1595 | } | |
1596 | { | |
0e2ff151 | 1597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1598 | _result = (PyObject *)wxRealPoint_asTuple(_arg0); |
1599 | ||
0e2ff151 | 1600 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1601 | if (PyErr_Occurred()) return NULL; |
1602 | }{ | |
1603 | _resultobj = _result; | |
1604 | } | |
1605 | return _resultobj; | |
1606 | } | |
1607 | ||
1608 | static wxRealPoint wxRealPoint___add__(wxRealPoint *self,const wxRealPoint * p) { | |
1609 | if (! p) return *self; | |
1610 | return *self + *p; | |
1611 | } | |
1612 | static PyObject *_wrap_wxRealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1613 | PyObject * _resultobj; | |
1614 | wxRealPoint * _result; | |
1615 | wxRealPoint * _arg0; | |
1616 | wxRealPoint * _arg1; | |
1617 | wxRealPoint temp; | |
1618 | PyObject * _obj0 = 0; | |
1619 | wxRealPoint temp0; | |
1620 | PyObject * _obj1 = 0; | |
1621 | char *_kwnames[] = { "self","p", NULL }; | |
1622 | char _ptemp[128]; | |
1623 | ||
1624 | self = self; | |
1625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRealPoint___add__",_kwnames,&_obj0,&_obj1)) | |
1626 | return NULL; | |
1627 | { | |
1628 | _arg0 = &temp; | |
1629 | if (! wxRealPoint_helper(_obj0, &_arg0)) | |
1630 | return NULL; | |
1631 | } | |
1632 | { | |
1633 | _arg1 = &temp0; | |
1634 | if (! wxRealPoint_helper(_obj1, &_arg1)) | |
1635 | return NULL; | |
1636 | } | |
1637 | { | |
0e2ff151 | 1638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1639 | _result = new wxRealPoint (wxRealPoint___add__(_arg0,_arg1)); |
1640 | ||
0e2ff151 | 1641 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1642 | if (PyErr_Occurred()) return NULL; |
1643 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRealPoint_p"); | |
1644 | _resultobj = Py_BuildValue("s",_ptemp); | |
1645 | return _resultobj; | |
1646 | } | |
1647 | ||
1648 | static wxRealPoint wxRealPoint___sub__(wxRealPoint *self,const wxRealPoint * p) { | |
1649 | if (! p) return *self; | |
1650 | return *self - *p; | |
1651 | } | |
1652 | static PyObject *_wrap_wxRealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1653 | PyObject * _resultobj; | |
1654 | wxRealPoint * _result; | |
1655 | wxRealPoint * _arg0; | |
1656 | wxRealPoint * _arg1; | |
1657 | wxRealPoint temp; | |
1658 | PyObject * _obj0 = 0; | |
1659 | wxRealPoint temp0; | |
1660 | PyObject * _obj1 = 0; | |
1661 | char *_kwnames[] = { "self","p", NULL }; | |
1662 | char _ptemp[128]; | |
1663 | ||
1664 | self = self; | |
1665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRealPoint___sub__",_kwnames,&_obj0,&_obj1)) | |
1666 | return NULL; | |
1667 | { | |
1668 | _arg0 = &temp; | |
1669 | if (! wxRealPoint_helper(_obj0, &_arg0)) | |
1670 | return NULL; | |
1671 | } | |
1672 | { | |
1673 | _arg1 = &temp0; | |
1674 | if (! wxRealPoint_helper(_obj1, &_arg1)) | |
1675 | return NULL; | |
1676 | } | |
1677 | { | |
0e2ff151 | 1678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1679 | _result = new wxRealPoint (wxRealPoint___sub__(_arg0,_arg1)); |
1680 | ||
0e2ff151 | 1681 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1682 | if (PyErr_Occurred()) return NULL; |
1683 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRealPoint_p"); | |
1684 | _resultobj = Py_BuildValue("s",_ptemp); | |
1685 | return _resultobj; | |
1686 | } | |
1687 | ||
1688 | static int wxRealPoint___cmp__(wxRealPoint *self,const wxRealPoint * p) { | |
1689 | if (! p) return 1; | |
1690 | if (*self == *p) return 0; | |
1691 | return -1; | |
1692 | } | |
1693 | static PyObject *_wrap_wxRealPoint___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1694 | PyObject * _resultobj; | |
1695 | int _result; | |
1696 | wxRealPoint * _arg0; | |
1697 | wxRealPoint * _arg1; | |
1698 | wxRealPoint temp; | |
1699 | PyObject * _obj0 = 0; | |
1700 | wxRealPoint temp0; | |
1701 | PyObject * _obj1 = 0; | |
1702 | char *_kwnames[] = { "self","p", NULL }; | |
1703 | ||
1704 | self = self; | |
1705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRealPoint___cmp__",_kwnames,&_obj0,&_obj1)) | |
1706 | return NULL; | |
1707 | { | |
1708 | _arg0 = &temp; | |
1709 | if (! wxRealPoint_helper(_obj0, &_arg0)) | |
1710 | return NULL; | |
1711 | } | |
1712 | { | |
1713 | _arg1 = &temp0; | |
1714 | if (! wxRealPoint_helper(_obj1, &_arg1)) | |
1715 | return NULL; | |
1716 | } | |
1717 | { | |
0e2ff151 | 1718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1719 | _result = (int )wxRealPoint___cmp__(_arg0,_arg1); |
1720 | ||
0e2ff151 | 1721 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1722 | if (PyErr_Occurred()) return NULL; |
1723 | } _resultobj = Py_BuildValue("i",_result); | |
1724 | return _resultobj; | |
1725 | } | |
1726 | ||
1727 | #define wxPoint_x_set(_swigobj,_swigval) (_swigobj->x = _swigval,_swigval) | |
1728 | static PyObject *_wrap_wxPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1729 | PyObject * _resultobj; | |
1730 | long _result; | |
1731 | wxPoint * _arg0; | |
1732 | long _arg1; | |
1733 | wxPoint temp; | |
1734 | PyObject * _obj0 = 0; | |
1735 | char *_kwnames[] = { "self","x", NULL }; | |
1736 | ||
1737 | self = self; | |
1738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxPoint_x_set",_kwnames,&_obj0,&_arg1)) | |
1739 | return NULL; | |
1740 | { | |
1741 | _arg0 = &temp; | |
1742 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1743 | return NULL; | |
1744 | } | |
1745 | { | |
0e2ff151 | 1746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1747 | _result = (long )wxPoint_x_set(_arg0,_arg1); |
1748 | ||
0e2ff151 | 1749 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1750 | if (PyErr_Occurred()) return NULL; |
1751 | } _resultobj = Py_BuildValue("l",_result); | |
1752 | return _resultobj; | |
1753 | } | |
1754 | ||
1755 | #define wxPoint_x_get(_swigobj) ((long ) _swigobj->x) | |
1756 | static PyObject *_wrap_wxPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1757 | PyObject * _resultobj; | |
1758 | long _result; | |
1759 | wxPoint * _arg0; | |
1760 | wxPoint temp; | |
1761 | PyObject * _obj0 = 0; | |
1762 | char *_kwnames[] = { "self", NULL }; | |
1763 | ||
1764 | self = self; | |
1765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint_x_get",_kwnames,&_obj0)) | |
1766 | return NULL; | |
1767 | { | |
1768 | _arg0 = &temp; | |
1769 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1770 | return NULL; | |
1771 | } | |
1772 | { | |
0e2ff151 | 1773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1774 | _result = (long )wxPoint_x_get(_arg0); |
1775 | ||
0e2ff151 | 1776 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1777 | if (PyErr_Occurred()) return NULL; |
1778 | } _resultobj = Py_BuildValue("l",_result); | |
1779 | return _resultobj; | |
1780 | } | |
1781 | ||
1782 | #define wxPoint_y_set(_swigobj,_swigval) (_swigobj->y = _swigval,_swigval) | |
1783 | static PyObject *_wrap_wxPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1784 | PyObject * _resultobj; | |
1785 | long _result; | |
1786 | wxPoint * _arg0; | |
1787 | long _arg1; | |
1788 | wxPoint temp; | |
1789 | PyObject * _obj0 = 0; | |
1790 | char *_kwnames[] = { "self","y", NULL }; | |
1791 | ||
1792 | self = self; | |
1793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxPoint_y_set",_kwnames,&_obj0,&_arg1)) | |
1794 | return NULL; | |
1795 | { | |
1796 | _arg0 = &temp; | |
1797 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1798 | return NULL; | |
1799 | } | |
1800 | { | |
0e2ff151 | 1801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1802 | _result = (long )wxPoint_y_set(_arg0,_arg1); |
1803 | ||
0e2ff151 | 1804 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1805 | if (PyErr_Occurred()) return NULL; |
1806 | } _resultobj = Py_BuildValue("l",_result); | |
1807 | return _resultobj; | |
1808 | } | |
1809 | ||
1810 | #define wxPoint_y_get(_swigobj) ((long ) _swigobj->y) | |
1811 | static PyObject *_wrap_wxPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1812 | PyObject * _resultobj; | |
1813 | long _result; | |
1814 | wxPoint * _arg0; | |
1815 | wxPoint temp; | |
1816 | PyObject * _obj0 = 0; | |
1817 | char *_kwnames[] = { "self", NULL }; | |
1818 | ||
1819 | self = self; | |
1820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint_y_get",_kwnames,&_obj0)) | |
1821 | return NULL; | |
1822 | { | |
1823 | _arg0 = &temp; | |
1824 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1825 | return NULL; | |
1826 | } | |
1827 | { | |
0e2ff151 | 1828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1829 | _result = (long )wxPoint_y_get(_arg0); |
1830 | ||
0e2ff151 | 1831 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1832 | if (PyErr_Occurred()) return NULL; |
1833 | } _resultobj = Py_BuildValue("l",_result); | |
1834 | return _resultobj; | |
1835 | } | |
1836 | ||
1837 | #define new_wxPoint(_swigarg0,_swigarg1) (new wxPoint(_swigarg0,_swigarg1)) | |
1838 | static PyObject *_wrap_new_wxPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1839 | PyObject * _resultobj; | |
1840 | wxPoint * _result; | |
1841 | long _arg0 = (long ) 0; | |
1842 | long _arg1 = (long ) 0; | |
1843 | char *_kwnames[] = { "x","y", NULL }; | |
1844 | char _ptemp[128]; | |
1845 | ||
1846 | self = self; | |
1847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ll:new_wxPoint",_kwnames,&_arg0,&_arg1)) | |
1848 | return NULL; | |
1849 | { | |
0e2ff151 | 1850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1851 | _result = (wxPoint *)new_wxPoint(_arg0,_arg1); |
1852 | ||
0e2ff151 | 1853 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1854 | if (PyErr_Occurred()) return NULL; |
1855 | } if (_result) { | |
1856 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p"); | |
1857 | _resultobj = Py_BuildValue("s",_ptemp); | |
1858 | } else { | |
1859 | Py_INCREF(Py_None); | |
1860 | _resultobj = Py_None; | |
1861 | } | |
1862 | return _resultobj; | |
1863 | } | |
1864 | ||
1865 | #define delete_wxPoint(_swigobj) (delete _swigobj) | |
1866 | static PyObject *_wrap_delete_wxPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1867 | PyObject * _resultobj; | |
1868 | wxPoint * _arg0; | |
1869 | wxPoint temp; | |
1870 | PyObject * _obj0 = 0; | |
1871 | char *_kwnames[] = { "self", NULL }; | |
1872 | ||
1873 | self = self; | |
1874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPoint",_kwnames,&_obj0)) | |
1875 | return NULL; | |
1876 | { | |
1877 | _arg0 = &temp; | |
1878 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1879 | return NULL; | |
1880 | } | |
1881 | { | |
0e2ff151 | 1882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1883 | delete_wxPoint(_arg0); |
1884 | ||
0e2ff151 | 1885 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1886 | if (PyErr_Occurred()) return NULL; |
1887 | } Py_INCREF(Py_None); | |
1888 | _resultobj = Py_None; | |
1889 | return _resultobj; | |
1890 | } | |
1891 | ||
1892 | static void wxPoint_Set(wxPoint *self,long x,long y) { | |
1893 | self->x = x; | |
1894 | self->y = y; | |
1895 | } | |
1896 | static PyObject *_wrap_wxPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1897 | PyObject * _resultobj; | |
1898 | wxPoint * _arg0; | |
1899 | long _arg1; | |
1900 | long _arg2; | |
1901 | wxPoint temp; | |
1902 | PyObject * _obj0 = 0; | |
1903 | char *_kwnames[] = { "self","x","y", NULL }; | |
1904 | ||
1905 | self = self; | |
1906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxPoint_Set",_kwnames,&_obj0,&_arg1,&_arg2)) | |
1907 | return NULL; | |
1908 | { | |
1909 | _arg0 = &temp; | |
1910 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1911 | return NULL; | |
1912 | } | |
1913 | { | |
0e2ff151 | 1914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1915 | wxPoint_Set(_arg0,_arg1,_arg2); |
1916 | ||
0e2ff151 | 1917 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1918 | if (PyErr_Occurred()) return NULL; |
1919 | } Py_INCREF(Py_None); | |
1920 | _resultobj = Py_None; | |
1921 | return _resultobj; | |
1922 | } | |
1923 | ||
1924 | static PyObject * wxPoint_asTuple(wxPoint *self) { | |
1925 | PyObject* tup = PyTuple_New(2); | |
1926 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
1927 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
1928 | return tup; | |
1929 | } | |
1930 | static PyObject *_wrap_wxPoint_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1931 | PyObject * _resultobj; | |
1932 | PyObject * _result; | |
1933 | wxPoint * _arg0; | |
1934 | wxPoint temp; | |
1935 | PyObject * _obj0 = 0; | |
1936 | char *_kwnames[] = { "self", NULL }; | |
1937 | ||
1938 | self = self; | |
1939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint_asTuple",_kwnames,&_obj0)) | |
1940 | return NULL; | |
1941 | { | |
1942 | _arg0 = &temp; | |
1943 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1944 | return NULL; | |
1945 | } | |
1946 | { | |
0e2ff151 | 1947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1948 | _result = (PyObject *)wxPoint_asTuple(_arg0); |
1949 | ||
0e2ff151 | 1950 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1951 | if (PyErr_Occurred()) return NULL; |
1952 | }{ | |
1953 | _resultobj = _result; | |
1954 | } | |
1955 | return _resultobj; | |
1956 | } | |
1957 | ||
1958 | static wxPoint wxPoint___add__(wxPoint *self,const wxPoint * p) { | |
1959 | if (! p) return *self; | |
1960 | return *self + *p; | |
1961 | } | |
1962 | static PyObject *_wrap_wxPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1963 | PyObject * _resultobj; | |
1964 | wxPoint * _result; | |
1965 | wxPoint * _arg0; | |
1966 | wxPoint * _arg1; | |
1967 | wxPoint temp; | |
1968 | PyObject * _obj0 = 0; | |
1969 | wxPoint temp0; | |
1970 | PyObject * _obj1 = 0; | |
1971 | char *_kwnames[] = { "self","p", NULL }; | |
1972 | char _ptemp[128]; | |
1973 | ||
1974 | self = self; | |
1975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint___add__",_kwnames,&_obj0,&_obj1)) | |
1976 | return NULL; | |
1977 | { | |
1978 | _arg0 = &temp; | |
1979 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1980 | return NULL; | |
1981 | } | |
1982 | { | |
1983 | _arg1 = &temp0; | |
1984 | if (! wxPoint_helper(_obj1, &_arg1)) | |
1985 | return NULL; | |
1986 | } | |
1987 | { | |
0e2ff151 | 1988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
1989 | _result = new wxPoint (wxPoint___add__(_arg0,_arg1)); |
1990 | ||
0e2ff151 | 1991 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
1992 | if (PyErr_Occurred()) return NULL; |
1993 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
1994 | _resultobj = Py_BuildValue("s",_ptemp); | |
1995 | return _resultobj; | |
1996 | } | |
1997 | ||
1998 | static wxPoint wxPoint___sub__(wxPoint *self,const wxPoint * p) { | |
1999 | if (! p) return *self; | |
2000 | return *self - *p; | |
2001 | } | |
2002 | static PyObject *_wrap_wxPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2003 | PyObject * _resultobj; | |
2004 | wxPoint * _result; | |
2005 | wxPoint * _arg0; | |
2006 | wxPoint * _arg1; | |
2007 | wxPoint temp; | |
2008 | PyObject * _obj0 = 0; | |
2009 | wxPoint temp0; | |
2010 | PyObject * _obj1 = 0; | |
2011 | char *_kwnames[] = { "self","p", NULL }; | |
2012 | char _ptemp[128]; | |
2013 | ||
2014 | self = self; | |
2015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint___sub__",_kwnames,&_obj0,&_obj1)) | |
2016 | return NULL; | |
2017 | { | |
2018 | _arg0 = &temp; | |
2019 | if (! wxPoint_helper(_obj0, &_arg0)) | |
2020 | return NULL; | |
2021 | } | |
2022 | { | |
2023 | _arg1 = &temp0; | |
2024 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2025 | return NULL; | |
2026 | } | |
2027 | { | |
0e2ff151 | 2028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2029 | _result = new wxPoint (wxPoint___sub__(_arg0,_arg1)); |
2030 | ||
0e2ff151 | 2031 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2032 | if (PyErr_Occurred()) return NULL; |
2033 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
2034 | _resultobj = Py_BuildValue("s",_ptemp); | |
2035 | return _resultobj; | |
2036 | } | |
2037 | ||
2038 | static int wxPoint___cmp__(wxPoint *self,const wxPoint * p) { | |
2039 | if (! p) return 1; | |
2040 | if (*self == *p) return 0; | |
2041 | return -1; | |
2042 | } | |
2043 | static PyObject *_wrap_wxPoint___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2044 | PyObject * _resultobj; | |
2045 | int _result; | |
2046 | wxPoint * _arg0; | |
2047 | wxPoint * _arg1; | |
2048 | wxPoint temp; | |
2049 | PyObject * _obj0 = 0; | |
2050 | wxPoint temp0; | |
2051 | PyObject * _obj1 = 0; | |
2052 | char *_kwnames[] = { "self","p", NULL }; | |
2053 | ||
2054 | self = self; | |
2055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint___cmp__",_kwnames,&_obj0,&_obj1)) | |
2056 | return NULL; | |
2057 | { | |
2058 | _arg0 = &temp; | |
2059 | if (! wxPoint_helper(_obj0, &_arg0)) | |
2060 | return NULL; | |
2061 | } | |
2062 | { | |
2063 | _arg1 = &temp0; | |
2064 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2065 | return NULL; | |
2066 | } | |
2067 | { | |
0e2ff151 | 2068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2069 | _result = (int )wxPoint___cmp__(_arg0,_arg1); |
2070 | ||
0e2ff151 | 2071 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2072 | if (PyErr_Occurred()) return NULL; |
2073 | } _resultobj = Py_BuildValue("i",_result); | |
2074 | return _resultobj; | |
2075 | } | |
2076 | ||
2077 | #define new_wxRect(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRect(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
2078 | static PyObject *_wrap_new_wxRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2079 | PyObject * _resultobj; | |
2080 | wxRect * _result; | |
2081 | int _arg0 = (int ) 0; | |
2082 | int _arg1 = (int ) 0; | |
2083 | int _arg2 = (int ) 0; | |
2084 | int _arg3 = (int ) 0; | |
2085 | char *_kwnames[] = { "x","y","w","h", NULL }; | |
2086 | char _ptemp[128]; | |
2087 | ||
2088 | self = self; | |
2089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiii:new_wxRect",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
2090 | return NULL; | |
2091 | { | |
0e2ff151 | 2092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2093 | _result = (wxRect *)new_wxRect(_arg0,_arg1,_arg2,_arg3); |
2094 | ||
0e2ff151 | 2095 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2096 | if (PyErr_Occurred()) return NULL; |
2097 | } if (_result) { | |
2098 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p"); | |
2099 | _resultobj = Py_BuildValue("s",_ptemp); | |
2100 | } else { | |
2101 | Py_INCREF(Py_None); | |
2102 | _resultobj = Py_None; | |
2103 | } | |
2104 | return _resultobj; | |
2105 | } | |
2106 | ||
2107 | #define delete_wxRect(_swigobj) (delete _swigobj) | |
2108 | static PyObject *_wrap_delete_wxRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2109 | PyObject * _resultobj; | |
2110 | wxRect * _arg0; | |
2111 | wxRect temp; | |
2112 | PyObject * _obj0 = 0; | |
2113 | char *_kwnames[] = { "self", NULL }; | |
2114 | ||
2115 | self = self; | |
2116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRect",_kwnames,&_obj0)) | |
2117 | return NULL; | |
2118 | { | |
2119 | _arg0 = &temp; | |
2120 | if (! wxRect_helper(_obj0, &_arg0)) | |
2121 | return NULL; | |
2122 | } | |
2123 | { | |
0e2ff151 | 2124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2125 | delete_wxRect(_arg0); |
2126 | ||
0e2ff151 | 2127 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2128 | if (PyErr_Occurred()) return NULL; |
2129 | } Py_INCREF(Py_None); | |
2130 | _resultobj = Py_None; | |
2131 | return _resultobj; | |
2132 | } | |
2133 | ||
2134 | #define wxRect_GetX(_swigobj) (_swigobj->GetX()) | |
2135 | static PyObject *_wrap_wxRect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2136 | PyObject * _resultobj; | |
2137 | int _result; | |
2138 | wxRect * _arg0; | |
2139 | wxRect temp; | |
2140 | PyObject * _obj0 = 0; | |
2141 | char *_kwnames[] = { "self", NULL }; | |
2142 | ||
2143 | self = self; | |
2144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetX",_kwnames,&_obj0)) | |
2145 | return NULL; | |
2146 | { | |
2147 | _arg0 = &temp; | |
2148 | if (! wxRect_helper(_obj0, &_arg0)) | |
2149 | return NULL; | |
2150 | } | |
2151 | { | |
0e2ff151 | 2152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2153 | _result = (int )wxRect_GetX(_arg0); |
2154 | ||
0e2ff151 | 2155 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2156 | if (PyErr_Occurred()) return NULL; |
2157 | } _resultobj = Py_BuildValue("i",_result); | |
2158 | return _resultobj; | |
2159 | } | |
2160 | ||
2161 | #define wxRect_SetX(_swigobj,_swigarg0) (_swigobj->SetX(_swigarg0)) | |
2162 | static PyObject *_wrap_wxRect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2163 | PyObject * _resultobj; | |
2164 | wxRect * _arg0; | |
2165 | int _arg1; | |
2166 | wxRect temp; | |
2167 | PyObject * _obj0 = 0; | |
2168 | char *_kwnames[] = { "self","X", NULL }; | |
2169 | ||
2170 | self = self; | |
2171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetX",_kwnames,&_obj0,&_arg1)) | |
2172 | return NULL; | |
2173 | { | |
2174 | _arg0 = &temp; | |
2175 | if (! wxRect_helper(_obj0, &_arg0)) | |
2176 | return NULL; | |
2177 | } | |
2178 | { | |
0e2ff151 | 2179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2180 | wxRect_SetX(_arg0,_arg1); |
2181 | ||
0e2ff151 | 2182 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2183 | if (PyErr_Occurred()) return NULL; |
2184 | } Py_INCREF(Py_None); | |
2185 | _resultobj = Py_None; | |
2186 | return _resultobj; | |
2187 | } | |
2188 | ||
2189 | #define wxRect_GetY(_swigobj) (_swigobj->GetY()) | |
2190 | static PyObject *_wrap_wxRect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2191 | PyObject * _resultobj; | |
2192 | int _result; | |
2193 | wxRect * _arg0; | |
2194 | wxRect temp; | |
2195 | PyObject * _obj0 = 0; | |
2196 | char *_kwnames[] = { "self", NULL }; | |
2197 | ||
2198 | self = self; | |
2199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetY",_kwnames,&_obj0)) | |
2200 | return NULL; | |
2201 | { | |
2202 | _arg0 = &temp; | |
2203 | if (! wxRect_helper(_obj0, &_arg0)) | |
2204 | return NULL; | |
2205 | } | |
2206 | { | |
0e2ff151 | 2207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2208 | _result = (int )wxRect_GetY(_arg0); |
2209 | ||
0e2ff151 | 2210 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2211 | if (PyErr_Occurred()) return NULL; |
2212 | } _resultobj = Py_BuildValue("i",_result); | |
2213 | return _resultobj; | |
2214 | } | |
2215 | ||
2216 | #define wxRect_SetY(_swigobj,_swigarg0) (_swigobj->SetY(_swigarg0)) | |
2217 | static PyObject *_wrap_wxRect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2218 | PyObject * _resultobj; | |
2219 | wxRect * _arg0; | |
2220 | int _arg1; | |
2221 | wxRect temp; | |
2222 | PyObject * _obj0 = 0; | |
2223 | char *_kwnames[] = { "self","Y", NULL }; | |
2224 | ||
2225 | self = self; | |
2226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetY",_kwnames,&_obj0,&_arg1)) | |
2227 | return NULL; | |
2228 | { | |
2229 | _arg0 = &temp; | |
2230 | if (! wxRect_helper(_obj0, &_arg0)) | |
2231 | return NULL; | |
2232 | } | |
2233 | { | |
0e2ff151 | 2234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2235 | wxRect_SetY(_arg0,_arg1); |
2236 | ||
0e2ff151 | 2237 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2238 | if (PyErr_Occurred()) return NULL; |
2239 | } Py_INCREF(Py_None); | |
2240 | _resultobj = Py_None; | |
2241 | return _resultobj; | |
2242 | } | |
2243 | ||
2244 | #define wxRect_GetWidth(_swigobj) (_swigobj->GetWidth()) | |
2245 | static PyObject *_wrap_wxRect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2246 | PyObject * _resultobj; | |
2247 | int _result; | |
2248 | wxRect * _arg0; | |
2249 | wxRect temp; | |
2250 | PyObject * _obj0 = 0; | |
2251 | char *_kwnames[] = { "self", NULL }; | |
2252 | ||
2253 | self = self; | |
2254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetWidth",_kwnames,&_obj0)) | |
2255 | return NULL; | |
2256 | { | |
2257 | _arg0 = &temp; | |
2258 | if (! wxRect_helper(_obj0, &_arg0)) | |
2259 | return NULL; | |
2260 | } | |
2261 | { | |
0e2ff151 | 2262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2263 | _result = (int )wxRect_GetWidth(_arg0); |
2264 | ||
0e2ff151 | 2265 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2266 | if (PyErr_Occurred()) return NULL; |
2267 | } _resultobj = Py_BuildValue("i",_result); | |
2268 | return _resultobj; | |
2269 | } | |
2270 | ||
2271 | #define wxRect_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0)) | |
2272 | static PyObject *_wrap_wxRect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2273 | PyObject * _resultobj; | |
2274 | wxRect * _arg0; | |
2275 | int _arg1; | |
2276 | wxRect temp; | |
2277 | PyObject * _obj0 = 0; | |
2278 | char *_kwnames[] = { "self","w", NULL }; | |
2279 | ||
2280 | self = self; | |
2281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetWidth",_kwnames,&_obj0,&_arg1)) | |
2282 | return NULL; | |
2283 | { | |
2284 | _arg0 = &temp; | |
2285 | if (! wxRect_helper(_obj0, &_arg0)) | |
2286 | return NULL; | |
2287 | } | |
2288 | { | |
0e2ff151 | 2289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2290 | wxRect_SetWidth(_arg0,_arg1); |
2291 | ||
0e2ff151 | 2292 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2293 | if (PyErr_Occurred()) return NULL; |
2294 | } Py_INCREF(Py_None); | |
2295 | _resultobj = Py_None; | |
2296 | return _resultobj; | |
2297 | } | |
2298 | ||
2299 | #define wxRect_GetHeight(_swigobj) (_swigobj->GetHeight()) | |
2300 | static PyObject *_wrap_wxRect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2301 | PyObject * _resultobj; | |
2302 | int _result; | |
2303 | wxRect * _arg0; | |
2304 | wxRect temp; | |
2305 | PyObject * _obj0 = 0; | |
2306 | char *_kwnames[] = { "self", NULL }; | |
2307 | ||
2308 | self = self; | |
2309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetHeight",_kwnames,&_obj0)) | |
2310 | return NULL; | |
2311 | { | |
2312 | _arg0 = &temp; | |
2313 | if (! wxRect_helper(_obj0, &_arg0)) | |
2314 | return NULL; | |
2315 | } | |
2316 | { | |
0e2ff151 | 2317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2318 | _result = (int )wxRect_GetHeight(_arg0); |
2319 | ||
0e2ff151 | 2320 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2321 | if (PyErr_Occurred()) return NULL; |
2322 | } _resultobj = Py_BuildValue("i",_result); | |
2323 | return _resultobj; | |
2324 | } | |
2325 | ||
2326 | #define wxRect_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0)) | |
2327 | static PyObject *_wrap_wxRect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2328 | PyObject * _resultobj; | |
2329 | wxRect * _arg0; | |
2330 | int _arg1; | |
2331 | wxRect temp; | |
2332 | PyObject * _obj0 = 0; | |
2333 | char *_kwnames[] = { "self","h", NULL }; | |
2334 | ||
2335 | self = self; | |
2336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetHeight",_kwnames,&_obj0,&_arg1)) | |
2337 | return NULL; | |
2338 | { | |
2339 | _arg0 = &temp; | |
2340 | if (! wxRect_helper(_obj0, &_arg0)) | |
2341 | return NULL; | |
2342 | } | |
2343 | { | |
0e2ff151 | 2344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2345 | wxRect_SetHeight(_arg0,_arg1); |
2346 | ||
0e2ff151 | 2347 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2348 | if (PyErr_Occurred()) return NULL; |
2349 | } Py_INCREF(Py_None); | |
2350 | _resultobj = Py_None; | |
2351 | return _resultobj; | |
2352 | } | |
2353 | ||
2354 | #define wxRect_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
2355 | static PyObject *_wrap_wxRect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2356 | PyObject * _resultobj; | |
2357 | wxPoint * _result; | |
2358 | wxRect * _arg0; | |
2359 | wxRect temp; | |
2360 | PyObject * _obj0 = 0; | |
2361 | char *_kwnames[] = { "self", NULL }; | |
2362 | char _ptemp[128]; | |
2363 | ||
2364 | self = self; | |
2365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetPosition",_kwnames,&_obj0)) | |
2366 | return NULL; | |
2367 | { | |
2368 | _arg0 = &temp; | |
2369 | if (! wxRect_helper(_obj0, &_arg0)) | |
2370 | return NULL; | |
2371 | } | |
2372 | { | |
0e2ff151 | 2373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2374 | _result = new wxPoint (wxRect_GetPosition(_arg0)); |
2375 | ||
0e2ff151 | 2376 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2377 | if (PyErr_Occurred()) return NULL; |
2378 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
2379 | _resultobj = Py_BuildValue("s",_ptemp); | |
2380 | return _resultobj; | |
2381 | } | |
2382 | ||
2383 | #define wxRect_GetSize(_swigobj) (_swigobj->GetSize()) | |
2384 | static PyObject *_wrap_wxRect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2385 | PyObject * _resultobj; | |
2386 | wxSize * _result; | |
2387 | wxRect * _arg0; | |
2388 | wxRect temp; | |
2389 | PyObject * _obj0 = 0; | |
2390 | char *_kwnames[] = { "self", NULL }; | |
2391 | char _ptemp[128]; | |
2392 | ||
2393 | self = self; | |
2394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetSize",_kwnames,&_obj0)) | |
2395 | return NULL; | |
2396 | { | |
2397 | _arg0 = &temp; | |
2398 | if (! wxRect_helper(_obj0, &_arg0)) | |
2399 | return NULL; | |
2400 | } | |
2401 | { | |
0e2ff151 | 2402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2403 | _result = new wxSize (wxRect_GetSize(_arg0)); |
2404 | ||
0e2ff151 | 2405 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2406 | if (PyErr_Occurred()) return NULL; |
2407 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
2408 | _resultobj = Py_BuildValue("s",_ptemp); | |
2409 | return _resultobj; | |
2410 | } | |
2411 | ||
2412 | #define wxRect_GetLeft(_swigobj) (_swigobj->GetLeft()) | |
2413 | static PyObject *_wrap_wxRect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2414 | PyObject * _resultobj; | |
2415 | int _result; | |
2416 | wxRect * _arg0; | |
2417 | wxRect temp; | |
2418 | PyObject * _obj0 = 0; | |
2419 | char *_kwnames[] = { "self", NULL }; | |
2420 | ||
2421 | self = self; | |
2422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetLeft",_kwnames,&_obj0)) | |
2423 | return NULL; | |
2424 | { | |
2425 | _arg0 = &temp; | |
2426 | if (! wxRect_helper(_obj0, &_arg0)) | |
2427 | return NULL; | |
2428 | } | |
2429 | { | |
0e2ff151 | 2430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2431 | _result = (int )wxRect_GetLeft(_arg0); |
2432 | ||
0e2ff151 | 2433 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2434 | if (PyErr_Occurred()) return NULL; |
2435 | } _resultobj = Py_BuildValue("i",_result); | |
2436 | return _resultobj; | |
2437 | } | |
2438 | ||
2439 | #define wxRect_GetTop(_swigobj) (_swigobj->GetTop()) | |
2440 | static PyObject *_wrap_wxRect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2441 | PyObject * _resultobj; | |
2442 | int _result; | |
2443 | wxRect * _arg0; | |
2444 | wxRect temp; | |
2445 | PyObject * _obj0 = 0; | |
2446 | char *_kwnames[] = { "self", NULL }; | |
2447 | ||
2448 | self = self; | |
2449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetTop",_kwnames,&_obj0)) | |
2450 | return NULL; | |
2451 | { | |
2452 | _arg0 = &temp; | |
2453 | if (! wxRect_helper(_obj0, &_arg0)) | |
2454 | return NULL; | |
2455 | } | |
2456 | { | |
0e2ff151 | 2457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2458 | _result = (int )wxRect_GetTop(_arg0); |
2459 | ||
0e2ff151 | 2460 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2461 | if (PyErr_Occurred()) return NULL; |
2462 | } _resultobj = Py_BuildValue("i",_result); | |
2463 | return _resultobj; | |
2464 | } | |
2465 | ||
2466 | #define wxRect_GetBottom(_swigobj) (_swigobj->GetBottom()) | |
2467 | static PyObject *_wrap_wxRect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2468 | PyObject * _resultobj; | |
2469 | int _result; | |
2470 | wxRect * _arg0; | |
2471 | wxRect temp; | |
2472 | PyObject * _obj0 = 0; | |
2473 | char *_kwnames[] = { "self", NULL }; | |
2474 | ||
2475 | self = self; | |
2476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetBottom",_kwnames,&_obj0)) | |
2477 | return NULL; | |
2478 | { | |
2479 | _arg0 = &temp; | |
2480 | if (! wxRect_helper(_obj0, &_arg0)) | |
2481 | return NULL; | |
2482 | } | |
2483 | { | |
0e2ff151 | 2484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2485 | _result = (int )wxRect_GetBottom(_arg0); |
2486 | ||
0e2ff151 | 2487 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2488 | if (PyErr_Occurred()) return NULL; |
2489 | } _resultobj = Py_BuildValue("i",_result); | |
2490 | return _resultobj; | |
2491 | } | |
2492 | ||
2493 | #define wxRect_GetRight(_swigobj) (_swigobj->GetRight()) | |
2494 | static PyObject *_wrap_wxRect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2495 | PyObject * _resultobj; | |
2496 | int _result; | |
2497 | wxRect * _arg0; | |
2498 | wxRect temp; | |
2499 | PyObject * _obj0 = 0; | |
2500 | char *_kwnames[] = { "self", NULL }; | |
2501 | ||
2502 | self = self; | |
2503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetRight",_kwnames,&_obj0)) | |
2504 | return NULL; | |
2505 | { | |
2506 | _arg0 = &temp; | |
2507 | if (! wxRect_helper(_obj0, &_arg0)) | |
2508 | return NULL; | |
2509 | } | |
2510 | { | |
0e2ff151 | 2511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2512 | _result = (int )wxRect_GetRight(_arg0); |
2513 | ||
0e2ff151 | 2514 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2515 | if (PyErr_Occurred()) return NULL; |
2516 | } _resultobj = Py_BuildValue("i",_result); | |
2517 | return _resultobj; | |
2518 | } | |
2519 | ||
2520 | #define wxRect_SetLeft(_swigobj,_swigarg0) (_swigobj->SetLeft(_swigarg0)) | |
2521 | static PyObject *_wrap_wxRect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2522 | PyObject * _resultobj; | |
2523 | wxRect * _arg0; | |
2524 | int _arg1; | |
2525 | wxRect temp; | |
2526 | PyObject * _obj0 = 0; | |
2527 | char *_kwnames[] = { "self","left", NULL }; | |
2528 | ||
2529 | self = self; | |
2530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetLeft",_kwnames,&_obj0,&_arg1)) | |
2531 | return NULL; | |
2532 | { | |
2533 | _arg0 = &temp; | |
2534 | if (! wxRect_helper(_obj0, &_arg0)) | |
2535 | return NULL; | |
2536 | } | |
2537 | { | |
0e2ff151 | 2538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2539 | wxRect_SetLeft(_arg0,_arg1); |
2540 | ||
0e2ff151 | 2541 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2542 | if (PyErr_Occurred()) return NULL; |
2543 | } Py_INCREF(Py_None); | |
2544 | _resultobj = Py_None; | |
2545 | return _resultobj; | |
2546 | } | |
2547 | ||
2548 | #define wxRect_SetRight(_swigobj,_swigarg0) (_swigobj->SetRight(_swigarg0)) | |
2549 | static PyObject *_wrap_wxRect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2550 | PyObject * _resultobj; | |
2551 | wxRect * _arg0; | |
2552 | int _arg1; | |
2553 | wxRect temp; | |
2554 | PyObject * _obj0 = 0; | |
2555 | char *_kwnames[] = { "self","right", NULL }; | |
2556 | ||
2557 | self = self; | |
2558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetRight",_kwnames,&_obj0,&_arg1)) | |
2559 | return NULL; | |
2560 | { | |
2561 | _arg0 = &temp; | |
2562 | if (! wxRect_helper(_obj0, &_arg0)) | |
2563 | return NULL; | |
2564 | } | |
2565 | { | |
0e2ff151 | 2566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2567 | wxRect_SetRight(_arg0,_arg1); |
2568 | ||
0e2ff151 | 2569 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2570 | if (PyErr_Occurred()) return NULL; |
2571 | } Py_INCREF(Py_None); | |
2572 | _resultobj = Py_None; | |
2573 | return _resultobj; | |
2574 | } | |
2575 | ||
2576 | #define wxRect_SetTop(_swigobj,_swigarg0) (_swigobj->SetTop(_swigarg0)) | |
2577 | static PyObject *_wrap_wxRect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2578 | PyObject * _resultobj; | |
2579 | wxRect * _arg0; | |
2580 | int _arg1; | |
2581 | wxRect temp; | |
2582 | PyObject * _obj0 = 0; | |
2583 | char *_kwnames[] = { "self","top", NULL }; | |
2584 | ||
2585 | self = self; | |
2586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetTop",_kwnames,&_obj0,&_arg1)) | |
2587 | return NULL; | |
2588 | { | |
2589 | _arg0 = &temp; | |
2590 | if (! wxRect_helper(_obj0, &_arg0)) | |
2591 | return NULL; | |
2592 | } | |
2593 | { | |
0e2ff151 | 2594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2595 | wxRect_SetTop(_arg0,_arg1); |
2596 | ||
0e2ff151 | 2597 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2598 | if (PyErr_Occurred()) return NULL; |
2599 | } Py_INCREF(Py_None); | |
2600 | _resultobj = Py_None; | |
2601 | return _resultobj; | |
2602 | } | |
2603 | ||
2604 | #define wxRect_SetBottom(_swigobj,_swigarg0) (_swigobj->SetBottom(_swigarg0)) | |
2605 | static PyObject *_wrap_wxRect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2606 | PyObject * _resultobj; | |
2607 | wxRect * _arg0; | |
2608 | int _arg1; | |
2609 | wxRect temp; | |
2610 | PyObject * _obj0 = 0; | |
2611 | char *_kwnames[] = { "self","bottom", NULL }; | |
2612 | ||
2613 | self = self; | |
2614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetBottom",_kwnames,&_obj0,&_arg1)) | |
2615 | return NULL; | |
2616 | { | |
2617 | _arg0 = &temp; | |
2618 | if (! wxRect_helper(_obj0, &_arg0)) | |
2619 | return NULL; | |
2620 | } | |
2621 | { | |
0e2ff151 | 2622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2623 | wxRect_SetBottom(_arg0,_arg1); |
2624 | ||
0e2ff151 | 2625 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2626 | if (PyErr_Occurred()) return NULL; |
2627 | } Py_INCREF(Py_None); | |
2628 | _resultobj = Py_None; | |
2629 | return _resultobj; | |
2630 | } | |
2631 | ||
2632 | #define wxRect_Inflate(_swigobj,_swigarg0,_swigarg1) (_swigobj->Inflate(_swigarg0,_swigarg1)) | |
2633 | static PyObject *_wrap_wxRect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2634 | PyObject * _resultobj; | |
2635 | wxRect * _arg0; | |
2636 | int _arg1; | |
2637 | int _arg2; | |
2638 | wxRect temp; | |
2639 | PyObject * _obj0 = 0; | |
2640 | char *_kwnames[] = { "self","dx","dy", NULL }; | |
2641 | ||
2642 | self = self; | |
2643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRect_Inflate",_kwnames,&_obj0,&_arg1,&_arg2)) | |
2644 | return NULL; | |
2645 | { | |
2646 | _arg0 = &temp; | |
2647 | if (! wxRect_helper(_obj0, &_arg0)) | |
2648 | return NULL; | |
2649 | } | |
2650 | { | |
0e2ff151 | 2651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2652 | wxRect_Inflate(_arg0,_arg1,_arg2); |
2653 | ||
0e2ff151 | 2654 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2655 | if (PyErr_Occurred()) return NULL; |
2656 | } Py_INCREF(Py_None); | |
2657 | _resultobj = Py_None; | |
2658 | return _resultobj; | |
2659 | } | |
2660 | ||
2661 | #define wxRect_Inside(_swigobj,_swigarg0,_swigarg1) (_swigobj->Inside(_swigarg0,_swigarg1)) | |
2662 | static PyObject *_wrap_wxRect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2663 | PyObject * _resultobj; | |
2664 | bool _result; | |
2665 | wxRect * _arg0; | |
2666 | int _arg1; | |
2667 | int _arg2; | |
2668 | wxRect temp; | |
2669 | PyObject * _obj0 = 0; | |
2670 | char *_kwnames[] = { "self","cx","cy", NULL }; | |
2671 | ||
2672 | self = self; | |
2673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRect_Inside",_kwnames,&_obj0,&_arg1,&_arg2)) | |
2674 | return NULL; | |
2675 | { | |
2676 | _arg0 = &temp; | |
2677 | if (! wxRect_helper(_obj0, &_arg0)) | |
2678 | return NULL; | |
2679 | } | |
2680 | { | |
0e2ff151 | 2681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2682 | _result = (bool )wxRect_Inside(_arg0,_arg1,_arg2); |
2683 | ||
0e2ff151 | 2684 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2685 | if (PyErr_Occurred()) return NULL; |
2686 | } _resultobj = Py_BuildValue("i",_result); | |
2687 | return _resultobj; | |
2688 | } | |
2689 | ||
2690 | #define wxRect_x_set(_swigobj,_swigval) (_swigobj->x = _swigval,_swigval) | |
2691 | static PyObject *_wrap_wxRect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2692 | PyObject * _resultobj; | |
2693 | int _result; | |
2694 | wxRect * _arg0; | |
2695 | int _arg1; | |
2696 | wxRect temp; | |
2697 | PyObject * _obj0 = 0; | |
2698 | char *_kwnames[] = { "self","x", NULL }; | |
2699 | ||
2700 | self = self; | |
2701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_x_set",_kwnames,&_obj0,&_arg1)) | |
2702 | return NULL; | |
2703 | { | |
2704 | _arg0 = &temp; | |
2705 | if (! wxRect_helper(_obj0, &_arg0)) | |
2706 | return NULL; | |
2707 | } | |
2708 | { | |
0e2ff151 | 2709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2710 | _result = (int )wxRect_x_set(_arg0,_arg1); |
2711 | ||
0e2ff151 | 2712 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2713 | if (PyErr_Occurred()) return NULL; |
2714 | } _resultobj = Py_BuildValue("i",_result); | |
2715 | return _resultobj; | |
2716 | } | |
2717 | ||
2718 | #define wxRect_x_get(_swigobj) ((int ) _swigobj->x) | |
2719 | static PyObject *_wrap_wxRect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2720 | PyObject * _resultobj; | |
2721 | int _result; | |
2722 | wxRect * _arg0; | |
2723 | wxRect temp; | |
2724 | PyObject * _obj0 = 0; | |
2725 | char *_kwnames[] = { "self", NULL }; | |
2726 | ||
2727 | self = self; | |
2728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_x_get",_kwnames,&_obj0)) | |
2729 | return NULL; | |
2730 | { | |
2731 | _arg0 = &temp; | |
2732 | if (! wxRect_helper(_obj0, &_arg0)) | |
2733 | return NULL; | |
2734 | } | |
2735 | { | |
0e2ff151 | 2736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2737 | _result = (int )wxRect_x_get(_arg0); |
2738 | ||
0e2ff151 | 2739 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2740 | if (PyErr_Occurred()) return NULL; |
2741 | } _resultobj = Py_BuildValue("i",_result); | |
2742 | return _resultobj; | |
2743 | } | |
2744 | ||
2745 | #define wxRect_y_set(_swigobj,_swigval) (_swigobj->y = _swigval,_swigval) | |
2746 | static PyObject *_wrap_wxRect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2747 | PyObject * _resultobj; | |
2748 | int _result; | |
2749 | wxRect * _arg0; | |
2750 | int _arg1; | |
2751 | wxRect temp; | |
2752 | PyObject * _obj0 = 0; | |
2753 | char *_kwnames[] = { "self","y", NULL }; | |
2754 | ||
2755 | self = self; | |
2756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_y_set",_kwnames,&_obj0,&_arg1)) | |
2757 | return NULL; | |
2758 | { | |
2759 | _arg0 = &temp; | |
2760 | if (! wxRect_helper(_obj0, &_arg0)) | |
2761 | return NULL; | |
2762 | } | |
2763 | { | |
0e2ff151 | 2764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2765 | _result = (int )wxRect_y_set(_arg0,_arg1); |
2766 | ||
0e2ff151 | 2767 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2768 | if (PyErr_Occurred()) return NULL; |
2769 | } _resultobj = Py_BuildValue("i",_result); | |
2770 | return _resultobj; | |
2771 | } | |
2772 | ||
2773 | #define wxRect_y_get(_swigobj) ((int ) _swigobj->y) | |
2774 | static PyObject *_wrap_wxRect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2775 | PyObject * _resultobj; | |
2776 | int _result; | |
2777 | wxRect * _arg0; | |
2778 | wxRect temp; | |
2779 | PyObject * _obj0 = 0; | |
2780 | char *_kwnames[] = { "self", NULL }; | |
2781 | ||
2782 | self = self; | |
2783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_y_get",_kwnames,&_obj0)) | |
2784 | return NULL; | |
2785 | { | |
2786 | _arg0 = &temp; | |
2787 | if (! wxRect_helper(_obj0, &_arg0)) | |
2788 | return NULL; | |
2789 | } | |
2790 | { | |
0e2ff151 | 2791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2792 | _result = (int )wxRect_y_get(_arg0); |
2793 | ||
0e2ff151 | 2794 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2795 | if (PyErr_Occurred()) return NULL; |
2796 | } _resultobj = Py_BuildValue("i",_result); | |
2797 | return _resultobj; | |
2798 | } | |
2799 | ||
2800 | #define wxRect_width_set(_swigobj,_swigval) (_swigobj->width = _swigval,_swigval) | |
2801 | static PyObject *_wrap_wxRect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2802 | PyObject * _resultobj; | |
2803 | int _result; | |
2804 | wxRect * _arg0; | |
2805 | int _arg1; | |
2806 | wxRect temp; | |
2807 | PyObject * _obj0 = 0; | |
2808 | char *_kwnames[] = { "self","width", NULL }; | |
2809 | ||
2810 | self = self; | |
2811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_width_set",_kwnames,&_obj0,&_arg1)) | |
2812 | return NULL; | |
2813 | { | |
2814 | _arg0 = &temp; | |
2815 | if (! wxRect_helper(_obj0, &_arg0)) | |
2816 | return NULL; | |
2817 | } | |
2818 | { | |
0e2ff151 | 2819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2820 | _result = (int )wxRect_width_set(_arg0,_arg1); |
2821 | ||
0e2ff151 | 2822 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2823 | if (PyErr_Occurred()) return NULL; |
2824 | } _resultobj = Py_BuildValue("i",_result); | |
2825 | return _resultobj; | |
2826 | } | |
2827 | ||
2828 | #define wxRect_width_get(_swigobj) ((int ) _swigobj->width) | |
2829 | static PyObject *_wrap_wxRect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2830 | PyObject * _resultobj; | |
2831 | int _result; | |
2832 | wxRect * _arg0; | |
2833 | wxRect temp; | |
2834 | PyObject * _obj0 = 0; | |
2835 | char *_kwnames[] = { "self", NULL }; | |
2836 | ||
2837 | self = self; | |
2838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_width_get",_kwnames,&_obj0)) | |
2839 | return NULL; | |
2840 | { | |
2841 | _arg0 = &temp; | |
2842 | if (! wxRect_helper(_obj0, &_arg0)) | |
2843 | return NULL; | |
2844 | } | |
2845 | { | |
0e2ff151 | 2846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2847 | _result = (int )wxRect_width_get(_arg0); |
2848 | ||
0e2ff151 | 2849 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2850 | if (PyErr_Occurred()) return NULL; |
2851 | } _resultobj = Py_BuildValue("i",_result); | |
2852 | return _resultobj; | |
2853 | } | |
2854 | ||
2855 | #define wxRect_height_set(_swigobj,_swigval) (_swigobj->height = _swigval,_swigval) | |
2856 | static PyObject *_wrap_wxRect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2857 | PyObject * _resultobj; | |
2858 | int _result; | |
2859 | wxRect * _arg0; | |
2860 | int _arg1; | |
2861 | wxRect temp; | |
2862 | PyObject * _obj0 = 0; | |
2863 | char *_kwnames[] = { "self","height", NULL }; | |
2864 | ||
2865 | self = self; | |
2866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_height_set",_kwnames,&_obj0,&_arg1)) | |
2867 | return NULL; | |
2868 | { | |
2869 | _arg0 = &temp; | |
2870 | if (! wxRect_helper(_obj0, &_arg0)) | |
2871 | return NULL; | |
2872 | } | |
2873 | { | |
0e2ff151 | 2874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2875 | _result = (int )wxRect_height_set(_arg0,_arg1); |
2876 | ||
0e2ff151 | 2877 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2878 | if (PyErr_Occurred()) return NULL; |
2879 | } _resultobj = Py_BuildValue("i",_result); | |
2880 | return _resultobj; | |
2881 | } | |
2882 | ||
2883 | #define wxRect_height_get(_swigobj) ((int ) _swigobj->height) | |
2884 | static PyObject *_wrap_wxRect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2885 | PyObject * _resultobj; | |
2886 | int _result; | |
2887 | wxRect * _arg0; | |
2888 | wxRect temp; | |
2889 | PyObject * _obj0 = 0; | |
2890 | char *_kwnames[] = { "self", NULL }; | |
2891 | ||
2892 | self = self; | |
2893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_height_get",_kwnames,&_obj0)) | |
2894 | return NULL; | |
2895 | { | |
2896 | _arg0 = &temp; | |
2897 | if (! wxRect_helper(_obj0, &_arg0)) | |
2898 | return NULL; | |
2899 | } | |
2900 | { | |
0e2ff151 | 2901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2902 | _result = (int )wxRect_height_get(_arg0); |
2903 | ||
0e2ff151 | 2904 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2905 | if (PyErr_Occurred()) return NULL; |
2906 | } _resultobj = Py_BuildValue("i",_result); | |
2907 | return _resultobj; | |
2908 | } | |
2909 | ||
2910 | static PyObject * wxRect_asTuple(wxRect *self) { | |
2911 | PyObject* tup = PyTuple_New(4); | |
2912 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
2913 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
2914 | PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width)); | |
2915 | PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height)); | |
2916 | return tup; | |
2917 | } | |
2918 | static PyObject *_wrap_wxRect_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2919 | PyObject * _resultobj; | |
2920 | PyObject * _result; | |
2921 | wxRect * _arg0; | |
2922 | wxRect temp; | |
2923 | PyObject * _obj0 = 0; | |
2924 | char *_kwnames[] = { "self", NULL }; | |
2925 | ||
2926 | self = self; | |
2927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_asTuple",_kwnames,&_obj0)) | |
2928 | return NULL; | |
2929 | { | |
2930 | _arg0 = &temp; | |
2931 | if (! wxRect_helper(_obj0, &_arg0)) | |
2932 | return NULL; | |
2933 | } | |
2934 | { | |
0e2ff151 | 2935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2936 | _result = (PyObject *)wxRect_asTuple(_arg0); |
2937 | ||
0e2ff151 | 2938 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2939 | if (PyErr_Occurred()) return NULL; |
2940 | }{ | |
2941 | _resultobj = _result; | |
2942 | } | |
2943 | return _resultobj; | |
2944 | } | |
2945 | ||
2946 | static wxRect wxRect___add__(wxRect *self,const wxRect * rect) { | |
2947 | if (! rect) return *self; | |
2948 | return *self + *rect; | |
2949 | } | |
2950 | static PyObject *_wrap_wxRect___add__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2951 | PyObject * _resultobj; | |
2952 | wxRect * _result; | |
2953 | wxRect * _arg0; | |
2954 | wxRect * _arg1; | |
2955 | wxRect temp; | |
2956 | PyObject * _obj0 = 0; | |
2957 | wxRect temp0; | |
2958 | PyObject * _obj1 = 0; | |
2959 | char *_kwnames[] = { "self","rect", NULL }; | |
2960 | char _ptemp[128]; | |
2961 | ||
2962 | self = self; | |
2963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRect___add__",_kwnames,&_obj0,&_obj1)) | |
2964 | return NULL; | |
2965 | { | |
2966 | _arg0 = &temp; | |
2967 | if (! wxRect_helper(_obj0, &_arg0)) | |
2968 | return NULL; | |
2969 | } | |
2970 | { | |
2971 | _arg1 = &temp0; | |
2972 | if (! wxRect_helper(_obj1, &_arg1)) | |
2973 | return NULL; | |
2974 | } | |
2975 | { | |
0e2ff151 | 2976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
2977 | _result = new wxRect (wxRect___add__(_arg0,_arg1)); |
2978 | ||
0e2ff151 | 2979 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
2980 | if (PyErr_Occurred()) return NULL; |
2981 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
2982 | _resultobj = Py_BuildValue("s",_ptemp); | |
2983 | return _resultobj; | |
2984 | } | |
2985 | ||
2986 | static int wxRect___cmp__(wxRect *self,const wxRect * rect) { | |
2987 | if (! rect) return 1; | |
2988 | if (*self == *rect) return 0; | |
2989 | return -1; | |
2990 | } | |
2991 | static PyObject *_wrap_wxRect___cmp__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2992 | PyObject * _resultobj; | |
2993 | int _result; | |
2994 | wxRect * _arg0; | |
2995 | wxRect * _arg1; | |
2996 | wxRect temp; | |
2997 | PyObject * _obj0 = 0; | |
2998 | wxRect temp0; | |
2999 | PyObject * _obj1 = 0; | |
3000 | char *_kwnames[] = { "self","rect", NULL }; | |
3001 | ||
3002 | self = self; | |
3003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRect___cmp__",_kwnames,&_obj0,&_obj1)) | |
3004 | return NULL; | |
3005 | { | |
3006 | _arg0 = &temp; | |
3007 | if (! wxRect_helper(_obj0, &_arg0)) | |
3008 | return NULL; | |
3009 | } | |
3010 | { | |
3011 | _arg1 = &temp0; | |
3012 | if (! wxRect_helper(_obj1, &_arg1)) | |
3013 | return NULL; | |
3014 | } | |
3015 | { | |
0e2ff151 | 3016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3017 | _result = (int )wxRect___cmp__(_arg0,_arg1); |
3018 | ||
0e2ff151 | 3019 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3020 | if (PyErr_Occurred()) return NULL; |
3021 | } _resultobj = Py_BuildValue("i",_result); | |
3022 | return _resultobj; | |
3023 | } | |
3024 | ||
3025 | static void *SwigwxIndividualLayoutConstraintTowxObject(void *ptr) { | |
3026 | wxIndividualLayoutConstraint *src; | |
3027 | wxObject *dest; | |
3028 | src = (wxIndividualLayoutConstraint *) ptr; | |
3029 | dest = (wxObject *) src; | |
3030 | return (void *) dest; | |
3031 | } | |
3032 | ||
3033 | #define wxIndividualLayoutConstraint_Above(_swigobj,_swigarg0,_swigarg1) (_swigobj->Above(_swigarg0,_swigarg1)) | |
3034 | static PyObject *_wrap_wxIndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3035 | PyObject * _resultobj; | |
3036 | wxIndividualLayoutConstraint * _arg0; | |
3037 | wxWindow * _arg1; | |
3038 | int _arg2 = (int ) 0; | |
3039 | PyObject * _argo0 = 0; | |
3040 | PyObject * _argo1 = 0; | |
3041 | char *_kwnames[] = { "self","otherWin","margin", NULL }; | |
3042 | ||
3043 | self = self; | |
3044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxIndividualLayoutConstraint_Above",_kwnames,&_argo0,&_argo1,&_arg2)) | |
3045 | return NULL; | |
3046 | if (_argo0) { | |
3047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) { | |
3049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_Above. Expected _wxIndividualLayoutConstraint_p."); | |
3050 | return NULL; | |
3051 | } | |
3052 | } | |
3053 | if (_argo1) { | |
3054 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3055 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIndividualLayoutConstraint_Above. Expected _wxWindow_p."); | |
3057 | return NULL; | |
3058 | } | |
3059 | } | |
3060 | { | |
0e2ff151 | 3061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3062 | wxIndividualLayoutConstraint_Above(_arg0,_arg1,_arg2); |
3063 | ||
0e2ff151 | 3064 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3065 | if (PyErr_Occurred()) return NULL; |
3066 | } Py_INCREF(Py_None); | |
3067 | _resultobj = Py_None; | |
3068 | return _resultobj; | |
3069 | } | |
3070 | ||
3071 | #define wxIndividualLayoutConstraint_Absolute(_swigobj,_swigarg0) (_swigobj->Absolute(_swigarg0)) | |
3072 | static PyObject *_wrap_wxIndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3073 | PyObject * _resultobj; | |
3074 | wxIndividualLayoutConstraint * _arg0; | |
3075 | int _arg1; | |
3076 | PyObject * _argo0 = 0; | |
3077 | char *_kwnames[] = { "self","value", NULL }; | |
3078 | ||
3079 | self = self; | |
3080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIndividualLayoutConstraint_Absolute",_kwnames,&_argo0,&_arg1)) | |
3081 | return NULL; | |
3082 | if (_argo0) { | |
3083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) { | |
3085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_Absolute. Expected _wxIndividualLayoutConstraint_p."); | |
3086 | return NULL; | |
3087 | } | |
3088 | } | |
3089 | { | |
0e2ff151 | 3090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3091 | wxIndividualLayoutConstraint_Absolute(_arg0,_arg1); |
3092 | ||
0e2ff151 | 3093 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3094 | if (PyErr_Occurred()) return NULL; |
3095 | } Py_INCREF(Py_None); | |
3096 | _resultobj = Py_None; | |
3097 | return _resultobj; | |
3098 | } | |
3099 | ||
3100 | #define wxIndividualLayoutConstraint_AsIs(_swigobj) (_swigobj->AsIs()) | |
3101 | static PyObject *_wrap_wxIndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3102 | PyObject * _resultobj; | |
3103 | wxIndividualLayoutConstraint * _arg0; | |
3104 | PyObject * _argo0 = 0; | |
3105 | char *_kwnames[] = { "self", NULL }; | |
3106 | ||
3107 | self = self; | |
3108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIndividualLayoutConstraint_AsIs",_kwnames,&_argo0)) | |
3109 | return NULL; | |
3110 | if (_argo0) { | |
3111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) { | |
3113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_AsIs. Expected _wxIndividualLayoutConstraint_p."); | |
3114 | return NULL; | |
3115 | } | |
3116 | } | |
3117 | { | |
0e2ff151 | 3118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3119 | wxIndividualLayoutConstraint_AsIs(_arg0); |
3120 | ||
0e2ff151 | 3121 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3122 | if (PyErr_Occurred()) return NULL; |
3123 | } Py_INCREF(Py_None); | |
3124 | _resultobj = Py_None; | |
3125 | return _resultobj; | |
3126 | } | |
3127 | ||
3128 | #define wxIndividualLayoutConstraint_Below(_swigobj,_swigarg0,_swigarg1) (_swigobj->Below(_swigarg0,_swigarg1)) | |
3129 | static PyObject *_wrap_wxIndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3130 | PyObject * _resultobj; | |
3131 | wxIndividualLayoutConstraint * _arg0; | |
3132 | wxWindow * _arg1; | |
3133 | int _arg2 = (int ) 0; | |
3134 | PyObject * _argo0 = 0; | |
3135 | PyObject * _argo1 = 0; | |
3136 | char *_kwnames[] = { "self","otherWin","margin", NULL }; | |
3137 | ||
3138 | self = self; | |
3139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxIndividualLayoutConstraint_Below",_kwnames,&_argo0,&_argo1,&_arg2)) | |
3140 | return NULL; | |
3141 | if (_argo0) { | |
3142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) { | |
3144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_Below. Expected _wxIndividualLayoutConstraint_p."); | |
3145 | return NULL; | |
3146 | } | |
3147 | } | |
3148 | if (_argo1) { | |
3149 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3150 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIndividualLayoutConstraint_Below. Expected _wxWindow_p."); | |
3152 | return NULL; | |
3153 | } | |
3154 | } | |
3155 | { | |
0e2ff151 | 3156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3157 | wxIndividualLayoutConstraint_Below(_arg0,_arg1,_arg2); |
3158 | ||
0e2ff151 | 3159 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3160 | if (PyErr_Occurred()) return NULL; |
3161 | } Py_INCREF(Py_None); | |
3162 | _resultobj = Py_None; | |
3163 | return _resultobj; | |
3164 | } | |
3165 | ||
3166 | #define wxIndividualLayoutConstraint_Unconstrained(_swigobj) (_swigobj->Unconstrained()) | |
3167 | static PyObject *_wrap_wxIndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3168 | PyObject * _resultobj; | |
3169 | wxIndividualLayoutConstraint * _arg0; | |
3170 | PyObject * _argo0 = 0; | |
3171 | char *_kwnames[] = { "self", NULL }; | |
3172 | ||
3173 | self = self; | |
3174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIndividualLayoutConstraint_Unconstrained",_kwnames,&_argo0)) | |
3175 | return NULL; | |
3176 | if (_argo0) { | |
3177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) { | |
3179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_Unconstrained. Expected _wxIndividualLayoutConstraint_p."); | |
3180 | return NULL; | |
3181 | } | |
3182 | } | |
3183 | { | |
0e2ff151 | 3184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3185 | wxIndividualLayoutConstraint_Unconstrained(_arg0); |
3186 | ||
0e2ff151 | 3187 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3188 | if (PyErr_Occurred()) return NULL; |
3189 | } Py_INCREF(Py_None); | |
3190 | _resultobj = Py_None; | |
3191 | return _resultobj; | |
3192 | } | |
3193 | ||
3194 | #define wxIndividualLayoutConstraint_LeftOf(_swigobj,_swigarg0,_swigarg1) (_swigobj->LeftOf(_swigarg0,_swigarg1)) | |
3195 | static PyObject *_wrap_wxIndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3196 | PyObject * _resultobj; | |
3197 | wxIndividualLayoutConstraint * _arg0; | |
3198 | wxWindow * _arg1; | |
3199 | int _arg2 = (int ) 0; | |
3200 | PyObject * _argo0 = 0; | |
3201 | PyObject * _argo1 = 0; | |
3202 | char *_kwnames[] = { "self","otherWin","margin", NULL }; | |
3203 | ||
3204 | self = self; | |
3205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxIndividualLayoutConstraint_LeftOf",_kwnames,&_argo0,&_argo1,&_arg2)) | |
3206 | return NULL; | |
3207 | if (_argo0) { | |
3208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) { | |
3210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_LeftOf. Expected _wxIndividualLayoutConstraint_p."); | |
3211 | return NULL; | |
3212 | } | |
3213 | } | |
3214 | if (_argo1) { | |
3215 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3216 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIndividualLayoutConstraint_LeftOf. Expected _wxWindow_p."); | |
3218 | return NULL; | |
3219 | } | |
3220 | } | |
3221 | { | |
0e2ff151 | 3222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3223 | wxIndividualLayoutConstraint_LeftOf(_arg0,_arg1,_arg2); |
3224 | ||
0e2ff151 | 3225 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3226 | if (PyErr_Occurred()) return NULL; |
3227 | } Py_INCREF(Py_None); | |
3228 | _resultobj = Py_None; | |
3229 | return _resultobj; | |
3230 | } | |
3231 | ||
3232 | #define wxIndividualLayoutConstraint_PercentOf(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PercentOf(_swigarg0,_swigarg1,_swigarg2)) | |
3233 | static PyObject *_wrap_wxIndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3234 | PyObject * _resultobj; | |
3235 | wxIndividualLayoutConstraint * _arg0; | |
3236 | wxWindow * _arg1; | |
3237 | wxEdge _arg2; | |
3238 | int _arg3; | |
3239 | PyObject * _argo0 = 0; | |
3240 | PyObject * _argo1 = 0; | |
3241 | char *_kwnames[] = { "self","otherWin","edge","percent", NULL }; | |
3242 | ||
3243 | self = self; | |
3244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxIndividualLayoutConstraint_PercentOf",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) | |
3245 | return NULL; | |
3246 | if (_argo0) { | |
3247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) { | |
3249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_PercentOf. Expected _wxIndividualLayoutConstraint_p."); | |
3250 | return NULL; | |
3251 | } | |
3252 | } | |
3253 | if (_argo1) { | |
3254 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3255 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIndividualLayoutConstraint_PercentOf. Expected _wxWindow_p."); | |
3257 | return NULL; | |
3258 | } | |
3259 | } | |
3260 | { | |
0e2ff151 | 3261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3262 | wxIndividualLayoutConstraint_PercentOf(_arg0,_arg1,_arg2,_arg3); |
3263 | ||
0e2ff151 | 3264 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3265 | if (PyErr_Occurred()) return NULL; |
3266 | } Py_INCREF(Py_None); | |
3267 | _resultobj = Py_None; | |
3268 | return _resultobj; | |
3269 | } | |
3270 | ||
3271 | #define wxIndividualLayoutConstraint_RightOf(_swigobj,_swigarg0,_swigarg1) (_swigobj->RightOf(_swigarg0,_swigarg1)) | |
3272 | static PyObject *_wrap_wxIndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3273 | PyObject * _resultobj; | |
3274 | wxIndividualLayoutConstraint * _arg0; | |
3275 | wxWindow * _arg1; | |
3276 | int _arg2 = (int ) 0; | |
3277 | PyObject * _argo0 = 0; | |
3278 | PyObject * _argo1 = 0; | |
3279 | char *_kwnames[] = { "self","otherWin","margin", NULL }; | |
3280 | ||
3281 | self = self; | |
3282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxIndividualLayoutConstraint_RightOf",_kwnames,&_argo0,&_argo1,&_arg2)) | |
3283 | return NULL; | |
3284 | if (_argo0) { | |
3285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) { | |
3287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_RightOf. Expected _wxIndividualLayoutConstraint_p."); | |
3288 | return NULL; | |
3289 | } | |
3290 | } | |
3291 | if (_argo1) { | |
3292 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3293 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIndividualLayoutConstraint_RightOf. Expected _wxWindow_p."); | |
3295 | return NULL; | |
3296 | } | |
3297 | } | |
3298 | { | |
0e2ff151 | 3299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3300 | wxIndividualLayoutConstraint_RightOf(_arg0,_arg1,_arg2); |
3301 | ||
0e2ff151 | 3302 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3303 | if (PyErr_Occurred()) return NULL; |
3304 | } Py_INCREF(Py_None); | |
3305 | _resultobj = Py_None; | |
3306 | return _resultobj; | |
3307 | } | |
3308 | ||
3309 | #define wxIndividualLayoutConstraint_SameAs(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SameAs(_swigarg0,_swigarg1,_swigarg2)) | |
3310 | static PyObject *_wrap_wxIndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3311 | PyObject * _resultobj; | |
3312 | wxIndividualLayoutConstraint * _arg0; | |
3313 | wxWindow * _arg1; | |
3314 | wxEdge _arg2; | |
3315 | int _arg3 = (int ) 0; | |
3316 | PyObject * _argo0 = 0; | |
3317 | PyObject * _argo1 = 0; | |
3318 | char *_kwnames[] = { "self","otherWin","edge","margin", NULL }; | |
3319 | ||
3320 | self = self; | |
3321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxIndividualLayoutConstraint_SameAs",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) | |
3322 | return NULL; | |
3323 | if (_argo0) { | |
3324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) { | |
3326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_SameAs. Expected _wxIndividualLayoutConstraint_p."); | |
3327 | return NULL; | |
3328 | } | |
3329 | } | |
3330 | if (_argo1) { | |
3331 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3332 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIndividualLayoutConstraint_SameAs. Expected _wxWindow_p."); | |
3334 | return NULL; | |
3335 | } | |
3336 | } | |
3337 | { | |
0e2ff151 | 3338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3339 | wxIndividualLayoutConstraint_SameAs(_arg0,_arg1,_arg2,_arg3); |
3340 | ||
0e2ff151 | 3341 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3342 | if (PyErr_Occurred()) return NULL; |
3343 | } Py_INCREF(Py_None); | |
3344 | _resultobj = Py_None; | |
3345 | return _resultobj; | |
3346 | } | |
3347 | ||
3348 | #define wxIndividualLayoutConstraint_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
3349 | static PyObject *_wrap_wxIndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3350 | PyObject * _resultobj; | |
3351 | wxIndividualLayoutConstraint * _arg0; | |
3352 | wxRelationship _arg1; | |
3353 | wxWindow * _arg2; | |
3354 | wxEdge _arg3; | |
3355 | int _arg4 = (int ) 0; | |
3356 | int _arg5 = (int ) 0; | |
3357 | PyObject * _argo0 = 0; | |
3358 | PyObject * _argo2 = 0; | |
3359 | char *_kwnames[] = { "self","rel","otherWin","otherEdge","value","margin", NULL }; | |
3360 | ||
3361 | self = self; | |
3362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOi|ii:wxIndividualLayoutConstraint_Set",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5)) | |
3363 | return NULL; | |
3364 | if (_argo0) { | |
3365 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3366 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) { | |
3367 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_Set. Expected _wxIndividualLayoutConstraint_p."); | |
3368 | return NULL; | |
3369 | } | |
3370 | } | |
3371 | if (_argo2) { | |
3372 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3373 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxIndividualLayoutConstraint_Set. Expected _wxWindow_p."); | |
3375 | return NULL; | |
3376 | } | |
3377 | } | |
3378 | { | |
0e2ff151 | 3379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3380 | wxIndividualLayoutConstraint_Set(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
3381 | ||
0e2ff151 | 3382 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3383 | if (PyErr_Occurred()) return NULL; |
3384 | } Py_INCREF(Py_None); | |
3385 | _resultobj = Py_None; | |
3386 | return _resultobj; | |
3387 | } | |
3388 | ||
3389 | static void *SwigwxLayoutConstraintsTowxObject(void *ptr) { | |
3390 | wxLayoutConstraints *src; | |
3391 | wxObject *dest; | |
3392 | src = (wxLayoutConstraints *) ptr; | |
3393 | dest = (wxObject *) src; | |
3394 | return (void *) dest; | |
3395 | } | |
3396 | ||
3397 | #define new_wxLayoutConstraints() (new wxLayoutConstraints()) | |
3398 | static PyObject *_wrap_new_wxLayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3399 | PyObject * _resultobj; | |
3400 | wxLayoutConstraints * _result; | |
3401 | char *_kwnames[] = { NULL }; | |
3402 | char _ptemp[128]; | |
3403 | ||
3404 | self = self; | |
3405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLayoutConstraints",_kwnames)) | |
3406 | return NULL; | |
3407 | { | |
0e2ff151 | 3408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3409 | _result = (wxLayoutConstraints *)new_wxLayoutConstraints(); |
3410 | ||
0e2ff151 | 3411 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3412 | if (PyErr_Occurred()) return NULL; |
3413 | } if (_result) { | |
3414 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
3415 | _resultobj = Py_BuildValue("s",_ptemp); | |
3416 | } else { | |
3417 | Py_INCREF(Py_None); | |
3418 | _resultobj = Py_None; | |
3419 | } | |
3420 | return _resultobj; | |
3421 | } | |
3422 | ||
3423 | #define wxLayoutConstraints_bottom_get(_swigobj) (&_swigobj->bottom) | |
3424 | static PyObject *_wrap_wxLayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3425 | PyObject * _resultobj; | |
3426 | wxIndividualLayoutConstraint * _result; | |
3427 | wxLayoutConstraints * _arg0; | |
3428 | PyObject * _argo0 = 0; | |
3429 | char *_kwnames[] = { "self", NULL }; | |
3430 | char _ptemp[128]; | |
3431 | ||
3432 | self = self; | |
3433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_bottom_get",_kwnames,&_argo0)) | |
3434 | return NULL; | |
3435 | if (_argo0) { | |
3436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) { | |
3438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_bottom_get. Expected _wxLayoutConstraints_p."); | |
3439 | return NULL; | |
3440 | } | |
3441 | } | |
3442 | { | |
0e2ff151 | 3443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3444 | _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_bottom_get(_arg0); |
3445 | ||
0e2ff151 | 3446 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3447 | if (PyErr_Occurred()) return NULL; |
3448 | } if (_result) { | |
3449 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p"); | |
3450 | _resultobj = Py_BuildValue("s",_ptemp); | |
3451 | } else { | |
3452 | Py_INCREF(Py_None); | |
3453 | _resultobj = Py_None; | |
3454 | } | |
3455 | return _resultobj; | |
3456 | } | |
3457 | ||
3458 | #define wxLayoutConstraints_centreX_get(_swigobj) (&_swigobj->centreX) | |
3459 | static PyObject *_wrap_wxLayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3460 | PyObject * _resultobj; | |
3461 | wxIndividualLayoutConstraint * _result; | |
3462 | wxLayoutConstraints * _arg0; | |
3463 | PyObject * _argo0 = 0; | |
3464 | char *_kwnames[] = { "self", NULL }; | |
3465 | char _ptemp[128]; | |
3466 | ||
3467 | self = self; | |
3468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_centreX_get",_kwnames,&_argo0)) | |
3469 | return NULL; | |
3470 | if (_argo0) { | |
3471 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3472 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) { | |
3473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_centreX_get. Expected _wxLayoutConstraints_p."); | |
3474 | return NULL; | |
3475 | } | |
3476 | } | |
3477 | { | |
0e2ff151 | 3478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3479 | _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_centreX_get(_arg0); |
3480 | ||
0e2ff151 | 3481 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3482 | if (PyErr_Occurred()) return NULL; |
3483 | } if (_result) { | |
3484 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p"); | |
3485 | _resultobj = Py_BuildValue("s",_ptemp); | |
3486 | } else { | |
3487 | Py_INCREF(Py_None); | |
3488 | _resultobj = Py_None; | |
3489 | } | |
3490 | return _resultobj; | |
3491 | } | |
3492 | ||
3493 | #define wxLayoutConstraints_centreY_get(_swigobj) (&_swigobj->centreY) | |
3494 | static PyObject *_wrap_wxLayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3495 | PyObject * _resultobj; | |
3496 | wxIndividualLayoutConstraint * _result; | |
3497 | wxLayoutConstraints * _arg0; | |
3498 | PyObject * _argo0 = 0; | |
3499 | char *_kwnames[] = { "self", NULL }; | |
3500 | char _ptemp[128]; | |
3501 | ||
3502 | self = self; | |
3503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_centreY_get",_kwnames,&_argo0)) | |
3504 | return NULL; | |
3505 | if (_argo0) { | |
3506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) { | |
3508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_centreY_get. Expected _wxLayoutConstraints_p."); | |
3509 | return NULL; | |
3510 | } | |
3511 | } | |
3512 | { | |
0e2ff151 | 3513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3514 | _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_centreY_get(_arg0); |
3515 | ||
0e2ff151 | 3516 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3517 | if (PyErr_Occurred()) return NULL; |
3518 | } if (_result) { | |
3519 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p"); | |
3520 | _resultobj = Py_BuildValue("s",_ptemp); | |
3521 | } else { | |
3522 | Py_INCREF(Py_None); | |
3523 | _resultobj = Py_None; | |
3524 | } | |
3525 | return _resultobj; | |
3526 | } | |
3527 | ||
3528 | #define wxLayoutConstraints_height_get(_swigobj) (&_swigobj->height) | |
3529 | static PyObject *_wrap_wxLayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3530 | PyObject * _resultobj; | |
3531 | wxIndividualLayoutConstraint * _result; | |
3532 | wxLayoutConstraints * _arg0; | |
3533 | PyObject * _argo0 = 0; | |
3534 | char *_kwnames[] = { "self", NULL }; | |
3535 | char _ptemp[128]; | |
3536 | ||
3537 | self = self; | |
3538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_height_get",_kwnames,&_argo0)) | |
3539 | return NULL; | |
3540 | if (_argo0) { | |
3541 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3542 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) { | |
3543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_height_get. Expected _wxLayoutConstraints_p."); | |
3544 | return NULL; | |
3545 | } | |
3546 | } | |
3547 | { | |
0e2ff151 | 3548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3549 | _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_height_get(_arg0); |
3550 | ||
0e2ff151 | 3551 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3552 | if (PyErr_Occurred()) return NULL; |
3553 | } if (_result) { | |
3554 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p"); | |
3555 | _resultobj = Py_BuildValue("s",_ptemp); | |
3556 | } else { | |
3557 | Py_INCREF(Py_None); | |
3558 | _resultobj = Py_None; | |
3559 | } | |
3560 | return _resultobj; | |
3561 | } | |
3562 | ||
3563 | #define wxLayoutConstraints_left_get(_swigobj) (&_swigobj->left) | |
3564 | static PyObject *_wrap_wxLayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3565 | PyObject * _resultobj; | |
3566 | wxIndividualLayoutConstraint * _result; | |
3567 | wxLayoutConstraints * _arg0; | |
3568 | PyObject * _argo0 = 0; | |
3569 | char *_kwnames[] = { "self", NULL }; | |
3570 | char _ptemp[128]; | |
3571 | ||
3572 | self = self; | |
3573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_left_get",_kwnames,&_argo0)) | |
3574 | return NULL; | |
3575 | if (_argo0) { | |
3576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) { | |
3578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_left_get. Expected _wxLayoutConstraints_p."); | |
3579 | return NULL; | |
3580 | } | |
3581 | } | |
3582 | { | |
0e2ff151 | 3583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3584 | _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_left_get(_arg0); |
3585 | ||
0e2ff151 | 3586 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3587 | if (PyErr_Occurred()) return NULL; |
3588 | } if (_result) { | |
3589 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p"); | |
3590 | _resultobj = Py_BuildValue("s",_ptemp); | |
3591 | } else { | |
3592 | Py_INCREF(Py_None); | |
3593 | _resultobj = Py_None; | |
3594 | } | |
3595 | return _resultobj; | |
3596 | } | |
3597 | ||
3598 | #define wxLayoutConstraints_right_get(_swigobj) (&_swigobj->right) | |
3599 | static PyObject *_wrap_wxLayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3600 | PyObject * _resultobj; | |
3601 | wxIndividualLayoutConstraint * _result; | |
3602 | wxLayoutConstraints * _arg0; | |
3603 | PyObject * _argo0 = 0; | |
3604 | char *_kwnames[] = { "self", NULL }; | |
3605 | char _ptemp[128]; | |
3606 | ||
3607 | self = self; | |
3608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_right_get",_kwnames,&_argo0)) | |
3609 | return NULL; | |
3610 | if (_argo0) { | |
3611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) { | |
3613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_right_get. Expected _wxLayoutConstraints_p."); | |
3614 | return NULL; | |
3615 | } | |
3616 | } | |
3617 | { | |
0e2ff151 | 3618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3619 | _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_right_get(_arg0); |
3620 | ||
0e2ff151 | 3621 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3622 | if (PyErr_Occurred()) return NULL; |
3623 | } if (_result) { | |
3624 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p"); | |
3625 | _resultobj = Py_BuildValue("s",_ptemp); | |
3626 | } else { | |
3627 | Py_INCREF(Py_None); | |
3628 | _resultobj = Py_None; | |
3629 | } | |
3630 | return _resultobj; | |
3631 | } | |
3632 | ||
3633 | #define wxLayoutConstraints_top_get(_swigobj) (&_swigobj->top) | |
3634 | static PyObject *_wrap_wxLayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3635 | PyObject * _resultobj; | |
3636 | wxIndividualLayoutConstraint * _result; | |
3637 | wxLayoutConstraints * _arg0; | |
3638 | PyObject * _argo0 = 0; | |
3639 | char *_kwnames[] = { "self", NULL }; | |
3640 | char _ptemp[128]; | |
3641 | ||
3642 | self = self; | |
3643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_top_get",_kwnames,&_argo0)) | |
3644 | return NULL; | |
3645 | if (_argo0) { | |
3646 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3647 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) { | |
3648 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_top_get. Expected _wxLayoutConstraints_p."); | |
3649 | return NULL; | |
3650 | } | |
3651 | } | |
3652 | { | |
0e2ff151 | 3653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3654 | _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_top_get(_arg0); |
3655 | ||
0e2ff151 | 3656 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3657 | if (PyErr_Occurred()) return NULL; |
3658 | } if (_result) { | |
3659 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p"); | |
3660 | _resultobj = Py_BuildValue("s",_ptemp); | |
3661 | } else { | |
3662 | Py_INCREF(Py_None); | |
3663 | _resultobj = Py_None; | |
3664 | } | |
3665 | return _resultobj; | |
3666 | } | |
3667 | ||
3668 | #define wxLayoutConstraints_width_get(_swigobj) (&_swigobj->width) | |
3669 | static PyObject *_wrap_wxLayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3670 | PyObject * _resultobj; | |
3671 | wxIndividualLayoutConstraint * _result; | |
3672 | wxLayoutConstraints * _arg0; | |
3673 | PyObject * _argo0 = 0; | |
3674 | char *_kwnames[] = { "self", NULL }; | |
3675 | char _ptemp[128]; | |
3676 | ||
3677 | self = self; | |
3678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_width_get",_kwnames,&_argo0)) | |
3679 | return NULL; | |
3680 | if (_argo0) { | |
3681 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3682 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) { | |
3683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_width_get. Expected _wxLayoutConstraints_p."); | |
3684 | return NULL; | |
3685 | } | |
3686 | } | |
3687 | { | |
0e2ff151 | 3688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3689 | _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_width_get(_arg0); |
3690 | ||
0e2ff151 | 3691 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3692 | if (PyErr_Occurred()) return NULL; |
3693 | } if (_result) { | |
3694 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p"); | |
3695 | _resultobj = Py_BuildValue("s",_ptemp); | |
3696 | } else { | |
3697 | Py_INCREF(Py_None); | |
3698 | _resultobj = Py_None; | |
3699 | } | |
3700 | return _resultobj; | |
3701 | } | |
3702 | ||
3703 | #define new_wxAcceleratorEntry(_swigarg0,_swigarg1,_swigarg2) (new wxAcceleratorEntry(_swigarg0,_swigarg1,_swigarg2)) | |
3704 | static PyObject *_wrap_new_wxAcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3705 | PyObject * _resultobj; | |
3706 | wxAcceleratorEntry * _result; | |
3707 | int _arg0 = (int ) 0; | |
3708 | int _arg1 = (int ) 0; | |
3709 | int _arg2 = (int ) 0; | |
3710 | char *_kwnames[] = { "flags","keyCode","cmd", NULL }; | |
3711 | char _ptemp[128]; | |
3712 | ||
3713 | self = self; | |
3714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxAcceleratorEntry",_kwnames,&_arg0,&_arg1,&_arg2)) | |
3715 | return NULL; | |
3716 | { | |
0e2ff151 | 3717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3718 | _result = (wxAcceleratorEntry *)new_wxAcceleratorEntry(_arg0,_arg1,_arg2); |
3719 | ||
0e2ff151 | 3720 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3721 | if (PyErr_Occurred()) return NULL; |
3722 | } if (_result) { | |
3723 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
3724 | _resultobj = Py_BuildValue("s",_ptemp); | |
3725 | } else { | |
3726 | Py_INCREF(Py_None); | |
3727 | _resultobj = Py_None; | |
3728 | } | |
3729 | return _resultobj; | |
3730 | } | |
3731 | ||
3732 | #define delete_wxAcceleratorEntry(_swigobj) (delete _swigobj) | |
3733 | static PyObject *_wrap_delete_wxAcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3734 | PyObject * _resultobj; | |
3735 | wxAcceleratorEntry * _arg0; | |
3736 | PyObject * _argo0 = 0; | |
3737 | char *_kwnames[] = { "self", NULL }; | |
3738 | ||
3739 | self = self; | |
3740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxAcceleratorEntry",_kwnames,&_argo0)) | |
3741 | return NULL; | |
3742 | if (_argo0) { | |
3743 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3744 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) { | |
3745 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxAcceleratorEntry. Expected _wxAcceleratorEntry_p."); | |
3746 | return NULL; | |
3747 | } | |
3748 | } | |
3749 | { | |
0e2ff151 | 3750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3751 | delete_wxAcceleratorEntry(_arg0); |
3752 | ||
0e2ff151 | 3753 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3754 | if (PyErr_Occurred()) return NULL; |
3755 | } Py_INCREF(Py_None); | |
3756 | _resultobj = Py_None; | |
3757 | return _resultobj; | |
3758 | } | |
3759 | ||
3760 | #define wxAcceleratorEntry_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2)) | |
3761 | static PyObject *_wrap_wxAcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3762 | PyObject * _resultobj; | |
3763 | wxAcceleratorEntry * _arg0; | |
3764 | int _arg1; | |
3765 | int _arg2; | |
3766 | int _arg3; | |
3767 | PyObject * _argo0 = 0; | |
3768 | char *_kwnames[] = { "self","flags","keyCode","Cmd", NULL }; | |
3769 | ||
3770 | self = self; | |
3771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxAcceleratorEntry_Set",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
3772 | return NULL; | |
3773 | if (_argo0) { | |
3774 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3775 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) { | |
3776 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_Set. Expected _wxAcceleratorEntry_p."); | |
3777 | return NULL; | |
3778 | } | |
3779 | } | |
3780 | { | |
0e2ff151 | 3781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3782 | wxAcceleratorEntry_Set(_arg0,_arg1,_arg2,_arg3); |
3783 | ||
0e2ff151 | 3784 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3785 | if (PyErr_Occurred()) return NULL; |
3786 | } Py_INCREF(Py_None); | |
3787 | _resultobj = Py_None; | |
3788 | return _resultobj; | |
3789 | } | |
3790 | ||
3791 | #define wxAcceleratorEntry_GetFlags(_swigobj) (_swigobj->GetFlags()) | |
3792 | static PyObject *_wrap_wxAcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3793 | PyObject * _resultobj; | |
3794 | int _result; | |
3795 | wxAcceleratorEntry * _arg0; | |
3796 | PyObject * _argo0 = 0; | |
3797 | char *_kwnames[] = { "self", NULL }; | |
3798 | ||
3799 | self = self; | |
3800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxAcceleratorEntry_GetFlags",_kwnames,&_argo0)) | |
3801 | return NULL; | |
3802 | if (_argo0) { | |
3803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) { | |
3805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_GetFlags. Expected _wxAcceleratorEntry_p."); | |
3806 | return NULL; | |
3807 | } | |
3808 | } | |
3809 | { | |
0e2ff151 | 3810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3811 | _result = (int )wxAcceleratorEntry_GetFlags(_arg0); |
3812 | ||
0e2ff151 | 3813 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3814 | if (PyErr_Occurred()) return NULL; |
3815 | } _resultobj = Py_BuildValue("i",_result); | |
3816 | return _resultobj; | |
3817 | } | |
3818 | ||
3819 | #define wxAcceleratorEntry_GetKeyCode(_swigobj) (_swigobj->GetKeyCode()) | |
3820 | static PyObject *_wrap_wxAcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3821 | PyObject * _resultobj; | |
3822 | int _result; | |
3823 | wxAcceleratorEntry * _arg0; | |
3824 | PyObject * _argo0 = 0; | |
3825 | char *_kwnames[] = { "self", NULL }; | |
3826 | ||
3827 | self = self; | |
3828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxAcceleratorEntry_GetKeyCode",_kwnames,&_argo0)) | |
3829 | return NULL; | |
3830 | if (_argo0) { | |
3831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) { | |
3833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_GetKeyCode. Expected _wxAcceleratorEntry_p."); | |
3834 | return NULL; | |
3835 | } | |
3836 | } | |
3837 | { | |
0e2ff151 | 3838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3839 | _result = (int )wxAcceleratorEntry_GetKeyCode(_arg0); |
3840 | ||
0e2ff151 | 3841 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3842 | if (PyErr_Occurred()) return NULL; |
3843 | } _resultobj = Py_BuildValue("i",_result); | |
3844 | return _resultobj; | |
3845 | } | |
3846 | ||
3847 | #define wxAcceleratorEntry_GetCommand(_swigobj) (_swigobj->GetCommand()) | |
3848 | static PyObject *_wrap_wxAcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3849 | PyObject * _resultobj; | |
3850 | int _result; | |
3851 | wxAcceleratorEntry * _arg0; | |
3852 | PyObject * _argo0 = 0; | |
3853 | char *_kwnames[] = { "self", NULL }; | |
3854 | ||
3855 | self = self; | |
3856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxAcceleratorEntry_GetCommand",_kwnames,&_argo0)) | |
3857 | return NULL; | |
3858 | if (_argo0) { | |
3859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) { | |
3861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_GetCommand. Expected _wxAcceleratorEntry_p."); | |
3862 | return NULL; | |
3863 | } | |
3864 | } | |
3865 | { | |
0e2ff151 | 3866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3867 | _result = (int )wxAcceleratorEntry_GetCommand(_arg0); |
3868 | ||
0e2ff151 | 3869 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3870 | if (PyErr_Occurred()) return NULL; |
3871 | } _resultobj = Py_BuildValue("i",_result); | |
3872 | return _resultobj; | |
3873 | } | |
3874 | ||
3875 | static void *SwigwxAcceleratorTableTowxObject(void *ptr) { | |
3876 | wxAcceleratorTable *src; | |
3877 | wxObject *dest; | |
3878 | src = (wxAcceleratorTable *) ptr; | |
3879 | dest = (wxObject *) src; | |
3880 | return (void *) dest; | |
3881 | } | |
3882 | ||
3883 | #define new_wxAcceleratorTable(_swigarg0,_swigarg1) (new wxAcceleratorTable(_swigarg0,_swigarg1)) | |
3884 | static PyObject *_wrap_new_wxAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3885 | PyObject * _resultobj; | |
3886 | wxAcceleratorTable * _result; | |
3887 | int _arg0; | |
3888 | wxAcceleratorEntry * _arg1; | |
3889 | PyObject * _obj1 = 0; | |
3890 | char *_kwnames[] = { "choices", NULL }; | |
3891 | char _ptemp[128]; | |
3892 | ||
3893 | self = self; | |
3894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxAcceleratorTable",_kwnames,&_obj1)) | |
3895 | return NULL; | |
3896 | if (_obj1) | |
3897 | { | |
3898 | _arg1 = wxAcceleratorEntry_LIST_helper(_obj1); | |
3899 | if (_arg1 == NULL) { | |
3900 | return NULL; | |
3901 | } | |
3902 | } | |
3903 | { | |
3904 | if (_obj1) { | |
3905 | _arg0 = PyList_Size(_obj1); | |
3906 | } | |
3907 | else { | |
3908 | _arg0 = 0; | |
3909 | } | |
3910 | } | |
3911 | { | |
0e2ff151 | 3912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3913 | _result = (wxAcceleratorTable *)new_wxAcceleratorTable(_arg0,_arg1); |
3914 | ||
0e2ff151 | 3915 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3916 | if (PyErr_Occurred()) return NULL; |
3917 | } if (_result) { | |
3918 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p"); | |
3919 | _resultobj = Py_BuildValue("s",_ptemp); | |
3920 | } else { | |
3921 | Py_INCREF(Py_None); | |
3922 | _resultobj = Py_None; | |
3923 | } | |
3924 | { | |
3925 | delete [] _arg1; | |
3926 | } | |
3927 | return _resultobj; | |
3928 | } | |
3929 | ||
3930 | #define delete_wxAcceleratorTable(_swigobj) (delete _swigobj) | |
3931 | static PyObject *_wrap_delete_wxAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3932 | PyObject * _resultobj; | |
3933 | wxAcceleratorTable * _arg0; | |
3934 | PyObject * _argo0 = 0; | |
3935 | char *_kwnames[] = { "self", NULL }; | |
3936 | ||
3937 | self = self; | |
3938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxAcceleratorTable",_kwnames,&_argo0)) | |
3939 | return NULL; | |
3940 | if (_argo0) { | |
3941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorTable_p")) { | |
3943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxAcceleratorTable. Expected _wxAcceleratorTable_p."); | |
3944 | return NULL; | |
3945 | } | |
3946 | } | |
3947 | { | |
0e2ff151 | 3948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3949 | delete_wxAcceleratorTable(_arg0); |
3950 | ||
0e2ff151 | 3951 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
3952 | if (PyErr_Occurred()) return NULL; |
3953 | } Py_INCREF(Py_None); | |
3954 | _resultobj = Py_None; | |
3955 | return _resultobj; | |
3956 | } | |
3957 | ||
3958 | static void *SwigwxBusyInfoTowxObject(void *ptr) { | |
3959 | wxBusyInfo *src; | |
3960 | wxObject *dest; | |
3961 | src = (wxBusyInfo *) ptr; | |
3962 | dest = (wxObject *) src; | |
3963 | return (void *) dest; | |
3964 | } | |
3965 | ||
3966 | #define new_wxBusyInfo(_swigarg0) (new wxBusyInfo(_swigarg0)) | |
3967 | static PyObject *_wrap_new_wxBusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3968 | PyObject * _resultobj; | |
3969 | wxBusyInfo * _result; | |
3970 | wxString * _arg0; | |
3971 | PyObject * _obj0 = 0; | |
3972 | char *_kwnames[] = { "message", NULL }; | |
3973 | char _ptemp[128]; | |
3974 | ||
3975 | self = self; | |
3976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxBusyInfo",_kwnames,&_obj0)) | |
3977 | return NULL; | |
3978 | { | |
3979 | #if PYTHON_API_VERSION >= 1009 | |
3980 | char* tmpPtr; int tmpSize; | |
3981 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
3982 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3983 | return NULL; | |
3984 | } | |
3985 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
3986 | return NULL; | |
3987 | _arg0 = new wxString(tmpPtr, tmpSize); | |
3988 | #else | |
3989 | if (!PyString_Check(_obj0)) { | |
3990 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3991 | return NULL; | |
3992 | } | |
3993 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
3994 | #endif | |
3995 | } | |
3996 | { | |
0e2ff151 | 3997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
3998 | _result = (wxBusyInfo *)new_wxBusyInfo(*_arg0); |
3999 | ||
0e2ff151 | 4000 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4001 | if (PyErr_Occurred()) return NULL; |
4002 | } if (_result) { | |
4003 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyInfo_p"); | |
4004 | _resultobj = Py_BuildValue("s",_ptemp); | |
4005 | } else { | |
4006 | Py_INCREF(Py_None); | |
4007 | _resultobj = Py_None; | |
4008 | } | |
4009 | { | |
4010 | if (_obj0) | |
4011 | delete _arg0; | |
4012 | } | |
4013 | return _resultobj; | |
4014 | } | |
4015 | ||
4016 | #define delete_wxBusyInfo(_swigobj) (delete _swigobj) | |
4017 | static PyObject *_wrap_delete_wxBusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4018 | PyObject * _resultobj; | |
4019 | wxBusyInfo * _arg0; | |
4020 | PyObject * _argo0 = 0; | |
4021 | char *_kwnames[] = { "self", NULL }; | |
4022 | ||
4023 | self = self; | |
4024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyInfo",_kwnames,&_argo0)) | |
4025 | return NULL; | |
4026 | if (_argo0) { | |
4027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyInfo_p")) { | |
4029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyInfo. Expected _wxBusyInfo_p."); | |
4030 | return NULL; | |
4031 | } | |
4032 | } | |
4033 | { | |
0e2ff151 | 4034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e6056257 RD |
4035 | delete_wxBusyInfo(_arg0); |
4036 | ||
0e2ff151 | 4037 | wxPyEndAllowThreads(__tstate); |
e6056257 RD |
4038 | if (PyErr_Occurred()) return NULL; |
4039 | } Py_INCREF(Py_None); | |
4040 | _resultobj = Py_None; | |
4041 | return _resultobj; | |
4042 | } | |
4043 | ||
4044 | static PyMethodDef misccMethods[] = { | |
4045 | { "delete_wxBusyInfo", (PyCFunction) _wrap_delete_wxBusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
4046 | { "new_wxBusyInfo", (PyCFunction) _wrap_new_wxBusyInfo, METH_VARARGS | METH_KEYWORDS }, | |
4047 | { "delete_wxAcceleratorTable", (PyCFunction) _wrap_delete_wxAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
4048 | { "new_wxAcceleratorTable", (PyCFunction) _wrap_new_wxAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
4049 | { "wxAcceleratorEntry_GetCommand", (PyCFunction) _wrap_wxAcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS }, | |
4050 | { "wxAcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_wxAcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
4051 | { "wxAcceleratorEntry_GetFlags", (PyCFunction) _wrap_wxAcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
4052 | { "wxAcceleratorEntry_Set", (PyCFunction) _wrap_wxAcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS }, | |
4053 | { "delete_wxAcceleratorEntry", (PyCFunction) _wrap_delete_wxAcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
4054 | { "new_wxAcceleratorEntry", (PyCFunction) _wrap_new_wxAcceleratorEntry, METH_VARARGS | METH_KEYWORDS }, | |
4055 | { "wxLayoutConstraints_width_get", (PyCFunction) _wrap_wxLayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS }, | |
4056 | { "wxLayoutConstraints_top_get", (PyCFunction) _wrap_wxLayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS }, | |
4057 | { "wxLayoutConstraints_right_get", (PyCFunction) _wrap_wxLayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS }, | |
4058 | { "wxLayoutConstraints_left_get", (PyCFunction) _wrap_wxLayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS }, | |
4059 | { "wxLayoutConstraints_height_get", (PyCFunction) _wrap_wxLayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS }, | |
4060 | { "wxLayoutConstraints_centreY_get", (PyCFunction) _wrap_wxLayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS }, | |
4061 | { "wxLayoutConstraints_centreX_get", (PyCFunction) _wrap_wxLayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS }, | |
4062 | { "wxLayoutConstraints_bottom_get", (PyCFunction) _wrap_wxLayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS }, | |
4063 | { "new_wxLayoutConstraints", (PyCFunction) _wrap_new_wxLayoutConstraints, METH_VARARGS | METH_KEYWORDS }, | |
4064 | { "wxIndividualLayoutConstraint_Set", (PyCFunction) _wrap_wxIndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS }, | |
4065 | { "wxIndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_wxIndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS }, | |
4066 | { "wxIndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_wxIndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS }, | |
4067 | { "wxIndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_wxIndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS }, | |
4068 | { "wxIndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_wxIndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS }, | |
4069 | { "wxIndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_wxIndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS }, | |
4070 | { "wxIndividualLayoutConstraint_Below", (PyCFunction) _wrap_wxIndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS }, | |
4071 | { "wxIndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_wxIndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS }, | |
4072 | { "wxIndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_wxIndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS }, | |
4073 | { "wxIndividualLayoutConstraint_Above", (PyCFunction) _wrap_wxIndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS }, | |
4074 | { "wxRect___cmp__", (PyCFunction) _wrap_wxRect___cmp__, METH_VARARGS | METH_KEYWORDS }, | |
4075 | { "wxRect___add__", (PyCFunction) _wrap_wxRect___add__, METH_VARARGS | METH_KEYWORDS }, | |
4076 | { "wxRect_asTuple", (PyCFunction) _wrap_wxRect_asTuple, METH_VARARGS | METH_KEYWORDS }, | |
4077 | { "wxRect_height_get", (PyCFunction) _wrap_wxRect_height_get, METH_VARARGS | METH_KEYWORDS }, | |
4078 | { "wxRect_height_set", (PyCFunction) _wrap_wxRect_height_set, METH_VARARGS | METH_KEYWORDS }, | |
4079 | { "wxRect_width_get", (PyCFunction) _wrap_wxRect_width_get, METH_VARARGS | METH_KEYWORDS }, | |
4080 | { "wxRect_width_set", (PyCFunction) _wrap_wxRect_width_set, METH_VARARGS | METH_KEYWORDS }, | |
4081 | { "wxRect_y_get", (PyCFunction) _wrap_wxRect_y_get, METH_VARARGS | METH_KEYWORDS }, | |
4082 | { "wxRect_y_set", (PyCFunction) _wrap_wxRect_y_set, METH_VARARGS | METH_KEYWORDS }, | |
4083 | { "wxRect_x_get", (PyCFunction) _wrap_wxRect_x_get, METH_VARARGS | METH_KEYWORDS }, | |
4084 | { "wxRect_x_set", (PyCFunction) _wrap_wxRect_x_set, METH_VARARGS | METH_KEYWORDS }, | |
4085 | { "wxRect_Inside", (PyCFunction) _wrap_wxRect_Inside, METH_VARARGS | METH_KEYWORDS }, | |
4086 | { "wxRect_Inflate", (PyCFunction) _wrap_wxRect_Inflate, METH_VARARGS | METH_KEYWORDS }, | |
4087 | { "wxRect_SetBottom", (PyCFunction) _wrap_wxRect_SetBottom, METH_VARARGS | METH_KEYWORDS }, | |
4088 | { "wxRect_SetTop", (PyCFunction) _wrap_wxRect_SetTop, METH_VARARGS | METH_KEYWORDS }, | |
4089 | { "wxRect_SetRight", (PyCFunction) _wrap_wxRect_SetRight, METH_VARARGS | METH_KEYWORDS }, | |
4090 | { "wxRect_SetLeft", (PyCFunction) _wrap_wxRect_SetLeft, METH_VARARGS | METH_KEYWORDS }, | |
4091 | { "wxRect_GetRight", (PyCFunction) _wrap_wxRect_GetRight, METH_VARARGS | METH_KEYWORDS }, | |
4092 | { "wxRect_GetBottom", (PyCFunction) _wrap_wxRect_GetBottom, METH_VARARGS | METH_KEYWORDS }, | |
4093 | { "wxRect_GetTop", (PyCFunction) _wrap_wxRect_GetTop, METH_VARARGS | METH_KEYWORDS }, | |
4094 | { "wxRect_GetLeft", (PyCFunction) _wrap_wxRect_GetLeft, METH_VARARGS | METH_KEYWORDS }, | |
4095 | { "wxRect_GetSize", (PyCFunction) _wrap_wxRect_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
4096 | { "wxRect_GetPosition", (PyCFunction) _wrap_wxRect_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
4097 | { "wxRect_SetHeight", (PyCFunction) _wrap_wxRect_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
4098 | { "wxRect_GetHeight", (PyCFunction) _wrap_wxRect_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
4099 | { "wxRect_SetWidth", (PyCFunction) _wrap_wxRect_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
4100 | { "wxRect_GetWidth", (PyCFunction) _wrap_wxRect_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
4101 | { "wxRect_SetY", (PyCFunction) _wrap_wxRect_SetY, METH_VARARGS | METH_KEYWORDS }, | |
4102 | { "wxRect_GetY", (PyCFunction) _wrap_wxRect_GetY, METH_VARARGS | METH_KEYWORDS }, | |
4103 | { "wxRect_SetX", (PyCFunction) _wrap_wxRect_SetX, METH_VARARGS | METH_KEYWORDS }, | |
4104 | { "wxRect_GetX", (PyCFunction) _wrap_wxRect_GetX, METH_VARARGS | METH_KEYWORDS }, | |
4105 | { "delete_wxRect", (PyCFunction) _wrap_delete_wxRect, METH_VARARGS | METH_KEYWORDS }, | |
4106 | { "new_wxRect", (PyCFunction) _wrap_new_wxRect, METH_VARARGS | METH_KEYWORDS }, | |
4107 | { "wxPoint___cmp__", (PyCFunction) _wrap_wxPoint___cmp__, METH_VARARGS | METH_KEYWORDS }, | |
4108 | { "wxPoint___sub__", (PyCFunction) _wrap_wxPoint___sub__, METH_VARARGS | METH_KEYWORDS }, | |
4109 | { "wxPoint___add__", (PyCFunction) _wrap_wxPoint___add__, METH_VARARGS | METH_KEYWORDS }, | |
4110 | { "wxPoint_asTuple", (PyCFunction) _wrap_wxPoint_asTuple, METH_VARARGS | METH_KEYWORDS }, | |
4111 | { "wxPoint_Set", (PyCFunction) _wrap_wxPoint_Set, METH_VARARGS | METH_KEYWORDS }, | |
4112 | { "delete_wxPoint", (PyCFunction) _wrap_delete_wxPoint, METH_VARARGS | METH_KEYWORDS }, | |
4113 | { "new_wxPoint", (PyCFunction) _wrap_new_wxPoint, METH_VARARGS | METH_KEYWORDS }, | |
4114 | { "wxPoint_y_get", (PyCFunction) _wrap_wxPoint_y_get, METH_VARARGS | METH_KEYWORDS }, | |
4115 | { "wxPoint_y_set", (PyCFunction) _wrap_wxPoint_y_set, METH_VARARGS | METH_KEYWORDS }, | |
4116 | { "wxPoint_x_get", (PyCFunction) _wrap_wxPoint_x_get, METH_VARARGS | METH_KEYWORDS }, | |
4117 | { "wxPoint_x_set", (PyCFunction) _wrap_wxPoint_x_set, METH_VARARGS | METH_KEYWORDS }, | |
4118 | { "wxRealPoint___cmp__", (PyCFunction) _wrap_wxRealPoint___cmp__, METH_VARARGS | METH_KEYWORDS }, | |
4119 | { "wxRealPoint___sub__", (PyCFunction) _wrap_wxRealPoint___sub__, METH_VARARGS | METH_KEYWORDS }, | |
4120 | { "wxRealPoint___add__", (PyCFunction) _wrap_wxRealPoint___add__, METH_VARARGS | METH_KEYWORDS }, | |
4121 | { "wxRealPoint_asTuple", (PyCFunction) _wrap_wxRealPoint_asTuple, METH_VARARGS | METH_KEYWORDS }, | |
4122 | { "wxRealPoint_Set", (PyCFunction) _wrap_wxRealPoint_Set, METH_VARARGS | METH_KEYWORDS }, | |
4123 | { "delete_wxRealPoint", (PyCFunction) _wrap_delete_wxRealPoint, METH_VARARGS | METH_KEYWORDS }, | |
4124 | { "new_wxRealPoint", (PyCFunction) _wrap_new_wxRealPoint, METH_VARARGS | METH_KEYWORDS }, | |
4125 | { "wxRealPoint_y_get", (PyCFunction) _wrap_wxRealPoint_y_get, METH_VARARGS | METH_KEYWORDS }, | |
4126 | { "wxRealPoint_y_set", (PyCFunction) _wrap_wxRealPoint_y_set, METH_VARARGS | METH_KEYWORDS }, | |
4127 | { "wxRealPoint_x_get", (PyCFunction) _wrap_wxRealPoint_x_get, METH_VARARGS | METH_KEYWORDS }, | |
4128 | { "wxRealPoint_x_set", (PyCFunction) _wrap_wxRealPoint_x_set, METH_VARARGS | METH_KEYWORDS }, | |
4129 | { "wxSize___cmp__", (PyCFunction) _wrap_wxSize___cmp__, METH_VARARGS | METH_KEYWORDS }, | |
4130 | { "wxSize_asTuple", (PyCFunction) _wrap_wxSize_asTuple, METH_VARARGS | METH_KEYWORDS }, | |
4131 | { "wxSize_SetHeight", (PyCFunction) _wrap_wxSize_SetHeight, METH_VARARGS | METH_KEYWORDS }, | |
4132 | { "wxSize_SetWidth", (PyCFunction) _wrap_wxSize_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
4133 | { "wxSize_GetHeight", (PyCFunction) _wrap_wxSize_GetHeight, METH_VARARGS | METH_KEYWORDS }, | |
4134 | { "wxSize_GetWidth", (PyCFunction) _wrap_wxSize_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
4135 | { "wxSize_GetY", (PyCFunction) _wrap_wxSize_GetY, METH_VARARGS | METH_KEYWORDS }, | |
4136 | { "wxSize_GetX", (PyCFunction) _wrap_wxSize_GetX, METH_VARARGS | METH_KEYWORDS }, | |
4137 | { "wxSize_Set", (PyCFunction) _wrap_wxSize_Set, METH_VARARGS | METH_KEYWORDS }, | |
4138 | { "delete_wxSize", (PyCFunction) _wrap_delete_wxSize, METH_VARARGS | METH_KEYWORDS }, | |
4139 | { "new_wxSize", (PyCFunction) _wrap_new_wxSize, METH_VARARGS | METH_KEYWORDS }, | |
4140 | { "wxSize_height_get", (PyCFunction) _wrap_wxSize_y_get, METH_VARARGS | METH_KEYWORDS }, | |
4141 | { "wxSize_height_set", (PyCFunction) _wrap_wxSize_y_set, METH_VARARGS | METH_KEYWORDS }, | |
4142 | { "wxSize_width_get", (PyCFunction) _wrap_wxSize_x_get, METH_VARARGS | METH_KEYWORDS }, | |
4143 | { "wxSize_width_set", (PyCFunction) _wrap_wxSize_x_set, METH_VARARGS | METH_KEYWORDS }, | |
4144 | { "wxSize_y_get", (PyCFunction) _wrap_wxSize_y_get, METH_VARARGS | METH_KEYWORDS }, | |
4145 | { "wxSize_y_set", (PyCFunction) _wrap_wxSize_y_set, METH_VARARGS | METH_KEYWORDS }, | |
4146 | { "wxSize_x_get", (PyCFunction) _wrap_wxSize_x_get, METH_VARARGS | METH_KEYWORDS }, | |
4147 | { "wxSize_x_set", (PyCFunction) _wrap_wxSize_x_set, METH_VARARGS | METH_KEYWORDS }, | |
4148 | { "wxObject_Destroy", (PyCFunction) _wrap_wxObject_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
4149 | { "wxObject_GetClassName", (PyCFunction) _wrap_wxObject_GetClassName, METH_VARARGS | METH_KEYWORDS }, | |
4150 | { "wxGetAccelFromString", (PyCFunction) _wrap_wxGetAccelFromString, METH_VARARGS | METH_KEYWORDS }, | |
4151 | { "wxGetHomeDir", (PyCFunction) _wrap_wxGetHomeDir, METH_VARARGS | METH_KEYWORDS }, | |
4152 | { "wxGetUserName", (PyCFunction) _wrap_wxGetUserName, METH_VARARGS | METH_KEYWORDS }, | |
4153 | { "wxGetUserId", (PyCFunction) _wrap_wxGetUserId, METH_VARARGS | METH_KEYWORDS }, | |
4154 | { "wxGetFullHostName", (PyCFunction) _wrap_wxGetFullHostName, METH_VARARGS | METH_KEYWORDS }, | |
4155 | { "wxGetHostName", (PyCFunction) _wrap_wxGetHostName, METH_VARARGS | METH_KEYWORDS }, | |
4156 | { "wxGetEmailAddress", (PyCFunction) _wrap_wxGetEmailAddress, METH_VARARGS | METH_KEYWORDS }, | |
4157 | { "wxStripMenuCodes", (PyCFunction) _wrap_wxStripMenuCodes, METH_VARARGS | METH_KEYWORDS }, | |
4158 | { "wxGetResource", (PyCFunction) _wrap_wxGetResource, METH_VARARGS | METH_KEYWORDS }, | |
4159 | { "wxEnableTopLevelWindows", (PyCFunction) _wrap_wxEnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS }, | |
4160 | { "wxYieldIfNeeded", (PyCFunction) _wrap_wxYieldIfNeeded, METH_VARARGS | METH_KEYWORDS }, | |
4161 | { "wxYield", (PyCFunction) _wrap_wxYield, METH_VARARGS | METH_KEYWORDS }, | |
4162 | { "wxUsleep", (PyCFunction) _wrap_wxUsleep, METH_VARARGS | METH_KEYWORDS }, | |
4163 | { "wxSleep", (PyCFunction) _wrap_wxSleep, METH_VARARGS | METH_KEYWORDS }, | |
4164 | { "wxGetOsDescription", (PyCFunction) _wrap_wxGetOsDescription, METH_VARARGS | METH_KEYWORDS }, | |
4165 | { "wxGetOsVersion", (PyCFunction) _wrap_wxGetOsVersion, METH_VARARGS | METH_KEYWORDS }, | |
4166 | { "wxStartTimer", (PyCFunction) _wrap_wxStartTimer, METH_VARARGS | METH_KEYWORDS }, | |
4167 | { "wxShell", (PyCFunction) _wrap_wxShell, METH_VARARGS | METH_KEYWORDS }, | |
4168 | { "wxNow", (PyCFunction) _wrap_wxNow, METH_VARARGS | METH_KEYWORDS }, | |
4169 | { "wxIsBusy", (PyCFunction) _wrap_wxIsBusy, METH_VARARGS | METH_KEYWORDS }, | |
4170 | { "wxGetMousePosition", (PyCFunction) _wrap_wxGetMousePosition, METH_VARARGS | METH_KEYWORDS }, | |
4171 | { "wxGetElapsedTime", (PyCFunction) _wrap_wxGetElapsedTime, METH_VARARGS | METH_KEYWORDS }, | |
4172 | { "wxEndBusyCursor", (PyCFunction) _wrap_wxEndBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
4173 | { "wxBell", (PyCFunction) _wrap_wxBell, METH_VARARGS | METH_KEYWORDS }, | |
4174 | { "wxGetCurrentId", (PyCFunction) _wrap_wxGetCurrentId, METH_VARARGS | METH_KEYWORDS }, | |
4175 | { "RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS }, | |
4176 | { "NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS }, | |
4177 | { "wxRegisterId", (PyCFunction) _wrap_wxRegisterId, METH_VARARGS | METH_KEYWORDS }, | |
4178 | { "wxNewId", (PyCFunction) _wrap_wxNewId, METH_VARARGS | METH_KEYWORDS }, | |
4179 | { "wxIntersectRect", (PyCFunction) _wrap_wxIntersectRect, METH_VARARGS | METH_KEYWORDS }, | |
4180 | { NULL, NULL } | |
4181 | }; | |
4182 | #ifdef __cplusplus | |
4183 | } | |
4184 | #endif | |
4185 | /* | |
4186 | * This table is used by the pointer type-checker | |
4187 | */ | |
4188 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
4189 | { "_signed_long","_long",0}, | |
4190 | { "_wxPrintQuality","_wxCoord",0}, | |
4191 | { "_wxPrintQuality","_int",0}, | |
4192 | { "_wxPrintQuality","_signed_int",0}, | |
4193 | { "_wxPrintQuality","_unsigned_int",0}, | |
4194 | { "_wxPrintQuality","_wxWindowID",0}, | |
4195 | { "_wxPrintQuality","_uint",0}, | |
4196 | { "_wxPrintQuality","_EBool",0}, | |
4197 | { "_wxPrintQuality","_size_t",0}, | |
4198 | { "_wxPrintQuality","_time_t",0}, | |
4199 | { "_byte","_unsigned_char",0}, | |
4200 | { "_long","_unsigned_long",0}, | |
4201 | { "_long","_signed_long",0}, | |
4202 | { "_size_t","_wxCoord",0}, | |
4203 | { "_size_t","_wxPrintQuality",0}, | |
4204 | { "_size_t","_time_t",0}, | |
4205 | { "_size_t","_unsigned_int",0}, | |
4206 | { "_size_t","_int",0}, | |
4207 | { "_size_t","_wxWindowID",0}, | |
4208 | { "_size_t","_uint",0}, | |
4209 | { "_uint","_wxCoord",0}, | |
4210 | { "_uint","_wxPrintQuality",0}, | |
4211 | { "_uint","_time_t",0}, | |
4212 | { "_uint","_size_t",0}, | |
4213 | { "_uint","_unsigned_int",0}, | |
4214 | { "_uint","_int",0}, | |
4215 | { "_uint","_wxWindowID",0}, | |
4216 | { "_wxChar","_char",0}, | |
4217 | { "_char","_wxChar",0}, | |
4218 | { "_EBool","_wxCoord",0}, | |
4219 | { "_EBool","_wxPrintQuality",0}, | |
4220 | { "_EBool","_signed_int",0}, | |
4221 | { "_EBool","_int",0}, | |
4222 | { "_EBool","_wxWindowID",0}, | |
4223 | { "_unsigned_long","_long",0}, | |
4224 | { "_signed_int","_wxCoord",0}, | |
4225 | { "_signed_int","_wxPrintQuality",0}, | |
4226 | { "_signed_int","_EBool",0}, | |
4227 | { "_signed_int","_wxWindowID",0}, | |
4228 | { "_signed_int","_int",0}, | |
4229 | { "_WXTYPE","_short",0}, | |
4230 | { "_WXTYPE","_signed_short",0}, | |
4231 | { "_WXTYPE","_unsigned_short",0}, | |
4232 | { "_unsigned_short","_WXTYPE",0}, | |
4233 | { "_unsigned_short","_short",0}, | |
4234 | { "_wxObject","_wxBusyInfo",SwigwxBusyInfoTowxObject}, | |
4235 | { "_wxObject","_wxAcceleratorTable",SwigwxAcceleratorTableTowxObject}, | |
4236 | { "_wxObject","_wxLayoutConstraints",SwigwxLayoutConstraintsTowxObject}, | |
4237 | { "_wxObject","_wxIndividualLayoutConstraint",SwigwxIndividualLayoutConstraintTowxObject}, | |
4238 | { "_signed_short","_WXTYPE",0}, | |
4239 | { "_signed_short","_short",0}, | |
4240 | { "_unsigned_char","_byte",0}, | |
4241 | { "_unsigned_int","_wxCoord",0}, | |
4242 | { "_unsigned_int","_wxPrintQuality",0}, | |
4243 | { "_unsigned_int","_time_t",0}, | |
4244 | { "_unsigned_int","_size_t",0}, | |
4245 | { "_unsigned_int","_uint",0}, | |
4246 | { "_unsigned_int","_wxWindowID",0}, | |
4247 | { "_unsigned_int","_int",0}, | |
4248 | { "_short","_WXTYPE",0}, | |
4249 | { "_short","_unsigned_short",0}, | |
4250 | { "_short","_signed_short",0}, | |
4251 | { "_wxWindowID","_wxCoord",0}, | |
4252 | { "_wxWindowID","_wxPrintQuality",0}, | |
4253 | { "_wxWindowID","_time_t",0}, | |
4254 | { "_wxWindowID","_size_t",0}, | |
4255 | { "_wxWindowID","_EBool",0}, | |
4256 | { "_wxWindowID","_uint",0}, | |
4257 | { "_wxWindowID","_int",0}, | |
4258 | { "_wxWindowID","_signed_int",0}, | |
4259 | { "_wxWindowID","_unsigned_int",0}, | |
4260 | { "_int","_wxCoord",0}, | |
4261 | { "_int","_wxPrintQuality",0}, | |
4262 | { "_int","_time_t",0}, | |
4263 | { "_int","_size_t",0}, | |
4264 | { "_int","_EBool",0}, | |
4265 | { "_int","_uint",0}, | |
4266 | { "_int","_wxWindowID",0}, | |
4267 | { "_int","_unsigned_int",0}, | |
4268 | { "_int","_signed_int",0}, | |
4269 | { "_time_t","_wxCoord",0}, | |
4270 | { "_time_t","_wxPrintQuality",0}, | |
4271 | { "_time_t","_unsigned_int",0}, | |
4272 | { "_time_t","_int",0}, | |
4273 | { "_time_t","_wxWindowID",0}, | |
4274 | { "_time_t","_uint",0}, | |
4275 | { "_time_t","_size_t",0}, | |
4276 | { "_wxCoord","_int",0}, | |
4277 | { "_wxCoord","_signed_int",0}, | |
4278 | { "_wxCoord","_unsigned_int",0}, | |
4279 | { "_wxCoord","_wxWindowID",0}, | |
4280 | { "_wxCoord","_uint",0}, | |
4281 | { "_wxCoord","_EBool",0}, | |
4282 | { "_wxCoord","_size_t",0}, | |
4283 | { "_wxCoord","_time_t",0}, | |
4284 | { "_wxCoord","_wxPrintQuality",0}, | |
4285 | {0,0,0}}; | |
4286 | ||
4287 | static PyObject *SWIG_globals; | |
4288 | #ifdef __cplusplus | |
4289 | extern "C" | |
4290 | #endif | |
4291 | SWIGEXPORT(void) initmiscc() { | |
4292 | PyObject *m, *d; | |
4293 | SWIG_globals = SWIG_newvarlink(); | |
4294 | m = Py_InitModule("miscc", misccMethods); | |
4295 | d = PyModule_GetDict(m); | |
4296 | PyDict_SetItemString(d,"wxLeft", PyInt_FromLong((long) wxLeft)); | |
4297 | PyDict_SetItemString(d,"wxTop", PyInt_FromLong((long) wxTop)); | |
4298 | PyDict_SetItemString(d,"wxRight", PyInt_FromLong((long) wxRight)); | |
4299 | PyDict_SetItemString(d,"wxBottom", PyInt_FromLong((long) wxBottom)); | |
4300 | PyDict_SetItemString(d,"wxWidth", PyInt_FromLong((long) wxWidth)); | |
4301 | PyDict_SetItemString(d,"wxHeight", PyInt_FromLong((long) wxHeight)); | |
4302 | PyDict_SetItemString(d,"wxCentre", PyInt_FromLong((long) wxCentre)); | |
4303 | PyDict_SetItemString(d,"wxCenter", PyInt_FromLong((long) wxCenter)); | |
4304 | PyDict_SetItemString(d,"wxCentreX", PyInt_FromLong((long) wxCentreX)); | |
4305 | PyDict_SetItemString(d,"wxCentreY", PyInt_FromLong((long) wxCentreY)); | |
4306 | PyDict_SetItemString(d,"wxUnconstrained", PyInt_FromLong((long) wxUnconstrained)); | |
4307 | PyDict_SetItemString(d,"wxAsIs", PyInt_FromLong((long) wxAsIs)); | |
4308 | PyDict_SetItemString(d,"wxPercentOf", PyInt_FromLong((long) wxPercentOf)); | |
4309 | PyDict_SetItemString(d,"wxAbove", PyInt_FromLong((long) wxAbove)); | |
4310 | PyDict_SetItemString(d,"wxBelow", PyInt_FromLong((long) wxBelow)); | |
4311 | PyDict_SetItemString(d,"wxLeftOf", PyInt_FromLong((long) wxLeftOf)); | |
4312 | PyDict_SetItemString(d,"wxRightOf", PyInt_FromLong((long) wxRightOf)); | |
4313 | PyDict_SetItemString(d,"wxSameAs", PyInt_FromLong((long) wxSameAs)); | |
4314 | PyDict_SetItemString(d,"wxAbsolute", PyInt_FromLong((long) wxAbsolute)); | |
4315 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
4316 | SWIG_addvarlink(SWIG_globals,"wxNullAcceleratorTable",_wrap_wxNullAcceleratorTable_get, _wrap_wxNullAcceleratorTable_set); | |
4317 | { | |
4318 | int i; | |
4319 | for (i = 0; _swig_mapping[i].n1; i++) | |
4320 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
4321 | } | |
4322 | } |