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