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