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