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