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