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