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