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