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