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