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