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