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