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