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