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