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