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