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