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