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