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