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