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