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