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