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