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