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