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