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