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