]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/misc.cpp
Corrected a return type
[wxWidgets.git] / wxPython / src / msw / misc.cpp
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 "Python.h"
23
24 #include <string.h>
25 #include <stdlib.h>
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
30 # else
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
33 # else
34 # define SWIGEXPORT(a) a
35 # endif
36 # endif
37 #else
38 # define SWIGEXPORT(a) a
39 #endif
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
48 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
49 extern PyObject *SWIG_newvarlink(void);
50 #ifdef __cplusplus
51 }
52 #endif
53 #define SWIG_init initmiscc
54
55 #define SWIG_name "miscc"
56
57 #include "helpers.h"
58 #include <wx/tooltip.h>
59 #include <wx/busyinfo.h>
60 #include <wx/geometry.h>
61
62
63 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
64 PyObject* o2;
65 PyObject* o3;
66
67 if (!target) {
68 target = o;
69 } else if (target == Py_None) {
70 Py_DECREF(Py_None);
71 target = o;
72 } else {
73 if (!PyTuple_Check(target)) {
74 o2 = target;
75 target = PyTuple_New(1);
76 PyTuple_SetItem(target, 0, o2);
77 }
78 o3 = PyTuple_New(1);
79 PyTuple_SetItem(o3, 0, o);
80
81 o2 = target;
82 target = PySequence_Concat(o2, o3);
83 Py_DECREF(o2);
84 Py_DECREF(o3);
85 }
86 return target;
87 }
88
89 // Put some wx default wxChar* values into wxStrings.
90 static const wxString wxPyEmptyString(wxT(""));
91
92 PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) {
93 wxRegion reg1(*r1);
94 wxRegion reg2(*r2);
95 wxRect dest(0,0,0,0);
96 PyObject* obj;
97
98 reg1.Intersect(reg2);
99 dest = reg1.GetBox();
100
101 if (dest != wxRect(0,0,0,0)) {
102 wxPyBeginBlockThreads();
103 wxRect* newRect = new wxRect(dest);
104 obj = wxPyConstructObject((void*)newRect, wxT("wxRect"));
105 PyObject* one = PyInt_FromLong(1);
106 PyObject_SetAttrString(obj, "thisown", one);
107 Py_DECREF(one);
108 wxPyEndBlockThreads();
109 return obj;
110 }
111 Py_INCREF(Py_None);
112 return Py_None;
113 }
114
115 #if 0 // we want to use the definition from the header, not the
116 // one SWIG will generate.
117 extern wxAcceleratorTable wxNullAcceleratorTable;
118
119 #endif
120 #ifdef __cplusplus
121 extern "C" {
122 #endif
123 static PyObject *_wrap_wxIntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
124 PyObject * _resultobj;
125 PyObject * _result;
126 wxRect * _arg0;
127 wxRect * _arg1;
128 wxRect temp;
129 PyObject * _obj0 = 0;
130 wxRect temp0;
131 PyObject * _obj1 = 0;
132 char *_kwnames[] = { "r1","r2", NULL };
133
134 self = self;
135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIntersectRect",_kwnames,&_obj0,&_obj1))
136 return NULL;
137 {
138 _arg0 = &temp;
139 if (! wxRect_helper(_obj0, &_arg0))
140 return NULL;
141 }
142 {
143 _arg1 = &temp0;
144 if (! wxRect_helper(_obj1, &_arg1))
145 return NULL;
146 }
147 {
148 PyThreadState* __tstate = wxPyBeginAllowThreads();
149 _result = (PyObject *)wxIntersectRect(_arg0,_arg1);
150
151 wxPyEndAllowThreads(__tstate);
152 if (PyErr_Occurred()) return NULL;
153 }{
154 _resultobj = _result;
155 }
156 return _resultobj;
157 }
158
159 static PyObject *_wrap_wxNewId(PyObject *self, PyObject *args, PyObject *kwargs) {
160 PyObject * _resultobj;
161 long _result;
162 char *_kwnames[] = { NULL };
163
164 self = self;
165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxNewId",_kwnames))
166 return NULL;
167 {
168 PyThreadState* __tstate = wxPyBeginAllowThreads();
169 _result = (long )wxNewId();
170
171 wxPyEndAllowThreads(__tstate);
172 if (PyErr_Occurred()) return NULL;
173 } _resultobj = Py_BuildValue("l",_result);
174 return _resultobj;
175 }
176
177 static PyObject *_wrap_wxRegisterId(PyObject *self, PyObject *args, PyObject *kwargs) {
178 PyObject * _resultobj;
179 long _arg0;
180 char *_kwnames[] = { "id", NULL };
181
182 self = self;
183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxRegisterId",_kwnames,&_arg0))
184 return NULL;
185 {
186 PyThreadState* __tstate = wxPyBeginAllowThreads();
187 wxRegisterId(_arg0);
188
189 wxPyEndAllowThreads(__tstate);
190 if (PyErr_Occurred()) return NULL;
191 } Py_INCREF(Py_None);
192 _resultobj = Py_None;
193 return _resultobj;
194 }
195
196 static PyObject *_wrap_wxGetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) {
197 PyObject * _resultobj;
198 long _result;
199 char *_kwnames[] = { NULL };
200
201 self = self;
202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetCurrentId",_kwnames))
203 return NULL;
204 {
205 PyThreadState* __tstate = wxPyBeginAllowThreads();
206 _result = (long )wxGetCurrentId();
207
208 wxPyEndAllowThreads(__tstate);
209 if (PyErr_Occurred()) return NULL;
210 } _resultobj = Py_BuildValue("l",_result);
211 return _resultobj;
212 }
213
214 static PyObject *_wrap_wxBell(PyObject *self, PyObject *args, PyObject *kwargs) {
215 PyObject * _resultobj;
216 char *_kwnames[] = { NULL };
217
218 self = self;
219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxBell",_kwnames))
220 return NULL;
221 {
222 PyThreadState* __tstate = wxPyBeginAllowThreads();
223 wxBell();
224
225 wxPyEndAllowThreads(__tstate);
226 if (PyErr_Occurred()) return NULL;
227 } Py_INCREF(Py_None);
228 _resultobj = Py_None;
229 return _resultobj;
230 }
231
232 static PyObject *_wrap_wxEndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
233 PyObject * _resultobj;
234 char *_kwnames[] = { NULL };
235
236 self = self;
237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEndBusyCursor",_kwnames))
238 return NULL;
239 {
240 PyThreadState* __tstate = wxPyBeginAllowThreads();
241 wxEndBusyCursor();
242
243 wxPyEndAllowThreads(__tstate);
244 if (PyErr_Occurred()) return NULL;
245 } Py_INCREF(Py_None);
246 _resultobj = Py_None;
247 return _resultobj;
248 }
249
250 static PyObject *_wrap_wxGetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) {
251 PyObject * _resultobj;
252 long _result;
253 bool _arg0 = (bool ) TRUE;
254 int tempbool0 = (int) TRUE;
255 char *_kwnames[] = { "resetTimer", NULL };
256
257 self = self;
258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxGetElapsedTime",_kwnames,&tempbool0))
259 return NULL;
260 _arg0 = (bool ) tempbool0;
261 {
262 PyThreadState* __tstate = wxPyBeginAllowThreads();
263 _result = (long )wxGetElapsedTime(_arg0);
264
265 wxPyEndAllowThreads(__tstate);
266 if (PyErr_Occurred()) return NULL;
267 } _resultobj = Py_BuildValue("l",_result);
268 return _resultobj;
269 }
270
271 static PyObject *_wrap_wxGetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) {
272 PyObject * _resultobj;
273 long _result;
274 char *_kwnames[] = { NULL };
275
276 self = self;
277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetFreeMemory",_kwnames))
278 return NULL;
279 {
280 PyThreadState* __tstate = wxPyBeginAllowThreads();
281 _result = (long )wxGetFreeMemory();
282
283 wxPyEndAllowThreads(__tstate);
284 if (PyErr_Occurred()) return NULL;
285 } _resultobj = Py_BuildValue("l",_result);
286 return _resultobj;
287 }
288
289 static PyObject *_wrap_wxGetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) {
290 PyObject * _resultobj;
291 int * _arg0;
292 int temp;
293 int * _arg1;
294 int temp0;
295 char *_kwnames[] = { NULL };
296
297 self = self;
298 {
299 _arg0 = &temp;
300 }
301 {
302 _arg1 = &temp0;
303 }
304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetMousePosition",_kwnames))
305 return NULL;
306 {
307 PyThreadState* __tstate = wxPyBeginAllowThreads();
308 wxGetMousePosition(_arg0,_arg1);
309
310 wxPyEndAllowThreads(__tstate);
311 if (PyErr_Occurred()) return NULL;
312 } Py_INCREF(Py_None);
313 _resultobj = Py_None;
314 {
315 PyObject *o;
316 o = PyInt_FromLong((long) (*_arg0));
317 _resultobj = t_output_helper(_resultobj, o);
318 }
319 {
320 PyObject *o;
321 o = PyInt_FromLong((long) (*_arg1));
322 _resultobj = t_output_helper(_resultobj, o);
323 }
324 return _resultobj;
325 }
326
327 static PyObject *_wrap_wxIsBusy(PyObject *self, PyObject *args, PyObject *kwargs) {
328 PyObject * _resultobj;
329 bool _result;
330 char *_kwnames[] = { NULL };
331
332 self = self;
333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxIsBusy",_kwnames))
334 return NULL;
335 {
336 PyThreadState* __tstate = wxPyBeginAllowThreads();
337 _result = (bool )wxIsBusy();
338
339 wxPyEndAllowThreads(__tstate);
340 if (PyErr_Occurred()) return NULL;
341 } _resultobj = Py_BuildValue("i",_result);
342 return _resultobj;
343 }
344
345 static PyObject *_wrap_wxNow(PyObject *self, PyObject *args, PyObject *kwargs) {
346 PyObject * _resultobj;
347 wxString * _result;
348 char *_kwnames[] = { NULL };
349
350 self = self;
351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxNow",_kwnames))
352 return NULL;
353 {
354 PyThreadState* __tstate = wxPyBeginAllowThreads();
355 _result = new wxString (wxNow());
356
357 wxPyEndAllowThreads(__tstate);
358 if (PyErr_Occurred()) return NULL;
359 }{
360 #if wxUSE_UNICODE
361 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
362 #else
363 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
364 #endif
365 }
366 {
367 delete _result;
368 }
369 return _resultobj;
370 }
371
372 static PyObject *_wrap_wxShell(PyObject *self, PyObject *args, PyObject *kwargs) {
373 PyObject * _resultobj;
374 bool _result;
375 wxString * _arg0 = (wxString *) &wxPyEmptyString;
376 PyObject * _obj0 = 0;
377 char *_kwnames[] = { "command", NULL };
378
379 self = self;
380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxShell",_kwnames,&_obj0))
381 return NULL;
382 if (_obj0)
383 {
384 _arg0 = wxString_in_helper(_obj0);
385 if (_arg0 == NULL)
386 return NULL;
387 }
388 {
389 PyThreadState* __tstate = wxPyBeginAllowThreads();
390 _result = (bool )wxShell(*_arg0);
391
392 wxPyEndAllowThreads(__tstate);
393 if (PyErr_Occurred()) return NULL;
394 } _resultobj = Py_BuildValue("i",_result);
395 {
396 if (_obj0)
397 delete _arg0;
398 }
399 return _resultobj;
400 }
401
402 static PyObject *_wrap_wxStartTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
403 PyObject * _resultobj;
404 char *_kwnames[] = { NULL };
405
406 self = self;
407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxStartTimer",_kwnames))
408 return NULL;
409 {
410 PyThreadState* __tstate = wxPyBeginAllowThreads();
411 wxStartTimer();
412
413 wxPyEndAllowThreads(__tstate);
414 if (PyErr_Occurred()) return NULL;
415 } Py_INCREF(Py_None);
416 _resultobj = Py_None;
417 return _resultobj;
418 }
419
420 static PyObject *_wrap_wxGetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
421 PyObject * _resultobj;
422 int _result;
423 int * _arg0;
424 int temp;
425 int * _arg1;
426 int temp0;
427 char *_kwnames[] = { NULL };
428
429 self = self;
430 {
431 _arg0 = &temp;
432 }
433 {
434 _arg1 = &temp0;
435 }
436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetOsVersion",_kwnames))
437 return NULL;
438 {
439 PyThreadState* __tstate = wxPyBeginAllowThreads();
440 _result = (int )wxGetOsVersion(_arg0,_arg1);
441
442 wxPyEndAllowThreads(__tstate);
443 if (PyErr_Occurred()) return NULL;
444 } _resultobj = Py_BuildValue("i",_result);
445 {
446 PyObject *o;
447 o = PyInt_FromLong((long) (*_arg0));
448 _resultobj = t_output_helper(_resultobj, o);
449 }
450 {
451 PyObject *o;
452 o = PyInt_FromLong((long) (*_arg1));
453 _resultobj = t_output_helper(_resultobj, o);
454 }
455 return _resultobj;
456 }
457
458 static PyObject *_wrap_wxGetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
459 PyObject * _resultobj;
460 wxString * _result;
461 char *_kwnames[] = { NULL };
462
463 self = self;
464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetOsDescription",_kwnames))
465 return NULL;
466 {
467 PyThreadState* __tstate = wxPyBeginAllowThreads();
468 _result = new wxString (wxGetOsDescription());
469
470 wxPyEndAllowThreads(__tstate);
471 if (PyErr_Occurred()) return NULL;
472 }{
473 #if wxUSE_UNICODE
474 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
475 #else
476 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
477 #endif
478 }
479 {
480 delete _result;
481 }
482 return _resultobj;
483 }
484
485 static PyObject *_wrap_wxShutdown(PyObject *self, PyObject *args, PyObject *kwargs) {
486 PyObject * _resultobj;
487 bool _result;
488 wxShutdownFlags _arg0;
489 char *_kwnames[] = { "wFlags", NULL };
490
491 self = self;
492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxShutdown",_kwnames,&_arg0))
493 return NULL;
494 {
495 PyThreadState* __tstate = wxPyBeginAllowThreads();
496 _result = (bool )wxShutdown(_arg0);
497
498 wxPyEndAllowThreads(__tstate);
499 if (PyErr_Occurred()) return NULL;
500 } _resultobj = Py_BuildValue("i",_result);
501 return _resultobj;
502 }
503
504 static PyObject *_wrap_wxSleep(PyObject *self, PyObject *args, PyObject *kwargs) {
505 PyObject * _resultobj;
506 int _arg0;
507 char *_kwnames[] = { "secs", NULL };
508
509 self = self;
510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSleep",_kwnames,&_arg0))
511 return NULL;
512 {
513 PyThreadState* __tstate = wxPyBeginAllowThreads();
514 wxSleep(_arg0);
515
516 wxPyEndAllowThreads(__tstate);
517 if (PyErr_Occurred()) return NULL;
518 } Py_INCREF(Py_None);
519 _resultobj = Py_None;
520 return _resultobj;
521 }
522
523 static PyObject *_wrap_wxUsleep(PyObject *self, PyObject *args, PyObject *kwargs) {
524 PyObject * _resultobj;
525 unsigned long _arg0;
526 char *_kwnames[] = { "milliseconds", NULL };
527
528 self = self;
529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxUsleep",_kwnames,&_arg0))
530 return NULL;
531 {
532 PyThreadState* __tstate = wxPyBeginAllowThreads();
533 wxUsleep(_arg0);
534
535 wxPyEndAllowThreads(__tstate);
536 if (PyErr_Occurred()) return NULL;
537 } Py_INCREF(Py_None);
538 _resultobj = Py_None;
539 return _resultobj;
540 }
541
542 static PyObject *_wrap_wxYield(PyObject *self, PyObject *args, PyObject *kwargs) {
543 PyObject * _resultobj;
544 bool _result;
545 char *_kwnames[] = { NULL };
546
547 self = self;
548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxYield",_kwnames))
549 return NULL;
550 {
551 PyThreadState* __tstate = wxPyBeginAllowThreads();
552 _result = (bool )wxYield();
553
554 wxPyEndAllowThreads(__tstate);
555 if (PyErr_Occurred()) return NULL;
556 } _resultobj = Py_BuildValue("i",_result);
557 return _resultobj;
558 }
559
560 static PyObject *_wrap_wxYieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) {
561 PyObject * _resultobj;
562 bool _result;
563 char *_kwnames[] = { NULL };
564
565 self = self;
566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxYieldIfNeeded",_kwnames))
567 return NULL;
568 {
569 PyThreadState* __tstate = wxPyBeginAllowThreads();
570 _result = (bool )wxYieldIfNeeded();
571
572 wxPyEndAllowThreads(__tstate);
573 if (PyErr_Occurred()) return NULL;
574 } _resultobj = Py_BuildValue("i",_result);
575 return _resultobj;
576 }
577
578 static PyObject *_wrap_wxEnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
579 PyObject * _resultobj;
580 bool _arg0;
581 int tempbool0;
582 char *_kwnames[] = { "enable", NULL };
583
584 self = self;
585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxEnableTopLevelWindows",_kwnames,&tempbool0))
586 return NULL;
587 _arg0 = (bool ) tempbool0;
588 {
589 PyThreadState* __tstate = wxPyBeginAllowThreads();
590 wxEnableTopLevelWindows(_arg0);
591
592 wxPyEndAllowThreads(__tstate);
593 if (PyErr_Occurred()) return NULL;
594 } Py_INCREF(Py_None);
595 _resultobj = Py_None;
596 return _resultobj;
597 }
598
599 static PyObject *_wrap_wxStripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
600 PyObject * _resultobj;
601 wxString * _result;
602 wxString * _arg0;
603 PyObject * _obj0 = 0;
604 char *_kwnames[] = { "in", NULL };
605
606 self = self;
607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStripMenuCodes",_kwnames,&_obj0))
608 return NULL;
609 {
610 _arg0 = wxString_in_helper(_obj0);
611 if (_arg0 == NULL)
612 return NULL;
613 }
614 {
615 PyThreadState* __tstate = wxPyBeginAllowThreads();
616 _result = new wxString (wxStripMenuCodes(*_arg0));
617
618 wxPyEndAllowThreads(__tstate);
619 if (PyErr_Occurred()) return NULL;
620 }{
621 #if wxUSE_UNICODE
622 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
623 #else
624 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
625 #endif
626 }
627 {
628 if (_obj0)
629 delete _arg0;
630 }
631 {
632 delete _result;
633 }
634 return _resultobj;
635 }
636
637 static PyObject *_wrap_wxGetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) {
638 PyObject * _resultobj;
639 wxString * _result;
640 char *_kwnames[] = { NULL };
641
642 self = self;
643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetEmailAddress",_kwnames))
644 return NULL;
645 {
646 PyThreadState* __tstate = wxPyBeginAllowThreads();
647 _result = new wxString (wxGetEmailAddress());
648
649 wxPyEndAllowThreads(__tstate);
650 if (PyErr_Occurred()) return NULL;
651 }{
652 #if wxUSE_UNICODE
653 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
654 #else
655 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
656 #endif
657 }
658 {
659 delete _result;
660 }
661 return _resultobj;
662 }
663
664 static PyObject *_wrap_wxGetHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
665 PyObject * _resultobj;
666 wxString * _result;
667 char *_kwnames[] = { NULL };
668
669 self = self;
670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetHostName",_kwnames))
671 return NULL;
672 {
673 PyThreadState* __tstate = wxPyBeginAllowThreads();
674 _result = new wxString (wxGetHostName());
675
676 wxPyEndAllowThreads(__tstate);
677 if (PyErr_Occurred()) return NULL;
678 }{
679 #if wxUSE_UNICODE
680 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
681 #else
682 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
683 #endif
684 }
685 {
686 delete _result;
687 }
688 return _resultobj;
689 }
690
691 static PyObject *_wrap_wxGetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
692 PyObject * _resultobj;
693 wxString * _result;
694 char *_kwnames[] = { NULL };
695
696 self = self;
697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetFullHostName",_kwnames))
698 return NULL;
699 {
700 PyThreadState* __tstate = wxPyBeginAllowThreads();
701 _result = new wxString (wxGetFullHostName());
702
703 wxPyEndAllowThreads(__tstate);
704 if (PyErr_Occurred()) return NULL;
705 }{
706 #if wxUSE_UNICODE
707 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
708 #else
709 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
710 #endif
711 }
712 {
713 delete _result;
714 }
715 return _resultobj;
716 }
717
718 static PyObject *_wrap_wxGetUserId(PyObject *self, PyObject *args, PyObject *kwargs) {
719 PyObject * _resultobj;
720 wxString * _result;
721 char *_kwnames[] = { NULL };
722
723 self = self;
724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetUserId",_kwnames))
725 return NULL;
726 {
727 PyThreadState* __tstate = wxPyBeginAllowThreads();
728 _result = new wxString (wxGetUserId());
729
730 wxPyEndAllowThreads(__tstate);
731 if (PyErr_Occurred()) return NULL;
732 }{
733 #if wxUSE_UNICODE
734 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
735 #else
736 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
737 #endif
738 }
739 {
740 delete _result;
741 }
742 return _resultobj;
743 }
744
745 static PyObject *_wrap_wxGetUserName(PyObject *self, PyObject *args, PyObject *kwargs) {
746 PyObject * _resultobj;
747 wxString * _result;
748 char *_kwnames[] = { NULL };
749
750 self = self;
751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetUserName",_kwnames))
752 return NULL;
753 {
754 PyThreadState* __tstate = wxPyBeginAllowThreads();
755 _result = new wxString (wxGetUserName());
756
757 wxPyEndAllowThreads(__tstate);
758 if (PyErr_Occurred()) return NULL;
759 }{
760 #if wxUSE_UNICODE
761 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
762 #else
763 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
764 #endif
765 }
766 {
767 delete _result;
768 }
769 return _resultobj;
770 }
771
772 static PyObject *_wrap_wxGetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) {
773 PyObject * _resultobj;
774 wxString * _result;
775 char *_kwnames[] = { NULL };
776
777 self = self;
778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetHomeDir",_kwnames))
779 return NULL;
780 {
781 PyThreadState* __tstate = wxPyBeginAllowThreads();
782 _result = new wxString (wxGetHomeDir());
783
784 wxPyEndAllowThreads(__tstate);
785 if (PyErr_Occurred()) return NULL;
786 }{
787 #if wxUSE_UNICODE
788 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
789 #else
790 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
791 #endif
792 }
793 {
794 delete _result;
795 }
796 return _resultobj;
797 }
798
799 static PyObject *_wrap_wxGetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) {
800 PyObject * _resultobj;
801 wxString * _result;
802 wxString * _arg0 = (wxString *) &wxPyEmptyString;
803 PyObject * _obj0 = 0;
804 char *_kwnames[] = { "user", NULL };
805
806 self = self;
807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxGetUserHome",_kwnames,&_obj0))
808 return NULL;
809 if (_obj0)
810 {
811 _arg0 = wxString_in_helper(_obj0);
812 if (_arg0 == NULL)
813 return NULL;
814 }
815 {
816 PyThreadState* __tstate = wxPyBeginAllowThreads();
817 _result = new wxString (wxGetUserHome(*_arg0));
818
819 wxPyEndAllowThreads(__tstate);
820 if (PyErr_Occurred()) return NULL;
821 }{
822 #if wxUSE_UNICODE
823 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
824 #else
825 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
826 #endif
827 }
828 {
829 if (_obj0)
830 delete _arg0;
831 }
832 {
833 delete _result;
834 }
835 return _resultobj;
836 }
837
838 static PyObject *_wrap_wxGetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) {
839 PyObject * _resultobj;
840 unsigned long _result;
841 char *_kwnames[] = { NULL };
842
843 self = self;
844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetProcessId",_kwnames))
845 return NULL;
846 {
847 PyThreadState* __tstate = wxPyBeginAllowThreads();
848 _result = (unsigned long )wxGetProcessId();
849
850 wxPyEndAllowThreads(__tstate);
851 if (PyErr_Occurred()) return NULL;
852 } _resultobj = Py_BuildValue("l",_result);
853 return _resultobj;
854 }
855
856 static PyObject *_wrap_wxTrap(PyObject *self, PyObject *args, PyObject *kwargs) {
857 PyObject * _resultobj;
858 char *_kwnames[] = { NULL };
859
860 self = self;
861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxTrap",_kwnames))
862 return NULL;
863 {
864 PyThreadState* __tstate = wxPyBeginAllowThreads();
865 wxTrap();
866
867 wxPyEndAllowThreads(__tstate);
868 if (PyErr_Occurred()) return NULL;
869 } Py_INCREF(Py_None);
870 _resultobj = Py_None;
871 return _resultobj;
872 }
873
874 static PyObject *_wrap_wxGetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
875 PyObject * _resultobj;
876 wxAcceleratorEntry * _result;
877 wxString * _arg0;
878 PyObject * _obj0 = 0;
879 char *_kwnames[] = { "label", NULL };
880 char _ptemp[128];
881
882 self = self;
883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGetAccelFromString",_kwnames,&_obj0))
884 return NULL;
885 {
886 _arg0 = wxString_in_helper(_obj0);
887 if (_arg0 == NULL)
888 return NULL;
889 }
890 {
891 PyThreadState* __tstate = wxPyBeginAllowThreads();
892 _result = (wxAcceleratorEntry *)wxGetAccelFromString(*_arg0);
893
894 wxPyEndAllowThreads(__tstate);
895 if (PyErr_Occurred()) return NULL;
896 } if (_result) {
897 SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p");
898 _resultobj = Py_BuildValue("s",_ptemp);
899 } else {
900 Py_INCREF(Py_None);
901 _resultobj = Py_None;
902 }
903 {
904 if (_obj0)
905 delete _arg0;
906 }
907 return _resultobj;
908 }
909
910 static int _wrap_wxNullAcceleratorTable_set(PyObject *val) {
911
912 PyErr_SetString(PyExc_TypeError,"Variable wxNullAcceleratorTable is read-only.");
913 return 1;
914 }
915
916 static PyObject *_wrap_wxNullAcceleratorTable_get() {
917 PyObject * pyobj;
918 char ptemp[128];
919
920 SWIG_MakePtr(ptemp,(char *) &wxNullAcceleratorTable,"_wxAcceleratorTable_p");
921 pyobj = PyString_FromString(ptemp);
922 return pyobj;
923 }
924
925 static wxString wxObject_GetClassName(wxObject *self) {
926 return self->GetClassInfo()->GetClassName();
927 }
928 static PyObject *_wrap_wxObject_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
929 PyObject * _resultobj;
930 wxString * _result;
931 wxObject * _arg0;
932 PyObject * _argo0 = 0;
933 char *_kwnames[] = { "self", NULL };
934
935 self = self;
936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxObject_GetClassName",_kwnames,&_argo0))
937 return NULL;
938 if (_argo0) {
939 if (_argo0 == Py_None) { _arg0 = NULL; }
940 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxObject_p")) {
941 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxObject_GetClassName. Expected _wxObject_p.");
942 return NULL;
943 }
944 }
945 {
946 PyThreadState* __tstate = wxPyBeginAllowThreads();
947 _result = new wxString (wxObject_GetClassName(_arg0));
948
949 wxPyEndAllowThreads(__tstate);
950 if (PyErr_Occurred()) return NULL;
951 }{
952 #if wxUSE_UNICODE
953 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
954 #else
955 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
956 #endif
957 }
958 {
959 delete _result;
960 }
961 return _resultobj;
962 }
963
964 static void wxObject_Destroy(wxObject *self) {
965 delete self;
966 }
967 static PyObject *_wrap_wxObject_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
968 PyObject * _resultobj;
969 wxObject * _arg0;
970 PyObject * _argo0 = 0;
971 char *_kwnames[] = { "self", NULL };
972
973 self = self;
974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxObject_Destroy",_kwnames,&_argo0))
975 return NULL;
976 if (_argo0) {
977 if (_argo0 == Py_None) { _arg0 = NULL; }
978 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxObject_p")) {
979 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxObject_Destroy. Expected _wxObject_p.");
980 return NULL;
981 }
982 }
983 {
984 PyThreadState* __tstate = wxPyBeginAllowThreads();
985 wxObject_Destroy(_arg0);
986
987 wxPyEndAllowThreads(__tstate);
988 if (PyErr_Occurred()) return NULL;
989 } Py_INCREF(Py_None);
990 _resultobj = Py_None;
991 return _resultobj;
992 }
993
994 #define wxSize_x_set(_swigobj,_swigval) (_swigobj->x = _swigval,_swigval)
995 static PyObject *_wrap_wxSize_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
996 PyObject * _resultobj;
997 long _result;
998 wxSize * _arg0;
999 long _arg1;
1000 wxSize temp;
1001 PyObject * _obj0 = 0;
1002 char *_kwnames[] = { "self","x", NULL };
1003
1004 self = self;
1005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxSize_x_set",_kwnames,&_obj0,&_arg1))
1006 return NULL;
1007 {
1008 _arg0 = &temp;
1009 if (! wxSize_helper(_obj0, &_arg0))
1010 return NULL;
1011 }
1012 {
1013 PyThreadState* __tstate = wxPyBeginAllowThreads();
1014 _result = (long )wxSize_x_set(_arg0,_arg1);
1015
1016 wxPyEndAllowThreads(__tstate);
1017 if (PyErr_Occurred()) return NULL;
1018 } _resultobj = Py_BuildValue("l",_result);
1019 return _resultobj;
1020 }
1021
1022 #define wxSize_x_get(_swigobj) ((long ) _swigobj->x)
1023 static PyObject *_wrap_wxSize_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1024 PyObject * _resultobj;
1025 long _result;
1026 wxSize * _arg0;
1027 wxSize temp;
1028 PyObject * _obj0 = 0;
1029 char *_kwnames[] = { "self", NULL };
1030
1031 self = self;
1032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSize_x_get",_kwnames,&_obj0))
1033 return NULL;
1034 {
1035 _arg0 = &temp;
1036 if (! wxSize_helper(_obj0, &_arg0))
1037 return NULL;
1038 }
1039 {
1040 PyThreadState* __tstate = wxPyBeginAllowThreads();
1041 _result = (long )wxSize_x_get(_arg0);
1042
1043 wxPyEndAllowThreads(__tstate);
1044 if (PyErr_Occurred()) return NULL;
1045 } _resultobj = Py_BuildValue("l",_result);
1046 return _resultobj;
1047 }
1048
1049 #define wxSize_y_set(_swigobj,_swigval) (_swigobj->y = _swigval,_swigval)
1050 static PyObject *_wrap_wxSize_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1051 PyObject * _resultobj;
1052 long _result;
1053 wxSize * _arg0;
1054 long _arg1;
1055 wxSize temp;
1056 PyObject * _obj0 = 0;
1057 char *_kwnames[] = { "self","y", NULL };
1058
1059 self = self;
1060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxSize_y_set",_kwnames,&_obj0,&_arg1))
1061 return NULL;
1062 {
1063 _arg0 = &temp;
1064 if (! wxSize_helper(_obj0, &_arg0))
1065 return NULL;
1066 }
1067 {
1068 PyThreadState* __tstate = wxPyBeginAllowThreads();
1069 _result = (long )wxSize_y_set(_arg0,_arg1);
1070
1071 wxPyEndAllowThreads(__tstate);
1072 if (PyErr_Occurred()) return NULL;
1073 } _resultobj = Py_BuildValue("l",_result);
1074 return _resultobj;
1075 }
1076
1077 #define wxSize_y_get(_swigobj) ((long ) _swigobj->y)
1078 static PyObject *_wrap_wxSize_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1079 PyObject * _resultobj;
1080 long _result;
1081 wxSize * _arg0;
1082 wxSize temp;
1083 PyObject * _obj0 = 0;
1084 char *_kwnames[] = { "self", NULL };
1085
1086 self = self;
1087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSize_y_get",_kwnames,&_obj0))
1088 return NULL;
1089 {
1090 _arg0 = &temp;
1091 if (! wxSize_helper(_obj0, &_arg0))
1092 return NULL;
1093 }
1094 {
1095 PyThreadState* __tstate = wxPyBeginAllowThreads();
1096 _result = (long )wxSize_y_get(_arg0);
1097
1098 wxPyEndAllowThreads(__tstate);
1099 if (PyErr_Occurred()) return NULL;
1100 } _resultobj = Py_BuildValue("l",_result);
1101 return _resultobj;
1102 }
1103
1104 #define new_wxSize(_swigarg0,_swigarg1) (new wxSize(_swigarg0,_swigarg1))
1105 static PyObject *_wrap_new_wxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1106 PyObject * _resultobj;
1107 wxSize * _result;
1108 long _arg0 = (long ) 0;
1109 long _arg1 = (long ) 0;
1110 char *_kwnames[] = { "w","h", NULL };
1111 char _ptemp[128];
1112
1113 self = self;
1114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ll:new_wxSize",_kwnames,&_arg0,&_arg1))
1115 return NULL;
1116 {
1117 PyThreadState* __tstate = wxPyBeginAllowThreads();
1118 _result = (wxSize *)new_wxSize(_arg0,_arg1);
1119
1120 wxPyEndAllowThreads(__tstate);
1121 if (PyErr_Occurred()) return NULL;
1122 } if (_result) {
1123 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSize_p");
1124 _resultobj = Py_BuildValue("s",_ptemp);
1125 } else {
1126 Py_INCREF(Py_None);
1127 _resultobj = Py_None;
1128 }
1129 return _resultobj;
1130 }
1131
1132 #define delete_wxSize(_swigobj) (delete _swigobj)
1133 static PyObject *_wrap_delete_wxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1134 PyObject * _resultobj;
1135 wxSize * _arg0;
1136 wxSize temp;
1137 PyObject * _obj0 = 0;
1138 char *_kwnames[] = { "self", NULL };
1139
1140 self = self;
1141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxSize",_kwnames,&_obj0))
1142 return NULL;
1143 {
1144 _arg0 = &temp;
1145 if (! wxSize_helper(_obj0, &_arg0))
1146 return NULL;
1147 }
1148 {
1149 PyThreadState* __tstate = wxPyBeginAllowThreads();
1150 delete_wxSize(_arg0);
1151
1152 wxPyEndAllowThreads(__tstate);
1153 if (PyErr_Occurred()) return NULL;
1154 } Py_INCREF(Py_None);
1155 _resultobj = Py_None;
1156 return _resultobj;
1157 }
1158
1159 #define wxSize_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1))
1160 static PyObject *_wrap_wxSize_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1161 PyObject * _resultobj;
1162 wxSize * _arg0;
1163 long _arg1;
1164 long _arg2;
1165 wxSize temp;
1166 PyObject * _obj0 = 0;
1167 char *_kwnames[] = { "self","w","h", NULL };
1168
1169 self = self;
1170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxSize_Set",_kwnames,&_obj0,&_arg1,&_arg2))
1171 return NULL;
1172 {
1173 _arg0 = &temp;
1174 if (! wxSize_helper(_obj0, &_arg0))
1175 return NULL;
1176 }
1177 {
1178 PyThreadState* __tstate = wxPyBeginAllowThreads();
1179 wxSize_Set(_arg0,_arg1,_arg2);
1180
1181 wxPyEndAllowThreads(__tstate);
1182 if (PyErr_Occurred()) return NULL;
1183 } Py_INCREF(Py_None);
1184 _resultobj = Py_None;
1185 return _resultobj;
1186 }
1187
1188 #define wxSize_GetX(_swigobj) (_swigobj->GetX())
1189 static PyObject *_wrap_wxSize_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
1190 PyObject * _resultobj;
1191 long _result;
1192 wxSize * _arg0;
1193 wxSize temp;
1194 PyObject * _obj0 = 0;
1195 char *_kwnames[] = { "self", NULL };
1196
1197 self = self;
1198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSize_GetX",_kwnames,&_obj0))
1199 return NULL;
1200 {
1201 _arg0 = &temp;
1202 if (! wxSize_helper(_obj0, &_arg0))
1203 return NULL;
1204 }
1205 {
1206 PyThreadState* __tstate = wxPyBeginAllowThreads();
1207 _result = (long )wxSize_GetX(_arg0);
1208
1209 wxPyEndAllowThreads(__tstate);
1210 if (PyErr_Occurred()) return NULL;
1211 } _resultobj = Py_BuildValue("l",_result);
1212 return _resultobj;
1213 }
1214
1215 #define wxSize_GetY(_swigobj) (_swigobj->GetY())
1216 static PyObject *_wrap_wxSize_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
1217 PyObject * _resultobj;
1218 long _result;
1219 wxSize * _arg0;
1220 wxSize temp;
1221 PyObject * _obj0 = 0;
1222 char *_kwnames[] = { "self", NULL };
1223
1224 self = self;
1225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSize_GetY",_kwnames,&_obj0))
1226 return NULL;
1227 {
1228 _arg0 = &temp;
1229 if (! wxSize_helper(_obj0, &_arg0))
1230 return NULL;
1231 }
1232 {
1233 PyThreadState* __tstate = wxPyBeginAllowThreads();
1234 _result = (long )wxSize_GetY(_arg0);
1235
1236 wxPyEndAllowThreads(__tstate);
1237 if (PyErr_Occurred()) return NULL;
1238 } _resultobj = Py_BuildValue("l",_result);
1239 return _resultobj;
1240 }
1241
1242 #define wxSize_GetWidth(_swigobj) (_swigobj->GetWidth())
1243 static PyObject *_wrap_wxSize_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1244 PyObject * _resultobj;
1245 long _result;
1246 wxSize * _arg0;
1247 wxSize temp;
1248 PyObject * _obj0 = 0;
1249 char *_kwnames[] = { "self", NULL };
1250
1251 self = self;
1252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSize_GetWidth",_kwnames,&_obj0))
1253 return NULL;
1254 {
1255 _arg0 = &temp;
1256 if (! wxSize_helper(_obj0, &_arg0))
1257 return NULL;
1258 }
1259 {
1260 PyThreadState* __tstate = wxPyBeginAllowThreads();
1261 _result = (long )wxSize_GetWidth(_arg0);
1262
1263 wxPyEndAllowThreads(__tstate);
1264 if (PyErr_Occurred()) return NULL;
1265 } _resultobj = Py_BuildValue("l",_result);
1266 return _resultobj;
1267 }
1268
1269 #define wxSize_GetHeight(_swigobj) (_swigobj->GetHeight())
1270 static PyObject *_wrap_wxSize_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1271 PyObject * _resultobj;
1272 long _result;
1273 wxSize * _arg0;
1274 wxSize temp;
1275 PyObject * _obj0 = 0;
1276 char *_kwnames[] = { "self", NULL };
1277
1278 self = self;
1279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSize_GetHeight",_kwnames,&_obj0))
1280 return NULL;
1281 {
1282 _arg0 = &temp;
1283 if (! wxSize_helper(_obj0, &_arg0))
1284 return NULL;
1285 }
1286 {
1287 PyThreadState* __tstate = wxPyBeginAllowThreads();
1288 _result = (long )wxSize_GetHeight(_arg0);
1289
1290 wxPyEndAllowThreads(__tstate);
1291 if (PyErr_Occurred()) return NULL;
1292 } _resultobj = Py_BuildValue("l",_result);
1293 return _resultobj;
1294 }
1295
1296 #define wxSize_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1297 static PyObject *_wrap_wxSize_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1298 PyObject * _resultobj;
1299 wxSize * _arg0;
1300 long _arg1;
1301 wxSize temp;
1302 PyObject * _obj0 = 0;
1303 char *_kwnames[] = { "self","w", NULL };
1304
1305 self = self;
1306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxSize_SetWidth",_kwnames,&_obj0,&_arg1))
1307 return NULL;
1308 {
1309 _arg0 = &temp;
1310 if (! wxSize_helper(_obj0, &_arg0))
1311 return NULL;
1312 }
1313 {
1314 PyThreadState* __tstate = wxPyBeginAllowThreads();
1315 wxSize_SetWidth(_arg0,_arg1);
1316
1317 wxPyEndAllowThreads(__tstate);
1318 if (PyErr_Occurred()) return NULL;
1319 } Py_INCREF(Py_None);
1320 _resultobj = Py_None;
1321 return _resultobj;
1322 }
1323
1324 #define wxSize_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1325 static PyObject *_wrap_wxSize_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1326 PyObject * _resultobj;
1327 wxSize * _arg0;
1328 long _arg1;
1329 wxSize temp;
1330 PyObject * _obj0 = 0;
1331 char *_kwnames[] = { "self","h", NULL };
1332
1333 self = self;
1334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxSize_SetHeight",_kwnames,&_obj0,&_arg1))
1335 return NULL;
1336 {
1337 _arg0 = &temp;
1338 if (! wxSize_helper(_obj0, &_arg0))
1339 return NULL;
1340 }
1341 {
1342 PyThreadState* __tstate = wxPyBeginAllowThreads();
1343 wxSize_SetHeight(_arg0,_arg1);
1344
1345 wxPyEndAllowThreads(__tstate);
1346 if (PyErr_Occurred()) return NULL;
1347 } Py_INCREF(Py_None);
1348 _resultobj = Py_None;
1349 return _resultobj;
1350 }
1351
1352 #define wxSize_IncTo(_swigobj,_swigarg0) (_swigobj->IncTo(_swigarg0))
1353 static PyObject *_wrap_wxSize_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) {
1354 PyObject * _resultobj;
1355 wxSize * _arg0;
1356 wxSize * _arg1;
1357 wxSize temp;
1358 PyObject * _obj0 = 0;
1359 wxSize temp0;
1360 PyObject * _obj1 = 0;
1361 char *_kwnames[] = { "self","sz", NULL };
1362
1363 self = self;
1364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSize_IncTo",_kwnames,&_obj0,&_obj1))
1365 return NULL;
1366 {
1367 _arg0 = &temp;
1368 if (! wxSize_helper(_obj0, &_arg0))
1369 return NULL;
1370 }
1371 {
1372 _arg1 = &temp0;
1373 if (! wxSize_helper(_obj1, &_arg1))
1374 return NULL;
1375 }
1376 {
1377 PyThreadState* __tstate = wxPyBeginAllowThreads();
1378 wxSize_IncTo(_arg0,*_arg1);
1379
1380 wxPyEndAllowThreads(__tstate);
1381 if (PyErr_Occurred()) return NULL;
1382 } Py_INCREF(Py_None);
1383 _resultobj = Py_None;
1384 return _resultobj;
1385 }
1386
1387 #define wxSize_DecTo(_swigobj,_swigarg0) (_swigobj->DecTo(_swigarg0))
1388 static PyObject *_wrap_wxSize_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) {
1389 PyObject * _resultobj;
1390 wxSize * _arg0;
1391 wxSize * _arg1;
1392 wxSize temp;
1393 PyObject * _obj0 = 0;
1394 wxSize temp0;
1395 PyObject * _obj1 = 0;
1396 char *_kwnames[] = { "self","sz", NULL };
1397
1398 self = self;
1399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSize_DecTo",_kwnames,&_obj0,&_obj1))
1400 return NULL;
1401 {
1402 _arg0 = &temp;
1403 if (! wxSize_helper(_obj0, &_arg0))
1404 return NULL;
1405 }
1406 {
1407 _arg1 = &temp0;
1408 if (! wxSize_helper(_obj1, &_arg1))
1409 return NULL;
1410 }
1411 {
1412 PyThreadState* __tstate = wxPyBeginAllowThreads();
1413 wxSize_DecTo(_arg0,*_arg1);
1414
1415 wxPyEndAllowThreads(__tstate);
1416 if (PyErr_Occurred()) return NULL;
1417 } Py_INCREF(Py_None);
1418 _resultobj = Py_None;
1419 return _resultobj;
1420 }
1421
1422 static PyObject * wxSize_asTuple(wxSize *self) {
1423 wxPyBeginBlockThreads();
1424 PyObject* tup = PyTuple_New(2);
1425 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
1426 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
1427 wxPyEndBlockThreads();
1428 return tup;
1429 }
1430 static PyObject *_wrap_wxSize_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
1431 PyObject * _resultobj;
1432 PyObject * _result;
1433 wxSize * _arg0;
1434 wxSize temp;
1435 PyObject * _obj0 = 0;
1436 char *_kwnames[] = { "self", NULL };
1437
1438 self = self;
1439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSize_asTuple",_kwnames,&_obj0))
1440 return NULL;
1441 {
1442 _arg0 = &temp;
1443 if (! wxSize_helper(_obj0, &_arg0))
1444 return NULL;
1445 }
1446 {
1447 PyThreadState* __tstate = wxPyBeginAllowThreads();
1448 _result = (PyObject *)wxSize_asTuple(_arg0);
1449
1450 wxPyEndAllowThreads(__tstate);
1451 if (PyErr_Occurred()) return NULL;
1452 }{
1453 _resultobj = _result;
1454 }
1455 return _resultobj;
1456 }
1457
1458 static bool wxSize___eq__(wxSize *self,PyObject * obj) {
1459 wxSize tmp;
1460 wxSize* ptr = &tmp;
1461 if (obj == Py_None) return FALSE;
1462 wxPyBLOCK_THREADS(bool success = wxSize_helper(obj, &ptr); PyErr_Clear());
1463 if (! success) return FALSE;
1464 return *self == *ptr;
1465 }
1466 static PyObject *_wrap_wxSize___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1467 PyObject * _resultobj;
1468 bool _result;
1469 wxSize * _arg0;
1470 PyObject * _arg1;
1471 wxSize temp;
1472 PyObject * _obj0 = 0;
1473 PyObject * _obj1 = 0;
1474 char *_kwnames[] = { "self","obj", NULL };
1475
1476 self = self;
1477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSize___eq__",_kwnames,&_obj0,&_obj1))
1478 return NULL;
1479 {
1480 _arg0 = &temp;
1481 if (! wxSize_helper(_obj0, &_arg0))
1482 return NULL;
1483 }
1484 {
1485 _arg1 = _obj1;
1486 }
1487 {
1488 PyThreadState* __tstate = wxPyBeginAllowThreads();
1489 _result = (bool )wxSize___eq__(_arg0,_arg1);
1490
1491 wxPyEndAllowThreads(__tstate);
1492 if (PyErr_Occurred()) return NULL;
1493 } _resultobj = Py_BuildValue("i",_result);
1494 return _resultobj;
1495 }
1496
1497 static bool wxSize___ne__(wxSize *self,PyObject * obj) {
1498 wxSize tmp;
1499 wxSize* ptr = &tmp;
1500 if (obj == Py_None) return TRUE;
1501 wxPyBLOCK_THREADS(bool success = wxSize_helper(obj, &ptr); PyErr_Clear());
1502 if (! success) return TRUE;
1503 return *self != *ptr;
1504 }
1505 static PyObject *_wrap_wxSize___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1506 PyObject * _resultobj;
1507 bool _result;
1508 wxSize * _arg0;
1509 PyObject * _arg1;
1510 wxSize temp;
1511 PyObject * _obj0 = 0;
1512 PyObject * _obj1 = 0;
1513 char *_kwnames[] = { "self","obj", NULL };
1514
1515 self = self;
1516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSize___ne__",_kwnames,&_obj0,&_obj1))
1517 return NULL;
1518 {
1519 _arg0 = &temp;
1520 if (! wxSize_helper(_obj0, &_arg0))
1521 return NULL;
1522 }
1523 {
1524 _arg1 = _obj1;
1525 }
1526 {
1527 PyThreadState* __tstate = wxPyBeginAllowThreads();
1528 _result = (bool )wxSize___ne__(_arg0,_arg1);
1529
1530 wxPyEndAllowThreads(__tstate);
1531 if (PyErr_Occurred()) return NULL;
1532 } _resultobj = Py_BuildValue("i",_result);
1533 return _resultobj;
1534 }
1535
1536 #define wxRealPoint_x_set(_swigobj,_swigval) (_swigobj->x = _swigval,_swigval)
1537 static PyObject *_wrap_wxRealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1538 PyObject * _resultobj;
1539 double _result;
1540 wxRealPoint * _arg0;
1541 double _arg1;
1542 wxRealPoint temp;
1543 PyObject * _obj0 = 0;
1544 char *_kwnames[] = { "self","x", NULL };
1545
1546 self = self;
1547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxRealPoint_x_set",_kwnames,&_obj0,&_arg1))
1548 return NULL;
1549 {
1550 _arg0 = &temp;
1551 if (! wxRealPoint_helper(_obj0, &_arg0))
1552 return NULL;
1553 }
1554 {
1555 PyThreadState* __tstate = wxPyBeginAllowThreads();
1556 _result = (double )wxRealPoint_x_set(_arg0,_arg1);
1557
1558 wxPyEndAllowThreads(__tstate);
1559 if (PyErr_Occurred()) return NULL;
1560 } _resultobj = Py_BuildValue("d",_result);
1561 return _resultobj;
1562 }
1563
1564 #define wxRealPoint_x_get(_swigobj) ((double ) _swigobj->x)
1565 static PyObject *_wrap_wxRealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1566 PyObject * _resultobj;
1567 double _result;
1568 wxRealPoint * _arg0;
1569 wxRealPoint temp;
1570 PyObject * _obj0 = 0;
1571 char *_kwnames[] = { "self", NULL };
1572
1573 self = self;
1574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRealPoint_x_get",_kwnames,&_obj0))
1575 return NULL;
1576 {
1577 _arg0 = &temp;
1578 if (! wxRealPoint_helper(_obj0, &_arg0))
1579 return NULL;
1580 }
1581 {
1582 PyThreadState* __tstate = wxPyBeginAllowThreads();
1583 _result = (double )wxRealPoint_x_get(_arg0);
1584
1585 wxPyEndAllowThreads(__tstate);
1586 if (PyErr_Occurred()) return NULL;
1587 } _resultobj = Py_BuildValue("d",_result);
1588 return _resultobj;
1589 }
1590
1591 #define wxRealPoint_y_set(_swigobj,_swigval) (_swigobj->y = _swigval,_swigval)
1592 static PyObject *_wrap_wxRealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1593 PyObject * _resultobj;
1594 double _result;
1595 wxRealPoint * _arg0;
1596 double _arg1;
1597 wxRealPoint temp;
1598 PyObject * _obj0 = 0;
1599 char *_kwnames[] = { "self","y", NULL };
1600
1601 self = self;
1602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxRealPoint_y_set",_kwnames,&_obj0,&_arg1))
1603 return NULL;
1604 {
1605 _arg0 = &temp;
1606 if (! wxRealPoint_helper(_obj0, &_arg0))
1607 return NULL;
1608 }
1609 {
1610 PyThreadState* __tstate = wxPyBeginAllowThreads();
1611 _result = (double )wxRealPoint_y_set(_arg0,_arg1);
1612
1613 wxPyEndAllowThreads(__tstate);
1614 if (PyErr_Occurred()) return NULL;
1615 } _resultobj = Py_BuildValue("d",_result);
1616 return _resultobj;
1617 }
1618
1619 #define wxRealPoint_y_get(_swigobj) ((double ) _swigobj->y)
1620 static PyObject *_wrap_wxRealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1621 PyObject * _resultobj;
1622 double _result;
1623 wxRealPoint * _arg0;
1624 wxRealPoint temp;
1625 PyObject * _obj0 = 0;
1626 char *_kwnames[] = { "self", NULL };
1627
1628 self = self;
1629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRealPoint_y_get",_kwnames,&_obj0))
1630 return NULL;
1631 {
1632 _arg0 = &temp;
1633 if (! wxRealPoint_helper(_obj0, &_arg0))
1634 return NULL;
1635 }
1636 {
1637 PyThreadState* __tstate = wxPyBeginAllowThreads();
1638 _result = (double )wxRealPoint_y_get(_arg0);
1639
1640 wxPyEndAllowThreads(__tstate);
1641 if (PyErr_Occurred()) return NULL;
1642 } _resultobj = Py_BuildValue("d",_result);
1643 return _resultobj;
1644 }
1645
1646 #define new_wxRealPoint(_swigarg0,_swigarg1) (new wxRealPoint(_swigarg0,_swigarg1))
1647 static PyObject *_wrap_new_wxRealPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
1648 PyObject * _resultobj;
1649 wxRealPoint * _result;
1650 double _arg0 = (double ) 0.0;
1651 double _arg1 = (double ) 0.0;
1652 char *_kwnames[] = { "x","y", NULL };
1653 char _ptemp[128];
1654
1655 self = self;
1656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|dd:new_wxRealPoint",_kwnames,&_arg0,&_arg1))
1657 return NULL;
1658 {
1659 PyThreadState* __tstate = wxPyBeginAllowThreads();
1660 _result = (wxRealPoint *)new_wxRealPoint(_arg0,_arg1);
1661
1662 wxPyEndAllowThreads(__tstate);
1663 if (PyErr_Occurred()) return NULL;
1664 } if (_result) {
1665 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRealPoint_p");
1666 _resultobj = Py_BuildValue("s",_ptemp);
1667 } else {
1668 Py_INCREF(Py_None);
1669 _resultobj = Py_None;
1670 }
1671 return _resultobj;
1672 }
1673
1674 #define delete_wxRealPoint(_swigobj) (delete _swigobj)
1675 static PyObject *_wrap_delete_wxRealPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
1676 PyObject * _resultobj;
1677 wxRealPoint * _arg0;
1678 wxRealPoint temp;
1679 PyObject * _obj0 = 0;
1680 char *_kwnames[] = { "self", NULL };
1681
1682 self = self;
1683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRealPoint",_kwnames,&_obj0))
1684 return NULL;
1685 {
1686 _arg0 = &temp;
1687 if (! wxRealPoint_helper(_obj0, &_arg0))
1688 return NULL;
1689 }
1690 {
1691 PyThreadState* __tstate = wxPyBeginAllowThreads();
1692 delete_wxRealPoint(_arg0);
1693
1694 wxPyEndAllowThreads(__tstate);
1695 if (PyErr_Occurred()) return NULL;
1696 } Py_INCREF(Py_None);
1697 _resultobj = Py_None;
1698 return _resultobj;
1699 }
1700
1701 static void wxRealPoint_Set(wxRealPoint *self,double x,double y) {
1702 self->x = x;
1703 self->y = y;
1704 }
1705 static PyObject *_wrap_wxRealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1706 PyObject * _resultobj;
1707 wxRealPoint * _arg0;
1708 double _arg1;
1709 double _arg2;
1710 wxRealPoint temp;
1711 PyObject * _obj0 = 0;
1712 char *_kwnames[] = { "self","x","y", NULL };
1713
1714 self = self;
1715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxRealPoint_Set",_kwnames,&_obj0,&_arg1,&_arg2))
1716 return NULL;
1717 {
1718 _arg0 = &temp;
1719 if (! wxRealPoint_helper(_obj0, &_arg0))
1720 return NULL;
1721 }
1722 {
1723 PyThreadState* __tstate = wxPyBeginAllowThreads();
1724 wxRealPoint_Set(_arg0,_arg1,_arg2);
1725
1726 wxPyEndAllowThreads(__tstate);
1727 if (PyErr_Occurred()) return NULL;
1728 } Py_INCREF(Py_None);
1729 _resultobj = Py_None;
1730 return _resultobj;
1731 }
1732
1733 static PyObject * wxRealPoint_asTuple(wxRealPoint *self) {
1734 wxPyBeginBlockThreads();
1735 PyObject* tup = PyTuple_New(2);
1736 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x));
1737 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y));
1738 wxPyEndBlockThreads();
1739 return tup;
1740 }
1741 static PyObject *_wrap_wxRealPoint_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
1742 PyObject * _resultobj;
1743 PyObject * _result;
1744 wxRealPoint * _arg0;
1745 wxRealPoint temp;
1746 PyObject * _obj0 = 0;
1747 char *_kwnames[] = { "self", NULL };
1748
1749 self = self;
1750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRealPoint_asTuple",_kwnames,&_obj0))
1751 return NULL;
1752 {
1753 _arg0 = &temp;
1754 if (! wxRealPoint_helper(_obj0, &_arg0))
1755 return NULL;
1756 }
1757 {
1758 PyThreadState* __tstate = wxPyBeginAllowThreads();
1759 _result = (PyObject *)wxRealPoint_asTuple(_arg0);
1760
1761 wxPyEndAllowThreads(__tstate);
1762 if (PyErr_Occurred()) return NULL;
1763 }{
1764 _resultobj = _result;
1765 }
1766 return _resultobj;
1767 }
1768
1769 static wxRealPoint wxRealPoint___add__(wxRealPoint *self,const wxRealPoint & p) {
1770 return *self + p;
1771 }
1772 static PyObject *_wrap_wxRealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
1773 PyObject * _resultobj;
1774 wxRealPoint * _result;
1775 wxRealPoint * _arg0;
1776 wxRealPoint * _arg1;
1777 wxRealPoint temp;
1778 PyObject * _obj0 = 0;
1779 wxRealPoint temp0;
1780 PyObject * _obj1 = 0;
1781 char *_kwnames[] = { "self","p", NULL };
1782 char _ptemp[128];
1783
1784 self = self;
1785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRealPoint___add__",_kwnames,&_obj0,&_obj1))
1786 return NULL;
1787 {
1788 _arg0 = &temp;
1789 if (! wxRealPoint_helper(_obj0, &_arg0))
1790 return NULL;
1791 }
1792 {
1793 _arg1 = &temp0;
1794 if (! wxRealPoint_helper(_obj1, &_arg1))
1795 return NULL;
1796 }
1797 {
1798 PyThreadState* __tstate = wxPyBeginAllowThreads();
1799 _result = new wxRealPoint (wxRealPoint___add__(_arg0,*_arg1));
1800
1801 wxPyEndAllowThreads(__tstate);
1802 if (PyErr_Occurred()) return NULL;
1803 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRealPoint_p");
1804 _resultobj = Py_BuildValue("s",_ptemp);
1805 return _resultobj;
1806 }
1807
1808 static wxRealPoint wxRealPoint___sub__(wxRealPoint *self,const wxRealPoint & p) {
1809 return *self - p;
1810 }
1811 static PyObject *_wrap_wxRealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
1812 PyObject * _resultobj;
1813 wxRealPoint * _result;
1814 wxRealPoint * _arg0;
1815 wxRealPoint * _arg1;
1816 wxRealPoint temp;
1817 PyObject * _obj0 = 0;
1818 wxRealPoint temp0;
1819 PyObject * _obj1 = 0;
1820 char *_kwnames[] = { "self","p", NULL };
1821 char _ptemp[128];
1822
1823 self = self;
1824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRealPoint___sub__",_kwnames,&_obj0,&_obj1))
1825 return NULL;
1826 {
1827 _arg0 = &temp;
1828 if (! wxRealPoint_helper(_obj0, &_arg0))
1829 return NULL;
1830 }
1831 {
1832 _arg1 = &temp0;
1833 if (! wxRealPoint_helper(_obj1, &_arg1))
1834 return NULL;
1835 }
1836 {
1837 PyThreadState* __tstate = wxPyBeginAllowThreads();
1838 _result = new wxRealPoint (wxRealPoint___sub__(_arg0,*_arg1));
1839
1840 wxPyEndAllowThreads(__tstate);
1841 if (PyErr_Occurred()) return NULL;
1842 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRealPoint_p");
1843 _resultobj = Py_BuildValue("s",_ptemp);
1844 return _resultobj;
1845 }
1846
1847 static bool wxRealPoint___eq__(wxRealPoint *self,PyObject * obj) {
1848 wxRealPoint tmp;
1849 wxRealPoint* ptr = &tmp;
1850 if (obj == Py_None) return FALSE;
1851 wxPyBLOCK_THREADS(bool success = wxRealPoint_helper(obj, &ptr); PyErr_Clear());
1852 if (! success) return FALSE;
1853 return *self == *ptr;
1854 }
1855 static PyObject *_wrap_wxRealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1856 PyObject * _resultobj;
1857 bool _result;
1858 wxRealPoint * _arg0;
1859 PyObject * _arg1;
1860 wxRealPoint temp;
1861 PyObject * _obj0 = 0;
1862 PyObject * _obj1 = 0;
1863 char *_kwnames[] = { "self","obj", NULL };
1864
1865 self = self;
1866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRealPoint___eq__",_kwnames,&_obj0,&_obj1))
1867 return NULL;
1868 {
1869 _arg0 = &temp;
1870 if (! wxRealPoint_helper(_obj0, &_arg0))
1871 return NULL;
1872 }
1873 {
1874 _arg1 = _obj1;
1875 }
1876 {
1877 PyThreadState* __tstate = wxPyBeginAllowThreads();
1878 _result = (bool )wxRealPoint___eq__(_arg0,_arg1);
1879
1880 wxPyEndAllowThreads(__tstate);
1881 if (PyErr_Occurred()) return NULL;
1882 } _resultobj = Py_BuildValue("i",_result);
1883 return _resultobj;
1884 }
1885
1886 static bool wxRealPoint___ne__(wxRealPoint *self,PyObject * obj) {
1887 wxRealPoint tmp;
1888 wxRealPoint* ptr = &tmp;
1889 if (obj == Py_None) return TRUE;
1890 wxPyBLOCK_THREADS(bool success = wxRealPoint_helper(obj, &ptr); PyErr_Clear());
1891 if (! success) return TRUE;
1892 return *self != *ptr;
1893 }
1894 static PyObject *_wrap_wxRealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1895 PyObject * _resultobj;
1896 bool _result;
1897 wxRealPoint * _arg0;
1898 PyObject * _arg1;
1899 wxRealPoint temp;
1900 PyObject * _obj0 = 0;
1901 PyObject * _obj1 = 0;
1902 char *_kwnames[] = { "self","obj", NULL };
1903
1904 self = self;
1905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRealPoint___ne__",_kwnames,&_obj0,&_obj1))
1906 return NULL;
1907 {
1908 _arg0 = &temp;
1909 if (! wxRealPoint_helper(_obj0, &_arg0))
1910 return NULL;
1911 }
1912 {
1913 _arg1 = _obj1;
1914 }
1915 {
1916 PyThreadState* __tstate = wxPyBeginAllowThreads();
1917 _result = (bool )wxRealPoint___ne__(_arg0,_arg1);
1918
1919 wxPyEndAllowThreads(__tstate);
1920 if (PyErr_Occurred()) return NULL;
1921 } _resultobj = Py_BuildValue("i",_result);
1922 return _resultobj;
1923 }
1924
1925 #define wxPoint_x_set(_swigobj,_swigval) (_swigobj->x = _swigval,_swigval)
1926 static PyObject *_wrap_wxPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1927 PyObject * _resultobj;
1928 long _result;
1929 wxPoint * _arg0;
1930 long _arg1;
1931 wxPoint temp;
1932 PyObject * _obj0 = 0;
1933 char *_kwnames[] = { "self","x", NULL };
1934
1935 self = self;
1936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxPoint_x_set",_kwnames,&_obj0,&_arg1))
1937 return NULL;
1938 {
1939 _arg0 = &temp;
1940 if (! wxPoint_helper(_obj0, &_arg0))
1941 return NULL;
1942 }
1943 {
1944 PyThreadState* __tstate = wxPyBeginAllowThreads();
1945 _result = (long )wxPoint_x_set(_arg0,_arg1);
1946
1947 wxPyEndAllowThreads(__tstate);
1948 if (PyErr_Occurred()) return NULL;
1949 } _resultobj = Py_BuildValue("l",_result);
1950 return _resultobj;
1951 }
1952
1953 #define wxPoint_x_get(_swigobj) ((long ) _swigobj->x)
1954 static PyObject *_wrap_wxPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1955 PyObject * _resultobj;
1956 long _result;
1957 wxPoint * _arg0;
1958 wxPoint temp;
1959 PyObject * _obj0 = 0;
1960 char *_kwnames[] = { "self", NULL };
1961
1962 self = self;
1963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint_x_get",_kwnames,&_obj0))
1964 return NULL;
1965 {
1966 _arg0 = &temp;
1967 if (! wxPoint_helper(_obj0, &_arg0))
1968 return NULL;
1969 }
1970 {
1971 PyThreadState* __tstate = wxPyBeginAllowThreads();
1972 _result = (long )wxPoint_x_get(_arg0);
1973
1974 wxPyEndAllowThreads(__tstate);
1975 if (PyErr_Occurred()) return NULL;
1976 } _resultobj = Py_BuildValue("l",_result);
1977 return _resultobj;
1978 }
1979
1980 #define wxPoint_y_set(_swigobj,_swigval) (_swigobj->y = _swigval,_swigval)
1981 static PyObject *_wrap_wxPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1982 PyObject * _resultobj;
1983 long _result;
1984 wxPoint * _arg0;
1985 long _arg1;
1986 wxPoint temp;
1987 PyObject * _obj0 = 0;
1988 char *_kwnames[] = { "self","y", NULL };
1989
1990 self = self;
1991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxPoint_y_set",_kwnames,&_obj0,&_arg1))
1992 return NULL;
1993 {
1994 _arg0 = &temp;
1995 if (! wxPoint_helper(_obj0, &_arg0))
1996 return NULL;
1997 }
1998 {
1999 PyThreadState* __tstate = wxPyBeginAllowThreads();
2000 _result = (long )wxPoint_y_set(_arg0,_arg1);
2001
2002 wxPyEndAllowThreads(__tstate);
2003 if (PyErr_Occurred()) return NULL;
2004 } _resultobj = Py_BuildValue("l",_result);
2005 return _resultobj;
2006 }
2007
2008 #define wxPoint_y_get(_swigobj) ((long ) _swigobj->y)
2009 static PyObject *_wrap_wxPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2010 PyObject * _resultobj;
2011 long _result;
2012 wxPoint * _arg0;
2013 wxPoint temp;
2014 PyObject * _obj0 = 0;
2015 char *_kwnames[] = { "self", NULL };
2016
2017 self = self;
2018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint_y_get",_kwnames,&_obj0))
2019 return NULL;
2020 {
2021 _arg0 = &temp;
2022 if (! wxPoint_helper(_obj0, &_arg0))
2023 return NULL;
2024 }
2025 {
2026 PyThreadState* __tstate = wxPyBeginAllowThreads();
2027 _result = (long )wxPoint_y_get(_arg0);
2028
2029 wxPyEndAllowThreads(__tstate);
2030 if (PyErr_Occurred()) return NULL;
2031 } _resultobj = Py_BuildValue("l",_result);
2032 return _resultobj;
2033 }
2034
2035 #define new_wxPoint(_swigarg0,_swigarg1) (new wxPoint(_swigarg0,_swigarg1))
2036 static PyObject *_wrap_new_wxPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
2037 PyObject * _resultobj;
2038 wxPoint * _result;
2039 long _arg0 = (long ) 0;
2040 long _arg1 = (long ) 0;
2041 char *_kwnames[] = { "x","y", NULL };
2042 char _ptemp[128];
2043
2044 self = self;
2045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ll:new_wxPoint",_kwnames,&_arg0,&_arg1))
2046 return NULL;
2047 {
2048 PyThreadState* __tstate = wxPyBeginAllowThreads();
2049 _result = (wxPoint *)new_wxPoint(_arg0,_arg1);
2050
2051 wxPyEndAllowThreads(__tstate);
2052 if (PyErr_Occurred()) return NULL;
2053 } if (_result) {
2054 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
2055 _resultobj = Py_BuildValue("s",_ptemp);
2056 } else {
2057 Py_INCREF(Py_None);
2058 _resultobj = Py_None;
2059 }
2060 return _resultobj;
2061 }
2062
2063 #define delete_wxPoint(_swigobj) (delete _swigobj)
2064 static PyObject *_wrap_delete_wxPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
2065 PyObject * _resultobj;
2066 wxPoint * _arg0;
2067 wxPoint temp;
2068 PyObject * _obj0 = 0;
2069 char *_kwnames[] = { "self", NULL };
2070
2071 self = self;
2072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPoint",_kwnames,&_obj0))
2073 return NULL;
2074 {
2075 _arg0 = &temp;
2076 if (! wxPoint_helper(_obj0, &_arg0))
2077 return NULL;
2078 }
2079 {
2080 PyThreadState* __tstate = wxPyBeginAllowThreads();
2081 delete_wxPoint(_arg0);
2082
2083 wxPyEndAllowThreads(__tstate);
2084 if (PyErr_Occurred()) return NULL;
2085 } Py_INCREF(Py_None);
2086 _resultobj = Py_None;
2087 return _resultobj;
2088 }
2089
2090 static void wxPoint_Set(wxPoint *self,long x,long y) {
2091 self->x = x;
2092 self->y = y;
2093 }
2094 static PyObject *_wrap_wxPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
2095 PyObject * _resultobj;
2096 wxPoint * _arg0;
2097 long _arg1;
2098 long _arg2;
2099 wxPoint temp;
2100 PyObject * _obj0 = 0;
2101 char *_kwnames[] = { "self","x","y", NULL };
2102
2103 self = self;
2104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxPoint_Set",_kwnames,&_obj0,&_arg1,&_arg2))
2105 return NULL;
2106 {
2107 _arg0 = &temp;
2108 if (! wxPoint_helper(_obj0, &_arg0))
2109 return NULL;
2110 }
2111 {
2112 PyThreadState* __tstate = wxPyBeginAllowThreads();
2113 wxPoint_Set(_arg0,_arg1,_arg2);
2114
2115 wxPyEndAllowThreads(__tstate);
2116 if (PyErr_Occurred()) return NULL;
2117 } Py_INCREF(Py_None);
2118 _resultobj = Py_None;
2119 return _resultobj;
2120 }
2121
2122 static PyObject * wxPoint_asTuple(wxPoint *self) {
2123 wxPyBeginBlockThreads();
2124 PyObject* tup = PyTuple_New(2);
2125 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
2126 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
2127 wxPyEndBlockThreads();
2128 return tup;
2129 }
2130 static PyObject *_wrap_wxPoint_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
2131 PyObject * _resultobj;
2132 PyObject * _result;
2133 wxPoint * _arg0;
2134 wxPoint temp;
2135 PyObject * _obj0 = 0;
2136 char *_kwnames[] = { "self", NULL };
2137
2138 self = self;
2139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint_asTuple",_kwnames,&_obj0))
2140 return NULL;
2141 {
2142 _arg0 = &temp;
2143 if (! wxPoint_helper(_obj0, &_arg0))
2144 return NULL;
2145 }
2146 {
2147 PyThreadState* __tstate = wxPyBeginAllowThreads();
2148 _result = (PyObject *)wxPoint_asTuple(_arg0);
2149
2150 wxPyEndAllowThreads(__tstate);
2151 if (PyErr_Occurred()) return NULL;
2152 }{
2153 _resultobj = _result;
2154 }
2155 return _resultobj;
2156 }
2157
2158 static wxPoint wxPoint___add__(wxPoint *self,const wxPoint & p) {
2159 return *self + p;
2160 }
2161 static PyObject *_wrap_wxPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
2162 PyObject * _resultobj;
2163 wxPoint * _result;
2164 wxPoint * _arg0;
2165 wxPoint * _arg1;
2166 wxPoint temp;
2167 PyObject * _obj0 = 0;
2168 wxPoint temp0;
2169 PyObject * _obj1 = 0;
2170 char *_kwnames[] = { "self","p", NULL };
2171 char _ptemp[128];
2172
2173 self = self;
2174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint___add__",_kwnames,&_obj0,&_obj1))
2175 return NULL;
2176 {
2177 _arg0 = &temp;
2178 if (! wxPoint_helper(_obj0, &_arg0))
2179 return NULL;
2180 }
2181 {
2182 _arg1 = &temp0;
2183 if (! wxPoint_helper(_obj1, &_arg1))
2184 return NULL;
2185 }
2186 {
2187 PyThreadState* __tstate = wxPyBeginAllowThreads();
2188 _result = new wxPoint (wxPoint___add__(_arg0,*_arg1));
2189
2190 wxPyEndAllowThreads(__tstate);
2191 if (PyErr_Occurred()) return NULL;
2192 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2193 _resultobj = Py_BuildValue("s",_ptemp);
2194 return _resultobj;
2195 }
2196
2197 static wxPoint wxPoint___sub__(wxPoint *self,const wxPoint & p) {
2198 return *self - p;
2199 }
2200 static PyObject *_wrap_wxPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
2201 PyObject * _resultobj;
2202 wxPoint * _result;
2203 wxPoint * _arg0;
2204 wxPoint * _arg1;
2205 wxPoint temp;
2206 PyObject * _obj0 = 0;
2207 wxPoint temp0;
2208 PyObject * _obj1 = 0;
2209 char *_kwnames[] = { "self","p", NULL };
2210 char _ptemp[128];
2211
2212 self = self;
2213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint___sub__",_kwnames,&_obj0,&_obj1))
2214 return NULL;
2215 {
2216 _arg0 = &temp;
2217 if (! wxPoint_helper(_obj0, &_arg0))
2218 return NULL;
2219 }
2220 {
2221 _arg1 = &temp0;
2222 if (! wxPoint_helper(_obj1, &_arg1))
2223 return NULL;
2224 }
2225 {
2226 PyThreadState* __tstate = wxPyBeginAllowThreads();
2227 _result = new wxPoint (wxPoint___sub__(_arg0,*_arg1));
2228
2229 wxPyEndAllowThreads(__tstate);
2230 if (PyErr_Occurred()) return NULL;
2231 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2232 _resultobj = Py_BuildValue("s",_ptemp);
2233 return _resultobj;
2234 }
2235
2236 static bool wxPoint___eq__(wxPoint *self,PyObject * obj) {
2237 wxPoint tmp;
2238 wxPoint* ptr = &tmp;
2239 if (obj == Py_None) return FALSE;
2240 wxPyBLOCK_THREADS(bool success = wxPoint_helper(obj, &ptr); PyErr_Clear());
2241 if (! success) return FALSE;
2242 return *self == *ptr;
2243 }
2244 static PyObject *_wrap_wxPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2245 PyObject * _resultobj;
2246 bool _result;
2247 wxPoint * _arg0;
2248 PyObject * _arg1;
2249 wxPoint temp;
2250 PyObject * _obj0 = 0;
2251 PyObject * _obj1 = 0;
2252 char *_kwnames[] = { "self","obj", NULL };
2253
2254 self = self;
2255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint___eq__",_kwnames,&_obj0,&_obj1))
2256 return NULL;
2257 {
2258 _arg0 = &temp;
2259 if (! wxPoint_helper(_obj0, &_arg0))
2260 return NULL;
2261 }
2262 {
2263 _arg1 = _obj1;
2264 }
2265 {
2266 PyThreadState* __tstate = wxPyBeginAllowThreads();
2267 _result = (bool )wxPoint___eq__(_arg0,_arg1);
2268
2269 wxPyEndAllowThreads(__tstate);
2270 if (PyErr_Occurred()) return NULL;
2271 } _resultobj = Py_BuildValue("i",_result);
2272 return _resultobj;
2273 }
2274
2275 static bool wxPoint___ne__(wxPoint *self,PyObject * obj) {
2276 wxPoint tmp;
2277 wxPoint* ptr = &tmp;
2278 if (obj == Py_None) return TRUE;
2279 wxPyBLOCK_THREADS(bool success = wxPoint_helper(obj, &ptr); PyErr_Clear());
2280 if (! success) return TRUE;
2281 return *self != *ptr;
2282 }
2283 static PyObject *_wrap_wxPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2284 PyObject * _resultobj;
2285 bool _result;
2286 wxPoint * _arg0;
2287 PyObject * _arg1;
2288 wxPoint temp;
2289 PyObject * _obj0 = 0;
2290 PyObject * _obj1 = 0;
2291 char *_kwnames[] = { "self","obj", NULL };
2292
2293 self = self;
2294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint___ne__",_kwnames,&_obj0,&_obj1))
2295 return NULL;
2296 {
2297 _arg0 = &temp;
2298 if (! wxPoint_helper(_obj0, &_arg0))
2299 return NULL;
2300 }
2301 {
2302 _arg1 = _obj1;
2303 }
2304 {
2305 PyThreadState* __tstate = wxPyBeginAllowThreads();
2306 _result = (bool )wxPoint___ne__(_arg0,_arg1);
2307
2308 wxPyEndAllowThreads(__tstate);
2309 if (PyErr_Occurred()) return NULL;
2310 } _resultobj = Py_BuildValue("i",_result);
2311 return _resultobj;
2312 }
2313
2314 #define new_wxRect(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2315 static PyObject *_wrap_new_wxRect(PyObject *self, PyObject *args, PyObject *kwargs) {
2316 PyObject * _resultobj;
2317 wxRect * _result;
2318 int _arg0 = (int ) 0;
2319 int _arg1 = (int ) 0;
2320 int _arg2 = (int ) 0;
2321 int _arg3 = (int ) 0;
2322 char *_kwnames[] = { "x","y","width","height", NULL };
2323 char _ptemp[128];
2324
2325 self = self;
2326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiii:new_wxRect",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
2327 return NULL;
2328 {
2329 PyThreadState* __tstate = wxPyBeginAllowThreads();
2330 _result = (wxRect *)new_wxRect(_arg0,_arg1,_arg2,_arg3);
2331
2332 wxPyEndAllowThreads(__tstate);
2333 if (PyErr_Occurred()) return NULL;
2334 } if (_result) {
2335 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p");
2336 _resultobj = Py_BuildValue("s",_ptemp);
2337 } else {
2338 Py_INCREF(Py_None);
2339 _resultobj = Py_None;
2340 }
2341 return _resultobj;
2342 }
2343
2344 #define delete_wxRect(_swigobj) (delete _swigobj)
2345 static PyObject *_wrap_delete_wxRect(PyObject *self, PyObject *args, PyObject *kwargs) {
2346 PyObject * _resultobj;
2347 wxRect * _arg0;
2348 wxRect temp;
2349 PyObject * _obj0 = 0;
2350 char *_kwnames[] = { "self", NULL };
2351
2352 self = self;
2353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRect",_kwnames,&_obj0))
2354 return NULL;
2355 {
2356 _arg0 = &temp;
2357 if (! wxRect_helper(_obj0, &_arg0))
2358 return NULL;
2359 }
2360 {
2361 PyThreadState* __tstate = wxPyBeginAllowThreads();
2362 delete_wxRect(_arg0);
2363
2364 wxPyEndAllowThreads(__tstate);
2365 if (PyErr_Occurred()) return NULL;
2366 } Py_INCREF(Py_None);
2367 _resultobj = Py_None;
2368 return _resultobj;
2369 }
2370
2371 #define wxRect_GetX(_swigobj) (_swigobj->GetX())
2372 static PyObject *_wrap_wxRect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
2373 PyObject * _resultobj;
2374 int _result;
2375 wxRect * _arg0;
2376 wxRect temp;
2377 PyObject * _obj0 = 0;
2378 char *_kwnames[] = { "self", NULL };
2379
2380 self = self;
2381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetX",_kwnames,&_obj0))
2382 return NULL;
2383 {
2384 _arg0 = &temp;
2385 if (! wxRect_helper(_obj0, &_arg0))
2386 return NULL;
2387 }
2388 {
2389 PyThreadState* __tstate = wxPyBeginAllowThreads();
2390 _result = (int )wxRect_GetX(_arg0);
2391
2392 wxPyEndAllowThreads(__tstate);
2393 if (PyErr_Occurred()) return NULL;
2394 } _resultobj = Py_BuildValue("i",_result);
2395 return _resultobj;
2396 }
2397
2398 #define wxRect_SetX(_swigobj,_swigarg0) (_swigobj->SetX(_swigarg0))
2399 static PyObject *_wrap_wxRect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) {
2400 PyObject * _resultobj;
2401 wxRect * _arg0;
2402 int _arg1;
2403 wxRect temp;
2404 PyObject * _obj0 = 0;
2405 char *_kwnames[] = { "self","X", NULL };
2406
2407 self = self;
2408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetX",_kwnames,&_obj0,&_arg1))
2409 return NULL;
2410 {
2411 _arg0 = &temp;
2412 if (! wxRect_helper(_obj0, &_arg0))
2413 return NULL;
2414 }
2415 {
2416 PyThreadState* __tstate = wxPyBeginAllowThreads();
2417 wxRect_SetX(_arg0,_arg1);
2418
2419 wxPyEndAllowThreads(__tstate);
2420 if (PyErr_Occurred()) return NULL;
2421 } Py_INCREF(Py_None);
2422 _resultobj = Py_None;
2423 return _resultobj;
2424 }
2425
2426 #define wxRect_GetY(_swigobj) (_swigobj->GetY())
2427 static PyObject *_wrap_wxRect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
2428 PyObject * _resultobj;
2429 int _result;
2430 wxRect * _arg0;
2431 wxRect temp;
2432 PyObject * _obj0 = 0;
2433 char *_kwnames[] = { "self", NULL };
2434
2435 self = self;
2436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetY",_kwnames,&_obj0))
2437 return NULL;
2438 {
2439 _arg0 = &temp;
2440 if (! wxRect_helper(_obj0, &_arg0))
2441 return NULL;
2442 }
2443 {
2444 PyThreadState* __tstate = wxPyBeginAllowThreads();
2445 _result = (int )wxRect_GetY(_arg0);
2446
2447 wxPyEndAllowThreads(__tstate);
2448 if (PyErr_Occurred()) return NULL;
2449 } _resultobj = Py_BuildValue("i",_result);
2450 return _resultobj;
2451 }
2452
2453 #define wxRect_SetY(_swigobj,_swigarg0) (_swigobj->SetY(_swigarg0))
2454 static PyObject *_wrap_wxRect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) {
2455 PyObject * _resultobj;
2456 wxRect * _arg0;
2457 int _arg1;
2458 wxRect temp;
2459 PyObject * _obj0 = 0;
2460 char *_kwnames[] = { "self","Y", NULL };
2461
2462 self = self;
2463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetY",_kwnames,&_obj0,&_arg1))
2464 return NULL;
2465 {
2466 _arg0 = &temp;
2467 if (! wxRect_helper(_obj0, &_arg0))
2468 return NULL;
2469 }
2470 {
2471 PyThreadState* __tstate = wxPyBeginAllowThreads();
2472 wxRect_SetY(_arg0,_arg1);
2473
2474 wxPyEndAllowThreads(__tstate);
2475 if (PyErr_Occurred()) return NULL;
2476 } Py_INCREF(Py_None);
2477 _resultobj = Py_None;
2478 return _resultobj;
2479 }
2480
2481 #define wxRect_GetWidth(_swigobj) (_swigobj->GetWidth())
2482 static PyObject *_wrap_wxRect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2483 PyObject * _resultobj;
2484 int _result;
2485 wxRect * _arg0;
2486 wxRect temp;
2487 PyObject * _obj0 = 0;
2488 char *_kwnames[] = { "self", NULL };
2489
2490 self = self;
2491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetWidth",_kwnames,&_obj0))
2492 return NULL;
2493 {
2494 _arg0 = &temp;
2495 if (! wxRect_helper(_obj0, &_arg0))
2496 return NULL;
2497 }
2498 {
2499 PyThreadState* __tstate = wxPyBeginAllowThreads();
2500 _result = (int )wxRect_GetWidth(_arg0);
2501
2502 wxPyEndAllowThreads(__tstate);
2503 if (PyErr_Occurred()) return NULL;
2504 } _resultobj = Py_BuildValue("i",_result);
2505 return _resultobj;
2506 }
2507
2508 #define wxRect_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2509 static PyObject *_wrap_wxRect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2510 PyObject * _resultobj;
2511 wxRect * _arg0;
2512 int _arg1;
2513 wxRect temp;
2514 PyObject * _obj0 = 0;
2515 char *_kwnames[] = { "self","w", NULL };
2516
2517 self = self;
2518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetWidth",_kwnames,&_obj0,&_arg1))
2519 return NULL;
2520 {
2521 _arg0 = &temp;
2522 if (! wxRect_helper(_obj0, &_arg0))
2523 return NULL;
2524 }
2525 {
2526 PyThreadState* __tstate = wxPyBeginAllowThreads();
2527 wxRect_SetWidth(_arg0,_arg1);
2528
2529 wxPyEndAllowThreads(__tstate);
2530 if (PyErr_Occurred()) return NULL;
2531 } Py_INCREF(Py_None);
2532 _resultobj = Py_None;
2533 return _resultobj;
2534 }
2535
2536 #define wxRect_GetHeight(_swigobj) (_swigobj->GetHeight())
2537 static PyObject *_wrap_wxRect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2538 PyObject * _resultobj;
2539 int _result;
2540 wxRect * _arg0;
2541 wxRect temp;
2542 PyObject * _obj0 = 0;
2543 char *_kwnames[] = { "self", NULL };
2544
2545 self = self;
2546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetHeight",_kwnames,&_obj0))
2547 return NULL;
2548 {
2549 _arg0 = &temp;
2550 if (! wxRect_helper(_obj0, &_arg0))
2551 return NULL;
2552 }
2553 {
2554 PyThreadState* __tstate = wxPyBeginAllowThreads();
2555 _result = (int )wxRect_GetHeight(_arg0);
2556
2557 wxPyEndAllowThreads(__tstate);
2558 if (PyErr_Occurred()) return NULL;
2559 } _resultobj = Py_BuildValue("i",_result);
2560 return _resultobj;
2561 }
2562
2563 #define wxRect_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2564 static PyObject *_wrap_wxRect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2565 PyObject * _resultobj;
2566 wxRect * _arg0;
2567 int _arg1;
2568 wxRect temp;
2569 PyObject * _obj0 = 0;
2570 char *_kwnames[] = { "self","h", NULL };
2571
2572 self = self;
2573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetHeight",_kwnames,&_obj0,&_arg1))
2574 return NULL;
2575 {
2576 _arg0 = &temp;
2577 if (! wxRect_helper(_obj0, &_arg0))
2578 return NULL;
2579 }
2580 {
2581 PyThreadState* __tstate = wxPyBeginAllowThreads();
2582 wxRect_SetHeight(_arg0,_arg1);
2583
2584 wxPyEndAllowThreads(__tstate);
2585 if (PyErr_Occurred()) return NULL;
2586 } Py_INCREF(Py_None);
2587 _resultobj = Py_None;
2588 return _resultobj;
2589 }
2590
2591 #define wxRect_GetPosition(_swigobj) (_swigobj->GetPosition())
2592 static PyObject *_wrap_wxRect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2593 PyObject * _resultobj;
2594 wxPoint * _result;
2595 wxRect * _arg0;
2596 wxRect temp;
2597 PyObject * _obj0 = 0;
2598 char *_kwnames[] = { "self", NULL };
2599 char _ptemp[128];
2600
2601 self = self;
2602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetPosition",_kwnames,&_obj0))
2603 return NULL;
2604 {
2605 _arg0 = &temp;
2606 if (! wxRect_helper(_obj0, &_arg0))
2607 return NULL;
2608 }
2609 {
2610 PyThreadState* __tstate = wxPyBeginAllowThreads();
2611 _result = new wxPoint (wxRect_GetPosition(_arg0));
2612
2613 wxPyEndAllowThreads(__tstate);
2614 if (PyErr_Occurred()) return NULL;
2615 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2616 _resultobj = Py_BuildValue("s",_ptemp);
2617 return _resultobj;
2618 }
2619
2620 #define wxRect_GetSize(_swigobj) (_swigobj->GetSize())
2621 static PyObject *_wrap_wxRect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2622 PyObject * _resultobj;
2623 wxSize * _result;
2624 wxRect * _arg0;
2625 wxRect temp;
2626 PyObject * _obj0 = 0;
2627 char *_kwnames[] = { "self", NULL };
2628 char _ptemp[128];
2629
2630 self = self;
2631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetSize",_kwnames,&_obj0))
2632 return NULL;
2633 {
2634 _arg0 = &temp;
2635 if (! wxRect_helper(_obj0, &_arg0))
2636 return NULL;
2637 }
2638 {
2639 PyThreadState* __tstate = wxPyBeginAllowThreads();
2640 _result = new wxSize (wxRect_GetSize(_arg0));
2641
2642 wxPyEndAllowThreads(__tstate);
2643 if (PyErr_Occurred()) return NULL;
2644 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2645 _resultobj = Py_BuildValue("s",_ptemp);
2646 return _resultobj;
2647 }
2648
2649 #define wxRect_SetPosition(_swigobj,_swigarg0) (_swigobj->SetPosition(_swigarg0))
2650 static PyObject *_wrap_wxRect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2651 PyObject * _resultobj;
2652 wxRect * _arg0;
2653 wxPoint * _arg1;
2654 wxRect temp;
2655 PyObject * _obj0 = 0;
2656 wxPoint temp0;
2657 PyObject * _obj1 = 0;
2658 char *_kwnames[] = { "self","p", NULL };
2659
2660 self = self;
2661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRect_SetPosition",_kwnames,&_obj0,&_obj1))
2662 return NULL;
2663 {
2664 _arg0 = &temp;
2665 if (! wxRect_helper(_obj0, &_arg0))
2666 return NULL;
2667 }
2668 {
2669 _arg1 = &temp0;
2670 if (! wxPoint_helper(_obj1, &_arg1))
2671 return NULL;
2672 }
2673 {
2674 PyThreadState* __tstate = wxPyBeginAllowThreads();
2675 wxRect_SetPosition(_arg0,*_arg1);
2676
2677 wxPyEndAllowThreads(__tstate);
2678 if (PyErr_Occurred()) return NULL;
2679 } Py_INCREF(Py_None);
2680 _resultobj = Py_None;
2681 return _resultobj;
2682 }
2683
2684 #define wxRect_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2685 static PyObject *_wrap_wxRect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2686 PyObject * _resultobj;
2687 wxRect * _arg0;
2688 wxSize * _arg1;
2689 wxRect temp;
2690 PyObject * _obj0 = 0;
2691 wxSize temp0;
2692 PyObject * _obj1 = 0;
2693 char *_kwnames[] = { "self","s", NULL };
2694
2695 self = self;
2696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRect_SetSize",_kwnames,&_obj0,&_obj1))
2697 return NULL;
2698 {
2699 _arg0 = &temp;
2700 if (! wxRect_helper(_obj0, &_arg0))
2701 return NULL;
2702 }
2703 {
2704 _arg1 = &temp0;
2705 if (! wxSize_helper(_obj1, &_arg1))
2706 return NULL;
2707 }
2708 {
2709 PyThreadState* __tstate = wxPyBeginAllowThreads();
2710 wxRect_SetSize(_arg0,*_arg1);
2711
2712 wxPyEndAllowThreads(__tstate);
2713 if (PyErr_Occurred()) return NULL;
2714 } Py_INCREF(Py_None);
2715 _resultobj = Py_None;
2716 return _resultobj;
2717 }
2718
2719 #define wxRect_GetLeft(_swigobj) (_swigobj->GetLeft())
2720 static PyObject *_wrap_wxRect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
2721 PyObject * _resultobj;
2722 int _result;
2723 wxRect * _arg0;
2724 wxRect temp;
2725 PyObject * _obj0 = 0;
2726 char *_kwnames[] = { "self", NULL };
2727
2728 self = self;
2729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetLeft",_kwnames,&_obj0))
2730 return NULL;
2731 {
2732 _arg0 = &temp;
2733 if (! wxRect_helper(_obj0, &_arg0))
2734 return NULL;
2735 }
2736 {
2737 PyThreadState* __tstate = wxPyBeginAllowThreads();
2738 _result = (int )wxRect_GetLeft(_arg0);
2739
2740 wxPyEndAllowThreads(__tstate);
2741 if (PyErr_Occurred()) return NULL;
2742 } _resultobj = Py_BuildValue("i",_result);
2743 return _resultobj;
2744 }
2745
2746 #define wxRect_GetTop(_swigobj) (_swigobj->GetTop())
2747 static PyObject *_wrap_wxRect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) {
2748 PyObject * _resultobj;
2749 int _result;
2750 wxRect * _arg0;
2751 wxRect temp;
2752 PyObject * _obj0 = 0;
2753 char *_kwnames[] = { "self", NULL };
2754
2755 self = self;
2756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetTop",_kwnames,&_obj0))
2757 return NULL;
2758 {
2759 _arg0 = &temp;
2760 if (! wxRect_helper(_obj0, &_arg0))
2761 return NULL;
2762 }
2763 {
2764 PyThreadState* __tstate = wxPyBeginAllowThreads();
2765 _result = (int )wxRect_GetTop(_arg0);
2766
2767 wxPyEndAllowThreads(__tstate);
2768 if (PyErr_Occurred()) return NULL;
2769 } _resultobj = Py_BuildValue("i",_result);
2770 return _resultobj;
2771 }
2772
2773 #define wxRect_GetBottom(_swigobj) (_swigobj->GetBottom())
2774 static PyObject *_wrap_wxRect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) {
2775 PyObject * _resultobj;
2776 int _result;
2777 wxRect * _arg0;
2778 wxRect temp;
2779 PyObject * _obj0 = 0;
2780 char *_kwnames[] = { "self", NULL };
2781
2782 self = self;
2783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetBottom",_kwnames,&_obj0))
2784 return NULL;
2785 {
2786 _arg0 = &temp;
2787 if (! wxRect_helper(_obj0, &_arg0))
2788 return NULL;
2789 }
2790 {
2791 PyThreadState* __tstate = wxPyBeginAllowThreads();
2792 _result = (int )wxRect_GetBottom(_arg0);
2793
2794 wxPyEndAllowThreads(__tstate);
2795 if (PyErr_Occurred()) return NULL;
2796 } _resultobj = Py_BuildValue("i",_result);
2797 return _resultobj;
2798 }
2799
2800 #define wxRect_GetRight(_swigobj) (_swigobj->GetRight())
2801 static PyObject *_wrap_wxRect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) {
2802 PyObject * _resultobj;
2803 int _result;
2804 wxRect * _arg0;
2805 wxRect temp;
2806 PyObject * _obj0 = 0;
2807 char *_kwnames[] = { "self", NULL };
2808
2809 self = self;
2810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetRight",_kwnames,&_obj0))
2811 return NULL;
2812 {
2813 _arg0 = &temp;
2814 if (! wxRect_helper(_obj0, &_arg0))
2815 return NULL;
2816 }
2817 {
2818 PyThreadState* __tstate = wxPyBeginAllowThreads();
2819 _result = (int )wxRect_GetRight(_arg0);
2820
2821 wxPyEndAllowThreads(__tstate);
2822 if (PyErr_Occurred()) return NULL;
2823 } _resultobj = Py_BuildValue("i",_result);
2824 return _resultobj;
2825 }
2826
2827 #define wxRect_SetLeft(_swigobj,_swigarg0) (_swigobj->SetLeft(_swigarg0))
2828 static PyObject *_wrap_wxRect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
2829 PyObject * _resultobj;
2830 wxRect * _arg0;
2831 int _arg1;
2832 wxRect temp;
2833 PyObject * _obj0 = 0;
2834 char *_kwnames[] = { "self","left", NULL };
2835
2836 self = self;
2837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetLeft",_kwnames,&_obj0,&_arg1))
2838 return NULL;
2839 {
2840 _arg0 = &temp;
2841 if (! wxRect_helper(_obj0, &_arg0))
2842 return NULL;
2843 }
2844 {
2845 PyThreadState* __tstate = wxPyBeginAllowThreads();
2846 wxRect_SetLeft(_arg0,_arg1);
2847
2848 wxPyEndAllowThreads(__tstate);
2849 if (PyErr_Occurred()) return NULL;
2850 } Py_INCREF(Py_None);
2851 _resultobj = Py_None;
2852 return _resultobj;
2853 }
2854
2855 #define wxRect_SetRight(_swigobj,_swigarg0) (_swigobj->SetRight(_swigarg0))
2856 static PyObject *_wrap_wxRect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) {
2857 PyObject * _resultobj;
2858 wxRect * _arg0;
2859 int _arg1;
2860 wxRect temp;
2861 PyObject * _obj0 = 0;
2862 char *_kwnames[] = { "self","right", NULL };
2863
2864 self = self;
2865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetRight",_kwnames,&_obj0,&_arg1))
2866 return NULL;
2867 {
2868 _arg0 = &temp;
2869 if (! wxRect_helper(_obj0, &_arg0))
2870 return NULL;
2871 }
2872 {
2873 PyThreadState* __tstate = wxPyBeginAllowThreads();
2874 wxRect_SetRight(_arg0,_arg1);
2875
2876 wxPyEndAllowThreads(__tstate);
2877 if (PyErr_Occurred()) return NULL;
2878 } Py_INCREF(Py_None);
2879 _resultobj = Py_None;
2880 return _resultobj;
2881 }
2882
2883 #define wxRect_SetTop(_swigobj,_swigarg0) (_swigobj->SetTop(_swigarg0))
2884 static PyObject *_wrap_wxRect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) {
2885 PyObject * _resultobj;
2886 wxRect * _arg0;
2887 int _arg1;
2888 wxRect temp;
2889 PyObject * _obj0 = 0;
2890 char *_kwnames[] = { "self","top", NULL };
2891
2892 self = self;
2893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetTop",_kwnames,&_obj0,&_arg1))
2894 return NULL;
2895 {
2896 _arg0 = &temp;
2897 if (! wxRect_helper(_obj0, &_arg0))
2898 return NULL;
2899 }
2900 {
2901 PyThreadState* __tstate = wxPyBeginAllowThreads();
2902 wxRect_SetTop(_arg0,_arg1);
2903
2904 wxPyEndAllowThreads(__tstate);
2905 if (PyErr_Occurred()) return NULL;
2906 } Py_INCREF(Py_None);
2907 _resultobj = Py_None;
2908 return _resultobj;
2909 }
2910
2911 #define wxRect_SetBottom(_swigobj,_swigarg0) (_swigobj->SetBottom(_swigarg0))
2912 static PyObject *_wrap_wxRect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) {
2913 PyObject * _resultobj;
2914 wxRect * _arg0;
2915 int _arg1;
2916 wxRect temp;
2917 PyObject * _obj0 = 0;
2918 char *_kwnames[] = { "self","bottom", NULL };
2919
2920 self = self;
2921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetBottom",_kwnames,&_obj0,&_arg1))
2922 return NULL;
2923 {
2924 _arg0 = &temp;
2925 if (! wxRect_helper(_obj0, &_arg0))
2926 return NULL;
2927 }
2928 {
2929 PyThreadState* __tstate = wxPyBeginAllowThreads();
2930 wxRect_SetBottom(_arg0,_arg1);
2931
2932 wxPyEndAllowThreads(__tstate);
2933 if (PyErr_Occurred()) return NULL;
2934 } Py_INCREF(Py_None);
2935 _resultobj = Py_None;
2936 return _resultobj;
2937 }
2938
2939 #define wxRect_Deflate(_swigobj,_swigarg0,_swigarg1) (_swigobj->Deflate(_swigarg0,_swigarg1))
2940 static PyObject *_wrap_wxRect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) {
2941 PyObject * _resultobj;
2942 wxRect * _arg0;
2943 int _arg1;
2944 int _arg2;
2945 wxRect temp;
2946 PyObject * _obj0 = 0;
2947 char *_kwnames[] = { "self","dx","dy", NULL };
2948
2949 self = self;
2950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRect_Deflate",_kwnames,&_obj0,&_arg1,&_arg2))
2951 return NULL;
2952 {
2953 _arg0 = &temp;
2954 if (! wxRect_helper(_obj0, &_arg0))
2955 return NULL;
2956 }
2957 {
2958 PyThreadState* __tstate = wxPyBeginAllowThreads();
2959 wxRect_Deflate(_arg0,_arg1,_arg2);
2960
2961 wxPyEndAllowThreads(__tstate);
2962 if (PyErr_Occurred()) return NULL;
2963 } Py_INCREF(Py_None);
2964 _resultobj = Py_None;
2965 return _resultobj;
2966 }
2967
2968 #define wxRect_Inflate(_swigobj,_swigarg0,_swigarg1) (_swigobj->Inflate(_swigarg0,_swigarg1))
2969 static PyObject *_wrap_wxRect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) {
2970 PyObject * _resultobj;
2971 wxRect * _arg0;
2972 int _arg1;
2973 int _arg2;
2974 wxRect temp;
2975 PyObject * _obj0 = 0;
2976 char *_kwnames[] = { "self","dx","dy", NULL };
2977
2978 self = self;
2979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRect_Inflate",_kwnames,&_obj0,&_arg1,&_arg2))
2980 return NULL;
2981 {
2982 _arg0 = &temp;
2983 if (! wxRect_helper(_obj0, &_arg0))
2984 return NULL;
2985 }
2986 {
2987 PyThreadState* __tstate = wxPyBeginAllowThreads();
2988 wxRect_Inflate(_arg0,_arg1,_arg2);
2989
2990 wxPyEndAllowThreads(__tstate);
2991 if (PyErr_Occurred()) return NULL;
2992 } Py_INCREF(Py_None);
2993 _resultobj = Py_None;
2994 return _resultobj;
2995 }
2996
2997 #define wxRect_InsideXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Inside(_swigarg0,_swigarg1))
2998 static PyObject *_wrap_wxRect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) {
2999 PyObject * _resultobj;
3000 bool _result;
3001 wxRect * _arg0;
3002 int _arg1;
3003 int _arg2;
3004 wxRect temp;
3005 PyObject * _obj0 = 0;
3006 char *_kwnames[] = { "self","cx","cy", NULL };
3007
3008 self = self;
3009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRect_InsideXY",_kwnames,&_obj0,&_arg1,&_arg2))
3010 return NULL;
3011 {
3012 _arg0 = &temp;
3013 if (! wxRect_helper(_obj0, &_arg0))
3014 return NULL;
3015 }
3016 {
3017 PyThreadState* __tstate = wxPyBeginAllowThreads();
3018 _result = (bool )wxRect_InsideXY(_arg0,_arg1,_arg2);
3019
3020 wxPyEndAllowThreads(__tstate);
3021 if (PyErr_Occurred()) return NULL;
3022 } _resultobj = Py_BuildValue("i",_result);
3023 return _resultobj;
3024 }
3025
3026 #define wxRect_Inside(_swigobj,_swigarg0) (_swigobj->Inside(_swigarg0))
3027 static PyObject *_wrap_wxRect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) {
3028 PyObject * _resultobj;
3029 bool _result;
3030 wxRect * _arg0;
3031 wxPoint * _arg1;
3032 wxRect temp;
3033 PyObject * _obj0 = 0;
3034 wxPoint temp0;
3035 PyObject * _obj1 = 0;
3036 char *_kwnames[] = { "self","pt", NULL };
3037
3038 self = self;
3039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRect_Inside",_kwnames,&_obj0,&_obj1))
3040 return NULL;
3041 {
3042 _arg0 = &temp;
3043 if (! wxRect_helper(_obj0, &_arg0))
3044 return NULL;
3045 }
3046 {
3047 _arg1 = &temp0;
3048 if (! wxPoint_helper(_obj1, &_arg1))
3049 return NULL;
3050 }
3051 {
3052 PyThreadState* __tstate = wxPyBeginAllowThreads();
3053 _result = (bool )wxRect_Inside(_arg0,*_arg1);
3054
3055 wxPyEndAllowThreads(__tstate);
3056 if (PyErr_Occurred()) return NULL;
3057 } _resultobj = Py_BuildValue("i",_result);
3058 return _resultobj;
3059 }
3060
3061 #define wxRect_Intersects(_swigobj,_swigarg0) (_swigobj->Intersects(_swigarg0))
3062 static PyObject *_wrap_wxRect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) {
3063 PyObject * _resultobj;
3064 bool _result;
3065 wxRect * _arg0;
3066 wxRect * _arg1;
3067 wxRect temp;
3068 PyObject * _obj0 = 0;
3069 wxRect temp0;
3070 PyObject * _obj1 = 0;
3071 char *_kwnames[] = { "self","rect", NULL };
3072
3073 self = self;
3074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRect_Intersects",_kwnames,&_obj0,&_obj1))
3075 return NULL;
3076 {
3077 _arg0 = &temp;
3078 if (! wxRect_helper(_obj0, &_arg0))
3079 return NULL;
3080 }
3081 {
3082 _arg1 = &temp0;
3083 if (! wxRect_helper(_obj1, &_arg1))
3084 return NULL;
3085 }
3086 {
3087 PyThreadState* __tstate = wxPyBeginAllowThreads();
3088 _result = (bool )wxRect_Intersects(_arg0,*_arg1);
3089
3090 wxPyEndAllowThreads(__tstate);
3091 if (PyErr_Occurred()) return NULL;
3092 } _resultobj = Py_BuildValue("i",_result);
3093 return _resultobj;
3094 }
3095
3096 #define wxRect_OffsetXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
3097 static PyObject *_wrap_wxRect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) {
3098 PyObject * _resultobj;
3099 wxRect * _arg0;
3100 int _arg1;
3101 int _arg2;
3102 wxRect temp;
3103 PyObject * _obj0 = 0;
3104 char *_kwnames[] = { "self","dx","dy", NULL };
3105
3106 self = self;
3107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRect_OffsetXY",_kwnames,&_obj0,&_arg1,&_arg2))
3108 return NULL;
3109 {
3110 _arg0 = &temp;
3111 if (! wxRect_helper(_obj0, &_arg0))
3112 return NULL;
3113 }
3114 {
3115 PyThreadState* __tstate = wxPyBeginAllowThreads();
3116 wxRect_OffsetXY(_arg0,_arg1,_arg2);
3117
3118 wxPyEndAllowThreads(__tstate);
3119 if (PyErr_Occurred()) return NULL;
3120 } Py_INCREF(Py_None);
3121 _resultobj = Py_None;
3122 return _resultobj;
3123 }
3124
3125 #define wxRect_Offset(_swigobj,_swigarg0) (_swigobj->Offset(_swigarg0))
3126 static PyObject *_wrap_wxRect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
3127 PyObject * _resultobj;
3128 wxRect * _arg0;
3129 wxPoint * _arg1;
3130 wxRect temp;
3131 PyObject * _obj0 = 0;
3132 wxPoint temp0;
3133 PyObject * _obj1 = 0;
3134 char *_kwnames[] = { "self","pt", NULL };
3135
3136 self = self;
3137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRect_Offset",_kwnames,&_obj0,&_obj1))
3138 return NULL;
3139 {
3140 _arg0 = &temp;
3141 if (! wxRect_helper(_obj0, &_arg0))
3142 return NULL;
3143 }
3144 {
3145 _arg1 = &temp0;
3146 if (! wxPoint_helper(_obj1, &_arg1))
3147 return NULL;
3148 }
3149 {
3150 PyThreadState* __tstate = wxPyBeginAllowThreads();
3151 wxRect_Offset(_arg0,*_arg1);
3152
3153 wxPyEndAllowThreads(__tstate);
3154 if (PyErr_Occurred()) return NULL;
3155 } Py_INCREF(Py_None);
3156 _resultobj = Py_None;
3157 return _resultobj;
3158 }
3159
3160 #define wxRect_x_set(_swigobj,_swigval) (_swigobj->x = _swigval,_swigval)
3161 static PyObject *_wrap_wxRect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
3162 PyObject * _resultobj;
3163 int _result;
3164 wxRect * _arg0;
3165 int _arg1;
3166 wxRect temp;
3167 PyObject * _obj0 = 0;
3168 char *_kwnames[] = { "self","x", NULL };
3169
3170 self = self;
3171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_x_set",_kwnames,&_obj0,&_arg1))
3172 return NULL;
3173 {
3174 _arg0 = &temp;
3175 if (! wxRect_helper(_obj0, &_arg0))
3176 return NULL;
3177 }
3178 {
3179 PyThreadState* __tstate = wxPyBeginAllowThreads();
3180 _result = (int )wxRect_x_set(_arg0,_arg1);
3181
3182 wxPyEndAllowThreads(__tstate);
3183 if (PyErr_Occurred()) return NULL;
3184 } _resultobj = Py_BuildValue("i",_result);
3185 return _resultobj;
3186 }
3187
3188 #define wxRect_x_get(_swigobj) ((int ) _swigobj->x)
3189 static PyObject *_wrap_wxRect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
3190 PyObject * _resultobj;
3191 int _result;
3192 wxRect * _arg0;
3193 wxRect temp;
3194 PyObject * _obj0 = 0;
3195 char *_kwnames[] = { "self", NULL };
3196
3197 self = self;
3198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_x_get",_kwnames,&_obj0))
3199 return NULL;
3200 {
3201 _arg0 = &temp;
3202 if (! wxRect_helper(_obj0, &_arg0))
3203 return NULL;
3204 }
3205 {
3206 PyThreadState* __tstate = wxPyBeginAllowThreads();
3207 _result = (int )wxRect_x_get(_arg0);
3208
3209 wxPyEndAllowThreads(__tstate);
3210 if (PyErr_Occurred()) return NULL;
3211 } _resultobj = Py_BuildValue("i",_result);
3212 return _resultobj;
3213 }
3214
3215 #define wxRect_y_set(_swigobj,_swigval) (_swigobj->y = _swigval,_swigval)
3216 static PyObject *_wrap_wxRect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
3217 PyObject * _resultobj;
3218 int _result;
3219 wxRect * _arg0;
3220 int _arg1;
3221 wxRect temp;
3222 PyObject * _obj0 = 0;
3223 char *_kwnames[] = { "self","y", NULL };
3224
3225 self = self;
3226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_y_set",_kwnames,&_obj0,&_arg1))
3227 return NULL;
3228 {
3229 _arg0 = &temp;
3230 if (! wxRect_helper(_obj0, &_arg0))
3231 return NULL;
3232 }
3233 {
3234 PyThreadState* __tstate = wxPyBeginAllowThreads();
3235 _result = (int )wxRect_y_set(_arg0,_arg1);
3236
3237 wxPyEndAllowThreads(__tstate);
3238 if (PyErr_Occurred()) return NULL;
3239 } _resultobj = Py_BuildValue("i",_result);
3240 return _resultobj;
3241 }
3242
3243 #define wxRect_y_get(_swigobj) ((int ) _swigobj->y)
3244 static PyObject *_wrap_wxRect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
3245 PyObject * _resultobj;
3246 int _result;
3247 wxRect * _arg0;
3248 wxRect temp;
3249 PyObject * _obj0 = 0;
3250 char *_kwnames[] = { "self", NULL };
3251
3252 self = self;
3253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_y_get",_kwnames,&_obj0))
3254 return NULL;
3255 {
3256 _arg0 = &temp;
3257 if (! wxRect_helper(_obj0, &_arg0))
3258 return NULL;
3259 }
3260 {
3261 PyThreadState* __tstate = wxPyBeginAllowThreads();
3262 _result = (int )wxRect_y_get(_arg0);
3263
3264 wxPyEndAllowThreads(__tstate);
3265 if (PyErr_Occurred()) return NULL;
3266 } _resultobj = Py_BuildValue("i",_result);
3267 return _resultobj;
3268 }
3269
3270 #define wxRect_width_set(_swigobj,_swigval) (_swigobj->width = _swigval,_swigval)
3271 static PyObject *_wrap_wxRect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
3272 PyObject * _resultobj;
3273 int _result;
3274 wxRect * _arg0;
3275 int _arg1;
3276 wxRect temp;
3277 PyObject * _obj0 = 0;
3278 char *_kwnames[] = { "self","width", NULL };
3279
3280 self = self;
3281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_width_set",_kwnames,&_obj0,&_arg1))
3282 return NULL;
3283 {
3284 _arg0 = &temp;
3285 if (! wxRect_helper(_obj0, &_arg0))
3286 return NULL;
3287 }
3288 {
3289 PyThreadState* __tstate = wxPyBeginAllowThreads();
3290 _result = (int )wxRect_width_set(_arg0,_arg1);
3291
3292 wxPyEndAllowThreads(__tstate);
3293 if (PyErr_Occurred()) return NULL;
3294 } _resultobj = Py_BuildValue("i",_result);
3295 return _resultobj;
3296 }
3297
3298 #define wxRect_width_get(_swigobj) ((int ) _swigobj->width)
3299 static PyObject *_wrap_wxRect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
3300 PyObject * _resultobj;
3301 int _result;
3302 wxRect * _arg0;
3303 wxRect temp;
3304 PyObject * _obj0 = 0;
3305 char *_kwnames[] = { "self", NULL };
3306
3307 self = self;
3308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_width_get",_kwnames,&_obj0))
3309 return NULL;
3310 {
3311 _arg0 = &temp;
3312 if (! wxRect_helper(_obj0, &_arg0))
3313 return NULL;
3314 }
3315 {
3316 PyThreadState* __tstate = wxPyBeginAllowThreads();
3317 _result = (int )wxRect_width_get(_arg0);
3318
3319 wxPyEndAllowThreads(__tstate);
3320 if (PyErr_Occurred()) return NULL;
3321 } _resultobj = Py_BuildValue("i",_result);
3322 return _resultobj;
3323 }
3324
3325 #define wxRect_height_set(_swigobj,_swigval) (_swigobj->height = _swigval,_swigval)
3326 static PyObject *_wrap_wxRect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) {
3327 PyObject * _resultobj;
3328 int _result;
3329 wxRect * _arg0;
3330 int _arg1;
3331 wxRect temp;
3332 PyObject * _obj0 = 0;
3333 char *_kwnames[] = { "self","height", NULL };
3334
3335 self = self;
3336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_height_set",_kwnames,&_obj0,&_arg1))
3337 return NULL;
3338 {
3339 _arg0 = &temp;
3340 if (! wxRect_helper(_obj0, &_arg0))
3341 return NULL;
3342 }
3343 {
3344 PyThreadState* __tstate = wxPyBeginAllowThreads();
3345 _result = (int )wxRect_height_set(_arg0,_arg1);
3346
3347 wxPyEndAllowThreads(__tstate);
3348 if (PyErr_Occurred()) return NULL;
3349 } _resultobj = Py_BuildValue("i",_result);
3350 return _resultobj;
3351 }
3352
3353 #define wxRect_height_get(_swigobj) ((int ) _swigobj->height)
3354 static PyObject *_wrap_wxRect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
3355 PyObject * _resultobj;
3356 int _result;
3357 wxRect * _arg0;
3358 wxRect temp;
3359 PyObject * _obj0 = 0;
3360 char *_kwnames[] = { "self", NULL };
3361
3362 self = self;
3363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_height_get",_kwnames,&_obj0))
3364 return NULL;
3365 {
3366 _arg0 = &temp;
3367 if (! wxRect_helper(_obj0, &_arg0))
3368 return NULL;
3369 }
3370 {
3371 PyThreadState* __tstate = wxPyBeginAllowThreads();
3372 _result = (int )wxRect_height_get(_arg0);
3373
3374 wxPyEndAllowThreads(__tstate);
3375 if (PyErr_Occurred()) return NULL;
3376 } _resultobj = Py_BuildValue("i",_result);
3377 return _resultobj;
3378 }
3379
3380 static void wxRect_Set(wxRect *self,int x,int y,int width,int height) {
3381 self->x = x;
3382 self->y = y;
3383 self->width = width;
3384 self->height = height;
3385 }
3386 static PyObject *_wrap_wxRect_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
3387 PyObject * _resultobj;
3388 wxRect * _arg0;
3389 int _arg1 = (int ) 0;
3390 int _arg2 = (int ) 0;
3391 int _arg3 = (int ) 0;
3392 int _arg4 = (int ) 0;
3393 wxRect temp;
3394 PyObject * _obj0 = 0;
3395 char *_kwnames[] = { "self","x","y","width","height", NULL };
3396
3397 self = self;
3398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiii:wxRect_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3,&_arg4))
3399 return NULL;
3400 {
3401 _arg0 = &temp;
3402 if (! wxRect_helper(_obj0, &_arg0))
3403 return NULL;
3404 }
3405 {
3406 PyThreadState* __tstate = wxPyBeginAllowThreads();
3407 wxRect_Set(_arg0,_arg1,_arg2,_arg3,_arg4);
3408
3409 wxPyEndAllowThreads(__tstate);
3410 if (PyErr_Occurred()) return NULL;
3411 } Py_INCREF(Py_None);
3412 _resultobj = Py_None;
3413 return _resultobj;
3414 }
3415
3416 static PyObject * wxRect_asTuple(wxRect *self) {
3417 wxPyBeginBlockThreads();
3418 PyObject* tup = PyTuple_New(4);
3419 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
3420 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
3421 PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width));
3422 PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height));
3423 wxPyEndBlockThreads();
3424 return tup;
3425 }
3426 static PyObject *_wrap_wxRect_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
3427 PyObject * _resultobj;
3428 PyObject * _result;
3429 wxRect * _arg0;
3430 wxRect temp;
3431 PyObject * _obj0 = 0;
3432 char *_kwnames[] = { "self", NULL };
3433
3434 self = self;
3435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_asTuple",_kwnames,&_obj0))
3436 return NULL;
3437 {
3438 _arg0 = &temp;
3439 if (! wxRect_helper(_obj0, &_arg0))
3440 return NULL;
3441 }
3442 {
3443 PyThreadState* __tstate = wxPyBeginAllowThreads();
3444 _result = (PyObject *)wxRect_asTuple(_arg0);
3445
3446 wxPyEndAllowThreads(__tstate);
3447 if (PyErr_Occurred()) return NULL;
3448 }{
3449 _resultobj = _result;
3450 }
3451 return _resultobj;
3452 }
3453
3454 static wxRect wxRect___add__(wxRect *self,const wxRect & rect) {
3455 return *self + rect;
3456 }
3457 static PyObject *_wrap_wxRect___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
3458 PyObject * _resultobj;
3459 wxRect * _result;
3460 wxRect * _arg0;
3461 wxRect * _arg1;
3462 wxRect temp;
3463 PyObject * _obj0 = 0;
3464 wxRect temp0;
3465 PyObject * _obj1 = 0;
3466 char *_kwnames[] = { "self","rect", NULL };
3467 char _ptemp[128];
3468
3469 self = self;
3470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRect___add__",_kwnames,&_obj0,&_obj1))
3471 return NULL;
3472 {
3473 _arg0 = &temp;
3474 if (! wxRect_helper(_obj0, &_arg0))
3475 return NULL;
3476 }
3477 {
3478 _arg1 = &temp0;
3479 if (! wxRect_helper(_obj1, &_arg1))
3480 return NULL;
3481 }
3482 {
3483 PyThreadState* __tstate = wxPyBeginAllowThreads();
3484 _result = new wxRect (wxRect___add__(_arg0,*_arg1));
3485
3486 wxPyEndAllowThreads(__tstate);
3487 if (PyErr_Occurred()) return NULL;
3488 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
3489 _resultobj = Py_BuildValue("s",_ptemp);
3490 return _resultobj;
3491 }
3492
3493 static bool wxRect___eq__(wxRect *self,PyObject * obj) {
3494 wxRect tmp;
3495 wxRect* ptr = &tmp;
3496 if (obj == Py_None) return FALSE;
3497 wxPyBLOCK_THREADS(bool success = wxRect_helper(obj, &ptr); PyErr_Clear());
3498 if (! success) return FALSE;
3499 return *self == *ptr;
3500 }
3501 static PyObject *_wrap_wxRect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3502 PyObject * _resultobj;
3503 bool _result;
3504 wxRect * _arg0;
3505 PyObject * _arg1;
3506 wxRect temp;
3507 PyObject * _obj0 = 0;
3508 PyObject * _obj1 = 0;
3509 char *_kwnames[] = { "self","obj", NULL };
3510
3511 self = self;
3512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRect___eq__",_kwnames,&_obj0,&_obj1))
3513 return NULL;
3514 {
3515 _arg0 = &temp;
3516 if (! wxRect_helper(_obj0, &_arg0))
3517 return NULL;
3518 }
3519 {
3520 _arg1 = _obj1;
3521 }
3522 {
3523 PyThreadState* __tstate = wxPyBeginAllowThreads();
3524 _result = (bool )wxRect___eq__(_arg0,_arg1);
3525
3526 wxPyEndAllowThreads(__tstate);
3527 if (PyErr_Occurred()) return NULL;
3528 } _resultobj = Py_BuildValue("i",_result);
3529 return _resultobj;
3530 }
3531
3532 static bool wxRect___ne__(wxRect *self,PyObject * obj) {
3533 wxRect tmp;
3534 wxRect* ptr = &tmp;
3535 if (obj == Py_None) return TRUE;
3536 wxPyBLOCK_THREADS(bool success = wxRect_helper(obj, &ptr); PyErr_Clear());
3537 if (! success) return TRUE;
3538 return *self != *ptr;
3539 }
3540 static PyObject *_wrap_wxRect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3541 PyObject * _resultobj;
3542 bool _result;
3543 wxRect * _arg0;
3544 PyObject * _arg1;
3545 wxRect temp;
3546 PyObject * _obj0 = 0;
3547 PyObject * _obj1 = 0;
3548 char *_kwnames[] = { "self","obj", NULL };
3549
3550 self = self;
3551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRect___ne__",_kwnames,&_obj0,&_obj1))
3552 return NULL;
3553 {
3554 _arg0 = &temp;
3555 if (! wxRect_helper(_obj0, &_arg0))
3556 return NULL;
3557 }
3558 {
3559 _arg1 = _obj1;
3560 }
3561 {
3562 PyThreadState* __tstate = wxPyBeginAllowThreads();
3563 _result = (bool )wxRect___ne__(_arg0,_arg1);
3564
3565 wxPyEndAllowThreads(__tstate);
3566 if (PyErr_Occurred()) return NULL;
3567 } _resultobj = Py_BuildValue("i",_result);
3568 return _resultobj;
3569 }
3570
3571 #define wxPoint2DDouble_m_x_set(_swigobj,_swigval) (_swigobj->m_x = _swigval,_swigval)
3572 static PyObject *_wrap_wxPoint2DDouble_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
3573 PyObject * _resultobj;
3574 double _result;
3575 wxPoint2DDouble * _arg0;
3576 double _arg1;
3577 wxPoint2DDouble temp;
3578 PyObject * _obj0 = 0;
3579 char *_kwnames[] = { "self","m_x", NULL };
3580
3581 self = self;
3582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxPoint2DDouble_m_x_set",_kwnames,&_obj0,&_arg1))
3583 return NULL;
3584 {
3585 _arg0 = &temp;
3586 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3587 return NULL;
3588 }
3589 {
3590 PyThreadState* __tstate = wxPyBeginAllowThreads();
3591 _result = (double )wxPoint2DDouble_m_x_set(_arg0,_arg1);
3592
3593 wxPyEndAllowThreads(__tstate);
3594 if (PyErr_Occurred()) return NULL;
3595 } _resultobj = Py_BuildValue("d",_result);
3596 return _resultobj;
3597 }
3598
3599 #define wxPoint2DDouble_m_x_get(_swigobj) ((double ) _swigobj->m_x)
3600 static PyObject *_wrap_wxPoint2DDouble_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
3601 PyObject * _resultobj;
3602 double _result;
3603 wxPoint2DDouble * _arg0;
3604 wxPoint2DDouble temp;
3605 PyObject * _obj0 = 0;
3606 char *_kwnames[] = { "self", NULL };
3607
3608 self = self;
3609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint2DDouble_m_x_get",_kwnames,&_obj0))
3610 return NULL;
3611 {
3612 _arg0 = &temp;
3613 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3614 return NULL;
3615 }
3616 {
3617 PyThreadState* __tstate = wxPyBeginAllowThreads();
3618 _result = (double )wxPoint2DDouble_m_x_get(_arg0);
3619
3620 wxPyEndAllowThreads(__tstate);
3621 if (PyErr_Occurred()) return NULL;
3622 } _resultobj = Py_BuildValue("d",_result);
3623 return _resultobj;
3624 }
3625
3626 #define wxPoint2DDouble_m_y_set(_swigobj,_swigval) (_swigobj->m_y = _swigval,_swigval)
3627 static PyObject *_wrap_wxPoint2DDouble_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
3628 PyObject * _resultobj;
3629 double _result;
3630 wxPoint2DDouble * _arg0;
3631 double _arg1;
3632 wxPoint2DDouble temp;
3633 PyObject * _obj0 = 0;
3634 char *_kwnames[] = { "self","m_y", NULL };
3635
3636 self = self;
3637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxPoint2DDouble_m_y_set",_kwnames,&_obj0,&_arg1))
3638 return NULL;
3639 {
3640 _arg0 = &temp;
3641 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3642 return NULL;
3643 }
3644 {
3645 PyThreadState* __tstate = wxPyBeginAllowThreads();
3646 _result = (double )wxPoint2DDouble_m_y_set(_arg0,_arg1);
3647
3648 wxPyEndAllowThreads(__tstate);
3649 if (PyErr_Occurred()) return NULL;
3650 } _resultobj = Py_BuildValue("d",_result);
3651 return _resultobj;
3652 }
3653
3654 #define wxPoint2DDouble_m_y_get(_swigobj) ((double ) _swigobj->m_y)
3655 static PyObject *_wrap_wxPoint2DDouble_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
3656 PyObject * _resultobj;
3657 double _result;
3658 wxPoint2DDouble * _arg0;
3659 wxPoint2DDouble temp;
3660 PyObject * _obj0 = 0;
3661 char *_kwnames[] = { "self", NULL };
3662
3663 self = self;
3664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint2DDouble_m_y_get",_kwnames,&_obj0))
3665 return NULL;
3666 {
3667 _arg0 = &temp;
3668 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3669 return NULL;
3670 }
3671 {
3672 PyThreadState* __tstate = wxPyBeginAllowThreads();
3673 _result = (double )wxPoint2DDouble_m_y_get(_arg0);
3674
3675 wxPyEndAllowThreads(__tstate);
3676 if (PyErr_Occurred()) return NULL;
3677 } _resultobj = Py_BuildValue("d",_result);
3678 return _resultobj;
3679 }
3680
3681 #define new_wxPoint2DDouble(_swigarg0,_swigarg1) (new wxPoint2DDouble(_swigarg0,_swigarg1))
3682 static PyObject *_wrap_new_wxPoint2DDouble(PyObject *self, PyObject *args, PyObject *kwargs) {
3683 PyObject * _resultobj;
3684 wxPoint2DDouble * _result;
3685 double _arg0 = (double ) 0;
3686 double _arg1 = (double ) 0;
3687 char *_kwnames[] = { "x","y", NULL };
3688 char _ptemp[128];
3689
3690 self = self;
3691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|dd:new_wxPoint2DDouble",_kwnames,&_arg0,&_arg1))
3692 return NULL;
3693 {
3694 PyThreadState* __tstate = wxPyBeginAllowThreads();
3695 _result = (wxPoint2DDouble *)new_wxPoint2DDouble(_arg0,_arg1);
3696
3697 wxPyEndAllowThreads(__tstate);
3698 if (PyErr_Occurred()) return NULL;
3699 } if (_result) {
3700 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint2DDouble_p");
3701 _resultobj = Py_BuildValue("s",_ptemp);
3702 } else {
3703 Py_INCREF(Py_None);
3704 _resultobj = Py_None;
3705 }
3706 return _resultobj;
3707 }
3708
3709 #define new_wxPoint2DDoubleCopy(_swigarg0) (new wxPoint2DDouble(_swigarg0))
3710 static PyObject *_wrap_new_wxPoint2DDoubleCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
3711 PyObject * _resultobj;
3712 wxPoint2DDouble * _result;
3713 wxPoint2DDouble * _arg0;
3714 wxPoint2DDouble temp;
3715 PyObject * _obj0 = 0;
3716 char *_kwnames[] = { "pt", NULL };
3717 char _ptemp[128];
3718
3719 self = self;
3720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPoint2DDoubleCopy",_kwnames,&_obj0))
3721 return NULL;
3722 {
3723 _arg0 = &temp;
3724 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3725 return NULL;
3726 }
3727 {
3728 PyThreadState* __tstate = wxPyBeginAllowThreads();
3729 _result = (wxPoint2DDouble *)new_wxPoint2DDoubleCopy(*_arg0);
3730
3731 wxPyEndAllowThreads(__tstate);
3732 if (PyErr_Occurred()) return NULL;
3733 } if (_result) {
3734 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint2DDouble_p");
3735 _resultobj = Py_BuildValue("s",_ptemp);
3736 } else {
3737 Py_INCREF(Py_None);
3738 _resultobj = Py_None;
3739 }
3740 return _resultobj;
3741 }
3742
3743 #define new_wxPoint2DDoubleFromPoint(_swigarg0) (new wxPoint2DDouble(_swigarg0))
3744 static PyObject *_wrap_new_wxPoint2DDoubleFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3745 PyObject * _resultobj;
3746 wxPoint2DDouble * _result;
3747 wxPoint * _arg0;
3748 wxPoint temp;
3749 PyObject * _obj0 = 0;
3750 char *_kwnames[] = { "pt", NULL };
3751 char _ptemp[128];
3752
3753 self = self;
3754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPoint2DDoubleFromPoint",_kwnames,&_obj0))
3755 return NULL;
3756 {
3757 _arg0 = &temp;
3758 if (! wxPoint_helper(_obj0, &_arg0))
3759 return NULL;
3760 }
3761 {
3762 PyThreadState* __tstate = wxPyBeginAllowThreads();
3763 _result = (wxPoint2DDouble *)new_wxPoint2DDoubleFromPoint(*_arg0);
3764
3765 wxPyEndAllowThreads(__tstate);
3766 if (PyErr_Occurred()) return NULL;
3767 } if (_result) {
3768 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint2DDouble_p");
3769 _resultobj = Py_BuildValue("s",_ptemp);
3770 } else {
3771 Py_INCREF(Py_None);
3772 _resultobj = Py_None;
3773 }
3774 return _resultobj;
3775 }
3776
3777 #define wxPoint2DDouble_GetFloor(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFloor(_swigarg0,_swigarg1))
3778 static PyObject *_wrap_wxPoint2DDouble_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) {
3779 PyObject * _resultobj;
3780 wxPoint2DDouble * _arg0;
3781 int * _arg1;
3782 int temp;
3783 int * _arg2;
3784 int temp0;
3785 wxPoint2DDouble temp1;
3786 PyObject * _obj0 = 0;
3787 char *_kwnames[] = { "self", NULL };
3788
3789 self = self;
3790 {
3791 _arg1 = &temp;
3792 }
3793 {
3794 _arg2 = &temp0;
3795 }
3796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint2DDouble_GetFloor",_kwnames,&_obj0))
3797 return NULL;
3798 {
3799 _arg0 = &temp1;
3800 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3801 return NULL;
3802 }
3803 {
3804 PyThreadState* __tstate = wxPyBeginAllowThreads();
3805 wxPoint2DDouble_GetFloor(_arg0,_arg1,_arg2);
3806
3807 wxPyEndAllowThreads(__tstate);
3808 if (PyErr_Occurred()) return NULL;
3809 } Py_INCREF(Py_None);
3810 _resultobj = Py_None;
3811 {
3812 PyObject *o;
3813 o = PyInt_FromLong((long) (*_arg1));
3814 _resultobj = t_output_helper(_resultobj, o);
3815 }
3816 {
3817 PyObject *o;
3818 o = PyInt_FromLong((long) (*_arg2));
3819 _resultobj = t_output_helper(_resultobj, o);
3820 }
3821 return _resultobj;
3822 }
3823
3824 #define wxPoint2DDouble_GetRounded(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRounded(_swigarg0,_swigarg1))
3825 static PyObject *_wrap_wxPoint2DDouble_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) {
3826 PyObject * _resultobj;
3827 wxPoint2DDouble * _arg0;
3828 int * _arg1;
3829 int temp;
3830 int * _arg2;
3831 int temp0;
3832 wxPoint2DDouble temp1;
3833 PyObject * _obj0 = 0;
3834 char *_kwnames[] = { "self", NULL };
3835
3836 self = self;
3837 {
3838 _arg1 = &temp;
3839 }
3840 {
3841 _arg2 = &temp0;
3842 }
3843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint2DDouble_GetRounded",_kwnames,&_obj0))
3844 return NULL;
3845 {
3846 _arg0 = &temp1;
3847 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3848 return NULL;
3849 }
3850 {
3851 PyThreadState* __tstate = wxPyBeginAllowThreads();
3852 wxPoint2DDouble_GetRounded(_arg0,_arg1,_arg2);
3853
3854 wxPyEndAllowThreads(__tstate);
3855 if (PyErr_Occurred()) return NULL;
3856 } Py_INCREF(Py_None);
3857 _resultobj = Py_None;
3858 {
3859 PyObject *o;
3860 o = PyInt_FromLong((long) (*_arg1));
3861 _resultobj = t_output_helper(_resultobj, o);
3862 }
3863 {
3864 PyObject *o;
3865 o = PyInt_FromLong((long) (*_arg2));
3866 _resultobj = t_output_helper(_resultobj, o);
3867 }
3868 return _resultobj;
3869 }
3870
3871 #define wxPoint2DDouble_GetVectorLength(_swigobj) (_swigobj->GetVectorLength())
3872 static PyObject *_wrap_wxPoint2DDouble_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) {
3873 PyObject * _resultobj;
3874 double _result;
3875 wxPoint2DDouble * _arg0;
3876 wxPoint2DDouble temp;
3877 PyObject * _obj0 = 0;
3878 char *_kwnames[] = { "self", NULL };
3879
3880 self = self;
3881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint2DDouble_GetVectorLength",_kwnames,&_obj0))
3882 return NULL;
3883 {
3884 _arg0 = &temp;
3885 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3886 return NULL;
3887 }
3888 {
3889 PyThreadState* __tstate = wxPyBeginAllowThreads();
3890 _result = (double )wxPoint2DDouble_GetVectorLength(_arg0);
3891
3892 wxPyEndAllowThreads(__tstate);
3893 if (PyErr_Occurred()) return NULL;
3894 } _resultobj = Py_BuildValue("d",_result);
3895 return _resultobj;
3896 }
3897
3898 #define wxPoint2DDouble_GetVectorAngle(_swigobj) (_swigobj->GetVectorAngle())
3899 static PyObject *_wrap_wxPoint2DDouble_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) {
3900 PyObject * _resultobj;
3901 double _result;
3902 wxPoint2DDouble * _arg0;
3903 wxPoint2DDouble temp;
3904 PyObject * _obj0 = 0;
3905 char *_kwnames[] = { "self", NULL };
3906
3907 self = self;
3908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint2DDouble_GetVectorAngle",_kwnames,&_obj0))
3909 return NULL;
3910 {
3911 _arg0 = &temp;
3912 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3913 return NULL;
3914 }
3915 {
3916 PyThreadState* __tstate = wxPyBeginAllowThreads();
3917 _result = (double )wxPoint2DDouble_GetVectorAngle(_arg0);
3918
3919 wxPyEndAllowThreads(__tstate);
3920 if (PyErr_Occurred()) return NULL;
3921 } _resultobj = Py_BuildValue("d",_result);
3922 return _resultobj;
3923 }
3924
3925 #define wxPoint2DDouble_SetVectorLength(_swigobj,_swigarg0) (_swigobj->SetVectorLength(_swigarg0))
3926 static PyObject *_wrap_wxPoint2DDouble_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) {
3927 PyObject * _resultobj;
3928 wxPoint2DDouble * _arg0;
3929 double _arg1;
3930 wxPoint2DDouble temp;
3931 PyObject * _obj0 = 0;
3932 char *_kwnames[] = { "self","length", NULL };
3933
3934 self = self;
3935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxPoint2DDouble_SetVectorLength",_kwnames,&_obj0,&_arg1))
3936 return NULL;
3937 {
3938 _arg0 = &temp;
3939 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3940 return NULL;
3941 }
3942 {
3943 PyThreadState* __tstate = wxPyBeginAllowThreads();
3944 wxPoint2DDouble_SetVectorLength(_arg0,_arg1);
3945
3946 wxPyEndAllowThreads(__tstate);
3947 if (PyErr_Occurred()) return NULL;
3948 } Py_INCREF(Py_None);
3949 _resultobj = Py_None;
3950 return _resultobj;
3951 }
3952
3953 #define wxPoint2DDouble_SetVectorAngle(_swigobj,_swigarg0) (_swigobj->SetVectorAngle(_swigarg0))
3954 static PyObject *_wrap_wxPoint2DDouble_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) {
3955 PyObject * _resultobj;
3956 wxPoint2DDouble * _arg0;
3957 double _arg1;
3958 wxPoint2DDouble temp;
3959 PyObject * _obj0 = 0;
3960 char *_kwnames[] = { "self","degrees", NULL };
3961
3962 self = self;
3963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxPoint2DDouble_SetVectorAngle",_kwnames,&_obj0,&_arg1))
3964 return NULL;
3965 {
3966 _arg0 = &temp;
3967 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3968 return NULL;
3969 }
3970 {
3971 PyThreadState* __tstate = wxPyBeginAllowThreads();
3972 wxPoint2DDouble_SetVectorAngle(_arg0,_arg1);
3973
3974 wxPyEndAllowThreads(__tstate);
3975 if (PyErr_Occurred()) return NULL;
3976 } Py_INCREF(Py_None);
3977 _resultobj = Py_None;
3978 return _resultobj;
3979 }
3980
3981 #define wxPoint2DDouble_GetDistance(_swigobj,_swigarg0) (_swigobj->GetDistance(_swigarg0))
3982 static PyObject *_wrap_wxPoint2DDouble_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) {
3983 PyObject * _resultobj;
3984 double _result;
3985 wxPoint2DDouble * _arg0;
3986 wxPoint2DDouble * _arg1;
3987 wxPoint2DDouble temp;
3988 PyObject * _obj0 = 0;
3989 wxPoint2DDouble temp0;
3990 PyObject * _obj1 = 0;
3991 char *_kwnames[] = { "self","pt", NULL };
3992
3993 self = self;
3994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint2DDouble_GetDistance",_kwnames,&_obj0,&_obj1))
3995 return NULL;
3996 {
3997 _arg0 = &temp;
3998 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3999 return NULL;
4000 }
4001 {
4002 _arg1 = &temp0;
4003 if (! wxPoint2DDouble_helper(_obj1, &_arg1))
4004 return NULL;
4005 }
4006 {
4007 PyThreadState* __tstate = wxPyBeginAllowThreads();
4008 _result = (double )wxPoint2DDouble_GetDistance(_arg0,*_arg1);
4009
4010 wxPyEndAllowThreads(__tstate);
4011 if (PyErr_Occurred()) return NULL;
4012 } _resultobj = Py_BuildValue("d",_result);
4013 return _resultobj;
4014 }
4015
4016 #define wxPoint2DDouble_GetDistanceSquare(_swigobj,_swigarg0) (_swigobj->GetDistanceSquare(_swigarg0))
4017 static PyObject *_wrap_wxPoint2DDouble_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) {
4018 PyObject * _resultobj;
4019 double _result;
4020 wxPoint2DDouble * _arg0;
4021 wxPoint2DDouble * _arg1;
4022 wxPoint2DDouble temp;
4023 PyObject * _obj0 = 0;
4024 wxPoint2DDouble temp0;
4025 PyObject * _obj1 = 0;
4026 char *_kwnames[] = { "self","pt", NULL };
4027
4028 self = self;
4029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint2DDouble_GetDistanceSquare",_kwnames,&_obj0,&_obj1))
4030 return NULL;
4031 {
4032 _arg0 = &temp;
4033 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
4034 return NULL;
4035 }
4036 {
4037 _arg1 = &temp0;
4038 if (! wxPoint2DDouble_helper(_obj1, &_arg1))
4039 return NULL;
4040 }
4041 {
4042 PyThreadState* __tstate = wxPyBeginAllowThreads();
4043 _result = (double )wxPoint2DDouble_GetDistanceSquare(_arg0,*_arg1);
4044
4045 wxPyEndAllowThreads(__tstate);
4046 if (PyErr_Occurred()) return NULL;
4047 } _resultobj = Py_BuildValue("d",_result);
4048 return _resultobj;
4049 }
4050
4051 #define wxPoint2DDouble_GetDotProduct(_swigobj,_swigarg0) (_swigobj->GetDotProduct(_swigarg0))
4052 static PyObject *_wrap_wxPoint2DDouble_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) {
4053 PyObject * _resultobj;
4054 double _result;
4055 wxPoint2DDouble * _arg0;
4056 wxPoint2DDouble * _arg1;
4057 wxPoint2DDouble temp;
4058 PyObject * _obj0 = 0;
4059 wxPoint2DDouble temp0;
4060 PyObject * _obj1 = 0;
4061 char *_kwnames[] = { "self","vec", NULL };
4062
4063 self = self;
4064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint2DDouble_GetDotProduct",_kwnames,&_obj0,&_obj1))
4065 return NULL;
4066 {
4067 _arg0 = &temp;
4068 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
4069 return NULL;
4070 }
4071 {
4072 _arg1 = &temp0;
4073 if (! wxPoint2DDouble_helper(_obj1, &_arg1))
4074 return NULL;
4075 }
4076 {
4077 PyThreadState* __tstate = wxPyBeginAllowThreads();
4078 _result = (double )wxPoint2DDouble_GetDotProduct(_arg0,*_arg1);
4079
4080 wxPyEndAllowThreads(__tstate);
4081 if (PyErr_Occurred()) return NULL;
4082 } _resultobj = Py_BuildValue("d",_result);
4083 return _resultobj;
4084 }
4085
4086 #define wxPoint2DDouble_GetCrossProduct(_swigobj,_swigarg0) (_swigobj->GetCrossProduct(_swigarg0))
4087 static PyObject *_wrap_wxPoint2DDouble_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) {
4088 PyObject * _resultobj;
4089 double _result;
4090 wxPoint2DDouble * _arg0;
4091 wxPoint2DDouble * _arg1;
4092 wxPoint2DDouble temp;
4093 PyObject * _obj0 = 0;
4094 wxPoint2DDouble temp0;
4095 PyObject * _obj1 = 0;
4096 char *_kwnames[] = { "self","vec", NULL };
4097
4098 self = self;
4099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint2DDouble_GetCrossProduct",_kwnames,&_obj0,&_obj1))
4100 return NULL;
4101 {
4102 _arg0 = &temp;
4103 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
4104 return NULL;
4105 }
4106 {
4107 _arg1 = &temp0;
4108 if (! wxPoint2DDouble_helper(_obj1, &_arg1))
4109 return NULL;
4110 }
4111 {
4112 PyThreadState* __tstate = wxPyBeginAllowThreads();
4113 _result = (double )wxPoint2DDouble_GetCrossProduct(_arg0,*_arg1);
4114
4115 wxPyEndAllowThreads(__tstate);
4116 if (PyErr_Occurred()) return NULL;
4117 } _resultobj = Py_BuildValue("d",_result);
4118 return _resultobj;
4119 }
4120
4121 static void wxPoint2DDouble_Set(wxPoint2DDouble *self,double x,double y) {
4122 self->m_x = x;
4123 self->m_y = y;
4124 }
4125 static PyObject *_wrap_wxPoint2DDouble_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
4126 PyObject * _resultobj;
4127 wxPoint2DDouble * _arg0;
4128 double _arg1 = (double ) 0;
4129 double _arg2 = (double ) 0;
4130 wxPoint2DDouble temp;
4131 PyObject * _obj0 = 0;
4132 char *_kwnames[] = { "self","x","y", NULL };
4133
4134 self = self;
4135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|dd:wxPoint2DDouble_Set",_kwnames,&_obj0,&_arg1,&_arg2))
4136 return NULL;
4137 {
4138 _arg0 = &temp;
4139 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
4140 return NULL;
4141 }
4142 {
4143 PyThreadState* __tstate = wxPyBeginAllowThreads();
4144 wxPoint2DDouble_Set(_arg0,_arg1,_arg2);
4145
4146 wxPyEndAllowThreads(__tstate);
4147 if (PyErr_Occurred()) return NULL;
4148 } Py_INCREF(Py_None);
4149 _resultobj = Py_None;
4150 return _resultobj;
4151 }
4152
4153 static wxPoint2DDouble wxPoint2DDouble___neg__(wxPoint2DDouble *self) { return -(*self); }
4154 static PyObject *_wrap_wxPoint2DDouble___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
4155 PyObject * _resultobj;
4156 wxPoint2DDouble * _result;
4157 wxPoint2DDouble * _arg0;
4158 wxPoint2DDouble temp;
4159 PyObject * _obj0 = 0;
4160 char *_kwnames[] = { "self", NULL };
4161 char _ptemp[128];
4162
4163 self = self;
4164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint2DDouble___neg__",_kwnames,&_obj0))
4165 return NULL;
4166 {
4167 _arg0 = &temp;
4168 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
4169 return NULL;
4170 }
4171 {
4172 PyThreadState* __tstate = wxPyBeginAllowThreads();
4173 _result = new wxPoint2DDouble (wxPoint2DDouble___neg__(_arg0));
4174
4175 wxPyEndAllowThreads(__tstate);
4176 if (PyErr_Occurred()) return NULL;
4177 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint2DDouble_p");
4178 _resultobj = Py_BuildValue("s",_ptemp);
4179 return _resultobj;
4180 }
4181
4182 static wxPoint2DDouble & wxPoint2DDouble___iadd__(wxPoint2DDouble *self,const wxPoint2DDouble & pt) { return (*self) += pt; }
4183 static PyObject *_wrap_wxPoint2DDouble___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
4184 PyObject * _resultobj;
4185 wxPoint2DDouble * _result;
4186 wxPoint2DDouble * _arg0;
4187 wxPoint2DDouble * _arg1;
4188 wxPoint2DDouble temp;
4189 PyObject * _obj0 = 0;
4190 wxPoint2DDouble temp0;
4191 PyObject * _obj1 = 0;
4192 char *_kwnames[] = { "self","pt", NULL };
4193 char _ptemp[128];
4194
4195 self = self;
4196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint2DDouble___iadd__",_kwnames,&_obj0,&_obj1))
4197 return NULL;
4198 {
4199 _arg0 = &temp;
4200 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
4201 return NULL;
4202 }
4203 {
4204 _arg1 = &temp0;
4205 if (! wxPoint2DDouble_helper(_obj1, &_arg1))
4206 return NULL;
4207 }
4208 {
4209 PyThreadState* __tstate = wxPyBeginAllowThreads();
4210 wxPoint2DDouble & _result_ref = wxPoint2DDouble___iadd__(_arg0,*_arg1);
4211 _result = (wxPoint2DDouble *) &_result_ref;
4212
4213 wxPyEndAllowThreads(__tstate);
4214 if (PyErr_Occurred()) return NULL;
4215 } if (_result) {
4216 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint2DDouble_p");
4217 _resultobj = Py_BuildValue("s",_ptemp);
4218 } else {
4219 Py_INCREF(Py_None);
4220 _resultobj = Py_None;
4221 }
4222 return _resultobj;
4223 }
4224
4225 static wxPoint2DDouble & wxPoint2DDouble___isub__(wxPoint2DDouble *self,const wxPoint2DDouble & pt) { return (*self) -= pt; }
4226 static PyObject *_wrap_wxPoint2DDouble___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
4227 PyObject * _resultobj;
4228 wxPoint2DDouble * _result;
4229 wxPoint2DDouble * _arg0;
4230 wxPoint2DDouble * _arg1;
4231 wxPoint2DDouble temp;
4232 PyObject * _obj0 = 0;
4233 wxPoint2DDouble temp0;
4234 PyObject * _obj1 = 0;
4235 char *_kwnames[] = { "self","pt", NULL };
4236 char _ptemp[128];
4237
4238 self = self;
4239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint2DDouble___isub__",_kwnames,&_obj0,&_obj1))
4240 return NULL;
4241 {
4242 _arg0 = &temp;
4243 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
4244 return NULL;
4245 }
4246 {
4247 _arg1 = &temp0;
4248 if (! wxPoint2DDouble_helper(_obj1, &_arg1))
4249 return NULL;
4250 }
4251 {
4252 PyThreadState* __tstate = wxPyBeginAllowThreads();
4253 wxPoint2DDouble & _result_ref = wxPoint2DDouble___isub__(_arg0,*_arg1);
4254 _result = (wxPoint2DDouble *) &_result_ref;
4255
4256 wxPyEndAllowThreads(__tstate);
4257 if (PyErr_Occurred()) return NULL;
4258 } if (_result) {
4259 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint2DDouble_p");
4260 _resultobj = Py_BuildValue("s",_ptemp);
4261 } else {
4262 Py_INCREF(Py_None);
4263 _resultobj = Py_None;
4264 }
4265 return _resultobj;
4266 }
4267
4268 static wxPoint2DDouble & wxPoint2DDouble___imul__(wxPoint2DDouble *self,const wxPoint2DDouble & pt) { return (*self) *= pt; }
4269 static PyObject *_wrap_wxPoint2DDouble___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
4270 PyObject * _resultobj;
4271 wxPoint2DDouble * _result;
4272 wxPoint2DDouble * _arg0;
4273 wxPoint2DDouble * _arg1;
4274 wxPoint2DDouble temp;
4275 PyObject * _obj0 = 0;
4276 wxPoint2DDouble temp0;
4277 PyObject * _obj1 = 0;
4278 char *_kwnames[] = { "self","pt", NULL };
4279 char _ptemp[128];
4280
4281 self = self;
4282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint2DDouble___imul__",_kwnames,&_obj0,&_obj1))
4283 return NULL;
4284 {
4285 _arg0 = &temp;
4286 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
4287 return NULL;
4288 }
4289 {
4290 _arg1 = &temp0;
4291 if (! wxPoint2DDouble_helper(_obj1, &_arg1))
4292 return NULL;
4293 }
4294 {
4295 PyThreadState* __tstate = wxPyBeginAllowThreads();
4296 wxPoint2DDouble & _result_ref = wxPoint2DDouble___imul__(_arg0,*_arg1);
4297 _result = (wxPoint2DDouble *) &_result_ref;
4298
4299 wxPyEndAllowThreads(__tstate);
4300 if (PyErr_Occurred()) return NULL;
4301 } if (_result) {
4302 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint2DDouble_p");
4303 _resultobj = Py_BuildValue("s",_ptemp);
4304 } else {
4305 Py_INCREF(Py_None);
4306 _resultobj = Py_None;
4307 }
4308 return _resultobj;
4309 }
4310
4311 static wxPoint2DDouble & wxPoint2DDouble___idiv__(wxPoint2DDouble *self,const wxPoint2DDouble & pt) { return (*self) /= pt; }
4312 static PyObject *_wrap_wxPoint2DDouble___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) {
4313 PyObject * _resultobj;
4314 wxPoint2DDouble * _result;
4315 wxPoint2DDouble * _arg0;
4316 wxPoint2DDouble * _arg1;
4317 wxPoint2DDouble temp;
4318 PyObject * _obj0 = 0;
4319 wxPoint2DDouble temp0;
4320 PyObject * _obj1 = 0;
4321 char *_kwnames[] = { "self","pt", NULL };
4322 char _ptemp[128];
4323
4324 self = self;
4325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint2DDouble___idiv__",_kwnames,&_obj0,&_obj1))
4326 return NULL;
4327 {
4328 _arg0 = &temp;
4329 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
4330 return NULL;
4331 }
4332 {
4333 _arg1 = &temp0;
4334 if (! wxPoint2DDouble_helper(_obj1, &_arg1))
4335 return NULL;
4336 }
4337 {
4338 PyThreadState* __tstate = wxPyBeginAllowThreads();
4339 wxPoint2DDouble & _result_ref = wxPoint2DDouble___idiv__(_arg0,*_arg1);
4340 _result = (wxPoint2DDouble *) &_result_ref;
4341
4342 wxPyEndAllowThreads(__tstate);
4343 if (PyErr_Occurred()) return NULL;
4344 } if (_result) {
4345 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint2DDouble_p");
4346 _resultobj = Py_BuildValue("s",_ptemp);
4347 } else {
4348 Py_INCREF(Py_None);
4349 _resultobj = Py_None;
4350 }
4351 return _resultobj;
4352 }
4353
4354 static bool wxPoint2DDouble___eq__(wxPoint2DDouble *self,PyObject * obj) {
4355 wxPoint2DDouble tmp;
4356 wxPoint2DDouble* ptr = &tmp;
4357 if (obj == Py_None) return FALSE;
4358 wxPyBLOCK_THREADS(bool success = wxPoint2DDouble_helper(obj, &ptr); PyErr_Clear());
4359 if (! success) return FALSE;
4360 return *self == *ptr;
4361 }
4362 static PyObject *_wrap_wxPoint2DDouble___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
4363 PyObject * _resultobj;
4364 bool _result;
4365 wxPoint2DDouble * _arg0;
4366 PyObject * _arg1;
4367 wxPoint2DDouble temp;
4368 PyObject * _obj0 = 0;
4369 PyObject * _obj1 = 0;
4370 char *_kwnames[] = { "self","obj", NULL };
4371
4372 self = self;
4373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint2DDouble___eq__",_kwnames,&_obj0,&_obj1))
4374 return NULL;
4375 {
4376 _arg0 = &temp;
4377 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
4378 return NULL;
4379 }
4380 {
4381 _arg1 = _obj1;
4382 }
4383 {
4384 PyThreadState* __tstate = wxPyBeginAllowThreads();
4385 _result = (bool )wxPoint2DDouble___eq__(_arg0,_arg1);
4386
4387 wxPyEndAllowThreads(__tstate);
4388 if (PyErr_Occurred()) return NULL;
4389 } _resultobj = Py_BuildValue("i",_result);
4390 return _resultobj;
4391 }
4392
4393 static bool wxPoint2DDouble___ne__(wxPoint2DDouble *self,PyObject * obj) {
4394 wxPoint2DDouble tmp;
4395 wxPoint2DDouble* ptr = &tmp;
4396 if (obj == Py_None) return TRUE;
4397 wxPyBLOCK_THREADS(bool success = wxPoint2DDouble_helper(obj, &ptr); PyErr_Clear());
4398 if (! success) return TRUE;
4399 return *self != *ptr;
4400 }
4401 static PyObject *_wrap_wxPoint2DDouble___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
4402 PyObject * _resultobj;
4403 bool _result;
4404 wxPoint2DDouble * _arg0;
4405 PyObject * _arg1;
4406 wxPoint2DDouble temp;
4407 PyObject * _obj0 = 0;
4408 PyObject * _obj1 = 0;
4409 char *_kwnames[] = { "self","obj", NULL };
4410
4411 self = self;
4412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint2DDouble___ne__",_kwnames,&_obj0,&_obj1))
4413 return NULL;
4414 {
4415 _arg0 = &temp;
4416 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
4417 return NULL;
4418 }
4419 {
4420 _arg1 = _obj1;
4421 }
4422 {
4423 PyThreadState* __tstate = wxPyBeginAllowThreads();
4424 _result = (bool )wxPoint2DDouble___ne__(_arg0,_arg1);
4425
4426 wxPyEndAllowThreads(__tstate);
4427 if (PyErr_Occurred()) return NULL;
4428 } _resultobj = Py_BuildValue("i",_result);
4429 return _resultobj;
4430 }
4431
4432 static PyObject * wxPoint2DDouble_asTuple(wxPoint2DDouble *self) {
4433 wxPyBeginBlockThreads();
4434 PyObject* tup = PyTuple_New(2);
4435 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x));
4436 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y));
4437 wxPyEndBlockThreads();
4438 return tup;
4439 }
4440 static PyObject *_wrap_wxPoint2DDouble_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4441 PyObject * _resultobj;
4442 PyObject * _result;
4443 wxPoint2DDouble * _arg0;
4444 wxPoint2DDouble temp;
4445 PyObject * _obj0 = 0;
4446 char *_kwnames[] = { "self", NULL };
4447
4448 self = self;
4449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint2DDouble_asTuple",_kwnames,&_obj0))
4450 return NULL;
4451 {
4452 _arg0 = &temp;
4453 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
4454 return NULL;
4455 }
4456 {
4457 PyThreadState* __tstate = wxPyBeginAllowThreads();
4458 _result = (PyObject *)wxPoint2DDouble_asTuple(_arg0);
4459
4460 wxPyEndAllowThreads(__tstate);
4461 if (PyErr_Occurred()) return NULL;
4462 }{
4463 _resultobj = _result;
4464 }
4465 return _resultobj;
4466 }
4467
4468 static void *SwigwxIndividualLayoutConstraintTowxObject(void *ptr) {
4469 wxIndividualLayoutConstraint *src;
4470 wxObject *dest;
4471 src = (wxIndividualLayoutConstraint *) ptr;
4472 dest = (wxObject *) src;
4473 return (void *) dest;
4474 }
4475
4476 #define wxIndividualLayoutConstraint_Above(_swigobj,_swigarg0,_swigarg1) (_swigobj->Above(_swigarg0,_swigarg1))
4477 static PyObject *_wrap_wxIndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) {
4478 PyObject * _resultobj;
4479 wxIndividualLayoutConstraint * _arg0;
4480 wxWindow * _arg1;
4481 int _arg2 = (int ) 0;
4482 PyObject * _argo0 = 0;
4483 PyObject * _argo1 = 0;
4484 char *_kwnames[] = { "self","otherWin","margin", NULL };
4485
4486 self = self;
4487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxIndividualLayoutConstraint_Above",_kwnames,&_argo0,&_argo1,&_arg2))
4488 return NULL;
4489 if (_argo0) {
4490 if (_argo0 == Py_None) { _arg0 = NULL; }
4491 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) {
4492 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_Above. Expected _wxIndividualLayoutConstraint_p.");
4493 return NULL;
4494 }
4495 }
4496 if (_argo1) {
4497 if (_argo1 == Py_None) { _arg1 = NULL; }
4498 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4499 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIndividualLayoutConstraint_Above. Expected _wxWindow_p.");
4500 return NULL;
4501 }
4502 }
4503 {
4504 PyThreadState* __tstate = wxPyBeginAllowThreads();
4505 wxIndividualLayoutConstraint_Above(_arg0,_arg1,_arg2);
4506
4507 wxPyEndAllowThreads(__tstate);
4508 if (PyErr_Occurred()) return NULL;
4509 } Py_INCREF(Py_None);
4510 _resultobj = Py_None;
4511 return _resultobj;
4512 }
4513
4514 #define wxIndividualLayoutConstraint_Absolute(_swigobj,_swigarg0) (_swigobj->Absolute(_swigarg0))
4515 static PyObject *_wrap_wxIndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) {
4516 PyObject * _resultobj;
4517 wxIndividualLayoutConstraint * _arg0;
4518 int _arg1;
4519 PyObject * _argo0 = 0;
4520 char *_kwnames[] = { "self","value", NULL };
4521
4522 self = self;
4523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIndividualLayoutConstraint_Absolute",_kwnames,&_argo0,&_arg1))
4524 return NULL;
4525 if (_argo0) {
4526 if (_argo0 == Py_None) { _arg0 = NULL; }
4527 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) {
4528 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_Absolute. Expected _wxIndividualLayoutConstraint_p.");
4529 return NULL;
4530 }
4531 }
4532 {
4533 PyThreadState* __tstate = wxPyBeginAllowThreads();
4534 wxIndividualLayoutConstraint_Absolute(_arg0,_arg1);
4535
4536 wxPyEndAllowThreads(__tstate);
4537 if (PyErr_Occurred()) return NULL;
4538 } Py_INCREF(Py_None);
4539 _resultobj = Py_None;
4540 return _resultobj;
4541 }
4542
4543 #define wxIndividualLayoutConstraint_AsIs(_swigobj) (_swigobj->AsIs())
4544 static PyObject *_wrap_wxIndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) {
4545 PyObject * _resultobj;
4546 wxIndividualLayoutConstraint * _arg0;
4547 PyObject * _argo0 = 0;
4548 char *_kwnames[] = { "self", NULL };
4549
4550 self = self;
4551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIndividualLayoutConstraint_AsIs",_kwnames,&_argo0))
4552 return NULL;
4553 if (_argo0) {
4554 if (_argo0 == Py_None) { _arg0 = NULL; }
4555 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) {
4556 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_AsIs. Expected _wxIndividualLayoutConstraint_p.");
4557 return NULL;
4558 }
4559 }
4560 {
4561 PyThreadState* __tstate = wxPyBeginAllowThreads();
4562 wxIndividualLayoutConstraint_AsIs(_arg0);
4563
4564 wxPyEndAllowThreads(__tstate);
4565 if (PyErr_Occurred()) return NULL;
4566 } Py_INCREF(Py_None);
4567 _resultobj = Py_None;
4568 return _resultobj;
4569 }
4570
4571 #define wxIndividualLayoutConstraint_Below(_swigobj,_swigarg0,_swigarg1) (_swigobj->Below(_swigarg0,_swigarg1))
4572 static PyObject *_wrap_wxIndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) {
4573 PyObject * _resultobj;
4574 wxIndividualLayoutConstraint * _arg0;
4575 wxWindow * _arg1;
4576 int _arg2 = (int ) 0;
4577 PyObject * _argo0 = 0;
4578 PyObject * _argo1 = 0;
4579 char *_kwnames[] = { "self","otherWin","margin", NULL };
4580
4581 self = self;
4582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxIndividualLayoutConstraint_Below",_kwnames,&_argo0,&_argo1,&_arg2))
4583 return NULL;
4584 if (_argo0) {
4585 if (_argo0 == Py_None) { _arg0 = NULL; }
4586 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) {
4587 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_Below. Expected _wxIndividualLayoutConstraint_p.");
4588 return NULL;
4589 }
4590 }
4591 if (_argo1) {
4592 if (_argo1 == Py_None) { _arg1 = NULL; }
4593 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4594 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIndividualLayoutConstraint_Below. Expected _wxWindow_p.");
4595 return NULL;
4596 }
4597 }
4598 {
4599 PyThreadState* __tstate = wxPyBeginAllowThreads();
4600 wxIndividualLayoutConstraint_Below(_arg0,_arg1,_arg2);
4601
4602 wxPyEndAllowThreads(__tstate);
4603 if (PyErr_Occurred()) return NULL;
4604 } Py_INCREF(Py_None);
4605 _resultobj = Py_None;
4606 return _resultobj;
4607 }
4608
4609 #define wxIndividualLayoutConstraint_Unconstrained(_swigobj) (_swigobj->Unconstrained())
4610 static PyObject *_wrap_wxIndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) {
4611 PyObject * _resultobj;
4612 wxIndividualLayoutConstraint * _arg0;
4613 PyObject * _argo0 = 0;
4614 char *_kwnames[] = { "self", NULL };
4615
4616 self = self;
4617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIndividualLayoutConstraint_Unconstrained",_kwnames,&_argo0))
4618 return NULL;
4619 if (_argo0) {
4620 if (_argo0 == Py_None) { _arg0 = NULL; }
4621 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) {
4622 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_Unconstrained. Expected _wxIndividualLayoutConstraint_p.");
4623 return NULL;
4624 }
4625 }
4626 {
4627 PyThreadState* __tstate = wxPyBeginAllowThreads();
4628 wxIndividualLayoutConstraint_Unconstrained(_arg0);
4629
4630 wxPyEndAllowThreads(__tstate);
4631 if (PyErr_Occurred()) return NULL;
4632 } Py_INCREF(Py_None);
4633 _resultobj = Py_None;
4634 return _resultobj;
4635 }
4636
4637 #define wxIndividualLayoutConstraint_LeftOf(_swigobj,_swigarg0,_swigarg1) (_swigobj->LeftOf(_swigarg0,_swigarg1))
4638 static PyObject *_wrap_wxIndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) {
4639 PyObject * _resultobj;
4640 wxIndividualLayoutConstraint * _arg0;
4641 wxWindow * _arg1;
4642 int _arg2 = (int ) 0;
4643 PyObject * _argo0 = 0;
4644 PyObject * _argo1 = 0;
4645 char *_kwnames[] = { "self","otherWin","margin", NULL };
4646
4647 self = self;
4648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxIndividualLayoutConstraint_LeftOf",_kwnames,&_argo0,&_argo1,&_arg2))
4649 return NULL;
4650 if (_argo0) {
4651 if (_argo0 == Py_None) { _arg0 = NULL; }
4652 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) {
4653 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_LeftOf. Expected _wxIndividualLayoutConstraint_p.");
4654 return NULL;
4655 }
4656 }
4657 if (_argo1) {
4658 if (_argo1 == Py_None) { _arg1 = NULL; }
4659 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4660 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIndividualLayoutConstraint_LeftOf. Expected _wxWindow_p.");
4661 return NULL;
4662 }
4663 }
4664 {
4665 PyThreadState* __tstate = wxPyBeginAllowThreads();
4666 wxIndividualLayoutConstraint_LeftOf(_arg0,_arg1,_arg2);
4667
4668 wxPyEndAllowThreads(__tstate);
4669 if (PyErr_Occurred()) return NULL;
4670 } Py_INCREF(Py_None);
4671 _resultobj = Py_None;
4672 return _resultobj;
4673 }
4674
4675 #define wxIndividualLayoutConstraint_PercentOf(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PercentOf(_swigarg0,_swigarg1,_swigarg2))
4676 static PyObject *_wrap_wxIndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) {
4677 PyObject * _resultobj;
4678 wxIndividualLayoutConstraint * _arg0;
4679 wxWindow * _arg1;
4680 wxEdge _arg2;
4681 int _arg3;
4682 PyObject * _argo0 = 0;
4683 PyObject * _argo1 = 0;
4684 char *_kwnames[] = { "self","otherWin","edge","percent", NULL };
4685
4686 self = self;
4687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxIndividualLayoutConstraint_PercentOf",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
4688 return NULL;
4689 if (_argo0) {
4690 if (_argo0 == Py_None) { _arg0 = NULL; }
4691 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) {
4692 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_PercentOf. Expected _wxIndividualLayoutConstraint_p.");
4693 return NULL;
4694 }
4695 }
4696 if (_argo1) {
4697 if (_argo1 == Py_None) { _arg1 = NULL; }
4698 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4699 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIndividualLayoutConstraint_PercentOf. Expected _wxWindow_p.");
4700 return NULL;
4701 }
4702 }
4703 {
4704 PyThreadState* __tstate = wxPyBeginAllowThreads();
4705 wxIndividualLayoutConstraint_PercentOf(_arg0,_arg1,_arg2,_arg3);
4706
4707 wxPyEndAllowThreads(__tstate);
4708 if (PyErr_Occurred()) return NULL;
4709 } Py_INCREF(Py_None);
4710 _resultobj = Py_None;
4711 return _resultobj;
4712 }
4713
4714 #define wxIndividualLayoutConstraint_RightOf(_swigobj,_swigarg0,_swigarg1) (_swigobj->RightOf(_swigarg0,_swigarg1))
4715 static PyObject *_wrap_wxIndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) {
4716 PyObject * _resultobj;
4717 wxIndividualLayoutConstraint * _arg0;
4718 wxWindow * _arg1;
4719 int _arg2 = (int ) 0;
4720 PyObject * _argo0 = 0;
4721 PyObject * _argo1 = 0;
4722 char *_kwnames[] = { "self","otherWin","margin", NULL };
4723
4724 self = self;
4725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxIndividualLayoutConstraint_RightOf",_kwnames,&_argo0,&_argo1,&_arg2))
4726 return NULL;
4727 if (_argo0) {
4728 if (_argo0 == Py_None) { _arg0 = NULL; }
4729 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) {
4730 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_RightOf. Expected _wxIndividualLayoutConstraint_p.");
4731 return NULL;
4732 }
4733 }
4734 if (_argo1) {
4735 if (_argo1 == Py_None) { _arg1 = NULL; }
4736 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4737 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIndividualLayoutConstraint_RightOf. Expected _wxWindow_p.");
4738 return NULL;
4739 }
4740 }
4741 {
4742 PyThreadState* __tstate = wxPyBeginAllowThreads();
4743 wxIndividualLayoutConstraint_RightOf(_arg0,_arg1,_arg2);
4744
4745 wxPyEndAllowThreads(__tstate);
4746 if (PyErr_Occurred()) return NULL;
4747 } Py_INCREF(Py_None);
4748 _resultobj = Py_None;
4749 return _resultobj;
4750 }
4751
4752 #define wxIndividualLayoutConstraint_SameAs(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SameAs(_swigarg0,_swigarg1,_swigarg2))
4753 static PyObject *_wrap_wxIndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) {
4754 PyObject * _resultobj;
4755 wxIndividualLayoutConstraint * _arg0;
4756 wxWindow * _arg1;
4757 wxEdge _arg2;
4758 int _arg3 = (int ) 0;
4759 PyObject * _argo0 = 0;
4760 PyObject * _argo1 = 0;
4761 char *_kwnames[] = { "self","otherWin","edge","margin", NULL };
4762
4763 self = self;
4764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxIndividualLayoutConstraint_SameAs",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
4765 return NULL;
4766 if (_argo0) {
4767 if (_argo0 == Py_None) { _arg0 = NULL; }
4768 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) {
4769 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_SameAs. Expected _wxIndividualLayoutConstraint_p.");
4770 return NULL;
4771 }
4772 }
4773 if (_argo1) {
4774 if (_argo1 == Py_None) { _arg1 = NULL; }
4775 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4776 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIndividualLayoutConstraint_SameAs. Expected _wxWindow_p.");
4777 return NULL;
4778 }
4779 }
4780 {
4781 PyThreadState* __tstate = wxPyBeginAllowThreads();
4782 wxIndividualLayoutConstraint_SameAs(_arg0,_arg1,_arg2,_arg3);
4783
4784 wxPyEndAllowThreads(__tstate);
4785 if (PyErr_Occurred()) return NULL;
4786 } Py_INCREF(Py_None);
4787 _resultobj = Py_None;
4788 return _resultobj;
4789 }
4790
4791 #define wxIndividualLayoutConstraint_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4792 static PyObject *_wrap_wxIndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
4793 PyObject * _resultobj;
4794 wxIndividualLayoutConstraint * _arg0;
4795 wxRelationship _arg1;
4796 wxWindow * _arg2;
4797 wxEdge _arg3;
4798 int _arg4 = (int ) 0;
4799 int _arg5 = (int ) 0;
4800 PyObject * _argo0 = 0;
4801 PyObject * _argo2 = 0;
4802 char *_kwnames[] = { "self","rel","otherWin","otherEdge","value","margin", NULL };
4803
4804 self = self;
4805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOi|ii:wxIndividualLayoutConstraint_Set",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5))
4806 return NULL;
4807 if (_argo0) {
4808 if (_argo0 == Py_None) { _arg0 = NULL; }
4809 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) {
4810 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_Set. Expected _wxIndividualLayoutConstraint_p.");
4811 return NULL;
4812 }
4813 }
4814 if (_argo2) {
4815 if (_argo2 == Py_None) { _arg2 = NULL; }
4816 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
4817 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxIndividualLayoutConstraint_Set. Expected _wxWindow_p.");
4818 return NULL;
4819 }
4820 }
4821 {
4822 PyThreadState* __tstate = wxPyBeginAllowThreads();
4823 wxIndividualLayoutConstraint_Set(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
4824
4825 wxPyEndAllowThreads(__tstate);
4826 if (PyErr_Occurred()) return NULL;
4827 } Py_INCREF(Py_None);
4828 _resultobj = Py_None;
4829 return _resultobj;
4830 }
4831
4832 static void *SwigwxLayoutConstraintsTowxObject(void *ptr) {
4833 wxLayoutConstraints *src;
4834 wxObject *dest;
4835 src = (wxLayoutConstraints *) ptr;
4836 dest = (wxObject *) src;
4837 return (void *) dest;
4838 }
4839
4840 #define new_wxLayoutConstraints() (new wxLayoutConstraints())
4841 static PyObject *_wrap_new_wxLayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
4842 PyObject * _resultobj;
4843 wxLayoutConstraints * _result;
4844 char *_kwnames[] = { NULL };
4845 char _ptemp[128];
4846
4847 self = self;
4848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLayoutConstraints",_kwnames))
4849 return NULL;
4850 {
4851 PyThreadState* __tstate = wxPyBeginAllowThreads();
4852 _result = (wxLayoutConstraints *)new_wxLayoutConstraints();
4853
4854 wxPyEndAllowThreads(__tstate);
4855 if (PyErr_Occurred()) return NULL;
4856 } if (_result) {
4857 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p");
4858 _resultobj = Py_BuildValue("s",_ptemp);
4859 } else {
4860 Py_INCREF(Py_None);
4861 _resultobj = Py_None;
4862 }
4863 return _resultobj;
4864 }
4865
4866 #define wxLayoutConstraints_bottom_get(_swigobj) (&_swigobj->bottom)
4867 static PyObject *_wrap_wxLayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4868 PyObject * _resultobj;
4869 wxIndividualLayoutConstraint * _result;
4870 wxLayoutConstraints * _arg0;
4871 PyObject * _argo0 = 0;
4872 char *_kwnames[] = { "self", NULL };
4873 char _ptemp[128];
4874
4875 self = self;
4876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_bottom_get",_kwnames,&_argo0))
4877 return NULL;
4878 if (_argo0) {
4879 if (_argo0 == Py_None) { _arg0 = NULL; }
4880 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) {
4881 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_bottom_get. Expected _wxLayoutConstraints_p.");
4882 return NULL;
4883 }
4884 }
4885 {
4886 PyThreadState* __tstate = wxPyBeginAllowThreads();
4887 _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_bottom_get(_arg0);
4888
4889 wxPyEndAllowThreads(__tstate);
4890 if (PyErr_Occurred()) return NULL;
4891 } if (_result) {
4892 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p");
4893 _resultobj = Py_BuildValue("s",_ptemp);
4894 } else {
4895 Py_INCREF(Py_None);
4896 _resultobj = Py_None;
4897 }
4898 return _resultobj;
4899 }
4900
4901 #define wxLayoutConstraints_centreX_get(_swigobj) (&_swigobj->centreX)
4902 static PyObject *_wrap_wxLayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4903 PyObject * _resultobj;
4904 wxIndividualLayoutConstraint * _result;
4905 wxLayoutConstraints * _arg0;
4906 PyObject * _argo0 = 0;
4907 char *_kwnames[] = { "self", NULL };
4908 char _ptemp[128];
4909
4910 self = self;
4911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_centreX_get",_kwnames,&_argo0))
4912 return NULL;
4913 if (_argo0) {
4914 if (_argo0 == Py_None) { _arg0 = NULL; }
4915 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) {
4916 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_centreX_get. Expected _wxLayoutConstraints_p.");
4917 return NULL;
4918 }
4919 }
4920 {
4921 PyThreadState* __tstate = wxPyBeginAllowThreads();
4922 _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_centreX_get(_arg0);
4923
4924 wxPyEndAllowThreads(__tstate);
4925 if (PyErr_Occurred()) return NULL;
4926 } if (_result) {
4927 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p");
4928 _resultobj = Py_BuildValue("s",_ptemp);
4929 } else {
4930 Py_INCREF(Py_None);
4931 _resultobj = Py_None;
4932 }
4933 return _resultobj;
4934 }
4935
4936 #define wxLayoutConstraints_centreY_get(_swigobj) (&_swigobj->centreY)
4937 static PyObject *_wrap_wxLayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4938 PyObject * _resultobj;
4939 wxIndividualLayoutConstraint * _result;
4940 wxLayoutConstraints * _arg0;
4941 PyObject * _argo0 = 0;
4942 char *_kwnames[] = { "self", NULL };
4943 char _ptemp[128];
4944
4945 self = self;
4946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_centreY_get",_kwnames,&_argo0))
4947 return NULL;
4948 if (_argo0) {
4949 if (_argo0 == Py_None) { _arg0 = NULL; }
4950 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) {
4951 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_centreY_get. Expected _wxLayoutConstraints_p.");
4952 return NULL;
4953 }
4954 }
4955 {
4956 PyThreadState* __tstate = wxPyBeginAllowThreads();
4957 _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_centreY_get(_arg0);
4958
4959 wxPyEndAllowThreads(__tstate);
4960 if (PyErr_Occurred()) return NULL;
4961 } if (_result) {
4962 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p");
4963 _resultobj = Py_BuildValue("s",_ptemp);
4964 } else {
4965 Py_INCREF(Py_None);
4966 _resultobj = Py_None;
4967 }
4968 return _resultobj;
4969 }
4970
4971 #define wxLayoutConstraints_height_get(_swigobj) (&_swigobj->height)
4972 static PyObject *_wrap_wxLayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4973 PyObject * _resultobj;
4974 wxIndividualLayoutConstraint * _result;
4975 wxLayoutConstraints * _arg0;
4976 PyObject * _argo0 = 0;
4977 char *_kwnames[] = { "self", NULL };
4978 char _ptemp[128];
4979
4980 self = self;
4981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_height_get",_kwnames,&_argo0))
4982 return NULL;
4983 if (_argo0) {
4984 if (_argo0 == Py_None) { _arg0 = NULL; }
4985 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) {
4986 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_height_get. Expected _wxLayoutConstraints_p.");
4987 return NULL;
4988 }
4989 }
4990 {
4991 PyThreadState* __tstate = wxPyBeginAllowThreads();
4992 _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_height_get(_arg0);
4993
4994 wxPyEndAllowThreads(__tstate);
4995 if (PyErr_Occurred()) return NULL;
4996 } if (_result) {
4997 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p");
4998 _resultobj = Py_BuildValue("s",_ptemp);
4999 } else {
5000 Py_INCREF(Py_None);
5001 _resultobj = Py_None;
5002 }
5003 return _resultobj;
5004 }
5005
5006 #define wxLayoutConstraints_left_get(_swigobj) (&_swigobj->left)
5007 static PyObject *_wrap_wxLayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5008 PyObject * _resultobj;
5009 wxIndividualLayoutConstraint * _result;
5010 wxLayoutConstraints * _arg0;
5011 PyObject * _argo0 = 0;
5012 char *_kwnames[] = { "self", NULL };
5013 char _ptemp[128];
5014
5015 self = self;
5016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_left_get",_kwnames,&_argo0))
5017 return NULL;
5018 if (_argo0) {
5019 if (_argo0 == Py_None) { _arg0 = NULL; }
5020 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) {
5021 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_left_get. Expected _wxLayoutConstraints_p.");
5022 return NULL;
5023 }
5024 }
5025 {
5026 PyThreadState* __tstate = wxPyBeginAllowThreads();
5027 _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_left_get(_arg0);
5028
5029 wxPyEndAllowThreads(__tstate);
5030 if (PyErr_Occurred()) return NULL;
5031 } if (_result) {
5032 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p");
5033 _resultobj = Py_BuildValue("s",_ptemp);
5034 } else {
5035 Py_INCREF(Py_None);
5036 _resultobj = Py_None;
5037 }
5038 return _resultobj;
5039 }
5040
5041 #define wxLayoutConstraints_right_get(_swigobj) (&_swigobj->right)
5042 static PyObject *_wrap_wxLayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5043 PyObject * _resultobj;
5044 wxIndividualLayoutConstraint * _result;
5045 wxLayoutConstraints * _arg0;
5046 PyObject * _argo0 = 0;
5047 char *_kwnames[] = { "self", NULL };
5048 char _ptemp[128];
5049
5050 self = self;
5051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_right_get",_kwnames,&_argo0))
5052 return NULL;
5053 if (_argo0) {
5054 if (_argo0 == Py_None) { _arg0 = NULL; }
5055 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) {
5056 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_right_get. Expected _wxLayoutConstraints_p.");
5057 return NULL;
5058 }
5059 }
5060 {
5061 PyThreadState* __tstate = wxPyBeginAllowThreads();
5062 _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_right_get(_arg0);
5063
5064 wxPyEndAllowThreads(__tstate);
5065 if (PyErr_Occurred()) return NULL;
5066 } if (_result) {
5067 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p");
5068 _resultobj = Py_BuildValue("s",_ptemp);
5069 } else {
5070 Py_INCREF(Py_None);
5071 _resultobj = Py_None;
5072 }
5073 return _resultobj;
5074 }
5075
5076 #define wxLayoutConstraints_top_get(_swigobj) (&_swigobj->top)
5077 static PyObject *_wrap_wxLayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5078 PyObject * _resultobj;
5079 wxIndividualLayoutConstraint * _result;
5080 wxLayoutConstraints * _arg0;
5081 PyObject * _argo0 = 0;
5082 char *_kwnames[] = { "self", NULL };
5083 char _ptemp[128];
5084
5085 self = self;
5086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_top_get",_kwnames,&_argo0))
5087 return NULL;
5088 if (_argo0) {
5089 if (_argo0 == Py_None) { _arg0 = NULL; }
5090 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) {
5091 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_top_get. Expected _wxLayoutConstraints_p.");
5092 return NULL;
5093 }
5094 }
5095 {
5096 PyThreadState* __tstate = wxPyBeginAllowThreads();
5097 _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_top_get(_arg0);
5098
5099 wxPyEndAllowThreads(__tstate);
5100 if (PyErr_Occurred()) return NULL;
5101 } if (_result) {
5102 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p");
5103 _resultobj = Py_BuildValue("s",_ptemp);
5104 } else {
5105 Py_INCREF(Py_None);
5106 _resultobj = Py_None;
5107 }
5108 return _resultobj;
5109 }
5110
5111 #define wxLayoutConstraints_width_get(_swigobj) (&_swigobj->width)
5112 static PyObject *_wrap_wxLayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5113 PyObject * _resultobj;
5114 wxIndividualLayoutConstraint * _result;
5115 wxLayoutConstraints * _arg0;
5116 PyObject * _argo0 = 0;
5117 char *_kwnames[] = { "self", NULL };
5118 char _ptemp[128];
5119
5120 self = self;
5121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_width_get",_kwnames,&_argo0))
5122 return NULL;
5123 if (_argo0) {
5124 if (_argo0 == Py_None) { _arg0 = NULL; }
5125 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) {
5126 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_width_get. Expected _wxLayoutConstraints_p.");
5127 return NULL;
5128 }
5129 }
5130 {
5131 PyThreadState* __tstate = wxPyBeginAllowThreads();
5132 _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_width_get(_arg0);
5133
5134 wxPyEndAllowThreads(__tstate);
5135 if (PyErr_Occurred()) return NULL;
5136 } if (_result) {
5137 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p");
5138 _resultobj = Py_BuildValue("s",_ptemp);
5139 } else {
5140 Py_INCREF(Py_None);
5141 _resultobj = Py_None;
5142 }
5143 return _resultobj;
5144 }
5145
5146 #define new_wxAcceleratorEntry(_swigarg0,_swigarg1,_swigarg2) (new wxAcceleratorEntry(_swigarg0,_swigarg1,_swigarg2))
5147 static PyObject *_wrap_new_wxAcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
5148 PyObject * _resultobj;
5149 wxAcceleratorEntry * _result;
5150 int _arg0 = (int ) 0;
5151 int _arg1 = (int ) 0;
5152 int _arg2 = (int ) 0;
5153 char *_kwnames[] = { "flags","keyCode","cmd", NULL };
5154 char _ptemp[128];
5155
5156 self = self;
5157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxAcceleratorEntry",_kwnames,&_arg0,&_arg1,&_arg2))
5158 return NULL;
5159 {
5160 PyThreadState* __tstate = wxPyBeginAllowThreads();
5161 _result = (wxAcceleratorEntry *)new_wxAcceleratorEntry(_arg0,_arg1,_arg2);
5162
5163 wxPyEndAllowThreads(__tstate);
5164 if (PyErr_Occurred()) return NULL;
5165 } if (_result) {
5166 SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p");
5167 _resultobj = Py_BuildValue("s",_ptemp);
5168 } else {
5169 Py_INCREF(Py_None);
5170 _resultobj = Py_None;
5171 }
5172 return _resultobj;
5173 }
5174
5175 #define delete_wxAcceleratorEntry(_swigobj) (delete _swigobj)
5176 static PyObject *_wrap_delete_wxAcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
5177 PyObject * _resultobj;
5178 wxAcceleratorEntry * _arg0;
5179 PyObject * _argo0 = 0;
5180 char *_kwnames[] = { "self", NULL };
5181
5182 self = self;
5183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxAcceleratorEntry",_kwnames,&_argo0))
5184 return NULL;
5185 if (_argo0) {
5186 if (_argo0 == Py_None) { _arg0 = NULL; }
5187 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) {
5188 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxAcceleratorEntry. Expected _wxAcceleratorEntry_p.");
5189 return NULL;
5190 }
5191 }
5192 {
5193 PyThreadState* __tstate = wxPyBeginAllowThreads();
5194 delete_wxAcceleratorEntry(_arg0);
5195
5196 wxPyEndAllowThreads(__tstate);
5197 if (PyErr_Occurred()) return NULL;
5198 } Py_INCREF(Py_None);
5199 _resultobj = Py_None;
5200 return _resultobj;
5201 }
5202
5203 #define wxAcceleratorEntry_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
5204 static PyObject *_wrap_wxAcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5205 PyObject * _resultobj;
5206 wxAcceleratorEntry * _arg0;
5207 int _arg1;
5208 int _arg2;
5209 int _arg3;
5210 PyObject * _argo0 = 0;
5211 char *_kwnames[] = { "self","flags","keyCode","Cmd", NULL };
5212
5213 self = self;
5214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxAcceleratorEntry_Set",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
5215 return NULL;
5216 if (_argo0) {
5217 if (_argo0 == Py_None) { _arg0 = NULL; }
5218 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) {
5219 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_Set. Expected _wxAcceleratorEntry_p.");
5220 return NULL;
5221 }
5222 }
5223 {
5224 PyThreadState* __tstate = wxPyBeginAllowThreads();
5225 wxAcceleratorEntry_Set(_arg0,_arg1,_arg2,_arg3);
5226
5227 wxPyEndAllowThreads(__tstate);
5228 if (PyErr_Occurred()) return NULL;
5229 } Py_INCREF(Py_None);
5230 _resultobj = Py_None;
5231 return _resultobj;
5232 }
5233
5234 #define wxAcceleratorEntry_GetFlags(_swigobj) (_swigobj->GetFlags())
5235 static PyObject *_wrap_wxAcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
5236 PyObject * _resultobj;
5237 int _result;
5238 wxAcceleratorEntry * _arg0;
5239 PyObject * _argo0 = 0;
5240 char *_kwnames[] = { "self", NULL };
5241
5242 self = self;
5243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxAcceleratorEntry_GetFlags",_kwnames,&_argo0))
5244 return NULL;
5245 if (_argo0) {
5246 if (_argo0 == Py_None) { _arg0 = NULL; }
5247 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) {
5248 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_GetFlags. Expected _wxAcceleratorEntry_p.");
5249 return NULL;
5250 }
5251 }
5252 {
5253 PyThreadState* __tstate = wxPyBeginAllowThreads();
5254 _result = (int )wxAcceleratorEntry_GetFlags(_arg0);
5255
5256 wxPyEndAllowThreads(__tstate);
5257 if (PyErr_Occurred()) return NULL;
5258 } _resultobj = Py_BuildValue("i",_result);
5259 return _resultobj;
5260 }
5261
5262 #define wxAcceleratorEntry_GetKeyCode(_swigobj) (_swigobj->GetKeyCode())
5263 static PyObject *_wrap_wxAcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
5264 PyObject * _resultobj;
5265 int _result;
5266 wxAcceleratorEntry * _arg0;
5267 PyObject * _argo0 = 0;
5268 char *_kwnames[] = { "self", NULL };
5269
5270 self = self;
5271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxAcceleratorEntry_GetKeyCode",_kwnames,&_argo0))
5272 return NULL;
5273 if (_argo0) {
5274 if (_argo0 == Py_None) { _arg0 = NULL; }
5275 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) {
5276 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_GetKeyCode. Expected _wxAcceleratorEntry_p.");
5277 return NULL;
5278 }
5279 }
5280 {
5281 PyThreadState* __tstate = wxPyBeginAllowThreads();
5282 _result = (int )wxAcceleratorEntry_GetKeyCode(_arg0);
5283
5284 wxPyEndAllowThreads(__tstate);
5285 if (PyErr_Occurred()) return NULL;
5286 } _resultobj = Py_BuildValue("i",_result);
5287 return _resultobj;
5288 }
5289
5290 #define wxAcceleratorEntry_GetCommand(_swigobj) (_swigobj->GetCommand())
5291 static PyObject *_wrap_wxAcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
5292 PyObject * _resultobj;
5293 int _result;
5294 wxAcceleratorEntry * _arg0;
5295 PyObject * _argo0 = 0;
5296 char *_kwnames[] = { "self", NULL };
5297
5298 self = self;
5299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxAcceleratorEntry_GetCommand",_kwnames,&_argo0))
5300 return NULL;
5301 if (_argo0) {
5302 if (_argo0 == Py_None) { _arg0 = NULL; }
5303 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) {
5304 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_GetCommand. Expected _wxAcceleratorEntry_p.");
5305 return NULL;
5306 }
5307 }
5308 {
5309 PyThreadState* __tstate = wxPyBeginAllowThreads();
5310 _result = (int )wxAcceleratorEntry_GetCommand(_arg0);
5311
5312 wxPyEndAllowThreads(__tstate);
5313 if (PyErr_Occurred()) return NULL;
5314 } _resultobj = Py_BuildValue("i",_result);
5315 return _resultobj;
5316 }
5317
5318 static void *SwigwxAcceleratorTableTowxObject(void *ptr) {
5319 wxAcceleratorTable *src;
5320 wxObject *dest;
5321 src = (wxAcceleratorTable *) ptr;
5322 dest = (wxObject *) src;
5323 return (void *) dest;
5324 }
5325
5326 #define new_wxAcceleratorTable(_swigarg0,_swigarg1) (new wxAcceleratorTable(_swigarg0,_swigarg1))
5327 static PyObject *_wrap_new_wxAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
5328 PyObject * _resultobj;
5329 wxAcceleratorTable * _result;
5330 int _arg0;
5331 wxAcceleratorEntry * _arg1;
5332 PyObject * _obj1 = 0;
5333 char *_kwnames[] = { "choices", NULL };
5334 char _ptemp[128];
5335
5336 self = self;
5337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxAcceleratorTable",_kwnames,&_obj1))
5338 return NULL;
5339 if (_obj1)
5340 {
5341 _arg1 = wxAcceleratorEntry_LIST_helper(_obj1);
5342 if (_arg1 == NULL) {
5343 return NULL;
5344 }
5345 }
5346 {
5347 if (_obj1) {
5348 _arg0 = PyList_Size(_obj1);
5349 }
5350 else {
5351 _arg0 = 0;
5352 }
5353 }
5354 {
5355 PyThreadState* __tstate = wxPyBeginAllowThreads();
5356 _result = (wxAcceleratorTable *)new_wxAcceleratorTable(_arg0,_arg1);
5357
5358 wxPyEndAllowThreads(__tstate);
5359 if (PyErr_Occurred()) return NULL;
5360 } if (_result) {
5361 SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p");
5362 _resultobj = Py_BuildValue("s",_ptemp);
5363 } else {
5364 Py_INCREF(Py_None);
5365 _resultobj = Py_None;
5366 }
5367 {
5368 delete [] _arg1;
5369 }
5370 return _resultobj;
5371 }
5372
5373 #define delete_wxAcceleratorTable(_swigobj) (delete _swigobj)
5374 static PyObject *_wrap_delete_wxAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
5375 PyObject * _resultobj;
5376 wxAcceleratorTable * _arg0;
5377 PyObject * _argo0 = 0;
5378 char *_kwnames[] = { "self", NULL };
5379
5380 self = self;
5381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxAcceleratorTable",_kwnames,&_argo0))
5382 return NULL;
5383 if (_argo0) {
5384 if (_argo0 == Py_None) { _arg0 = NULL; }
5385 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorTable_p")) {
5386 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxAcceleratorTable. Expected _wxAcceleratorTable_p.");
5387 return NULL;
5388 }
5389 }
5390 {
5391 PyThreadState* __tstate = wxPyBeginAllowThreads();
5392 delete_wxAcceleratorTable(_arg0);
5393
5394 wxPyEndAllowThreads(__tstate);
5395 if (PyErr_Occurred()) return NULL;
5396 } Py_INCREF(Py_None);
5397 _resultobj = Py_None;
5398 return _resultobj;
5399 }
5400
5401 static void *SwigwxBusyInfoTowxObject(void *ptr) {
5402 wxBusyInfo *src;
5403 wxObject *dest;
5404 src = (wxBusyInfo *) ptr;
5405 dest = (wxObject *) src;
5406 return (void *) dest;
5407 }
5408
5409 #define new_wxBusyInfo(_swigarg0) (new wxBusyInfo(_swigarg0))
5410 static PyObject *_wrap_new_wxBusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5411 PyObject * _resultobj;
5412 wxBusyInfo * _result;
5413 wxString * _arg0;
5414 PyObject * _obj0 = 0;
5415 char *_kwnames[] = { "message", NULL };
5416 char _ptemp[128];
5417
5418 self = self;
5419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxBusyInfo",_kwnames,&_obj0))
5420 return NULL;
5421 {
5422 _arg0 = wxString_in_helper(_obj0);
5423 if (_arg0 == NULL)
5424 return NULL;
5425 }
5426 {
5427 PyThreadState* __tstate = wxPyBeginAllowThreads();
5428 _result = (wxBusyInfo *)new_wxBusyInfo(*_arg0);
5429
5430 wxPyEndAllowThreads(__tstate);
5431 if (PyErr_Occurred()) return NULL;
5432 } if (_result) {
5433 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyInfo_p");
5434 _resultobj = Py_BuildValue("s",_ptemp);
5435 } else {
5436 Py_INCREF(Py_None);
5437 _resultobj = Py_None;
5438 }
5439 {
5440 if (_obj0)
5441 delete _arg0;
5442 }
5443 return _resultobj;
5444 }
5445
5446 #define delete_wxBusyInfo(_swigobj) (delete _swigobj)
5447 static PyObject *_wrap_delete_wxBusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5448 PyObject * _resultobj;
5449 wxBusyInfo * _arg0;
5450 PyObject * _argo0 = 0;
5451 char *_kwnames[] = { "self", NULL };
5452
5453 self = self;
5454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyInfo",_kwnames,&_argo0))
5455 return NULL;
5456 if (_argo0) {
5457 if (_argo0 == Py_None) { _arg0 = NULL; }
5458 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyInfo_p")) {
5459 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyInfo. Expected _wxBusyInfo_p.");
5460 return NULL;
5461 }
5462 }
5463 {
5464 PyThreadState* __tstate = wxPyBeginAllowThreads();
5465 delete_wxBusyInfo(_arg0);
5466
5467 wxPyEndAllowThreads(__tstate);
5468 if (PyErr_Occurred()) return NULL;
5469 } Py_INCREF(Py_None);
5470 _resultobj = Py_None;
5471 return _resultobj;
5472 }
5473
5474 static PyMethodDef misccMethods[] = {
5475 { "delete_wxBusyInfo", (PyCFunction) _wrap_delete_wxBusyInfo, METH_VARARGS | METH_KEYWORDS },
5476 { "new_wxBusyInfo", (PyCFunction) _wrap_new_wxBusyInfo, METH_VARARGS | METH_KEYWORDS },
5477 { "delete_wxAcceleratorTable", (PyCFunction) _wrap_delete_wxAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
5478 { "new_wxAcceleratorTable", (PyCFunction) _wrap_new_wxAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
5479 { "wxAcceleratorEntry_GetCommand", (PyCFunction) _wrap_wxAcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS },
5480 { "wxAcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_wxAcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
5481 { "wxAcceleratorEntry_GetFlags", (PyCFunction) _wrap_wxAcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS },
5482 { "wxAcceleratorEntry_Set", (PyCFunction) _wrap_wxAcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS },
5483 { "delete_wxAcceleratorEntry", (PyCFunction) _wrap_delete_wxAcceleratorEntry, METH_VARARGS | METH_KEYWORDS },
5484 { "new_wxAcceleratorEntry", (PyCFunction) _wrap_new_wxAcceleratorEntry, METH_VARARGS | METH_KEYWORDS },
5485 { "wxLayoutConstraints_width_get", (PyCFunction) _wrap_wxLayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS },
5486 { "wxLayoutConstraints_top_get", (PyCFunction) _wrap_wxLayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS },
5487 { "wxLayoutConstraints_right_get", (PyCFunction) _wrap_wxLayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS },
5488 { "wxLayoutConstraints_left_get", (PyCFunction) _wrap_wxLayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS },
5489 { "wxLayoutConstraints_height_get", (PyCFunction) _wrap_wxLayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS },
5490 { "wxLayoutConstraints_centreY_get", (PyCFunction) _wrap_wxLayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS },
5491 { "wxLayoutConstraints_centreX_get", (PyCFunction) _wrap_wxLayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS },
5492 { "wxLayoutConstraints_bottom_get", (PyCFunction) _wrap_wxLayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS },
5493 { "new_wxLayoutConstraints", (PyCFunction) _wrap_new_wxLayoutConstraints, METH_VARARGS | METH_KEYWORDS },
5494 { "wxIndividualLayoutConstraint_Set", (PyCFunction) _wrap_wxIndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS },
5495 { "wxIndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_wxIndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS },
5496 { "wxIndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_wxIndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS },
5497 { "wxIndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_wxIndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS },
5498 { "wxIndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_wxIndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS },
5499 { "wxIndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_wxIndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS },
5500 { "wxIndividualLayoutConstraint_Below", (PyCFunction) _wrap_wxIndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS },
5501 { "wxIndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_wxIndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS },
5502 { "wxIndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_wxIndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS },
5503 { "wxIndividualLayoutConstraint_Above", (PyCFunction) _wrap_wxIndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS },
5504 { "wxPoint2DDouble_asTuple", (PyCFunction) _wrap_wxPoint2DDouble_asTuple, METH_VARARGS | METH_KEYWORDS },
5505 { "wxPoint2DDouble___ne__", (PyCFunction) _wrap_wxPoint2DDouble___ne__, METH_VARARGS | METH_KEYWORDS },
5506 { "wxPoint2DDouble___eq__", (PyCFunction) _wrap_wxPoint2DDouble___eq__, METH_VARARGS | METH_KEYWORDS },
5507 { "wxPoint2DDouble___idiv__", (PyCFunction) _wrap_wxPoint2DDouble___idiv__, METH_VARARGS | METH_KEYWORDS },
5508 { "wxPoint2DDouble___imul__", (PyCFunction) _wrap_wxPoint2DDouble___imul__, METH_VARARGS | METH_KEYWORDS },
5509 { "wxPoint2DDouble___isub__", (PyCFunction) _wrap_wxPoint2DDouble___isub__, METH_VARARGS | METH_KEYWORDS },
5510 { "wxPoint2DDouble___iadd__", (PyCFunction) _wrap_wxPoint2DDouble___iadd__, METH_VARARGS | METH_KEYWORDS },
5511 { "wxPoint2DDouble___neg__", (PyCFunction) _wrap_wxPoint2DDouble___neg__, METH_VARARGS | METH_KEYWORDS },
5512 { "wxPoint2DDouble_Set", (PyCFunction) _wrap_wxPoint2DDouble_Set, METH_VARARGS | METH_KEYWORDS },
5513 { "wxPoint2DDouble_GetCrossProduct", (PyCFunction) _wrap_wxPoint2DDouble_GetCrossProduct, METH_VARARGS | METH_KEYWORDS },
5514 { "wxPoint2DDouble_GetDotProduct", (PyCFunction) _wrap_wxPoint2DDouble_GetDotProduct, METH_VARARGS | METH_KEYWORDS },
5515 { "wxPoint2DDouble_GetDistanceSquare", (PyCFunction) _wrap_wxPoint2DDouble_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS },
5516 { "wxPoint2DDouble_GetDistance", (PyCFunction) _wrap_wxPoint2DDouble_GetDistance, METH_VARARGS | METH_KEYWORDS },
5517 { "wxPoint2DDouble_SetVectorAngle", (PyCFunction) _wrap_wxPoint2DDouble_SetVectorAngle, METH_VARARGS | METH_KEYWORDS },
5518 { "wxPoint2DDouble_SetVectorLength", (PyCFunction) _wrap_wxPoint2DDouble_SetVectorLength, METH_VARARGS | METH_KEYWORDS },
5519 { "wxPoint2DDouble_GetVectorAngle", (PyCFunction) _wrap_wxPoint2DDouble_GetVectorAngle, METH_VARARGS | METH_KEYWORDS },
5520 { "wxPoint2DDouble_GetVectorLength", (PyCFunction) _wrap_wxPoint2DDouble_GetVectorLength, METH_VARARGS | METH_KEYWORDS },
5521 { "wxPoint2DDouble_GetRounded", (PyCFunction) _wrap_wxPoint2DDouble_GetRounded, METH_VARARGS | METH_KEYWORDS },
5522 { "wxPoint2DDouble_GetFloor", (PyCFunction) _wrap_wxPoint2DDouble_GetFloor, METH_VARARGS | METH_KEYWORDS },
5523 { "new_wxPoint2DDoubleFromPoint", (PyCFunction) _wrap_new_wxPoint2DDoubleFromPoint, METH_VARARGS | METH_KEYWORDS },
5524 { "new_wxPoint2DDoubleCopy", (PyCFunction) _wrap_new_wxPoint2DDoubleCopy, METH_VARARGS | METH_KEYWORDS },
5525 { "new_wxPoint2DDouble", (PyCFunction) _wrap_new_wxPoint2DDouble, METH_VARARGS | METH_KEYWORDS },
5526 { "wxPoint2DDouble_y_get", (PyCFunction) _wrap_wxPoint2DDouble_m_y_get, METH_VARARGS | METH_KEYWORDS },
5527 { "wxPoint2DDouble_y_set", (PyCFunction) _wrap_wxPoint2DDouble_m_y_set, METH_VARARGS | METH_KEYWORDS },
5528 { "wxPoint2DDouble_x_get", (PyCFunction) _wrap_wxPoint2DDouble_m_x_get, METH_VARARGS | METH_KEYWORDS },
5529 { "wxPoint2DDouble_x_set", (PyCFunction) _wrap_wxPoint2DDouble_m_x_set, METH_VARARGS | METH_KEYWORDS },
5530 { "wxPoint2DDouble_m_y_get", (PyCFunction) _wrap_wxPoint2DDouble_m_y_get, METH_VARARGS | METH_KEYWORDS },
5531 { "wxPoint2DDouble_m_y_set", (PyCFunction) _wrap_wxPoint2DDouble_m_y_set, METH_VARARGS | METH_KEYWORDS },
5532 { "wxPoint2DDouble_m_x_get", (PyCFunction) _wrap_wxPoint2DDouble_m_x_get, METH_VARARGS | METH_KEYWORDS },
5533 { "wxPoint2DDouble_m_x_set", (PyCFunction) _wrap_wxPoint2DDouble_m_x_set, METH_VARARGS | METH_KEYWORDS },
5534 { "wxRect___ne__", (PyCFunction) _wrap_wxRect___ne__, METH_VARARGS | METH_KEYWORDS },
5535 { "wxRect___eq__", (PyCFunction) _wrap_wxRect___eq__, METH_VARARGS | METH_KEYWORDS },
5536 { "wxRect___add__", (PyCFunction) _wrap_wxRect___add__, METH_VARARGS | METH_KEYWORDS },
5537 { "wxRect_asTuple", (PyCFunction) _wrap_wxRect_asTuple, METH_VARARGS | METH_KEYWORDS },
5538 { "wxRect_Set", (PyCFunction) _wrap_wxRect_Set, METH_VARARGS | METH_KEYWORDS },
5539 { "wxRect_height_get", (PyCFunction) _wrap_wxRect_height_get, METH_VARARGS | METH_KEYWORDS },
5540 { "wxRect_height_set", (PyCFunction) _wrap_wxRect_height_set, METH_VARARGS | METH_KEYWORDS },
5541 { "wxRect_width_get", (PyCFunction) _wrap_wxRect_width_get, METH_VARARGS | METH_KEYWORDS },
5542 { "wxRect_width_set", (PyCFunction) _wrap_wxRect_width_set, METH_VARARGS | METH_KEYWORDS },
5543 { "wxRect_y_get", (PyCFunction) _wrap_wxRect_y_get, METH_VARARGS | METH_KEYWORDS },
5544 { "wxRect_y_set", (PyCFunction) _wrap_wxRect_y_set, METH_VARARGS | METH_KEYWORDS },
5545 { "wxRect_x_get", (PyCFunction) _wrap_wxRect_x_get, METH_VARARGS | METH_KEYWORDS },
5546 { "wxRect_x_set", (PyCFunction) _wrap_wxRect_x_set, METH_VARARGS | METH_KEYWORDS },
5547 { "wxRect_Offset", (PyCFunction) _wrap_wxRect_Offset, METH_VARARGS | METH_KEYWORDS },
5548 { "wxRect_OffsetXY", (PyCFunction) _wrap_wxRect_OffsetXY, METH_VARARGS | METH_KEYWORDS },
5549 { "wxRect_Intersects", (PyCFunction) _wrap_wxRect_Intersects, METH_VARARGS | METH_KEYWORDS },
5550 { "wxRect_Inside", (PyCFunction) _wrap_wxRect_Inside, METH_VARARGS | METH_KEYWORDS },
5551 { "wxRect_InsideXY", (PyCFunction) _wrap_wxRect_InsideXY, METH_VARARGS | METH_KEYWORDS },
5552 { "wxRect_Inflate", (PyCFunction) _wrap_wxRect_Inflate, METH_VARARGS | METH_KEYWORDS },
5553 { "wxRect_Deflate", (PyCFunction) _wrap_wxRect_Deflate, METH_VARARGS | METH_KEYWORDS },
5554 { "wxRect_SetBottom", (PyCFunction) _wrap_wxRect_SetBottom, METH_VARARGS | METH_KEYWORDS },
5555 { "wxRect_SetTop", (PyCFunction) _wrap_wxRect_SetTop, METH_VARARGS | METH_KEYWORDS },
5556 { "wxRect_SetRight", (PyCFunction) _wrap_wxRect_SetRight, METH_VARARGS | METH_KEYWORDS },
5557 { "wxRect_SetLeft", (PyCFunction) _wrap_wxRect_SetLeft, METH_VARARGS | METH_KEYWORDS },
5558 { "wxRect_GetRight", (PyCFunction) _wrap_wxRect_GetRight, METH_VARARGS | METH_KEYWORDS },
5559 { "wxRect_GetBottom", (PyCFunction) _wrap_wxRect_GetBottom, METH_VARARGS | METH_KEYWORDS },
5560 { "wxRect_GetTop", (PyCFunction) _wrap_wxRect_GetTop, METH_VARARGS | METH_KEYWORDS },
5561 { "wxRect_GetLeft", (PyCFunction) _wrap_wxRect_GetLeft, METH_VARARGS | METH_KEYWORDS },
5562 { "wxRect_SetSize", (PyCFunction) _wrap_wxRect_SetSize, METH_VARARGS | METH_KEYWORDS },
5563 { "wxRect_SetPosition", (PyCFunction) _wrap_wxRect_SetPosition, METH_VARARGS | METH_KEYWORDS },
5564 { "wxRect_GetSize", (PyCFunction) _wrap_wxRect_GetSize, METH_VARARGS | METH_KEYWORDS },
5565 { "wxRect_GetPosition", (PyCFunction) _wrap_wxRect_GetPosition, METH_VARARGS | METH_KEYWORDS },
5566 { "wxRect_SetHeight", (PyCFunction) _wrap_wxRect_SetHeight, METH_VARARGS | METH_KEYWORDS },
5567 { "wxRect_GetHeight", (PyCFunction) _wrap_wxRect_GetHeight, METH_VARARGS | METH_KEYWORDS },
5568 { "wxRect_SetWidth", (PyCFunction) _wrap_wxRect_SetWidth, METH_VARARGS | METH_KEYWORDS },
5569 { "wxRect_GetWidth", (PyCFunction) _wrap_wxRect_GetWidth, METH_VARARGS | METH_KEYWORDS },
5570 { "wxRect_SetY", (PyCFunction) _wrap_wxRect_SetY, METH_VARARGS | METH_KEYWORDS },
5571 { "wxRect_GetY", (PyCFunction) _wrap_wxRect_GetY, METH_VARARGS | METH_KEYWORDS },
5572 { "wxRect_SetX", (PyCFunction) _wrap_wxRect_SetX, METH_VARARGS | METH_KEYWORDS },
5573 { "wxRect_GetX", (PyCFunction) _wrap_wxRect_GetX, METH_VARARGS | METH_KEYWORDS },
5574 { "delete_wxRect", (PyCFunction) _wrap_delete_wxRect, METH_VARARGS | METH_KEYWORDS },
5575 { "new_wxRect", (PyCFunction) _wrap_new_wxRect, METH_VARARGS | METH_KEYWORDS },
5576 { "wxPoint___ne__", (PyCFunction) _wrap_wxPoint___ne__, METH_VARARGS | METH_KEYWORDS },
5577 { "wxPoint___eq__", (PyCFunction) _wrap_wxPoint___eq__, METH_VARARGS | METH_KEYWORDS },
5578 { "wxPoint___sub__", (PyCFunction) _wrap_wxPoint___sub__, METH_VARARGS | METH_KEYWORDS },
5579 { "wxPoint___add__", (PyCFunction) _wrap_wxPoint___add__, METH_VARARGS | METH_KEYWORDS },
5580 { "wxPoint_asTuple", (PyCFunction) _wrap_wxPoint_asTuple, METH_VARARGS | METH_KEYWORDS },
5581 { "wxPoint_Set", (PyCFunction) _wrap_wxPoint_Set, METH_VARARGS | METH_KEYWORDS },
5582 { "delete_wxPoint", (PyCFunction) _wrap_delete_wxPoint, METH_VARARGS | METH_KEYWORDS },
5583 { "new_wxPoint", (PyCFunction) _wrap_new_wxPoint, METH_VARARGS | METH_KEYWORDS },
5584 { "wxPoint_y_get", (PyCFunction) _wrap_wxPoint_y_get, METH_VARARGS | METH_KEYWORDS },
5585 { "wxPoint_y_set", (PyCFunction) _wrap_wxPoint_y_set, METH_VARARGS | METH_KEYWORDS },
5586 { "wxPoint_x_get", (PyCFunction) _wrap_wxPoint_x_get, METH_VARARGS | METH_KEYWORDS },
5587 { "wxPoint_x_set", (PyCFunction) _wrap_wxPoint_x_set, METH_VARARGS | METH_KEYWORDS },
5588 { "wxRealPoint___ne__", (PyCFunction) _wrap_wxRealPoint___ne__, METH_VARARGS | METH_KEYWORDS },
5589 { "wxRealPoint___eq__", (PyCFunction) _wrap_wxRealPoint___eq__, METH_VARARGS | METH_KEYWORDS },
5590 { "wxRealPoint___sub__", (PyCFunction) _wrap_wxRealPoint___sub__, METH_VARARGS | METH_KEYWORDS },
5591 { "wxRealPoint___add__", (PyCFunction) _wrap_wxRealPoint___add__, METH_VARARGS | METH_KEYWORDS },
5592 { "wxRealPoint_asTuple", (PyCFunction) _wrap_wxRealPoint_asTuple, METH_VARARGS | METH_KEYWORDS },
5593 { "wxRealPoint_Set", (PyCFunction) _wrap_wxRealPoint_Set, METH_VARARGS | METH_KEYWORDS },
5594 { "delete_wxRealPoint", (PyCFunction) _wrap_delete_wxRealPoint, METH_VARARGS | METH_KEYWORDS },
5595 { "new_wxRealPoint", (PyCFunction) _wrap_new_wxRealPoint, METH_VARARGS | METH_KEYWORDS },
5596 { "wxRealPoint_y_get", (PyCFunction) _wrap_wxRealPoint_y_get, METH_VARARGS | METH_KEYWORDS },
5597 { "wxRealPoint_y_set", (PyCFunction) _wrap_wxRealPoint_y_set, METH_VARARGS | METH_KEYWORDS },
5598 { "wxRealPoint_x_get", (PyCFunction) _wrap_wxRealPoint_x_get, METH_VARARGS | METH_KEYWORDS },
5599 { "wxRealPoint_x_set", (PyCFunction) _wrap_wxRealPoint_x_set, METH_VARARGS | METH_KEYWORDS },
5600 { "wxSize___ne__", (PyCFunction) _wrap_wxSize___ne__, METH_VARARGS | METH_KEYWORDS },
5601 { "wxSize___eq__", (PyCFunction) _wrap_wxSize___eq__, METH_VARARGS | METH_KEYWORDS },
5602 { "wxSize_asTuple", (PyCFunction) _wrap_wxSize_asTuple, METH_VARARGS | METH_KEYWORDS },
5603 { "wxSize_DecTo", (PyCFunction) _wrap_wxSize_DecTo, METH_VARARGS | METH_KEYWORDS },
5604 { "wxSize_IncTo", (PyCFunction) _wrap_wxSize_IncTo, METH_VARARGS | METH_KEYWORDS },
5605 { "wxSize_SetHeight", (PyCFunction) _wrap_wxSize_SetHeight, METH_VARARGS | METH_KEYWORDS },
5606 { "wxSize_SetWidth", (PyCFunction) _wrap_wxSize_SetWidth, METH_VARARGS | METH_KEYWORDS },
5607 { "wxSize_GetHeight", (PyCFunction) _wrap_wxSize_GetHeight, METH_VARARGS | METH_KEYWORDS },
5608 { "wxSize_GetWidth", (PyCFunction) _wrap_wxSize_GetWidth, METH_VARARGS | METH_KEYWORDS },
5609 { "wxSize_GetY", (PyCFunction) _wrap_wxSize_GetY, METH_VARARGS | METH_KEYWORDS },
5610 { "wxSize_GetX", (PyCFunction) _wrap_wxSize_GetX, METH_VARARGS | METH_KEYWORDS },
5611 { "wxSize_Set", (PyCFunction) _wrap_wxSize_Set, METH_VARARGS | METH_KEYWORDS },
5612 { "delete_wxSize", (PyCFunction) _wrap_delete_wxSize, METH_VARARGS | METH_KEYWORDS },
5613 { "new_wxSize", (PyCFunction) _wrap_new_wxSize, METH_VARARGS | METH_KEYWORDS },
5614 { "wxSize_height_get", (PyCFunction) _wrap_wxSize_y_get, METH_VARARGS | METH_KEYWORDS },
5615 { "wxSize_height_set", (PyCFunction) _wrap_wxSize_y_set, METH_VARARGS | METH_KEYWORDS },
5616 { "wxSize_width_get", (PyCFunction) _wrap_wxSize_x_get, METH_VARARGS | METH_KEYWORDS },
5617 { "wxSize_width_set", (PyCFunction) _wrap_wxSize_x_set, METH_VARARGS | METH_KEYWORDS },
5618 { "wxSize_y_get", (PyCFunction) _wrap_wxSize_y_get, METH_VARARGS | METH_KEYWORDS },
5619 { "wxSize_y_set", (PyCFunction) _wrap_wxSize_y_set, METH_VARARGS | METH_KEYWORDS },
5620 { "wxSize_x_get", (PyCFunction) _wrap_wxSize_x_get, METH_VARARGS | METH_KEYWORDS },
5621 { "wxSize_x_set", (PyCFunction) _wrap_wxSize_x_set, METH_VARARGS | METH_KEYWORDS },
5622 { "wxObject_Destroy", (PyCFunction) _wrap_wxObject_Destroy, METH_VARARGS | METH_KEYWORDS },
5623 { "wxObject_GetClassName", (PyCFunction) _wrap_wxObject_GetClassName, METH_VARARGS | METH_KEYWORDS },
5624 { "wxGetAccelFromString", (PyCFunction) _wrap_wxGetAccelFromString, METH_VARARGS | METH_KEYWORDS },
5625 { "wxTrap", (PyCFunction) _wrap_wxTrap, METH_VARARGS | METH_KEYWORDS },
5626 { "wxGetProcessId", (PyCFunction) _wrap_wxGetProcessId, METH_VARARGS | METH_KEYWORDS },
5627 { "wxGetUserHome", (PyCFunction) _wrap_wxGetUserHome, METH_VARARGS | METH_KEYWORDS },
5628 { "wxGetHomeDir", (PyCFunction) _wrap_wxGetHomeDir, METH_VARARGS | METH_KEYWORDS },
5629 { "wxGetUserName", (PyCFunction) _wrap_wxGetUserName, METH_VARARGS | METH_KEYWORDS },
5630 { "wxGetUserId", (PyCFunction) _wrap_wxGetUserId, METH_VARARGS | METH_KEYWORDS },
5631 { "wxGetFullHostName", (PyCFunction) _wrap_wxGetFullHostName, METH_VARARGS | METH_KEYWORDS },
5632 { "wxGetHostName", (PyCFunction) _wrap_wxGetHostName, METH_VARARGS | METH_KEYWORDS },
5633 { "wxGetEmailAddress", (PyCFunction) _wrap_wxGetEmailAddress, METH_VARARGS | METH_KEYWORDS },
5634 { "wxStripMenuCodes", (PyCFunction) _wrap_wxStripMenuCodes, METH_VARARGS | METH_KEYWORDS },
5635 { "wxEnableTopLevelWindows", (PyCFunction) _wrap_wxEnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
5636 { "wxYieldIfNeeded", (PyCFunction) _wrap_wxYieldIfNeeded, METH_VARARGS | METH_KEYWORDS },
5637 { "wxYield", (PyCFunction) _wrap_wxYield, METH_VARARGS | METH_KEYWORDS },
5638 { "wxUsleep", (PyCFunction) _wrap_wxUsleep, METH_VARARGS | METH_KEYWORDS },
5639 { "wxSleep", (PyCFunction) _wrap_wxSleep, METH_VARARGS | METH_KEYWORDS },
5640 { "wxShutdown", (PyCFunction) _wrap_wxShutdown, METH_VARARGS | METH_KEYWORDS },
5641 { "wxGetOsDescription", (PyCFunction) _wrap_wxGetOsDescription, METH_VARARGS | METH_KEYWORDS },
5642 { "wxGetOsVersion", (PyCFunction) _wrap_wxGetOsVersion, METH_VARARGS | METH_KEYWORDS },
5643 { "wxStartTimer", (PyCFunction) _wrap_wxStartTimer, METH_VARARGS | METH_KEYWORDS },
5644 { "wxShell", (PyCFunction) _wrap_wxShell, METH_VARARGS | METH_KEYWORDS },
5645 { "wxNow", (PyCFunction) _wrap_wxNow, METH_VARARGS | METH_KEYWORDS },
5646 { "wxIsBusy", (PyCFunction) _wrap_wxIsBusy, METH_VARARGS | METH_KEYWORDS },
5647 { "wxGetMousePosition", (PyCFunction) _wrap_wxGetMousePosition, METH_VARARGS | METH_KEYWORDS },
5648 { "wxGetFreeMemory", (PyCFunction) _wrap_wxGetFreeMemory, METH_VARARGS | METH_KEYWORDS },
5649 { "wxGetElapsedTime", (PyCFunction) _wrap_wxGetElapsedTime, METH_VARARGS | METH_KEYWORDS },
5650 { "wxEndBusyCursor", (PyCFunction) _wrap_wxEndBusyCursor, METH_VARARGS | METH_KEYWORDS },
5651 { "wxBell", (PyCFunction) _wrap_wxBell, METH_VARARGS | METH_KEYWORDS },
5652 { "wxGetCurrentId", (PyCFunction) _wrap_wxGetCurrentId, METH_VARARGS | METH_KEYWORDS },
5653 { "wxRegisterId", (PyCFunction) _wrap_wxRegisterId, METH_VARARGS | METH_KEYWORDS },
5654 { "wxNewId", (PyCFunction) _wrap_wxNewId, METH_VARARGS | METH_KEYWORDS },
5655 { "wxIntersectRect", (PyCFunction) _wrap_wxIntersectRect, METH_VARARGS | METH_KEYWORDS },
5656 { NULL, NULL }
5657 };
5658 #ifdef __cplusplus
5659 }
5660 #endif
5661 /*
5662 * This table is used by the pointer type-checker
5663 */
5664 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
5665 { "_signed_long","_long",0},
5666 { "_wxPrintQuality","_wxCoord",0},
5667 { "_wxPrintQuality","_int",0},
5668 { "_wxPrintQuality","_signed_int",0},
5669 { "_wxPrintQuality","_unsigned_int",0},
5670 { "_wxPrintQuality","_wxWindowID",0},
5671 { "_wxPrintQuality","_uint",0},
5672 { "_wxPrintQuality","_EBool",0},
5673 { "_wxPrintQuality","_size_t",0},
5674 { "_wxPrintQuality","_time_t",0},
5675 { "_byte","_unsigned_char",0},
5676 { "_long","_unsigned_long",0},
5677 { "_long","_signed_long",0},
5678 { "_size_t","_wxCoord",0},
5679 { "_size_t","_wxPrintQuality",0},
5680 { "_size_t","_time_t",0},
5681 { "_size_t","_unsigned_int",0},
5682 { "_size_t","_int",0},
5683 { "_size_t","_wxWindowID",0},
5684 { "_size_t","_uint",0},
5685 { "_uint","_wxCoord",0},
5686 { "_uint","_wxPrintQuality",0},
5687 { "_uint","_time_t",0},
5688 { "_uint","_size_t",0},
5689 { "_uint","_unsigned_int",0},
5690 { "_uint","_int",0},
5691 { "_uint","_wxWindowID",0},
5692 { "_wxChar","_char",0},
5693 { "_char","_wxChar",0},
5694 { "_EBool","_wxCoord",0},
5695 { "_EBool","_wxPrintQuality",0},
5696 { "_EBool","_signed_int",0},
5697 { "_EBool","_int",0},
5698 { "_EBool","_wxWindowID",0},
5699 { "_unsigned_long","_long",0},
5700 { "_signed_int","_wxCoord",0},
5701 { "_signed_int","_wxPrintQuality",0},
5702 { "_signed_int","_EBool",0},
5703 { "_signed_int","_wxWindowID",0},
5704 { "_signed_int","_int",0},
5705 { "_WXTYPE","_short",0},
5706 { "_WXTYPE","_signed_short",0},
5707 { "_WXTYPE","_unsigned_short",0},
5708 { "_unsigned_short","_WXTYPE",0},
5709 { "_unsigned_short","_short",0},
5710 { "_wxObject","_wxBusyInfo",SwigwxBusyInfoTowxObject},
5711 { "_wxObject","_wxAcceleratorTable",SwigwxAcceleratorTableTowxObject},
5712 { "_wxObject","_wxLayoutConstraints",SwigwxLayoutConstraintsTowxObject},
5713 { "_wxObject","_wxIndividualLayoutConstraint",SwigwxIndividualLayoutConstraintTowxObject},
5714 { "_signed_short","_WXTYPE",0},
5715 { "_signed_short","_short",0},
5716 { "_unsigned_char","_byte",0},
5717 { "_unsigned_int","_wxCoord",0},
5718 { "_unsigned_int","_wxPrintQuality",0},
5719 { "_unsigned_int","_time_t",0},
5720 { "_unsigned_int","_size_t",0},
5721 { "_unsigned_int","_uint",0},
5722 { "_unsigned_int","_wxWindowID",0},
5723 { "_unsigned_int","_int",0},
5724 { "_short","_WXTYPE",0},
5725 { "_short","_unsigned_short",0},
5726 { "_short","_signed_short",0},
5727 { "_wxWindowID","_wxCoord",0},
5728 { "_wxWindowID","_wxPrintQuality",0},
5729 { "_wxWindowID","_time_t",0},
5730 { "_wxWindowID","_size_t",0},
5731 { "_wxWindowID","_EBool",0},
5732 { "_wxWindowID","_uint",0},
5733 { "_wxWindowID","_int",0},
5734 { "_wxWindowID","_signed_int",0},
5735 { "_wxWindowID","_unsigned_int",0},
5736 { "_int","_wxCoord",0},
5737 { "_int","_wxPrintQuality",0},
5738 { "_int","_time_t",0},
5739 { "_int","_size_t",0},
5740 { "_int","_EBool",0},
5741 { "_int","_uint",0},
5742 { "_int","_wxWindowID",0},
5743 { "_int","_unsigned_int",0},
5744 { "_int","_signed_int",0},
5745 { "_time_t","_wxCoord",0},
5746 { "_time_t","_wxPrintQuality",0},
5747 { "_time_t","_unsigned_int",0},
5748 { "_time_t","_int",0},
5749 { "_time_t","_wxWindowID",0},
5750 { "_time_t","_uint",0},
5751 { "_time_t","_size_t",0},
5752 { "_wxCoord","_int",0},
5753 { "_wxCoord","_signed_int",0},
5754 { "_wxCoord","_unsigned_int",0},
5755 { "_wxCoord","_wxWindowID",0},
5756 { "_wxCoord","_uint",0},
5757 { "_wxCoord","_EBool",0},
5758 { "_wxCoord","_size_t",0},
5759 { "_wxCoord","_time_t",0},
5760 { "_wxCoord","_wxPrintQuality",0},
5761 {0,0,0}};
5762
5763 static PyObject *SWIG_globals;
5764 #ifdef __cplusplus
5765 extern "C"
5766 #endif
5767 SWIGEXPORT(void) initmiscc() {
5768 PyObject *m, *d;
5769 SWIG_globals = SWIG_newvarlink();
5770 m = Py_InitModule("miscc", misccMethods);
5771 d = PyModule_GetDict(m);
5772 PyDict_SetItemString(d,"wxSHUTDOWN_POWEROFF", PyInt_FromLong((long) wxSHUTDOWN_POWEROFF));
5773 PyDict_SetItemString(d,"wxSHUTDOWN_REBOOT", PyInt_FromLong((long) wxSHUTDOWN_REBOOT));
5774 PyDict_SetItemString(d,"wxLeft", PyInt_FromLong((long) wxLeft));
5775 PyDict_SetItemString(d,"wxTop", PyInt_FromLong((long) wxTop));
5776 PyDict_SetItemString(d,"wxRight", PyInt_FromLong((long) wxRight));
5777 PyDict_SetItemString(d,"wxBottom", PyInt_FromLong((long) wxBottom));
5778 PyDict_SetItemString(d,"wxWidth", PyInt_FromLong((long) wxWidth));
5779 PyDict_SetItemString(d,"wxHeight", PyInt_FromLong((long) wxHeight));
5780 PyDict_SetItemString(d,"wxCentre", PyInt_FromLong((long) wxCentre));
5781 PyDict_SetItemString(d,"wxCenter", PyInt_FromLong((long) wxCenter));
5782 PyDict_SetItemString(d,"wxCentreX", PyInt_FromLong((long) wxCentreX));
5783 PyDict_SetItemString(d,"wxCentreY", PyInt_FromLong((long) wxCentreY));
5784 PyDict_SetItemString(d,"wxUnconstrained", PyInt_FromLong((long) wxUnconstrained));
5785 PyDict_SetItemString(d,"wxAsIs", PyInt_FromLong((long) wxAsIs));
5786 PyDict_SetItemString(d,"wxPercentOf", PyInt_FromLong((long) wxPercentOf));
5787 PyDict_SetItemString(d,"wxAbove", PyInt_FromLong((long) wxAbove));
5788 PyDict_SetItemString(d,"wxBelow", PyInt_FromLong((long) wxBelow));
5789 PyDict_SetItemString(d,"wxLeftOf", PyInt_FromLong((long) wxLeftOf));
5790 PyDict_SetItemString(d,"wxRightOf", PyInt_FromLong((long) wxRightOf));
5791 PyDict_SetItemString(d,"wxSameAs", PyInt_FromLong((long) wxSameAs));
5792 PyDict_SetItemString(d,"wxAbsolute", PyInt_FromLong((long) wxAbsolute));
5793 PyDict_SetItemString(d,"cvar", SWIG_globals);
5794 SWIG_addvarlink(SWIG_globals,"wxNullAcceleratorTable",_wrap_wxNullAcceleratorTable_get, _wrap_wxNullAcceleratorTable_set);
5795 {
5796 int i;
5797 for (i = 0; _swig_mapping[i].n1; i++)
5798 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
5799 }
5800 }