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