]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/misc.cpp
2.4 -> 2.5; build in another directory than source one; mention --disable-shared
[wxWidgets.git] / wxPython / src / gtk / misc.cpp
1 /*
2 * FILE : src/gtk/misc.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include "Python.h"
23
24 #include <string.h>
25 #include <stdlib.h>
26 /* Definitions for Windows/Unix exporting */
27 #if defined(__WIN32__)
28 # if defined(_MSC_VER)
29 # define SWIGEXPORT(a) __declspec(dllexport) a
30 # else
31 # if defined(__BORLANDC__)
32 # define SWIGEXPORT(a) a _export
33 # else
34 # define SWIGEXPORT(a) a
35 # endif
36 # endif
37 #else
38 # define SWIGEXPORT(a) a
39 #endif
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 extern void SWIG_MakePtr(char *, void *, char *);
45 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
46 extern char *SWIG_GetPtr(char *, void **, char *);
47 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
48 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
49 extern PyObject *SWIG_newvarlink(void);
50 #ifdef __cplusplus
51 }
52 #endif
53 #define SWIG_init initmiscc
54
55 #define SWIG_name "miscc"
56
57 #include "helpers.h"
58 #include <wx/resource.h>
59 #include <wx/tooltip.h>
60 #include <wx/busyinfo.h>
61 #include <wx/geometry.h>
62
63
64 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
65 PyObject* o2;
66 PyObject* o3;
67
68 if (!target) {
69 target = o;
70 } else if (target == Py_None) {
71 Py_DECREF(Py_None);
72 target = o;
73 } else {
74 if (!PyTuple_Check(target)) {
75 o2 = target;
76 target = PyTuple_New(1);
77 PyTuple_SetItem(target, 0, o2);
78 }
79 o3 = PyTuple_New(1);
80 PyTuple_SetItem(o3, 0, o);
81
82 o2 = target;
83 target = PySequence_Concat(o2, o3);
84 Py_DECREF(o2);
85 Py_DECREF(o3);
86 }
87 return target;
88 }
89
90 // Put some wx default wxChar* values into wxStrings.
91 static const wxString wxPyEmptyString(wxT(""));
92
93 PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) {
94 wxRegion reg1(*r1);
95 wxRegion reg2(*r2);
96 wxRect dest(0,0,0,0);
97 PyObject* obj;
98
99 reg1.Intersect(reg2);
100 dest = reg1.GetBox();
101
102 if (dest != wxRect(0,0,0,0)) {
103 wxPyBeginBlockThreads();
104 wxRect* newRect = new wxRect(dest);
105 obj = wxPyConstructObject((void*)newRect, wxT("wxRect"));
106 PyObject* one = PyInt_FromLong(1);
107 PyObject_SetAttrString(obj, "thisown", one);
108 Py_DECREF(one);
109 wxPyEndBlockThreads();
110 return obj;
111 }
112 Py_INCREF(Py_None);
113 return Py_None;
114 }
115
116 #if 0 // we want to use the definition from the header, not the
117 // one SWIG will generate.
118 extern wxAcceleratorTable wxNullAcceleratorTable;
119
120 #endif
121 #ifdef __cplusplus
122 extern "C" {
123 #endif
124 static PyObject *_wrap_wxIntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
125 PyObject * _resultobj;
126 PyObject * _result;
127 wxRect * _arg0;
128 wxRect * _arg1;
129 wxRect temp;
130 PyObject * _obj0 = 0;
131 wxRect temp0;
132 PyObject * _obj1 = 0;
133 char *_kwnames[] = { "r1","r2", NULL };
134
135 self = self;
136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIntersectRect",_kwnames,&_obj0,&_obj1))
137 return NULL;
138 {
139 _arg0 = &temp;
140 if (! wxRect_helper(_obj0, &_arg0))
141 return NULL;
142 }
143 {
144 _arg1 = &temp0;
145 if (! wxRect_helper(_obj1, &_arg1))
146 return NULL;
147 }
148 {
149 PyThreadState* __tstate = wxPyBeginAllowThreads();
150 _result = (PyObject *)wxIntersectRect(_arg0,_arg1);
151
152 wxPyEndAllowThreads(__tstate);
153 if (PyErr_Occurred()) return NULL;
154 }{
155 _resultobj = _result;
156 }
157 return _resultobj;
158 }
159
160 static PyObject *_wrap_wxNewId(PyObject *self, PyObject *args, PyObject *kwargs) {
161 PyObject * _resultobj;
162 long _result;
163 char *_kwnames[] = { NULL };
164
165 self = self;
166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxNewId",_kwnames))
167 return NULL;
168 {
169 PyThreadState* __tstate = wxPyBeginAllowThreads();
170 _result = (long )wxNewId();
171
172 wxPyEndAllowThreads(__tstate);
173 if (PyErr_Occurred()) return NULL;
174 } _resultobj = Py_BuildValue("l",_result);
175 return _resultobj;
176 }
177
178 static PyObject *_wrap_wxRegisterId(PyObject *self, PyObject *args, PyObject *kwargs) {
179 PyObject * _resultobj;
180 long _arg0;
181 char *_kwnames[] = { "id", NULL };
182
183 self = self;
184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxRegisterId",_kwnames,&_arg0))
185 return NULL;
186 {
187 PyThreadState* __tstate = wxPyBeginAllowThreads();
188 wxRegisterId(_arg0);
189
190 wxPyEndAllowThreads(__tstate);
191 if (PyErr_Occurred()) return NULL;
192 } Py_INCREF(Py_None);
193 _resultobj = Py_None;
194 return _resultobj;
195 }
196
197 static PyObject *_wrap_wxGetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) {
198 PyObject * _resultobj;
199 long _result;
200 char *_kwnames[] = { NULL };
201
202 self = self;
203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetCurrentId",_kwnames))
204 return NULL;
205 {
206 PyThreadState* __tstate = wxPyBeginAllowThreads();
207 _result = (long )wxGetCurrentId();
208
209 wxPyEndAllowThreads(__tstate);
210 if (PyErr_Occurred()) return NULL;
211 } _resultobj = Py_BuildValue("l",_result);
212 return _resultobj;
213 }
214
215 static PyObject *_wrap_wxBell(PyObject *self, PyObject *args, PyObject *kwargs) {
216 PyObject * _resultobj;
217 char *_kwnames[] = { NULL };
218
219 self = self;
220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxBell",_kwnames))
221 return NULL;
222 {
223 PyThreadState* __tstate = wxPyBeginAllowThreads();
224 wxBell();
225
226 wxPyEndAllowThreads(__tstate);
227 if (PyErr_Occurred()) return NULL;
228 } Py_INCREF(Py_None);
229 _resultobj = Py_None;
230 return _resultobj;
231 }
232
233 static PyObject *_wrap_wxEndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
234 PyObject * _resultobj;
235 char *_kwnames[] = { NULL };
236
237 self = self;
238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEndBusyCursor",_kwnames))
239 return NULL;
240 {
241 PyThreadState* __tstate = wxPyBeginAllowThreads();
242 wxEndBusyCursor();
243
244 wxPyEndAllowThreads(__tstate);
245 if (PyErr_Occurred()) return NULL;
246 } Py_INCREF(Py_None);
247 _resultobj = Py_None;
248 return _resultobj;
249 }
250
251 static PyObject *_wrap_wxGetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) {
252 PyObject * _resultobj;
253 long _result;
254 bool _arg0 = (bool ) TRUE;
255 int tempbool0 = (int) TRUE;
256 char *_kwnames[] = { "resetTimer", NULL };
257
258 self = self;
259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxGetElapsedTime",_kwnames,&tempbool0))
260 return NULL;
261 _arg0 = (bool ) tempbool0;
262 {
263 PyThreadState* __tstate = wxPyBeginAllowThreads();
264 _result = (long )wxGetElapsedTime(_arg0);
265
266 wxPyEndAllowThreads(__tstate);
267 if (PyErr_Occurred()) return NULL;
268 } _resultobj = Py_BuildValue("l",_result);
269 return _resultobj;
270 }
271
272 static PyObject *_wrap_wxGetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) {
273 PyObject * _resultobj;
274 int * _arg0;
275 int temp;
276 int * _arg1;
277 int temp0;
278 char *_kwnames[] = { NULL };
279
280 self = self;
281 {
282 _arg0 = &temp;
283 }
284 {
285 _arg1 = &temp0;
286 }
287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetMousePosition",_kwnames))
288 return NULL;
289 {
290 PyThreadState* __tstate = wxPyBeginAllowThreads();
291 wxGetMousePosition(_arg0,_arg1);
292
293 wxPyEndAllowThreads(__tstate);
294 if (PyErr_Occurred()) return NULL;
295 } Py_INCREF(Py_None);
296 _resultobj = Py_None;
297 {
298 PyObject *o;
299 o = PyInt_FromLong((long) (*_arg0));
300 _resultobj = t_output_helper(_resultobj, o);
301 }
302 {
303 PyObject *o;
304 o = PyInt_FromLong((long) (*_arg1));
305 _resultobj = t_output_helper(_resultobj, o);
306 }
307 return _resultobj;
308 }
309
310 static PyObject *_wrap_wxIsBusy(PyObject *self, PyObject *args, PyObject *kwargs) {
311 PyObject * _resultobj;
312 bool _result;
313 char *_kwnames[] = { NULL };
314
315 self = self;
316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxIsBusy",_kwnames))
317 return NULL;
318 {
319 PyThreadState* __tstate = wxPyBeginAllowThreads();
320 _result = (bool )wxIsBusy();
321
322 wxPyEndAllowThreads(__tstate);
323 if (PyErr_Occurred()) return NULL;
324 } _resultobj = Py_BuildValue("i",_result);
325 return _resultobj;
326 }
327
328 static PyObject *_wrap_wxNow(PyObject *self, PyObject *args, PyObject *kwargs) {
329 PyObject * _resultobj;
330 wxString * _result;
331 char *_kwnames[] = { NULL };
332
333 self = self;
334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxNow",_kwnames))
335 return NULL;
336 {
337 PyThreadState* __tstate = wxPyBeginAllowThreads();
338 _result = new wxString (wxNow());
339
340 wxPyEndAllowThreads(__tstate);
341 if (PyErr_Occurred()) return NULL;
342 }{
343 #if wxUSE_UNICODE
344 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
345 #else
346 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
347 #endif
348 }
349 {
350 delete _result;
351 }
352 return _resultobj;
353 }
354
355 static PyObject *_wrap_wxShell(PyObject *self, PyObject *args, PyObject *kwargs) {
356 PyObject * _resultobj;
357 bool _result;
358 wxString * _arg0 = (wxString *) &wxPyEmptyString;
359 PyObject * _obj0 = 0;
360 char *_kwnames[] = { "command", NULL };
361
362 self = self;
363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxShell",_kwnames,&_obj0))
364 return NULL;
365 if (_obj0)
366 {
367 _arg0 = wxString_in_helper(_obj0);
368 if (_arg0 == NULL)
369 return NULL;
370 }
371 {
372 PyThreadState* __tstate = wxPyBeginAllowThreads();
373 _result = (bool )wxShell(*_arg0);
374
375 wxPyEndAllowThreads(__tstate);
376 if (PyErr_Occurred()) return NULL;
377 } _resultobj = Py_BuildValue("i",_result);
378 {
379 if (_obj0)
380 delete _arg0;
381 }
382 return _resultobj;
383 }
384
385 static PyObject *_wrap_wxStartTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
386 PyObject * _resultobj;
387 char *_kwnames[] = { NULL };
388
389 self = self;
390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxStartTimer",_kwnames))
391 return NULL;
392 {
393 PyThreadState* __tstate = wxPyBeginAllowThreads();
394 wxStartTimer();
395
396 wxPyEndAllowThreads(__tstate);
397 if (PyErr_Occurred()) return NULL;
398 } Py_INCREF(Py_None);
399 _resultobj = Py_None;
400 return _resultobj;
401 }
402
403 static PyObject *_wrap_wxGetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
404 PyObject * _resultobj;
405 int _result;
406 int * _arg0;
407 int temp;
408 int * _arg1;
409 int temp0;
410 char *_kwnames[] = { NULL };
411
412 self = self;
413 {
414 _arg0 = &temp;
415 }
416 {
417 _arg1 = &temp0;
418 }
419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetOsVersion",_kwnames))
420 return NULL;
421 {
422 PyThreadState* __tstate = wxPyBeginAllowThreads();
423 _result = (int )wxGetOsVersion(_arg0,_arg1);
424
425 wxPyEndAllowThreads(__tstate);
426 if (PyErr_Occurred()) return NULL;
427 } _resultobj = Py_BuildValue("i",_result);
428 {
429 PyObject *o;
430 o = PyInt_FromLong((long) (*_arg0));
431 _resultobj = t_output_helper(_resultobj, o);
432 }
433 {
434 PyObject *o;
435 o = PyInt_FromLong((long) (*_arg1));
436 _resultobj = t_output_helper(_resultobj, o);
437 }
438 return _resultobj;
439 }
440
441 static PyObject *_wrap_wxGetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
442 PyObject * _resultobj;
443 wxString * _result;
444 char *_kwnames[] = { NULL };
445
446 self = self;
447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetOsDescription",_kwnames))
448 return NULL;
449 {
450 PyThreadState* __tstate = wxPyBeginAllowThreads();
451 _result = new wxString (wxGetOsDescription());
452
453 wxPyEndAllowThreads(__tstate);
454 if (PyErr_Occurred()) return NULL;
455 }{
456 #if wxUSE_UNICODE
457 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
458 #else
459 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
460 #endif
461 }
462 {
463 delete _result;
464 }
465 return _resultobj;
466 }
467
468 static PyObject *_wrap_wxShutdown(PyObject *self, PyObject *args, PyObject *kwargs) {
469 PyObject * _resultobj;
470 bool _result;
471 wxShutdownFlags _arg0;
472 char *_kwnames[] = { "wFlags", NULL };
473
474 self = self;
475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxShutdown",_kwnames,&_arg0))
476 return NULL;
477 {
478 PyThreadState* __tstate = wxPyBeginAllowThreads();
479 _result = (bool )wxShutdown(_arg0);
480
481 wxPyEndAllowThreads(__tstate);
482 if (PyErr_Occurred()) return NULL;
483 } _resultobj = Py_BuildValue("i",_result);
484 return _resultobj;
485 }
486
487 static PyObject *_wrap_wxSleep(PyObject *self, PyObject *args, PyObject *kwargs) {
488 PyObject * _resultobj;
489 int _arg0;
490 char *_kwnames[] = { "secs", NULL };
491
492 self = self;
493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSleep",_kwnames,&_arg0))
494 return NULL;
495 {
496 PyThreadState* __tstate = wxPyBeginAllowThreads();
497 wxSleep(_arg0);
498
499 wxPyEndAllowThreads(__tstate);
500 if (PyErr_Occurred()) return NULL;
501 } Py_INCREF(Py_None);
502 _resultobj = Py_None;
503 return _resultobj;
504 }
505
506 static PyObject *_wrap_wxUsleep(PyObject *self, PyObject *args, PyObject *kwargs) {
507 PyObject * _resultobj;
508 unsigned long _arg0;
509 char *_kwnames[] = { "milliseconds", NULL };
510
511 self = self;
512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxUsleep",_kwnames,&_arg0))
513 return NULL;
514 {
515 PyThreadState* __tstate = wxPyBeginAllowThreads();
516 wxUsleep(_arg0);
517
518 wxPyEndAllowThreads(__tstate);
519 if (PyErr_Occurred()) return NULL;
520 } Py_INCREF(Py_None);
521 _resultobj = Py_None;
522 return _resultobj;
523 }
524
525 static PyObject *_wrap_wxYield(PyObject *self, PyObject *args, PyObject *kwargs) {
526 PyObject * _resultobj;
527 bool _result;
528 char *_kwnames[] = { NULL };
529
530 self = self;
531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxYield",_kwnames))
532 return NULL;
533 {
534 PyThreadState* __tstate = wxPyBeginAllowThreads();
535 _result = (bool )wxYield();
536
537 wxPyEndAllowThreads(__tstate);
538 if (PyErr_Occurred()) return NULL;
539 } _resultobj = Py_BuildValue("i",_result);
540 return _resultobj;
541 }
542
543 static PyObject *_wrap_wxYieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) {
544 PyObject * _resultobj;
545 bool _result;
546 char *_kwnames[] = { NULL };
547
548 self = self;
549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxYieldIfNeeded",_kwnames))
550 return NULL;
551 {
552 PyThreadState* __tstate = wxPyBeginAllowThreads();
553 _result = (bool )wxYieldIfNeeded();
554
555 wxPyEndAllowThreads(__tstate);
556 if (PyErr_Occurred()) return NULL;
557 } _resultobj = Py_BuildValue("i",_result);
558 return _resultobj;
559 }
560
561 static PyObject *_wrap_wxEnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
562 PyObject * _resultobj;
563 bool _arg0;
564 int tempbool0;
565 char *_kwnames[] = { "enable", NULL };
566
567 self = self;
568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxEnableTopLevelWindows",_kwnames,&tempbool0))
569 return NULL;
570 _arg0 = (bool ) tempbool0;
571 {
572 PyThreadState* __tstate = wxPyBeginAllowThreads();
573 wxEnableTopLevelWindows(_arg0);
574
575 wxPyEndAllowThreads(__tstate);
576 if (PyErr_Occurred()) return NULL;
577 } Py_INCREF(Py_None);
578 _resultobj = Py_None;
579 return _resultobj;
580 }
581
582 static PyObject *_wrap_wxStripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
583 PyObject * _resultobj;
584 wxString * _result;
585 wxString * _arg0;
586 PyObject * _obj0 = 0;
587 char *_kwnames[] = { "in", NULL };
588
589 self = self;
590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStripMenuCodes",_kwnames,&_obj0))
591 return NULL;
592 {
593 _arg0 = wxString_in_helper(_obj0);
594 if (_arg0 == NULL)
595 return NULL;
596 }
597 {
598 PyThreadState* __tstate = wxPyBeginAllowThreads();
599 _result = new wxString (wxStripMenuCodes(*_arg0));
600
601 wxPyEndAllowThreads(__tstate);
602 if (PyErr_Occurred()) return NULL;
603 }{
604 #if wxUSE_UNICODE
605 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
606 #else
607 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
608 #endif
609 }
610 {
611 if (_obj0)
612 delete _arg0;
613 }
614 {
615 delete _result;
616 }
617 return _resultobj;
618 }
619
620 static PyObject *_wrap_wxGetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) {
621 PyObject * _resultobj;
622 wxString * _result;
623 char *_kwnames[] = { NULL };
624
625 self = self;
626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetEmailAddress",_kwnames))
627 return NULL;
628 {
629 PyThreadState* __tstate = wxPyBeginAllowThreads();
630 _result = new wxString (wxGetEmailAddress());
631
632 wxPyEndAllowThreads(__tstate);
633 if (PyErr_Occurred()) return NULL;
634 }{
635 #if wxUSE_UNICODE
636 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
637 #else
638 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
639 #endif
640 }
641 {
642 delete _result;
643 }
644 return _resultobj;
645 }
646
647 static PyObject *_wrap_wxGetHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
648 PyObject * _resultobj;
649 wxString * _result;
650 char *_kwnames[] = { NULL };
651
652 self = self;
653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetHostName",_kwnames))
654 return NULL;
655 {
656 PyThreadState* __tstate = wxPyBeginAllowThreads();
657 _result = new wxString (wxGetHostName());
658
659 wxPyEndAllowThreads(__tstate);
660 if (PyErr_Occurred()) return NULL;
661 }{
662 #if wxUSE_UNICODE
663 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
664 #else
665 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
666 #endif
667 }
668 {
669 delete _result;
670 }
671 return _resultobj;
672 }
673
674 static PyObject *_wrap_wxGetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
675 PyObject * _resultobj;
676 wxString * _result;
677 char *_kwnames[] = { NULL };
678
679 self = self;
680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetFullHostName",_kwnames))
681 return NULL;
682 {
683 PyThreadState* __tstate = wxPyBeginAllowThreads();
684 _result = new wxString (wxGetFullHostName());
685
686 wxPyEndAllowThreads(__tstate);
687 if (PyErr_Occurred()) return NULL;
688 }{
689 #if wxUSE_UNICODE
690 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
691 #else
692 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
693 #endif
694 }
695 {
696 delete _result;
697 }
698 return _resultobj;
699 }
700
701 static PyObject *_wrap_wxGetUserId(PyObject *self, PyObject *args, PyObject *kwargs) {
702 PyObject * _resultobj;
703 wxString * _result;
704 char *_kwnames[] = { NULL };
705
706 self = self;
707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetUserId",_kwnames))
708 return NULL;
709 {
710 PyThreadState* __tstate = wxPyBeginAllowThreads();
711 _result = new wxString (wxGetUserId());
712
713 wxPyEndAllowThreads(__tstate);
714 if (PyErr_Occurred()) return NULL;
715 }{
716 #if wxUSE_UNICODE
717 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
718 #else
719 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
720 #endif
721 }
722 {
723 delete _result;
724 }
725 return _resultobj;
726 }
727
728 static PyObject *_wrap_wxGetUserName(PyObject *self, PyObject *args, PyObject *kwargs) {
729 PyObject * _resultobj;
730 wxString * _result;
731 char *_kwnames[] = { NULL };
732
733 self = self;
734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetUserName",_kwnames))
735 return NULL;
736 {
737 PyThreadState* __tstate = wxPyBeginAllowThreads();
738 _result = new wxString (wxGetUserName());
739
740 wxPyEndAllowThreads(__tstate);
741 if (PyErr_Occurred()) return NULL;
742 }{
743 #if wxUSE_UNICODE
744 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
745 #else
746 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
747 #endif
748 }
749 {
750 delete _result;
751 }
752 return _resultobj;
753 }
754
755 static PyObject *_wrap_wxGetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) {
756 PyObject * _resultobj;
757 wxString * _result;
758 char *_kwnames[] = { NULL };
759
760 self = self;
761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetHomeDir",_kwnames))
762 return NULL;
763 {
764 PyThreadState* __tstate = wxPyBeginAllowThreads();
765 _result = new wxString (wxGetHomeDir());
766
767 wxPyEndAllowThreads(__tstate);
768 if (PyErr_Occurred()) return NULL;
769 }{
770 #if wxUSE_UNICODE
771 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
772 #else
773 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
774 #endif
775 }
776 {
777 delete _result;
778 }
779 return _resultobj;
780 }
781
782 static PyObject *_wrap_wxGetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) {
783 PyObject * _resultobj;
784 wxString * _result;
785 wxString * _arg0 = (wxString *) &wxPyEmptyString;
786 PyObject * _obj0 = 0;
787 char *_kwnames[] = { "user", NULL };
788
789 self = self;
790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxGetUserHome",_kwnames,&_obj0))
791 return NULL;
792 if (_obj0)
793 {
794 _arg0 = wxString_in_helper(_obj0);
795 if (_arg0 == NULL)
796 return NULL;
797 }
798 {
799 PyThreadState* __tstate = wxPyBeginAllowThreads();
800 _result = new wxString (wxGetUserHome(*_arg0));
801
802 wxPyEndAllowThreads(__tstate);
803 if (PyErr_Occurred()) return NULL;
804 }{
805 #if wxUSE_UNICODE
806 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
807 #else
808 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
809 #endif
810 }
811 {
812 if (_obj0)
813 delete _arg0;
814 }
815 {
816 delete _result;
817 }
818 return _resultobj;
819 }
820
821 static PyObject *_wrap_wxGetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) {
822 PyObject * _resultobj;
823 unsigned long _result;
824 char *_kwnames[] = { NULL };
825
826 self = self;
827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetProcessId",_kwnames))
828 return NULL;
829 {
830 PyThreadState* __tstate = wxPyBeginAllowThreads();
831 _result = (unsigned long )wxGetProcessId();
832
833 wxPyEndAllowThreads(__tstate);
834 if (PyErr_Occurred()) return NULL;
835 } _resultobj = Py_BuildValue("l",_result);
836 return _resultobj;
837 }
838
839 static PyObject *_wrap_wxGetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
840 PyObject * _resultobj;
841 wxAcceleratorEntry * _result;
842 wxString * _arg0;
843 PyObject * _obj0 = 0;
844 char *_kwnames[] = { "label", NULL };
845 char _ptemp[128];
846
847 self = self;
848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGetAccelFromString",_kwnames,&_obj0))
849 return NULL;
850 {
851 _arg0 = wxString_in_helper(_obj0);
852 if (_arg0 == NULL)
853 return NULL;
854 }
855 {
856 PyThreadState* __tstate = wxPyBeginAllowThreads();
857 _result = (wxAcceleratorEntry *)wxGetAccelFromString(*_arg0);
858
859 wxPyEndAllowThreads(__tstate);
860 if (PyErr_Occurred()) return NULL;
861 } if (_result) {
862 SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p");
863 _resultobj = Py_BuildValue("s",_ptemp);
864 } else {
865 Py_INCREF(Py_None);
866 _resultobj = Py_None;
867 }
868 {
869 if (_obj0)
870 delete _arg0;
871 }
872 return _resultobj;
873 }
874
875 static int _wrap_wxNullAcceleratorTable_set(PyObject *val) {
876
877 PyErr_SetString(PyExc_TypeError,"Variable wxNullAcceleratorTable is read-only.");
878 return 1;
879 }
880
881 static PyObject *_wrap_wxNullAcceleratorTable_get() {
882 PyObject * pyobj;
883 char ptemp[128];
884
885 SWIG_MakePtr(ptemp,(char *) &wxNullAcceleratorTable,"_wxAcceleratorTable_p");
886 pyobj = PyString_FromString(ptemp);
887 return pyobj;
888 }
889
890 static wxString wxObject_GetClassName(wxObject *self) {
891 return self->GetClassInfo()->GetClassName();
892 }
893 static PyObject *_wrap_wxObject_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
894 PyObject * _resultobj;
895 wxString * _result;
896 wxObject * _arg0;
897 PyObject * _argo0 = 0;
898 char *_kwnames[] = { "self", NULL };
899
900 self = self;
901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxObject_GetClassName",_kwnames,&_argo0))
902 return NULL;
903 if (_argo0) {
904 if (_argo0 == Py_None) { _arg0 = NULL; }
905 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxObject_p")) {
906 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxObject_GetClassName. Expected _wxObject_p.");
907 return NULL;
908 }
909 }
910 {
911 PyThreadState* __tstate = wxPyBeginAllowThreads();
912 _result = new wxString (wxObject_GetClassName(_arg0));
913
914 wxPyEndAllowThreads(__tstate);
915 if (PyErr_Occurred()) return NULL;
916 }{
917 #if wxUSE_UNICODE
918 _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len());
919 #else
920 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
921 #endif
922 }
923 {
924 delete _result;
925 }
926 return _resultobj;
927 }
928
929 static void wxObject_Destroy(wxObject *self) {
930 delete self;
931 }
932 static PyObject *_wrap_wxObject_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
933 PyObject * _resultobj;
934 wxObject * _arg0;
935 PyObject * _argo0 = 0;
936 char *_kwnames[] = { "self", NULL };
937
938 self = self;
939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxObject_Destroy",_kwnames,&_argo0))
940 return NULL;
941 if (_argo0) {
942 if (_argo0 == Py_None) { _arg0 = NULL; }
943 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxObject_p")) {
944 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxObject_Destroy. Expected _wxObject_p.");
945 return NULL;
946 }
947 }
948 {
949 PyThreadState* __tstate = wxPyBeginAllowThreads();
950 wxObject_Destroy(_arg0);
951
952 wxPyEndAllowThreads(__tstate);
953 if (PyErr_Occurred()) return NULL;
954 } Py_INCREF(Py_None);
955 _resultobj = Py_None;
956 return _resultobj;
957 }
958
959 #define wxSize_x_set(_swigobj,_swigval) (_swigobj->x = _swigval,_swigval)
960 static PyObject *_wrap_wxSize_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
961 PyObject * _resultobj;
962 long _result;
963 wxSize * _arg0;
964 long _arg1;
965 wxSize temp;
966 PyObject * _obj0 = 0;
967 char *_kwnames[] = { "self","x", NULL };
968
969 self = self;
970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxSize_x_set",_kwnames,&_obj0,&_arg1))
971 return NULL;
972 {
973 _arg0 = &temp;
974 if (! wxSize_helper(_obj0, &_arg0))
975 return NULL;
976 }
977 {
978 PyThreadState* __tstate = wxPyBeginAllowThreads();
979 _result = (long )wxSize_x_set(_arg0,_arg1);
980
981 wxPyEndAllowThreads(__tstate);
982 if (PyErr_Occurred()) return NULL;
983 } _resultobj = Py_BuildValue("l",_result);
984 return _resultobj;
985 }
986
987 #define wxSize_x_get(_swigobj) ((long ) _swigobj->x)
988 static PyObject *_wrap_wxSize_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
989 PyObject * _resultobj;
990 long _result;
991 wxSize * _arg0;
992 wxSize temp;
993 PyObject * _obj0 = 0;
994 char *_kwnames[] = { "self", NULL };
995
996 self = self;
997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSize_x_get",_kwnames,&_obj0))
998 return NULL;
999 {
1000 _arg0 = &temp;
1001 if (! wxSize_helper(_obj0, &_arg0))
1002 return NULL;
1003 }
1004 {
1005 PyThreadState* __tstate = wxPyBeginAllowThreads();
1006 _result = (long )wxSize_x_get(_arg0);
1007
1008 wxPyEndAllowThreads(__tstate);
1009 if (PyErr_Occurred()) return NULL;
1010 } _resultobj = Py_BuildValue("l",_result);
1011 return _resultobj;
1012 }
1013
1014 #define wxSize_y_set(_swigobj,_swigval) (_swigobj->y = _swigval,_swigval)
1015 static PyObject *_wrap_wxSize_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1016 PyObject * _resultobj;
1017 long _result;
1018 wxSize * _arg0;
1019 long _arg1;
1020 wxSize temp;
1021 PyObject * _obj0 = 0;
1022 char *_kwnames[] = { "self","y", NULL };
1023
1024 self = self;
1025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxSize_y_set",_kwnames,&_obj0,&_arg1))
1026 return NULL;
1027 {
1028 _arg0 = &temp;
1029 if (! wxSize_helper(_obj0, &_arg0))
1030 return NULL;
1031 }
1032 {
1033 PyThreadState* __tstate = wxPyBeginAllowThreads();
1034 _result = (long )wxSize_y_set(_arg0,_arg1);
1035
1036 wxPyEndAllowThreads(__tstate);
1037 if (PyErr_Occurred()) return NULL;
1038 } _resultobj = Py_BuildValue("l",_result);
1039 return _resultobj;
1040 }
1041
1042 #define wxSize_y_get(_swigobj) ((long ) _swigobj->y)
1043 static PyObject *_wrap_wxSize_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1044 PyObject * _resultobj;
1045 long _result;
1046 wxSize * _arg0;
1047 wxSize temp;
1048 PyObject * _obj0 = 0;
1049 char *_kwnames[] = { "self", NULL };
1050
1051 self = self;
1052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSize_y_get",_kwnames,&_obj0))
1053 return NULL;
1054 {
1055 _arg0 = &temp;
1056 if (! wxSize_helper(_obj0, &_arg0))
1057 return NULL;
1058 }
1059 {
1060 PyThreadState* __tstate = wxPyBeginAllowThreads();
1061 _result = (long )wxSize_y_get(_arg0);
1062
1063 wxPyEndAllowThreads(__tstate);
1064 if (PyErr_Occurred()) return NULL;
1065 } _resultobj = Py_BuildValue("l",_result);
1066 return _resultobj;
1067 }
1068
1069 #define new_wxSize(_swigarg0,_swigarg1) (new wxSize(_swigarg0,_swigarg1))
1070 static PyObject *_wrap_new_wxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1071 PyObject * _resultobj;
1072 wxSize * _result;
1073 long _arg0 = (long ) 0;
1074 long _arg1 = (long ) 0;
1075 char *_kwnames[] = { "w","h", NULL };
1076 char _ptemp[128];
1077
1078 self = self;
1079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ll:new_wxSize",_kwnames,&_arg0,&_arg1))
1080 return NULL;
1081 {
1082 PyThreadState* __tstate = wxPyBeginAllowThreads();
1083 _result = (wxSize *)new_wxSize(_arg0,_arg1);
1084
1085 wxPyEndAllowThreads(__tstate);
1086 if (PyErr_Occurred()) return NULL;
1087 } if (_result) {
1088 SWIG_MakePtr(_ptemp, (char *) _result,"_wxSize_p");
1089 _resultobj = Py_BuildValue("s",_ptemp);
1090 } else {
1091 Py_INCREF(Py_None);
1092 _resultobj = Py_None;
1093 }
1094 return _resultobj;
1095 }
1096
1097 #define delete_wxSize(_swigobj) (delete _swigobj)
1098 static PyObject *_wrap_delete_wxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
1099 PyObject * _resultobj;
1100 wxSize * _arg0;
1101 wxSize temp;
1102 PyObject * _obj0 = 0;
1103 char *_kwnames[] = { "self", NULL };
1104
1105 self = self;
1106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxSize",_kwnames,&_obj0))
1107 return NULL;
1108 {
1109 _arg0 = &temp;
1110 if (! wxSize_helper(_obj0, &_arg0))
1111 return NULL;
1112 }
1113 {
1114 PyThreadState* __tstate = wxPyBeginAllowThreads();
1115 delete_wxSize(_arg0);
1116
1117 wxPyEndAllowThreads(__tstate);
1118 if (PyErr_Occurred()) return NULL;
1119 } Py_INCREF(Py_None);
1120 _resultobj = Py_None;
1121 return _resultobj;
1122 }
1123
1124 #define wxSize_Set(_swigobj,_swigarg0,_swigarg1) (_swigobj->Set(_swigarg0,_swigarg1))
1125 static PyObject *_wrap_wxSize_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1126 PyObject * _resultobj;
1127 wxSize * _arg0;
1128 long _arg1;
1129 long _arg2;
1130 wxSize temp;
1131 PyObject * _obj0 = 0;
1132 char *_kwnames[] = { "self","w","h", NULL };
1133
1134 self = self;
1135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxSize_Set",_kwnames,&_obj0,&_arg1,&_arg2))
1136 return NULL;
1137 {
1138 _arg0 = &temp;
1139 if (! wxSize_helper(_obj0, &_arg0))
1140 return NULL;
1141 }
1142 {
1143 PyThreadState* __tstate = wxPyBeginAllowThreads();
1144 wxSize_Set(_arg0,_arg1,_arg2);
1145
1146 wxPyEndAllowThreads(__tstate);
1147 if (PyErr_Occurred()) return NULL;
1148 } Py_INCREF(Py_None);
1149 _resultobj = Py_None;
1150 return _resultobj;
1151 }
1152
1153 #define wxSize_GetX(_swigobj) (_swigobj->GetX())
1154 static PyObject *_wrap_wxSize_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
1155 PyObject * _resultobj;
1156 long _result;
1157 wxSize * _arg0;
1158 wxSize temp;
1159 PyObject * _obj0 = 0;
1160 char *_kwnames[] = { "self", NULL };
1161
1162 self = self;
1163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSize_GetX",_kwnames,&_obj0))
1164 return NULL;
1165 {
1166 _arg0 = &temp;
1167 if (! wxSize_helper(_obj0, &_arg0))
1168 return NULL;
1169 }
1170 {
1171 PyThreadState* __tstate = wxPyBeginAllowThreads();
1172 _result = (long )wxSize_GetX(_arg0);
1173
1174 wxPyEndAllowThreads(__tstate);
1175 if (PyErr_Occurred()) return NULL;
1176 } _resultobj = Py_BuildValue("l",_result);
1177 return _resultobj;
1178 }
1179
1180 #define wxSize_GetY(_swigobj) (_swigobj->GetY())
1181 static PyObject *_wrap_wxSize_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
1182 PyObject * _resultobj;
1183 long _result;
1184 wxSize * _arg0;
1185 wxSize temp;
1186 PyObject * _obj0 = 0;
1187 char *_kwnames[] = { "self", NULL };
1188
1189 self = self;
1190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSize_GetY",_kwnames,&_obj0))
1191 return NULL;
1192 {
1193 _arg0 = &temp;
1194 if (! wxSize_helper(_obj0, &_arg0))
1195 return NULL;
1196 }
1197 {
1198 PyThreadState* __tstate = wxPyBeginAllowThreads();
1199 _result = (long )wxSize_GetY(_arg0);
1200
1201 wxPyEndAllowThreads(__tstate);
1202 if (PyErr_Occurred()) return NULL;
1203 } _resultobj = Py_BuildValue("l",_result);
1204 return _resultobj;
1205 }
1206
1207 #define wxSize_GetWidth(_swigobj) (_swigobj->GetWidth())
1208 static PyObject *_wrap_wxSize_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1209 PyObject * _resultobj;
1210 long _result;
1211 wxSize * _arg0;
1212 wxSize temp;
1213 PyObject * _obj0 = 0;
1214 char *_kwnames[] = { "self", NULL };
1215
1216 self = self;
1217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSize_GetWidth",_kwnames,&_obj0))
1218 return NULL;
1219 {
1220 _arg0 = &temp;
1221 if (! wxSize_helper(_obj0, &_arg0))
1222 return NULL;
1223 }
1224 {
1225 PyThreadState* __tstate = wxPyBeginAllowThreads();
1226 _result = (long )wxSize_GetWidth(_arg0);
1227
1228 wxPyEndAllowThreads(__tstate);
1229 if (PyErr_Occurred()) return NULL;
1230 } _resultobj = Py_BuildValue("l",_result);
1231 return _resultobj;
1232 }
1233
1234 #define wxSize_GetHeight(_swigobj) (_swigobj->GetHeight())
1235 static PyObject *_wrap_wxSize_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1236 PyObject * _resultobj;
1237 long _result;
1238 wxSize * _arg0;
1239 wxSize temp;
1240 PyObject * _obj0 = 0;
1241 char *_kwnames[] = { "self", NULL };
1242
1243 self = self;
1244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSize_GetHeight",_kwnames,&_obj0))
1245 return NULL;
1246 {
1247 _arg0 = &temp;
1248 if (! wxSize_helper(_obj0, &_arg0))
1249 return NULL;
1250 }
1251 {
1252 PyThreadState* __tstate = wxPyBeginAllowThreads();
1253 _result = (long )wxSize_GetHeight(_arg0);
1254
1255 wxPyEndAllowThreads(__tstate);
1256 if (PyErr_Occurred()) return NULL;
1257 } _resultobj = Py_BuildValue("l",_result);
1258 return _resultobj;
1259 }
1260
1261 #define wxSize_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1262 static PyObject *_wrap_wxSize_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1263 PyObject * _resultobj;
1264 wxSize * _arg0;
1265 long _arg1;
1266 wxSize temp;
1267 PyObject * _obj0 = 0;
1268 char *_kwnames[] = { "self","w", NULL };
1269
1270 self = self;
1271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxSize_SetWidth",_kwnames,&_obj0,&_arg1))
1272 return NULL;
1273 {
1274 _arg0 = &temp;
1275 if (! wxSize_helper(_obj0, &_arg0))
1276 return NULL;
1277 }
1278 {
1279 PyThreadState* __tstate = wxPyBeginAllowThreads();
1280 wxSize_SetWidth(_arg0,_arg1);
1281
1282 wxPyEndAllowThreads(__tstate);
1283 if (PyErr_Occurred()) return NULL;
1284 } Py_INCREF(Py_None);
1285 _resultobj = Py_None;
1286 return _resultobj;
1287 }
1288
1289 #define wxSize_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1290 static PyObject *_wrap_wxSize_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1291 PyObject * _resultobj;
1292 wxSize * _arg0;
1293 long _arg1;
1294 wxSize temp;
1295 PyObject * _obj0 = 0;
1296 char *_kwnames[] = { "self","h", NULL };
1297
1298 self = self;
1299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxSize_SetHeight",_kwnames,&_obj0,&_arg1))
1300 return NULL;
1301 {
1302 _arg0 = &temp;
1303 if (! wxSize_helper(_obj0, &_arg0))
1304 return NULL;
1305 }
1306 {
1307 PyThreadState* __tstate = wxPyBeginAllowThreads();
1308 wxSize_SetHeight(_arg0,_arg1);
1309
1310 wxPyEndAllowThreads(__tstate);
1311 if (PyErr_Occurred()) return NULL;
1312 } Py_INCREF(Py_None);
1313 _resultobj = Py_None;
1314 return _resultobj;
1315 }
1316
1317 static PyObject * wxSize_asTuple(wxSize *self) {
1318 wxPyBeginBlockThreads();
1319 PyObject* tup = PyTuple_New(2);
1320 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
1321 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
1322 wxPyEndBlockThreads();
1323 return tup;
1324 }
1325 static PyObject *_wrap_wxSize_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
1326 PyObject * _resultobj;
1327 PyObject * _result;
1328 wxSize * _arg0;
1329 wxSize temp;
1330 PyObject * _obj0 = 0;
1331 char *_kwnames[] = { "self", NULL };
1332
1333 self = self;
1334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSize_asTuple",_kwnames,&_obj0))
1335 return NULL;
1336 {
1337 _arg0 = &temp;
1338 if (! wxSize_helper(_obj0, &_arg0))
1339 return NULL;
1340 }
1341 {
1342 PyThreadState* __tstate = wxPyBeginAllowThreads();
1343 _result = (PyObject *)wxSize_asTuple(_arg0);
1344
1345 wxPyEndAllowThreads(__tstate);
1346 if (PyErr_Occurred()) return NULL;
1347 }{
1348 _resultobj = _result;
1349 }
1350 return _resultobj;
1351 }
1352
1353 static bool wxSize___eq__(wxSize *self,PyObject * obj) {
1354 wxSize tmp;
1355 wxSize* ptr = &tmp;
1356 if (obj == Py_None) return FALSE;
1357 wxPyBLOCK_THREADS(bool success = wxSize_helper(obj, &ptr); PyErr_Clear());
1358 if (! success) return FALSE;
1359 return *self == *ptr;
1360 }
1361 static PyObject *_wrap_wxSize___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1362 PyObject * _resultobj;
1363 bool _result;
1364 wxSize * _arg0;
1365 PyObject * _arg1;
1366 wxSize temp;
1367 PyObject * _obj0 = 0;
1368 PyObject * _obj1 = 0;
1369 char *_kwnames[] = { "self","obj", NULL };
1370
1371 self = self;
1372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSize___eq__",_kwnames,&_obj0,&_obj1))
1373 return NULL;
1374 {
1375 _arg0 = &temp;
1376 if (! wxSize_helper(_obj0, &_arg0))
1377 return NULL;
1378 }
1379 {
1380 _arg1 = _obj1;
1381 }
1382 {
1383 PyThreadState* __tstate = wxPyBeginAllowThreads();
1384 _result = (bool )wxSize___eq__(_arg0,_arg1);
1385
1386 wxPyEndAllowThreads(__tstate);
1387 if (PyErr_Occurred()) return NULL;
1388 } _resultobj = Py_BuildValue("i",_result);
1389 return _resultobj;
1390 }
1391
1392 static bool wxSize___ne__(wxSize *self,PyObject * obj) {
1393 wxSize tmp;
1394 wxSize* ptr = &tmp;
1395 if (obj == Py_None) return TRUE;
1396 wxPyBLOCK_THREADS(bool success = wxSize_helper(obj, &ptr); PyErr_Clear());
1397 if (! success) return TRUE;
1398 return *self != *ptr;
1399 }
1400 static PyObject *_wrap_wxSize___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1401 PyObject * _resultobj;
1402 bool _result;
1403 wxSize * _arg0;
1404 PyObject * _arg1;
1405 wxSize temp;
1406 PyObject * _obj0 = 0;
1407 PyObject * _obj1 = 0;
1408 char *_kwnames[] = { "self","obj", NULL };
1409
1410 self = self;
1411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSize___ne__",_kwnames,&_obj0,&_obj1))
1412 return NULL;
1413 {
1414 _arg0 = &temp;
1415 if (! wxSize_helper(_obj0, &_arg0))
1416 return NULL;
1417 }
1418 {
1419 _arg1 = _obj1;
1420 }
1421 {
1422 PyThreadState* __tstate = wxPyBeginAllowThreads();
1423 _result = (bool )wxSize___ne__(_arg0,_arg1);
1424
1425 wxPyEndAllowThreads(__tstate);
1426 if (PyErr_Occurred()) return NULL;
1427 } _resultobj = Py_BuildValue("i",_result);
1428 return _resultobj;
1429 }
1430
1431 #define wxRealPoint_x_set(_swigobj,_swigval) (_swigobj->x = _swigval,_swigval)
1432 static PyObject *_wrap_wxRealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1433 PyObject * _resultobj;
1434 double _result;
1435 wxRealPoint * _arg0;
1436 double _arg1;
1437 wxRealPoint temp;
1438 PyObject * _obj0 = 0;
1439 char *_kwnames[] = { "self","x", NULL };
1440
1441 self = self;
1442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxRealPoint_x_set",_kwnames,&_obj0,&_arg1))
1443 return NULL;
1444 {
1445 _arg0 = &temp;
1446 if (! wxRealPoint_helper(_obj0, &_arg0))
1447 return NULL;
1448 }
1449 {
1450 PyThreadState* __tstate = wxPyBeginAllowThreads();
1451 _result = (double )wxRealPoint_x_set(_arg0,_arg1);
1452
1453 wxPyEndAllowThreads(__tstate);
1454 if (PyErr_Occurred()) return NULL;
1455 } _resultobj = Py_BuildValue("d",_result);
1456 return _resultobj;
1457 }
1458
1459 #define wxRealPoint_x_get(_swigobj) ((double ) _swigobj->x)
1460 static PyObject *_wrap_wxRealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1461 PyObject * _resultobj;
1462 double _result;
1463 wxRealPoint * _arg0;
1464 wxRealPoint temp;
1465 PyObject * _obj0 = 0;
1466 char *_kwnames[] = { "self", NULL };
1467
1468 self = self;
1469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRealPoint_x_get",_kwnames,&_obj0))
1470 return NULL;
1471 {
1472 _arg0 = &temp;
1473 if (! wxRealPoint_helper(_obj0, &_arg0))
1474 return NULL;
1475 }
1476 {
1477 PyThreadState* __tstate = wxPyBeginAllowThreads();
1478 _result = (double )wxRealPoint_x_get(_arg0);
1479
1480 wxPyEndAllowThreads(__tstate);
1481 if (PyErr_Occurred()) return NULL;
1482 } _resultobj = Py_BuildValue("d",_result);
1483 return _resultobj;
1484 }
1485
1486 #define wxRealPoint_y_set(_swigobj,_swigval) (_swigobj->y = _swigval,_swigval)
1487 static PyObject *_wrap_wxRealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1488 PyObject * _resultobj;
1489 double _result;
1490 wxRealPoint * _arg0;
1491 double _arg1;
1492 wxRealPoint temp;
1493 PyObject * _obj0 = 0;
1494 char *_kwnames[] = { "self","y", NULL };
1495
1496 self = self;
1497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxRealPoint_y_set",_kwnames,&_obj0,&_arg1))
1498 return NULL;
1499 {
1500 _arg0 = &temp;
1501 if (! wxRealPoint_helper(_obj0, &_arg0))
1502 return NULL;
1503 }
1504 {
1505 PyThreadState* __tstate = wxPyBeginAllowThreads();
1506 _result = (double )wxRealPoint_y_set(_arg0,_arg1);
1507
1508 wxPyEndAllowThreads(__tstate);
1509 if (PyErr_Occurred()) return NULL;
1510 } _resultobj = Py_BuildValue("d",_result);
1511 return _resultobj;
1512 }
1513
1514 #define wxRealPoint_y_get(_swigobj) ((double ) _swigobj->y)
1515 static PyObject *_wrap_wxRealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1516 PyObject * _resultobj;
1517 double _result;
1518 wxRealPoint * _arg0;
1519 wxRealPoint temp;
1520 PyObject * _obj0 = 0;
1521 char *_kwnames[] = { "self", NULL };
1522
1523 self = self;
1524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRealPoint_y_get",_kwnames,&_obj0))
1525 return NULL;
1526 {
1527 _arg0 = &temp;
1528 if (! wxRealPoint_helper(_obj0, &_arg0))
1529 return NULL;
1530 }
1531 {
1532 PyThreadState* __tstate = wxPyBeginAllowThreads();
1533 _result = (double )wxRealPoint_y_get(_arg0);
1534
1535 wxPyEndAllowThreads(__tstate);
1536 if (PyErr_Occurred()) return NULL;
1537 } _resultobj = Py_BuildValue("d",_result);
1538 return _resultobj;
1539 }
1540
1541 #define new_wxRealPoint(_swigarg0,_swigarg1) (new wxRealPoint(_swigarg0,_swigarg1))
1542 static PyObject *_wrap_new_wxRealPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
1543 PyObject * _resultobj;
1544 wxRealPoint * _result;
1545 double _arg0 = (double ) 0.0;
1546 double _arg1 = (double ) 0.0;
1547 char *_kwnames[] = { "x","y", NULL };
1548 char _ptemp[128];
1549
1550 self = self;
1551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|dd:new_wxRealPoint",_kwnames,&_arg0,&_arg1))
1552 return NULL;
1553 {
1554 PyThreadState* __tstate = wxPyBeginAllowThreads();
1555 _result = (wxRealPoint *)new_wxRealPoint(_arg0,_arg1);
1556
1557 wxPyEndAllowThreads(__tstate);
1558 if (PyErr_Occurred()) return NULL;
1559 } if (_result) {
1560 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRealPoint_p");
1561 _resultobj = Py_BuildValue("s",_ptemp);
1562 } else {
1563 Py_INCREF(Py_None);
1564 _resultobj = Py_None;
1565 }
1566 return _resultobj;
1567 }
1568
1569 #define delete_wxRealPoint(_swigobj) (delete _swigobj)
1570 static PyObject *_wrap_delete_wxRealPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
1571 PyObject * _resultobj;
1572 wxRealPoint * _arg0;
1573 wxRealPoint temp;
1574 PyObject * _obj0 = 0;
1575 char *_kwnames[] = { "self", NULL };
1576
1577 self = self;
1578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRealPoint",_kwnames,&_obj0))
1579 return NULL;
1580 {
1581 _arg0 = &temp;
1582 if (! wxRealPoint_helper(_obj0, &_arg0))
1583 return NULL;
1584 }
1585 {
1586 PyThreadState* __tstate = wxPyBeginAllowThreads();
1587 delete_wxRealPoint(_arg0);
1588
1589 wxPyEndAllowThreads(__tstate);
1590 if (PyErr_Occurred()) return NULL;
1591 } Py_INCREF(Py_None);
1592 _resultobj = Py_None;
1593 return _resultobj;
1594 }
1595
1596 static void wxRealPoint_Set(wxRealPoint *self,double x,double y) {
1597 self->x = x;
1598 self->y = y;
1599 }
1600 static PyObject *_wrap_wxRealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1601 PyObject * _resultobj;
1602 wxRealPoint * _arg0;
1603 double _arg1;
1604 double _arg2;
1605 wxRealPoint temp;
1606 PyObject * _obj0 = 0;
1607 char *_kwnames[] = { "self","x","y", NULL };
1608
1609 self = self;
1610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxRealPoint_Set",_kwnames,&_obj0,&_arg1,&_arg2))
1611 return NULL;
1612 {
1613 _arg0 = &temp;
1614 if (! wxRealPoint_helper(_obj0, &_arg0))
1615 return NULL;
1616 }
1617 {
1618 PyThreadState* __tstate = wxPyBeginAllowThreads();
1619 wxRealPoint_Set(_arg0,_arg1,_arg2);
1620
1621 wxPyEndAllowThreads(__tstate);
1622 if (PyErr_Occurred()) return NULL;
1623 } Py_INCREF(Py_None);
1624 _resultobj = Py_None;
1625 return _resultobj;
1626 }
1627
1628 static PyObject * wxRealPoint_asTuple(wxRealPoint *self) {
1629 wxPyBeginBlockThreads();
1630 PyObject* tup = PyTuple_New(2);
1631 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x));
1632 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y));
1633 wxPyEndBlockThreads();
1634 return tup;
1635 }
1636 static PyObject *_wrap_wxRealPoint_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
1637 PyObject * _resultobj;
1638 PyObject * _result;
1639 wxRealPoint * _arg0;
1640 wxRealPoint temp;
1641 PyObject * _obj0 = 0;
1642 char *_kwnames[] = { "self", NULL };
1643
1644 self = self;
1645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRealPoint_asTuple",_kwnames,&_obj0))
1646 return NULL;
1647 {
1648 _arg0 = &temp;
1649 if (! wxRealPoint_helper(_obj0, &_arg0))
1650 return NULL;
1651 }
1652 {
1653 PyThreadState* __tstate = wxPyBeginAllowThreads();
1654 _result = (PyObject *)wxRealPoint_asTuple(_arg0);
1655
1656 wxPyEndAllowThreads(__tstate);
1657 if (PyErr_Occurred()) return NULL;
1658 }{
1659 _resultobj = _result;
1660 }
1661 return _resultobj;
1662 }
1663
1664 static wxRealPoint wxRealPoint___add__(wxRealPoint *self,const wxRealPoint & p) {
1665 return *self + p;
1666 }
1667 static PyObject *_wrap_wxRealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
1668 PyObject * _resultobj;
1669 wxRealPoint * _result;
1670 wxRealPoint * _arg0;
1671 wxRealPoint * _arg1;
1672 wxRealPoint temp;
1673 PyObject * _obj0 = 0;
1674 wxRealPoint temp0;
1675 PyObject * _obj1 = 0;
1676 char *_kwnames[] = { "self","p", NULL };
1677 char _ptemp[128];
1678
1679 self = self;
1680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRealPoint___add__",_kwnames,&_obj0,&_obj1))
1681 return NULL;
1682 {
1683 _arg0 = &temp;
1684 if (! wxRealPoint_helper(_obj0, &_arg0))
1685 return NULL;
1686 }
1687 {
1688 _arg1 = &temp0;
1689 if (! wxRealPoint_helper(_obj1, &_arg1))
1690 return NULL;
1691 }
1692 {
1693 PyThreadState* __tstate = wxPyBeginAllowThreads();
1694 _result = new wxRealPoint (wxRealPoint___add__(_arg0,*_arg1));
1695
1696 wxPyEndAllowThreads(__tstate);
1697 if (PyErr_Occurred()) return NULL;
1698 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRealPoint_p");
1699 _resultobj = Py_BuildValue("s",_ptemp);
1700 return _resultobj;
1701 }
1702
1703 static wxRealPoint wxRealPoint___sub__(wxRealPoint *self,const wxRealPoint & p) {
1704 return *self - p;
1705 }
1706 static PyObject *_wrap_wxRealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
1707 PyObject * _resultobj;
1708 wxRealPoint * _result;
1709 wxRealPoint * _arg0;
1710 wxRealPoint * _arg1;
1711 wxRealPoint temp;
1712 PyObject * _obj0 = 0;
1713 wxRealPoint temp0;
1714 PyObject * _obj1 = 0;
1715 char *_kwnames[] = { "self","p", NULL };
1716 char _ptemp[128];
1717
1718 self = self;
1719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRealPoint___sub__",_kwnames,&_obj0,&_obj1))
1720 return NULL;
1721 {
1722 _arg0 = &temp;
1723 if (! wxRealPoint_helper(_obj0, &_arg0))
1724 return NULL;
1725 }
1726 {
1727 _arg1 = &temp0;
1728 if (! wxRealPoint_helper(_obj1, &_arg1))
1729 return NULL;
1730 }
1731 {
1732 PyThreadState* __tstate = wxPyBeginAllowThreads();
1733 _result = new wxRealPoint (wxRealPoint___sub__(_arg0,*_arg1));
1734
1735 wxPyEndAllowThreads(__tstate);
1736 if (PyErr_Occurred()) return NULL;
1737 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRealPoint_p");
1738 _resultobj = Py_BuildValue("s",_ptemp);
1739 return _resultobj;
1740 }
1741
1742 static bool wxRealPoint___eq__(wxRealPoint *self,PyObject * obj) {
1743 wxRealPoint tmp;
1744 wxRealPoint* ptr = &tmp;
1745 if (obj == Py_None) return FALSE;
1746 wxPyBLOCK_THREADS(bool success = wxRealPoint_helper(obj, &ptr); PyErr_Clear());
1747 if (! success) return FALSE;
1748 return *self == *ptr;
1749 }
1750 static PyObject *_wrap_wxRealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1751 PyObject * _resultobj;
1752 bool _result;
1753 wxRealPoint * _arg0;
1754 PyObject * _arg1;
1755 wxRealPoint temp;
1756 PyObject * _obj0 = 0;
1757 PyObject * _obj1 = 0;
1758 char *_kwnames[] = { "self","obj", NULL };
1759
1760 self = self;
1761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRealPoint___eq__",_kwnames,&_obj0,&_obj1))
1762 return NULL;
1763 {
1764 _arg0 = &temp;
1765 if (! wxRealPoint_helper(_obj0, &_arg0))
1766 return NULL;
1767 }
1768 {
1769 _arg1 = _obj1;
1770 }
1771 {
1772 PyThreadState* __tstate = wxPyBeginAllowThreads();
1773 _result = (bool )wxRealPoint___eq__(_arg0,_arg1);
1774
1775 wxPyEndAllowThreads(__tstate);
1776 if (PyErr_Occurred()) return NULL;
1777 } _resultobj = Py_BuildValue("i",_result);
1778 return _resultobj;
1779 }
1780
1781 static bool wxRealPoint___ne__(wxRealPoint *self,PyObject * obj) {
1782 wxRealPoint tmp;
1783 wxRealPoint* ptr = &tmp;
1784 if (obj == Py_None) return TRUE;
1785 wxPyBLOCK_THREADS(bool success = wxRealPoint_helper(obj, &ptr); PyErr_Clear());
1786 if (! success) return TRUE;
1787 return *self != *ptr;
1788 }
1789 static PyObject *_wrap_wxRealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1790 PyObject * _resultobj;
1791 bool _result;
1792 wxRealPoint * _arg0;
1793 PyObject * _arg1;
1794 wxRealPoint temp;
1795 PyObject * _obj0 = 0;
1796 PyObject * _obj1 = 0;
1797 char *_kwnames[] = { "self","obj", NULL };
1798
1799 self = self;
1800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRealPoint___ne__",_kwnames,&_obj0,&_obj1))
1801 return NULL;
1802 {
1803 _arg0 = &temp;
1804 if (! wxRealPoint_helper(_obj0, &_arg0))
1805 return NULL;
1806 }
1807 {
1808 _arg1 = _obj1;
1809 }
1810 {
1811 PyThreadState* __tstate = wxPyBeginAllowThreads();
1812 _result = (bool )wxRealPoint___ne__(_arg0,_arg1);
1813
1814 wxPyEndAllowThreads(__tstate);
1815 if (PyErr_Occurred()) return NULL;
1816 } _resultobj = Py_BuildValue("i",_result);
1817 return _resultobj;
1818 }
1819
1820 #define wxPoint_x_set(_swigobj,_swigval) (_swigobj->x = _swigval,_swigval)
1821 static PyObject *_wrap_wxPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1822 PyObject * _resultobj;
1823 long _result;
1824 wxPoint * _arg0;
1825 long _arg1;
1826 wxPoint temp;
1827 PyObject * _obj0 = 0;
1828 char *_kwnames[] = { "self","x", NULL };
1829
1830 self = self;
1831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxPoint_x_set",_kwnames,&_obj0,&_arg1))
1832 return NULL;
1833 {
1834 _arg0 = &temp;
1835 if (! wxPoint_helper(_obj0, &_arg0))
1836 return NULL;
1837 }
1838 {
1839 PyThreadState* __tstate = wxPyBeginAllowThreads();
1840 _result = (long )wxPoint_x_set(_arg0,_arg1);
1841
1842 wxPyEndAllowThreads(__tstate);
1843 if (PyErr_Occurred()) return NULL;
1844 } _resultobj = Py_BuildValue("l",_result);
1845 return _resultobj;
1846 }
1847
1848 #define wxPoint_x_get(_swigobj) ((long ) _swigobj->x)
1849 static PyObject *_wrap_wxPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1850 PyObject * _resultobj;
1851 long _result;
1852 wxPoint * _arg0;
1853 wxPoint temp;
1854 PyObject * _obj0 = 0;
1855 char *_kwnames[] = { "self", NULL };
1856
1857 self = self;
1858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint_x_get",_kwnames,&_obj0))
1859 return NULL;
1860 {
1861 _arg0 = &temp;
1862 if (! wxPoint_helper(_obj0, &_arg0))
1863 return NULL;
1864 }
1865 {
1866 PyThreadState* __tstate = wxPyBeginAllowThreads();
1867 _result = (long )wxPoint_x_get(_arg0);
1868
1869 wxPyEndAllowThreads(__tstate);
1870 if (PyErr_Occurred()) return NULL;
1871 } _resultobj = Py_BuildValue("l",_result);
1872 return _resultobj;
1873 }
1874
1875 #define wxPoint_y_set(_swigobj,_swigval) (_swigobj->y = _swigval,_swigval)
1876 static PyObject *_wrap_wxPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1877 PyObject * _resultobj;
1878 long _result;
1879 wxPoint * _arg0;
1880 long _arg1;
1881 wxPoint temp;
1882 PyObject * _obj0 = 0;
1883 char *_kwnames[] = { "self","y", NULL };
1884
1885 self = self;
1886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxPoint_y_set",_kwnames,&_obj0,&_arg1))
1887 return NULL;
1888 {
1889 _arg0 = &temp;
1890 if (! wxPoint_helper(_obj0, &_arg0))
1891 return NULL;
1892 }
1893 {
1894 PyThreadState* __tstate = wxPyBeginAllowThreads();
1895 _result = (long )wxPoint_y_set(_arg0,_arg1);
1896
1897 wxPyEndAllowThreads(__tstate);
1898 if (PyErr_Occurred()) return NULL;
1899 } _resultobj = Py_BuildValue("l",_result);
1900 return _resultobj;
1901 }
1902
1903 #define wxPoint_y_get(_swigobj) ((long ) _swigobj->y)
1904 static PyObject *_wrap_wxPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1905 PyObject * _resultobj;
1906 long _result;
1907 wxPoint * _arg0;
1908 wxPoint temp;
1909 PyObject * _obj0 = 0;
1910 char *_kwnames[] = { "self", NULL };
1911
1912 self = self;
1913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint_y_get",_kwnames,&_obj0))
1914 return NULL;
1915 {
1916 _arg0 = &temp;
1917 if (! wxPoint_helper(_obj0, &_arg0))
1918 return NULL;
1919 }
1920 {
1921 PyThreadState* __tstate = wxPyBeginAllowThreads();
1922 _result = (long )wxPoint_y_get(_arg0);
1923
1924 wxPyEndAllowThreads(__tstate);
1925 if (PyErr_Occurred()) return NULL;
1926 } _resultobj = Py_BuildValue("l",_result);
1927 return _resultobj;
1928 }
1929
1930 #define new_wxPoint(_swigarg0,_swigarg1) (new wxPoint(_swigarg0,_swigarg1))
1931 static PyObject *_wrap_new_wxPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
1932 PyObject * _resultobj;
1933 wxPoint * _result;
1934 long _arg0 = (long ) 0;
1935 long _arg1 = (long ) 0;
1936 char *_kwnames[] = { "x","y", NULL };
1937 char _ptemp[128];
1938
1939 self = self;
1940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|ll:new_wxPoint",_kwnames,&_arg0,&_arg1))
1941 return NULL;
1942 {
1943 PyThreadState* __tstate = wxPyBeginAllowThreads();
1944 _result = (wxPoint *)new_wxPoint(_arg0,_arg1);
1945
1946 wxPyEndAllowThreads(__tstate);
1947 if (PyErr_Occurred()) return NULL;
1948 } if (_result) {
1949 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint_p");
1950 _resultobj = Py_BuildValue("s",_ptemp);
1951 } else {
1952 Py_INCREF(Py_None);
1953 _resultobj = Py_None;
1954 }
1955 return _resultobj;
1956 }
1957
1958 #define delete_wxPoint(_swigobj) (delete _swigobj)
1959 static PyObject *_wrap_delete_wxPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
1960 PyObject * _resultobj;
1961 wxPoint * _arg0;
1962 wxPoint temp;
1963 PyObject * _obj0 = 0;
1964 char *_kwnames[] = { "self", NULL };
1965
1966 self = self;
1967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPoint",_kwnames,&_obj0))
1968 return NULL;
1969 {
1970 _arg0 = &temp;
1971 if (! wxPoint_helper(_obj0, &_arg0))
1972 return NULL;
1973 }
1974 {
1975 PyThreadState* __tstate = wxPyBeginAllowThreads();
1976 delete_wxPoint(_arg0);
1977
1978 wxPyEndAllowThreads(__tstate);
1979 if (PyErr_Occurred()) return NULL;
1980 } Py_INCREF(Py_None);
1981 _resultobj = Py_None;
1982 return _resultobj;
1983 }
1984
1985 static void wxPoint_Set(wxPoint *self,long x,long y) {
1986 self->x = x;
1987 self->y = y;
1988 }
1989 static PyObject *_wrap_wxPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1990 PyObject * _resultobj;
1991 wxPoint * _arg0;
1992 long _arg1;
1993 long _arg2;
1994 wxPoint temp;
1995 PyObject * _obj0 = 0;
1996 char *_kwnames[] = { "self","x","y", NULL };
1997
1998 self = self;
1999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxPoint_Set",_kwnames,&_obj0,&_arg1,&_arg2))
2000 return NULL;
2001 {
2002 _arg0 = &temp;
2003 if (! wxPoint_helper(_obj0, &_arg0))
2004 return NULL;
2005 }
2006 {
2007 PyThreadState* __tstate = wxPyBeginAllowThreads();
2008 wxPoint_Set(_arg0,_arg1,_arg2);
2009
2010 wxPyEndAllowThreads(__tstate);
2011 if (PyErr_Occurred()) return NULL;
2012 } Py_INCREF(Py_None);
2013 _resultobj = Py_None;
2014 return _resultobj;
2015 }
2016
2017 static PyObject * wxPoint_asTuple(wxPoint *self) {
2018 wxPyBeginBlockThreads();
2019 PyObject* tup = PyTuple_New(2);
2020 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
2021 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
2022 wxPyEndBlockThreads();
2023 return tup;
2024 }
2025 static PyObject *_wrap_wxPoint_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
2026 PyObject * _resultobj;
2027 PyObject * _result;
2028 wxPoint * _arg0;
2029 wxPoint temp;
2030 PyObject * _obj0 = 0;
2031 char *_kwnames[] = { "self", NULL };
2032
2033 self = self;
2034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint_asTuple",_kwnames,&_obj0))
2035 return NULL;
2036 {
2037 _arg0 = &temp;
2038 if (! wxPoint_helper(_obj0, &_arg0))
2039 return NULL;
2040 }
2041 {
2042 PyThreadState* __tstate = wxPyBeginAllowThreads();
2043 _result = (PyObject *)wxPoint_asTuple(_arg0);
2044
2045 wxPyEndAllowThreads(__tstate);
2046 if (PyErr_Occurred()) return NULL;
2047 }{
2048 _resultobj = _result;
2049 }
2050 return _resultobj;
2051 }
2052
2053 static wxPoint wxPoint___add__(wxPoint *self,const wxPoint & p) {
2054 return *self + p;
2055 }
2056 static PyObject *_wrap_wxPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
2057 PyObject * _resultobj;
2058 wxPoint * _result;
2059 wxPoint * _arg0;
2060 wxPoint * _arg1;
2061 wxPoint temp;
2062 PyObject * _obj0 = 0;
2063 wxPoint temp0;
2064 PyObject * _obj1 = 0;
2065 char *_kwnames[] = { "self","p", NULL };
2066 char _ptemp[128];
2067
2068 self = self;
2069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint___add__",_kwnames,&_obj0,&_obj1))
2070 return NULL;
2071 {
2072 _arg0 = &temp;
2073 if (! wxPoint_helper(_obj0, &_arg0))
2074 return NULL;
2075 }
2076 {
2077 _arg1 = &temp0;
2078 if (! wxPoint_helper(_obj1, &_arg1))
2079 return NULL;
2080 }
2081 {
2082 PyThreadState* __tstate = wxPyBeginAllowThreads();
2083 _result = new wxPoint (wxPoint___add__(_arg0,*_arg1));
2084
2085 wxPyEndAllowThreads(__tstate);
2086 if (PyErr_Occurred()) return NULL;
2087 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2088 _resultobj = Py_BuildValue("s",_ptemp);
2089 return _resultobj;
2090 }
2091
2092 static wxPoint wxPoint___sub__(wxPoint *self,const wxPoint & p) {
2093 return *self - p;
2094 }
2095 static PyObject *_wrap_wxPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
2096 PyObject * _resultobj;
2097 wxPoint * _result;
2098 wxPoint * _arg0;
2099 wxPoint * _arg1;
2100 wxPoint temp;
2101 PyObject * _obj0 = 0;
2102 wxPoint temp0;
2103 PyObject * _obj1 = 0;
2104 char *_kwnames[] = { "self","p", NULL };
2105 char _ptemp[128];
2106
2107 self = self;
2108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint___sub__",_kwnames,&_obj0,&_obj1))
2109 return NULL;
2110 {
2111 _arg0 = &temp;
2112 if (! wxPoint_helper(_obj0, &_arg0))
2113 return NULL;
2114 }
2115 {
2116 _arg1 = &temp0;
2117 if (! wxPoint_helper(_obj1, &_arg1))
2118 return NULL;
2119 }
2120 {
2121 PyThreadState* __tstate = wxPyBeginAllowThreads();
2122 _result = new wxPoint (wxPoint___sub__(_arg0,*_arg1));
2123
2124 wxPyEndAllowThreads(__tstate);
2125 if (PyErr_Occurred()) return NULL;
2126 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2127 _resultobj = Py_BuildValue("s",_ptemp);
2128 return _resultobj;
2129 }
2130
2131 static bool wxPoint___eq__(wxPoint *self,PyObject * obj) {
2132 wxPoint tmp;
2133 wxPoint* ptr = &tmp;
2134 if (obj == Py_None) return FALSE;
2135 wxPyBLOCK_THREADS(bool success = wxPoint_helper(obj, &ptr); PyErr_Clear());
2136 if (! success) return FALSE;
2137 return *self == *ptr;
2138 }
2139 static PyObject *_wrap_wxPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2140 PyObject * _resultobj;
2141 bool _result;
2142 wxPoint * _arg0;
2143 PyObject * _arg1;
2144 wxPoint temp;
2145 PyObject * _obj0 = 0;
2146 PyObject * _obj1 = 0;
2147 char *_kwnames[] = { "self","obj", NULL };
2148
2149 self = self;
2150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint___eq__",_kwnames,&_obj0,&_obj1))
2151 return NULL;
2152 {
2153 _arg0 = &temp;
2154 if (! wxPoint_helper(_obj0, &_arg0))
2155 return NULL;
2156 }
2157 {
2158 _arg1 = _obj1;
2159 }
2160 {
2161 PyThreadState* __tstate = wxPyBeginAllowThreads();
2162 _result = (bool )wxPoint___eq__(_arg0,_arg1);
2163
2164 wxPyEndAllowThreads(__tstate);
2165 if (PyErr_Occurred()) return NULL;
2166 } _resultobj = Py_BuildValue("i",_result);
2167 return _resultobj;
2168 }
2169
2170 static bool wxPoint___ne__(wxPoint *self,PyObject * obj) {
2171 wxPoint tmp;
2172 wxPoint* ptr = &tmp;
2173 if (obj == Py_None) return TRUE;
2174 wxPyBLOCK_THREADS(bool success = wxPoint_helper(obj, &ptr); PyErr_Clear());
2175 if (! success) return TRUE;
2176 return *self != *ptr;
2177 }
2178 static PyObject *_wrap_wxPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2179 PyObject * _resultobj;
2180 bool _result;
2181 wxPoint * _arg0;
2182 PyObject * _arg1;
2183 wxPoint temp;
2184 PyObject * _obj0 = 0;
2185 PyObject * _obj1 = 0;
2186 char *_kwnames[] = { "self","obj", NULL };
2187
2188 self = self;
2189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint___ne__",_kwnames,&_obj0,&_obj1))
2190 return NULL;
2191 {
2192 _arg0 = &temp;
2193 if (! wxPoint_helper(_obj0, &_arg0))
2194 return NULL;
2195 }
2196 {
2197 _arg1 = _obj1;
2198 }
2199 {
2200 PyThreadState* __tstate = wxPyBeginAllowThreads();
2201 _result = (bool )wxPoint___ne__(_arg0,_arg1);
2202
2203 wxPyEndAllowThreads(__tstate);
2204 if (PyErr_Occurred()) return NULL;
2205 } _resultobj = Py_BuildValue("i",_result);
2206 return _resultobj;
2207 }
2208
2209 #define new_wxRect(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2210 static PyObject *_wrap_new_wxRect(PyObject *self, PyObject *args, PyObject *kwargs) {
2211 PyObject * _resultobj;
2212 wxRect * _result;
2213 int _arg0 = (int ) 0;
2214 int _arg1 = (int ) 0;
2215 int _arg2 = (int ) 0;
2216 int _arg3 = (int ) 0;
2217 char *_kwnames[] = { "x","y","width","height", NULL };
2218 char _ptemp[128];
2219
2220 self = self;
2221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iiii:new_wxRect",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
2222 return NULL;
2223 {
2224 PyThreadState* __tstate = wxPyBeginAllowThreads();
2225 _result = (wxRect *)new_wxRect(_arg0,_arg1,_arg2,_arg3);
2226
2227 wxPyEndAllowThreads(__tstate);
2228 if (PyErr_Occurred()) return NULL;
2229 } if (_result) {
2230 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRect_p");
2231 _resultobj = Py_BuildValue("s",_ptemp);
2232 } else {
2233 Py_INCREF(Py_None);
2234 _resultobj = Py_None;
2235 }
2236 return _resultobj;
2237 }
2238
2239 #define delete_wxRect(_swigobj) (delete _swigobj)
2240 static PyObject *_wrap_delete_wxRect(PyObject *self, PyObject *args, PyObject *kwargs) {
2241 PyObject * _resultobj;
2242 wxRect * _arg0;
2243 wxRect temp;
2244 PyObject * _obj0 = 0;
2245 char *_kwnames[] = { "self", NULL };
2246
2247 self = self;
2248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRect",_kwnames,&_obj0))
2249 return NULL;
2250 {
2251 _arg0 = &temp;
2252 if (! wxRect_helper(_obj0, &_arg0))
2253 return NULL;
2254 }
2255 {
2256 PyThreadState* __tstate = wxPyBeginAllowThreads();
2257 delete_wxRect(_arg0);
2258
2259 wxPyEndAllowThreads(__tstate);
2260 if (PyErr_Occurred()) return NULL;
2261 } Py_INCREF(Py_None);
2262 _resultobj = Py_None;
2263 return _resultobj;
2264 }
2265
2266 #define wxRect_GetX(_swigobj) (_swigobj->GetX())
2267 static PyObject *_wrap_wxRect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
2268 PyObject * _resultobj;
2269 int _result;
2270 wxRect * _arg0;
2271 wxRect temp;
2272 PyObject * _obj0 = 0;
2273 char *_kwnames[] = { "self", NULL };
2274
2275 self = self;
2276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetX",_kwnames,&_obj0))
2277 return NULL;
2278 {
2279 _arg0 = &temp;
2280 if (! wxRect_helper(_obj0, &_arg0))
2281 return NULL;
2282 }
2283 {
2284 PyThreadState* __tstate = wxPyBeginAllowThreads();
2285 _result = (int )wxRect_GetX(_arg0);
2286
2287 wxPyEndAllowThreads(__tstate);
2288 if (PyErr_Occurred()) return NULL;
2289 } _resultobj = Py_BuildValue("i",_result);
2290 return _resultobj;
2291 }
2292
2293 #define wxRect_SetX(_swigobj,_swigarg0) (_swigobj->SetX(_swigarg0))
2294 static PyObject *_wrap_wxRect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) {
2295 PyObject * _resultobj;
2296 wxRect * _arg0;
2297 int _arg1;
2298 wxRect temp;
2299 PyObject * _obj0 = 0;
2300 char *_kwnames[] = { "self","X", NULL };
2301
2302 self = self;
2303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetX",_kwnames,&_obj0,&_arg1))
2304 return NULL;
2305 {
2306 _arg0 = &temp;
2307 if (! wxRect_helper(_obj0, &_arg0))
2308 return NULL;
2309 }
2310 {
2311 PyThreadState* __tstate = wxPyBeginAllowThreads();
2312 wxRect_SetX(_arg0,_arg1);
2313
2314 wxPyEndAllowThreads(__tstate);
2315 if (PyErr_Occurred()) return NULL;
2316 } Py_INCREF(Py_None);
2317 _resultobj = Py_None;
2318 return _resultobj;
2319 }
2320
2321 #define wxRect_GetY(_swigobj) (_swigobj->GetY())
2322 static PyObject *_wrap_wxRect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
2323 PyObject * _resultobj;
2324 int _result;
2325 wxRect * _arg0;
2326 wxRect temp;
2327 PyObject * _obj0 = 0;
2328 char *_kwnames[] = { "self", NULL };
2329
2330 self = self;
2331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetY",_kwnames,&_obj0))
2332 return NULL;
2333 {
2334 _arg0 = &temp;
2335 if (! wxRect_helper(_obj0, &_arg0))
2336 return NULL;
2337 }
2338 {
2339 PyThreadState* __tstate = wxPyBeginAllowThreads();
2340 _result = (int )wxRect_GetY(_arg0);
2341
2342 wxPyEndAllowThreads(__tstate);
2343 if (PyErr_Occurred()) return NULL;
2344 } _resultobj = Py_BuildValue("i",_result);
2345 return _resultobj;
2346 }
2347
2348 #define wxRect_SetY(_swigobj,_swigarg0) (_swigobj->SetY(_swigarg0))
2349 static PyObject *_wrap_wxRect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) {
2350 PyObject * _resultobj;
2351 wxRect * _arg0;
2352 int _arg1;
2353 wxRect temp;
2354 PyObject * _obj0 = 0;
2355 char *_kwnames[] = { "self","Y", NULL };
2356
2357 self = self;
2358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetY",_kwnames,&_obj0,&_arg1))
2359 return NULL;
2360 {
2361 _arg0 = &temp;
2362 if (! wxRect_helper(_obj0, &_arg0))
2363 return NULL;
2364 }
2365 {
2366 PyThreadState* __tstate = wxPyBeginAllowThreads();
2367 wxRect_SetY(_arg0,_arg1);
2368
2369 wxPyEndAllowThreads(__tstate);
2370 if (PyErr_Occurred()) return NULL;
2371 } Py_INCREF(Py_None);
2372 _resultobj = Py_None;
2373 return _resultobj;
2374 }
2375
2376 #define wxRect_GetWidth(_swigobj) (_swigobj->GetWidth())
2377 static PyObject *_wrap_wxRect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2378 PyObject * _resultobj;
2379 int _result;
2380 wxRect * _arg0;
2381 wxRect temp;
2382 PyObject * _obj0 = 0;
2383 char *_kwnames[] = { "self", NULL };
2384
2385 self = self;
2386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetWidth",_kwnames,&_obj0))
2387 return NULL;
2388 {
2389 _arg0 = &temp;
2390 if (! wxRect_helper(_obj0, &_arg0))
2391 return NULL;
2392 }
2393 {
2394 PyThreadState* __tstate = wxPyBeginAllowThreads();
2395 _result = (int )wxRect_GetWidth(_arg0);
2396
2397 wxPyEndAllowThreads(__tstate);
2398 if (PyErr_Occurred()) return NULL;
2399 } _resultobj = Py_BuildValue("i",_result);
2400 return _resultobj;
2401 }
2402
2403 #define wxRect_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2404 static PyObject *_wrap_wxRect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2405 PyObject * _resultobj;
2406 wxRect * _arg0;
2407 int _arg1;
2408 wxRect temp;
2409 PyObject * _obj0 = 0;
2410 char *_kwnames[] = { "self","w", NULL };
2411
2412 self = self;
2413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetWidth",_kwnames,&_obj0,&_arg1))
2414 return NULL;
2415 {
2416 _arg0 = &temp;
2417 if (! wxRect_helper(_obj0, &_arg0))
2418 return NULL;
2419 }
2420 {
2421 PyThreadState* __tstate = wxPyBeginAllowThreads();
2422 wxRect_SetWidth(_arg0,_arg1);
2423
2424 wxPyEndAllowThreads(__tstate);
2425 if (PyErr_Occurred()) return NULL;
2426 } Py_INCREF(Py_None);
2427 _resultobj = Py_None;
2428 return _resultobj;
2429 }
2430
2431 #define wxRect_GetHeight(_swigobj) (_swigobj->GetHeight())
2432 static PyObject *_wrap_wxRect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2433 PyObject * _resultobj;
2434 int _result;
2435 wxRect * _arg0;
2436 wxRect temp;
2437 PyObject * _obj0 = 0;
2438 char *_kwnames[] = { "self", NULL };
2439
2440 self = self;
2441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetHeight",_kwnames,&_obj0))
2442 return NULL;
2443 {
2444 _arg0 = &temp;
2445 if (! wxRect_helper(_obj0, &_arg0))
2446 return NULL;
2447 }
2448 {
2449 PyThreadState* __tstate = wxPyBeginAllowThreads();
2450 _result = (int )wxRect_GetHeight(_arg0);
2451
2452 wxPyEndAllowThreads(__tstate);
2453 if (PyErr_Occurred()) return NULL;
2454 } _resultobj = Py_BuildValue("i",_result);
2455 return _resultobj;
2456 }
2457
2458 #define wxRect_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2459 static PyObject *_wrap_wxRect_SetHeight(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","h", NULL };
2466
2467 self = self;
2468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetHeight",_kwnames,&_obj0,&_arg1))
2469 return NULL;
2470 {
2471 _arg0 = &temp;
2472 if (! wxRect_helper(_obj0, &_arg0))
2473 return NULL;
2474 }
2475 {
2476 PyThreadState* __tstate = wxPyBeginAllowThreads();
2477 wxRect_SetHeight(_arg0,_arg1);
2478
2479 wxPyEndAllowThreads(__tstate);
2480 if (PyErr_Occurred()) return NULL;
2481 } Py_INCREF(Py_None);
2482 _resultobj = Py_None;
2483 return _resultobj;
2484 }
2485
2486 #define wxRect_GetPosition(_swigobj) (_swigobj->GetPosition())
2487 static PyObject *_wrap_wxRect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2488 PyObject * _resultobj;
2489 wxPoint * _result;
2490 wxRect * _arg0;
2491 wxRect temp;
2492 PyObject * _obj0 = 0;
2493 char *_kwnames[] = { "self", NULL };
2494 char _ptemp[128];
2495
2496 self = self;
2497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetPosition",_kwnames,&_obj0))
2498 return NULL;
2499 {
2500 _arg0 = &temp;
2501 if (! wxRect_helper(_obj0, &_arg0))
2502 return NULL;
2503 }
2504 {
2505 PyThreadState* __tstate = wxPyBeginAllowThreads();
2506 _result = new wxPoint (wxRect_GetPosition(_arg0));
2507
2508 wxPyEndAllowThreads(__tstate);
2509 if (PyErr_Occurred()) return NULL;
2510 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2511 _resultobj = Py_BuildValue("s",_ptemp);
2512 return _resultobj;
2513 }
2514
2515 #define wxRect_GetSize(_swigobj) (_swigobj->GetSize())
2516 static PyObject *_wrap_wxRect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2517 PyObject * _resultobj;
2518 wxSize * _result;
2519 wxRect * _arg0;
2520 wxRect temp;
2521 PyObject * _obj0 = 0;
2522 char *_kwnames[] = { "self", NULL };
2523 char _ptemp[128];
2524
2525 self = self;
2526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetSize",_kwnames,&_obj0))
2527 return NULL;
2528 {
2529 _arg0 = &temp;
2530 if (! wxRect_helper(_obj0, &_arg0))
2531 return NULL;
2532 }
2533 {
2534 PyThreadState* __tstate = wxPyBeginAllowThreads();
2535 _result = new wxSize (wxRect_GetSize(_arg0));
2536
2537 wxPyEndAllowThreads(__tstate);
2538 if (PyErr_Occurred()) return NULL;
2539 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2540 _resultobj = Py_BuildValue("s",_ptemp);
2541 return _resultobj;
2542 }
2543
2544 #define wxRect_SetPosition(_swigobj,_swigarg0) (_swigobj->SetPosition(_swigarg0))
2545 static PyObject *_wrap_wxRect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2546 PyObject * _resultobj;
2547 wxRect * _arg0;
2548 wxPoint * _arg1;
2549 wxRect temp;
2550 PyObject * _obj0 = 0;
2551 wxPoint temp0;
2552 PyObject * _obj1 = 0;
2553 char *_kwnames[] = { "self","p", NULL };
2554
2555 self = self;
2556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRect_SetPosition",_kwnames,&_obj0,&_obj1))
2557 return NULL;
2558 {
2559 _arg0 = &temp;
2560 if (! wxRect_helper(_obj0, &_arg0))
2561 return NULL;
2562 }
2563 {
2564 _arg1 = &temp0;
2565 if (! wxPoint_helper(_obj1, &_arg1))
2566 return NULL;
2567 }
2568 {
2569 PyThreadState* __tstate = wxPyBeginAllowThreads();
2570 wxRect_SetPosition(_arg0,*_arg1);
2571
2572 wxPyEndAllowThreads(__tstate);
2573 if (PyErr_Occurred()) return NULL;
2574 } Py_INCREF(Py_None);
2575 _resultobj = Py_None;
2576 return _resultobj;
2577 }
2578
2579 #define wxRect_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2580 static PyObject *_wrap_wxRect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2581 PyObject * _resultobj;
2582 wxRect * _arg0;
2583 wxSize * _arg1;
2584 wxRect temp;
2585 PyObject * _obj0 = 0;
2586 wxSize temp0;
2587 PyObject * _obj1 = 0;
2588 char *_kwnames[] = { "self","s", NULL };
2589
2590 self = self;
2591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRect_SetSize",_kwnames,&_obj0,&_obj1))
2592 return NULL;
2593 {
2594 _arg0 = &temp;
2595 if (! wxRect_helper(_obj0, &_arg0))
2596 return NULL;
2597 }
2598 {
2599 _arg1 = &temp0;
2600 if (! wxSize_helper(_obj1, &_arg1))
2601 return NULL;
2602 }
2603 {
2604 PyThreadState* __tstate = wxPyBeginAllowThreads();
2605 wxRect_SetSize(_arg0,*_arg1);
2606
2607 wxPyEndAllowThreads(__tstate);
2608 if (PyErr_Occurred()) return NULL;
2609 } Py_INCREF(Py_None);
2610 _resultobj = Py_None;
2611 return _resultobj;
2612 }
2613
2614 #define wxRect_GetLeft(_swigobj) (_swigobj->GetLeft())
2615 static PyObject *_wrap_wxRect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
2616 PyObject * _resultobj;
2617 int _result;
2618 wxRect * _arg0;
2619 wxRect temp;
2620 PyObject * _obj0 = 0;
2621 char *_kwnames[] = { "self", NULL };
2622
2623 self = self;
2624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetLeft",_kwnames,&_obj0))
2625 return NULL;
2626 {
2627 _arg0 = &temp;
2628 if (! wxRect_helper(_obj0, &_arg0))
2629 return NULL;
2630 }
2631 {
2632 PyThreadState* __tstate = wxPyBeginAllowThreads();
2633 _result = (int )wxRect_GetLeft(_arg0);
2634
2635 wxPyEndAllowThreads(__tstate);
2636 if (PyErr_Occurred()) return NULL;
2637 } _resultobj = Py_BuildValue("i",_result);
2638 return _resultobj;
2639 }
2640
2641 #define wxRect_GetTop(_swigobj) (_swigobj->GetTop())
2642 static PyObject *_wrap_wxRect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) {
2643 PyObject * _resultobj;
2644 int _result;
2645 wxRect * _arg0;
2646 wxRect temp;
2647 PyObject * _obj0 = 0;
2648 char *_kwnames[] = { "self", NULL };
2649
2650 self = self;
2651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetTop",_kwnames,&_obj0))
2652 return NULL;
2653 {
2654 _arg0 = &temp;
2655 if (! wxRect_helper(_obj0, &_arg0))
2656 return NULL;
2657 }
2658 {
2659 PyThreadState* __tstate = wxPyBeginAllowThreads();
2660 _result = (int )wxRect_GetTop(_arg0);
2661
2662 wxPyEndAllowThreads(__tstate);
2663 if (PyErr_Occurred()) return NULL;
2664 } _resultobj = Py_BuildValue("i",_result);
2665 return _resultobj;
2666 }
2667
2668 #define wxRect_GetBottom(_swigobj) (_swigobj->GetBottom())
2669 static PyObject *_wrap_wxRect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) {
2670 PyObject * _resultobj;
2671 int _result;
2672 wxRect * _arg0;
2673 wxRect temp;
2674 PyObject * _obj0 = 0;
2675 char *_kwnames[] = { "self", NULL };
2676
2677 self = self;
2678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetBottom",_kwnames,&_obj0))
2679 return NULL;
2680 {
2681 _arg0 = &temp;
2682 if (! wxRect_helper(_obj0, &_arg0))
2683 return NULL;
2684 }
2685 {
2686 PyThreadState* __tstate = wxPyBeginAllowThreads();
2687 _result = (int )wxRect_GetBottom(_arg0);
2688
2689 wxPyEndAllowThreads(__tstate);
2690 if (PyErr_Occurred()) return NULL;
2691 } _resultobj = Py_BuildValue("i",_result);
2692 return _resultobj;
2693 }
2694
2695 #define wxRect_GetRight(_swigobj) (_swigobj->GetRight())
2696 static PyObject *_wrap_wxRect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) {
2697 PyObject * _resultobj;
2698 int _result;
2699 wxRect * _arg0;
2700 wxRect temp;
2701 PyObject * _obj0 = 0;
2702 char *_kwnames[] = { "self", NULL };
2703
2704 self = self;
2705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_GetRight",_kwnames,&_obj0))
2706 return NULL;
2707 {
2708 _arg0 = &temp;
2709 if (! wxRect_helper(_obj0, &_arg0))
2710 return NULL;
2711 }
2712 {
2713 PyThreadState* __tstate = wxPyBeginAllowThreads();
2714 _result = (int )wxRect_GetRight(_arg0);
2715
2716 wxPyEndAllowThreads(__tstate);
2717 if (PyErr_Occurred()) return NULL;
2718 } _resultobj = Py_BuildValue("i",_result);
2719 return _resultobj;
2720 }
2721
2722 #define wxRect_SetLeft(_swigobj,_swigarg0) (_swigobj->SetLeft(_swigarg0))
2723 static PyObject *_wrap_wxRect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
2724 PyObject * _resultobj;
2725 wxRect * _arg0;
2726 int _arg1;
2727 wxRect temp;
2728 PyObject * _obj0 = 0;
2729 char *_kwnames[] = { "self","left", NULL };
2730
2731 self = self;
2732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetLeft",_kwnames,&_obj0,&_arg1))
2733 return NULL;
2734 {
2735 _arg0 = &temp;
2736 if (! wxRect_helper(_obj0, &_arg0))
2737 return NULL;
2738 }
2739 {
2740 PyThreadState* __tstate = wxPyBeginAllowThreads();
2741 wxRect_SetLeft(_arg0,_arg1);
2742
2743 wxPyEndAllowThreads(__tstate);
2744 if (PyErr_Occurred()) return NULL;
2745 } Py_INCREF(Py_None);
2746 _resultobj = Py_None;
2747 return _resultobj;
2748 }
2749
2750 #define wxRect_SetRight(_swigobj,_swigarg0) (_swigobj->SetRight(_swigarg0))
2751 static PyObject *_wrap_wxRect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) {
2752 PyObject * _resultobj;
2753 wxRect * _arg0;
2754 int _arg1;
2755 wxRect temp;
2756 PyObject * _obj0 = 0;
2757 char *_kwnames[] = { "self","right", NULL };
2758
2759 self = self;
2760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetRight",_kwnames,&_obj0,&_arg1))
2761 return NULL;
2762 {
2763 _arg0 = &temp;
2764 if (! wxRect_helper(_obj0, &_arg0))
2765 return NULL;
2766 }
2767 {
2768 PyThreadState* __tstate = wxPyBeginAllowThreads();
2769 wxRect_SetRight(_arg0,_arg1);
2770
2771 wxPyEndAllowThreads(__tstate);
2772 if (PyErr_Occurred()) return NULL;
2773 } Py_INCREF(Py_None);
2774 _resultobj = Py_None;
2775 return _resultobj;
2776 }
2777
2778 #define wxRect_SetTop(_swigobj,_swigarg0) (_swigobj->SetTop(_swigarg0))
2779 static PyObject *_wrap_wxRect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) {
2780 PyObject * _resultobj;
2781 wxRect * _arg0;
2782 int _arg1;
2783 wxRect temp;
2784 PyObject * _obj0 = 0;
2785 char *_kwnames[] = { "self","top", NULL };
2786
2787 self = self;
2788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetTop",_kwnames,&_obj0,&_arg1))
2789 return NULL;
2790 {
2791 _arg0 = &temp;
2792 if (! wxRect_helper(_obj0, &_arg0))
2793 return NULL;
2794 }
2795 {
2796 PyThreadState* __tstate = wxPyBeginAllowThreads();
2797 wxRect_SetTop(_arg0,_arg1);
2798
2799 wxPyEndAllowThreads(__tstate);
2800 if (PyErr_Occurred()) return NULL;
2801 } Py_INCREF(Py_None);
2802 _resultobj = Py_None;
2803 return _resultobj;
2804 }
2805
2806 #define wxRect_SetBottom(_swigobj,_swigarg0) (_swigobj->SetBottom(_swigarg0))
2807 static PyObject *_wrap_wxRect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) {
2808 PyObject * _resultobj;
2809 wxRect * _arg0;
2810 int _arg1;
2811 wxRect temp;
2812 PyObject * _obj0 = 0;
2813 char *_kwnames[] = { "self","bottom", NULL };
2814
2815 self = self;
2816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_SetBottom",_kwnames,&_obj0,&_arg1))
2817 return NULL;
2818 {
2819 _arg0 = &temp;
2820 if (! wxRect_helper(_obj0, &_arg0))
2821 return NULL;
2822 }
2823 {
2824 PyThreadState* __tstate = wxPyBeginAllowThreads();
2825 wxRect_SetBottom(_arg0,_arg1);
2826
2827 wxPyEndAllowThreads(__tstate);
2828 if (PyErr_Occurred()) return NULL;
2829 } Py_INCREF(Py_None);
2830 _resultobj = Py_None;
2831 return _resultobj;
2832 }
2833
2834 #define wxRect_Deflate(_swigobj,_swigarg0,_swigarg1) (_swigobj->Deflate(_swigarg0,_swigarg1))
2835 static PyObject *_wrap_wxRect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) {
2836 PyObject * _resultobj;
2837 wxRect * _arg0;
2838 int _arg1;
2839 int _arg2;
2840 wxRect temp;
2841 PyObject * _obj0 = 0;
2842 char *_kwnames[] = { "self","dx","dy", NULL };
2843
2844 self = self;
2845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRect_Deflate",_kwnames,&_obj0,&_arg1,&_arg2))
2846 return NULL;
2847 {
2848 _arg0 = &temp;
2849 if (! wxRect_helper(_obj0, &_arg0))
2850 return NULL;
2851 }
2852 {
2853 PyThreadState* __tstate = wxPyBeginAllowThreads();
2854 wxRect_Deflate(_arg0,_arg1,_arg2);
2855
2856 wxPyEndAllowThreads(__tstate);
2857 if (PyErr_Occurred()) return NULL;
2858 } Py_INCREF(Py_None);
2859 _resultobj = Py_None;
2860 return _resultobj;
2861 }
2862
2863 #define wxRect_Inflate(_swigobj,_swigarg0,_swigarg1) (_swigobj->Inflate(_swigarg0,_swigarg1))
2864 static PyObject *_wrap_wxRect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) {
2865 PyObject * _resultobj;
2866 wxRect * _arg0;
2867 int _arg1;
2868 int _arg2;
2869 wxRect temp;
2870 PyObject * _obj0 = 0;
2871 char *_kwnames[] = { "self","dx","dy", NULL };
2872
2873 self = self;
2874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRect_Inflate",_kwnames,&_obj0,&_arg1,&_arg2))
2875 return NULL;
2876 {
2877 _arg0 = &temp;
2878 if (! wxRect_helper(_obj0, &_arg0))
2879 return NULL;
2880 }
2881 {
2882 PyThreadState* __tstate = wxPyBeginAllowThreads();
2883 wxRect_Inflate(_arg0,_arg1,_arg2);
2884
2885 wxPyEndAllowThreads(__tstate);
2886 if (PyErr_Occurred()) return NULL;
2887 } Py_INCREF(Py_None);
2888 _resultobj = Py_None;
2889 return _resultobj;
2890 }
2891
2892 #define wxRect_InsideXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Inside(_swigarg0,_swigarg1))
2893 static PyObject *_wrap_wxRect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) {
2894 PyObject * _resultobj;
2895 bool _result;
2896 wxRect * _arg0;
2897 int _arg1;
2898 int _arg2;
2899 wxRect temp;
2900 PyObject * _obj0 = 0;
2901 char *_kwnames[] = { "self","cx","cy", NULL };
2902
2903 self = self;
2904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRect_InsideXY",_kwnames,&_obj0,&_arg1,&_arg2))
2905 return NULL;
2906 {
2907 _arg0 = &temp;
2908 if (! wxRect_helper(_obj0, &_arg0))
2909 return NULL;
2910 }
2911 {
2912 PyThreadState* __tstate = wxPyBeginAllowThreads();
2913 _result = (bool )wxRect_InsideXY(_arg0,_arg1,_arg2);
2914
2915 wxPyEndAllowThreads(__tstate);
2916 if (PyErr_Occurred()) return NULL;
2917 } _resultobj = Py_BuildValue("i",_result);
2918 return _resultobj;
2919 }
2920
2921 #define wxRect_Inside(_swigobj,_swigarg0) (_swigobj->Inside(_swigarg0))
2922 static PyObject *_wrap_wxRect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) {
2923 PyObject * _resultobj;
2924 bool _result;
2925 wxRect * _arg0;
2926 wxPoint * _arg1;
2927 wxRect temp;
2928 PyObject * _obj0 = 0;
2929 wxPoint temp0;
2930 PyObject * _obj1 = 0;
2931 char *_kwnames[] = { "self","pt", NULL };
2932
2933 self = self;
2934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRect_Inside",_kwnames,&_obj0,&_obj1))
2935 return NULL;
2936 {
2937 _arg0 = &temp;
2938 if (! wxRect_helper(_obj0, &_arg0))
2939 return NULL;
2940 }
2941 {
2942 _arg1 = &temp0;
2943 if (! wxPoint_helper(_obj1, &_arg1))
2944 return NULL;
2945 }
2946 {
2947 PyThreadState* __tstate = wxPyBeginAllowThreads();
2948 _result = (bool )wxRect_Inside(_arg0,*_arg1);
2949
2950 wxPyEndAllowThreads(__tstate);
2951 if (PyErr_Occurred()) return NULL;
2952 } _resultobj = Py_BuildValue("i",_result);
2953 return _resultobj;
2954 }
2955
2956 #define wxRect_Intersects(_swigobj,_swigarg0) (_swigobj->Intersects(_swigarg0))
2957 static PyObject *_wrap_wxRect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) {
2958 PyObject * _resultobj;
2959 bool _result;
2960 wxRect * _arg0;
2961 wxRect * _arg1;
2962 wxRect temp;
2963 PyObject * _obj0 = 0;
2964 wxRect temp0;
2965 PyObject * _obj1 = 0;
2966 char *_kwnames[] = { "self","rect", NULL };
2967
2968 self = self;
2969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRect_Intersects",_kwnames,&_obj0,&_obj1))
2970 return NULL;
2971 {
2972 _arg0 = &temp;
2973 if (! wxRect_helper(_obj0, &_arg0))
2974 return NULL;
2975 }
2976 {
2977 _arg1 = &temp0;
2978 if (! wxRect_helper(_obj1, &_arg1))
2979 return NULL;
2980 }
2981 {
2982 PyThreadState* __tstate = wxPyBeginAllowThreads();
2983 _result = (bool )wxRect_Intersects(_arg0,*_arg1);
2984
2985 wxPyEndAllowThreads(__tstate);
2986 if (PyErr_Occurred()) return NULL;
2987 } _resultobj = Py_BuildValue("i",_result);
2988 return _resultobj;
2989 }
2990
2991 #define wxRect_OffsetXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
2992 static PyObject *_wrap_wxRect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) {
2993 PyObject * _resultobj;
2994 wxRect * _arg0;
2995 int _arg1;
2996 int _arg2;
2997 wxRect temp;
2998 PyObject * _obj0 = 0;
2999 char *_kwnames[] = { "self","dx","dy", NULL };
3000
3001 self = self;
3002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRect_OffsetXY",_kwnames,&_obj0,&_arg1,&_arg2))
3003 return NULL;
3004 {
3005 _arg0 = &temp;
3006 if (! wxRect_helper(_obj0, &_arg0))
3007 return NULL;
3008 }
3009 {
3010 PyThreadState* __tstate = wxPyBeginAllowThreads();
3011 wxRect_OffsetXY(_arg0,_arg1,_arg2);
3012
3013 wxPyEndAllowThreads(__tstate);
3014 if (PyErr_Occurred()) return NULL;
3015 } Py_INCREF(Py_None);
3016 _resultobj = Py_None;
3017 return _resultobj;
3018 }
3019
3020 #define wxRect_Offset(_swigobj,_swigarg0) (_swigobj->Offset(_swigarg0))
3021 static PyObject *_wrap_wxRect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
3022 PyObject * _resultobj;
3023 wxRect * _arg0;
3024 wxPoint * _arg1;
3025 wxRect temp;
3026 PyObject * _obj0 = 0;
3027 wxPoint temp0;
3028 PyObject * _obj1 = 0;
3029 char *_kwnames[] = { "self","pt", NULL };
3030
3031 self = self;
3032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRect_Offset",_kwnames,&_obj0,&_obj1))
3033 return NULL;
3034 {
3035 _arg0 = &temp;
3036 if (! wxRect_helper(_obj0, &_arg0))
3037 return NULL;
3038 }
3039 {
3040 _arg1 = &temp0;
3041 if (! wxPoint_helper(_obj1, &_arg1))
3042 return NULL;
3043 }
3044 {
3045 PyThreadState* __tstate = wxPyBeginAllowThreads();
3046 wxRect_Offset(_arg0,*_arg1);
3047
3048 wxPyEndAllowThreads(__tstate);
3049 if (PyErr_Occurred()) return NULL;
3050 } Py_INCREF(Py_None);
3051 _resultobj = Py_None;
3052 return _resultobj;
3053 }
3054
3055 #define wxRect_x_set(_swigobj,_swigval) (_swigobj->x = _swigval,_swigval)
3056 static PyObject *_wrap_wxRect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
3057 PyObject * _resultobj;
3058 int _result;
3059 wxRect * _arg0;
3060 int _arg1;
3061 wxRect temp;
3062 PyObject * _obj0 = 0;
3063 char *_kwnames[] = { "self","x", NULL };
3064
3065 self = self;
3066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_x_set",_kwnames,&_obj0,&_arg1))
3067 return NULL;
3068 {
3069 _arg0 = &temp;
3070 if (! wxRect_helper(_obj0, &_arg0))
3071 return NULL;
3072 }
3073 {
3074 PyThreadState* __tstate = wxPyBeginAllowThreads();
3075 _result = (int )wxRect_x_set(_arg0,_arg1);
3076
3077 wxPyEndAllowThreads(__tstate);
3078 if (PyErr_Occurred()) return NULL;
3079 } _resultobj = Py_BuildValue("i",_result);
3080 return _resultobj;
3081 }
3082
3083 #define wxRect_x_get(_swigobj) ((int ) _swigobj->x)
3084 static PyObject *_wrap_wxRect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
3085 PyObject * _resultobj;
3086 int _result;
3087 wxRect * _arg0;
3088 wxRect temp;
3089 PyObject * _obj0 = 0;
3090 char *_kwnames[] = { "self", NULL };
3091
3092 self = self;
3093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_x_get",_kwnames,&_obj0))
3094 return NULL;
3095 {
3096 _arg0 = &temp;
3097 if (! wxRect_helper(_obj0, &_arg0))
3098 return NULL;
3099 }
3100 {
3101 PyThreadState* __tstate = wxPyBeginAllowThreads();
3102 _result = (int )wxRect_x_get(_arg0);
3103
3104 wxPyEndAllowThreads(__tstate);
3105 if (PyErr_Occurred()) return NULL;
3106 } _resultobj = Py_BuildValue("i",_result);
3107 return _resultobj;
3108 }
3109
3110 #define wxRect_y_set(_swigobj,_swigval) (_swigobj->y = _swigval,_swigval)
3111 static PyObject *_wrap_wxRect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
3112 PyObject * _resultobj;
3113 int _result;
3114 wxRect * _arg0;
3115 int _arg1;
3116 wxRect temp;
3117 PyObject * _obj0 = 0;
3118 char *_kwnames[] = { "self","y", NULL };
3119
3120 self = self;
3121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_y_set",_kwnames,&_obj0,&_arg1))
3122 return NULL;
3123 {
3124 _arg0 = &temp;
3125 if (! wxRect_helper(_obj0, &_arg0))
3126 return NULL;
3127 }
3128 {
3129 PyThreadState* __tstate = wxPyBeginAllowThreads();
3130 _result = (int )wxRect_y_set(_arg0,_arg1);
3131
3132 wxPyEndAllowThreads(__tstate);
3133 if (PyErr_Occurred()) return NULL;
3134 } _resultobj = Py_BuildValue("i",_result);
3135 return _resultobj;
3136 }
3137
3138 #define wxRect_y_get(_swigobj) ((int ) _swigobj->y)
3139 static PyObject *_wrap_wxRect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
3140 PyObject * _resultobj;
3141 int _result;
3142 wxRect * _arg0;
3143 wxRect temp;
3144 PyObject * _obj0 = 0;
3145 char *_kwnames[] = { "self", NULL };
3146
3147 self = self;
3148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_y_get",_kwnames,&_obj0))
3149 return NULL;
3150 {
3151 _arg0 = &temp;
3152 if (! wxRect_helper(_obj0, &_arg0))
3153 return NULL;
3154 }
3155 {
3156 PyThreadState* __tstate = wxPyBeginAllowThreads();
3157 _result = (int )wxRect_y_get(_arg0);
3158
3159 wxPyEndAllowThreads(__tstate);
3160 if (PyErr_Occurred()) return NULL;
3161 } _resultobj = Py_BuildValue("i",_result);
3162 return _resultobj;
3163 }
3164
3165 #define wxRect_width_set(_swigobj,_swigval) (_swigobj->width = _swigval,_swigval)
3166 static PyObject *_wrap_wxRect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
3167 PyObject * _resultobj;
3168 int _result;
3169 wxRect * _arg0;
3170 int _arg1;
3171 wxRect temp;
3172 PyObject * _obj0 = 0;
3173 char *_kwnames[] = { "self","width", NULL };
3174
3175 self = self;
3176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_width_set",_kwnames,&_obj0,&_arg1))
3177 return NULL;
3178 {
3179 _arg0 = &temp;
3180 if (! wxRect_helper(_obj0, &_arg0))
3181 return NULL;
3182 }
3183 {
3184 PyThreadState* __tstate = wxPyBeginAllowThreads();
3185 _result = (int )wxRect_width_set(_arg0,_arg1);
3186
3187 wxPyEndAllowThreads(__tstate);
3188 if (PyErr_Occurred()) return NULL;
3189 } _resultobj = Py_BuildValue("i",_result);
3190 return _resultobj;
3191 }
3192
3193 #define wxRect_width_get(_swigobj) ((int ) _swigobj->width)
3194 static PyObject *_wrap_wxRect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
3195 PyObject * _resultobj;
3196 int _result;
3197 wxRect * _arg0;
3198 wxRect temp;
3199 PyObject * _obj0 = 0;
3200 char *_kwnames[] = { "self", NULL };
3201
3202 self = self;
3203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_width_get",_kwnames,&_obj0))
3204 return NULL;
3205 {
3206 _arg0 = &temp;
3207 if (! wxRect_helper(_obj0, &_arg0))
3208 return NULL;
3209 }
3210 {
3211 PyThreadState* __tstate = wxPyBeginAllowThreads();
3212 _result = (int )wxRect_width_get(_arg0);
3213
3214 wxPyEndAllowThreads(__tstate);
3215 if (PyErr_Occurred()) return NULL;
3216 } _resultobj = Py_BuildValue("i",_result);
3217 return _resultobj;
3218 }
3219
3220 #define wxRect_height_set(_swigobj,_swigval) (_swigobj->height = _swigval,_swigval)
3221 static PyObject *_wrap_wxRect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) {
3222 PyObject * _resultobj;
3223 int _result;
3224 wxRect * _arg0;
3225 int _arg1;
3226 wxRect temp;
3227 PyObject * _obj0 = 0;
3228 char *_kwnames[] = { "self","height", NULL };
3229
3230 self = self;
3231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxRect_height_set",_kwnames,&_obj0,&_arg1))
3232 return NULL;
3233 {
3234 _arg0 = &temp;
3235 if (! wxRect_helper(_obj0, &_arg0))
3236 return NULL;
3237 }
3238 {
3239 PyThreadState* __tstate = wxPyBeginAllowThreads();
3240 _result = (int )wxRect_height_set(_arg0,_arg1);
3241
3242 wxPyEndAllowThreads(__tstate);
3243 if (PyErr_Occurred()) return NULL;
3244 } _resultobj = Py_BuildValue("i",_result);
3245 return _resultobj;
3246 }
3247
3248 #define wxRect_height_get(_swigobj) ((int ) _swigobj->height)
3249 static PyObject *_wrap_wxRect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
3250 PyObject * _resultobj;
3251 int _result;
3252 wxRect * _arg0;
3253 wxRect temp;
3254 PyObject * _obj0 = 0;
3255 char *_kwnames[] = { "self", NULL };
3256
3257 self = self;
3258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_height_get",_kwnames,&_obj0))
3259 return NULL;
3260 {
3261 _arg0 = &temp;
3262 if (! wxRect_helper(_obj0, &_arg0))
3263 return NULL;
3264 }
3265 {
3266 PyThreadState* __tstate = wxPyBeginAllowThreads();
3267 _result = (int )wxRect_height_get(_arg0);
3268
3269 wxPyEndAllowThreads(__tstate);
3270 if (PyErr_Occurred()) return NULL;
3271 } _resultobj = Py_BuildValue("i",_result);
3272 return _resultobj;
3273 }
3274
3275 static void wxRect_Set(wxRect *self,int x,int y,int width,int height) {
3276 self->x = x;
3277 self->y = y;
3278 self->width = width;
3279 self->height = height;
3280 }
3281 static PyObject *_wrap_wxRect_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
3282 PyObject * _resultobj;
3283 wxRect * _arg0;
3284 int _arg1 = (int ) 0;
3285 int _arg2 = (int ) 0;
3286 int _arg3 = (int ) 0;
3287 int _arg4 = (int ) 0;
3288 wxRect temp;
3289 PyObject * _obj0 = 0;
3290 char *_kwnames[] = { "self","x","y","width","height", NULL };
3291
3292 self = self;
3293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiii:wxRect_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3,&_arg4))
3294 return NULL;
3295 {
3296 _arg0 = &temp;
3297 if (! wxRect_helper(_obj0, &_arg0))
3298 return NULL;
3299 }
3300 {
3301 PyThreadState* __tstate = wxPyBeginAllowThreads();
3302 wxRect_Set(_arg0,_arg1,_arg2,_arg3,_arg4);
3303
3304 wxPyEndAllowThreads(__tstate);
3305 if (PyErr_Occurred()) return NULL;
3306 } Py_INCREF(Py_None);
3307 _resultobj = Py_None;
3308 return _resultobj;
3309 }
3310
3311 static PyObject * wxRect_asTuple(wxRect *self) {
3312 wxPyBeginBlockThreads();
3313 PyObject* tup = PyTuple_New(4);
3314 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
3315 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
3316 PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width));
3317 PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height));
3318 wxPyEndBlockThreads();
3319 return tup;
3320 }
3321 static PyObject *_wrap_wxRect_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
3322 PyObject * _resultobj;
3323 PyObject * _result;
3324 wxRect * _arg0;
3325 wxRect temp;
3326 PyObject * _obj0 = 0;
3327 char *_kwnames[] = { "self", NULL };
3328
3329 self = self;
3330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRect_asTuple",_kwnames,&_obj0))
3331 return NULL;
3332 {
3333 _arg0 = &temp;
3334 if (! wxRect_helper(_obj0, &_arg0))
3335 return NULL;
3336 }
3337 {
3338 PyThreadState* __tstate = wxPyBeginAllowThreads();
3339 _result = (PyObject *)wxRect_asTuple(_arg0);
3340
3341 wxPyEndAllowThreads(__tstate);
3342 if (PyErr_Occurred()) return NULL;
3343 }{
3344 _resultobj = _result;
3345 }
3346 return _resultobj;
3347 }
3348
3349 static wxRect wxRect___add__(wxRect *self,const wxRect & rect) {
3350 return *self + rect;
3351 }
3352 static PyObject *_wrap_wxRect___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
3353 PyObject * _resultobj;
3354 wxRect * _result;
3355 wxRect * _arg0;
3356 wxRect * _arg1;
3357 wxRect temp;
3358 PyObject * _obj0 = 0;
3359 wxRect temp0;
3360 PyObject * _obj1 = 0;
3361 char *_kwnames[] = { "self","rect", NULL };
3362 char _ptemp[128];
3363
3364 self = self;
3365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRect___add__",_kwnames,&_obj0,&_obj1))
3366 return NULL;
3367 {
3368 _arg0 = &temp;
3369 if (! wxRect_helper(_obj0, &_arg0))
3370 return NULL;
3371 }
3372 {
3373 _arg1 = &temp0;
3374 if (! wxRect_helper(_obj1, &_arg1))
3375 return NULL;
3376 }
3377 {
3378 PyThreadState* __tstate = wxPyBeginAllowThreads();
3379 _result = new wxRect (wxRect___add__(_arg0,*_arg1));
3380
3381 wxPyEndAllowThreads(__tstate);
3382 if (PyErr_Occurred()) return NULL;
3383 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
3384 _resultobj = Py_BuildValue("s",_ptemp);
3385 return _resultobj;
3386 }
3387
3388 static bool wxRect___eq__(wxRect *self,PyObject * obj) {
3389 wxRect tmp;
3390 wxRect* ptr = &tmp;
3391 if (obj == Py_None) return FALSE;
3392 wxPyBLOCK_THREADS(bool success = wxRect_helper(obj, &ptr); PyErr_Clear());
3393 if (! success) return FALSE;
3394 return *self == *ptr;
3395 }
3396 static PyObject *_wrap_wxRect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3397 PyObject * _resultobj;
3398 bool _result;
3399 wxRect * _arg0;
3400 PyObject * _arg1;
3401 wxRect temp;
3402 PyObject * _obj0 = 0;
3403 PyObject * _obj1 = 0;
3404 char *_kwnames[] = { "self","obj", NULL };
3405
3406 self = self;
3407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRect___eq__",_kwnames,&_obj0,&_obj1))
3408 return NULL;
3409 {
3410 _arg0 = &temp;
3411 if (! wxRect_helper(_obj0, &_arg0))
3412 return NULL;
3413 }
3414 {
3415 _arg1 = _obj1;
3416 }
3417 {
3418 PyThreadState* __tstate = wxPyBeginAllowThreads();
3419 _result = (bool )wxRect___eq__(_arg0,_arg1);
3420
3421 wxPyEndAllowThreads(__tstate);
3422 if (PyErr_Occurred()) return NULL;
3423 } _resultobj = Py_BuildValue("i",_result);
3424 return _resultobj;
3425 }
3426
3427 static bool wxRect___ne__(wxRect *self,PyObject * obj) {
3428 wxRect tmp;
3429 wxRect* ptr = &tmp;
3430 if (obj == Py_None) return TRUE;
3431 wxPyBLOCK_THREADS(bool success = wxRect_helper(obj, &ptr); PyErr_Clear());
3432 if (! success) return TRUE;
3433 return *self != *ptr;
3434 }
3435 static PyObject *_wrap_wxRect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3436 PyObject * _resultobj;
3437 bool _result;
3438 wxRect * _arg0;
3439 PyObject * _arg1;
3440 wxRect temp;
3441 PyObject * _obj0 = 0;
3442 PyObject * _obj1 = 0;
3443 char *_kwnames[] = { "self","obj", NULL };
3444
3445 self = self;
3446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRect___ne__",_kwnames,&_obj0,&_obj1))
3447 return NULL;
3448 {
3449 _arg0 = &temp;
3450 if (! wxRect_helper(_obj0, &_arg0))
3451 return NULL;
3452 }
3453 {
3454 _arg1 = _obj1;
3455 }
3456 {
3457 PyThreadState* __tstate = wxPyBeginAllowThreads();
3458 _result = (bool )wxRect___ne__(_arg0,_arg1);
3459
3460 wxPyEndAllowThreads(__tstate);
3461 if (PyErr_Occurred()) return NULL;
3462 } _resultobj = Py_BuildValue("i",_result);
3463 return _resultobj;
3464 }
3465
3466 #define wxPoint2DDouble_m_x_set(_swigobj,_swigval) (_swigobj->m_x = _swigval,_swigval)
3467 static PyObject *_wrap_wxPoint2DDouble_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
3468 PyObject * _resultobj;
3469 double _result;
3470 wxPoint2DDouble * _arg0;
3471 double _arg1;
3472 wxPoint2DDouble temp;
3473 PyObject * _obj0 = 0;
3474 char *_kwnames[] = { "self","m_x", NULL };
3475
3476 self = self;
3477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxPoint2DDouble_m_x_set",_kwnames,&_obj0,&_arg1))
3478 return NULL;
3479 {
3480 _arg0 = &temp;
3481 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3482 return NULL;
3483 }
3484 {
3485 PyThreadState* __tstate = wxPyBeginAllowThreads();
3486 _result = (double )wxPoint2DDouble_m_x_set(_arg0,_arg1);
3487
3488 wxPyEndAllowThreads(__tstate);
3489 if (PyErr_Occurred()) return NULL;
3490 } _resultobj = Py_BuildValue("d",_result);
3491 return _resultobj;
3492 }
3493
3494 #define wxPoint2DDouble_m_x_get(_swigobj) ((double ) _swigobj->m_x)
3495 static PyObject *_wrap_wxPoint2DDouble_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
3496 PyObject * _resultobj;
3497 double _result;
3498 wxPoint2DDouble * _arg0;
3499 wxPoint2DDouble temp;
3500 PyObject * _obj0 = 0;
3501 char *_kwnames[] = { "self", NULL };
3502
3503 self = self;
3504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint2DDouble_m_x_get",_kwnames,&_obj0))
3505 return NULL;
3506 {
3507 _arg0 = &temp;
3508 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3509 return NULL;
3510 }
3511 {
3512 PyThreadState* __tstate = wxPyBeginAllowThreads();
3513 _result = (double )wxPoint2DDouble_m_x_get(_arg0);
3514
3515 wxPyEndAllowThreads(__tstate);
3516 if (PyErr_Occurred()) return NULL;
3517 } _resultobj = Py_BuildValue("d",_result);
3518 return _resultobj;
3519 }
3520
3521 #define wxPoint2DDouble_m_y_set(_swigobj,_swigval) (_swigobj->m_y = _swigval,_swigval)
3522 static PyObject *_wrap_wxPoint2DDouble_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
3523 PyObject * _resultobj;
3524 double _result;
3525 wxPoint2DDouble * _arg0;
3526 double _arg1;
3527 wxPoint2DDouble temp;
3528 PyObject * _obj0 = 0;
3529 char *_kwnames[] = { "self","m_y", NULL };
3530
3531 self = self;
3532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxPoint2DDouble_m_y_set",_kwnames,&_obj0,&_arg1))
3533 return NULL;
3534 {
3535 _arg0 = &temp;
3536 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3537 return NULL;
3538 }
3539 {
3540 PyThreadState* __tstate = wxPyBeginAllowThreads();
3541 _result = (double )wxPoint2DDouble_m_y_set(_arg0,_arg1);
3542
3543 wxPyEndAllowThreads(__tstate);
3544 if (PyErr_Occurred()) return NULL;
3545 } _resultobj = Py_BuildValue("d",_result);
3546 return _resultobj;
3547 }
3548
3549 #define wxPoint2DDouble_m_y_get(_swigobj) ((double ) _swigobj->m_y)
3550 static PyObject *_wrap_wxPoint2DDouble_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
3551 PyObject * _resultobj;
3552 double _result;
3553 wxPoint2DDouble * _arg0;
3554 wxPoint2DDouble temp;
3555 PyObject * _obj0 = 0;
3556 char *_kwnames[] = { "self", NULL };
3557
3558 self = self;
3559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint2DDouble_m_y_get",_kwnames,&_obj0))
3560 return NULL;
3561 {
3562 _arg0 = &temp;
3563 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3564 return NULL;
3565 }
3566 {
3567 PyThreadState* __tstate = wxPyBeginAllowThreads();
3568 _result = (double )wxPoint2DDouble_m_y_get(_arg0);
3569
3570 wxPyEndAllowThreads(__tstate);
3571 if (PyErr_Occurred()) return NULL;
3572 } _resultobj = Py_BuildValue("d",_result);
3573 return _resultobj;
3574 }
3575
3576 #define new_wxPoint2DDouble(_swigarg0,_swigarg1) (new wxPoint2DDouble(_swigarg0,_swigarg1))
3577 static PyObject *_wrap_new_wxPoint2DDouble(PyObject *self, PyObject *args, PyObject *kwargs) {
3578 PyObject * _resultobj;
3579 wxPoint2DDouble * _result;
3580 double _arg0 = (double ) 0;
3581 double _arg1 = (double ) 0;
3582 char *_kwnames[] = { "x","y", NULL };
3583 char _ptemp[128];
3584
3585 self = self;
3586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|dd:new_wxPoint2DDouble",_kwnames,&_arg0,&_arg1))
3587 return NULL;
3588 {
3589 PyThreadState* __tstate = wxPyBeginAllowThreads();
3590 _result = (wxPoint2DDouble *)new_wxPoint2DDouble(_arg0,_arg1);
3591
3592 wxPyEndAllowThreads(__tstate);
3593 if (PyErr_Occurred()) return NULL;
3594 } if (_result) {
3595 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint2DDouble_p");
3596 _resultobj = Py_BuildValue("s",_ptemp);
3597 } else {
3598 Py_INCREF(Py_None);
3599 _resultobj = Py_None;
3600 }
3601 return _resultobj;
3602 }
3603
3604 #define new_wxPoint2DDoubleCopy(_swigarg0) (new wxPoint2DDouble(_swigarg0))
3605 static PyObject *_wrap_new_wxPoint2DDoubleCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
3606 PyObject * _resultobj;
3607 wxPoint2DDouble * _result;
3608 wxPoint2DDouble * _arg0;
3609 wxPoint2DDouble temp;
3610 PyObject * _obj0 = 0;
3611 char *_kwnames[] = { "pt", NULL };
3612 char _ptemp[128];
3613
3614 self = self;
3615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPoint2DDoubleCopy",_kwnames,&_obj0))
3616 return NULL;
3617 {
3618 _arg0 = &temp;
3619 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3620 return NULL;
3621 }
3622 {
3623 PyThreadState* __tstate = wxPyBeginAllowThreads();
3624 _result = (wxPoint2DDouble *)new_wxPoint2DDoubleCopy(*_arg0);
3625
3626 wxPyEndAllowThreads(__tstate);
3627 if (PyErr_Occurred()) return NULL;
3628 } if (_result) {
3629 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint2DDouble_p");
3630 _resultobj = Py_BuildValue("s",_ptemp);
3631 } else {
3632 Py_INCREF(Py_None);
3633 _resultobj = Py_None;
3634 }
3635 return _resultobj;
3636 }
3637
3638 #define new_wxPoint2DDoubleFromPoint(_swigarg0) (new wxPoint2DDouble(_swigarg0))
3639 static PyObject *_wrap_new_wxPoint2DDoubleFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
3640 PyObject * _resultobj;
3641 wxPoint2DDouble * _result;
3642 wxPoint * _arg0;
3643 wxPoint temp;
3644 PyObject * _obj0 = 0;
3645 char *_kwnames[] = { "pt", NULL };
3646 char _ptemp[128];
3647
3648 self = self;
3649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPoint2DDoubleFromPoint",_kwnames,&_obj0))
3650 return NULL;
3651 {
3652 _arg0 = &temp;
3653 if (! wxPoint_helper(_obj0, &_arg0))
3654 return NULL;
3655 }
3656 {
3657 PyThreadState* __tstate = wxPyBeginAllowThreads();
3658 _result = (wxPoint2DDouble *)new_wxPoint2DDoubleFromPoint(*_arg0);
3659
3660 wxPyEndAllowThreads(__tstate);
3661 if (PyErr_Occurred()) return NULL;
3662 } if (_result) {
3663 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint2DDouble_p");
3664 _resultobj = Py_BuildValue("s",_ptemp);
3665 } else {
3666 Py_INCREF(Py_None);
3667 _resultobj = Py_None;
3668 }
3669 return _resultobj;
3670 }
3671
3672 #define wxPoint2DDouble_GetFloor(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetFloor(_swigarg0,_swigarg1))
3673 static PyObject *_wrap_wxPoint2DDouble_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) {
3674 PyObject * _resultobj;
3675 wxPoint2DDouble * _arg0;
3676 int * _arg1;
3677 int temp;
3678 int * _arg2;
3679 int temp0;
3680 wxPoint2DDouble temp1;
3681 PyObject * _obj0 = 0;
3682 char *_kwnames[] = { "self", NULL };
3683
3684 self = self;
3685 {
3686 _arg1 = &temp;
3687 }
3688 {
3689 _arg2 = &temp0;
3690 }
3691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint2DDouble_GetFloor",_kwnames,&_obj0))
3692 return NULL;
3693 {
3694 _arg0 = &temp1;
3695 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3696 return NULL;
3697 }
3698 {
3699 PyThreadState* __tstate = wxPyBeginAllowThreads();
3700 wxPoint2DDouble_GetFloor(_arg0,_arg1,_arg2);
3701
3702 wxPyEndAllowThreads(__tstate);
3703 if (PyErr_Occurred()) return NULL;
3704 } Py_INCREF(Py_None);
3705 _resultobj = Py_None;
3706 {
3707 PyObject *o;
3708 o = PyInt_FromLong((long) (*_arg1));
3709 _resultobj = t_output_helper(_resultobj, o);
3710 }
3711 {
3712 PyObject *o;
3713 o = PyInt_FromLong((long) (*_arg2));
3714 _resultobj = t_output_helper(_resultobj, o);
3715 }
3716 return _resultobj;
3717 }
3718
3719 #define wxPoint2DDouble_GetRounded(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetRounded(_swigarg0,_swigarg1))
3720 static PyObject *_wrap_wxPoint2DDouble_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) {
3721 PyObject * _resultobj;
3722 wxPoint2DDouble * _arg0;
3723 int * _arg1;
3724 int temp;
3725 int * _arg2;
3726 int temp0;
3727 wxPoint2DDouble temp1;
3728 PyObject * _obj0 = 0;
3729 char *_kwnames[] = { "self", NULL };
3730
3731 self = self;
3732 {
3733 _arg1 = &temp;
3734 }
3735 {
3736 _arg2 = &temp0;
3737 }
3738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint2DDouble_GetRounded",_kwnames,&_obj0))
3739 return NULL;
3740 {
3741 _arg0 = &temp1;
3742 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3743 return NULL;
3744 }
3745 {
3746 PyThreadState* __tstate = wxPyBeginAllowThreads();
3747 wxPoint2DDouble_GetRounded(_arg0,_arg1,_arg2);
3748
3749 wxPyEndAllowThreads(__tstate);
3750 if (PyErr_Occurred()) return NULL;
3751 } Py_INCREF(Py_None);
3752 _resultobj = Py_None;
3753 {
3754 PyObject *o;
3755 o = PyInt_FromLong((long) (*_arg1));
3756 _resultobj = t_output_helper(_resultobj, o);
3757 }
3758 {
3759 PyObject *o;
3760 o = PyInt_FromLong((long) (*_arg2));
3761 _resultobj = t_output_helper(_resultobj, o);
3762 }
3763 return _resultobj;
3764 }
3765
3766 #define wxPoint2DDouble_GetVectorLength(_swigobj) (_swigobj->GetVectorLength())
3767 static PyObject *_wrap_wxPoint2DDouble_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) {
3768 PyObject * _resultobj;
3769 double _result;
3770 wxPoint2DDouble * _arg0;
3771 wxPoint2DDouble temp;
3772 PyObject * _obj0 = 0;
3773 char *_kwnames[] = { "self", NULL };
3774
3775 self = self;
3776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint2DDouble_GetVectorLength",_kwnames,&_obj0))
3777 return NULL;
3778 {
3779 _arg0 = &temp;
3780 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3781 return NULL;
3782 }
3783 {
3784 PyThreadState* __tstate = wxPyBeginAllowThreads();
3785 _result = (double )wxPoint2DDouble_GetVectorLength(_arg0);
3786
3787 wxPyEndAllowThreads(__tstate);
3788 if (PyErr_Occurred()) return NULL;
3789 } _resultobj = Py_BuildValue("d",_result);
3790 return _resultobj;
3791 }
3792
3793 #define wxPoint2DDouble_GetVectorAngle(_swigobj) (_swigobj->GetVectorAngle())
3794 static PyObject *_wrap_wxPoint2DDouble_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) {
3795 PyObject * _resultobj;
3796 double _result;
3797 wxPoint2DDouble * _arg0;
3798 wxPoint2DDouble temp;
3799 PyObject * _obj0 = 0;
3800 char *_kwnames[] = { "self", NULL };
3801
3802 self = self;
3803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint2DDouble_GetVectorAngle",_kwnames,&_obj0))
3804 return NULL;
3805 {
3806 _arg0 = &temp;
3807 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3808 return NULL;
3809 }
3810 {
3811 PyThreadState* __tstate = wxPyBeginAllowThreads();
3812 _result = (double )wxPoint2DDouble_GetVectorAngle(_arg0);
3813
3814 wxPyEndAllowThreads(__tstate);
3815 if (PyErr_Occurred()) return NULL;
3816 } _resultobj = Py_BuildValue("d",_result);
3817 return _resultobj;
3818 }
3819
3820 #define wxPoint2DDouble_SetVectorLength(_swigobj,_swigarg0) (_swigobj->SetVectorLength(_swigarg0))
3821 static PyObject *_wrap_wxPoint2DDouble_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) {
3822 PyObject * _resultobj;
3823 wxPoint2DDouble * _arg0;
3824 double _arg1;
3825 wxPoint2DDouble temp;
3826 PyObject * _obj0 = 0;
3827 char *_kwnames[] = { "self","length", NULL };
3828
3829 self = self;
3830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxPoint2DDouble_SetVectorLength",_kwnames,&_obj0,&_arg1))
3831 return NULL;
3832 {
3833 _arg0 = &temp;
3834 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3835 return NULL;
3836 }
3837 {
3838 PyThreadState* __tstate = wxPyBeginAllowThreads();
3839 wxPoint2DDouble_SetVectorLength(_arg0,_arg1);
3840
3841 wxPyEndAllowThreads(__tstate);
3842 if (PyErr_Occurred()) return NULL;
3843 } Py_INCREF(Py_None);
3844 _resultobj = Py_None;
3845 return _resultobj;
3846 }
3847
3848 #define wxPoint2DDouble_SetVectorAngle(_swigobj,_swigarg0) (_swigobj->SetVectorAngle(_swigarg0))
3849 static PyObject *_wrap_wxPoint2DDouble_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) {
3850 PyObject * _resultobj;
3851 wxPoint2DDouble * _arg0;
3852 double _arg1;
3853 wxPoint2DDouble temp;
3854 PyObject * _obj0 = 0;
3855 char *_kwnames[] = { "self","degrees", NULL };
3856
3857 self = self;
3858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Od:wxPoint2DDouble_SetVectorAngle",_kwnames,&_obj0,&_arg1))
3859 return NULL;
3860 {
3861 _arg0 = &temp;
3862 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3863 return NULL;
3864 }
3865 {
3866 PyThreadState* __tstate = wxPyBeginAllowThreads();
3867 wxPoint2DDouble_SetVectorAngle(_arg0,_arg1);
3868
3869 wxPyEndAllowThreads(__tstate);
3870 if (PyErr_Occurred()) return NULL;
3871 } Py_INCREF(Py_None);
3872 _resultobj = Py_None;
3873 return _resultobj;
3874 }
3875
3876 #define wxPoint2DDouble_GetDistance(_swigobj,_swigarg0) (_swigobj->GetDistance(_swigarg0))
3877 static PyObject *_wrap_wxPoint2DDouble_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) {
3878 PyObject * _resultobj;
3879 double _result;
3880 wxPoint2DDouble * _arg0;
3881 wxPoint2DDouble * _arg1;
3882 wxPoint2DDouble temp;
3883 PyObject * _obj0 = 0;
3884 wxPoint2DDouble temp0;
3885 PyObject * _obj1 = 0;
3886 char *_kwnames[] = { "self","pt", NULL };
3887
3888 self = self;
3889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint2DDouble_GetDistance",_kwnames,&_obj0,&_obj1))
3890 return NULL;
3891 {
3892 _arg0 = &temp;
3893 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3894 return NULL;
3895 }
3896 {
3897 _arg1 = &temp0;
3898 if (! wxPoint2DDouble_helper(_obj1, &_arg1))
3899 return NULL;
3900 }
3901 {
3902 PyThreadState* __tstate = wxPyBeginAllowThreads();
3903 _result = (double )wxPoint2DDouble_GetDistance(_arg0,*_arg1);
3904
3905 wxPyEndAllowThreads(__tstate);
3906 if (PyErr_Occurred()) return NULL;
3907 } _resultobj = Py_BuildValue("d",_result);
3908 return _resultobj;
3909 }
3910
3911 #define wxPoint2DDouble_GetDistanceSquare(_swigobj,_swigarg0) (_swigobj->GetDistanceSquare(_swigarg0))
3912 static PyObject *_wrap_wxPoint2DDouble_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) {
3913 PyObject * _resultobj;
3914 double _result;
3915 wxPoint2DDouble * _arg0;
3916 wxPoint2DDouble * _arg1;
3917 wxPoint2DDouble temp;
3918 PyObject * _obj0 = 0;
3919 wxPoint2DDouble temp0;
3920 PyObject * _obj1 = 0;
3921 char *_kwnames[] = { "self","pt", NULL };
3922
3923 self = self;
3924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint2DDouble_GetDistanceSquare",_kwnames,&_obj0,&_obj1))
3925 return NULL;
3926 {
3927 _arg0 = &temp;
3928 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3929 return NULL;
3930 }
3931 {
3932 _arg1 = &temp0;
3933 if (! wxPoint2DDouble_helper(_obj1, &_arg1))
3934 return NULL;
3935 }
3936 {
3937 PyThreadState* __tstate = wxPyBeginAllowThreads();
3938 _result = (double )wxPoint2DDouble_GetDistanceSquare(_arg0,*_arg1);
3939
3940 wxPyEndAllowThreads(__tstate);
3941 if (PyErr_Occurred()) return NULL;
3942 } _resultobj = Py_BuildValue("d",_result);
3943 return _resultobj;
3944 }
3945
3946 #define wxPoint2DDouble_GetDotProduct(_swigobj,_swigarg0) (_swigobj->GetDotProduct(_swigarg0))
3947 static PyObject *_wrap_wxPoint2DDouble_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) {
3948 PyObject * _resultobj;
3949 double _result;
3950 wxPoint2DDouble * _arg0;
3951 wxPoint2DDouble * _arg1;
3952 wxPoint2DDouble temp;
3953 PyObject * _obj0 = 0;
3954 wxPoint2DDouble temp0;
3955 PyObject * _obj1 = 0;
3956 char *_kwnames[] = { "self","vec", NULL };
3957
3958 self = self;
3959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint2DDouble_GetDotProduct",_kwnames,&_obj0,&_obj1))
3960 return NULL;
3961 {
3962 _arg0 = &temp;
3963 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3964 return NULL;
3965 }
3966 {
3967 _arg1 = &temp0;
3968 if (! wxPoint2DDouble_helper(_obj1, &_arg1))
3969 return NULL;
3970 }
3971 {
3972 PyThreadState* __tstate = wxPyBeginAllowThreads();
3973 _result = (double )wxPoint2DDouble_GetDotProduct(_arg0,*_arg1);
3974
3975 wxPyEndAllowThreads(__tstate);
3976 if (PyErr_Occurred()) return NULL;
3977 } _resultobj = Py_BuildValue("d",_result);
3978 return _resultobj;
3979 }
3980
3981 #define wxPoint2DDouble_GetCrossProduct(_swigobj,_swigarg0) (_swigobj->GetCrossProduct(_swigarg0))
3982 static PyObject *_wrap_wxPoint2DDouble_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) {
3983 PyObject * _resultobj;
3984 double _result;
3985 wxPoint2DDouble * _arg0;
3986 wxPoint2DDouble * _arg1;
3987 wxPoint2DDouble temp;
3988 PyObject * _obj0 = 0;
3989 wxPoint2DDouble temp0;
3990 PyObject * _obj1 = 0;
3991 char *_kwnames[] = { "self","vec", NULL };
3992
3993 self = self;
3994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint2DDouble_GetCrossProduct",_kwnames,&_obj0,&_obj1))
3995 return NULL;
3996 {
3997 _arg0 = &temp;
3998 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
3999 return NULL;
4000 }
4001 {
4002 _arg1 = &temp0;
4003 if (! wxPoint2DDouble_helper(_obj1, &_arg1))
4004 return NULL;
4005 }
4006 {
4007 PyThreadState* __tstate = wxPyBeginAllowThreads();
4008 _result = (double )wxPoint2DDouble_GetCrossProduct(_arg0,*_arg1);
4009
4010 wxPyEndAllowThreads(__tstate);
4011 if (PyErr_Occurred()) return NULL;
4012 } _resultobj = Py_BuildValue("d",_result);
4013 return _resultobj;
4014 }
4015
4016 static void wxPoint2DDouble_Set(wxPoint2DDouble *self,double x,double y) {
4017 self->m_x = x;
4018 self->m_y = y;
4019 }
4020 static PyObject *_wrap_wxPoint2DDouble_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
4021 PyObject * _resultobj;
4022 wxPoint2DDouble * _arg0;
4023 double _arg1 = (double ) 0;
4024 double _arg2 = (double ) 0;
4025 wxPoint2DDouble temp;
4026 PyObject * _obj0 = 0;
4027 char *_kwnames[] = { "self","x","y", NULL };
4028
4029 self = self;
4030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|dd:wxPoint2DDouble_Set",_kwnames,&_obj0,&_arg1,&_arg2))
4031 return NULL;
4032 {
4033 _arg0 = &temp;
4034 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
4035 return NULL;
4036 }
4037 {
4038 PyThreadState* __tstate = wxPyBeginAllowThreads();
4039 wxPoint2DDouble_Set(_arg0,_arg1,_arg2);
4040
4041 wxPyEndAllowThreads(__tstate);
4042 if (PyErr_Occurred()) return NULL;
4043 } Py_INCREF(Py_None);
4044 _resultobj = Py_None;
4045 return _resultobj;
4046 }
4047
4048 static wxPoint2DDouble wxPoint2DDouble___neg__(wxPoint2DDouble *self) { return -(*self); }
4049 static PyObject *_wrap_wxPoint2DDouble___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
4050 PyObject * _resultobj;
4051 wxPoint2DDouble * _result;
4052 wxPoint2DDouble * _arg0;
4053 wxPoint2DDouble temp;
4054 PyObject * _obj0 = 0;
4055 char *_kwnames[] = { "self", NULL };
4056 char _ptemp[128];
4057
4058 self = self;
4059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint2DDouble___neg__",_kwnames,&_obj0))
4060 return NULL;
4061 {
4062 _arg0 = &temp;
4063 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
4064 return NULL;
4065 }
4066 {
4067 PyThreadState* __tstate = wxPyBeginAllowThreads();
4068 _result = new wxPoint2DDouble (wxPoint2DDouble___neg__(_arg0));
4069
4070 wxPyEndAllowThreads(__tstate);
4071 if (PyErr_Occurred()) return NULL;
4072 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint2DDouble_p");
4073 _resultobj = Py_BuildValue("s",_ptemp);
4074 return _resultobj;
4075 }
4076
4077 static wxPoint2DDouble & wxPoint2DDouble___iadd__(wxPoint2DDouble *self,const wxPoint2DDouble & pt) { return (*self) += pt; }
4078 static PyObject *_wrap_wxPoint2DDouble___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
4079 PyObject * _resultobj;
4080 wxPoint2DDouble * _result;
4081 wxPoint2DDouble * _arg0;
4082 wxPoint2DDouble * _arg1;
4083 wxPoint2DDouble temp;
4084 PyObject * _obj0 = 0;
4085 wxPoint2DDouble temp0;
4086 PyObject * _obj1 = 0;
4087 char *_kwnames[] = { "self","pt", NULL };
4088 char _ptemp[128];
4089
4090 self = self;
4091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint2DDouble___iadd__",_kwnames,&_obj0,&_obj1))
4092 return NULL;
4093 {
4094 _arg0 = &temp;
4095 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
4096 return NULL;
4097 }
4098 {
4099 _arg1 = &temp0;
4100 if (! wxPoint2DDouble_helper(_obj1, &_arg1))
4101 return NULL;
4102 }
4103 {
4104 PyThreadState* __tstate = wxPyBeginAllowThreads();
4105 wxPoint2DDouble & _result_ref = wxPoint2DDouble___iadd__(_arg0,*_arg1);
4106 _result = (wxPoint2DDouble *) &_result_ref;
4107
4108 wxPyEndAllowThreads(__tstate);
4109 if (PyErr_Occurred()) return NULL;
4110 } if (_result) {
4111 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint2DDouble_p");
4112 _resultobj = Py_BuildValue("s",_ptemp);
4113 } else {
4114 Py_INCREF(Py_None);
4115 _resultobj = Py_None;
4116 }
4117 return _resultobj;
4118 }
4119
4120 static wxPoint2DDouble & wxPoint2DDouble___isub__(wxPoint2DDouble *self,const wxPoint2DDouble & pt) { return (*self) -= pt; }
4121 static PyObject *_wrap_wxPoint2DDouble___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
4122 PyObject * _resultobj;
4123 wxPoint2DDouble * _result;
4124 wxPoint2DDouble * _arg0;
4125 wxPoint2DDouble * _arg1;
4126 wxPoint2DDouble temp;
4127 PyObject * _obj0 = 0;
4128 wxPoint2DDouble temp0;
4129 PyObject * _obj1 = 0;
4130 char *_kwnames[] = { "self","pt", NULL };
4131 char _ptemp[128];
4132
4133 self = self;
4134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint2DDouble___isub__",_kwnames,&_obj0,&_obj1))
4135 return NULL;
4136 {
4137 _arg0 = &temp;
4138 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
4139 return NULL;
4140 }
4141 {
4142 _arg1 = &temp0;
4143 if (! wxPoint2DDouble_helper(_obj1, &_arg1))
4144 return NULL;
4145 }
4146 {
4147 PyThreadState* __tstate = wxPyBeginAllowThreads();
4148 wxPoint2DDouble & _result_ref = wxPoint2DDouble___isub__(_arg0,*_arg1);
4149 _result = (wxPoint2DDouble *) &_result_ref;
4150
4151 wxPyEndAllowThreads(__tstate);
4152 if (PyErr_Occurred()) return NULL;
4153 } if (_result) {
4154 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint2DDouble_p");
4155 _resultobj = Py_BuildValue("s",_ptemp);
4156 } else {
4157 Py_INCREF(Py_None);
4158 _resultobj = Py_None;
4159 }
4160 return _resultobj;
4161 }
4162
4163 static wxPoint2DDouble & wxPoint2DDouble___imul__(wxPoint2DDouble *self,const wxPoint2DDouble & pt) { return (*self) *= pt; }
4164 static PyObject *_wrap_wxPoint2DDouble___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
4165 PyObject * _resultobj;
4166 wxPoint2DDouble * _result;
4167 wxPoint2DDouble * _arg0;
4168 wxPoint2DDouble * _arg1;
4169 wxPoint2DDouble temp;
4170 PyObject * _obj0 = 0;
4171 wxPoint2DDouble temp0;
4172 PyObject * _obj1 = 0;
4173 char *_kwnames[] = { "self","pt", NULL };
4174 char _ptemp[128];
4175
4176 self = self;
4177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint2DDouble___imul__",_kwnames,&_obj0,&_obj1))
4178 return NULL;
4179 {
4180 _arg0 = &temp;
4181 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
4182 return NULL;
4183 }
4184 {
4185 _arg1 = &temp0;
4186 if (! wxPoint2DDouble_helper(_obj1, &_arg1))
4187 return NULL;
4188 }
4189 {
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
4191 wxPoint2DDouble & _result_ref = wxPoint2DDouble___imul__(_arg0,*_arg1);
4192 _result = (wxPoint2DDouble *) &_result_ref;
4193
4194 wxPyEndAllowThreads(__tstate);
4195 if (PyErr_Occurred()) return NULL;
4196 } if (_result) {
4197 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint2DDouble_p");
4198 _resultobj = Py_BuildValue("s",_ptemp);
4199 } else {
4200 Py_INCREF(Py_None);
4201 _resultobj = Py_None;
4202 }
4203 return _resultobj;
4204 }
4205
4206 static wxPoint2DDouble & wxPoint2DDouble___idiv__(wxPoint2DDouble *self,const wxPoint2DDouble & pt) { return (*self) /= pt; }
4207 static PyObject *_wrap_wxPoint2DDouble___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) {
4208 PyObject * _resultobj;
4209 wxPoint2DDouble * _result;
4210 wxPoint2DDouble * _arg0;
4211 wxPoint2DDouble * _arg1;
4212 wxPoint2DDouble temp;
4213 PyObject * _obj0 = 0;
4214 wxPoint2DDouble temp0;
4215 PyObject * _obj1 = 0;
4216 char *_kwnames[] = { "self","pt", NULL };
4217 char _ptemp[128];
4218
4219 self = self;
4220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint2DDouble___idiv__",_kwnames,&_obj0,&_obj1))
4221 return NULL;
4222 {
4223 _arg0 = &temp;
4224 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
4225 return NULL;
4226 }
4227 {
4228 _arg1 = &temp0;
4229 if (! wxPoint2DDouble_helper(_obj1, &_arg1))
4230 return NULL;
4231 }
4232 {
4233 PyThreadState* __tstate = wxPyBeginAllowThreads();
4234 wxPoint2DDouble & _result_ref = wxPoint2DDouble___idiv__(_arg0,*_arg1);
4235 _result = (wxPoint2DDouble *) &_result_ref;
4236
4237 wxPyEndAllowThreads(__tstate);
4238 if (PyErr_Occurred()) return NULL;
4239 } if (_result) {
4240 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPoint2DDouble_p");
4241 _resultobj = Py_BuildValue("s",_ptemp);
4242 } else {
4243 Py_INCREF(Py_None);
4244 _resultobj = Py_None;
4245 }
4246 return _resultobj;
4247 }
4248
4249 static bool wxPoint2DDouble___eq__(wxPoint2DDouble *self,PyObject * obj) {
4250 wxPoint2DDouble tmp;
4251 wxPoint2DDouble* ptr = &tmp;
4252 if (obj == Py_None) return FALSE;
4253 wxPyBLOCK_THREADS(bool success = wxPoint2DDouble_helper(obj, &ptr); PyErr_Clear());
4254 if (! success) return FALSE;
4255 return *self == *ptr;
4256 }
4257 static PyObject *_wrap_wxPoint2DDouble___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
4258 PyObject * _resultobj;
4259 bool _result;
4260 wxPoint2DDouble * _arg0;
4261 PyObject * _arg1;
4262 wxPoint2DDouble temp;
4263 PyObject * _obj0 = 0;
4264 PyObject * _obj1 = 0;
4265 char *_kwnames[] = { "self","obj", NULL };
4266
4267 self = self;
4268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint2DDouble___eq__",_kwnames,&_obj0,&_obj1))
4269 return NULL;
4270 {
4271 _arg0 = &temp;
4272 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
4273 return NULL;
4274 }
4275 {
4276 _arg1 = _obj1;
4277 }
4278 {
4279 PyThreadState* __tstate = wxPyBeginAllowThreads();
4280 _result = (bool )wxPoint2DDouble___eq__(_arg0,_arg1);
4281
4282 wxPyEndAllowThreads(__tstate);
4283 if (PyErr_Occurred()) return NULL;
4284 } _resultobj = Py_BuildValue("i",_result);
4285 return _resultobj;
4286 }
4287
4288 static bool wxPoint2DDouble___ne__(wxPoint2DDouble *self,PyObject * obj) {
4289 wxPoint2DDouble tmp;
4290 wxPoint2DDouble* ptr = &tmp;
4291 if (obj == Py_None) return TRUE;
4292 wxPyBLOCK_THREADS(bool success = wxPoint2DDouble_helper(obj, &ptr); PyErr_Clear());
4293 if (! success) return TRUE;
4294 return *self != *ptr;
4295 }
4296 static PyObject *_wrap_wxPoint2DDouble___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
4297 PyObject * _resultobj;
4298 bool _result;
4299 wxPoint2DDouble * _arg0;
4300 PyObject * _arg1;
4301 wxPoint2DDouble temp;
4302 PyObject * _obj0 = 0;
4303 PyObject * _obj1 = 0;
4304 char *_kwnames[] = { "self","obj", NULL };
4305
4306 self = self;
4307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPoint2DDouble___ne__",_kwnames,&_obj0,&_obj1))
4308 return NULL;
4309 {
4310 _arg0 = &temp;
4311 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
4312 return NULL;
4313 }
4314 {
4315 _arg1 = _obj1;
4316 }
4317 {
4318 PyThreadState* __tstate = wxPyBeginAllowThreads();
4319 _result = (bool )wxPoint2DDouble___ne__(_arg0,_arg1);
4320
4321 wxPyEndAllowThreads(__tstate);
4322 if (PyErr_Occurred()) return NULL;
4323 } _resultobj = Py_BuildValue("i",_result);
4324 return _resultobj;
4325 }
4326
4327 static PyObject * wxPoint2DDouble_asTuple(wxPoint2DDouble *self) {
4328 wxPyBeginBlockThreads();
4329 PyObject* tup = PyTuple_New(2);
4330 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x));
4331 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y));
4332 wxPyEndBlockThreads();
4333 return tup;
4334 }
4335 static PyObject *_wrap_wxPoint2DDouble_asTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4336 PyObject * _resultobj;
4337 PyObject * _result;
4338 wxPoint2DDouble * _arg0;
4339 wxPoint2DDouble temp;
4340 PyObject * _obj0 = 0;
4341 char *_kwnames[] = { "self", NULL };
4342
4343 self = self;
4344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPoint2DDouble_asTuple",_kwnames,&_obj0))
4345 return NULL;
4346 {
4347 _arg0 = &temp;
4348 if (! wxPoint2DDouble_helper(_obj0, &_arg0))
4349 return NULL;
4350 }
4351 {
4352 PyThreadState* __tstate = wxPyBeginAllowThreads();
4353 _result = (PyObject *)wxPoint2DDouble_asTuple(_arg0);
4354
4355 wxPyEndAllowThreads(__tstate);
4356 if (PyErr_Occurred()) return NULL;
4357 }{
4358 _resultobj = _result;
4359 }
4360 return _resultobj;
4361 }
4362
4363 static void *SwigwxIndividualLayoutConstraintTowxObject(void *ptr) {
4364 wxIndividualLayoutConstraint *src;
4365 wxObject *dest;
4366 src = (wxIndividualLayoutConstraint *) ptr;
4367 dest = (wxObject *) src;
4368 return (void *) dest;
4369 }
4370
4371 #define wxIndividualLayoutConstraint_Above(_swigobj,_swigarg0,_swigarg1) (_swigobj->Above(_swigarg0,_swigarg1))
4372 static PyObject *_wrap_wxIndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) {
4373 PyObject * _resultobj;
4374 wxIndividualLayoutConstraint * _arg0;
4375 wxWindow * _arg1;
4376 int _arg2 = (int ) 0;
4377 PyObject * _argo0 = 0;
4378 PyObject * _argo1 = 0;
4379 char *_kwnames[] = { "self","otherWin","margin", NULL };
4380
4381 self = self;
4382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxIndividualLayoutConstraint_Above",_kwnames,&_argo0,&_argo1,&_arg2))
4383 return NULL;
4384 if (_argo0) {
4385 if (_argo0 == Py_None) { _arg0 = NULL; }
4386 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) {
4387 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_Above. Expected _wxIndividualLayoutConstraint_p.");
4388 return NULL;
4389 }
4390 }
4391 if (_argo1) {
4392 if (_argo1 == Py_None) { _arg1 = NULL; }
4393 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4394 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIndividualLayoutConstraint_Above. Expected _wxWindow_p.");
4395 return NULL;
4396 }
4397 }
4398 {
4399 PyThreadState* __tstate = wxPyBeginAllowThreads();
4400 wxIndividualLayoutConstraint_Above(_arg0,_arg1,_arg2);
4401
4402 wxPyEndAllowThreads(__tstate);
4403 if (PyErr_Occurred()) return NULL;
4404 } Py_INCREF(Py_None);
4405 _resultobj = Py_None;
4406 return _resultobj;
4407 }
4408
4409 #define wxIndividualLayoutConstraint_Absolute(_swigobj,_swigarg0) (_swigobj->Absolute(_swigarg0))
4410 static PyObject *_wrap_wxIndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) {
4411 PyObject * _resultobj;
4412 wxIndividualLayoutConstraint * _arg0;
4413 int _arg1;
4414 PyObject * _argo0 = 0;
4415 char *_kwnames[] = { "self","value", NULL };
4416
4417 self = self;
4418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIndividualLayoutConstraint_Absolute",_kwnames,&_argo0,&_arg1))
4419 return NULL;
4420 if (_argo0) {
4421 if (_argo0 == Py_None) { _arg0 = NULL; }
4422 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) {
4423 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_Absolute. Expected _wxIndividualLayoutConstraint_p.");
4424 return NULL;
4425 }
4426 }
4427 {
4428 PyThreadState* __tstate = wxPyBeginAllowThreads();
4429 wxIndividualLayoutConstraint_Absolute(_arg0,_arg1);
4430
4431 wxPyEndAllowThreads(__tstate);
4432 if (PyErr_Occurred()) return NULL;
4433 } Py_INCREF(Py_None);
4434 _resultobj = Py_None;
4435 return _resultobj;
4436 }
4437
4438 #define wxIndividualLayoutConstraint_AsIs(_swigobj) (_swigobj->AsIs())
4439 static PyObject *_wrap_wxIndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) {
4440 PyObject * _resultobj;
4441 wxIndividualLayoutConstraint * _arg0;
4442 PyObject * _argo0 = 0;
4443 char *_kwnames[] = { "self", NULL };
4444
4445 self = self;
4446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIndividualLayoutConstraint_AsIs",_kwnames,&_argo0))
4447 return NULL;
4448 if (_argo0) {
4449 if (_argo0 == Py_None) { _arg0 = NULL; }
4450 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) {
4451 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_AsIs. Expected _wxIndividualLayoutConstraint_p.");
4452 return NULL;
4453 }
4454 }
4455 {
4456 PyThreadState* __tstate = wxPyBeginAllowThreads();
4457 wxIndividualLayoutConstraint_AsIs(_arg0);
4458
4459 wxPyEndAllowThreads(__tstate);
4460 if (PyErr_Occurred()) return NULL;
4461 } Py_INCREF(Py_None);
4462 _resultobj = Py_None;
4463 return _resultobj;
4464 }
4465
4466 #define wxIndividualLayoutConstraint_Below(_swigobj,_swigarg0,_swigarg1) (_swigobj->Below(_swigarg0,_swigarg1))
4467 static PyObject *_wrap_wxIndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) {
4468 PyObject * _resultobj;
4469 wxIndividualLayoutConstraint * _arg0;
4470 wxWindow * _arg1;
4471 int _arg2 = (int ) 0;
4472 PyObject * _argo0 = 0;
4473 PyObject * _argo1 = 0;
4474 char *_kwnames[] = { "self","otherWin","margin", NULL };
4475
4476 self = self;
4477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxIndividualLayoutConstraint_Below",_kwnames,&_argo0,&_argo1,&_arg2))
4478 return NULL;
4479 if (_argo0) {
4480 if (_argo0 == Py_None) { _arg0 = NULL; }
4481 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) {
4482 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_Below. Expected _wxIndividualLayoutConstraint_p.");
4483 return NULL;
4484 }
4485 }
4486 if (_argo1) {
4487 if (_argo1 == Py_None) { _arg1 = NULL; }
4488 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4489 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIndividualLayoutConstraint_Below. Expected _wxWindow_p.");
4490 return NULL;
4491 }
4492 }
4493 {
4494 PyThreadState* __tstate = wxPyBeginAllowThreads();
4495 wxIndividualLayoutConstraint_Below(_arg0,_arg1,_arg2);
4496
4497 wxPyEndAllowThreads(__tstate);
4498 if (PyErr_Occurred()) return NULL;
4499 } Py_INCREF(Py_None);
4500 _resultobj = Py_None;
4501 return _resultobj;
4502 }
4503
4504 #define wxIndividualLayoutConstraint_Unconstrained(_swigobj) (_swigobj->Unconstrained())
4505 static PyObject *_wrap_wxIndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) {
4506 PyObject * _resultobj;
4507 wxIndividualLayoutConstraint * _arg0;
4508 PyObject * _argo0 = 0;
4509 char *_kwnames[] = { "self", NULL };
4510
4511 self = self;
4512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIndividualLayoutConstraint_Unconstrained",_kwnames,&_argo0))
4513 return NULL;
4514 if (_argo0) {
4515 if (_argo0 == Py_None) { _arg0 = NULL; }
4516 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) {
4517 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_Unconstrained. Expected _wxIndividualLayoutConstraint_p.");
4518 return NULL;
4519 }
4520 }
4521 {
4522 PyThreadState* __tstate = wxPyBeginAllowThreads();
4523 wxIndividualLayoutConstraint_Unconstrained(_arg0);
4524
4525 wxPyEndAllowThreads(__tstate);
4526 if (PyErr_Occurred()) return NULL;
4527 } Py_INCREF(Py_None);
4528 _resultobj = Py_None;
4529 return _resultobj;
4530 }
4531
4532 #define wxIndividualLayoutConstraint_LeftOf(_swigobj,_swigarg0,_swigarg1) (_swigobj->LeftOf(_swigarg0,_swigarg1))
4533 static PyObject *_wrap_wxIndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) {
4534 PyObject * _resultobj;
4535 wxIndividualLayoutConstraint * _arg0;
4536 wxWindow * _arg1;
4537 int _arg2 = (int ) 0;
4538 PyObject * _argo0 = 0;
4539 PyObject * _argo1 = 0;
4540 char *_kwnames[] = { "self","otherWin","margin", NULL };
4541
4542 self = self;
4543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxIndividualLayoutConstraint_LeftOf",_kwnames,&_argo0,&_argo1,&_arg2))
4544 return NULL;
4545 if (_argo0) {
4546 if (_argo0 == Py_None) { _arg0 = NULL; }
4547 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) {
4548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_LeftOf. Expected _wxIndividualLayoutConstraint_p.");
4549 return NULL;
4550 }
4551 }
4552 if (_argo1) {
4553 if (_argo1 == Py_None) { _arg1 = NULL; }
4554 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4555 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIndividualLayoutConstraint_LeftOf. Expected _wxWindow_p.");
4556 return NULL;
4557 }
4558 }
4559 {
4560 PyThreadState* __tstate = wxPyBeginAllowThreads();
4561 wxIndividualLayoutConstraint_LeftOf(_arg0,_arg1,_arg2);
4562
4563 wxPyEndAllowThreads(__tstate);
4564 if (PyErr_Occurred()) return NULL;
4565 } Py_INCREF(Py_None);
4566 _resultobj = Py_None;
4567 return _resultobj;
4568 }
4569
4570 #define wxIndividualLayoutConstraint_PercentOf(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PercentOf(_swigarg0,_swigarg1,_swigarg2))
4571 static PyObject *_wrap_wxIndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) {
4572 PyObject * _resultobj;
4573 wxIndividualLayoutConstraint * _arg0;
4574 wxWindow * _arg1;
4575 wxEdge _arg2;
4576 int _arg3;
4577 PyObject * _argo0 = 0;
4578 PyObject * _argo1 = 0;
4579 char *_kwnames[] = { "self","otherWin","edge","percent", NULL };
4580
4581 self = self;
4582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxIndividualLayoutConstraint_PercentOf",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
4583 return NULL;
4584 if (_argo0) {
4585 if (_argo0 == Py_None) { _arg0 = NULL; }
4586 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) {
4587 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_PercentOf. Expected _wxIndividualLayoutConstraint_p.");
4588 return NULL;
4589 }
4590 }
4591 if (_argo1) {
4592 if (_argo1 == Py_None) { _arg1 = NULL; }
4593 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4594 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIndividualLayoutConstraint_PercentOf. Expected _wxWindow_p.");
4595 return NULL;
4596 }
4597 }
4598 {
4599 PyThreadState* __tstate = wxPyBeginAllowThreads();
4600 wxIndividualLayoutConstraint_PercentOf(_arg0,_arg1,_arg2,_arg3);
4601
4602 wxPyEndAllowThreads(__tstate);
4603 if (PyErr_Occurred()) return NULL;
4604 } Py_INCREF(Py_None);
4605 _resultobj = Py_None;
4606 return _resultobj;
4607 }
4608
4609 #define wxIndividualLayoutConstraint_RightOf(_swigobj,_swigarg0,_swigarg1) (_swigobj->RightOf(_swigarg0,_swigarg1))
4610 static PyObject *_wrap_wxIndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) {
4611 PyObject * _resultobj;
4612 wxIndividualLayoutConstraint * _arg0;
4613 wxWindow * _arg1;
4614 int _arg2 = (int ) 0;
4615 PyObject * _argo0 = 0;
4616 PyObject * _argo1 = 0;
4617 char *_kwnames[] = { "self","otherWin","margin", NULL };
4618
4619 self = self;
4620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxIndividualLayoutConstraint_RightOf",_kwnames,&_argo0,&_argo1,&_arg2))
4621 return NULL;
4622 if (_argo0) {
4623 if (_argo0 == Py_None) { _arg0 = NULL; }
4624 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) {
4625 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_RightOf. Expected _wxIndividualLayoutConstraint_p.");
4626 return NULL;
4627 }
4628 }
4629 if (_argo1) {
4630 if (_argo1 == Py_None) { _arg1 = NULL; }
4631 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4632 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIndividualLayoutConstraint_RightOf. Expected _wxWindow_p.");
4633 return NULL;
4634 }
4635 }
4636 {
4637 PyThreadState* __tstate = wxPyBeginAllowThreads();
4638 wxIndividualLayoutConstraint_RightOf(_arg0,_arg1,_arg2);
4639
4640 wxPyEndAllowThreads(__tstate);
4641 if (PyErr_Occurred()) return NULL;
4642 } Py_INCREF(Py_None);
4643 _resultobj = Py_None;
4644 return _resultobj;
4645 }
4646
4647 #define wxIndividualLayoutConstraint_SameAs(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SameAs(_swigarg0,_swigarg1,_swigarg2))
4648 static PyObject *_wrap_wxIndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) {
4649 PyObject * _resultobj;
4650 wxIndividualLayoutConstraint * _arg0;
4651 wxWindow * _arg1;
4652 wxEdge _arg2;
4653 int _arg3 = (int ) 0;
4654 PyObject * _argo0 = 0;
4655 PyObject * _argo1 = 0;
4656 char *_kwnames[] = { "self","otherWin","edge","margin", NULL };
4657
4658 self = self;
4659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|i:wxIndividualLayoutConstraint_SameAs",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
4660 return NULL;
4661 if (_argo0) {
4662 if (_argo0 == Py_None) { _arg0 = NULL; }
4663 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) {
4664 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_SameAs. Expected _wxIndividualLayoutConstraint_p.");
4665 return NULL;
4666 }
4667 }
4668 if (_argo1) {
4669 if (_argo1 == Py_None) { _arg1 = NULL; }
4670 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
4671 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIndividualLayoutConstraint_SameAs. Expected _wxWindow_p.");
4672 return NULL;
4673 }
4674 }
4675 {
4676 PyThreadState* __tstate = wxPyBeginAllowThreads();
4677 wxIndividualLayoutConstraint_SameAs(_arg0,_arg1,_arg2,_arg3);
4678
4679 wxPyEndAllowThreads(__tstate);
4680 if (PyErr_Occurred()) return NULL;
4681 } Py_INCREF(Py_None);
4682 _resultobj = Py_None;
4683 return _resultobj;
4684 }
4685
4686 #define wxIndividualLayoutConstraint_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
4687 static PyObject *_wrap_wxIndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
4688 PyObject * _resultobj;
4689 wxIndividualLayoutConstraint * _arg0;
4690 wxRelationship _arg1;
4691 wxWindow * _arg2;
4692 wxEdge _arg3;
4693 int _arg4 = (int ) 0;
4694 int _arg5 = (int ) 0;
4695 PyObject * _argo0 = 0;
4696 PyObject * _argo2 = 0;
4697 char *_kwnames[] = { "self","rel","otherWin","otherEdge","value","margin", NULL };
4698
4699 self = self;
4700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOi|ii:wxIndividualLayoutConstraint_Set",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5))
4701 return NULL;
4702 if (_argo0) {
4703 if (_argo0 == Py_None) { _arg0 = NULL; }
4704 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIndividualLayoutConstraint_p")) {
4705 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIndividualLayoutConstraint_Set. Expected _wxIndividualLayoutConstraint_p.");
4706 return NULL;
4707 }
4708 }
4709 if (_argo2) {
4710 if (_argo2 == Py_None) { _arg2 = NULL; }
4711 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
4712 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxIndividualLayoutConstraint_Set. Expected _wxWindow_p.");
4713 return NULL;
4714 }
4715 }
4716 {
4717 PyThreadState* __tstate = wxPyBeginAllowThreads();
4718 wxIndividualLayoutConstraint_Set(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
4719
4720 wxPyEndAllowThreads(__tstate);
4721 if (PyErr_Occurred()) return NULL;
4722 } Py_INCREF(Py_None);
4723 _resultobj = Py_None;
4724 return _resultobj;
4725 }
4726
4727 static void *SwigwxLayoutConstraintsTowxObject(void *ptr) {
4728 wxLayoutConstraints *src;
4729 wxObject *dest;
4730 src = (wxLayoutConstraints *) ptr;
4731 dest = (wxObject *) src;
4732 return (void *) dest;
4733 }
4734
4735 #define new_wxLayoutConstraints() (new wxLayoutConstraints())
4736 static PyObject *_wrap_new_wxLayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
4737 PyObject * _resultobj;
4738 wxLayoutConstraints * _result;
4739 char *_kwnames[] = { NULL };
4740 char _ptemp[128];
4741
4742 self = self;
4743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLayoutConstraints",_kwnames))
4744 return NULL;
4745 {
4746 PyThreadState* __tstate = wxPyBeginAllowThreads();
4747 _result = (wxLayoutConstraints *)new_wxLayoutConstraints();
4748
4749 wxPyEndAllowThreads(__tstate);
4750 if (PyErr_Occurred()) return NULL;
4751 } if (_result) {
4752 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p");
4753 _resultobj = Py_BuildValue("s",_ptemp);
4754 } else {
4755 Py_INCREF(Py_None);
4756 _resultobj = Py_None;
4757 }
4758 return _resultobj;
4759 }
4760
4761 #define wxLayoutConstraints_bottom_get(_swigobj) (&_swigobj->bottom)
4762 static PyObject *_wrap_wxLayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4763 PyObject * _resultobj;
4764 wxIndividualLayoutConstraint * _result;
4765 wxLayoutConstraints * _arg0;
4766 PyObject * _argo0 = 0;
4767 char *_kwnames[] = { "self", NULL };
4768 char _ptemp[128];
4769
4770 self = self;
4771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_bottom_get",_kwnames,&_argo0))
4772 return NULL;
4773 if (_argo0) {
4774 if (_argo0 == Py_None) { _arg0 = NULL; }
4775 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) {
4776 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_bottom_get. Expected _wxLayoutConstraints_p.");
4777 return NULL;
4778 }
4779 }
4780 {
4781 PyThreadState* __tstate = wxPyBeginAllowThreads();
4782 _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_bottom_get(_arg0);
4783
4784 wxPyEndAllowThreads(__tstate);
4785 if (PyErr_Occurred()) return NULL;
4786 } if (_result) {
4787 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p");
4788 _resultobj = Py_BuildValue("s",_ptemp);
4789 } else {
4790 Py_INCREF(Py_None);
4791 _resultobj = Py_None;
4792 }
4793 return _resultobj;
4794 }
4795
4796 #define wxLayoutConstraints_centreX_get(_swigobj) (&_swigobj->centreX)
4797 static PyObject *_wrap_wxLayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4798 PyObject * _resultobj;
4799 wxIndividualLayoutConstraint * _result;
4800 wxLayoutConstraints * _arg0;
4801 PyObject * _argo0 = 0;
4802 char *_kwnames[] = { "self", NULL };
4803 char _ptemp[128];
4804
4805 self = self;
4806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_centreX_get",_kwnames,&_argo0))
4807 return NULL;
4808 if (_argo0) {
4809 if (_argo0 == Py_None) { _arg0 = NULL; }
4810 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) {
4811 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_centreX_get. Expected _wxLayoutConstraints_p.");
4812 return NULL;
4813 }
4814 }
4815 {
4816 PyThreadState* __tstate = wxPyBeginAllowThreads();
4817 _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_centreX_get(_arg0);
4818
4819 wxPyEndAllowThreads(__tstate);
4820 if (PyErr_Occurred()) return NULL;
4821 } if (_result) {
4822 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p");
4823 _resultobj = Py_BuildValue("s",_ptemp);
4824 } else {
4825 Py_INCREF(Py_None);
4826 _resultobj = Py_None;
4827 }
4828 return _resultobj;
4829 }
4830
4831 #define wxLayoutConstraints_centreY_get(_swigobj) (&_swigobj->centreY)
4832 static PyObject *_wrap_wxLayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4833 PyObject * _resultobj;
4834 wxIndividualLayoutConstraint * _result;
4835 wxLayoutConstraints * _arg0;
4836 PyObject * _argo0 = 0;
4837 char *_kwnames[] = { "self", NULL };
4838 char _ptemp[128];
4839
4840 self = self;
4841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_centreY_get",_kwnames,&_argo0))
4842 return NULL;
4843 if (_argo0) {
4844 if (_argo0 == Py_None) { _arg0 = NULL; }
4845 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) {
4846 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_centreY_get. Expected _wxLayoutConstraints_p.");
4847 return NULL;
4848 }
4849 }
4850 {
4851 PyThreadState* __tstate = wxPyBeginAllowThreads();
4852 _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_centreY_get(_arg0);
4853
4854 wxPyEndAllowThreads(__tstate);
4855 if (PyErr_Occurred()) return NULL;
4856 } if (_result) {
4857 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p");
4858 _resultobj = Py_BuildValue("s",_ptemp);
4859 } else {
4860 Py_INCREF(Py_None);
4861 _resultobj = Py_None;
4862 }
4863 return _resultobj;
4864 }
4865
4866 #define wxLayoutConstraints_height_get(_swigobj) (&_swigobj->height)
4867 static PyObject *_wrap_wxLayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4868 PyObject * _resultobj;
4869 wxIndividualLayoutConstraint * _result;
4870 wxLayoutConstraints * _arg0;
4871 PyObject * _argo0 = 0;
4872 char *_kwnames[] = { "self", NULL };
4873 char _ptemp[128];
4874
4875 self = self;
4876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_height_get",_kwnames,&_argo0))
4877 return NULL;
4878 if (_argo0) {
4879 if (_argo0 == Py_None) { _arg0 = NULL; }
4880 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) {
4881 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_height_get. Expected _wxLayoutConstraints_p.");
4882 return NULL;
4883 }
4884 }
4885 {
4886 PyThreadState* __tstate = wxPyBeginAllowThreads();
4887 _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_height_get(_arg0);
4888
4889 wxPyEndAllowThreads(__tstate);
4890 if (PyErr_Occurred()) return NULL;
4891 } if (_result) {
4892 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p");
4893 _resultobj = Py_BuildValue("s",_ptemp);
4894 } else {
4895 Py_INCREF(Py_None);
4896 _resultobj = Py_None;
4897 }
4898 return _resultobj;
4899 }
4900
4901 #define wxLayoutConstraints_left_get(_swigobj) (&_swigobj->left)
4902 static PyObject *_wrap_wxLayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4903 PyObject * _resultobj;
4904 wxIndividualLayoutConstraint * _result;
4905 wxLayoutConstraints * _arg0;
4906 PyObject * _argo0 = 0;
4907 char *_kwnames[] = { "self", NULL };
4908 char _ptemp[128];
4909
4910 self = self;
4911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_left_get",_kwnames,&_argo0))
4912 return NULL;
4913 if (_argo0) {
4914 if (_argo0 == Py_None) { _arg0 = NULL; }
4915 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) {
4916 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_left_get. Expected _wxLayoutConstraints_p.");
4917 return NULL;
4918 }
4919 }
4920 {
4921 PyThreadState* __tstate = wxPyBeginAllowThreads();
4922 _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_left_get(_arg0);
4923
4924 wxPyEndAllowThreads(__tstate);
4925 if (PyErr_Occurred()) return NULL;
4926 } if (_result) {
4927 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p");
4928 _resultobj = Py_BuildValue("s",_ptemp);
4929 } else {
4930 Py_INCREF(Py_None);
4931 _resultobj = Py_None;
4932 }
4933 return _resultobj;
4934 }
4935
4936 #define wxLayoutConstraints_right_get(_swigobj) (&_swigobj->right)
4937 static PyObject *_wrap_wxLayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4938 PyObject * _resultobj;
4939 wxIndividualLayoutConstraint * _result;
4940 wxLayoutConstraints * _arg0;
4941 PyObject * _argo0 = 0;
4942 char *_kwnames[] = { "self", NULL };
4943 char _ptemp[128];
4944
4945 self = self;
4946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_right_get",_kwnames,&_argo0))
4947 return NULL;
4948 if (_argo0) {
4949 if (_argo0 == Py_None) { _arg0 = NULL; }
4950 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) {
4951 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_right_get. Expected _wxLayoutConstraints_p.");
4952 return NULL;
4953 }
4954 }
4955 {
4956 PyThreadState* __tstate = wxPyBeginAllowThreads();
4957 _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_right_get(_arg0);
4958
4959 wxPyEndAllowThreads(__tstate);
4960 if (PyErr_Occurred()) return NULL;
4961 } if (_result) {
4962 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p");
4963 _resultobj = Py_BuildValue("s",_ptemp);
4964 } else {
4965 Py_INCREF(Py_None);
4966 _resultobj = Py_None;
4967 }
4968 return _resultobj;
4969 }
4970
4971 #define wxLayoutConstraints_top_get(_swigobj) (&_swigobj->top)
4972 static PyObject *_wrap_wxLayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4973 PyObject * _resultobj;
4974 wxIndividualLayoutConstraint * _result;
4975 wxLayoutConstraints * _arg0;
4976 PyObject * _argo0 = 0;
4977 char *_kwnames[] = { "self", NULL };
4978 char _ptemp[128];
4979
4980 self = self;
4981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_top_get",_kwnames,&_argo0))
4982 return NULL;
4983 if (_argo0) {
4984 if (_argo0 == Py_None) { _arg0 = NULL; }
4985 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) {
4986 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_top_get. Expected _wxLayoutConstraints_p.");
4987 return NULL;
4988 }
4989 }
4990 {
4991 PyThreadState* __tstate = wxPyBeginAllowThreads();
4992 _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_top_get(_arg0);
4993
4994 wxPyEndAllowThreads(__tstate);
4995 if (PyErr_Occurred()) return NULL;
4996 } if (_result) {
4997 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p");
4998 _resultobj = Py_BuildValue("s",_ptemp);
4999 } else {
5000 Py_INCREF(Py_None);
5001 _resultobj = Py_None;
5002 }
5003 return _resultobj;
5004 }
5005
5006 #define wxLayoutConstraints_width_get(_swigobj) (&_swigobj->width)
5007 static PyObject *_wrap_wxLayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5008 PyObject * _resultobj;
5009 wxIndividualLayoutConstraint * _result;
5010 wxLayoutConstraints * _arg0;
5011 PyObject * _argo0 = 0;
5012 char *_kwnames[] = { "self", NULL };
5013 char _ptemp[128];
5014
5015 self = self;
5016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLayoutConstraints_width_get",_kwnames,&_argo0))
5017 return NULL;
5018 if (_argo0) {
5019 if (_argo0 == Py_None) { _arg0 = NULL; }
5020 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLayoutConstraints_p")) {
5021 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLayoutConstraints_width_get. Expected _wxLayoutConstraints_p.");
5022 return NULL;
5023 }
5024 }
5025 {
5026 PyThreadState* __tstate = wxPyBeginAllowThreads();
5027 _result = (wxIndividualLayoutConstraint *)wxLayoutConstraints_width_get(_arg0);
5028
5029 wxPyEndAllowThreads(__tstate);
5030 if (PyErr_Occurred()) return NULL;
5031 } if (_result) {
5032 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIndividualLayoutConstraint_p");
5033 _resultobj = Py_BuildValue("s",_ptemp);
5034 } else {
5035 Py_INCREF(Py_None);
5036 _resultobj = Py_None;
5037 }
5038 return _resultobj;
5039 }
5040
5041 #define new_wxAcceleratorEntry(_swigarg0,_swigarg1,_swigarg2) (new wxAcceleratorEntry(_swigarg0,_swigarg1,_swigarg2))
5042 static PyObject *_wrap_new_wxAcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
5043 PyObject * _resultobj;
5044 wxAcceleratorEntry * _result;
5045 int _arg0 = (int ) 0;
5046 int _arg1 = (int ) 0;
5047 int _arg2 = (int ) 0;
5048 char *_kwnames[] = { "flags","keyCode","cmd", NULL };
5049 char _ptemp[128];
5050
5051 self = self;
5052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxAcceleratorEntry",_kwnames,&_arg0,&_arg1,&_arg2))
5053 return NULL;
5054 {
5055 PyThreadState* __tstate = wxPyBeginAllowThreads();
5056 _result = (wxAcceleratorEntry *)new_wxAcceleratorEntry(_arg0,_arg1,_arg2);
5057
5058 wxPyEndAllowThreads(__tstate);
5059 if (PyErr_Occurred()) return NULL;
5060 } if (_result) {
5061 SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p");
5062 _resultobj = Py_BuildValue("s",_ptemp);
5063 } else {
5064 Py_INCREF(Py_None);
5065 _resultobj = Py_None;
5066 }
5067 return _resultobj;
5068 }
5069
5070 #define delete_wxAcceleratorEntry(_swigobj) (delete _swigobj)
5071 static PyObject *_wrap_delete_wxAcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
5072 PyObject * _resultobj;
5073 wxAcceleratorEntry * _arg0;
5074 PyObject * _argo0 = 0;
5075 char *_kwnames[] = { "self", NULL };
5076
5077 self = self;
5078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxAcceleratorEntry",_kwnames,&_argo0))
5079 return NULL;
5080 if (_argo0) {
5081 if (_argo0 == Py_None) { _arg0 = NULL; }
5082 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) {
5083 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxAcceleratorEntry. Expected _wxAcceleratorEntry_p.");
5084 return NULL;
5085 }
5086 }
5087 {
5088 PyThreadState* __tstate = wxPyBeginAllowThreads();
5089 delete_wxAcceleratorEntry(_arg0);
5090
5091 wxPyEndAllowThreads(__tstate);
5092 if (PyErr_Occurred()) return NULL;
5093 } Py_INCREF(Py_None);
5094 _resultobj = Py_None;
5095 return _resultobj;
5096 }
5097
5098 #define wxAcceleratorEntry_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
5099 static PyObject *_wrap_wxAcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5100 PyObject * _resultobj;
5101 wxAcceleratorEntry * _arg0;
5102 int _arg1;
5103 int _arg2;
5104 int _arg3;
5105 PyObject * _argo0 = 0;
5106 char *_kwnames[] = { "self","flags","keyCode","Cmd", NULL };
5107
5108 self = self;
5109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxAcceleratorEntry_Set",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
5110 return NULL;
5111 if (_argo0) {
5112 if (_argo0 == Py_None) { _arg0 = NULL; }
5113 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) {
5114 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_Set. Expected _wxAcceleratorEntry_p.");
5115 return NULL;
5116 }
5117 }
5118 {
5119 PyThreadState* __tstate = wxPyBeginAllowThreads();
5120 wxAcceleratorEntry_Set(_arg0,_arg1,_arg2,_arg3);
5121
5122 wxPyEndAllowThreads(__tstate);
5123 if (PyErr_Occurred()) return NULL;
5124 } Py_INCREF(Py_None);
5125 _resultobj = Py_None;
5126 return _resultobj;
5127 }
5128
5129 #define wxAcceleratorEntry_GetFlags(_swigobj) (_swigobj->GetFlags())
5130 static PyObject *_wrap_wxAcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
5131 PyObject * _resultobj;
5132 int _result;
5133 wxAcceleratorEntry * _arg0;
5134 PyObject * _argo0 = 0;
5135 char *_kwnames[] = { "self", NULL };
5136
5137 self = self;
5138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxAcceleratorEntry_GetFlags",_kwnames,&_argo0))
5139 return NULL;
5140 if (_argo0) {
5141 if (_argo0 == Py_None) { _arg0 = NULL; }
5142 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) {
5143 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_GetFlags. Expected _wxAcceleratorEntry_p.");
5144 return NULL;
5145 }
5146 }
5147 {
5148 PyThreadState* __tstate = wxPyBeginAllowThreads();
5149 _result = (int )wxAcceleratorEntry_GetFlags(_arg0);
5150
5151 wxPyEndAllowThreads(__tstate);
5152 if (PyErr_Occurred()) return NULL;
5153 } _resultobj = Py_BuildValue("i",_result);
5154 return _resultobj;
5155 }
5156
5157 #define wxAcceleratorEntry_GetKeyCode(_swigobj) (_swigobj->GetKeyCode())
5158 static PyObject *_wrap_wxAcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
5159 PyObject * _resultobj;
5160 int _result;
5161 wxAcceleratorEntry * _arg0;
5162 PyObject * _argo0 = 0;
5163 char *_kwnames[] = { "self", NULL };
5164
5165 self = self;
5166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxAcceleratorEntry_GetKeyCode",_kwnames,&_argo0))
5167 return NULL;
5168 if (_argo0) {
5169 if (_argo0 == Py_None) { _arg0 = NULL; }
5170 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) {
5171 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_GetKeyCode. Expected _wxAcceleratorEntry_p.");
5172 return NULL;
5173 }
5174 }
5175 {
5176 PyThreadState* __tstate = wxPyBeginAllowThreads();
5177 _result = (int )wxAcceleratorEntry_GetKeyCode(_arg0);
5178
5179 wxPyEndAllowThreads(__tstate);
5180 if (PyErr_Occurred()) return NULL;
5181 } _resultobj = Py_BuildValue("i",_result);
5182 return _resultobj;
5183 }
5184
5185 #define wxAcceleratorEntry_GetCommand(_swigobj) (_swigobj->GetCommand())
5186 static PyObject *_wrap_wxAcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
5187 PyObject * _resultobj;
5188 int _result;
5189 wxAcceleratorEntry * _arg0;
5190 PyObject * _argo0 = 0;
5191 char *_kwnames[] = { "self", NULL };
5192
5193 self = self;
5194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxAcceleratorEntry_GetCommand",_kwnames,&_argo0))
5195 return NULL;
5196 if (_argo0) {
5197 if (_argo0 == Py_None) { _arg0 = NULL; }
5198 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorEntry_p")) {
5199 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxAcceleratorEntry_GetCommand. Expected _wxAcceleratorEntry_p.");
5200 return NULL;
5201 }
5202 }
5203 {
5204 PyThreadState* __tstate = wxPyBeginAllowThreads();
5205 _result = (int )wxAcceleratorEntry_GetCommand(_arg0);
5206
5207 wxPyEndAllowThreads(__tstate);
5208 if (PyErr_Occurred()) return NULL;
5209 } _resultobj = Py_BuildValue("i",_result);
5210 return _resultobj;
5211 }
5212
5213 static void *SwigwxAcceleratorTableTowxObject(void *ptr) {
5214 wxAcceleratorTable *src;
5215 wxObject *dest;
5216 src = (wxAcceleratorTable *) ptr;
5217 dest = (wxObject *) src;
5218 return (void *) dest;
5219 }
5220
5221 #define new_wxAcceleratorTable(_swigarg0,_swigarg1) (new wxAcceleratorTable(_swigarg0,_swigarg1))
5222 static PyObject *_wrap_new_wxAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
5223 PyObject * _resultobj;
5224 wxAcceleratorTable * _result;
5225 int _arg0;
5226 wxAcceleratorEntry * _arg1;
5227 PyObject * _obj1 = 0;
5228 char *_kwnames[] = { "choices", NULL };
5229 char _ptemp[128];
5230
5231 self = self;
5232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxAcceleratorTable",_kwnames,&_obj1))
5233 return NULL;
5234 if (_obj1)
5235 {
5236 _arg1 = wxAcceleratorEntry_LIST_helper(_obj1);
5237 if (_arg1 == NULL) {
5238 return NULL;
5239 }
5240 }
5241 {
5242 if (_obj1) {
5243 _arg0 = PyList_Size(_obj1);
5244 }
5245 else {
5246 _arg0 = 0;
5247 }
5248 }
5249 {
5250 PyThreadState* __tstate = wxPyBeginAllowThreads();
5251 _result = (wxAcceleratorTable *)new_wxAcceleratorTable(_arg0,_arg1);
5252
5253 wxPyEndAllowThreads(__tstate);
5254 if (PyErr_Occurred()) return NULL;
5255 } if (_result) {
5256 SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p");
5257 _resultobj = Py_BuildValue("s",_ptemp);
5258 } else {
5259 Py_INCREF(Py_None);
5260 _resultobj = Py_None;
5261 }
5262 {
5263 delete [] _arg1;
5264 }
5265 return _resultobj;
5266 }
5267
5268 #define delete_wxAcceleratorTable(_swigobj) (delete _swigobj)
5269 static PyObject *_wrap_delete_wxAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
5270 PyObject * _resultobj;
5271 wxAcceleratorTable * _arg0;
5272 PyObject * _argo0 = 0;
5273 char *_kwnames[] = { "self", NULL };
5274
5275 self = self;
5276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxAcceleratorTable",_kwnames,&_argo0))
5277 return NULL;
5278 if (_argo0) {
5279 if (_argo0 == Py_None) { _arg0 = NULL; }
5280 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxAcceleratorTable_p")) {
5281 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxAcceleratorTable. Expected _wxAcceleratorTable_p.");
5282 return NULL;
5283 }
5284 }
5285 {
5286 PyThreadState* __tstate = wxPyBeginAllowThreads();
5287 delete_wxAcceleratorTable(_arg0);
5288
5289 wxPyEndAllowThreads(__tstate);
5290 if (PyErr_Occurred()) return NULL;
5291 } Py_INCREF(Py_None);
5292 _resultobj = Py_None;
5293 return _resultobj;
5294 }
5295
5296 static void *SwigwxBusyInfoTowxObject(void *ptr) {
5297 wxBusyInfo *src;
5298 wxObject *dest;
5299 src = (wxBusyInfo *) ptr;
5300 dest = (wxObject *) src;
5301 return (void *) dest;
5302 }
5303
5304 #define new_wxBusyInfo(_swigarg0) (new wxBusyInfo(_swigarg0))
5305 static PyObject *_wrap_new_wxBusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5306 PyObject * _resultobj;
5307 wxBusyInfo * _result;
5308 wxString * _arg0;
5309 PyObject * _obj0 = 0;
5310 char *_kwnames[] = { "message", NULL };
5311 char _ptemp[128];
5312
5313 self = self;
5314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxBusyInfo",_kwnames,&_obj0))
5315 return NULL;
5316 {
5317 _arg0 = wxString_in_helper(_obj0);
5318 if (_arg0 == NULL)
5319 return NULL;
5320 }
5321 {
5322 PyThreadState* __tstate = wxPyBeginAllowThreads();
5323 _result = (wxBusyInfo *)new_wxBusyInfo(*_arg0);
5324
5325 wxPyEndAllowThreads(__tstate);
5326 if (PyErr_Occurred()) return NULL;
5327 } if (_result) {
5328 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyInfo_p");
5329 _resultobj = Py_BuildValue("s",_ptemp);
5330 } else {
5331 Py_INCREF(Py_None);
5332 _resultobj = Py_None;
5333 }
5334 {
5335 if (_obj0)
5336 delete _arg0;
5337 }
5338 return _resultobj;
5339 }
5340
5341 #define delete_wxBusyInfo(_swigobj) (delete _swigobj)
5342 static PyObject *_wrap_delete_wxBusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5343 PyObject * _resultobj;
5344 wxBusyInfo * _arg0;
5345 PyObject * _argo0 = 0;
5346 char *_kwnames[] = { "self", NULL };
5347
5348 self = self;
5349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyInfo",_kwnames,&_argo0))
5350 return NULL;
5351 if (_argo0) {
5352 if (_argo0 == Py_None) { _arg0 = NULL; }
5353 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyInfo_p")) {
5354 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyInfo. Expected _wxBusyInfo_p.");
5355 return NULL;
5356 }
5357 }
5358 {
5359 PyThreadState* __tstate = wxPyBeginAllowThreads();
5360 delete_wxBusyInfo(_arg0);
5361
5362 wxPyEndAllowThreads(__tstate);
5363 if (PyErr_Occurred()) return NULL;
5364 } Py_INCREF(Py_None);
5365 _resultobj = Py_None;
5366 return _resultobj;
5367 }
5368
5369 static PyMethodDef misccMethods[] = {
5370 { "delete_wxBusyInfo", (PyCFunction) _wrap_delete_wxBusyInfo, METH_VARARGS | METH_KEYWORDS },
5371 { "new_wxBusyInfo", (PyCFunction) _wrap_new_wxBusyInfo, METH_VARARGS | METH_KEYWORDS },
5372 { "delete_wxAcceleratorTable", (PyCFunction) _wrap_delete_wxAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
5373 { "new_wxAcceleratorTable", (PyCFunction) _wrap_new_wxAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
5374 { "wxAcceleratorEntry_GetCommand", (PyCFunction) _wrap_wxAcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS },
5375 { "wxAcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_wxAcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
5376 { "wxAcceleratorEntry_GetFlags", (PyCFunction) _wrap_wxAcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS },
5377 { "wxAcceleratorEntry_Set", (PyCFunction) _wrap_wxAcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS },
5378 { "delete_wxAcceleratorEntry", (PyCFunction) _wrap_delete_wxAcceleratorEntry, METH_VARARGS | METH_KEYWORDS },
5379 { "new_wxAcceleratorEntry", (PyCFunction) _wrap_new_wxAcceleratorEntry, METH_VARARGS | METH_KEYWORDS },
5380 { "wxLayoutConstraints_width_get", (PyCFunction) _wrap_wxLayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS },
5381 { "wxLayoutConstraints_top_get", (PyCFunction) _wrap_wxLayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS },
5382 { "wxLayoutConstraints_right_get", (PyCFunction) _wrap_wxLayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS },
5383 { "wxLayoutConstraints_left_get", (PyCFunction) _wrap_wxLayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS },
5384 { "wxLayoutConstraints_height_get", (PyCFunction) _wrap_wxLayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS },
5385 { "wxLayoutConstraints_centreY_get", (PyCFunction) _wrap_wxLayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS },
5386 { "wxLayoutConstraints_centreX_get", (PyCFunction) _wrap_wxLayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS },
5387 { "wxLayoutConstraints_bottom_get", (PyCFunction) _wrap_wxLayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS },
5388 { "new_wxLayoutConstraints", (PyCFunction) _wrap_new_wxLayoutConstraints, METH_VARARGS | METH_KEYWORDS },
5389 { "wxIndividualLayoutConstraint_Set", (PyCFunction) _wrap_wxIndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS },
5390 { "wxIndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_wxIndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS },
5391 { "wxIndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_wxIndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS },
5392 { "wxIndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_wxIndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS },
5393 { "wxIndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_wxIndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS },
5394 { "wxIndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_wxIndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS },
5395 { "wxIndividualLayoutConstraint_Below", (PyCFunction) _wrap_wxIndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS },
5396 { "wxIndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_wxIndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS },
5397 { "wxIndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_wxIndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS },
5398 { "wxIndividualLayoutConstraint_Above", (PyCFunction) _wrap_wxIndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS },
5399 { "wxPoint2DDouble_asTuple", (PyCFunction) _wrap_wxPoint2DDouble_asTuple, METH_VARARGS | METH_KEYWORDS },
5400 { "wxPoint2DDouble___ne__", (PyCFunction) _wrap_wxPoint2DDouble___ne__, METH_VARARGS | METH_KEYWORDS },
5401 { "wxPoint2DDouble___eq__", (PyCFunction) _wrap_wxPoint2DDouble___eq__, METH_VARARGS | METH_KEYWORDS },
5402 { "wxPoint2DDouble___idiv__", (PyCFunction) _wrap_wxPoint2DDouble___idiv__, METH_VARARGS | METH_KEYWORDS },
5403 { "wxPoint2DDouble___imul__", (PyCFunction) _wrap_wxPoint2DDouble___imul__, METH_VARARGS | METH_KEYWORDS },
5404 { "wxPoint2DDouble___isub__", (PyCFunction) _wrap_wxPoint2DDouble___isub__, METH_VARARGS | METH_KEYWORDS },
5405 { "wxPoint2DDouble___iadd__", (PyCFunction) _wrap_wxPoint2DDouble___iadd__, METH_VARARGS | METH_KEYWORDS },
5406 { "wxPoint2DDouble___neg__", (PyCFunction) _wrap_wxPoint2DDouble___neg__, METH_VARARGS | METH_KEYWORDS },
5407 { "wxPoint2DDouble_Set", (PyCFunction) _wrap_wxPoint2DDouble_Set, METH_VARARGS | METH_KEYWORDS },
5408 { "wxPoint2DDouble_GetCrossProduct", (PyCFunction) _wrap_wxPoint2DDouble_GetCrossProduct, METH_VARARGS | METH_KEYWORDS },
5409 { "wxPoint2DDouble_GetDotProduct", (PyCFunction) _wrap_wxPoint2DDouble_GetDotProduct, METH_VARARGS | METH_KEYWORDS },
5410 { "wxPoint2DDouble_GetDistanceSquare", (PyCFunction) _wrap_wxPoint2DDouble_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS },
5411 { "wxPoint2DDouble_GetDistance", (PyCFunction) _wrap_wxPoint2DDouble_GetDistance, METH_VARARGS | METH_KEYWORDS },
5412 { "wxPoint2DDouble_SetVectorAngle", (PyCFunction) _wrap_wxPoint2DDouble_SetVectorAngle, METH_VARARGS | METH_KEYWORDS },
5413 { "wxPoint2DDouble_SetVectorLength", (PyCFunction) _wrap_wxPoint2DDouble_SetVectorLength, METH_VARARGS | METH_KEYWORDS },
5414 { "wxPoint2DDouble_GetVectorAngle", (PyCFunction) _wrap_wxPoint2DDouble_GetVectorAngle, METH_VARARGS | METH_KEYWORDS },
5415 { "wxPoint2DDouble_GetVectorLength", (PyCFunction) _wrap_wxPoint2DDouble_GetVectorLength, METH_VARARGS | METH_KEYWORDS },
5416 { "wxPoint2DDouble_GetRounded", (PyCFunction) _wrap_wxPoint2DDouble_GetRounded, METH_VARARGS | METH_KEYWORDS },
5417 { "wxPoint2DDouble_GetFloor", (PyCFunction) _wrap_wxPoint2DDouble_GetFloor, METH_VARARGS | METH_KEYWORDS },
5418 { "new_wxPoint2DDoubleFromPoint", (PyCFunction) _wrap_new_wxPoint2DDoubleFromPoint, METH_VARARGS | METH_KEYWORDS },
5419 { "new_wxPoint2DDoubleCopy", (PyCFunction) _wrap_new_wxPoint2DDoubleCopy, METH_VARARGS | METH_KEYWORDS },
5420 { "new_wxPoint2DDouble", (PyCFunction) _wrap_new_wxPoint2DDouble, METH_VARARGS | METH_KEYWORDS },
5421 { "wxPoint2DDouble_y_get", (PyCFunction) _wrap_wxPoint2DDouble_m_y_get, METH_VARARGS | METH_KEYWORDS },
5422 { "wxPoint2DDouble_y_set", (PyCFunction) _wrap_wxPoint2DDouble_m_y_set, METH_VARARGS | METH_KEYWORDS },
5423 { "wxPoint2DDouble_x_get", (PyCFunction) _wrap_wxPoint2DDouble_m_x_get, METH_VARARGS | METH_KEYWORDS },
5424 { "wxPoint2DDouble_x_set", (PyCFunction) _wrap_wxPoint2DDouble_m_x_set, METH_VARARGS | METH_KEYWORDS },
5425 { "wxPoint2DDouble_m_y_get", (PyCFunction) _wrap_wxPoint2DDouble_m_y_get, METH_VARARGS | METH_KEYWORDS },
5426 { "wxPoint2DDouble_m_y_set", (PyCFunction) _wrap_wxPoint2DDouble_m_y_set, METH_VARARGS | METH_KEYWORDS },
5427 { "wxPoint2DDouble_m_x_get", (PyCFunction) _wrap_wxPoint2DDouble_m_x_get, METH_VARARGS | METH_KEYWORDS },
5428 { "wxPoint2DDouble_m_x_set", (PyCFunction) _wrap_wxPoint2DDouble_m_x_set, METH_VARARGS | METH_KEYWORDS },
5429 { "wxRect___ne__", (PyCFunction) _wrap_wxRect___ne__, METH_VARARGS | METH_KEYWORDS },
5430 { "wxRect___eq__", (PyCFunction) _wrap_wxRect___eq__, METH_VARARGS | METH_KEYWORDS },
5431 { "wxRect___add__", (PyCFunction) _wrap_wxRect___add__, METH_VARARGS | METH_KEYWORDS },
5432 { "wxRect_asTuple", (PyCFunction) _wrap_wxRect_asTuple, METH_VARARGS | METH_KEYWORDS },
5433 { "wxRect_Set", (PyCFunction) _wrap_wxRect_Set, METH_VARARGS | METH_KEYWORDS },
5434 { "wxRect_height_get", (PyCFunction) _wrap_wxRect_height_get, METH_VARARGS | METH_KEYWORDS },
5435 { "wxRect_height_set", (PyCFunction) _wrap_wxRect_height_set, METH_VARARGS | METH_KEYWORDS },
5436 { "wxRect_width_get", (PyCFunction) _wrap_wxRect_width_get, METH_VARARGS | METH_KEYWORDS },
5437 { "wxRect_width_set", (PyCFunction) _wrap_wxRect_width_set, METH_VARARGS | METH_KEYWORDS },
5438 { "wxRect_y_get", (PyCFunction) _wrap_wxRect_y_get, METH_VARARGS | METH_KEYWORDS },
5439 { "wxRect_y_set", (PyCFunction) _wrap_wxRect_y_set, METH_VARARGS | METH_KEYWORDS },
5440 { "wxRect_x_get", (PyCFunction) _wrap_wxRect_x_get, METH_VARARGS | METH_KEYWORDS },
5441 { "wxRect_x_set", (PyCFunction) _wrap_wxRect_x_set, METH_VARARGS | METH_KEYWORDS },
5442 { "wxRect_Offset", (PyCFunction) _wrap_wxRect_Offset, METH_VARARGS | METH_KEYWORDS },
5443 { "wxRect_OffsetXY", (PyCFunction) _wrap_wxRect_OffsetXY, METH_VARARGS | METH_KEYWORDS },
5444 { "wxRect_Intersects", (PyCFunction) _wrap_wxRect_Intersects, METH_VARARGS | METH_KEYWORDS },
5445 { "wxRect_Inside", (PyCFunction) _wrap_wxRect_Inside, METH_VARARGS | METH_KEYWORDS },
5446 { "wxRect_InsideXY", (PyCFunction) _wrap_wxRect_InsideXY, METH_VARARGS | METH_KEYWORDS },
5447 { "wxRect_Inflate", (PyCFunction) _wrap_wxRect_Inflate, METH_VARARGS | METH_KEYWORDS },
5448 { "wxRect_Deflate", (PyCFunction) _wrap_wxRect_Deflate, METH_VARARGS | METH_KEYWORDS },
5449 { "wxRect_SetBottom", (PyCFunction) _wrap_wxRect_SetBottom, METH_VARARGS | METH_KEYWORDS },
5450 { "wxRect_SetTop", (PyCFunction) _wrap_wxRect_SetTop, METH_VARARGS | METH_KEYWORDS },
5451 { "wxRect_SetRight", (PyCFunction) _wrap_wxRect_SetRight, METH_VARARGS | METH_KEYWORDS },
5452 { "wxRect_SetLeft", (PyCFunction) _wrap_wxRect_SetLeft, METH_VARARGS | METH_KEYWORDS },
5453 { "wxRect_GetRight", (PyCFunction) _wrap_wxRect_GetRight, METH_VARARGS | METH_KEYWORDS },
5454 { "wxRect_GetBottom", (PyCFunction) _wrap_wxRect_GetBottom, METH_VARARGS | METH_KEYWORDS },
5455 { "wxRect_GetTop", (PyCFunction) _wrap_wxRect_GetTop, METH_VARARGS | METH_KEYWORDS },
5456 { "wxRect_GetLeft", (PyCFunction) _wrap_wxRect_GetLeft, METH_VARARGS | METH_KEYWORDS },
5457 { "wxRect_SetSize", (PyCFunction) _wrap_wxRect_SetSize, METH_VARARGS | METH_KEYWORDS },
5458 { "wxRect_SetPosition", (PyCFunction) _wrap_wxRect_SetPosition, METH_VARARGS | METH_KEYWORDS },
5459 { "wxRect_GetSize", (PyCFunction) _wrap_wxRect_GetSize, METH_VARARGS | METH_KEYWORDS },
5460 { "wxRect_GetPosition", (PyCFunction) _wrap_wxRect_GetPosition, METH_VARARGS | METH_KEYWORDS },
5461 { "wxRect_SetHeight", (PyCFunction) _wrap_wxRect_SetHeight, METH_VARARGS | METH_KEYWORDS },
5462 { "wxRect_GetHeight", (PyCFunction) _wrap_wxRect_GetHeight, METH_VARARGS | METH_KEYWORDS },
5463 { "wxRect_SetWidth", (PyCFunction) _wrap_wxRect_SetWidth, METH_VARARGS | METH_KEYWORDS },
5464 { "wxRect_GetWidth", (PyCFunction) _wrap_wxRect_GetWidth, METH_VARARGS | METH_KEYWORDS },
5465 { "wxRect_SetY", (PyCFunction) _wrap_wxRect_SetY, METH_VARARGS | METH_KEYWORDS },
5466 { "wxRect_GetY", (PyCFunction) _wrap_wxRect_GetY, METH_VARARGS | METH_KEYWORDS },
5467 { "wxRect_SetX", (PyCFunction) _wrap_wxRect_SetX, METH_VARARGS | METH_KEYWORDS },
5468 { "wxRect_GetX", (PyCFunction) _wrap_wxRect_GetX, METH_VARARGS | METH_KEYWORDS },
5469 { "delete_wxRect", (PyCFunction) _wrap_delete_wxRect, METH_VARARGS | METH_KEYWORDS },
5470 { "new_wxRect", (PyCFunction) _wrap_new_wxRect, METH_VARARGS | METH_KEYWORDS },
5471 { "wxPoint___ne__", (PyCFunction) _wrap_wxPoint___ne__, METH_VARARGS | METH_KEYWORDS },
5472 { "wxPoint___eq__", (PyCFunction) _wrap_wxPoint___eq__, METH_VARARGS | METH_KEYWORDS },
5473 { "wxPoint___sub__", (PyCFunction) _wrap_wxPoint___sub__, METH_VARARGS | METH_KEYWORDS },
5474 { "wxPoint___add__", (PyCFunction) _wrap_wxPoint___add__, METH_VARARGS | METH_KEYWORDS },
5475 { "wxPoint_asTuple", (PyCFunction) _wrap_wxPoint_asTuple, METH_VARARGS | METH_KEYWORDS },
5476 { "wxPoint_Set", (PyCFunction) _wrap_wxPoint_Set, METH_VARARGS | METH_KEYWORDS },
5477 { "delete_wxPoint", (PyCFunction) _wrap_delete_wxPoint, METH_VARARGS | METH_KEYWORDS },
5478 { "new_wxPoint", (PyCFunction) _wrap_new_wxPoint, METH_VARARGS | METH_KEYWORDS },
5479 { "wxPoint_y_get", (PyCFunction) _wrap_wxPoint_y_get, METH_VARARGS | METH_KEYWORDS },
5480 { "wxPoint_y_set", (PyCFunction) _wrap_wxPoint_y_set, METH_VARARGS | METH_KEYWORDS },
5481 { "wxPoint_x_get", (PyCFunction) _wrap_wxPoint_x_get, METH_VARARGS | METH_KEYWORDS },
5482 { "wxPoint_x_set", (PyCFunction) _wrap_wxPoint_x_set, METH_VARARGS | METH_KEYWORDS },
5483 { "wxRealPoint___ne__", (PyCFunction) _wrap_wxRealPoint___ne__, METH_VARARGS | METH_KEYWORDS },
5484 { "wxRealPoint___eq__", (PyCFunction) _wrap_wxRealPoint___eq__, METH_VARARGS | METH_KEYWORDS },
5485 { "wxRealPoint___sub__", (PyCFunction) _wrap_wxRealPoint___sub__, METH_VARARGS | METH_KEYWORDS },
5486 { "wxRealPoint___add__", (PyCFunction) _wrap_wxRealPoint___add__, METH_VARARGS | METH_KEYWORDS },
5487 { "wxRealPoint_asTuple", (PyCFunction) _wrap_wxRealPoint_asTuple, METH_VARARGS | METH_KEYWORDS },
5488 { "wxRealPoint_Set", (PyCFunction) _wrap_wxRealPoint_Set, METH_VARARGS | METH_KEYWORDS },
5489 { "delete_wxRealPoint", (PyCFunction) _wrap_delete_wxRealPoint, METH_VARARGS | METH_KEYWORDS },
5490 { "new_wxRealPoint", (PyCFunction) _wrap_new_wxRealPoint, METH_VARARGS | METH_KEYWORDS },
5491 { "wxRealPoint_y_get", (PyCFunction) _wrap_wxRealPoint_y_get, METH_VARARGS | METH_KEYWORDS },
5492 { "wxRealPoint_y_set", (PyCFunction) _wrap_wxRealPoint_y_set, METH_VARARGS | METH_KEYWORDS },
5493 { "wxRealPoint_x_get", (PyCFunction) _wrap_wxRealPoint_x_get, METH_VARARGS | METH_KEYWORDS },
5494 { "wxRealPoint_x_set", (PyCFunction) _wrap_wxRealPoint_x_set, METH_VARARGS | METH_KEYWORDS },
5495 { "wxSize___ne__", (PyCFunction) _wrap_wxSize___ne__, METH_VARARGS | METH_KEYWORDS },
5496 { "wxSize___eq__", (PyCFunction) _wrap_wxSize___eq__, METH_VARARGS | METH_KEYWORDS },
5497 { "wxSize_asTuple", (PyCFunction) _wrap_wxSize_asTuple, METH_VARARGS | METH_KEYWORDS },
5498 { "wxSize_SetHeight", (PyCFunction) _wrap_wxSize_SetHeight, METH_VARARGS | METH_KEYWORDS },
5499 { "wxSize_SetWidth", (PyCFunction) _wrap_wxSize_SetWidth, METH_VARARGS | METH_KEYWORDS },
5500 { "wxSize_GetHeight", (PyCFunction) _wrap_wxSize_GetHeight, METH_VARARGS | METH_KEYWORDS },
5501 { "wxSize_GetWidth", (PyCFunction) _wrap_wxSize_GetWidth, METH_VARARGS | METH_KEYWORDS },
5502 { "wxSize_GetY", (PyCFunction) _wrap_wxSize_GetY, METH_VARARGS | METH_KEYWORDS },
5503 { "wxSize_GetX", (PyCFunction) _wrap_wxSize_GetX, METH_VARARGS | METH_KEYWORDS },
5504 { "wxSize_Set", (PyCFunction) _wrap_wxSize_Set, METH_VARARGS | METH_KEYWORDS },
5505 { "delete_wxSize", (PyCFunction) _wrap_delete_wxSize, METH_VARARGS | METH_KEYWORDS },
5506 { "new_wxSize", (PyCFunction) _wrap_new_wxSize, METH_VARARGS | METH_KEYWORDS },
5507 { "wxSize_height_get", (PyCFunction) _wrap_wxSize_y_get, METH_VARARGS | METH_KEYWORDS },
5508 { "wxSize_height_set", (PyCFunction) _wrap_wxSize_y_set, METH_VARARGS | METH_KEYWORDS },
5509 { "wxSize_width_get", (PyCFunction) _wrap_wxSize_x_get, METH_VARARGS | METH_KEYWORDS },
5510 { "wxSize_width_set", (PyCFunction) _wrap_wxSize_x_set, METH_VARARGS | METH_KEYWORDS },
5511 { "wxSize_y_get", (PyCFunction) _wrap_wxSize_y_get, METH_VARARGS | METH_KEYWORDS },
5512 { "wxSize_y_set", (PyCFunction) _wrap_wxSize_y_set, METH_VARARGS | METH_KEYWORDS },
5513 { "wxSize_x_get", (PyCFunction) _wrap_wxSize_x_get, METH_VARARGS | METH_KEYWORDS },
5514 { "wxSize_x_set", (PyCFunction) _wrap_wxSize_x_set, METH_VARARGS | METH_KEYWORDS },
5515 { "wxObject_Destroy", (PyCFunction) _wrap_wxObject_Destroy, METH_VARARGS | METH_KEYWORDS },
5516 { "wxObject_GetClassName", (PyCFunction) _wrap_wxObject_GetClassName, METH_VARARGS | METH_KEYWORDS },
5517 { "wxGetAccelFromString", (PyCFunction) _wrap_wxGetAccelFromString, METH_VARARGS | METH_KEYWORDS },
5518 { "wxGetProcessId", (PyCFunction) _wrap_wxGetProcessId, METH_VARARGS | METH_KEYWORDS },
5519 { "wxGetUserHome", (PyCFunction) _wrap_wxGetUserHome, METH_VARARGS | METH_KEYWORDS },
5520 { "wxGetHomeDir", (PyCFunction) _wrap_wxGetHomeDir, METH_VARARGS | METH_KEYWORDS },
5521 { "wxGetUserName", (PyCFunction) _wrap_wxGetUserName, METH_VARARGS | METH_KEYWORDS },
5522 { "wxGetUserId", (PyCFunction) _wrap_wxGetUserId, METH_VARARGS | METH_KEYWORDS },
5523 { "wxGetFullHostName", (PyCFunction) _wrap_wxGetFullHostName, METH_VARARGS | METH_KEYWORDS },
5524 { "wxGetHostName", (PyCFunction) _wrap_wxGetHostName, METH_VARARGS | METH_KEYWORDS },
5525 { "wxGetEmailAddress", (PyCFunction) _wrap_wxGetEmailAddress, METH_VARARGS | METH_KEYWORDS },
5526 { "wxStripMenuCodes", (PyCFunction) _wrap_wxStripMenuCodes, METH_VARARGS | METH_KEYWORDS },
5527 { "wxEnableTopLevelWindows", (PyCFunction) _wrap_wxEnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
5528 { "wxYieldIfNeeded", (PyCFunction) _wrap_wxYieldIfNeeded, METH_VARARGS | METH_KEYWORDS },
5529 { "wxYield", (PyCFunction) _wrap_wxYield, METH_VARARGS | METH_KEYWORDS },
5530 { "wxUsleep", (PyCFunction) _wrap_wxUsleep, METH_VARARGS | METH_KEYWORDS },
5531 { "wxSleep", (PyCFunction) _wrap_wxSleep, METH_VARARGS | METH_KEYWORDS },
5532 { "wxShutdown", (PyCFunction) _wrap_wxShutdown, METH_VARARGS | METH_KEYWORDS },
5533 { "wxGetOsDescription", (PyCFunction) _wrap_wxGetOsDescription, METH_VARARGS | METH_KEYWORDS },
5534 { "wxGetOsVersion", (PyCFunction) _wrap_wxGetOsVersion, METH_VARARGS | METH_KEYWORDS },
5535 { "wxStartTimer", (PyCFunction) _wrap_wxStartTimer, METH_VARARGS | METH_KEYWORDS },
5536 { "wxShell", (PyCFunction) _wrap_wxShell, METH_VARARGS | METH_KEYWORDS },
5537 { "wxNow", (PyCFunction) _wrap_wxNow, METH_VARARGS | METH_KEYWORDS },
5538 { "wxIsBusy", (PyCFunction) _wrap_wxIsBusy, METH_VARARGS | METH_KEYWORDS },
5539 { "wxGetMousePosition", (PyCFunction) _wrap_wxGetMousePosition, METH_VARARGS | METH_KEYWORDS },
5540 { "wxGetElapsedTime", (PyCFunction) _wrap_wxGetElapsedTime, METH_VARARGS | METH_KEYWORDS },
5541 { "wxEndBusyCursor", (PyCFunction) _wrap_wxEndBusyCursor, METH_VARARGS | METH_KEYWORDS },
5542 { "wxBell", (PyCFunction) _wrap_wxBell, METH_VARARGS | METH_KEYWORDS },
5543 { "wxGetCurrentId", (PyCFunction) _wrap_wxGetCurrentId, METH_VARARGS | METH_KEYWORDS },
5544 { "wxRegisterId", (PyCFunction) _wrap_wxRegisterId, METH_VARARGS | METH_KEYWORDS },
5545 { "wxNewId", (PyCFunction) _wrap_wxNewId, METH_VARARGS | METH_KEYWORDS },
5546 { "wxIntersectRect", (PyCFunction) _wrap_wxIntersectRect, METH_VARARGS | METH_KEYWORDS },
5547 { NULL, NULL }
5548 };
5549 #ifdef __cplusplus
5550 }
5551 #endif
5552 /*
5553 * This table is used by the pointer type-checker
5554 */
5555 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
5556 { "_signed_long","_long",0},
5557 { "_wxPrintQuality","_wxCoord",0},
5558 { "_wxPrintQuality","_int",0},
5559 { "_wxPrintQuality","_signed_int",0},
5560 { "_wxPrintQuality","_unsigned_int",0},
5561 { "_wxPrintQuality","_wxWindowID",0},
5562 { "_wxPrintQuality","_uint",0},
5563 { "_wxPrintQuality","_EBool",0},
5564 { "_wxPrintQuality","_size_t",0},
5565 { "_wxPrintQuality","_time_t",0},
5566 { "_byte","_unsigned_char",0},
5567 { "_long","_unsigned_long",0},
5568 { "_long","_signed_long",0},
5569 { "_size_t","_wxCoord",0},
5570 { "_size_t","_wxPrintQuality",0},
5571 { "_size_t","_time_t",0},
5572 { "_size_t","_unsigned_int",0},
5573 { "_size_t","_int",0},
5574 { "_size_t","_wxWindowID",0},
5575 { "_size_t","_uint",0},
5576 { "_uint","_wxCoord",0},
5577 { "_uint","_wxPrintQuality",0},
5578 { "_uint","_time_t",0},
5579 { "_uint","_size_t",0},
5580 { "_uint","_unsigned_int",0},
5581 { "_uint","_int",0},
5582 { "_uint","_wxWindowID",0},
5583 { "_wxChar","_char",0},
5584 { "_char","_wxChar",0},
5585 { "_EBool","_wxCoord",0},
5586 { "_EBool","_wxPrintQuality",0},
5587 { "_EBool","_signed_int",0},
5588 { "_EBool","_int",0},
5589 { "_EBool","_wxWindowID",0},
5590 { "_unsigned_long","_long",0},
5591 { "_signed_int","_wxCoord",0},
5592 { "_signed_int","_wxPrintQuality",0},
5593 { "_signed_int","_EBool",0},
5594 { "_signed_int","_wxWindowID",0},
5595 { "_signed_int","_int",0},
5596 { "_WXTYPE","_short",0},
5597 { "_WXTYPE","_signed_short",0},
5598 { "_WXTYPE","_unsigned_short",0},
5599 { "_unsigned_short","_WXTYPE",0},
5600 { "_unsigned_short","_short",0},
5601 { "_wxObject","_wxBusyInfo",SwigwxBusyInfoTowxObject},
5602 { "_wxObject","_wxAcceleratorTable",SwigwxAcceleratorTableTowxObject},
5603 { "_wxObject","_wxLayoutConstraints",SwigwxLayoutConstraintsTowxObject},
5604 { "_wxObject","_wxIndividualLayoutConstraint",SwigwxIndividualLayoutConstraintTowxObject},
5605 { "_signed_short","_WXTYPE",0},
5606 { "_signed_short","_short",0},
5607 { "_unsigned_char","_byte",0},
5608 { "_unsigned_int","_wxCoord",0},
5609 { "_unsigned_int","_wxPrintQuality",0},
5610 { "_unsigned_int","_time_t",0},
5611 { "_unsigned_int","_size_t",0},
5612 { "_unsigned_int","_uint",0},
5613 { "_unsigned_int","_wxWindowID",0},
5614 { "_unsigned_int","_int",0},
5615 { "_short","_WXTYPE",0},
5616 { "_short","_unsigned_short",0},
5617 { "_short","_signed_short",0},
5618 { "_wxWindowID","_wxCoord",0},
5619 { "_wxWindowID","_wxPrintQuality",0},
5620 { "_wxWindowID","_time_t",0},
5621 { "_wxWindowID","_size_t",0},
5622 { "_wxWindowID","_EBool",0},
5623 { "_wxWindowID","_uint",0},
5624 { "_wxWindowID","_int",0},
5625 { "_wxWindowID","_signed_int",0},
5626 { "_wxWindowID","_unsigned_int",0},
5627 { "_int","_wxCoord",0},
5628 { "_int","_wxPrintQuality",0},
5629 { "_int","_time_t",0},
5630 { "_int","_size_t",0},
5631 { "_int","_EBool",0},
5632 { "_int","_uint",0},
5633 { "_int","_wxWindowID",0},
5634 { "_int","_unsigned_int",0},
5635 { "_int","_signed_int",0},
5636 { "_time_t","_wxCoord",0},
5637 { "_time_t","_wxPrintQuality",0},
5638 { "_time_t","_unsigned_int",0},
5639 { "_time_t","_int",0},
5640 { "_time_t","_wxWindowID",0},
5641 { "_time_t","_uint",0},
5642 { "_time_t","_size_t",0},
5643 { "_wxCoord","_int",0},
5644 { "_wxCoord","_signed_int",0},
5645 { "_wxCoord","_unsigned_int",0},
5646 { "_wxCoord","_wxWindowID",0},
5647 { "_wxCoord","_uint",0},
5648 { "_wxCoord","_EBool",0},
5649 { "_wxCoord","_size_t",0},
5650 { "_wxCoord","_time_t",0},
5651 { "_wxCoord","_wxPrintQuality",0},
5652 {0,0,0}};
5653
5654 static PyObject *SWIG_globals;
5655 #ifdef __cplusplus
5656 extern "C"
5657 #endif
5658 SWIGEXPORT(void) initmiscc() {
5659 PyObject *m, *d;
5660 SWIG_globals = SWIG_newvarlink();
5661 m = Py_InitModule("miscc", misccMethods);
5662 d = PyModule_GetDict(m);
5663 PyDict_SetItemString(d,"wxSHUTDOWN_POWEROFF", PyInt_FromLong((long) wxSHUTDOWN_POWEROFF));
5664 PyDict_SetItemString(d,"wxSHUTDOWN_REBOOT", PyInt_FromLong((long) wxSHUTDOWN_REBOOT));
5665 PyDict_SetItemString(d,"wxLeft", PyInt_FromLong((long) wxLeft));
5666 PyDict_SetItemString(d,"wxTop", PyInt_FromLong((long) wxTop));
5667 PyDict_SetItemString(d,"wxRight", PyInt_FromLong((long) wxRight));
5668 PyDict_SetItemString(d,"wxBottom", PyInt_FromLong((long) wxBottom));
5669 PyDict_SetItemString(d,"wxWidth", PyInt_FromLong((long) wxWidth));
5670 PyDict_SetItemString(d,"wxHeight", PyInt_FromLong((long) wxHeight));
5671 PyDict_SetItemString(d,"wxCentre", PyInt_FromLong((long) wxCentre));
5672 PyDict_SetItemString(d,"wxCenter", PyInt_FromLong((long) wxCenter));
5673 PyDict_SetItemString(d,"wxCentreX", PyInt_FromLong((long) wxCentreX));
5674 PyDict_SetItemString(d,"wxCentreY", PyInt_FromLong((long) wxCentreY));
5675 PyDict_SetItemString(d,"wxUnconstrained", PyInt_FromLong((long) wxUnconstrained));
5676 PyDict_SetItemString(d,"wxAsIs", PyInt_FromLong((long) wxAsIs));
5677 PyDict_SetItemString(d,"wxPercentOf", PyInt_FromLong((long) wxPercentOf));
5678 PyDict_SetItemString(d,"wxAbove", PyInt_FromLong((long) wxAbove));
5679 PyDict_SetItemString(d,"wxBelow", PyInt_FromLong((long) wxBelow));
5680 PyDict_SetItemString(d,"wxLeftOf", PyInt_FromLong((long) wxLeftOf));
5681 PyDict_SetItemString(d,"wxRightOf", PyInt_FromLong((long) wxRightOf));
5682 PyDict_SetItemString(d,"wxSameAs", PyInt_FromLong((long) wxSameAs));
5683 PyDict_SetItemString(d,"wxAbsolute", PyInt_FromLong((long) wxAbsolute));
5684 PyDict_SetItemString(d,"cvar", SWIG_globals);
5685 SWIG_addvarlink(SWIG_globals,"wxNullAcceleratorTable",_wrap_wxNullAcceleratorTable_get, _wrap_wxNullAcceleratorTable_set);
5686 {
5687 int i;
5688 for (i = 0; _swig_mapping[i].n1; i++)
5689 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
5690 }
5691 }