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