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