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