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