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