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