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