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