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