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