]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
c370783e | 46 | #define SWIG_TypePrettyName SWIG_Python_TypePrettyName |
d55e5bfc RD |
47 | #define SWIG_TypeQuery SWIG_Python_TypeQuery |
48 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
49 | #define SWIG_PackData SWIG_Python_PackData | |
50 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
51 | ||
52 | ||
53 | /*********************************************************************** | |
54 | * common.swg for wxPython | |
55 | * | |
56 | * Include only the function prototypes and such from SWIG's common.swg, | |
57 | * but not the runtime functions themselves. This helps keep the | |
58 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
59 | * anyway. | |
60 | * | |
61 | ************************************************************************/ | |
62 | ||
63 | #include <string.h> | |
64 | ||
65 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
66 | # if defined(_MSC_VER) || defined(__GNUC__) | |
67 | # if defined(STATIC_LINKED) | |
68 | # define SWIGEXPORT(a) a | |
69 | # define SWIGIMPORT(a) extern a | |
70 | # else | |
71 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
72 | # define SWIGIMPORT(a) extern a | |
73 | # endif | |
74 | # else | |
75 | # if defined(__BORLANDC__) | |
76 | # define SWIGEXPORT(a) a _export | |
77 | # define SWIGIMPORT(a) a _export | |
78 | # else | |
79 | # define SWIGEXPORT(a) a | |
80 | # define SWIGIMPORT(a) a | |
81 | # endif | |
82 | # endif | |
83 | #else | |
84 | # define SWIGEXPORT(a) a | |
85 | # define SWIGIMPORT(a) a | |
86 | #endif | |
87 | ||
88 | #ifdef SWIG_GLOBAL | |
89 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
90 | #else | |
91 | # define SWIGRUNTIME(a) static a | |
92 | #endif | |
93 | ||
94 | #ifdef __cplusplus | |
95 | extern "C" { | |
96 | #endif | |
97 | ||
98 | typedef void *(*swig_converter_func)(void *); | |
99 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
100 | ||
101 | typedef struct swig_type_info { | |
102 | const char *name; | |
103 | swig_converter_func converter; | |
104 | const char *str; | |
105 | void *clientdata; | |
106 | swig_dycast_func dcast; | |
107 | struct swig_type_info *next; | |
108 | struct swig_type_info *prev; | |
109 | } swig_type_info; | |
110 | ||
111 | ||
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
113 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
114 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
115 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
116 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
c370783e | 117 | SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *); |
d55e5bfc RD |
118 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); |
119 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
120 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
121 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
122 | ||
123 | ||
124 | #ifdef __cplusplus | |
125 | } | |
126 | #endif | |
127 | ||
c370783e | 128 | |
d55e5bfc RD |
129 | /*********************************************************************** |
130 | * pyrun.swg for wxPython | |
131 | * | |
132 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
133 | * but not the runtime functions themselves. This helps keep the | |
134 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
135 | * anyway. | |
136 | * | |
137 | ************************************************************************/ | |
138 | ||
d55e5bfc RD |
139 | #ifdef __cplusplus |
140 | extern "C" { | |
141 | #endif | |
142 | ||
143 | #define SWIG_PY_INT 1 | |
144 | #define SWIG_PY_FLOAT 2 | |
145 | #define SWIG_PY_STRING 3 | |
146 | #define SWIG_PY_POINTER 4 | |
147 | #define SWIG_PY_BINARY 5 | |
148 | ||
149 | /* Flags for pointer conversion */ | |
150 | ||
151 | #define SWIG_POINTER_EXCEPTION 0x1 | |
152 | #define SWIG_POINTER_DISOWN 0x2 | |
153 | ||
154 | /* Exception handling in wrappers */ | |
155 | #define SWIG_fail goto fail | |
156 | ||
157 | /* Constant information structure */ | |
158 | typedef struct swig_const_info { | |
159 | int type; | |
160 | char *name; | |
161 | long lvalue; | |
162 | double dvalue; | |
163 | void *pvalue; | |
164 | swig_type_info **ptype; | |
165 | } swig_const_info; | |
166 | ||
167 | /* Common SWIG API */ | |
168 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
169 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
170 | #define SWIG_NewPointerObj(p, type, flags) \ | |
171 | SWIG_Python_NewPointerObj(p, type, flags) | |
172 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
173 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
174 | ||
175 | /* Python-specific SWIG API */ | |
176 | #define SWIG_newvarlink() \ | |
177 | SWIG_Python_newvarlink() | |
178 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
179 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
180 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
181 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
182 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
183 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
184 | #define SWIG_InstallConstants(d, constants) \ | |
185 | SWIG_Python_InstallConstants(d, constants) | |
186 | ||
187 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
188 | ||
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); | |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
197 | ||
198 | ||
199 | /* Contract support */ | |
200 | ||
201 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
202 | ||
203 | #ifdef __cplusplus | |
204 | } | |
205 | #endif | |
206 | ||
207 | ||
c370783e | 208 | |
d55e5bfc RD |
209 | /* -------- TYPES TABLE (BEGIN) -------- */ |
210 | ||
211 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[0] | |
212 | #define SWIGTYPE_p_wxRealPoint swig_types[1] | |
213 | #define SWIGTYPE_p_wxSizerItem swig_types[2] | |
214 | #define SWIGTYPE_p_wxGBSizerItem swig_types[3] | |
215 | #define SWIGTYPE_p_wxScrollEvent swig_types[4] | |
b411df4a RD |
216 | #define SWIGTYPE_p_wxEventLoop swig_types[5] |
217 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[6] | |
218 | #define SWIGTYPE_p_wxSizer swig_types[7] | |
219 | #define SWIGTYPE_p_wxBoxSizer swig_types[8] | |
220 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[9] | |
221 | #define SWIGTYPE_p_wxGridBagSizer swig_types[10] | |
222 | #define SWIGTYPE_p_wxAcceleratorEntry swig_types[11] | |
223 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[12] | |
224 | #define SWIGTYPE_p_wxMenu swig_types[13] | |
225 | #define SWIGTYPE_p_wxEvent swig_types[14] | |
226 | #define SWIGTYPE_p_wxGridSizer swig_types[15] | |
227 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[16] | |
228 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[17] | |
229 | #define SWIGTYPE_p_wxItemContainer swig_types[18] | |
230 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[19] | |
231 | #define SWIGTYPE_p_wxPaintEvent swig_types[20] | |
232 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[21] | |
233 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[22] | |
234 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[23] | |
235 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[24] | |
236 | #define SWIGTYPE_p_wxControl swig_types[25] | |
237 | #define SWIGTYPE_p_wxFont swig_types[26] | |
238 | #define SWIGTYPE_p_wxMenuBarBase swig_types[27] | |
239 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[28] | |
240 | #define SWIGTYPE_p_wxFSFile swig_types[29] | |
241 | #define SWIGTYPE_p_wxCaret swig_types[30] | |
242 | #define SWIGTYPE_p_wxRegion swig_types[31] | |
243 | #define SWIGTYPE_p_wxPoint2D swig_types[32] | |
244 | #define SWIGTYPE_p_int swig_types[33] | |
245 | #define SWIGTYPE_p_wxSize swig_types[34] | |
246 | #define SWIGTYPE_p_wxDC swig_types[35] | |
247 | #define SWIGTYPE_p_wxPySizer swig_types[36] | |
248 | #define SWIGTYPE_p_wxVisualAttributes swig_types[37] | |
249 | #define SWIGTYPE_p_wxNotifyEvent swig_types[38] | |
250 | #define SWIGTYPE_p_wxPyEvent swig_types[39] | |
251 | #define SWIGTYPE_p_wxPropagationDisabler swig_types[40] | |
252 | #define SWIGTYPE_p_wxAppTraits swig_types[41] | |
253 | #define SWIGTYPE_p_wxArrayString swig_types[42] | |
254 | #define SWIGTYPE_p_wxShowEvent swig_types[43] | |
255 | #define SWIGTYPE_p_wxToolTip swig_types[44] | |
256 | #define SWIGTYPE_p_wxIconizeEvent swig_types[45] | |
257 | #define SWIGTYPE_p_wxActivateEvent swig_types[46] | |
258 | #define SWIGTYPE_p_wxMoveEvent swig_types[47] | |
259 | #define SWIGTYPE_p_wxSizeEvent swig_types[48] | |
260 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[49] | |
261 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[50] | |
262 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[51] | |
263 | #define SWIGTYPE_p_wxIdleEvent swig_types[52] | |
264 | #define SWIGTYPE_p_wxMenuItem swig_types[53] | |
265 | #define SWIGTYPE_p_wxStaticBox swig_types[54] | |
266 | #define SWIGTYPE_p_long swig_types[55] | |
267 | #define SWIGTYPE_p_wxTIFFHandler swig_types[56] | |
268 | #define SWIGTYPE_p_wxXPMHandler swig_types[57] | |
269 | #define SWIGTYPE_p_wxPNMHandler swig_types[58] | |
270 | #define SWIGTYPE_p_wxJPEGHandler swig_types[59] | |
271 | #define SWIGTYPE_p_wxPCXHandler swig_types[60] | |
272 | #define SWIGTYPE_p_wxGIFHandler swig_types[61] | |
273 | #define SWIGTYPE_p_wxPNGHandler swig_types[62] | |
274 | #define SWIGTYPE_p_wxANIHandler swig_types[63] | |
275 | #define SWIGTYPE_p_wxMemoryFSHandler swig_types[64] | |
276 | #define SWIGTYPE_p_wxEvtHandler swig_types[65] | |
277 | #define SWIGTYPE_p_wxCURHandler swig_types[66] | |
278 | #define SWIGTYPE_p_wxICOHandler swig_types[67] | |
279 | #define SWIGTYPE_p_wxBMPHandler swig_types[68] | |
280 | #define SWIGTYPE_p_wxImageHandler swig_types[69] | |
281 | #define SWIGTYPE_p_wxFileSystemHandler swig_types[70] | |
282 | #define SWIGTYPE_p_wxPyFileSystemHandler swig_types[71] | |
283 | #define SWIGTYPE_p_wxInternetFSHandler swig_types[72] | |
284 | #define SWIGTYPE_p_wxZipFSHandler swig_types[73] | |
285 | #define SWIGTYPE_p_wxRect swig_types[74] | |
286 | #define SWIGTYPE_p_wxGBSpan swig_types[75] | |
287 | #define SWIGTYPE_p_wxPropagateOnce swig_types[76] | |
288 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[77] | |
289 | #define SWIGTYPE_p_char swig_types[78] | |
290 | #define SWIGTYPE_p_wxGBPosition swig_types[79] | |
291 | #define SWIGTYPE_p_wxImage swig_types[80] | |
292 | #define SWIGTYPE_p_wxFrame swig_types[81] | |
293 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[82] | |
294 | #define SWIGTYPE_p_wxImageHistogram swig_types[83] | |
295 | #define SWIGTYPE_p_byte swig_types[84] | |
296 | #define SWIGTYPE_p_wxPoint swig_types[85] | |
297 | #define SWIGTYPE_p_wxCursor swig_types[86] | |
298 | #define SWIGTYPE_p_wxObject swig_types[87] | |
299 | #define SWIGTYPE_p_wxPyInputStream swig_types[88] | |
300 | #define SWIGTYPE_p_wxOutputStream swig_types[89] | |
301 | #define SWIGTYPE_p_wxInputStream swig_types[90] | |
302 | #define SWIGTYPE_p_wxDateTime swig_types[91] | |
303 | #define SWIGTYPE_p_wxKeyEvent swig_types[92] | |
304 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[93] | |
305 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[94] | |
306 | #define SWIGTYPE_p_wxWindow swig_types[95] | |
307 | #define SWIGTYPE_p_wxMenuBar swig_types[96] | |
308 | #define SWIGTYPE_p_wxFileSystem swig_types[97] | |
309 | #define SWIGTYPE_p_wxBitmap swig_types[98] | |
310 | #define SWIGTYPE_p_wxMenuEvent swig_types[99] | |
311 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[100] | |
312 | #define SWIGTYPE_p_unsigned_char swig_types[101] | |
313 | #define SWIGTYPE_p_wxCloseEvent swig_types[102] | |
314 | #define SWIGTYPE_p_wxEraseEvent swig_types[103] | |
315 | #define SWIGTYPE_p_wxMouseEvent swig_types[104] | |
316 | #define SWIGTYPE_p_wxPyApp swig_types[105] | |
317 | #define SWIGTYPE_p_wxCommandEvent swig_types[106] | |
318 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[107] | |
319 | #define SWIGTYPE_p_wxPyDropTarget swig_types[108] | |
320 | #define SWIGTYPE_p_wxQuantize swig_types[109] | |
321 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[110] | |
322 | #define SWIGTYPE_p_wxFocusEvent swig_types[111] | |
323 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[112] | |
324 | #define SWIGTYPE_p_wxControlWithItems swig_types[113] | |
325 | #define SWIGTYPE_p_wxColour swig_types[114] | |
326 | #define SWIGTYPE_p_wxValidator swig_types[115] | |
327 | #define SWIGTYPE_p_wxPyValidator swig_types[116] | |
328 | static swig_type_info *swig_types[118]; | |
d55e5bfc RD |
329 | |
330 | /* -------- TYPES TABLE (END) -------- */ | |
331 | ||
332 | ||
333 | /*----------------------------------------------- | |
334 | @(target):= _core_.so | |
335 | ------------------------------------------------*/ | |
336 | #define SWIG_init init_core_ | |
337 | ||
338 | #define SWIG_name "_core_" | |
339 | ||
c370783e RD |
340 | /* Auxiliar swig macros that appear in the header */ |
341 | ||
342 | #define SWIG_OLDOBJ 1 | |
343 | #define SWIG_NEWOBJ SWIG_OLDOBJ + 1 | |
344 | #define SWIG_PYSTR SWIG_NEWOBJ + 1 | |
d55e5bfc RD |
345 | |
346 | #ifdef __cplusplus | |
347 | #define SWIGSTATICINLINE(a) static inline a | |
348 | #define SWIGSTATIC(a) static a | |
c370783e RD |
349 | #define swig_new_array(size,Type) (new Type[(size)]) |
350 | #define swig_delete(cptr) delete cptr | |
d55e5bfc | 351 | #define swig_delete_array(cptr) delete[] cptr |
c370783e RD |
352 | #define swig_const_cast(a,Type) const_cast<Type >(a) |
353 | #define swig_static_cast(a,Type) static_cast<Type >(a) | |
354 | #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a) | |
355 | #define swig_new_copy(ptr,Type) (new Type(*ptr)) | |
356 | #define swig_numeric_cast(a,Type) static_cast<Type >(a) | |
d55e5bfc RD |
357 | |
358 | #else /* C case */ | |
359 | ||
360 | #define SWIGSTATICINLINE(a) static a | |
361 | #define SWIGSTATIC(a) static a | |
c370783e RD |
362 | #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type))) |
363 | #define swig_delete(cptr) free((char*)cptr) | |
d55e5bfc | 364 | #define swig_delete_array(cptr) free((char*)cptr) |
c370783e RD |
365 | #define swig_const_cast(a,Type) (Type)(a) |
366 | #define swig_static_cast(a,Type) (Type)(a) | |
367 | #define swig_reinterpret_cast(a,Type) (Type)(a) | |
368 | #define swig_numeric_cast(a,Type) (Type)(a) | |
369 | #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type))) | |
d55e5bfc RD |
370 | |
371 | #endif /* __cplusplus */ | |
372 | ||
373 | ||
c370783e RD |
374 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
375 | #define SWIG_From_signed_SS_char PyInt_FromLong | |
376 | /*@@*/ | |
377 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
378 | #define SWIG_From_unsigned_SS_char PyInt_FromLong | |
379 | /*@@*/ | |
380 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
381 | #define SWIG_From_short PyInt_FromLong | |
382 | /*@@*/ | |
383 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
384 | #define SWIG_From_unsigned_SS_short PyInt_FromLong | |
385 | /*@@*/ | |
386 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
387 | #define SWIG_From_int PyInt_FromLong | |
388 | /*@@*/ | |
389 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
390 | #define SWIG_From_long PyInt_FromLong | |
391 | /*@@*/ | |
392 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
393 | #define SWIG_From_float PyFloat_FromDouble | |
394 | /*@@*/ | |
395 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ | |
396 | #define SWIG_From_double PyFloat_FromDouble | |
397 | /*@@*/ | |
d55e5bfc RD |
398 | |
399 | ||
400 | #include "wx/wxPython/wxPython_int.h" | |
401 | #include "wx/wxPython/pyclasses.h" | |
402 | ||
403 | ||
404 | #ifndef wxPyUSE_EXPORT | |
405 | // Helper functions for dealing with SWIG objects and such. These are | |
406 | // located here so they know about the SWIG types and functions declared | |
407 | // in the wrapper code. | |
408 | ||
409 | #include <wx/hashmap.h> | |
410 | WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap ); | |
411 | ||
412 | ||
413 | // Maintains a hashmap of className to swig_type_info pointers. Given the | |
414 | // name of a class either looks up the type info in the cache, or scans the | |
415 | // SWIG tables for it. | |
416 | extern PyObject* wxPyPtrTypeMap; | |
417 | static | |
418 | swig_type_info* wxPyFindSwigType(const wxChar* className) { | |
419 | ||
420 | static wxPyTypeInfoHashMap* typeInfoCache = NULL; | |
421 | ||
422 | if (typeInfoCache == NULL) | |
423 | typeInfoCache = new wxPyTypeInfoHashMap; | |
424 | ||
425 | wxString name(className); | |
426 | swig_type_info* swigType = (*typeInfoCache)[name]; | |
427 | ||
428 | if (! swigType) { | |
429 | // it wasn't in the cache, so look it up from SWIG | |
430 | name.Append(wxT(" *")); | |
431 | swigType = SWIG_Python_TypeQuery(name.mb_str()); | |
432 | ||
433 | // if it still wasn't found, try looking for a mapped name | |
434 | if (!swigType) { | |
435 | PyObject* item; | |
436 | name = className; | |
437 | ||
438 | if ((item = PyDict_GetItemString(wxPyPtrTypeMap, | |
439 | (char*)(const char*)name.mbc_str())) != NULL) { | |
440 | name = wxString(PyString_AsString(item), *wxConvCurrent); | |
441 | name.Append(wxT(" *")); | |
442 | swigType = SWIG_Python_TypeQuery(name.mb_str()); | |
443 | } | |
444 | } | |
445 | if (swigType) { | |
446 | // and add it to the map if found | |
447 | (*typeInfoCache)[className] = swigType; | |
448 | } | |
449 | } | |
450 | return swigType; | |
451 | } | |
452 | ||
453 | ||
454 | // Check if a class name is a type known to SWIG | |
455 | bool wxPyCheckSwigType(const wxChar* className) { | |
456 | ||
457 | swig_type_info* swigType = wxPyFindSwigType(className); | |
458 | return swigType != NULL; | |
459 | } | |
460 | ||
461 | ||
462 | // Given a pointer to a C++ object and a class name, construct a Python proxy | |
463 | // object for it. | |
464 | PyObject* wxPyConstructObject(void* ptr, | |
465 | const wxChar* className, | |
466 | int setThisOwn) { | |
467 | ||
468 | swig_type_info* swigType = wxPyFindSwigType(className); | |
469 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject")); | |
470 | ||
471 | return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn); | |
472 | } | |
473 | ||
474 | ||
475 | // Extract a pointer to the wrapped C++ object from a Python proxy object. | |
476 | // Ensures that the proxy object is of the specified (or derived) type. If | |
477 | // not able to perform the conversion then a Python exception is set and the | |
478 | // error should be handled properly in the caller. Returns True on success. | |
479 | bool wxPyConvertSwigPtr(PyObject* obj, void **ptr, | |
480 | const wxChar* className) { | |
481 | ||
482 | swig_type_info* swigType = wxPyFindSwigType(className); | |
b411df4a | 483 | wxCHECK_MSG(swigType != NULL, false, wxT("Unknown type in wxPyConvertSwigPtr")); |
d55e5bfc RD |
484 | |
485 | return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1; | |
486 | } | |
487 | ||
488 | ||
489 | // Make a SWIGified pointer object suitable for a .this attribute | |
490 | PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) { | |
491 | ||
492 | PyObject* robj = NULL; | |
493 | ||
494 | swig_type_info* swigType = wxPyFindSwigType(className); | |
495 | wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr")); | |
496 | ||
497 | #ifdef SWIG_COBJECT_TYPES | |
498 | robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) swigType->name, NULL); | |
499 | #else | |
500 | { | |
501 | char result[1024]; | |
502 | char *r = result; | |
503 | *(r++) = '_'; | |
504 | r = SWIG_Python_PackData(r, &ptr, sizeof(void *)); | |
505 | strcpy(r, swigType->name); | |
506 | robj = PyString_FromString(result); | |
507 | } | |
508 | #endif | |
509 | ||
510 | return robj; | |
511 | } | |
512 | ||
513 | ||
514 | ||
515 | ||
516 | // Export a C API in a struct. Other modules will be able to load this from | |
517 | // the wx._core_ module and will then have safe access to these functions, | |
518 | // even if they are located in another shared library. | |
519 | static wxPyCoreAPI API = { | |
520 | ||
521 | (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister, | |
522 | (p_SWIG_Python_TypeCheck_t)SWIG_Python_TypeCheck, | |
523 | (p_SWIG_Python_TypeCast_t)SWIG_Python_TypeCast, | |
524 | (p_SWIG_Python_TypeDynamicCast_t)SWIG_Python_TypeDynamicCast, | |
525 | (p_SWIG_Python_TypeName_t)SWIG_Python_TypeName, | |
c370783e | 526 | (p_SWIG_Python_TypePrettyName_t)SWIG_Python_TypePrettyName, |
d55e5bfc RD |
527 | (p_SWIG_Python_TypeQuery_t)SWIG_Python_TypeQuery, |
528 | (p_SWIG_Python_TypeClientData_t)SWIG_Python_TypeClientData, | |
529 | (p_SWIG_Python_newvarlink_t)SWIG_Python_newvarlink, | |
530 | (p_SWIG_Python_addvarlink_t)SWIG_Python_addvarlink, | |
531 | (p_SWIG_Python_ConvertPtr_t)SWIG_Python_ConvertPtr, | |
532 | (p_SWIG_Python_ConvertPacked_t)SWIG_Python_ConvertPacked, | |
533 | (p_SWIG_Python_PackData_t)SWIG_Python_PackData, | |
534 | (p_SWIG_Python_UnpackData_t)SWIG_Python_UnpackData, | |
535 | (p_SWIG_Python_NewPointerObj_t)SWIG_Python_NewPointerObj, | |
536 | (p_SWIG_Python_NewPackedObj_t)SWIG_Python_NewPackedObj, | |
537 | (p_SWIG_Python_InstallConstants_t)SWIG_Python_InstallConstants, | |
538 | (p_SWIG_Python_MustGetPtr_t)SWIG_Python_MustGetPtr, | |
539 | ||
540 | wxPyCheckSwigType, | |
541 | wxPyConstructObject, | |
542 | wxPyConvertSwigPtr, | |
543 | wxPyMakeSwigPtr, | |
544 | ||
545 | wxPyBeginAllowThreads, | |
546 | wxPyEndAllowThreads, | |
547 | wxPyBeginBlockThreads, | |
548 | wxPyEndBlockThreads, | |
549 | ||
550 | wxPy_ConvertList, | |
551 | ||
552 | wxString_in_helper, | |
553 | Py2wxString, | |
554 | wx2PyString, | |
555 | ||
556 | byte_LIST_helper, | |
557 | int_LIST_helper, | |
558 | long_LIST_helper, | |
559 | string_LIST_helper, | |
560 | wxPoint_LIST_helper, | |
561 | wxBitmap_LIST_helper, | |
562 | wxString_LIST_helper, | |
563 | wxAcceleratorEntry_LIST_helper, | |
564 | ||
565 | wxSize_helper, | |
566 | wxPoint_helper, | |
567 | wxRealPoint_helper, | |
568 | wxRect_helper, | |
569 | wxColour_helper, | |
570 | wxPoint2D_helper, | |
571 | ||
572 | wxPySimple_typecheck, | |
573 | wxColour_typecheck, | |
574 | ||
575 | wxPyCBH_setCallbackInfo, | |
576 | wxPyCBH_findCallback, | |
577 | wxPyCBH_callCallback, | |
578 | wxPyCBH_callCallbackObj, | |
579 | wxPyCBH_delete, | |
580 | ||
581 | wxPyMake_wxObject, | |
582 | wxPyMake_wxSizer, | |
583 | wxPyPtrTypeMap_Add, | |
584 | wxPy2int_seq_helper, | |
585 | wxPy4int_seq_helper, | |
586 | wxArrayString2PyList_helper, | |
587 | wxArrayInt2PyList_helper, | |
588 | ||
589 | wxPyClientData_dtor, | |
590 | wxPyUserData_dtor, | |
591 | wxPyOORClientData_dtor, | |
592 | ||
593 | wxPyCBInputStream_create, | |
594 | ||
595 | wxPyInstance_Check, | |
0439c23b RD |
596 | wxPySwigInstance_Check, |
597 | ||
598 | wxPyCheckForApp | |
d55e5bfc RD |
599 | |
600 | }; | |
601 | ||
602 | #endif | |
603 | ||
604 | ||
605 | #if ! wxUSE_HOTKEY | |
606 | enum wxHotkeyModifier | |
607 | { | |
608 | wxMOD_NONE = 0, | |
609 | wxMOD_ALT = 1, | |
610 | wxMOD_CONTROL = 2, | |
611 | wxMOD_SHIFT = 4, | |
612 | wxMOD_WIN = 8 | |
613 | }; | |
614 | #define wxEVT_HOTKEY 9999 | |
615 | #endif | |
616 | ||
617 | static const wxString wxPyEmptyString(wxEmptyString); | |
618 | wxString wxObject_GetClassName(wxObject *self){ | |
619 | return self->GetClassInfo()->GetClassName(); | |
620 | } | |
621 | void wxObject_Destroy(wxObject *self){ | |
622 | delete self; | |
623 | } | |
624 | ||
625 | #ifndef __WXMAC__ | |
626 | #define wxCURSOR_COPY_ARROW wxCURSOR_ARROW | |
627 | #endif | |
628 | ||
629 | ||
630 | #include <limits.h> | |
631 | ||
632 | ||
c370783e RD |
633 | SWIGSTATICINLINE(int) |
634 | SWIG_CheckLongInRange(long value, long min_value, long max_value, | |
635 | const char *errmsg) | |
d55e5bfc | 636 | { |
c370783e RD |
637 | if (value < min_value) { |
638 | if (errmsg) { | |
639 | PyErr_Format(PyExc_OverflowError, | |
640 | "value %ld is less than '%s' minimum %ld", | |
641 | value, errmsg, min_value); | |
642 | } | |
643 | return 0; | |
644 | } else if (value > max_value) { | |
645 | if (errmsg) { | |
646 | PyErr_Format(PyExc_OverflowError, | |
647 | "value %ld is greater than '%s' maximum %ld", | |
648 | value, errmsg, max_value); | |
d55e5bfc | 649 | } |
c370783e | 650 | return 0; |
d55e5bfc | 651 | } |
c370783e | 652 | return 1; |
d55e5bfc RD |
653 | } |
654 | ||
655 | ||
c370783e RD |
656 | // See my_fragments.i |
657 | SWIGSTATICINLINE(int) | |
658 | SWIG_AsVal_long(PyObject* obj, long* val) | |
d55e5bfc | 659 | { |
c370783e RD |
660 | if (PyNumber_Check(obj)) { |
661 | if (val) *val = PyInt_AsLong(obj); | |
662 | return 1; | |
663 | } | |
d55e5bfc RD |
664 | else { |
665 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
666 | obj->ob_type->tp_name); | |
667 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
668 | Py_DECREF(errmsg); | |
d55e5bfc | 669 | } |
c370783e | 670 | return 0; |
d55e5bfc RD |
671 | } |
672 | ||
673 | ||
674 | #if INT_MAX != LONG_MAX | |
675 | SWIGSTATICINLINE(int) | |
c370783e | 676 | SWIG_AsVal_int(PyObject *obj, int *val) |
d55e5bfc | 677 | { |
c370783e RD |
678 | const char* errmsg = val ? "int" : 0; |
679 | long v; | |
680 | if (SWIG_AsVal_long(obj, &v)) { | |
681 | if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) { | |
682 | if (val) *val = swig_numeric_cast(v, int); | |
683 | return 1; | |
684 | } else { | |
685 | return 0; | |
686 | } | |
687 | } else { | |
688 | PyErr_Clear(); | |
689 | } | |
690 | if (val) { | |
691 | PyErr_SetString(PyExc_TypeError, "an int is expected"); | |
692 | } | |
693 | return 0; | |
d55e5bfc RD |
694 | } |
695 | #else | |
c370783e RD |
696 | SWIGSTATICINLINE(int) |
697 | SWIG_AsVal_int(PyObject *obj, int *val) | |
698 | { | |
699 | return SWIG_AsVal_long(obj,(long*)val); | |
700 | } | |
d55e5bfc RD |
701 | #endif |
702 | ||
703 | ||
704 | SWIGSTATICINLINE(int) | |
c370783e | 705 | SWIG_As_int(PyObject* obj) |
d55e5bfc | 706 | { |
c370783e RD |
707 | int v; |
708 | if (!SWIG_AsVal_int(obj, &v)) { | |
709 | /* | |
710 | this is needed to make valgrind/purify happier. the other | |
711 | solution is throw an exception, but since this code should work | |
712 | with plain C .... | |
713 | */ | |
714 | memset((void*)&v, 0, sizeof(int)); | |
d55e5bfc | 715 | } |
c370783e RD |
716 | return v; |
717 | } | |
718 | ||
719 | ||
720 | SWIGSTATICINLINE(int) | |
721 | SWIG_Check_int(PyObject* obj) | |
722 | { | |
723 | return SWIG_AsVal_int(obj, (int*)0); | |
d55e5bfc RD |
724 | } |
725 | ||
726 | PyObject *wxSize_Get(wxSize *self){ | |
727 | bool blocked = wxPyBeginBlockThreads(); | |
728 | PyObject* tup = PyTuple_New(2); | |
729 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
730 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
731 | wxPyEndBlockThreads(blocked); | |
732 | return tup; | |
733 | } | |
734 | ||
c370783e RD |
735 | // See my_fragments.i |
736 | SWIGSTATICINLINE(int) | |
737 | SWIG_AsVal_double(PyObject *obj, double* val) | |
d55e5bfc | 738 | { |
c370783e RD |
739 | if (PyNumber_Check(obj)) { |
740 | if (val) *val = PyFloat_AsDouble(obj); | |
741 | return 1; | |
742 | } | |
d55e5bfc RD |
743 | else { |
744 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
745 | obj->ob_type->tp_name); | |
746 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
747 | Py_DECREF(errmsg); | |
d55e5bfc | 748 | } |
c370783e | 749 | return 0; |
d55e5bfc RD |
750 | } |
751 | ||
752 | ||
c370783e RD |
753 | SWIGSTATICINLINE(double) |
754 | SWIG_As_double(PyObject* obj) | |
d55e5bfc | 755 | { |
c370783e RD |
756 | double v; |
757 | if (!SWIG_AsVal_double(obj, &v)) { | |
758 | /* | |
759 | this is needed to make valgrind/purify happier. the other | |
760 | solution is throw an exception, but since this code should work | |
761 | with plain C .... | |
762 | */ | |
763 | memset((void*)&v, 0, sizeof(double)); | |
d55e5bfc | 764 | } |
c370783e RD |
765 | return v; |
766 | } | |
767 | ||
768 | ||
769 | SWIGSTATICINLINE(int) | |
770 | SWIG_Check_double(PyObject* obj) | |
771 | { | |
772 | return SWIG_AsVal_double(obj, (double*)0); | |
d55e5bfc RD |
773 | } |
774 | ||
775 | void wxRealPoint_Set(wxRealPoint *self,double x,double y){ | |
776 | self->x = x; | |
777 | self->y = y; | |
778 | } | |
779 | PyObject *wxRealPoint_Get(wxRealPoint *self){ | |
780 | bool blocked = wxPyBeginBlockThreads(); | |
781 | PyObject* tup = PyTuple_New(2); | |
782 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x)); | |
783 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y)); | |
784 | wxPyEndBlockThreads(blocked); | |
785 | return tup; | |
786 | } | |
787 | ||
c370783e RD |
788 | SWIGSTATICINLINE(long) |
789 | SWIG_As_long(PyObject* obj) | |
d55e5bfc | 790 | { |
c370783e RD |
791 | long v; |
792 | if (!SWIG_AsVal_long(obj, &v)) { | |
793 | /* | |
794 | this is needed to make valgrind/purify happier. the other | |
795 | solution is throw an exception, but since this code should work | |
796 | with plain C .... | |
797 | */ | |
798 | memset((void*)&v, 0, sizeof(long)); | |
d55e5bfc | 799 | } |
c370783e RD |
800 | return v; |
801 | } | |
802 | ||
803 | ||
804 | SWIGSTATICINLINE(int) | |
805 | SWIG_Check_long(PyObject* obj) | |
806 | { | |
807 | return SWIG_AsVal_long(obj, (long*)0); | |
d55e5bfc RD |
808 | } |
809 | ||
810 | void wxPoint_Set(wxPoint *self,long x,long y){ | |
811 | self->x = x; | |
812 | self->y = y; | |
813 | } | |
814 | PyObject *wxPoint_Get(wxPoint *self){ | |
815 | bool blocked = wxPyBeginBlockThreads(); | |
816 | PyObject* tup = PyTuple_New(2); | |
817 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
818 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
819 | wxPyEndBlockThreads(blocked); | |
820 | return tup; | |
821 | } | |
822 | void wxRect_Set(wxRect *self,int x,int y,int width,int height){ | |
823 | self->x = x; | |
824 | self->y = y; | |
825 | self->width = width; | |
826 | self->height = height; | |
827 | } | |
828 | PyObject *wxRect_Get(wxRect *self){ | |
829 | bool blocked = wxPyBeginBlockThreads(); | |
830 | PyObject* tup = PyTuple_New(4); | |
831 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x)); | |
832 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y)); | |
833 | PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width)); | |
834 | PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height)); | |
835 | wxPyEndBlockThreads(blocked); | |
836 | return tup; | |
837 | } | |
838 | ||
839 | PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) { | |
840 | wxRegion reg1(*r1); | |
841 | wxRegion reg2(*r2); | |
842 | wxRect dest(0,0,0,0); | |
843 | PyObject* obj; | |
844 | ||
845 | reg1.Intersect(reg2); | |
846 | dest = reg1.GetBox(); | |
847 | ||
848 | if (dest != wxRect(0,0,0,0)) { | |
849 | bool blocked = wxPyBeginBlockThreads(); | |
850 | wxRect* newRect = new wxRect(dest); | |
b411df4a | 851 | obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), true); |
d55e5bfc RD |
852 | wxPyEndBlockThreads(blocked); |
853 | return obj; | |
854 | } | |
855 | Py_INCREF(Py_None); | |
856 | return Py_None; | |
857 | } | |
858 | ||
859 | ||
c370783e | 860 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { |
d55e5bfc RD |
861 | PyObject* o2; |
862 | PyObject* o3; | |
c370783e | 863 | |
d55e5bfc RD |
864 | if (!target) { |
865 | target = o; | |
866 | } else if (target == Py_None) { | |
867 | Py_DECREF(Py_None); | |
868 | target = o; | |
629e65c2 RD |
869 | } else { |
870 | if (!PyTuple_Check(target)) { | |
871 | o2 = target; | |
872 | target = PyTuple_New(1); | |
873 | PyTuple_SetItem(target, 0, o2); | |
874 | } | |
d55e5bfc RD |
875 | o3 = PyTuple_New(1); |
876 | PyTuple_SetItem(o3, 0, o); | |
877 | ||
878 | o2 = target; | |
879 | target = PySequence_Concat(o2, o3); | |
880 | Py_DECREF(o2); | |
881 | Py_DECREF(o3); | |
882 | } | |
883 | return target; | |
629e65c2 | 884 | } |
d55e5bfc | 885 | |
c370783e | 886 | |
d55e5bfc RD |
887 | void wxPoint2D_Set(wxPoint2D *self,double x,double y){ |
888 | self->m_x = x; | |
889 | self->m_y = y; | |
890 | } | |
891 | PyObject *wxPoint2D_Get(wxPoint2D *self){ | |
892 | bool blocked = wxPyBeginBlockThreads(); | |
893 | PyObject* tup = PyTuple_New(2); | |
894 | PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x)); | |
895 | PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y)); | |
896 | wxPyEndBlockThreads(blocked); | |
897 | return tup; | |
898 | } | |
899 | ||
900 | #include "wx/wxPython/pyistream.h" | |
901 | ||
902 | wxPyInputStream *new_wxPyInputStream(PyObject *p){ | |
903 | wxInputStream* wxis = wxPyCBInputStream::create(p); | |
904 | if (wxis) | |
905 | return new wxPyInputStream(wxis); | |
906 | else | |
907 | return NULL; | |
908 | } | |
909 | ||
910 | SWIGSTATICINLINE(PyObject*) | |
c370783e | 911 | SWIG_From_char(char c) |
d55e5bfc RD |
912 | { |
913 | return PyString_FromStringAndSize(&c,1); | |
914 | } | |
915 | ||
916 | ||
917 | SWIGSTATICINLINE(PyObject* ) | |
c370783e | 918 | SWIG_From_unsigned_SS_long(unsigned long value) |
d55e5bfc RD |
919 | { |
920 | return (value > LONG_MAX) ? | |
921 | PyLong_FromUnsignedLong(value) | |
c370783e | 922 | : PyInt_FromLong(swig_numeric_cast(value,long)); |
d55e5bfc RD |
923 | } |
924 | ||
925 | ||
c370783e | 926 | /* returns SWIG_OLDOBJ if the input is a raw char*, SWIG_PYSTR if is a PyString */ |
d55e5bfc | 927 | SWIGSTATIC(int) |
c370783e | 928 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize) |
d55e5bfc RD |
929 | { |
930 | static swig_type_info* pchar_info = 0; | |
c370783e | 931 | char* vptr = 0; |
d55e5bfc | 932 | if (!pchar_info) pchar_info = SWIG_TypeQuery("char *"); |
c370783e RD |
933 | if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_info, 0) != -1) { |
934 | if (cptr) *cptr = vptr; | |
935 | if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; | |
936 | return SWIG_OLDOBJ; | |
d55e5bfc | 937 | } else { |
c370783e RD |
938 | if (PyString_Check(obj)) { |
939 | if (cptr) { | |
940 | *cptr = PyString_AS_STRING(obj); | |
941 | if (psize) { | |
942 | *psize = PyString_GET_SIZE(obj) + 1; | |
943 | } | |
944 | } | |
945 | return SWIG_PYSTR; | |
946 | } | |
d55e5bfc | 947 | } |
c370783e RD |
948 | if (cptr) { |
949 | PyErr_SetString(PyExc_TypeError, "a string is expected"); | |
950 | } | |
951 | return 0; | |
d55e5bfc RD |
952 | } |
953 | ||
954 | ||
c370783e RD |
955 | SWIGSTATIC(int) |
956 | SWIG_AsCharArray(PyObject *obj, char *val, size_t size) | |
d55e5bfc RD |
957 | { |
958 | char* cptr; size_t csize; | |
c370783e RD |
959 | if (SWIG_AsCharPtrAndSize(obj, &cptr, &csize)) { |
960 | /* in C you can do: | |
961 | ||
d55e5bfc RD |
962 | char x[5] = "hello"; |
963 | ||
964 | ie, assing the array using an extra '0' char. | |
965 | */ | |
d55e5bfc | 966 | if ((csize == size + 1) && !(cptr[csize-1])) --csize; |
c370783e RD |
967 | if (csize <= size) { |
968 | if (val) { | |
969 | if (csize) memcpy(val, cptr, csize); | |
970 | if (csize < size) memset(val + csize, 0, size - csize); | |
971 | } | |
972 | return 1; | |
d55e5bfc RD |
973 | } |
974 | } | |
c370783e RD |
975 | if (val) { |
976 | PyErr_Format(PyExc_TypeError, | |
977 | "a char array of maximum size %ld is expected", | |
978 | size); | |
979 | } | |
980 | return 0; | |
d55e5bfc RD |
981 | } |
982 | ||
983 | ||
c370783e RD |
984 | SWIGSTATICINLINE(int) |
985 | SWIG_AsVal_char(PyObject *obj, char *val) | |
986 | { | |
987 | const char* errmsg = val ? "char" : 0; | |
988 | long v; | |
989 | if (SWIG_AsVal_long(obj, &v)) { | |
990 | if (SWIG_CheckLongInRange(v, CHAR_MIN,CHAR_MAX, errmsg)) { | |
991 | if (val) *val = v; | |
992 | return 1; | |
993 | } else { | |
994 | return 0; | |
995 | } | |
996 | } else { | |
997 | PyErr_Clear(); | |
998 | return SWIG_AsCharArray(obj, val, 1); | |
999 | } | |
1000 | } | |
1001 | ||
1002 | ||
d55e5bfc | 1003 | SWIGSTATICINLINE(char) |
c370783e RD |
1004 | SWIG_As_char(PyObject* obj) |
1005 | { | |
1006 | char v; | |
1007 | if (!SWIG_AsVal_char(obj, &v)) { | |
1008 | /* | |
1009 | this is needed to make valgrind/purify happier. the other | |
1010 | solution is throw an exception, but since this code should work | |
1011 | with plain C .... | |
1012 | */ | |
1013 | memset((void*)&v, 0, sizeof(char)); | |
d55e5bfc | 1014 | } |
c370783e | 1015 | return v; |
d55e5bfc RD |
1016 | } |
1017 | ||
c370783e | 1018 | |
d55e5bfc | 1019 | SWIGSTATICINLINE(int) |
c370783e | 1020 | SWIG_Check_char(PyObject* obj) |
d55e5bfc | 1021 | { |
c370783e | 1022 | return SWIG_AsVal_char(obj, (char*)0); |
d55e5bfc RD |
1023 | } |
1024 | ||
1025 | void wxOutputStream_write(wxOutputStream *self,PyObject *obj){ | |
1026 | // We use only strings for the streams, not unicode | |
1027 | PyObject* str = PyObject_Str(obj); | |
1028 | if (! str) { | |
1029 | PyErr_SetString(PyExc_TypeError, "Unable to convert to string"); | |
1030 | return; | |
1031 | } | |
1032 | self->Write(PyString_AS_STRING(str), | |
1033 | PyString_GET_SIZE(str)); | |
1034 | Py_DECREF(str); | |
1035 | } | |
1036 | ||
1037 | #include "wx/wxPython/pyistream.h" | |
1038 | ||
1039 | ||
1040 | class wxPyFileSystemHandler : public wxFileSystemHandler | |
1041 | { | |
1042 | public: | |
1043 | wxPyFileSystemHandler() : wxFileSystemHandler() {} | |
1044 | ||
1045 | DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen); | |
1046 | DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile); | |
1047 | DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst); | |
1048 | DEC_PYCALLBACK_STRING__pure(FindNext); | |
1049 | ||
1050 | wxString GetProtocol(const wxString& location) { | |
1051 | return wxFileSystemHandler::GetProtocol(location); | |
1052 | } | |
1053 | ||
1054 | wxString GetLeftLocation(const wxString& location) { | |
1055 | return wxFileSystemHandler::GetLeftLocation(location); | |
1056 | } | |
1057 | ||
1058 | wxString GetAnchor(const wxString& location) { | |
1059 | return wxFileSystemHandler::GetAnchor(location); | |
1060 | } | |
1061 | ||
1062 | wxString GetRightLocation(const wxString& location) { | |
1063 | return wxFileSystemHandler::GetRightLocation(location); | |
1064 | } | |
1065 | ||
1066 | wxString GetMimeTypeFromExt(const wxString& location) { | |
1067 | return wxFileSystemHandler::GetMimeTypeFromExt(location); | |
1068 | } | |
1069 | ||
1070 | PYPRIVATE; | |
1071 | }; | |
1072 | ||
1073 | ||
1074 | IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen); | |
1075 | IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile); | |
1076 | IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst); | |
1077 | IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext); | |
1078 | ||
1079 | ||
c370783e RD |
1080 | SWIGSTATICINLINE(int) |
1081 | SWIG_AsVal_bool(PyObject *obj, bool *val) | |
d55e5bfc | 1082 | { |
c370783e RD |
1083 | /* if (val) *val = PyObject_IsTrue(obj); return 1; */ |
1084 | if (obj == Py_True) { | |
1085 | if (val) *val = true; | |
1086 | return 1; | |
1087 | } | |
1088 | if (obj == Py_False) { | |
1089 | if (val) *val = false; | |
1090 | return 1; | |
1091 | } | |
1092 | int res = 0; | |
1093 | if (SWIG_AsVal_int(obj, &res)) { | |
1094 | if (val) *val = (bool)res; | |
1095 | return 1; | |
1096 | } | |
1097 | if (val) { | |
1098 | PyErr_SetString(PyExc_TypeError, "a bool is expected"); | |
1099 | } | |
1100 | return 0; | |
d55e5bfc RD |
1101 | } |
1102 | ||
1103 | ||
c370783e RD |
1104 | SWIGSTATICINLINE(bool) |
1105 | SWIG_As_bool(PyObject* obj) | |
d55e5bfc | 1106 | { |
c370783e RD |
1107 | bool v; |
1108 | if (!SWIG_AsVal_bool(obj, &v)) { | |
1109 | /* | |
1110 | this is needed to make valgrind/purify happier. the other | |
1111 | solution is throw an exception, but since this code should work | |
1112 | with plain C .... | |
1113 | */ | |
1114 | memset((void*)&v, 0, sizeof(bool)); | |
d55e5bfc | 1115 | } |
c370783e RD |
1116 | return v; |
1117 | } | |
1118 | ||
1119 | ||
1120 | SWIGSTATICINLINE(int) | |
1121 | SWIG_Check_bool(PyObject* obj) | |
1122 | { | |
1123 | return SWIG_AsVal_bool(obj, (bool*)0); | |
d55e5bfc RD |
1124 | } |
1125 | ||
b411df4a RD |
1126 | wxString FileSystem_URLToFileName(wxString const &url){ |
1127 | wxFileName fname = wxFileSystem::URLToFileName(url); | |
1128 | return fname.GetFullPath(); | |
1129 | } | |
d55e5bfc RD |
1130 | |
1131 | void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename, | |
1132 | wxImage& image, | |
1133 | long type) { | |
1134 | wxMemoryFSHandler::AddFile(filename, image, type); | |
1135 | } | |
1136 | ||
1137 | void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename, | |
1138 | const wxBitmap& bitmap, | |
1139 | long type) { | |
1140 | wxMemoryFSHandler::AddFile(filename, bitmap, type); | |
1141 | } | |
1142 | ||
1143 | void __wxMemoryFSHandler_AddFile_Data(const wxString& filename, | |
1144 | PyObject* data) { | |
b411df4a RD |
1145 | if (! PyString_Check(data)) { |
1146 | wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError, | |
1147 | "Expected string object")); | |
1148 | return; | |
1149 | } | |
1150 | ||
1151 | bool blocked = wxPyBeginBlockThreads(); | |
1152 | void* ptr = (void*)PyString_AsString(data); | |
1153 | size_t size = PyString_Size(data); | |
1154 | wxPyEndBlockThreads(blocked); | |
1155 | ||
1156 | wxMemoryFSHandler::AddFile(filename, ptr, size); | |
d55e5bfc RD |
1157 | } |
1158 | ||
1159 | ||
1160 | #include "wx/wxPython/pyistream.h" | |
1161 | ||
1162 | ||
c370783e RD |
1163 | // See my_fragments.i |
1164 | SWIGSTATICINLINE(int) | |
1165 | SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val) | |
d55e5bfc | 1166 | { |
c370783e RD |
1167 | long v = 0; |
1168 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
1169 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
1170 | return 0; | |
d55e5bfc | 1171 | } |
c370783e RD |
1172 | else if (val) |
1173 | *val = (unsigned long)v; | |
1174 | return 1; | |
d55e5bfc RD |
1175 | } |
1176 | ||
1177 | ||
c370783e RD |
1178 | SWIGSTATICINLINE(int) |
1179 | SWIG_CheckUnsignedLongInRange(unsigned long value, | |
1180 | unsigned long max_value, | |
1181 | const char *errmsg) | |
d55e5bfc | 1182 | { |
c370783e RD |
1183 | if (value > max_value) { |
1184 | if (errmsg) { | |
1185 | PyErr_Format(PyExc_OverflowError, | |
1186 | "value %ld is greater than '%s' minimum %ld", | |
1187 | value, errmsg, max_value); | |
d55e5bfc | 1188 | } |
c370783e | 1189 | return 0; |
d55e5bfc | 1190 | } |
c370783e RD |
1191 | return 1; |
1192 | } | |
d55e5bfc RD |
1193 | |
1194 | ||
c370783e RD |
1195 | SWIGSTATICINLINE(int) |
1196 | SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val) | |
d55e5bfc | 1197 | { |
c370783e RD |
1198 | const char* errmsg = val ? "unsigned char" : 0; |
1199 | unsigned long v; | |
1200 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1201 | if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) { | |
1202 | if (val) *val = swig_numeric_cast(v, unsigned char); | |
1203 | return 1; | |
1204 | } else { | |
1205 | return 0; | |
1206 | } | |
1207 | } else { | |
1208 | PyErr_Clear(); | |
1209 | } | |
1210 | if (val) { | |
1211 | PyErr_SetString(PyExc_TypeError, "an unsigned char is expected"); | |
1212 | } | |
1213 | return 0; | |
d55e5bfc RD |
1214 | } |
1215 | ||
1216 | ||
c370783e RD |
1217 | SWIGSTATICINLINE(unsigned char) |
1218 | SWIG_As_unsigned_SS_char(PyObject* obj) | |
d55e5bfc | 1219 | { |
c370783e RD |
1220 | unsigned char v; |
1221 | if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) { | |
1222 | /* | |
1223 | this is needed to make valgrind/purify happier. the other | |
1224 | solution is throw an exception, but since this code should work | |
1225 | with plain C .... | |
1226 | */ | |
1227 | memset((void*)&v, 0, sizeof(unsigned char)); | |
d55e5bfc | 1228 | } |
c370783e | 1229 | return v; |
d55e5bfc RD |
1230 | } |
1231 | ||
c370783e RD |
1232 | |
1233 | SWIGSTATICINLINE(int) | |
1234 | SWIG_Check_unsigned_SS_char(PyObject* obj) | |
1235 | { | |
1236 | return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0); | |
1237 | } | |
1238 | ||
1239 | ||
d6c14a4c | 1240 | wxImage *new_wxImage(int width,int height,bool clear){ |
d55e5bfc RD |
1241 | if (width > 0 && height > 0) |
1242 | return new wxImage(width, height, clear); | |
1243 | else | |
1244 | return new wxImage; | |
1245 | } | |
d55e5bfc RD |
1246 | wxImage *new_wxImage(wxBitmap const &bitmap){ |
1247 | return new wxImage(bitmap.ConvertToImage()); | |
1248 | } | |
1249 | wxImage *new_wxImage(int width,int height,unsigned char *data){ | |
1250 | // Copy the source data so the wxImage can clean it up later | |
1251 | unsigned char* copy = (unsigned char*)malloc(width*height*3); | |
1252 | if (copy == NULL) { | |
1253 | PyErr_NoMemory(); | |
1254 | return NULL; | |
1255 | } | |
1256 | memcpy(copy, data, width*height*3); | |
b411df4a | 1257 | return new wxImage(width, height, copy, false); |
d55e5bfc RD |
1258 | } |
1259 | wxSize wxImage_GetSize(wxImage *self){ | |
1260 | wxSize size(self->GetWidth(), self->GetHeight()); | |
1261 | return size; | |
1262 | } | |
1263 | PyObject *wxImage_GetData(wxImage *self){ | |
1264 | unsigned char* data = self->GetData(); | |
1265 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1266 | PyObject* rv; | |
1267 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
1268 | return rv; | |
1269 | } | |
1270 | void wxImage_SetData(wxImage *self,PyObject *data){ | |
1271 | unsigned char* dataPtr; | |
1272 | ||
1273 | if (! PyString_Check(data)) { | |
b411df4a RD |
1274 | wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError, |
1275 | "Expected string object")); | |
d55e5bfc RD |
1276 | return /* NULL */ ; |
1277 | } | |
1278 | ||
1279 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
1280 | dataPtr = (unsigned char*) malloc(len); | |
1281 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1282 | self->SetData(dataPtr); | |
1283 | // wxImage takes ownership of dataPtr... | |
1284 | } | |
1285 | PyObject *wxImage_GetDataBuffer(wxImage *self){ | |
1286 | unsigned char* data = self->GetData(); | |
1287 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1288 | PyObject* rv; | |
1289 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1290 | return rv; | |
1291 | } | |
1292 | void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ | |
1293 | unsigned char* buffer; | |
1294 | int size; | |
1295 | ||
1296 | bool blocked = wxPyBeginBlockThreads(); | |
1297 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1298 | goto done; | |
1299 | ||
1300 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
1301 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1302 | goto done; | |
1303 | } | |
1304 | self->SetData(buffer); | |
1305 | done: | |
1306 | wxPyEndBlockThreads(blocked); | |
1307 | } | |
1308 | PyObject *wxImage_GetAlphaData(wxImage *self){ | |
1309 | unsigned char* data = self->GetAlpha(); | |
1310 | if (! data) { | |
1311 | RETURN_NONE(); | |
1312 | } else { | |
1313 | int len = self->GetWidth() * self->GetHeight(); | |
1314 | PyObject* rv; | |
1315 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
1316 | return rv; | |
1317 | } | |
1318 | } | |
1319 | void wxImage_SetAlphaData(wxImage *self,PyObject *data){ | |
1320 | unsigned char* dataPtr; | |
1321 | ||
1322 | if (! PyString_Check(data)) { | |
1323 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1324 | return /* NULL */ ; | |
1325 | } | |
1326 | ||
1327 | size_t len = self->GetWidth() * self->GetHeight(); | |
1328 | dataPtr = (unsigned char*) malloc(len); | |
1329 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1330 | self->SetAlpha(dataPtr); | |
1331 | // wxImage takes ownership of dataPtr... | |
1332 | } | |
1333 | PyObject *wxImage_GetAlphaBuffer(wxImage *self){ | |
1334 | unsigned char* data = self->GetAlpha(); | |
1335 | int len = self->GetWidth() * self->GetHeight(); | |
1336 | PyObject* rv; | |
1337 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1338 | return rv; | |
1339 | } | |
1340 | void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ | |
1341 | unsigned char* buffer; | |
1342 | int size; | |
1343 | ||
1344 | bool blocked = wxPyBeginBlockThreads(); | |
1345 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1346 | goto done; | |
1347 | ||
1348 | if (size != self->GetWidth() * self->GetHeight()) { | |
1349 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1350 | goto done; | |
1351 | } | |
1352 | self->SetAlpha(buffer); | |
1353 | done: | |
1354 | wxPyEndBlockThreads(blocked); | |
1355 | } | |
1356 | ||
c370783e RD |
1357 | SWIGSTATICINLINE(unsigned long) |
1358 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
d55e5bfc | 1359 | { |
c370783e RD |
1360 | unsigned long v; |
1361 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1362 | /* | |
1363 | this is needed to make valgrind/purify happier. the other | |
1364 | solution is throw an exception, but since this code should work | |
1365 | with plain C .... | |
1366 | */ | |
1367 | memset((void*)&v, 0, sizeof(unsigned long)); | |
d55e5bfc | 1368 | } |
c370783e RD |
1369 | return v; |
1370 | } | |
1371 | ||
1372 | ||
1373 | SWIGSTATICINLINE(int) | |
1374 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
1375 | { | |
1376 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
d55e5bfc RD |
1377 | } |
1378 | ||
44bf767a RD |
1379 | wxBitmap wxImage_ConvertToBitmap(wxImage *self,int depth){ |
1380 | wxBitmap bitmap(*self, depth); | |
d55e5bfc RD |
1381 | return bitmap; |
1382 | } | |
1383 | wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ | |
1384 | wxImage mono = self->ConvertToMono( red, green, blue ); | |
1385 | wxBitmap bitmap( mono, 1 ); | |
1386 | return bitmap; | |
1387 | } | |
1388 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); | |
1389 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
1390 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
1391 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
1392 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); | |
c0de73ae RD |
1393 | |
1394 | #include <wx/quantize.h> | |
1395 | ||
1396 | bool Quantize_Quantize(wxImage const &src,wxImage &dest,int desiredNoColours,int flags){ | |
1397 | return wxQuantize::Quantize(src, dest, | |
1398 | //NULL, // palette | |
1399 | desiredNoColours, | |
1400 | NULL, // eightBitData | |
1401 | flags); | |
1402 | } | |
d55e5bfc RD |
1403 | void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ |
1404 | if (PyCallable_Check(func)) { | |
1405 | self->Connect(id, lastId, eventType, | |
1406 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
1407 | new wxPyCallback(func)); | |
1408 | } | |
1409 | else if (func == Py_None) { | |
1410 | self->Disconnect(id, lastId, eventType, | |
1411 | (wxObjectEventFunction) | |
1412 | &wxPyCallback::EventThunker); | |
1413 | } | |
1414 | else { | |
1415 | wxPyBLOCK_THREADS( | |
1416 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None.")); | |
1417 | } | |
1418 | } | |
1419 | bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ | |
1420 | return self->Disconnect(id, lastId, eventType, | |
1421 | (wxObjectEventFunction) | |
1422 | &wxPyCallback::EventThunker); | |
1423 | } | |
1424 | void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ | |
1425 | if (_self && _self != Py_None) { | |
1426 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1427 | } | |
1428 | else { | |
1429 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
1430 | if (data) { | |
1431 | self->SetClientObject(NULL); // This will delete it too | |
1432 | } | |
1433 | } | |
1434 | } | |
c370783e | 1435 | |
bb4524c4 | 1436 | int wxKeyEvent_GetUnicodeKey(wxKeyEvent *self){ |
d55e5bfc | 1437 | #if wxUSE_UNICODE |
bb4524c4 | 1438 | return self->GetUnicodeKey(); |
d55e5bfc RD |
1439 | #else |
1440 | return 0; | |
1441 | #endif | |
1442 | } | |
1443 | ||
1444 | #if UINT_MAX < LONG_MAX | |
c370783e RD |
1445 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
1446 | #define SWIG_From_unsigned_SS_int SWIG_From_long | |
1447 | /*@@*/ | |
d55e5bfc | 1448 | #else |
c370783e RD |
1449 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
1450 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long | |
1451 | /*@@*/ | |
d55e5bfc RD |
1452 | #endif |
1453 | ||
1454 | ||
1455 | #if UINT_MAX != ULONG_MAX | |
c370783e RD |
1456 | SWIGSTATICINLINE(int) |
1457 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
d55e5bfc | 1458 | { |
c370783e RD |
1459 | const char* errmsg = val ? "unsigned int" : 0; |
1460 | unsigned long v; | |
1461 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1462 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
1463 | if (val) *val = swig_numeric_cast(v, unsigned int); | |
1464 | return 1; | |
1465 | } | |
1466 | } else { | |
1467 | PyErr_Clear(); | |
1468 | } | |
1469 | if (val) { | |
1470 | PyErr_SetString(PyExc_TypeError, "an unsigned int is expected"); | |
1471 | } | |
1472 | return 0; | |
d55e5bfc RD |
1473 | } |
1474 | #else | |
c370783e RD |
1475 | SWIGSTATICINLINE(unsigned int) |
1476 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
1477 | { | |
1478 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
1479 | } | |
d55e5bfc RD |
1480 | #endif |
1481 | ||
1482 | ||
c370783e RD |
1483 | SWIGSTATICINLINE(unsigned int) |
1484 | SWIG_As_unsigned_SS_int(PyObject* obj) | |
d55e5bfc | 1485 | { |
c370783e RD |
1486 | unsigned int v; |
1487 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
1488 | /* | |
1489 | this is needed to make valgrind/purify happier. the other | |
1490 | solution is throw an exception, but since this code should work | |
1491 | with plain C .... | |
1492 | */ | |
1493 | memset((void*)&v, 0, sizeof(unsigned int)); | |
d55e5bfc | 1494 | } |
c370783e RD |
1495 | return v; |
1496 | } | |
1497 | ||
1498 | ||
1499 | SWIGSTATICINLINE(int) | |
1500 | SWIG_Check_unsigned_SS_int(PyObject* obj) | |
1501 | { | |
1502 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
d55e5bfc RD |
1503 | } |
1504 | ||
1505 | void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ | |
1506 | self->m_size = size; | |
1507 | } | |
1508 | void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ | |
1509 | self->m_pos = pos; | |
1510 | } | |
1511 | PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ | |
1512 | int count = self->GetNumberOfFiles(); | |
1513 | wxString* files = self->GetFiles(); | |
1514 | PyObject* list = PyList_New(count); | |
1515 | ||
1516 | if (!list) { | |
1517 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
1518 | return NULL; | |
1519 | } | |
1520 | ||
1521 | for (int i=0; i<count; i++) { | |
1522 | PyList_SetItem(list, i, wx2PyString(files[i])); | |
1523 | } | |
1524 | return list; | |
1525 | } | |
1526 | ||
1527 | ||
1528 | wxPyApp *new_wxPyApp(){ | |
1529 | wxPythonApp = new wxPyApp(); | |
1530 | return wxPythonApp; | |
1531 | } | |
1532 | int PyApp_GetComCtl32Version(){ wxPyRaiseNotImplemented(); return 0; } | |
1533 | ||
1534 | void wxApp_CleanUp() { | |
1535 | __wxPyCleanup(); | |
1536 | } | |
1537 | ||
1538 | ||
a5ee0656 | 1539 | wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; } |
d55e5bfc RD |
1540 | |
1541 | ||
b411df4a RD |
1542 | #ifdef __WXMAC__ |
1543 | ||
1544 | // A dummy class that raises an exception if used... | |
1545 | class wxEventLoop | |
1546 | { | |
1547 | public: | |
1548 | wxEventLoop() { wxPyRaiseNotImplemented(); } | |
1549 | int Run() { return 0; } | |
1550 | void Exit(int rc = 0) {} | |
1551 | bool Pending() const { return false; } | |
1552 | bool Dispatch() { return false; } | |
1553 | bool IsRunning() const { return false; } | |
1554 | static wxEventLoop *GetActive() { wxPyRaiseNotImplemented(); return NULL; } | |
1555 | static void SetActive(wxEventLoop* loop) { wxPyRaiseNotImplemented(); } | |
1556 | }; | |
1557 | ||
1558 | #else | |
1559 | ||
1560 | #include <wx/evtloop.h> | |
1561 | ||
1562 | #endif | |
1563 | ||
1564 | ||
d55e5bfc RD |
1565 | |
1566 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
1567 | wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; } | |
f20a2e1f | 1568 | void delete_wxVisualAttributes(wxVisualAttributes *self){ delete self; } |
d55e5bfc RD |
1569 | PyObject *wxWindow_GetChildren(wxWindow *self){ |
1570 | wxWindowList& list = self->GetChildren(); | |
1571 | return wxPy_ConvertList(&list); | |
1572 | } | |
1573 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
1574 | #if wxUSE_HOTKEY | |
1575 | return self->RegisterHotKey(hotkeyId, modifiers, keycode); | |
1576 | #else | |
b411df4a | 1577 | return false; |
d55e5bfc RD |
1578 | #endif |
1579 | } | |
1580 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
1581 | ||
1582 | ||
1583 | ||
b411df4a | 1584 | return false; |
d55e5bfc RD |
1585 | |
1586 | } | |
1587 | long wxWindow_GetHandle(wxWindow *self){ | |
1588 | return wxPyGetWinHandle(self); | |
1589 | } | |
629e65c2 RD |
1590 | void wxWindow_AssociateHandle(wxWindow *self,long handle){ |
1591 | self->AssociateHandle((WXWidget)handle); | |
1592 | } | |
d55e5bfc RD |
1593 | |
1594 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
1595 | return wxWindow::FindWindowById(id, parent); | |
1596 | } | |
1597 | ||
1598 | wxWindow* wxFindWindowByName( const wxString& name, | |
1599 | const wxWindow *parent = NULL ) { | |
1600 | return wxWindow::FindWindowByName(name, parent); | |
1601 | } | |
1602 | ||
1603 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1604 | const wxWindow *parent = NULL ) { | |
1605 | return wxWindow::FindWindowByLabel(label, parent); | |
1606 | } | |
1607 | ||
1608 | ||
1609 | #ifdef __WXMSW__ | |
1610 | #include <wx/msw/private.h> // to get wxGetWindowId | |
1611 | #endif | |
1612 | ||
1613 | ||
1614 | wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) { | |
1615 | #ifdef __WXMSW__ | |
1616 | WXHWND hWnd = (WXHWND)_hWnd; | |
1617 | long id = wxGetWindowId(hWnd); | |
1618 | wxWindow* win = new wxWindow; | |
1619 | parent->AddChild(win); | |
1620 | win->SetEventHandler(win); | |
1621 | win->SetHWND(hWnd); | |
1622 | win->SetId(id); | |
1623 | win->SubclassWin(hWnd); | |
1624 | win->AdoptAttributesFromHWND(); | |
1625 | win->SetupColours(); | |
1626 | return win; | |
1627 | #else | |
1628 | wxPyRaiseNotImplemented(); | |
1629 | return NULL; | |
1630 | #endif | |
1631 | } | |
1632 | ||
1633 | ||
1634 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1635 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1636 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1637 | ||
1638 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1639 | ||
1640 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1641 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1642 | wxMenuItemList& list = self->GetMenuItems(); | |
1643 | return wxPy_ConvertList(&list); | |
1644 | } | |
1645 | int MenuItem_GetDefaultMarginWidth(){ return 0; } | |
1646 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
1647 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ | |
1648 | if (clientData) { | |
1649 | wxPyClientData* data = new wxPyClientData(clientData); | |
1650 | return self->Append(item, data); | |
1651 | } else | |
1652 | return self->Append(item); | |
1653 | } | |
1654 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1655 | if (clientData) { | |
1656 | wxPyClientData* data = new wxPyClientData(clientData); | |
1657 | return self->Insert(item, pos, data); | |
1658 | } else | |
1659 | return self->Insert(item, pos); | |
1660 | } | |
1661 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1662 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1663 | if (data) { | |
1664 | Py_INCREF(data->m_obj); | |
1665 | return data->m_obj; | |
1666 | } else { | |
1667 | Py_INCREF(Py_None); | |
1668 | return Py_None; | |
1669 | } | |
1670 | } | |
1671 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1672 | wxPyClientData* data = new wxPyClientData(clientData); | |
1673 | self->SetClientObject(n, data); | |
1674 | } | |
1675 | ||
1676 | ||
bfddbb17 RD |
1677 | wxSizerItem *new_wxSizerItem(wxWindow *window,int proportion,int flag,int border,PyObject *userData){ |
1678 | wxPyUserData* data = NULL; | |
1679 | if ( userData ) { | |
1680 | bool blocked = wxPyBeginBlockThreads(); | |
1681 | data = new wxPyUserData(userData); | |
1682 | wxPyEndBlockThreads(blocked); | |
1683 | } | |
1684 | return new wxSizerItem(window, proportion, flag, border, data); | |
1685 | } | |
1686 | wxSizerItem *new_wxSizerItem(int width,int height,int proportion,int flag,int border,PyObject *userData){ | |
1687 | wxPyUserData* data = NULL; | |
1688 | if ( userData ) { | |
1689 | bool blocked = wxPyBeginBlockThreads(); | |
1690 | data = new wxPyUserData(userData); | |
1691 | wxPyEndBlockThreads(blocked); | |
1692 | } | |
1693 | return new wxSizerItem(width, height, proportion, flag, border, data); | |
1694 | } | |
1695 | wxSizerItem *new_wxSizerItem(wxSizer *sizer,int proportion,int flag,int border,PyObject *userData){ | |
1696 | wxPyUserData* data = NULL; | |
1697 | if ( userData ) { | |
1698 | bool blocked = wxPyBeginBlockThreads(); | |
1699 | data = new wxPyUserData(userData); | |
1700 | wxPyEndBlockThreads(blocked); | |
1701 | } | |
1702 | return new wxSizerItem(sizer, proportion, flag, border, data); | |
1703 | } | |
d55e5bfc RD |
1704 | |
1705 | #include <float.h> | |
c370783e RD |
1706 | SWIGSTATICINLINE(int) |
1707 | SWIG_CheckDoubleInRange(double value, double min_value, | |
1708 | double max_value, const char* errmsg) | |
1709 | { | |
1710 | if (value < min_value) { | |
1711 | if (errmsg) { | |
1712 | PyErr_Format(PyExc_OverflowError, | |
1713 | "value %g is less than %s minimum %g", | |
1714 | value, errmsg, min_value); | |
1715 | } | |
1716 | return 0; | |
1717 | } else if (value > max_value) { | |
1718 | if (errmsg) { | |
1719 | PyErr_Format(PyExc_OverflowError, | |
1720 | "value %g is greater than %s maximum %g", | |
1721 | value, errmsg, max_value); | |
1722 | } | |
1723 | return 0; | |
1724 | } | |
1725 | return 1; | |
1726 | } | |
1727 | ||
d55e5bfc | 1728 | |
c370783e RD |
1729 | SWIGSTATICINLINE(int) |
1730 | SWIG_AsVal_float(PyObject *obj, float *val) | |
d55e5bfc | 1731 | { |
c370783e RD |
1732 | const char* errmsg = val ? "float" : 0; |
1733 | double v; | |
1734 | if (SWIG_AsVal_double(obj, &v)) { | |
1735 | if (SWIG_CheckDoubleInRange(v, -FLT_MAX, FLT_MAX, errmsg)) { | |
1736 | if (val) *val = v; | |
1737 | return 1; | |
d55e5bfc | 1738 | } else { |
c370783e | 1739 | return 0; |
d55e5bfc | 1740 | } |
c370783e RD |
1741 | } else { |
1742 | PyErr_Clear(); | |
d55e5bfc | 1743 | } |
c370783e RD |
1744 | if (val) { |
1745 | PyErr_SetString(PyExc_TypeError, "a float is expected"); | |
1746 | } | |
1747 | return 0; | |
d55e5bfc RD |
1748 | } |
1749 | ||
1750 | ||
1751 | SWIGSTATICINLINE(float) | |
c370783e | 1752 | SWIG_As_float(PyObject* obj) |
d55e5bfc | 1753 | { |
c370783e RD |
1754 | float v; |
1755 | if (!SWIG_AsVal_float(obj, &v)) { | |
1756 | /* | |
1757 | this is needed to make valgrind/purify happier. the other | |
1758 | solution is throw an exception, but since this code should work | |
1759 | with plain C .... | |
1760 | */ | |
1761 | memset((void*)&v, 0, sizeof(float)); | |
1762 | } | |
1763 | return v; | |
d55e5bfc RD |
1764 | } |
1765 | ||
c370783e | 1766 | |
d55e5bfc | 1767 | SWIGSTATICINLINE(int) |
c370783e | 1768 | SWIG_Check_float(PyObject* obj) |
d55e5bfc | 1769 | { |
c370783e | 1770 | return SWIG_AsVal_float(obj, (float*)0); |
d55e5bfc RD |
1771 | } |
1772 | ||
1773 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ | |
1774 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1775 | if (data) { | |
1776 | Py_INCREF(data->m_obj); | |
1777 | return data->m_obj; | |
1778 | } else { | |
1779 | Py_INCREF(Py_None); | |
1780 | return Py_None; | |
1781 | } | |
1782 | } | |
1783 | ||
1784 | // Figure out the type of the sizer item | |
1785 | ||
1786 | struct wxPySizerItemInfo { | |
1787 | wxPySizerItemInfo() | |
b411df4a RD |
1788 | : window(NULL), sizer(NULL), gotSize(false), |
1789 | size(wxDefaultSize), gotPos(false), pos(-1) | |
d55e5bfc RD |
1790 | {} |
1791 | ||
1792 | wxWindow* window; | |
1793 | wxSizer* sizer; | |
1794 | bool gotSize; | |
1795 | wxSize size; | |
1796 | bool gotPos; | |
1797 | int pos; | |
1798 | }; | |
1799 | ||
1800 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1801 | ||
1802 | wxPySizerItemInfo info; | |
1803 | wxSize size; | |
1804 | wxSize* sizePtr = &size; | |
1805 | ||
1806 | // Find out what the type of the item is | |
1807 | // try wxWindow | |
1808 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1809 | PyErr_Clear(); | |
1810 | info.window = NULL; | |
1811 | ||
1812 | // try wxSizer | |
1813 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1814 | PyErr_Clear(); | |
1815 | info.sizer = NULL; | |
1816 | ||
1817 | // try wxSize or (w,h) | |
1818 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1819 | info.size = *sizePtr; | |
b411df4a | 1820 | info.gotSize = true; |
d55e5bfc RD |
1821 | } |
1822 | ||
1823 | // or a single int | |
1824 | if (checkIdx && PyInt_Check(item)) { | |
1825 | info.pos = PyInt_AsLong(item); | |
b411df4a | 1826 | info.gotPos = true; |
d55e5bfc RD |
1827 | } |
1828 | } | |
1829 | } | |
1830 | ||
1831 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1832 | // no expected type, figure out what kind of error message to generate | |
1833 | if ( !checkSize && !checkIdx ) | |
1834 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1835 | else if ( checkSize && !checkIdx ) | |
1836 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1837 | else if ( !checkSize && checkIdx) | |
1838 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1839 | else | |
1840 | // can this one happen? | |
1841 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1842 | } | |
1843 | ||
1844 | return info; | |
1845 | } | |
1846 | ||
1847 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
b0f7404b RD |
1848 | if (!self->GetClientObject()) |
1849 | self->SetClientObject(new wxPyOORClientData(_self)); | |
d55e5bfc RD |
1850 | } |
1851 | void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1852 | ||
1853 | wxPyUserData* data = NULL; | |
1854 | bool blocked = wxPyBeginBlockThreads(); | |
b411df4a | 1855 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
1856 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1857 | data = new wxPyUserData(userData); | |
1858 | wxPyEndBlockThreads(blocked); | |
1859 | ||
1860 | // Now call the real Add method if a valid item type was found | |
1861 | if ( info.window ) | |
1862 | self->Add(info.window, proportion, flag, border, data); | |
1863 | else if ( info.sizer ) | |
1864 | self->Add(info.sizer, proportion, flag, border, data); | |
1865 | else if (info.gotSize) | |
1866 | self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
1867 | proportion, flag, border, data); | |
1868 | } | |
1869 | void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1870 | ||
1871 | wxPyUserData* data = NULL; | |
1872 | bool blocked = wxPyBeginBlockThreads(); | |
b411df4a | 1873 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
1874 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1875 | data = new wxPyUserData(userData); | |
1876 | wxPyEndBlockThreads(blocked); | |
1877 | ||
1878 | // Now call the real Insert method if a valid item type was found | |
1879 | if ( info.window ) | |
1880 | self->Insert(before, info.window, proportion, flag, border, data); | |
1881 | else if ( info.sizer ) | |
1882 | self->Insert(before, info.sizer, proportion, flag, border, data); | |
1883 | else if (info.gotSize) | |
1884 | self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), | |
1885 | proportion, flag, border, data); | |
1886 | } | |
1887 | void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ | |
1888 | ||
1889 | wxPyUserData* data = NULL; | |
1890 | bool blocked = wxPyBeginBlockThreads(); | |
b411df4a | 1891 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
1892 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1893 | data = new wxPyUserData(userData); | |
1894 | wxPyEndBlockThreads(blocked); | |
1895 | ||
1896 | // Now call the real Prepend method if a valid item type was found | |
1897 | if ( info.window ) | |
1898 | self->Prepend(info.window, proportion, flag, border, data); | |
1899 | else if ( info.sizer ) | |
1900 | self->Prepend(info.sizer, proportion, flag, border, data); | |
1901 | else if (info.gotSize) | |
1902 | self->Prepend(info.size.GetWidth(), info.size.GetHeight(), | |
1903 | proportion, flag, border, data); | |
1904 | } | |
1905 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
1906 | bool blocked = wxPyBeginBlockThreads(); | |
b411df4a | 1907 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
d55e5bfc RD |
1908 | wxPyEndBlockThreads(blocked); |
1909 | if ( info.window ) | |
1910 | return self->Remove(info.window); | |
1911 | else if ( info.sizer ) | |
1912 | return self->Remove(info.sizer); | |
1913 | else if ( info.gotPos ) | |
1914 | return self->Remove(info.pos); | |
1915 | else | |
b411df4a | 1916 | return false; |
d55e5bfc | 1917 | } |
1a6bba1e RD |
1918 | bool wxSizer_Detach(wxSizer *self,PyObject *item){ |
1919 | bool blocked = wxPyBeginBlockThreads(); | |
b411df4a | 1920 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
1a6bba1e RD |
1921 | wxPyEndBlockThreads(blocked); |
1922 | if ( info.window ) | |
1923 | return self->Detach(info.window); | |
1924 | else if ( info.sizer ) | |
1925 | return self->Detach(info.sizer); | |
1926 | else if ( info.gotPos ) | |
1927 | return self->Detach(info.pos); | |
1928 | else | |
b411df4a | 1929 | return false; |
1a6bba1e | 1930 | } |
d55e5bfc RD |
1931 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
1932 | bool blocked = wxPyBeginBlockThreads(); | |
b411df4a | 1933 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
d55e5bfc RD |
1934 | wxPyEndBlockThreads(blocked); |
1935 | if ( info.window ) | |
1936 | self->SetItemMinSize(info.window, size); | |
1937 | else if ( info.sizer ) | |
1938 | self->SetItemMinSize(info.sizer, size); | |
1939 | else if ( info.gotPos ) | |
1940 | self->SetItemMinSize(info.pos, size); | |
1941 | } | |
1942 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
1943 | wxSizerItemList& list = self->GetChildren(); | |
1944 | return wxPy_ConvertList(&list); | |
1945 | } | |
629e65c2 | 1946 | bool wxSizer_Show(wxSizer *self,PyObject *item,bool show,bool recursive){ |
d6c14a4c | 1947 | bool blocked = wxPyBeginBlockThreads(); |
b411df4a | 1948 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
d6c14a4c | 1949 | wxPyEndBlockThreads(blocked); |
d55e5bfc | 1950 | if ( info.window ) |
629e65c2 | 1951 | return self->Show(info.window, show, recursive); |
d55e5bfc | 1952 | else if ( info.sizer ) |
629e65c2 | 1953 | return self->Show(info.sizer, show, recursive); |
bfddbb17 | 1954 | else if ( info.gotPos ) |
629e65c2 | 1955 | return self->Show(info.pos, show); |
b411df4a RD |
1956 | else |
1957 | return false; | |
d55e5bfc RD |
1958 | } |
1959 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
d6c14a4c | 1960 | bool blocked = wxPyBeginBlockThreads(); |
b411df4a | 1961 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, false); |
d6c14a4c | 1962 | wxPyEndBlockThreads(blocked); |
d55e5bfc RD |
1963 | if ( info.window ) |
1964 | return self->IsShown(info.window); | |
1965 | else if ( info.sizer ) | |
1966 | return self->IsShown(info.sizer); | |
bfddbb17 RD |
1967 | else if ( info.gotPos ) |
1968 | return self->IsShown(info.pos); | |
d55e5bfc | 1969 | else |
b411df4a | 1970 | return false; |
d55e5bfc RD |
1971 | } |
1972 | ||
1973 | // See pyclasses.h | |
1974 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
1975 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
1976 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
1977 | ||
1978 | ||
1979 | ||
1980 | ||
1981 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
1982 | { | |
1983 | if (source == Py_None) { | |
1984 | **obj = wxGBPosition(-1,-1); | |
b411df4a | 1985 | return true; |
d55e5bfc RD |
1986 | } |
1987 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); | |
1988 | } | |
1989 | ||
1990 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
1991 | { | |
1992 | if (source == Py_None) { | |
1993 | **obj = wxGBSpan(-1,-1); | |
b411df4a | 1994 | return true; |
d55e5bfc RD |
1995 | } |
1996 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); | |
1997 | } | |
1998 | ||
1999 | ||
2000 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ | |
2001 | self->SetRow(row); | |
2002 | self->SetCol(col); | |
2003 | } | |
2004 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
2005 | bool blocked = wxPyBeginBlockThreads(); | |
2006 | PyObject* tup = PyTuple_New(2); | |
2007 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
2008 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
2009 | wxPyEndBlockThreads(blocked); | |
2010 | return tup; | |
2011 | } | |
2012 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ | |
2013 | self->SetRowspan(rowspan); | |
2014 | self->SetColspan(colspan); | |
2015 | } | |
2016 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
2017 | bool blocked = wxPyBeginBlockThreads(); | |
2018 | PyObject* tup = PyTuple_New(2); | |
2019 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
2020 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
2021 | wxPyEndBlockThreads(blocked); | |
2022 | return tup; | |
2023 | } | |
bfddbb17 RD |
2024 | wxGBSizerItem *new_wxGBSizerItem(wxWindow *window,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ |
2025 | wxPyUserData* data = NULL; | |
2026 | if ( userData ) { | |
2027 | bool blocked = wxPyBeginBlockThreads(); | |
2028 | data = new wxPyUserData(userData); | |
2029 | wxPyEndBlockThreads(blocked); | |
2030 | } | |
2031 | return new wxGBSizerItem(window, pos, span, flag, border, data); | |
2032 | } | |
2033 | wxGBSizerItem *new_wxGBSizerItem(wxSizer *sizer,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
2034 | wxPyUserData* data = NULL; | |
2035 | if ( userData ) { | |
2036 | bool blocked = wxPyBeginBlockThreads(); | |
2037 | data = new wxPyUserData(userData); | |
2038 | wxPyEndBlockThreads(blocked); | |
2039 | } | |
2040 | return new wxGBSizerItem(sizer, pos, span, flag, border, data); | |
2041 | } | |
2042 | wxGBSizerItem *new_wxGBSizerItem(int width,int height,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
2043 | wxPyUserData* data = NULL; | |
2044 | if ( userData ) { | |
2045 | bool blocked = wxPyBeginBlockThreads(); | |
2046 | data = new wxPyUserData(userData); | |
2047 | wxPyEndBlockThreads(blocked); | |
2048 | } | |
2049 | return new wxGBSizerItem(width, height, pos, span, flag, border, data); | |
2050 | } | |
2051 | wxGBPosition wxGBSizerItem_GetEndPos(wxGBSizerItem *self){ | |
2052 | int row, col; | |
2053 | self->GetEndPos(row, col); | |
2054 | return wxGBPosition(row, col); | |
2055 | } | |
d55e5bfc RD |
2056 | bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ |
2057 | ||
2058 | wxPyUserData* data = NULL; | |
2059 | bool blocked = wxPyBeginBlockThreads(); | |
b411df4a | 2060 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
2061 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
2062 | data = new wxPyUserData(userData); | |
2063 | wxPyEndBlockThreads(blocked); | |
2064 | ||
2065 | // Now call the real Add method if a valid item type was found | |
2066 | if ( info.window ) | |
2067 | return self->Add(info.window, pos, span, flag, border, data); | |
2068 | else if ( info.sizer ) | |
2069 | return self->Add(info.sizer, pos, span, flag, border, data); | |
2070 | else if (info.gotSize) | |
2071 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), | |
2072 | pos, span, flag, border, data); | |
b411df4a | 2073 | return false; |
d55e5bfc RD |
2074 | } |
2075 | ||
2076 | ||
2077 | #ifdef __cplusplus | |
2078 | extern "C" { | |
2079 | #endif | |
c370783e | 2080 | static int _wrap_EmptyString_set(PyObject *) { |
d55e5bfc RD |
2081 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); |
2082 | return 1; | |
2083 | } | |
2084 | ||
2085 | ||
2086 | static PyObject *_wrap_EmptyString_get() { | |
2087 | PyObject *pyobj; | |
2088 | ||
2089 | { | |
2090 | #if wxUSE_UNICODE | |
2091 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
2092 | #else | |
2093 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
2094 | #endif | |
2095 | } | |
2096 | return pyobj; | |
2097 | } | |
2098 | ||
2099 | ||
c370783e | 2100 | static PyObject *_wrap_Object_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2101 | PyObject *resultobj; |
2102 | wxObject *arg1 = (wxObject *) 0 ; | |
2103 | wxString result; | |
2104 | PyObject * obj0 = 0 ; | |
2105 | char *kwnames[] = { | |
2106 | (char *) "self", NULL | |
2107 | }; | |
2108 | ||
2109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
2110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, | |
2111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2112 | { | |
2113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2114 | result = wxObject_GetClassName(arg1); | |
2115 | ||
2116 | wxPyEndAllowThreads(__tstate); | |
2117 | if (PyErr_Occurred()) SWIG_fail; | |
2118 | } | |
2119 | { | |
2120 | #if wxUSE_UNICODE | |
2121 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2122 | #else | |
2123 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2124 | #endif | |
2125 | } | |
2126 | return resultobj; | |
2127 | fail: | |
2128 | return NULL; | |
2129 | } | |
2130 | ||
2131 | ||
c370783e | 2132 | static PyObject *_wrap_Object_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2133 | PyObject *resultobj; |
2134 | wxObject *arg1 = (wxObject *) 0 ; | |
2135 | PyObject * obj0 = 0 ; | |
2136 | char *kwnames[] = { | |
2137 | (char *) "self", NULL | |
2138 | }; | |
2139 | ||
2140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
2141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, | |
2142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2143 | { | |
2144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2145 | wxObject_Destroy(arg1); | |
2146 | ||
2147 | wxPyEndAllowThreads(__tstate); | |
2148 | if (PyErr_Occurred()) SWIG_fail; | |
2149 | } | |
2150 | Py_INCREF(Py_None); resultobj = Py_None; | |
2151 | return resultobj; | |
2152 | fail: | |
2153 | return NULL; | |
2154 | } | |
2155 | ||
2156 | ||
c370783e | 2157 | static PyObject * Object_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2158 | PyObject *obj; |
2159 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2160 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
2161 | Py_INCREF(obj); | |
2162 | return Py_BuildValue((char *)""); | |
2163 | } | |
c370783e | 2164 | static PyObject *_wrap_Size_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2165 | PyObject *resultobj; |
2166 | wxSize *arg1 = (wxSize *) 0 ; | |
2167 | int arg2 ; | |
2168 | PyObject * obj0 = 0 ; | |
2169 | PyObject * obj1 = 0 ; | |
2170 | char *kwnames[] = { | |
2171 | (char *) "self",(char *) "x", NULL | |
2172 | }; | |
2173 | ||
2174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; | |
2175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2177 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2178 | if (PyErr_Occurred()) SWIG_fail; |
2179 | if (arg1) (arg1)->x = arg2; | |
2180 | ||
2181 | Py_INCREF(Py_None); resultobj = Py_None; | |
2182 | return resultobj; | |
2183 | fail: | |
2184 | return NULL; | |
2185 | } | |
2186 | ||
2187 | ||
c370783e | 2188 | static PyObject *_wrap_Size_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2189 | PyObject *resultobj; |
2190 | wxSize *arg1 = (wxSize *) 0 ; | |
2191 | int result; | |
2192 | PyObject * obj0 = 0 ; | |
2193 | char *kwnames[] = { | |
2194 | (char *) "self", NULL | |
2195 | }; | |
2196 | ||
2197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
2198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2200 | result = (int) ((arg1)->x); | |
2201 | ||
c370783e | 2202 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2203 | return resultobj; |
2204 | fail: | |
2205 | return NULL; | |
2206 | } | |
2207 | ||
2208 | ||
c370783e | 2209 | static PyObject *_wrap_Size_height_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2210 | PyObject *resultobj; |
2211 | wxSize *arg1 = (wxSize *) 0 ; | |
2212 | int arg2 ; | |
2213 | PyObject * obj0 = 0 ; | |
2214 | PyObject * obj1 = 0 ; | |
2215 | char *kwnames[] = { | |
2216 | (char *) "self",(char *) "y", NULL | |
2217 | }; | |
2218 | ||
2219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; | |
2220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2222 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2223 | if (PyErr_Occurred()) SWIG_fail; |
2224 | if (arg1) (arg1)->y = arg2; | |
2225 | ||
2226 | Py_INCREF(Py_None); resultobj = Py_None; | |
2227 | return resultobj; | |
2228 | fail: | |
2229 | return NULL; | |
2230 | } | |
2231 | ||
2232 | ||
c370783e | 2233 | static PyObject *_wrap_Size_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2234 | PyObject *resultobj; |
2235 | wxSize *arg1 = (wxSize *) 0 ; | |
2236 | int result; | |
2237 | PyObject * obj0 = 0 ; | |
2238 | char *kwnames[] = { | |
2239 | (char *) "self", NULL | |
2240 | }; | |
2241 | ||
2242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
2243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2245 | result = (int) ((arg1)->y); | |
2246 | ||
c370783e | 2247 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2248 | return resultobj; |
2249 | fail: | |
2250 | return NULL; | |
2251 | } | |
2252 | ||
2253 | ||
c370783e | 2254 | static PyObject *_wrap_new_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2255 | PyObject *resultobj; |
2256 | int arg1 = (int) 0 ; | |
2257 | int arg2 = (int) 0 ; | |
2258 | wxSize *result; | |
2259 | PyObject * obj0 = 0 ; | |
2260 | PyObject * obj1 = 0 ; | |
2261 | char *kwnames[] = { | |
2262 | (char *) "w",(char *) "h", NULL | |
2263 | }; | |
2264 | ||
2265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; | |
2266 | if (obj0) { | |
c370783e | 2267 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
2268 | if (PyErr_Occurred()) SWIG_fail; |
2269 | } | |
2270 | if (obj1) { | |
c370783e | 2271 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2272 | if (PyErr_Occurred()) SWIG_fail; |
2273 | } | |
2274 | { | |
2275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2276 | result = (wxSize *)new wxSize(arg1,arg2); | |
2277 | ||
2278 | wxPyEndAllowThreads(__tstate); | |
2279 | if (PyErr_Occurred()) SWIG_fail; | |
2280 | } | |
2281 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); | |
2282 | return resultobj; | |
2283 | fail: | |
2284 | return NULL; | |
2285 | } | |
2286 | ||
2287 | ||
c370783e | 2288 | static PyObject *_wrap_delete_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2289 | PyObject *resultobj; |
2290 | wxSize *arg1 = (wxSize *) 0 ; | |
2291 | PyObject * obj0 = 0 ; | |
2292 | char *kwnames[] = { | |
2293 | (char *) "self", NULL | |
2294 | }; | |
2295 | ||
2296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
2297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2299 | { | |
2300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2301 | delete arg1; | |
2302 | ||
2303 | wxPyEndAllowThreads(__tstate); | |
2304 | if (PyErr_Occurred()) SWIG_fail; | |
2305 | } | |
2306 | Py_INCREF(Py_None); resultobj = Py_None; | |
2307 | return resultobj; | |
2308 | fail: | |
2309 | return NULL; | |
2310 | } | |
2311 | ||
2312 | ||
c370783e | 2313 | static PyObject *_wrap_Size___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2314 | PyObject *resultobj; |
2315 | wxSize *arg1 = (wxSize *) 0 ; | |
2316 | wxSize *arg2 = 0 ; | |
2317 | bool result; | |
2318 | wxSize temp2 ; | |
2319 | PyObject * obj0 = 0 ; | |
2320 | PyObject * obj1 = 0 ; | |
2321 | char *kwnames[] = { | |
2322 | (char *) "self",(char *) "sz", NULL | |
2323 | }; | |
2324 | ||
2325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2328 | { | |
2329 | arg2 = &temp2; | |
2330 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2331 | } | |
2332 | { | |
2333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2334 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); | |
2335 | ||
2336 | wxPyEndAllowThreads(__tstate); | |
2337 | if (PyErr_Occurred()) SWIG_fail; | |
2338 | } | |
2339 | { | |
2340 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2341 | } | |
2342 | return resultobj; | |
2343 | fail: | |
2344 | return NULL; | |
2345 | } | |
2346 | ||
2347 | ||
c370783e | 2348 | static PyObject *_wrap_Size___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2349 | PyObject *resultobj; |
2350 | wxSize *arg1 = (wxSize *) 0 ; | |
2351 | wxSize *arg2 = 0 ; | |
2352 | bool result; | |
2353 | wxSize temp2 ; | |
2354 | PyObject * obj0 = 0 ; | |
2355 | PyObject * obj1 = 0 ; | |
2356 | char *kwnames[] = { | |
2357 | (char *) "self",(char *) "sz", NULL | |
2358 | }; | |
2359 | ||
2360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2363 | { | |
2364 | arg2 = &temp2; | |
2365 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2366 | } | |
2367 | { | |
2368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2369 | result = (bool)(arg1)->operator !=((wxSize const &)*arg2); | |
2370 | ||
2371 | wxPyEndAllowThreads(__tstate); | |
2372 | if (PyErr_Occurred()) SWIG_fail; | |
2373 | } | |
2374 | { | |
2375 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2376 | } | |
2377 | return resultobj; | |
2378 | fail: | |
2379 | return NULL; | |
2380 | } | |
2381 | ||
2382 | ||
c370783e | 2383 | static PyObject *_wrap_Size___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2384 | PyObject *resultobj; |
2385 | wxSize *arg1 = (wxSize *) 0 ; | |
2386 | wxSize *arg2 = 0 ; | |
2387 | wxSize result; | |
2388 | wxSize temp2 ; | |
2389 | PyObject * obj0 = 0 ; | |
2390 | PyObject * obj1 = 0 ; | |
2391 | char *kwnames[] = { | |
2392 | (char *) "self",(char *) "sz", NULL | |
2393 | }; | |
2394 | ||
2395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
2396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2398 | { | |
2399 | arg2 = &temp2; | |
2400 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2401 | } | |
2402 | { | |
2403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2404 | result = (arg1)->operator +((wxSize const &)*arg2); | |
2405 | ||
2406 | wxPyEndAllowThreads(__tstate); | |
2407 | if (PyErr_Occurred()) SWIG_fail; | |
2408 | } | |
2409 | { | |
2410 | wxSize * resultptr; | |
2411 | resultptr = new wxSize((wxSize &) result); | |
2412 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2413 | } | |
2414 | return resultobj; | |
2415 | fail: | |
2416 | return NULL; | |
2417 | } | |
2418 | ||
2419 | ||
c370783e | 2420 | static PyObject *_wrap_Size___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2421 | PyObject *resultobj; |
2422 | wxSize *arg1 = (wxSize *) 0 ; | |
2423 | wxSize *arg2 = 0 ; | |
2424 | wxSize result; | |
2425 | wxSize temp2 ; | |
2426 | PyObject * obj0 = 0 ; | |
2427 | PyObject * obj1 = 0 ; | |
2428 | char *kwnames[] = { | |
2429 | (char *) "self",(char *) "sz", NULL | |
2430 | }; | |
2431 | ||
2432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2435 | { | |
2436 | arg2 = &temp2; | |
2437 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2438 | } | |
2439 | { | |
2440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2441 | result = (arg1)->operator -((wxSize const &)*arg2); | |
2442 | ||
2443 | wxPyEndAllowThreads(__tstate); | |
2444 | if (PyErr_Occurred()) SWIG_fail; | |
2445 | } | |
2446 | { | |
2447 | wxSize * resultptr; | |
2448 | resultptr = new wxSize((wxSize &) result); | |
2449 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2450 | } | |
2451 | return resultobj; | |
2452 | fail: | |
2453 | return NULL; | |
2454 | } | |
2455 | ||
2456 | ||
c370783e | 2457 | static PyObject *_wrap_Size_IncTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2458 | PyObject *resultobj; |
2459 | wxSize *arg1 = (wxSize *) 0 ; | |
2460 | wxSize *arg2 = 0 ; | |
2461 | wxSize temp2 ; | |
2462 | PyObject * obj0 = 0 ; | |
2463 | PyObject * obj1 = 0 ; | |
2464 | char *kwnames[] = { | |
2465 | (char *) "self",(char *) "sz", NULL | |
2466 | }; | |
2467 | ||
2468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
2469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2471 | { | |
2472 | arg2 = &temp2; | |
2473 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2474 | } | |
2475 | { | |
2476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2477 | (arg1)->IncTo((wxSize const &)*arg2); | |
2478 | ||
2479 | wxPyEndAllowThreads(__tstate); | |
2480 | if (PyErr_Occurred()) SWIG_fail; | |
2481 | } | |
2482 | Py_INCREF(Py_None); resultobj = Py_None; | |
2483 | return resultobj; | |
2484 | fail: | |
2485 | return NULL; | |
2486 | } | |
2487 | ||
2488 | ||
c370783e | 2489 | static PyObject *_wrap_Size_DecTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2490 | PyObject *resultobj; |
2491 | wxSize *arg1 = (wxSize *) 0 ; | |
2492 | wxSize *arg2 = 0 ; | |
2493 | wxSize temp2 ; | |
2494 | PyObject * obj0 = 0 ; | |
2495 | PyObject * obj1 = 0 ; | |
2496 | char *kwnames[] = { | |
2497 | (char *) "self",(char *) "sz", NULL | |
2498 | }; | |
2499 | ||
2500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
2501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2503 | { | |
2504 | arg2 = &temp2; | |
2505 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2506 | } | |
2507 | { | |
2508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2509 | (arg1)->DecTo((wxSize const &)*arg2); | |
2510 | ||
2511 | wxPyEndAllowThreads(__tstate); | |
2512 | if (PyErr_Occurred()) SWIG_fail; | |
2513 | } | |
2514 | Py_INCREF(Py_None); resultobj = Py_None; | |
2515 | return resultobj; | |
2516 | fail: | |
2517 | return NULL; | |
2518 | } | |
2519 | ||
2520 | ||
c370783e | 2521 | static PyObject *_wrap_Size_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2522 | PyObject *resultobj; |
2523 | wxSize *arg1 = (wxSize *) 0 ; | |
2524 | int arg2 ; | |
2525 | int arg3 ; | |
2526 | PyObject * obj0 = 0 ; | |
2527 | PyObject * obj1 = 0 ; | |
2528 | PyObject * obj2 = 0 ; | |
2529 | char *kwnames[] = { | |
2530 | (char *) "self",(char *) "w",(char *) "h", NULL | |
2531 | }; | |
2532 | ||
2533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2536 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 2537 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 2538 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
2539 | if (PyErr_Occurred()) SWIG_fail; |
2540 | { | |
2541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2542 | (arg1)->Set(arg2,arg3); | |
2543 | ||
2544 | wxPyEndAllowThreads(__tstate); | |
2545 | if (PyErr_Occurred()) SWIG_fail; | |
2546 | } | |
2547 | Py_INCREF(Py_None); resultobj = Py_None; | |
2548 | return resultobj; | |
2549 | fail: | |
2550 | return NULL; | |
2551 | } | |
2552 | ||
2553 | ||
c370783e | 2554 | static PyObject *_wrap_Size_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2555 | PyObject *resultobj; |
2556 | wxSize *arg1 = (wxSize *) 0 ; | |
2557 | int arg2 ; | |
2558 | PyObject * obj0 = 0 ; | |
2559 | PyObject * obj1 = 0 ; | |
2560 | char *kwnames[] = { | |
2561 | (char *) "self",(char *) "w", NULL | |
2562 | }; | |
2563 | ||
2564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
2565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2567 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2568 | if (PyErr_Occurred()) SWIG_fail; |
2569 | { | |
2570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2571 | (arg1)->SetWidth(arg2); | |
2572 | ||
2573 | wxPyEndAllowThreads(__tstate); | |
2574 | if (PyErr_Occurred()) SWIG_fail; | |
2575 | } | |
2576 | Py_INCREF(Py_None); resultobj = Py_None; | |
2577 | return resultobj; | |
2578 | fail: | |
2579 | return NULL; | |
2580 | } | |
2581 | ||
2582 | ||
c370783e | 2583 | static PyObject *_wrap_Size_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2584 | PyObject *resultobj; |
2585 | wxSize *arg1 = (wxSize *) 0 ; | |
2586 | int arg2 ; | |
2587 | PyObject * obj0 = 0 ; | |
2588 | PyObject * obj1 = 0 ; | |
2589 | char *kwnames[] = { | |
2590 | (char *) "self",(char *) "h", NULL | |
2591 | }; | |
2592 | ||
2593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
2594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2596 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2597 | if (PyErr_Occurred()) SWIG_fail; |
2598 | { | |
2599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2600 | (arg1)->SetHeight(arg2); | |
2601 | ||
2602 | wxPyEndAllowThreads(__tstate); | |
2603 | if (PyErr_Occurred()) SWIG_fail; | |
2604 | } | |
2605 | Py_INCREF(Py_None); resultobj = Py_None; | |
2606 | return resultobj; | |
2607 | fail: | |
2608 | return NULL; | |
2609 | } | |
2610 | ||
2611 | ||
c370783e | 2612 | static PyObject *_wrap_Size_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2613 | PyObject *resultobj; |
2614 | wxSize *arg1 = (wxSize *) 0 ; | |
2615 | int result; | |
2616 | PyObject * obj0 = 0 ; | |
2617 | char *kwnames[] = { | |
2618 | (char *) "self", NULL | |
2619 | }; | |
2620 | ||
2621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
2622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2624 | { | |
2625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2626 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
2627 | ||
2628 | wxPyEndAllowThreads(__tstate); | |
2629 | if (PyErr_Occurred()) SWIG_fail; | |
2630 | } | |
c370783e | 2631 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2632 | return resultobj; |
2633 | fail: | |
2634 | return NULL; | |
2635 | } | |
2636 | ||
2637 | ||
c370783e | 2638 | static PyObject *_wrap_Size_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2639 | PyObject *resultobj; |
2640 | wxSize *arg1 = (wxSize *) 0 ; | |
2641 | int result; | |
2642 | PyObject * obj0 = 0 ; | |
2643 | char *kwnames[] = { | |
2644 | (char *) "self", NULL | |
2645 | }; | |
2646 | ||
2647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
2648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2650 | { | |
2651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2652 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2653 | ||
2654 | wxPyEndAllowThreads(__tstate); | |
2655 | if (PyErr_Occurred()) SWIG_fail; | |
2656 | } | |
c370783e | 2657 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2658 | return resultobj; |
2659 | fail: | |
2660 | return NULL; | |
2661 | } | |
2662 | ||
2663 | ||
c370783e | 2664 | static PyObject *_wrap_Size_IsFullySpecified(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2665 | PyObject *resultobj; |
2666 | wxSize *arg1 = (wxSize *) 0 ; | |
2667 | bool result; | |
2668 | PyObject * obj0 = 0 ; | |
2669 | char *kwnames[] = { | |
2670 | (char *) "self", NULL | |
2671 | }; | |
2672 | ||
2673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail; | |
2674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2676 | { | |
2677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2678 | result = (bool)((wxSize const *)arg1)->IsFullySpecified(); | |
2679 | ||
2680 | wxPyEndAllowThreads(__tstate); | |
2681 | if (PyErr_Occurred()) SWIG_fail; | |
2682 | } | |
2683 | { | |
2684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2685 | } | |
2686 | return resultobj; | |
2687 | fail: | |
2688 | return NULL; | |
2689 | } | |
2690 | ||
2691 | ||
c370783e | 2692 | static PyObject *_wrap_Size_SetDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2693 | PyObject *resultobj; |
2694 | wxSize *arg1 = (wxSize *) 0 ; | |
2695 | wxSize *arg2 = 0 ; | |
2696 | wxSize temp2 ; | |
2697 | PyObject * obj0 = 0 ; | |
2698 | PyObject * obj1 = 0 ; | |
2699 | char *kwnames[] = { | |
2700 | (char *) "self",(char *) "size", NULL | |
2701 | }; | |
2702 | ||
2703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail; | |
2704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2706 | { | |
2707 | arg2 = &temp2; | |
2708 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2709 | } | |
2710 | { | |
2711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2712 | (arg1)->SetDefaults((wxSize const &)*arg2); | |
2713 | ||
2714 | wxPyEndAllowThreads(__tstate); | |
2715 | if (PyErr_Occurred()) SWIG_fail; | |
2716 | } | |
2717 | Py_INCREF(Py_None); resultobj = Py_None; | |
2718 | return resultobj; | |
2719 | fail: | |
2720 | return NULL; | |
2721 | } | |
2722 | ||
2723 | ||
c370783e | 2724 | static PyObject *_wrap_Size_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2725 | PyObject *resultobj; |
2726 | wxSize *arg1 = (wxSize *) 0 ; | |
2727 | PyObject *result; | |
2728 | PyObject * obj0 = 0 ; | |
2729 | char *kwnames[] = { | |
2730 | (char *) "self", NULL | |
2731 | }; | |
2732 | ||
2733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; | |
2734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2736 | { | |
2737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2738 | result = (PyObject *)wxSize_Get(arg1); | |
2739 | ||
2740 | wxPyEndAllowThreads(__tstate); | |
2741 | if (PyErr_Occurred()) SWIG_fail; | |
2742 | } | |
2743 | resultobj = result; | |
2744 | return resultobj; | |
2745 | fail: | |
2746 | return NULL; | |
2747 | } | |
2748 | ||
2749 | ||
c370783e | 2750 | static PyObject * Size_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2751 | PyObject *obj; |
2752 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2753 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2754 | Py_INCREF(obj); | |
2755 | return Py_BuildValue((char *)""); | |
2756 | } | |
c370783e | 2757 | static PyObject *_wrap_RealPoint_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2758 | PyObject *resultobj; |
2759 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2760 | double arg2 ; | |
2761 | PyObject * obj0 = 0 ; | |
2762 | PyObject * obj1 = 0 ; | |
2763 | char *kwnames[] = { | |
2764 | (char *) "self",(char *) "x", NULL | |
2765 | }; | |
2766 | ||
2767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; | |
2768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2770 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
2771 | if (PyErr_Occurred()) SWIG_fail; |
2772 | if (arg1) (arg1)->x = arg2; | |
2773 | ||
2774 | Py_INCREF(Py_None); resultobj = Py_None; | |
2775 | return resultobj; | |
2776 | fail: | |
2777 | return NULL; | |
2778 | } | |
2779 | ||
2780 | ||
c370783e | 2781 | static PyObject *_wrap_RealPoint_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2782 | PyObject *resultobj; |
2783 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2784 | double result; | |
2785 | PyObject * obj0 = 0 ; | |
2786 | char *kwnames[] = { | |
2787 | (char *) "self", NULL | |
2788 | }; | |
2789 | ||
2790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
2791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2793 | result = (double) ((arg1)->x); | |
2794 | ||
c370783e | 2795 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
2796 | return resultobj; |
2797 | fail: | |
2798 | return NULL; | |
2799 | } | |
2800 | ||
2801 | ||
c370783e | 2802 | static PyObject *_wrap_RealPoint_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2803 | PyObject *resultobj; |
2804 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2805 | double arg2 ; | |
2806 | PyObject * obj0 = 0 ; | |
2807 | PyObject * obj1 = 0 ; | |
2808 | char *kwnames[] = { | |
2809 | (char *) "self",(char *) "y", NULL | |
2810 | }; | |
2811 | ||
2812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; | |
2813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2815 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
2816 | if (PyErr_Occurred()) SWIG_fail; |
2817 | if (arg1) (arg1)->y = arg2; | |
2818 | ||
2819 | Py_INCREF(Py_None); resultobj = Py_None; | |
2820 | return resultobj; | |
2821 | fail: | |
2822 | return NULL; | |
2823 | } | |
2824 | ||
2825 | ||
c370783e | 2826 | static PyObject *_wrap_RealPoint_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2827 | PyObject *resultobj; |
2828 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2829 | double result; | |
2830 | PyObject * obj0 = 0 ; | |
2831 | char *kwnames[] = { | |
2832 | (char *) "self", NULL | |
2833 | }; | |
2834 | ||
2835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
2836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2838 | result = (double) ((arg1)->y); | |
2839 | ||
c370783e | 2840 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
2841 | return resultobj; |
2842 | fail: | |
2843 | return NULL; | |
2844 | } | |
2845 | ||
2846 | ||
c370783e | 2847 | static PyObject *_wrap_new_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2848 | PyObject *resultobj; |
2849 | double arg1 = (double) 0.0 ; | |
2850 | double arg2 = (double) 0.0 ; | |
2851 | wxRealPoint *result; | |
2852 | PyObject * obj0 = 0 ; | |
2853 | PyObject * obj1 = 0 ; | |
2854 | char *kwnames[] = { | |
2855 | (char *) "x",(char *) "y", NULL | |
2856 | }; | |
2857 | ||
2858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; | |
2859 | if (obj0) { | |
c370783e | 2860 | arg1 = (double)SWIG_As_double(obj0); |
d55e5bfc RD |
2861 | if (PyErr_Occurred()) SWIG_fail; |
2862 | } | |
2863 | if (obj1) { | |
c370783e | 2864 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
2865 | if (PyErr_Occurred()) SWIG_fail; |
2866 | } | |
2867 | { | |
2868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2869 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2870 | ||
2871 | wxPyEndAllowThreads(__tstate); | |
2872 | if (PyErr_Occurred()) SWIG_fail; | |
2873 | } | |
2874 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); | |
2875 | return resultobj; | |
2876 | fail: | |
2877 | return NULL; | |
2878 | } | |
2879 | ||
2880 | ||
c370783e | 2881 | static PyObject *_wrap_delete_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2882 | PyObject *resultobj; |
2883 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2884 | PyObject * obj0 = 0 ; | |
2885 | char *kwnames[] = { | |
2886 | (char *) "self", NULL | |
2887 | }; | |
2888 | ||
2889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
2890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2892 | { | |
2893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2894 | delete arg1; | |
2895 | ||
2896 | wxPyEndAllowThreads(__tstate); | |
2897 | if (PyErr_Occurred()) SWIG_fail; | |
2898 | } | |
2899 | Py_INCREF(Py_None); resultobj = Py_None; | |
2900 | return resultobj; | |
2901 | fail: | |
2902 | return NULL; | |
2903 | } | |
2904 | ||
2905 | ||
c370783e | 2906 | static PyObject *_wrap_RealPoint___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2907 | PyObject *resultobj; |
2908 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2909 | wxRealPoint *arg2 = 0 ; | |
2910 | bool result; | |
2911 | wxRealPoint temp2 ; | |
2912 | PyObject * obj0 = 0 ; | |
2913 | PyObject * obj1 = 0 ; | |
2914 | char *kwnames[] = { | |
2915 | (char *) "self",(char *) "pt", NULL | |
2916 | }; | |
2917 | ||
2918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2921 | { | |
2922 | arg2 = &temp2; | |
2923 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2924 | } | |
2925 | { | |
2926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2927 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); | |
2928 | ||
2929 | wxPyEndAllowThreads(__tstate); | |
2930 | if (PyErr_Occurred()) SWIG_fail; | |
2931 | } | |
2932 | { | |
2933 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2934 | } | |
2935 | return resultobj; | |
2936 | fail: | |
2937 | return NULL; | |
2938 | } | |
2939 | ||
2940 | ||
c370783e | 2941 | static PyObject *_wrap_RealPoint___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2942 | PyObject *resultobj; |
2943 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2944 | wxRealPoint *arg2 = 0 ; | |
2945 | bool result; | |
2946 | wxRealPoint temp2 ; | |
2947 | PyObject * obj0 = 0 ; | |
2948 | PyObject * obj1 = 0 ; | |
2949 | char *kwnames[] = { | |
2950 | (char *) "self",(char *) "pt", NULL | |
2951 | }; | |
2952 | ||
2953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2956 | { | |
2957 | arg2 = &temp2; | |
2958 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2959 | } | |
2960 | { | |
2961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2962 | result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); | |
2963 | ||
2964 | wxPyEndAllowThreads(__tstate); | |
2965 | if (PyErr_Occurred()) SWIG_fail; | |
2966 | } | |
2967 | { | |
2968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2969 | } | |
2970 | return resultobj; | |
2971 | fail: | |
2972 | return NULL; | |
2973 | } | |
2974 | ||
2975 | ||
c370783e | 2976 | static PyObject *_wrap_RealPoint___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2977 | PyObject *resultobj; |
2978 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2979 | wxRealPoint *arg2 = 0 ; | |
2980 | wxRealPoint result; | |
2981 | wxRealPoint temp2 ; | |
2982 | PyObject * obj0 = 0 ; | |
2983 | PyObject * obj1 = 0 ; | |
2984 | char *kwnames[] = { | |
2985 | (char *) "self",(char *) "pt", NULL | |
2986 | }; | |
2987 | ||
2988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; | |
2989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2991 | { | |
2992 | arg2 = &temp2; | |
2993 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2994 | } | |
2995 | { | |
2996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2997 | result = (arg1)->operator +((wxRealPoint const &)*arg2); | |
2998 | ||
2999 | wxPyEndAllowThreads(__tstate); | |
3000 | if (PyErr_Occurred()) SWIG_fail; | |
3001 | } | |
3002 | { | |
3003 | wxRealPoint * resultptr; | |
3004 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
3005 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); | |
3006 | } | |
3007 | return resultobj; | |
3008 | fail: | |
3009 | return NULL; | |
3010 | } | |
3011 | ||
3012 | ||
c370783e | 3013 | static PyObject *_wrap_RealPoint___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3014 | PyObject *resultobj; |
3015 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3016 | wxRealPoint *arg2 = 0 ; | |
3017 | wxRealPoint result; | |
3018 | wxRealPoint temp2 ; | |
3019 | PyObject * obj0 = 0 ; | |
3020 | PyObject * obj1 = 0 ; | |
3021 | char *kwnames[] = { | |
3022 | (char *) "self",(char *) "pt", NULL | |
3023 | }; | |
3024 | ||
3025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; | |
3026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3028 | { | |
3029 | arg2 = &temp2; | |
3030 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
3031 | } | |
3032 | { | |
3033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3034 | result = (arg1)->operator -((wxRealPoint const &)*arg2); | |
3035 | ||
3036 | wxPyEndAllowThreads(__tstate); | |
3037 | if (PyErr_Occurred()) SWIG_fail; | |
3038 | } | |
3039 | { | |
3040 | wxRealPoint * resultptr; | |
3041 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
3042 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); | |
3043 | } | |
3044 | return resultobj; | |
3045 | fail: | |
3046 | return NULL; | |
3047 | } | |
3048 | ||
3049 | ||
c370783e | 3050 | static PyObject *_wrap_RealPoint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3051 | PyObject *resultobj; |
3052 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3053 | double arg2 ; | |
3054 | double arg3 ; | |
3055 | PyObject * obj0 = 0 ; | |
3056 | PyObject * obj1 = 0 ; | |
3057 | PyObject * obj2 = 0 ; | |
3058 | char *kwnames[] = { | |
3059 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3060 | }; | |
3061 | ||
3062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3065 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc | 3066 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3067 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
3068 | if (PyErr_Occurred()) SWIG_fail; |
3069 | { | |
3070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3071 | wxRealPoint_Set(arg1,arg2,arg3); | |
3072 | ||
3073 | wxPyEndAllowThreads(__tstate); | |
3074 | if (PyErr_Occurred()) SWIG_fail; | |
3075 | } | |
3076 | Py_INCREF(Py_None); resultobj = Py_None; | |
3077 | return resultobj; | |
3078 | fail: | |
3079 | return NULL; | |
3080 | } | |
3081 | ||
3082 | ||
c370783e | 3083 | static PyObject *_wrap_RealPoint_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3084 | PyObject *resultobj; |
3085 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3086 | PyObject *result; | |
3087 | PyObject * obj0 = 0 ; | |
3088 | char *kwnames[] = { | |
3089 | (char *) "self", NULL | |
3090 | }; | |
3091 | ||
3092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; | |
3093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3095 | { | |
3096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3097 | result = (PyObject *)wxRealPoint_Get(arg1); | |
3098 | ||
3099 | wxPyEndAllowThreads(__tstate); | |
3100 | if (PyErr_Occurred()) SWIG_fail; | |
3101 | } | |
3102 | resultobj = result; | |
3103 | return resultobj; | |
3104 | fail: | |
3105 | return NULL; | |
3106 | } | |
3107 | ||
3108 | ||
c370783e | 3109 | static PyObject * RealPoint_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3110 | PyObject *obj; |
3111 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3112 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
3113 | Py_INCREF(obj); | |
3114 | return Py_BuildValue((char *)""); | |
3115 | } | |
c370783e | 3116 | static PyObject *_wrap_Point_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3117 | PyObject *resultobj; |
3118 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3119 | int arg2 ; | |
3120 | PyObject * obj0 = 0 ; | |
3121 | PyObject * obj1 = 0 ; | |
3122 | char *kwnames[] = { | |
3123 | (char *) "self",(char *) "x", NULL | |
3124 | }; | |
3125 | ||
3126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; | |
3127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3129 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3130 | if (PyErr_Occurred()) SWIG_fail; |
3131 | if (arg1) (arg1)->x = arg2; | |
3132 | ||
3133 | Py_INCREF(Py_None); resultobj = Py_None; | |
3134 | return resultobj; | |
3135 | fail: | |
3136 | return NULL; | |
3137 | } | |
3138 | ||
3139 | ||
c370783e | 3140 | static PyObject *_wrap_Point_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3141 | PyObject *resultobj; |
3142 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3143 | int result; | |
3144 | PyObject * obj0 = 0 ; | |
3145 | char *kwnames[] = { | |
3146 | (char *) "self", NULL | |
3147 | }; | |
3148 | ||
3149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
3150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3152 | result = (int) ((arg1)->x); | |
3153 | ||
c370783e | 3154 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3155 | return resultobj; |
3156 | fail: | |
3157 | return NULL; | |
3158 | } | |
3159 | ||
3160 | ||
c370783e | 3161 | static PyObject *_wrap_Point_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3162 | PyObject *resultobj; |
3163 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3164 | int arg2 ; | |
3165 | PyObject * obj0 = 0 ; | |
3166 | PyObject * obj1 = 0 ; | |
3167 | char *kwnames[] = { | |
3168 | (char *) "self",(char *) "y", NULL | |
3169 | }; | |
3170 | ||
3171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; | |
3172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3174 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3175 | if (PyErr_Occurred()) SWIG_fail; |
3176 | if (arg1) (arg1)->y = arg2; | |
3177 | ||
3178 | Py_INCREF(Py_None); resultobj = Py_None; | |
3179 | return resultobj; | |
3180 | fail: | |
3181 | return NULL; | |
3182 | } | |
3183 | ||
3184 | ||
c370783e | 3185 | static PyObject *_wrap_Point_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3186 | PyObject *resultobj; |
3187 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3188 | int result; | |
3189 | PyObject * obj0 = 0 ; | |
3190 | char *kwnames[] = { | |
3191 | (char *) "self", NULL | |
3192 | }; | |
3193 | ||
3194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
3195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3197 | result = (int) ((arg1)->y); | |
3198 | ||
c370783e | 3199 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3200 | return resultobj; |
3201 | fail: | |
3202 | return NULL; | |
3203 | } | |
3204 | ||
3205 | ||
c370783e | 3206 | static PyObject *_wrap_new_Point(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3207 | PyObject *resultobj; |
3208 | int arg1 = (int) 0 ; | |
3209 | int arg2 = (int) 0 ; | |
3210 | wxPoint *result; | |
3211 | PyObject * obj0 = 0 ; | |
3212 | PyObject * obj1 = 0 ; | |
3213 | char *kwnames[] = { | |
3214 | (char *) "x",(char *) "y", NULL | |
3215 | }; | |
3216 | ||
3217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; | |
3218 | if (obj0) { | |
c370783e | 3219 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
3220 | if (PyErr_Occurred()) SWIG_fail; |
3221 | } | |
3222 | if (obj1) { | |
c370783e | 3223 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3224 | if (PyErr_Occurred()) SWIG_fail; |
3225 | } | |
3226 | { | |
3227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3228 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
3229 | ||
3230 | wxPyEndAllowThreads(__tstate); | |
3231 | if (PyErr_Occurred()) SWIG_fail; | |
3232 | } | |
3233 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); | |
3234 | return resultobj; | |
3235 | fail: | |
3236 | return NULL; | |
3237 | } | |
3238 | ||
3239 | ||
c370783e | 3240 | static PyObject *_wrap_delete_Point(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3241 | PyObject *resultobj; |
3242 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3243 | PyObject * obj0 = 0 ; | |
3244 | char *kwnames[] = { | |
3245 | (char *) "self", NULL | |
3246 | }; | |
3247 | ||
3248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
3249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3251 | { | |
3252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3253 | delete arg1; | |
3254 | ||
3255 | wxPyEndAllowThreads(__tstate); | |
3256 | if (PyErr_Occurred()) SWIG_fail; | |
3257 | } | |
3258 | Py_INCREF(Py_None); resultobj = Py_None; | |
3259 | return resultobj; | |
3260 | fail: | |
3261 | return NULL; | |
3262 | } | |
3263 | ||
3264 | ||
c370783e | 3265 | static PyObject *_wrap_Point___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3266 | PyObject *resultobj; |
3267 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3268 | wxPoint *arg2 = 0 ; | |
3269 | bool result; | |
3270 | wxPoint temp2 ; | |
3271 | PyObject * obj0 = 0 ; | |
3272 | PyObject * obj1 = 0 ; | |
3273 | char *kwnames[] = { | |
3274 | (char *) "self",(char *) "pt", NULL | |
3275 | }; | |
3276 | ||
3277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3280 | { | |
3281 | arg2 = &temp2; | |
3282 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3283 | } | |
3284 | { | |
3285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3286 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); | |
3287 | ||
3288 | wxPyEndAllowThreads(__tstate); | |
3289 | if (PyErr_Occurred()) SWIG_fail; | |
3290 | } | |
3291 | { | |
3292 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3293 | } | |
3294 | return resultobj; | |
3295 | fail: | |
3296 | return NULL; | |
3297 | } | |
3298 | ||
3299 | ||
c370783e | 3300 | static PyObject *_wrap_Point___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3301 | PyObject *resultobj; |
3302 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3303 | wxPoint *arg2 = 0 ; | |
3304 | bool result; | |
3305 | wxPoint temp2 ; | |
3306 | PyObject * obj0 = 0 ; | |
3307 | PyObject * obj1 = 0 ; | |
3308 | char *kwnames[] = { | |
3309 | (char *) "self",(char *) "pt", NULL | |
3310 | }; | |
3311 | ||
3312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail; | |
3313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3315 | { | |
3316 | arg2 = &temp2; | |
3317 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3318 | } | |
3319 | { | |
3320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3321 | result = (bool)(arg1)->operator !=((wxPoint const &)*arg2); | |
3322 | ||
3323 | wxPyEndAllowThreads(__tstate); | |
3324 | if (PyErr_Occurred()) SWIG_fail; | |
3325 | } | |
3326 | { | |
3327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3328 | } | |
3329 | return resultobj; | |
3330 | fail: | |
3331 | return NULL; | |
3332 | } | |
3333 | ||
3334 | ||
c370783e | 3335 | static PyObject *_wrap_Point___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3336 | PyObject *resultobj; |
3337 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3338 | wxPoint *arg2 = 0 ; | |
3339 | wxPoint result; | |
3340 | wxPoint temp2 ; | |
3341 | PyObject * obj0 = 0 ; | |
3342 | PyObject * obj1 = 0 ; | |
3343 | char *kwnames[] = { | |
3344 | (char *) "self",(char *) "pt", NULL | |
3345 | }; | |
3346 | ||
3347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
3348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3350 | { | |
3351 | arg2 = &temp2; | |
3352 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3353 | } | |
3354 | { | |
3355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3356 | result = (arg1)->operator +((wxPoint const &)*arg2); | |
3357 | ||
3358 | wxPyEndAllowThreads(__tstate); | |
3359 | if (PyErr_Occurred()) SWIG_fail; | |
3360 | } | |
3361 | { | |
3362 | wxPoint * resultptr; | |
3363 | resultptr = new wxPoint((wxPoint &) result); | |
3364 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3365 | } | |
3366 | return resultobj; | |
3367 | fail: | |
3368 | return NULL; | |
3369 | } | |
3370 | ||
3371 | ||
c370783e | 3372 | static PyObject *_wrap_Point___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3373 | PyObject *resultobj; |
3374 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3375 | wxPoint *arg2 = 0 ; | |
3376 | wxPoint result; | |
3377 | wxPoint temp2 ; | |
3378 | PyObject * obj0 = 0 ; | |
3379 | PyObject * obj1 = 0 ; | |
3380 | char *kwnames[] = { | |
3381 | (char *) "self",(char *) "pt", NULL | |
3382 | }; | |
3383 | ||
3384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
3385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3387 | { | |
3388 | arg2 = &temp2; | |
3389 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3390 | } | |
3391 | { | |
3392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3393 | result = (arg1)->operator -((wxPoint const &)*arg2); | |
3394 | ||
3395 | wxPyEndAllowThreads(__tstate); | |
3396 | if (PyErr_Occurred()) SWIG_fail; | |
3397 | } | |
3398 | { | |
3399 | wxPoint * resultptr; | |
3400 | resultptr = new wxPoint((wxPoint &) result); | |
3401 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3402 | } | |
3403 | return resultobj; | |
3404 | fail: | |
3405 | return NULL; | |
3406 | } | |
3407 | ||
3408 | ||
c370783e | 3409 | static PyObject *_wrap_Point___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3410 | PyObject *resultobj; |
3411 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3412 | wxPoint *arg2 = 0 ; | |
3413 | wxPoint *result; | |
3414 | wxPoint temp2 ; | |
3415 | PyObject * obj0 = 0 ; | |
3416 | PyObject * obj1 = 0 ; | |
3417 | char *kwnames[] = { | |
3418 | (char *) "self",(char *) "pt", NULL | |
3419 | }; | |
3420 | ||
3421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
3422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
c370783e | 3423 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
3424 | { |
3425 | arg2 = &temp2; | |
3426 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3427 | } | |
3428 | { | |
3429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3430 | { | |
3431 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
3432 | result = (wxPoint *) &_result_ref; | |
3433 | } | |
3434 | ||
3435 | wxPyEndAllowThreads(__tstate); | |
3436 | if (PyErr_Occurred()) SWIG_fail; | |
3437 | } | |
c370783e | 3438 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d55e5bfc RD |
3439 | return resultobj; |
3440 | fail: | |
3441 | return NULL; | |
3442 | } | |
3443 | ||
3444 | ||
c370783e | 3445 | static PyObject *_wrap_Point___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3446 | PyObject *resultobj; |
3447 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3448 | wxPoint *arg2 = 0 ; | |
3449 | wxPoint *result; | |
3450 | wxPoint temp2 ; | |
3451 | PyObject * obj0 = 0 ; | |
3452 | PyObject * obj1 = 0 ; | |
3453 | char *kwnames[] = { | |
3454 | (char *) "self",(char *) "pt", NULL | |
3455 | }; | |
3456 | ||
3457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
3458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
c370783e | 3459 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
3460 | { |
3461 | arg2 = &temp2; | |
3462 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3463 | } | |
3464 | { | |
3465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3466 | { | |
3467 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
3468 | result = (wxPoint *) &_result_ref; | |
3469 | } | |
3470 | ||
3471 | wxPyEndAllowThreads(__tstate); | |
3472 | if (PyErr_Occurred()) SWIG_fail; | |
3473 | } | |
c370783e | 3474 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d55e5bfc RD |
3475 | return resultobj; |
3476 | fail: | |
3477 | return NULL; | |
3478 | } | |
3479 | ||
3480 | ||
c370783e | 3481 | static PyObject *_wrap_Point_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3482 | PyObject *resultobj; |
3483 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3484 | long arg2 ; | |
3485 | long arg3 ; | |
3486 | PyObject * obj0 = 0 ; | |
3487 | PyObject * obj1 = 0 ; | |
3488 | PyObject * obj2 = 0 ; | |
3489 | char *kwnames[] = { | |
3490 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3491 | }; | |
3492 | ||
3493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3496 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 3497 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3498 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
3499 | if (PyErr_Occurred()) SWIG_fail; |
3500 | { | |
3501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3502 | wxPoint_Set(arg1,arg2,arg3); | |
3503 | ||
3504 | wxPyEndAllowThreads(__tstate); | |
3505 | if (PyErr_Occurred()) SWIG_fail; | |
3506 | } | |
3507 | Py_INCREF(Py_None); resultobj = Py_None; | |
3508 | return resultobj; | |
3509 | fail: | |
3510 | return NULL; | |
3511 | } | |
3512 | ||
3513 | ||
c370783e | 3514 | static PyObject *_wrap_Point_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3515 | PyObject *resultobj; |
3516 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3517 | PyObject *result; | |
3518 | PyObject * obj0 = 0 ; | |
3519 | char *kwnames[] = { | |
3520 | (char *) "self", NULL | |
3521 | }; | |
3522 | ||
3523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; | |
3524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3526 | { | |
3527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3528 | result = (PyObject *)wxPoint_Get(arg1); | |
3529 | ||
3530 | wxPyEndAllowThreads(__tstate); | |
3531 | if (PyErr_Occurred()) SWIG_fail; | |
3532 | } | |
3533 | resultobj = result; | |
3534 | return resultobj; | |
3535 | fail: | |
3536 | return NULL; | |
3537 | } | |
3538 | ||
3539 | ||
c370783e | 3540 | static PyObject * Point_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3541 | PyObject *obj; |
3542 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3543 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
3544 | Py_INCREF(obj); | |
3545 | return Py_BuildValue((char *)""); | |
3546 | } | |
c370783e | 3547 | static PyObject *_wrap_new_Rect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3548 | PyObject *resultobj; |
3549 | int arg1 = (int) 0 ; | |
3550 | int arg2 = (int) 0 ; | |
3551 | int arg3 = (int) 0 ; | |
3552 | int arg4 = (int) 0 ; | |
3553 | wxRect *result; | |
3554 | PyObject * obj0 = 0 ; | |
3555 | PyObject * obj1 = 0 ; | |
3556 | PyObject * obj2 = 0 ; | |
3557 | PyObject * obj3 = 0 ; | |
3558 | char *kwnames[] = { | |
3559 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3560 | }; | |
3561 | ||
3562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3563 | if (obj0) { | |
c370783e | 3564 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
3565 | if (PyErr_Occurred()) SWIG_fail; |
3566 | } | |
3567 | if (obj1) { | |
c370783e | 3568 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3569 | if (PyErr_Occurred()) SWIG_fail; |
3570 | } | |
3571 | if (obj2) { | |
c370783e | 3572 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
3573 | if (PyErr_Occurred()) SWIG_fail; |
3574 | } | |
3575 | if (obj3) { | |
c370783e | 3576 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
3577 | if (PyErr_Occurred()) SWIG_fail; |
3578 | } | |
3579 | { | |
3580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3581 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
3582 | ||
3583 | wxPyEndAllowThreads(__tstate); | |
3584 | if (PyErr_Occurred()) SWIG_fail; | |
3585 | } | |
3586 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3587 | return resultobj; | |
3588 | fail: | |
3589 | return NULL; | |
3590 | } | |
3591 | ||
3592 | ||
c370783e | 3593 | static PyObject *_wrap_new_RectPP(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3594 | PyObject *resultobj; |
3595 | wxPoint *arg1 = 0 ; | |
3596 | wxPoint *arg2 = 0 ; | |
3597 | wxRect *result; | |
3598 | wxPoint temp1 ; | |
3599 | wxPoint temp2 ; | |
3600 | PyObject * obj0 = 0 ; | |
3601 | PyObject * obj1 = 0 ; | |
3602 | char *kwnames[] = { | |
3603 | (char *) "topLeft",(char *) "bottomRight", NULL | |
3604 | }; | |
3605 | ||
3606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
3607 | { | |
3608 | arg1 = &temp1; | |
3609 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3610 | } | |
3611 | { | |
3612 | arg2 = &temp2; | |
3613 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3614 | } | |
3615 | { | |
3616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3617 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
3618 | ||
3619 | wxPyEndAllowThreads(__tstate); | |
3620 | if (PyErr_Occurred()) SWIG_fail; | |
3621 | } | |
3622 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3623 | return resultobj; | |
3624 | fail: | |
3625 | return NULL; | |
3626 | } | |
3627 | ||
3628 | ||
c370783e | 3629 | static PyObject *_wrap_new_RectPS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3630 | PyObject *resultobj; |
3631 | wxPoint *arg1 = 0 ; | |
3632 | wxSize *arg2 = 0 ; | |
3633 | wxRect *result; | |
3634 | wxPoint temp1 ; | |
3635 | wxSize temp2 ; | |
3636 | PyObject * obj0 = 0 ; | |
3637 | PyObject * obj1 = 0 ; | |
3638 | char *kwnames[] = { | |
3639 | (char *) "pos",(char *) "size", NULL | |
3640 | }; | |
3641 | ||
3642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
3643 | { | |
3644 | arg1 = &temp1; | |
3645 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3646 | } | |
3647 | { | |
3648 | arg2 = &temp2; | |
3649 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3650 | } | |
3651 | { | |
3652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3653 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
3654 | ||
3655 | wxPyEndAllowThreads(__tstate); | |
3656 | if (PyErr_Occurred()) SWIG_fail; | |
3657 | } | |
3658 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3659 | return resultobj; | |
3660 | fail: | |
3661 | return NULL; | |
3662 | } | |
3663 | ||
3664 | ||
c370783e | 3665 | static PyObject *_wrap_delete_Rect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3666 | PyObject *resultobj; |
3667 | wxRect *arg1 = (wxRect *) 0 ; | |
3668 | PyObject * obj0 = 0 ; | |
3669 | char *kwnames[] = { | |
3670 | (char *) "self", NULL | |
3671 | }; | |
3672 | ||
3673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
3674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3676 | { | |
3677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3678 | delete arg1; | |
3679 | ||
3680 | wxPyEndAllowThreads(__tstate); | |
3681 | if (PyErr_Occurred()) SWIG_fail; | |
3682 | } | |
3683 | Py_INCREF(Py_None); resultobj = Py_None; | |
3684 | return resultobj; | |
3685 | fail: | |
3686 | return NULL; | |
3687 | } | |
3688 | ||
3689 | ||
c370783e | 3690 | static PyObject *_wrap_Rect_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3691 | PyObject *resultobj; |
3692 | wxRect *arg1 = (wxRect *) 0 ; | |
3693 | int result; | |
3694 | PyObject * obj0 = 0 ; | |
3695 | char *kwnames[] = { | |
3696 | (char *) "self", NULL | |
3697 | }; | |
3698 | ||
3699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
3700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3702 | { | |
3703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3704 | result = (int)((wxRect const *)arg1)->GetX(); | |
3705 | ||
3706 | wxPyEndAllowThreads(__tstate); | |
3707 | if (PyErr_Occurred()) SWIG_fail; | |
3708 | } | |
c370783e | 3709 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3710 | return resultobj; |
3711 | fail: | |
3712 | return NULL; | |
3713 | } | |
3714 | ||
3715 | ||
c370783e | 3716 | static PyObject *_wrap_Rect_SetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3717 | PyObject *resultobj; |
3718 | wxRect *arg1 = (wxRect *) 0 ; | |
3719 | int arg2 ; | |
3720 | PyObject * obj0 = 0 ; | |
3721 | PyObject * obj1 = 0 ; | |
3722 | char *kwnames[] = { | |
3723 | (char *) "self",(char *) "x", NULL | |
3724 | }; | |
3725 | ||
3726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; | |
3727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3729 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3730 | if (PyErr_Occurred()) SWIG_fail; |
3731 | { | |
3732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3733 | (arg1)->SetX(arg2); | |
3734 | ||
3735 | wxPyEndAllowThreads(__tstate); | |
3736 | if (PyErr_Occurred()) SWIG_fail; | |
3737 | } | |
3738 | Py_INCREF(Py_None); resultobj = Py_None; | |
3739 | return resultobj; | |
3740 | fail: | |
3741 | return NULL; | |
3742 | } | |
3743 | ||
3744 | ||
c370783e | 3745 | static PyObject *_wrap_Rect_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3746 | PyObject *resultobj; |
3747 | wxRect *arg1 = (wxRect *) 0 ; | |
3748 | int result; | |
3749 | PyObject * obj0 = 0 ; | |
3750 | char *kwnames[] = { | |
3751 | (char *) "self", NULL | |
3752 | }; | |
3753 | ||
3754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
3755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3757 | { | |
3758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3759 | result = (int)(arg1)->GetY(); | |
3760 | ||
3761 | wxPyEndAllowThreads(__tstate); | |
3762 | if (PyErr_Occurred()) SWIG_fail; | |
3763 | } | |
c370783e | 3764 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3765 | return resultobj; |
3766 | fail: | |
3767 | return NULL; | |
3768 | } | |
3769 | ||
3770 | ||
c370783e | 3771 | static PyObject *_wrap_Rect_SetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3772 | PyObject *resultobj; |
3773 | wxRect *arg1 = (wxRect *) 0 ; | |
3774 | int arg2 ; | |
3775 | PyObject * obj0 = 0 ; | |
3776 | PyObject * obj1 = 0 ; | |
3777 | char *kwnames[] = { | |
3778 | (char *) "self",(char *) "y", NULL | |
3779 | }; | |
3780 | ||
3781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; | |
3782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3784 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3785 | if (PyErr_Occurred()) SWIG_fail; |
3786 | { | |
3787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3788 | (arg1)->SetY(arg2); | |
3789 | ||
3790 | wxPyEndAllowThreads(__tstate); | |
3791 | if (PyErr_Occurred()) SWIG_fail; | |
3792 | } | |
3793 | Py_INCREF(Py_None); resultobj = Py_None; | |
3794 | return resultobj; | |
3795 | fail: | |
3796 | return NULL; | |
3797 | } | |
3798 | ||
3799 | ||
c370783e | 3800 | static PyObject *_wrap_Rect_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3801 | PyObject *resultobj; |
3802 | wxRect *arg1 = (wxRect *) 0 ; | |
3803 | int result; | |
3804 | PyObject * obj0 = 0 ; | |
3805 | char *kwnames[] = { | |
3806 | (char *) "self", NULL | |
3807 | }; | |
3808 | ||
3809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
3810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3812 | { | |
3813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3814 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3815 | ||
3816 | wxPyEndAllowThreads(__tstate); | |
3817 | if (PyErr_Occurred()) SWIG_fail; | |
3818 | } | |
c370783e | 3819 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3820 | return resultobj; |
3821 | fail: | |
3822 | return NULL; | |
3823 | } | |
3824 | ||
3825 | ||
c370783e | 3826 | static PyObject *_wrap_Rect_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3827 | PyObject *resultobj; |
3828 | wxRect *arg1 = (wxRect *) 0 ; | |
3829 | int arg2 ; | |
3830 | PyObject * obj0 = 0 ; | |
3831 | PyObject * obj1 = 0 ; | |
3832 | char *kwnames[] = { | |
3833 | (char *) "self",(char *) "w", NULL | |
3834 | }; | |
3835 | ||
3836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
3837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3839 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3840 | if (PyErr_Occurred()) SWIG_fail; |
3841 | { | |
3842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3843 | (arg1)->SetWidth(arg2); | |
3844 | ||
3845 | wxPyEndAllowThreads(__tstate); | |
3846 | if (PyErr_Occurred()) SWIG_fail; | |
3847 | } | |
3848 | Py_INCREF(Py_None); resultobj = Py_None; | |
3849 | return resultobj; | |
3850 | fail: | |
3851 | return NULL; | |
3852 | } | |
3853 | ||
3854 | ||
c370783e | 3855 | static PyObject *_wrap_Rect_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3856 | PyObject *resultobj; |
3857 | wxRect *arg1 = (wxRect *) 0 ; | |
3858 | int result; | |
3859 | PyObject * obj0 = 0 ; | |
3860 | char *kwnames[] = { | |
3861 | (char *) "self", NULL | |
3862 | }; | |
3863 | ||
3864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
3865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3867 | { | |
3868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3869 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3870 | ||
3871 | wxPyEndAllowThreads(__tstate); | |
3872 | if (PyErr_Occurred()) SWIG_fail; | |
3873 | } | |
c370783e | 3874 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3875 | return resultobj; |
3876 | fail: | |
3877 | return NULL; | |
3878 | } | |
3879 | ||
3880 | ||
c370783e | 3881 | static PyObject *_wrap_Rect_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3882 | PyObject *resultobj; |
3883 | wxRect *arg1 = (wxRect *) 0 ; | |
3884 | int arg2 ; | |
3885 | PyObject * obj0 = 0 ; | |
3886 | PyObject * obj1 = 0 ; | |
3887 | char *kwnames[] = { | |
3888 | (char *) "self",(char *) "h", NULL | |
3889 | }; | |
3890 | ||
3891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
3892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3894 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3895 | if (PyErr_Occurred()) SWIG_fail; |
3896 | { | |
3897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3898 | (arg1)->SetHeight(arg2); | |
3899 | ||
3900 | wxPyEndAllowThreads(__tstate); | |
3901 | if (PyErr_Occurred()) SWIG_fail; | |
3902 | } | |
3903 | Py_INCREF(Py_None); resultobj = Py_None; | |
3904 | return resultobj; | |
3905 | fail: | |
3906 | return NULL; | |
3907 | } | |
3908 | ||
3909 | ||
c370783e | 3910 | static PyObject *_wrap_Rect_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3911 | PyObject *resultobj; |
3912 | wxRect *arg1 = (wxRect *) 0 ; | |
3913 | wxPoint result; | |
3914 | PyObject * obj0 = 0 ; | |
3915 | char *kwnames[] = { | |
3916 | (char *) "self", NULL | |
3917 | }; | |
3918 | ||
3919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
3920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3922 | { | |
3923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3924 | result = ((wxRect const *)arg1)->GetPosition(); | |
3925 | ||
3926 | wxPyEndAllowThreads(__tstate); | |
3927 | if (PyErr_Occurred()) SWIG_fail; | |
3928 | } | |
3929 | { | |
3930 | wxPoint * resultptr; | |
3931 | resultptr = new wxPoint((wxPoint &) result); | |
3932 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3933 | } | |
3934 | return resultobj; | |
3935 | fail: | |
3936 | return NULL; | |
3937 | } | |
3938 | ||
3939 | ||
c370783e | 3940 | static PyObject *_wrap_Rect_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3941 | PyObject *resultobj; |
3942 | wxRect *arg1 = (wxRect *) 0 ; | |
3943 | wxPoint *arg2 = 0 ; | |
3944 | wxPoint temp2 ; | |
3945 | PyObject * obj0 = 0 ; | |
3946 | PyObject * obj1 = 0 ; | |
3947 | char *kwnames[] = { | |
3948 | (char *) "self",(char *) "p", NULL | |
3949 | }; | |
3950 | ||
3951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
3952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3954 | { | |
3955 | arg2 = &temp2; | |
3956 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3957 | } | |
3958 | { | |
3959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3960 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
3961 | ||
3962 | wxPyEndAllowThreads(__tstate); | |
3963 | if (PyErr_Occurred()) SWIG_fail; | |
3964 | } | |
3965 | Py_INCREF(Py_None); resultobj = Py_None; | |
3966 | return resultobj; | |
3967 | fail: | |
3968 | return NULL; | |
3969 | } | |
3970 | ||
3971 | ||
c370783e | 3972 | static PyObject *_wrap_Rect_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3973 | PyObject *resultobj; |
3974 | wxRect *arg1 = (wxRect *) 0 ; | |
3975 | wxSize result; | |
3976 | PyObject * obj0 = 0 ; | |
3977 | char *kwnames[] = { | |
3978 | (char *) "self", NULL | |
3979 | }; | |
3980 | ||
3981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
3982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3984 | { | |
3985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3986 | result = ((wxRect const *)arg1)->GetSize(); | |
3987 | ||
3988 | wxPyEndAllowThreads(__tstate); | |
3989 | if (PyErr_Occurred()) SWIG_fail; | |
3990 | } | |
3991 | { | |
3992 | wxSize * resultptr; | |
3993 | resultptr = new wxSize((wxSize &) result); | |
3994 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
3995 | } | |
3996 | return resultobj; | |
3997 | fail: | |
3998 | return NULL; | |
3999 | } | |
4000 | ||
4001 | ||
c370783e | 4002 | static PyObject *_wrap_Rect_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4003 | PyObject *resultobj; |
4004 | wxRect *arg1 = (wxRect *) 0 ; | |
4005 | wxSize *arg2 = 0 ; | |
4006 | wxSize temp2 ; | |
4007 | PyObject * obj0 = 0 ; | |
4008 | PyObject * obj1 = 0 ; | |
4009 | char *kwnames[] = { | |
4010 | (char *) "self",(char *) "s", NULL | |
4011 | }; | |
4012 | ||
4013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4016 | { | |
4017 | arg2 = &temp2; | |
4018 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4019 | } | |
4020 | { | |
4021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4022 | (arg1)->SetSize((wxSize const &)*arg2); | |
4023 | ||
4024 | wxPyEndAllowThreads(__tstate); | |
4025 | if (PyErr_Occurred()) SWIG_fail; | |
4026 | } | |
4027 | Py_INCREF(Py_None); resultobj = Py_None; | |
4028 | return resultobj; | |
4029 | fail: | |
4030 | return NULL; | |
4031 | } | |
4032 | ||
4033 | ||
c370783e | 4034 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4035 | PyObject *resultobj; |
4036 | wxRect *arg1 = (wxRect *) 0 ; | |
4037 | wxPoint result; | |
4038 | PyObject * obj0 = 0 ; | |
4039 | char *kwnames[] = { | |
4040 | (char *) "self", NULL | |
4041 | }; | |
4042 | ||
4043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
4044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4046 | { | |
4047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4048 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
4049 | ||
4050 | wxPyEndAllowThreads(__tstate); | |
4051 | if (PyErr_Occurred()) SWIG_fail; | |
4052 | } | |
4053 | { | |
4054 | wxPoint * resultptr; | |
4055 | resultptr = new wxPoint((wxPoint &) result); | |
4056 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
4057 | } | |
4058 | return resultobj; | |
4059 | fail: | |
4060 | return NULL; | |
4061 | } | |
4062 | ||
4063 | ||
c370783e | 4064 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4065 | PyObject *resultobj; |
4066 | wxRect *arg1 = (wxRect *) 0 ; | |
4067 | wxPoint *arg2 = 0 ; | |
4068 | wxPoint temp2 ; | |
4069 | PyObject * obj0 = 0 ; | |
4070 | PyObject * obj1 = 0 ; | |
4071 | char *kwnames[] = { | |
4072 | (char *) "self",(char *) "p", NULL | |
4073 | }; | |
4074 | ||
4075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
4076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4078 | { | |
4079 | arg2 = &temp2; | |
4080 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4081 | } | |
4082 | { | |
4083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4084 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
4085 | ||
4086 | wxPyEndAllowThreads(__tstate); | |
4087 | if (PyErr_Occurred()) SWIG_fail; | |
4088 | } | |
4089 | Py_INCREF(Py_None); resultobj = Py_None; | |
4090 | return resultobj; | |
4091 | fail: | |
4092 | return NULL; | |
4093 | } | |
4094 | ||
4095 | ||
c370783e | 4096 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4097 | PyObject *resultobj; |
4098 | wxRect *arg1 = (wxRect *) 0 ; | |
4099 | wxPoint result; | |
4100 | PyObject * obj0 = 0 ; | |
4101 | char *kwnames[] = { | |
4102 | (char *) "self", NULL | |
4103 | }; | |
4104 | ||
4105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
4106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4108 | { | |
4109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4110 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
4111 | ||
4112 | wxPyEndAllowThreads(__tstate); | |
4113 | if (PyErr_Occurred()) SWIG_fail; | |
4114 | } | |
4115 | { | |
4116 | wxPoint * resultptr; | |
4117 | resultptr = new wxPoint((wxPoint &) result); | |
4118 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
4119 | } | |
4120 | return resultobj; | |
4121 | fail: | |
4122 | return NULL; | |
4123 | } | |
4124 | ||
4125 | ||
c370783e | 4126 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4127 | PyObject *resultobj; |
4128 | wxRect *arg1 = (wxRect *) 0 ; | |
4129 | wxPoint *arg2 = 0 ; | |
4130 | wxPoint temp2 ; | |
4131 | PyObject * obj0 = 0 ; | |
4132 | PyObject * obj1 = 0 ; | |
4133 | char *kwnames[] = { | |
4134 | (char *) "self",(char *) "p", NULL | |
4135 | }; | |
4136 | ||
4137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
4138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4140 | { | |
4141 | arg2 = &temp2; | |
4142 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4143 | } | |
4144 | { | |
4145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4146 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
4147 | ||
4148 | wxPyEndAllowThreads(__tstate); | |
4149 | if (PyErr_Occurred()) SWIG_fail; | |
4150 | } | |
4151 | Py_INCREF(Py_None); resultobj = Py_None; | |
4152 | return resultobj; | |
4153 | fail: | |
4154 | return NULL; | |
4155 | } | |
4156 | ||
4157 | ||
c370783e | 4158 | static PyObject *_wrap_Rect_GetLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4159 | PyObject *resultobj; |
4160 | wxRect *arg1 = (wxRect *) 0 ; | |
4161 | int result; | |
4162 | PyObject * obj0 = 0 ; | |
4163 | char *kwnames[] = { | |
4164 | (char *) "self", NULL | |
4165 | }; | |
4166 | ||
4167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
4168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4170 | { | |
4171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4172 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
4173 | ||
4174 | wxPyEndAllowThreads(__tstate); | |
4175 | if (PyErr_Occurred()) SWIG_fail; | |
4176 | } | |
c370783e | 4177 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4178 | return resultobj; |
4179 | fail: | |
4180 | return NULL; | |
4181 | } | |
4182 | ||
4183 | ||
c370783e | 4184 | static PyObject *_wrap_Rect_GetTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4185 | PyObject *resultobj; |
4186 | wxRect *arg1 = (wxRect *) 0 ; | |
4187 | int result; | |
4188 | PyObject * obj0 = 0 ; | |
4189 | char *kwnames[] = { | |
4190 | (char *) "self", NULL | |
4191 | }; | |
4192 | ||
4193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
4194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4196 | { | |
4197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4198 | result = (int)((wxRect const *)arg1)->GetTop(); | |
4199 | ||
4200 | wxPyEndAllowThreads(__tstate); | |
4201 | if (PyErr_Occurred()) SWIG_fail; | |
4202 | } | |
c370783e | 4203 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4204 | return resultobj; |
4205 | fail: | |
4206 | return NULL; | |
4207 | } | |
4208 | ||
4209 | ||
c370783e | 4210 | static PyObject *_wrap_Rect_GetBottom(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4211 | PyObject *resultobj; |
4212 | wxRect *arg1 = (wxRect *) 0 ; | |
4213 | int result; | |
4214 | PyObject * obj0 = 0 ; | |
4215 | char *kwnames[] = { | |
4216 | (char *) "self", NULL | |
4217 | }; | |
4218 | ||
4219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
4220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4222 | { | |
4223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4224 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
4225 | ||
4226 | wxPyEndAllowThreads(__tstate); | |
4227 | if (PyErr_Occurred()) SWIG_fail; | |
4228 | } | |
c370783e | 4229 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4230 | return resultobj; |
4231 | fail: | |
4232 | return NULL; | |
4233 | } | |
4234 | ||
4235 | ||
c370783e | 4236 | static PyObject *_wrap_Rect_GetRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4237 | PyObject *resultobj; |
4238 | wxRect *arg1 = (wxRect *) 0 ; | |
4239 | int result; | |
4240 | PyObject * obj0 = 0 ; | |
4241 | char *kwnames[] = { | |
4242 | (char *) "self", NULL | |
4243 | }; | |
4244 | ||
4245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
4246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4248 | { | |
4249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4250 | result = (int)((wxRect const *)arg1)->GetRight(); | |
4251 | ||
4252 | wxPyEndAllowThreads(__tstate); | |
4253 | if (PyErr_Occurred()) SWIG_fail; | |
4254 | } | |
c370783e | 4255 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4256 | return resultobj; |
4257 | fail: | |
4258 | return NULL; | |
4259 | } | |
4260 | ||
4261 | ||
c370783e | 4262 | static PyObject *_wrap_Rect_SetLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4263 | PyObject *resultobj; |
4264 | wxRect *arg1 = (wxRect *) 0 ; | |
4265 | int arg2 ; | |
4266 | PyObject * obj0 = 0 ; | |
4267 | PyObject * obj1 = 0 ; | |
4268 | char *kwnames[] = { | |
4269 | (char *) "self",(char *) "left", NULL | |
4270 | }; | |
4271 | ||
4272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; | |
4273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4275 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4276 | if (PyErr_Occurred()) SWIG_fail; |
4277 | { | |
4278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4279 | (arg1)->SetLeft(arg2); | |
4280 | ||
4281 | wxPyEndAllowThreads(__tstate); | |
4282 | if (PyErr_Occurred()) SWIG_fail; | |
4283 | } | |
4284 | Py_INCREF(Py_None); resultobj = Py_None; | |
4285 | return resultobj; | |
4286 | fail: | |
4287 | return NULL; | |
4288 | } | |
4289 | ||
4290 | ||
c370783e | 4291 | static PyObject *_wrap_Rect_SetRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4292 | PyObject *resultobj; |
4293 | wxRect *arg1 = (wxRect *) 0 ; | |
4294 | int arg2 ; | |
4295 | PyObject * obj0 = 0 ; | |
4296 | PyObject * obj1 = 0 ; | |
4297 | char *kwnames[] = { | |
4298 | (char *) "self",(char *) "right", NULL | |
4299 | }; | |
4300 | ||
4301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; | |
4302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4304 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4305 | if (PyErr_Occurred()) SWIG_fail; |
4306 | { | |
4307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4308 | (arg1)->SetRight(arg2); | |
4309 | ||
4310 | wxPyEndAllowThreads(__tstate); | |
4311 | if (PyErr_Occurred()) SWIG_fail; | |
4312 | } | |
4313 | Py_INCREF(Py_None); resultobj = Py_None; | |
4314 | return resultobj; | |
4315 | fail: | |
4316 | return NULL; | |
4317 | } | |
4318 | ||
4319 | ||
c370783e | 4320 | static PyObject *_wrap_Rect_SetTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4321 | PyObject *resultobj; |
4322 | wxRect *arg1 = (wxRect *) 0 ; | |
4323 | int arg2 ; | |
4324 | PyObject * obj0 = 0 ; | |
4325 | PyObject * obj1 = 0 ; | |
4326 | char *kwnames[] = { | |
4327 | (char *) "self",(char *) "top", NULL | |
4328 | }; | |
4329 | ||
4330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; | |
4331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4333 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4334 | if (PyErr_Occurred()) SWIG_fail; |
4335 | { | |
4336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4337 | (arg1)->SetTop(arg2); | |
4338 | ||
4339 | wxPyEndAllowThreads(__tstate); | |
4340 | if (PyErr_Occurred()) SWIG_fail; | |
4341 | } | |
4342 | Py_INCREF(Py_None); resultobj = Py_None; | |
4343 | return resultobj; | |
4344 | fail: | |
4345 | return NULL; | |
4346 | } | |
4347 | ||
4348 | ||
c370783e | 4349 | static PyObject *_wrap_Rect_SetBottom(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4350 | PyObject *resultobj; |
4351 | wxRect *arg1 = (wxRect *) 0 ; | |
4352 | int arg2 ; | |
4353 | PyObject * obj0 = 0 ; | |
4354 | PyObject * obj1 = 0 ; | |
4355 | char *kwnames[] = { | |
4356 | (char *) "self",(char *) "bottom", NULL | |
4357 | }; | |
4358 | ||
4359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; | |
4360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4362 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4363 | if (PyErr_Occurred()) SWIG_fail; |
4364 | { | |
4365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4366 | (arg1)->SetBottom(arg2); | |
4367 | ||
4368 | wxPyEndAllowThreads(__tstate); | |
4369 | if (PyErr_Occurred()) SWIG_fail; | |
4370 | } | |
4371 | Py_INCREF(Py_None); resultobj = Py_None; | |
4372 | return resultobj; | |
4373 | fail: | |
4374 | return NULL; | |
4375 | } | |
4376 | ||
4377 | ||
c370783e | 4378 | static PyObject *_wrap_Rect_Inflate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4379 | PyObject *resultobj; |
4380 | wxRect *arg1 = (wxRect *) 0 ; | |
4381 | int arg2 ; | |
4382 | int arg3 ; | |
4383 | wxRect *result; | |
4384 | PyObject * obj0 = 0 ; | |
4385 | PyObject * obj1 = 0 ; | |
4386 | PyObject * obj2 = 0 ; | |
4387 | char *kwnames[] = { | |
4388 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4389 | }; | |
4390 | ||
4391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4394 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4395 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 4396 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4397 | if (PyErr_Occurred()) SWIG_fail; |
4398 | { | |
4399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4400 | { | |
4401 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
4402 | result = (wxRect *) &_result_ref; | |
4403 | } | |
4404 | ||
4405 | wxPyEndAllowThreads(__tstate); | |
4406 | if (PyErr_Occurred()) SWIG_fail; | |
4407 | } | |
4408 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4409 | return resultobj; | |
4410 | fail: | |
4411 | return NULL; | |
4412 | } | |
4413 | ||
4414 | ||
c370783e | 4415 | static PyObject *_wrap_Rect_Deflate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4416 | PyObject *resultobj; |
4417 | wxRect *arg1 = (wxRect *) 0 ; | |
4418 | int arg2 ; | |
4419 | int arg3 ; | |
4420 | wxRect *result; | |
4421 | PyObject * obj0 = 0 ; | |
4422 | PyObject * obj1 = 0 ; | |
4423 | PyObject * obj2 = 0 ; | |
4424 | char *kwnames[] = { | |
4425 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4426 | }; | |
4427 | ||
4428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4431 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4432 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 4433 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4434 | if (PyErr_Occurred()) SWIG_fail; |
4435 | { | |
4436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4437 | { | |
4438 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
4439 | result = (wxRect *) &_result_ref; | |
4440 | } | |
4441 | ||
4442 | wxPyEndAllowThreads(__tstate); | |
4443 | if (PyErr_Occurred()) SWIG_fail; | |
4444 | } | |
4445 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4446 | return resultobj; | |
4447 | fail: | |
4448 | return NULL; | |
4449 | } | |
4450 | ||
4451 | ||
c370783e | 4452 | static PyObject *_wrap_Rect_OffsetXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4453 | PyObject *resultobj; |
4454 | wxRect *arg1 = (wxRect *) 0 ; | |
4455 | int arg2 ; | |
4456 | int arg3 ; | |
4457 | PyObject * obj0 = 0 ; | |
4458 | PyObject * obj1 = 0 ; | |
4459 | PyObject * obj2 = 0 ; | |
4460 | char *kwnames[] = { | |
4461 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4462 | }; | |
4463 | ||
4464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4467 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4468 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 4469 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4470 | if (PyErr_Occurred()) SWIG_fail; |
4471 | { | |
4472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4473 | (arg1)->Offset(arg2,arg3); | |
4474 | ||
4475 | wxPyEndAllowThreads(__tstate); | |
4476 | if (PyErr_Occurred()) SWIG_fail; | |
4477 | } | |
4478 | Py_INCREF(Py_None); resultobj = Py_None; | |
4479 | return resultobj; | |
4480 | fail: | |
4481 | return NULL; | |
4482 | } | |
4483 | ||
4484 | ||
c370783e | 4485 | static PyObject *_wrap_Rect_Offset(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4486 | PyObject *resultobj; |
4487 | wxRect *arg1 = (wxRect *) 0 ; | |
4488 | wxPoint *arg2 = 0 ; | |
4489 | wxPoint temp2 ; | |
4490 | PyObject * obj0 = 0 ; | |
4491 | PyObject * obj1 = 0 ; | |
4492 | char *kwnames[] = { | |
4493 | (char *) "self",(char *) "pt", NULL | |
4494 | }; | |
4495 | ||
4496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
4497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4499 | { | |
4500 | arg2 = &temp2; | |
4501 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4502 | } | |
4503 | { | |
4504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4505 | (arg1)->Offset((wxPoint const &)*arg2); | |
4506 | ||
4507 | wxPyEndAllowThreads(__tstate); | |
4508 | if (PyErr_Occurred()) SWIG_fail; | |
4509 | } | |
4510 | Py_INCREF(Py_None); resultobj = Py_None; | |
4511 | return resultobj; | |
4512 | fail: | |
4513 | return NULL; | |
4514 | } | |
4515 | ||
4516 | ||
c370783e | 4517 | static PyObject *_wrap_Rect_Intersect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4518 | PyObject *resultobj; |
4519 | wxRect *arg1 = (wxRect *) 0 ; | |
4520 | wxRect *arg2 = 0 ; | |
4521 | wxRect *result; | |
4522 | wxRect temp2 ; | |
4523 | PyObject * obj0 = 0 ; | |
4524 | PyObject * obj1 = 0 ; | |
4525 | char *kwnames[] = { | |
4526 | (char *) "self",(char *) "rect", NULL | |
4527 | }; | |
4528 | ||
4529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
4530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4532 | { | |
4533 | arg2 = &temp2; | |
4534 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4535 | } | |
4536 | { | |
4537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4538 | { | |
4539 | wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2); | |
4540 | result = (wxRect *) &_result_ref; | |
4541 | } | |
4542 | ||
4543 | wxPyEndAllowThreads(__tstate); | |
4544 | if (PyErr_Occurred()) SWIG_fail; | |
4545 | } | |
4546 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4547 | return resultobj; | |
4548 | fail: | |
4549 | return NULL; | |
4550 | } | |
4551 | ||
4552 | ||
c370783e | 4553 | static PyObject *_wrap_Rect___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4554 | PyObject *resultobj; |
4555 | wxRect *arg1 = (wxRect *) 0 ; | |
4556 | wxRect *arg2 = 0 ; | |
4557 | wxRect result; | |
4558 | wxRect temp2 ; | |
4559 | PyObject * obj0 = 0 ; | |
4560 | PyObject * obj1 = 0 ; | |
4561 | char *kwnames[] = { | |
4562 | (char *) "self",(char *) "rect", NULL | |
4563 | }; | |
4564 | ||
4565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
4566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4568 | { | |
4569 | arg2 = &temp2; | |
4570 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4571 | } | |
4572 | { | |
4573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4574 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
4575 | ||
4576 | wxPyEndAllowThreads(__tstate); | |
4577 | if (PyErr_Occurred()) SWIG_fail; | |
4578 | } | |
4579 | { | |
4580 | wxRect * resultptr; | |
4581 | resultptr = new wxRect((wxRect &) result); | |
4582 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4583 | } | |
4584 | return resultobj; | |
4585 | fail: | |
4586 | return NULL; | |
4587 | } | |
4588 | ||
4589 | ||
c370783e | 4590 | static PyObject *_wrap_Rect___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4591 | PyObject *resultobj; |
4592 | wxRect *arg1 = (wxRect *) 0 ; | |
4593 | wxRect *arg2 = 0 ; | |
4594 | wxRect *result; | |
4595 | wxRect temp2 ; | |
4596 | PyObject * obj0 = 0 ; | |
4597 | PyObject * obj1 = 0 ; | |
4598 | char *kwnames[] = { | |
4599 | (char *) "self",(char *) "rect", NULL | |
4600 | }; | |
4601 | ||
4602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
4603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
c370783e | 4604 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
4605 | { |
4606 | arg2 = &temp2; | |
4607 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4608 | } | |
4609 | { | |
4610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4611 | { | |
4612 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
4613 | result = (wxRect *) &_result_ref; | |
4614 | } | |
4615 | ||
4616 | wxPyEndAllowThreads(__tstate); | |
4617 | if (PyErr_Occurred()) SWIG_fail; | |
4618 | } | |
c370783e | 4619 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d55e5bfc RD |
4620 | return resultobj; |
4621 | fail: | |
4622 | return NULL; | |
4623 | } | |
4624 | ||
4625 | ||
c370783e | 4626 | static PyObject *_wrap_Rect___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4627 | PyObject *resultobj; |
4628 | wxRect *arg1 = (wxRect *) 0 ; | |
4629 | wxRect *arg2 = 0 ; | |
4630 | bool result; | |
4631 | wxRect temp2 ; | |
4632 | PyObject * obj0 = 0 ; | |
4633 | PyObject * obj1 = 0 ; | |
4634 | char *kwnames[] = { | |
4635 | (char *) "self",(char *) "rect", NULL | |
4636 | }; | |
4637 | ||
4638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
4639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4641 | { | |
4642 | arg2 = &temp2; | |
4643 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4644 | } | |
4645 | { | |
4646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4647 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
4648 | ||
4649 | wxPyEndAllowThreads(__tstate); | |
4650 | if (PyErr_Occurred()) SWIG_fail; | |
4651 | } | |
4652 | { | |
4653 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4654 | } | |
4655 | return resultobj; | |
4656 | fail: | |
4657 | return NULL; | |
4658 | } | |
4659 | ||
4660 | ||
c370783e | 4661 | static PyObject *_wrap_Rect___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4662 | PyObject *resultobj; |
4663 | wxRect *arg1 = (wxRect *) 0 ; | |
4664 | wxRect *arg2 = 0 ; | |
4665 | bool result; | |
4666 | wxRect temp2 ; | |
4667 | PyObject * obj0 = 0 ; | |
4668 | PyObject * obj1 = 0 ; | |
4669 | char *kwnames[] = { | |
4670 | (char *) "self",(char *) "rect", NULL | |
4671 | }; | |
4672 | ||
4673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
4674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4676 | { | |
4677 | arg2 = &temp2; | |
4678 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4679 | } | |
4680 | { | |
4681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4682 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
4683 | ||
4684 | wxPyEndAllowThreads(__tstate); | |
4685 | if (PyErr_Occurred()) SWIG_fail; | |
4686 | } | |
4687 | { | |
4688 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4689 | } | |
4690 | return resultobj; | |
4691 | fail: | |
4692 | return NULL; | |
4693 | } | |
4694 | ||
4695 | ||
c370783e | 4696 | static PyObject *_wrap_Rect_InsideXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4697 | PyObject *resultobj; |
4698 | wxRect *arg1 = (wxRect *) 0 ; | |
4699 | int arg2 ; | |
4700 | int arg3 ; | |
4701 | bool result; | |
4702 | PyObject * obj0 = 0 ; | |
4703 | PyObject * obj1 = 0 ; | |
4704 | PyObject * obj2 = 0 ; | |
4705 | char *kwnames[] = { | |
4706 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4707 | }; | |
4708 | ||
4709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4712 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4713 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 4714 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4715 | if (PyErr_Occurred()) SWIG_fail; |
4716 | { | |
4717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4718 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
4719 | ||
4720 | wxPyEndAllowThreads(__tstate); | |
4721 | if (PyErr_Occurred()) SWIG_fail; | |
4722 | } | |
4723 | { | |
4724 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4725 | } | |
4726 | return resultobj; | |
4727 | fail: | |
4728 | return NULL; | |
4729 | } | |
4730 | ||
4731 | ||
c370783e | 4732 | static PyObject *_wrap_Rect_Inside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4733 | PyObject *resultobj; |
4734 | wxRect *arg1 = (wxRect *) 0 ; | |
4735 | wxPoint *arg2 = 0 ; | |
4736 | bool result; | |
4737 | wxPoint temp2 ; | |
4738 | PyObject * obj0 = 0 ; | |
4739 | PyObject * obj1 = 0 ; | |
4740 | char *kwnames[] = { | |
4741 | (char *) "self",(char *) "pt", NULL | |
4742 | }; | |
4743 | ||
4744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
4745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4747 | { | |
4748 | arg2 = &temp2; | |
4749 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4750 | } | |
4751 | { | |
4752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4753 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
4754 | ||
4755 | wxPyEndAllowThreads(__tstate); | |
4756 | if (PyErr_Occurred()) SWIG_fail; | |
4757 | } | |
4758 | { | |
4759 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4760 | } | |
4761 | return resultobj; | |
4762 | fail: | |
4763 | return NULL; | |
4764 | } | |
4765 | ||
4766 | ||
c370783e | 4767 | static PyObject *_wrap_Rect_Intersects(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4768 | PyObject *resultobj; |
4769 | wxRect *arg1 = (wxRect *) 0 ; | |
4770 | wxRect *arg2 = 0 ; | |
4771 | bool result; | |
4772 | wxRect temp2 ; | |
4773 | PyObject * obj0 = 0 ; | |
4774 | PyObject * obj1 = 0 ; | |
4775 | char *kwnames[] = { | |
4776 | (char *) "self",(char *) "rect", NULL | |
4777 | }; | |
4778 | ||
4779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
4780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4782 | { | |
4783 | arg2 = &temp2; | |
4784 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4785 | } | |
4786 | { | |
4787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4788 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
4789 | ||
4790 | wxPyEndAllowThreads(__tstate); | |
4791 | if (PyErr_Occurred()) SWIG_fail; | |
4792 | } | |
4793 | { | |
4794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4795 | } | |
4796 | return resultobj; | |
4797 | fail: | |
4798 | return NULL; | |
4799 | } | |
4800 | ||
4801 | ||
c370783e | 4802 | static PyObject *_wrap_Rect_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4803 | PyObject *resultobj; |
4804 | wxRect *arg1 = (wxRect *) 0 ; | |
4805 | int arg2 ; | |
4806 | PyObject * obj0 = 0 ; | |
4807 | PyObject * obj1 = 0 ; | |
4808 | char *kwnames[] = { | |
4809 | (char *) "self",(char *) "x", NULL | |
4810 | }; | |
4811 | ||
4812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; | |
4813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4815 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4816 | if (PyErr_Occurred()) SWIG_fail; |
4817 | if (arg1) (arg1)->x = arg2; | |
4818 | ||
4819 | Py_INCREF(Py_None); resultobj = Py_None; | |
4820 | return resultobj; | |
4821 | fail: | |
4822 | return NULL; | |
4823 | } | |
4824 | ||
4825 | ||
c370783e | 4826 | static PyObject *_wrap_Rect_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4827 | PyObject *resultobj; |
4828 | wxRect *arg1 = (wxRect *) 0 ; | |
4829 | int result; | |
4830 | PyObject * obj0 = 0 ; | |
4831 | char *kwnames[] = { | |
4832 | (char *) "self", NULL | |
4833 | }; | |
4834 | ||
4835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
4836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4838 | result = (int) ((arg1)->x); | |
4839 | ||
c370783e | 4840 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4841 | return resultobj; |
4842 | fail: | |
4843 | return NULL; | |
4844 | } | |
4845 | ||
4846 | ||
c370783e | 4847 | static PyObject *_wrap_Rect_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4848 | PyObject *resultobj; |
4849 | wxRect *arg1 = (wxRect *) 0 ; | |
4850 | int arg2 ; | |
4851 | PyObject * obj0 = 0 ; | |
4852 | PyObject * obj1 = 0 ; | |
4853 | char *kwnames[] = { | |
4854 | (char *) "self",(char *) "y", NULL | |
4855 | }; | |
4856 | ||
4857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; | |
4858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4860 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4861 | if (PyErr_Occurred()) SWIG_fail; |
4862 | if (arg1) (arg1)->y = arg2; | |
4863 | ||
4864 | Py_INCREF(Py_None); resultobj = Py_None; | |
4865 | return resultobj; | |
4866 | fail: | |
4867 | return NULL; | |
4868 | } | |
4869 | ||
4870 | ||
c370783e | 4871 | static PyObject *_wrap_Rect_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4872 | PyObject *resultobj; |
4873 | wxRect *arg1 = (wxRect *) 0 ; | |
4874 | int result; | |
4875 | PyObject * obj0 = 0 ; | |
4876 | char *kwnames[] = { | |
4877 | (char *) "self", NULL | |
4878 | }; | |
4879 | ||
4880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
4881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4883 | result = (int) ((arg1)->y); | |
4884 | ||
c370783e | 4885 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4886 | return resultobj; |
4887 | fail: | |
4888 | return NULL; | |
4889 | } | |
4890 | ||
4891 | ||
c370783e | 4892 | static PyObject *_wrap_Rect_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4893 | PyObject *resultobj; |
4894 | wxRect *arg1 = (wxRect *) 0 ; | |
4895 | int arg2 ; | |
4896 | PyObject * obj0 = 0 ; | |
4897 | PyObject * obj1 = 0 ; | |
4898 | char *kwnames[] = { | |
4899 | (char *) "self",(char *) "width", NULL | |
4900 | }; | |
4901 | ||
4902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; | |
4903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4905 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4906 | if (PyErr_Occurred()) SWIG_fail; |
4907 | if (arg1) (arg1)->width = arg2; | |
4908 | ||
4909 | Py_INCREF(Py_None); resultobj = Py_None; | |
4910 | return resultobj; | |
4911 | fail: | |
4912 | return NULL; | |
4913 | } | |
4914 | ||
4915 | ||
c370783e | 4916 | static PyObject *_wrap_Rect_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4917 | PyObject *resultobj; |
4918 | wxRect *arg1 = (wxRect *) 0 ; | |
4919 | int result; | |
4920 | PyObject * obj0 = 0 ; | |
4921 | char *kwnames[] = { | |
4922 | (char *) "self", NULL | |
4923 | }; | |
4924 | ||
4925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
4926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4928 | result = (int) ((arg1)->width); | |
4929 | ||
c370783e | 4930 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4931 | return resultobj; |
4932 | fail: | |
4933 | return NULL; | |
4934 | } | |
4935 | ||
4936 | ||
c370783e | 4937 | static PyObject *_wrap_Rect_height_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4938 | PyObject *resultobj; |
4939 | wxRect *arg1 = (wxRect *) 0 ; | |
4940 | int arg2 ; | |
4941 | PyObject * obj0 = 0 ; | |
4942 | PyObject * obj1 = 0 ; | |
4943 | char *kwnames[] = { | |
4944 | (char *) "self",(char *) "height", NULL | |
4945 | }; | |
4946 | ||
4947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; | |
4948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4950 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4951 | if (PyErr_Occurred()) SWIG_fail; |
4952 | if (arg1) (arg1)->height = arg2; | |
4953 | ||
4954 | Py_INCREF(Py_None); resultobj = Py_None; | |
4955 | return resultobj; | |
4956 | fail: | |
4957 | return NULL; | |
4958 | } | |
4959 | ||
4960 | ||
c370783e | 4961 | static PyObject *_wrap_Rect_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4962 | PyObject *resultobj; |
4963 | wxRect *arg1 = (wxRect *) 0 ; | |
4964 | int result; | |
4965 | PyObject * obj0 = 0 ; | |
4966 | char *kwnames[] = { | |
4967 | (char *) "self", NULL | |
4968 | }; | |
4969 | ||
4970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
4971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4973 | result = (int) ((arg1)->height); | |
4974 | ||
c370783e | 4975 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4976 | return resultobj; |
4977 | fail: | |
4978 | return NULL; | |
4979 | } | |
4980 | ||
4981 | ||
c370783e | 4982 | static PyObject *_wrap_Rect_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4983 | PyObject *resultobj; |
4984 | wxRect *arg1 = (wxRect *) 0 ; | |
4985 | int arg2 = (int) 0 ; | |
4986 | int arg3 = (int) 0 ; | |
4987 | int arg4 = (int) 0 ; | |
4988 | int arg5 = (int) 0 ; | |
4989 | PyObject * obj0 = 0 ; | |
4990 | PyObject * obj1 = 0 ; | |
4991 | PyObject * obj2 = 0 ; | |
4992 | PyObject * obj3 = 0 ; | |
4993 | PyObject * obj4 = 0 ; | |
4994 | char *kwnames[] = { | |
4995 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
4996 | }; | |
4997 | ||
4998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
4999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5001 | if (obj1) { | |
c370783e | 5002 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5003 | if (PyErr_Occurred()) SWIG_fail; |
5004 | } | |
5005 | if (obj2) { | |
c370783e | 5006 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5007 | if (PyErr_Occurred()) SWIG_fail; |
5008 | } | |
5009 | if (obj3) { | |
c370783e | 5010 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
5011 | if (PyErr_Occurred()) SWIG_fail; |
5012 | } | |
5013 | if (obj4) { | |
c370783e | 5014 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
5015 | if (PyErr_Occurred()) SWIG_fail; |
5016 | } | |
5017 | { | |
5018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5019 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
5020 | ||
5021 | wxPyEndAllowThreads(__tstate); | |
5022 | if (PyErr_Occurred()) SWIG_fail; | |
5023 | } | |
5024 | Py_INCREF(Py_None); resultobj = Py_None; | |
5025 | return resultobj; | |
5026 | fail: | |
5027 | return NULL; | |
5028 | } | |
5029 | ||
5030 | ||
c370783e | 5031 | static PyObject *_wrap_Rect_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5032 | PyObject *resultobj; |
5033 | wxRect *arg1 = (wxRect *) 0 ; | |
5034 | PyObject *result; | |
5035 | PyObject * obj0 = 0 ; | |
5036 | char *kwnames[] = { | |
5037 | (char *) "self", NULL | |
5038 | }; | |
5039 | ||
5040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; | |
5041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5043 | { | |
5044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5045 | result = (PyObject *)wxRect_Get(arg1); | |
5046 | ||
5047 | wxPyEndAllowThreads(__tstate); | |
5048 | if (PyErr_Occurred()) SWIG_fail; | |
5049 | } | |
5050 | resultobj = result; | |
5051 | return resultobj; | |
5052 | fail: | |
5053 | return NULL; | |
5054 | } | |
5055 | ||
5056 | ||
c370783e | 5057 | static PyObject * Rect_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5058 | PyObject *obj; |
5059 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5060 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
5061 | Py_INCREF(obj); | |
5062 | return Py_BuildValue((char *)""); | |
5063 | } | |
c370783e | 5064 | static PyObject *_wrap_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5065 | PyObject *resultobj; |
5066 | wxRect *arg1 = (wxRect *) 0 ; | |
5067 | wxRect *arg2 = (wxRect *) 0 ; | |
5068 | PyObject *result; | |
5069 | PyObject * obj0 = 0 ; | |
5070 | PyObject * obj1 = 0 ; | |
5071 | char *kwnames[] = { | |
5072 | (char *) "r1",(char *) "r2", NULL | |
5073 | }; | |
5074 | ||
5075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
5076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5078 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
5079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5080 | { | |
0439c23b | 5081 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5083 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
5084 | ||
5085 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5086 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5087 | } |
5088 | resultobj = result; | |
5089 | return resultobj; | |
5090 | fail: | |
5091 | return NULL; | |
5092 | } | |
5093 | ||
5094 | ||
c370783e | 5095 | static PyObject *_wrap_new_Point2D(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5096 | PyObject *resultobj; |
5097 | double arg1 = (double) 0.0 ; | |
5098 | double arg2 = (double) 0.0 ; | |
5099 | wxPoint2D *result; | |
5100 | PyObject * obj0 = 0 ; | |
5101 | PyObject * obj1 = 0 ; | |
5102 | char *kwnames[] = { | |
5103 | (char *) "x",(char *) "y", NULL | |
5104 | }; | |
5105 | ||
5106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; | |
5107 | if (obj0) { | |
c370783e | 5108 | arg1 = (double)SWIG_As_double(obj0); |
d55e5bfc RD |
5109 | if (PyErr_Occurred()) SWIG_fail; |
5110 | } | |
5111 | if (obj1) { | |
c370783e | 5112 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5113 | if (PyErr_Occurred()) SWIG_fail; |
5114 | } | |
5115 | { | |
5116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5117 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
5118 | ||
5119 | wxPyEndAllowThreads(__tstate); | |
5120 | if (PyErr_Occurred()) SWIG_fail; | |
5121 | } | |
5122 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
5123 | return resultobj; | |
5124 | fail: | |
5125 | return NULL; | |
5126 | } | |
5127 | ||
5128 | ||
c370783e | 5129 | static PyObject *_wrap_new_Point2DCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5130 | PyObject *resultobj; |
5131 | wxPoint2D *arg1 = 0 ; | |
5132 | wxPoint2D *result; | |
5133 | wxPoint2D temp1 ; | |
5134 | PyObject * obj0 = 0 ; | |
5135 | char *kwnames[] = { | |
5136 | (char *) "pt", NULL | |
5137 | }; | |
5138 | ||
5139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
5140 | { | |
5141 | arg1 = &temp1; | |
5142 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
5143 | } | |
5144 | { | |
5145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5146 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
5147 | ||
5148 | wxPyEndAllowThreads(__tstate); | |
5149 | if (PyErr_Occurred()) SWIG_fail; | |
5150 | } | |
5151 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
5152 | return resultobj; | |
5153 | fail: | |
5154 | return NULL; | |
5155 | } | |
5156 | ||
5157 | ||
c370783e | 5158 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5159 | PyObject *resultobj; |
5160 | wxPoint *arg1 = 0 ; | |
5161 | wxPoint2D *result; | |
5162 | wxPoint temp1 ; | |
5163 | PyObject * obj0 = 0 ; | |
5164 | char *kwnames[] = { | |
5165 | (char *) "pt", NULL | |
5166 | }; | |
5167 | ||
5168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
5169 | { | |
5170 | arg1 = &temp1; | |
5171 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
5172 | } | |
5173 | { | |
5174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5175 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
5176 | ||
5177 | wxPyEndAllowThreads(__tstate); | |
5178 | if (PyErr_Occurred()) SWIG_fail; | |
5179 | } | |
5180 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
5181 | return resultobj; | |
5182 | fail: | |
5183 | return NULL; | |
5184 | } | |
5185 | ||
5186 | ||
c370783e | 5187 | static PyObject *_wrap_Point2D_GetFloor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5188 | PyObject *resultobj; |
5189 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5190 | int *arg2 = (int *) 0 ; | |
5191 | int *arg3 = (int *) 0 ; | |
5192 | int temp2 ; | |
c370783e | 5193 | int res2 = 0 ; |
d55e5bfc | 5194 | int temp3 ; |
c370783e | 5195 | int res3 = 0 ; |
d55e5bfc RD |
5196 | PyObject * obj0 = 0 ; |
5197 | char *kwnames[] = { | |
5198 | (char *) "self", NULL | |
5199 | }; | |
5200 | ||
c370783e RD |
5201 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5202 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; |
5204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5206 | { | |
5207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5208 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
5209 | ||
5210 | wxPyEndAllowThreads(__tstate); | |
5211 | if (PyErr_Occurred()) SWIG_fail; | |
5212 | } | |
5213 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
5214 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5215 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5216 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5217 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5218 | return resultobj; |
5219 | fail: | |
5220 | return NULL; | |
5221 | } | |
5222 | ||
5223 | ||
c370783e | 5224 | static PyObject *_wrap_Point2D_GetRounded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5225 | PyObject *resultobj; |
5226 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5227 | int *arg2 = (int *) 0 ; | |
5228 | int *arg3 = (int *) 0 ; | |
5229 | int temp2 ; | |
c370783e | 5230 | int res2 = 0 ; |
d55e5bfc | 5231 | int temp3 ; |
c370783e | 5232 | int res3 = 0 ; |
d55e5bfc RD |
5233 | PyObject * obj0 = 0 ; |
5234 | char *kwnames[] = { | |
5235 | (char *) "self", NULL | |
5236 | }; | |
5237 | ||
c370783e RD |
5238 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5239 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; |
5241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5243 | { | |
5244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5245 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
5246 | ||
5247 | wxPyEndAllowThreads(__tstate); | |
5248 | if (PyErr_Occurred()) SWIG_fail; | |
5249 | } | |
5250 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
5251 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5252 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5253 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5254 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5255 | return resultobj; |
5256 | fail: | |
5257 | return NULL; | |
5258 | } | |
5259 | ||
5260 | ||
c370783e | 5261 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5262 | PyObject *resultobj; |
5263 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5264 | double result; | |
5265 | PyObject * obj0 = 0 ; | |
5266 | char *kwnames[] = { | |
5267 | (char *) "self", NULL | |
5268 | }; | |
5269 | ||
5270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
5271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5273 | { | |
5274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5275 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
5276 | ||
5277 | wxPyEndAllowThreads(__tstate); | |
5278 | if (PyErr_Occurred()) SWIG_fail; | |
5279 | } | |
c370783e | 5280 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5281 | return resultobj; |
5282 | fail: | |
5283 | return NULL; | |
5284 | } | |
5285 | ||
5286 | ||
c370783e | 5287 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5288 | PyObject *resultobj; |
5289 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5290 | double result; | |
5291 | PyObject * obj0 = 0 ; | |
5292 | char *kwnames[] = { | |
5293 | (char *) "self", NULL | |
5294 | }; | |
5295 | ||
5296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
5297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5299 | { | |
5300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5301 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
5302 | ||
5303 | wxPyEndAllowThreads(__tstate); | |
5304 | if (PyErr_Occurred()) SWIG_fail; | |
5305 | } | |
c370783e | 5306 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5307 | return resultobj; |
5308 | fail: | |
5309 | return NULL; | |
5310 | } | |
5311 | ||
5312 | ||
c370783e | 5313 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5314 | PyObject *resultobj; |
5315 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5316 | double arg2 ; | |
5317 | PyObject * obj0 = 0 ; | |
5318 | PyObject * obj1 = 0 ; | |
5319 | char *kwnames[] = { | |
5320 | (char *) "self",(char *) "length", NULL | |
5321 | }; | |
5322 | ||
5323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; | |
5324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5326 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5327 | if (PyErr_Occurred()) SWIG_fail; |
5328 | { | |
5329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5330 | (arg1)->SetVectorLength(arg2); | |
5331 | ||
5332 | wxPyEndAllowThreads(__tstate); | |
5333 | if (PyErr_Occurred()) SWIG_fail; | |
5334 | } | |
5335 | Py_INCREF(Py_None); resultobj = Py_None; | |
5336 | return resultobj; | |
5337 | fail: | |
5338 | return NULL; | |
5339 | } | |
5340 | ||
5341 | ||
c370783e | 5342 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5343 | PyObject *resultobj; |
5344 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5345 | double arg2 ; | |
5346 | PyObject * obj0 = 0 ; | |
5347 | PyObject * obj1 = 0 ; | |
5348 | char *kwnames[] = { | |
5349 | (char *) "self",(char *) "degrees", NULL | |
5350 | }; | |
5351 | ||
5352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; | |
5353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5355 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5356 | if (PyErr_Occurred()) SWIG_fail; |
5357 | { | |
5358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5359 | (arg1)->SetVectorAngle(arg2); | |
5360 | ||
5361 | wxPyEndAllowThreads(__tstate); | |
5362 | if (PyErr_Occurred()) SWIG_fail; | |
5363 | } | |
5364 | Py_INCREF(Py_None); resultobj = Py_None; | |
5365 | return resultobj; | |
5366 | fail: | |
5367 | return NULL; | |
5368 | } | |
5369 | ||
5370 | ||
c370783e | 5371 | static PyObject *_wrap_Point2D_GetDistance(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5372 | PyObject *resultobj; |
5373 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5374 | wxPoint2D *arg2 = 0 ; | |
5375 | double result; | |
5376 | wxPoint2D temp2 ; | |
5377 | PyObject * obj0 = 0 ; | |
5378 | PyObject * obj1 = 0 ; | |
5379 | char *kwnames[] = { | |
5380 | (char *) "self",(char *) "pt", NULL | |
5381 | }; | |
5382 | ||
5383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
5384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5386 | { | |
5387 | arg2 = &temp2; | |
5388 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5389 | } | |
5390 | { | |
5391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5392 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
5393 | ||
5394 | wxPyEndAllowThreads(__tstate); | |
5395 | if (PyErr_Occurred()) SWIG_fail; | |
5396 | } | |
c370783e | 5397 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5398 | return resultobj; |
5399 | fail: | |
5400 | return NULL; | |
5401 | } | |
5402 | ||
5403 | ||
c370783e | 5404 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5405 | PyObject *resultobj; |
5406 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5407 | wxPoint2D *arg2 = 0 ; | |
5408 | double result; | |
5409 | wxPoint2D temp2 ; | |
5410 | PyObject * obj0 = 0 ; | |
5411 | PyObject * obj1 = 0 ; | |
5412 | char *kwnames[] = { | |
5413 | (char *) "self",(char *) "pt", NULL | |
5414 | }; | |
5415 | ||
5416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
5417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5419 | { | |
5420 | arg2 = &temp2; | |
5421 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5422 | } | |
5423 | { | |
5424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5425 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
5426 | ||
5427 | wxPyEndAllowThreads(__tstate); | |
5428 | if (PyErr_Occurred()) SWIG_fail; | |
5429 | } | |
c370783e | 5430 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5431 | return resultobj; |
5432 | fail: | |
5433 | return NULL; | |
5434 | } | |
5435 | ||
5436 | ||
c370783e | 5437 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5438 | PyObject *resultobj; |
5439 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5440 | wxPoint2D *arg2 = 0 ; | |
5441 | double result; | |
5442 | wxPoint2D temp2 ; | |
5443 | PyObject * obj0 = 0 ; | |
5444 | PyObject * obj1 = 0 ; | |
5445 | char *kwnames[] = { | |
5446 | (char *) "self",(char *) "vec", NULL | |
5447 | }; | |
5448 | ||
5449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
5450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5452 | { | |
5453 | arg2 = &temp2; | |
5454 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5455 | } | |
5456 | { | |
5457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5458 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
5459 | ||
5460 | wxPyEndAllowThreads(__tstate); | |
5461 | if (PyErr_Occurred()) SWIG_fail; | |
5462 | } | |
c370783e | 5463 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5464 | return resultobj; |
5465 | fail: | |
5466 | return NULL; | |
5467 | } | |
5468 | ||
5469 | ||
c370783e | 5470 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5471 | PyObject *resultobj; |
5472 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5473 | wxPoint2D *arg2 = 0 ; | |
5474 | double result; | |
5475 | wxPoint2D temp2 ; | |
5476 | PyObject * obj0 = 0 ; | |
5477 | PyObject * obj1 = 0 ; | |
5478 | char *kwnames[] = { | |
5479 | (char *) "self",(char *) "vec", NULL | |
5480 | }; | |
5481 | ||
5482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
5483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5485 | { | |
5486 | arg2 = &temp2; | |
5487 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5488 | } | |
5489 | { | |
5490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5491 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
5492 | ||
5493 | wxPyEndAllowThreads(__tstate); | |
5494 | if (PyErr_Occurred()) SWIG_fail; | |
5495 | } | |
c370783e | 5496 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5497 | return resultobj; |
5498 | fail: | |
5499 | return NULL; | |
5500 | } | |
5501 | ||
5502 | ||
c370783e | 5503 | static PyObject *_wrap_Point2D___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5504 | PyObject *resultobj; |
5505 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5506 | wxPoint2D result; | |
5507 | PyObject * obj0 = 0 ; | |
5508 | char *kwnames[] = { | |
5509 | (char *) "self", NULL | |
5510 | }; | |
5511 | ||
5512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
5513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5515 | { | |
5516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5517 | result = (arg1)->operator -(); | |
5518 | ||
5519 | wxPyEndAllowThreads(__tstate); | |
5520 | if (PyErr_Occurred()) SWIG_fail; | |
5521 | } | |
5522 | { | |
5523 | wxPoint2D * resultptr; | |
5524 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
5525 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); | |
5526 | } | |
5527 | return resultobj; | |
5528 | fail: | |
5529 | return NULL; | |
5530 | } | |
5531 | ||
5532 | ||
c370783e | 5533 | static PyObject *_wrap_Point2D___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5534 | PyObject *resultobj; |
5535 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5536 | wxPoint2D *arg2 = 0 ; | |
5537 | wxPoint2D *result; | |
5538 | wxPoint2D temp2 ; | |
5539 | PyObject * obj0 = 0 ; | |
5540 | PyObject * obj1 = 0 ; | |
5541 | char *kwnames[] = { | |
5542 | (char *) "self",(char *) "pt", NULL | |
5543 | }; | |
5544 | ||
5545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
5546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c370783e | 5547 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5548 | { |
5549 | arg2 = &temp2; | |
5550 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5551 | } | |
5552 | { | |
5553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5554 | { | |
5555 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
5556 | result = (wxPoint2D *) &_result_ref; | |
5557 | } | |
5558 | ||
5559 | wxPyEndAllowThreads(__tstate); | |
5560 | if (PyErr_Occurred()) SWIG_fail; | |
5561 | } | |
c370783e | 5562 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5563 | return resultobj; |
5564 | fail: | |
5565 | return NULL; | |
5566 | } | |
5567 | ||
5568 | ||
c370783e | 5569 | static PyObject *_wrap_Point2D___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5570 | PyObject *resultobj; |
5571 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5572 | wxPoint2D *arg2 = 0 ; | |
5573 | wxPoint2D *result; | |
5574 | wxPoint2D temp2 ; | |
5575 | PyObject * obj0 = 0 ; | |
5576 | PyObject * obj1 = 0 ; | |
5577 | char *kwnames[] = { | |
5578 | (char *) "self",(char *) "pt", NULL | |
5579 | }; | |
5580 | ||
5581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
5582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c370783e | 5583 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5584 | { |
5585 | arg2 = &temp2; | |
5586 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5587 | } | |
5588 | { | |
5589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5590 | { | |
5591 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
5592 | result = (wxPoint2D *) &_result_ref; | |
5593 | } | |
5594 | ||
5595 | wxPyEndAllowThreads(__tstate); | |
5596 | if (PyErr_Occurred()) SWIG_fail; | |
5597 | } | |
c370783e | 5598 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5599 | return resultobj; |
5600 | fail: | |
5601 | return NULL; | |
5602 | } | |
5603 | ||
5604 | ||
c370783e | 5605 | static PyObject *_wrap_Point2D___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5606 | PyObject *resultobj; |
5607 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5608 | wxPoint2D *arg2 = 0 ; | |
5609 | wxPoint2D *result; | |
5610 | wxPoint2D temp2 ; | |
5611 | PyObject * obj0 = 0 ; | |
5612 | PyObject * obj1 = 0 ; | |
5613 | char *kwnames[] = { | |
5614 | (char *) "self",(char *) "pt", NULL | |
5615 | }; | |
5616 | ||
5617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
5618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c370783e | 5619 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5620 | { |
5621 | arg2 = &temp2; | |
5622 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5623 | } | |
5624 | { | |
5625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5626 | { | |
5627 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
5628 | result = (wxPoint2D *) &_result_ref; | |
5629 | } | |
5630 | ||
5631 | wxPyEndAllowThreads(__tstate); | |
5632 | if (PyErr_Occurred()) SWIG_fail; | |
5633 | } | |
c370783e | 5634 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5635 | return resultobj; |
5636 | fail: | |
5637 | return NULL; | |
5638 | } | |
5639 | ||
5640 | ||
c370783e | 5641 | static PyObject *_wrap_Point2D___idiv__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5642 | PyObject *resultobj; |
5643 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5644 | wxPoint2D *arg2 = 0 ; | |
5645 | wxPoint2D *result; | |
5646 | wxPoint2D temp2 ; | |
5647 | PyObject * obj0 = 0 ; | |
5648 | PyObject * obj1 = 0 ; | |
5649 | char *kwnames[] = { | |
5650 | (char *) "self",(char *) "pt", NULL | |
5651 | }; | |
5652 | ||
5653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
5654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c370783e | 5655 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5656 | { |
5657 | arg2 = &temp2; | |
5658 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5659 | } | |
5660 | { | |
5661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5662 | { | |
5663 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
5664 | result = (wxPoint2D *) &_result_ref; | |
5665 | } | |
5666 | ||
5667 | wxPyEndAllowThreads(__tstate); | |
5668 | if (PyErr_Occurred()) SWIG_fail; | |
5669 | } | |
c370783e | 5670 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5671 | return resultobj; |
5672 | fail: | |
5673 | return NULL; | |
5674 | } | |
5675 | ||
5676 | ||
c370783e | 5677 | static PyObject *_wrap_Point2D___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5678 | PyObject *resultobj; |
5679 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5680 | wxPoint2D *arg2 = 0 ; | |
5681 | bool result; | |
5682 | wxPoint2D temp2 ; | |
5683 | PyObject * obj0 = 0 ; | |
5684 | PyObject * obj1 = 0 ; | |
5685 | char *kwnames[] = { | |
5686 | (char *) "self",(char *) "pt", NULL | |
5687 | }; | |
5688 | ||
5689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
5690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5692 | { | |
5693 | arg2 = &temp2; | |
5694 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5695 | } | |
5696 | { | |
5697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5698 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
5699 | ||
5700 | wxPyEndAllowThreads(__tstate); | |
5701 | if (PyErr_Occurred()) SWIG_fail; | |
5702 | } | |
5703 | { | |
5704 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5705 | } | |
5706 | return resultobj; | |
5707 | fail: | |
5708 | return NULL; | |
5709 | } | |
5710 | ||
5711 | ||
c370783e | 5712 | static PyObject *_wrap_Point2D___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5713 | PyObject *resultobj; |
5714 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5715 | wxPoint2D *arg2 = 0 ; | |
5716 | bool result; | |
5717 | wxPoint2D temp2 ; | |
5718 | PyObject * obj0 = 0 ; | |
5719 | PyObject * obj1 = 0 ; | |
5720 | char *kwnames[] = { | |
5721 | (char *) "self",(char *) "pt", NULL | |
5722 | }; | |
5723 | ||
5724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
5725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5727 | { | |
5728 | arg2 = &temp2; | |
5729 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5730 | } | |
5731 | { | |
5732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5733 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
5734 | ||
5735 | wxPyEndAllowThreads(__tstate); | |
5736 | if (PyErr_Occurred()) SWIG_fail; | |
5737 | } | |
5738 | { | |
5739 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5740 | } | |
5741 | return resultobj; | |
5742 | fail: | |
5743 | return NULL; | |
5744 | } | |
5745 | ||
5746 | ||
c370783e | 5747 | static PyObject *_wrap_Point2D_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5748 | PyObject *resultobj; |
5749 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5750 | double arg2 ; | |
5751 | PyObject * obj0 = 0 ; | |
5752 | PyObject * obj1 = 0 ; | |
5753 | char *kwnames[] = { | |
5754 | (char *) "self",(char *) "m_x", NULL | |
5755 | }; | |
5756 | ||
5757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; | |
5758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5760 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5761 | if (PyErr_Occurred()) SWIG_fail; |
5762 | if (arg1) (arg1)->m_x = arg2; | |
5763 | ||
5764 | Py_INCREF(Py_None); resultobj = Py_None; | |
5765 | return resultobj; | |
5766 | fail: | |
5767 | return NULL; | |
5768 | } | |
5769 | ||
5770 | ||
c370783e | 5771 | static PyObject *_wrap_Point2D_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5772 | PyObject *resultobj; |
5773 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5774 | double result; | |
5775 | PyObject * obj0 = 0 ; | |
5776 | char *kwnames[] = { | |
5777 | (char *) "self", NULL | |
5778 | }; | |
5779 | ||
5780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
5781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5783 | result = (double) ((arg1)->m_x); | |
5784 | ||
c370783e | 5785 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5786 | return resultobj; |
5787 | fail: | |
5788 | return NULL; | |
5789 | } | |
5790 | ||
5791 | ||
c370783e | 5792 | static PyObject *_wrap_Point2D_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5793 | PyObject *resultobj; |
5794 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5795 | double arg2 ; | |
5796 | PyObject * obj0 = 0 ; | |
5797 | PyObject * obj1 = 0 ; | |
5798 | char *kwnames[] = { | |
5799 | (char *) "self",(char *) "m_y", NULL | |
5800 | }; | |
5801 | ||
5802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; | |
5803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5805 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5806 | if (PyErr_Occurred()) SWIG_fail; |
5807 | if (arg1) (arg1)->m_y = arg2; | |
5808 | ||
5809 | Py_INCREF(Py_None); resultobj = Py_None; | |
5810 | return resultobj; | |
5811 | fail: | |
5812 | return NULL; | |
5813 | } | |
5814 | ||
5815 | ||
c370783e | 5816 | static PyObject *_wrap_Point2D_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5817 | PyObject *resultobj; |
5818 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5819 | double result; | |
5820 | PyObject * obj0 = 0 ; | |
5821 | char *kwnames[] = { | |
5822 | (char *) "self", NULL | |
5823 | }; | |
5824 | ||
5825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
5826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5828 | result = (double) ((arg1)->m_y); | |
5829 | ||
c370783e | 5830 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5831 | return resultobj; |
5832 | fail: | |
5833 | return NULL; | |
5834 | } | |
5835 | ||
5836 | ||
c370783e | 5837 | static PyObject *_wrap_Point2D_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5838 | PyObject *resultobj; |
5839 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5840 | double arg2 = (double) 0 ; | |
5841 | double arg3 = (double) 0 ; | |
5842 | PyObject * obj0 = 0 ; | |
5843 | PyObject * obj1 = 0 ; | |
5844 | PyObject * obj2 = 0 ; | |
5845 | char *kwnames[] = { | |
5846 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5847 | }; | |
5848 | ||
5849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5852 | if (obj1) { | |
c370783e | 5853 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5854 | if (PyErr_Occurred()) SWIG_fail; |
5855 | } | |
5856 | if (obj2) { | |
c370783e | 5857 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
5858 | if (PyErr_Occurred()) SWIG_fail; |
5859 | } | |
5860 | { | |
5861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5862 | wxPoint2D_Set(arg1,arg2,arg3); | |
5863 | ||
5864 | wxPyEndAllowThreads(__tstate); | |
5865 | if (PyErr_Occurred()) SWIG_fail; | |
5866 | } | |
5867 | Py_INCREF(Py_None); resultobj = Py_None; | |
5868 | return resultobj; | |
5869 | fail: | |
5870 | return NULL; | |
5871 | } | |
5872 | ||
5873 | ||
c370783e | 5874 | static PyObject *_wrap_Point2D_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5875 | PyObject *resultobj; |
5876 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5877 | PyObject *result; | |
5878 | PyObject * obj0 = 0 ; | |
5879 | char *kwnames[] = { | |
5880 | (char *) "self", NULL | |
5881 | }; | |
5882 | ||
5883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; | |
5884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5886 | { | |
5887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5888 | result = (PyObject *)wxPoint2D_Get(arg1); | |
5889 | ||
5890 | wxPyEndAllowThreads(__tstate); | |
5891 | if (PyErr_Occurred()) SWIG_fail; | |
5892 | } | |
5893 | resultobj = result; | |
5894 | return resultobj; | |
5895 | fail: | |
5896 | return NULL; | |
5897 | } | |
5898 | ||
5899 | ||
c370783e | 5900 | static PyObject * Point2D_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5901 | PyObject *obj; |
5902 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5903 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
5904 | Py_INCREF(obj); | |
5905 | return Py_BuildValue((char *)""); | |
5906 | } | |
c370783e | 5907 | static int _wrap_DefaultPosition_set(PyObject *) { |
d55e5bfc RD |
5908 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); |
5909 | return 1; | |
5910 | } | |
5911 | ||
5912 | ||
5913 | static PyObject *_wrap_DefaultPosition_get() { | |
5914 | PyObject *pyobj; | |
5915 | ||
5916 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); | |
5917 | return pyobj; | |
5918 | } | |
5919 | ||
5920 | ||
c370783e | 5921 | static int _wrap_DefaultSize_set(PyObject *) { |
d55e5bfc RD |
5922 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); |
5923 | return 1; | |
5924 | } | |
5925 | ||
5926 | ||
5927 | static PyObject *_wrap_DefaultSize_get() { | |
5928 | PyObject *pyobj; | |
5929 | ||
5930 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); | |
5931 | return pyobj; | |
5932 | } | |
5933 | ||
5934 | ||
c370783e | 5935 | static PyObject *_wrap_new_InputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5936 | PyObject *resultobj; |
5937 | PyObject *arg1 = (PyObject *) 0 ; | |
5938 | wxPyInputStream *result; | |
5939 | PyObject * obj0 = 0 ; | |
5940 | char *kwnames[] = { | |
5941 | (char *) "p", NULL | |
5942 | }; | |
5943 | ||
5944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
5945 | arg1 = obj0; | |
5946 | { | |
5947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5948 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
5949 | ||
5950 | wxPyEndAllowThreads(__tstate); | |
5951 | if (PyErr_Occurred()) SWIG_fail; | |
5952 | } | |
5953 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); | |
5954 | return resultobj; | |
5955 | fail: | |
5956 | return NULL; | |
5957 | } | |
5958 | ||
5959 | ||
c370783e | 5960 | static PyObject *_wrap_InputStream_close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5961 | PyObject *resultobj; |
5962 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5963 | PyObject * obj0 = 0 ; | |
5964 | char *kwnames[] = { | |
5965 | (char *) "self", NULL | |
5966 | }; | |
5967 | ||
5968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
5969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5971 | { | |
5972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5973 | (arg1)->close(); | |
5974 | ||
5975 | wxPyEndAllowThreads(__tstate); | |
5976 | if (PyErr_Occurred()) SWIG_fail; | |
5977 | } | |
5978 | Py_INCREF(Py_None); resultobj = Py_None; | |
5979 | return resultobj; | |
5980 | fail: | |
5981 | return NULL; | |
5982 | } | |
5983 | ||
5984 | ||
c370783e | 5985 | static PyObject *_wrap_InputStream_flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5986 | PyObject *resultobj; |
5987 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
5988 | PyObject * obj0 = 0 ; | |
5989 | char *kwnames[] = { | |
5990 | (char *) "self", NULL | |
5991 | }; | |
5992 | ||
5993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
5994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
5995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5996 | { | |
5997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5998 | (arg1)->flush(); | |
5999 | ||
6000 | wxPyEndAllowThreads(__tstate); | |
6001 | if (PyErr_Occurred()) SWIG_fail; | |
6002 | } | |
6003 | Py_INCREF(Py_None); resultobj = Py_None; | |
6004 | return resultobj; | |
6005 | fail: | |
6006 | return NULL; | |
6007 | } | |
6008 | ||
6009 | ||
c370783e | 6010 | static PyObject *_wrap_InputStream_eof(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6011 | PyObject *resultobj; |
6012 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6013 | bool result; | |
6014 | PyObject * obj0 = 0 ; | |
6015 | char *kwnames[] = { | |
6016 | (char *) "self", NULL | |
6017 | }; | |
6018 | ||
6019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
6020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6022 | { | |
6023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6024 | result = (bool)(arg1)->eof(); | |
6025 | ||
6026 | wxPyEndAllowThreads(__tstate); | |
6027 | if (PyErr_Occurred()) SWIG_fail; | |
6028 | } | |
6029 | { | |
6030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6031 | } | |
6032 | return resultobj; | |
6033 | fail: | |
6034 | return NULL; | |
6035 | } | |
6036 | ||
6037 | ||
c370783e | 6038 | static PyObject *_wrap_InputStream_read(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6039 | PyObject *resultobj; |
6040 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6041 | int arg2 = (int) -1 ; | |
6042 | PyObject *result; | |
6043 | PyObject * obj0 = 0 ; | |
6044 | PyObject * obj1 = 0 ; | |
6045 | char *kwnames[] = { | |
6046 | (char *) "self",(char *) "size", NULL | |
6047 | }; | |
6048 | ||
6049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; | |
6050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6052 | if (obj1) { | |
c370783e | 6053 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6054 | if (PyErr_Occurred()) SWIG_fail; |
6055 | } | |
6056 | { | |
6057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6058 | result = (PyObject *)(arg1)->read(arg2); | |
6059 | ||
6060 | wxPyEndAllowThreads(__tstate); | |
6061 | if (PyErr_Occurred()) SWIG_fail; | |
6062 | } | |
6063 | resultobj = result; | |
6064 | return resultobj; | |
6065 | fail: | |
6066 | return NULL; | |
6067 | } | |
6068 | ||
6069 | ||
c370783e | 6070 | static PyObject *_wrap_InputStream_readline(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6071 | PyObject *resultobj; |
6072 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6073 | int arg2 = (int) -1 ; | |
6074 | PyObject *result; | |
6075 | PyObject * obj0 = 0 ; | |
6076 | PyObject * obj1 = 0 ; | |
6077 | char *kwnames[] = { | |
6078 | (char *) "self",(char *) "size", NULL | |
6079 | }; | |
6080 | ||
6081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; | |
6082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6084 | if (obj1) { | |
c370783e | 6085 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6086 | if (PyErr_Occurred()) SWIG_fail; |
6087 | } | |
6088 | { | |
6089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6090 | result = (PyObject *)(arg1)->readline(arg2); | |
6091 | ||
6092 | wxPyEndAllowThreads(__tstate); | |
6093 | if (PyErr_Occurred()) SWIG_fail; | |
6094 | } | |
6095 | resultobj = result; | |
6096 | return resultobj; | |
6097 | fail: | |
6098 | return NULL; | |
6099 | } | |
6100 | ||
6101 | ||
c370783e | 6102 | static PyObject *_wrap_InputStream_readlines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6103 | PyObject *resultobj; |
6104 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6105 | int arg2 = (int) -1 ; | |
6106 | PyObject *result; | |
6107 | PyObject * obj0 = 0 ; | |
6108 | PyObject * obj1 = 0 ; | |
6109 | char *kwnames[] = { | |
6110 | (char *) "self",(char *) "sizehint", NULL | |
6111 | }; | |
6112 | ||
6113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; | |
6114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6116 | if (obj1) { | |
c370783e | 6117 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6118 | if (PyErr_Occurred()) SWIG_fail; |
6119 | } | |
6120 | { | |
6121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6122 | result = (PyObject *)(arg1)->readlines(arg2); | |
6123 | ||
6124 | wxPyEndAllowThreads(__tstate); | |
6125 | if (PyErr_Occurred()) SWIG_fail; | |
6126 | } | |
6127 | resultobj = result; | |
6128 | return resultobj; | |
6129 | fail: | |
6130 | return NULL; | |
6131 | } | |
6132 | ||
6133 | ||
c370783e | 6134 | static PyObject *_wrap_InputStream_seek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6135 | PyObject *resultobj; |
6136 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6137 | int arg2 ; | |
6138 | int arg3 = (int) 0 ; | |
6139 | PyObject * obj0 = 0 ; | |
6140 | PyObject * obj1 = 0 ; | |
6141 | PyObject * obj2 = 0 ; | |
6142 | char *kwnames[] = { | |
6143 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
6144 | }; | |
6145 | ||
6146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6149 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6150 | if (PyErr_Occurred()) SWIG_fail; |
6151 | if (obj2) { | |
c370783e | 6152 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6153 | if (PyErr_Occurred()) SWIG_fail; |
6154 | } | |
6155 | { | |
6156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6157 | (arg1)->seek(arg2,arg3); | |
6158 | ||
6159 | wxPyEndAllowThreads(__tstate); | |
6160 | if (PyErr_Occurred()) SWIG_fail; | |
6161 | } | |
6162 | Py_INCREF(Py_None); resultobj = Py_None; | |
6163 | return resultobj; | |
6164 | fail: | |
6165 | return NULL; | |
6166 | } | |
6167 | ||
6168 | ||
c370783e | 6169 | static PyObject *_wrap_InputStream_tell(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6170 | PyObject *resultobj; |
6171 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6172 | int result; | |
6173 | PyObject * obj0 = 0 ; | |
6174 | char *kwnames[] = { | |
6175 | (char *) "self", NULL | |
6176 | }; | |
6177 | ||
6178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
6179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6181 | { | |
6182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6183 | result = (int)(arg1)->tell(); | |
6184 | ||
6185 | wxPyEndAllowThreads(__tstate); | |
6186 | if (PyErr_Occurred()) SWIG_fail; | |
6187 | } | |
c370783e | 6188 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6189 | return resultobj; |
6190 | fail: | |
6191 | return NULL; | |
6192 | } | |
6193 | ||
6194 | ||
c370783e | 6195 | static PyObject *_wrap_InputStream_Peek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6196 | PyObject *resultobj; |
6197 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6198 | char result; | |
6199 | PyObject * obj0 = 0 ; | |
6200 | char *kwnames[] = { | |
6201 | (char *) "self", NULL | |
6202 | }; | |
6203 | ||
6204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
6205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6207 | { | |
6208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6209 | result = (char)(arg1)->Peek(); | |
6210 | ||
6211 | wxPyEndAllowThreads(__tstate); | |
6212 | if (PyErr_Occurred()) SWIG_fail; | |
6213 | } | |
c370783e | 6214 | resultobj = SWIG_From_char((char)result); |
d55e5bfc RD |
6215 | return resultobj; |
6216 | fail: | |
6217 | return NULL; | |
6218 | } | |
6219 | ||
6220 | ||
c370783e | 6221 | static PyObject *_wrap_InputStream_GetC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6222 | PyObject *resultobj; |
6223 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6224 | char result; | |
6225 | PyObject * obj0 = 0 ; | |
6226 | char *kwnames[] = { | |
6227 | (char *) "self", NULL | |
6228 | }; | |
6229 | ||
6230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
6231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6233 | { | |
6234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6235 | result = (char)(arg1)->GetC(); | |
6236 | ||
6237 | wxPyEndAllowThreads(__tstate); | |
6238 | if (PyErr_Occurred()) SWIG_fail; | |
6239 | } | |
c370783e | 6240 | resultobj = SWIG_From_char((char)result); |
d55e5bfc RD |
6241 | return resultobj; |
6242 | fail: | |
6243 | return NULL; | |
6244 | } | |
6245 | ||
6246 | ||
c370783e | 6247 | static PyObject *_wrap_InputStream_LastRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6248 | PyObject *resultobj; |
6249 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6250 | size_t result; | |
6251 | PyObject * obj0 = 0 ; | |
6252 | char *kwnames[] = { | |
6253 | (char *) "self", NULL | |
6254 | }; | |
6255 | ||
6256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
6257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6259 | { | |
6260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6261 | result = (size_t)(arg1)->LastRead(); | |
6262 | ||
6263 | wxPyEndAllowThreads(__tstate); | |
6264 | if (PyErr_Occurred()) SWIG_fail; | |
6265 | } | |
c370783e | 6266 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
6267 | return resultobj; |
6268 | fail: | |
6269 | return NULL; | |
6270 | } | |
6271 | ||
6272 | ||
c370783e | 6273 | static PyObject *_wrap_InputStream_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6274 | PyObject *resultobj; |
6275 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6276 | bool result; | |
6277 | PyObject * obj0 = 0 ; | |
6278 | char *kwnames[] = { | |
6279 | (char *) "self", NULL | |
6280 | }; | |
6281 | ||
6282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
6283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6285 | { | |
6286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6287 | result = (bool)(arg1)->CanRead(); | |
6288 | ||
6289 | wxPyEndAllowThreads(__tstate); | |
6290 | if (PyErr_Occurred()) SWIG_fail; | |
6291 | } | |
6292 | { | |
6293 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6294 | } | |
6295 | return resultobj; | |
6296 | fail: | |
6297 | return NULL; | |
6298 | } | |
6299 | ||
6300 | ||
c370783e | 6301 | static PyObject *_wrap_InputStream_Eof(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6302 | PyObject *resultobj; |
6303 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6304 | bool result; | |
6305 | PyObject * obj0 = 0 ; | |
6306 | char *kwnames[] = { | |
6307 | (char *) "self", NULL | |
6308 | }; | |
6309 | ||
6310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
6311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6313 | { | |
6314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6315 | result = (bool)(arg1)->Eof(); | |
6316 | ||
6317 | wxPyEndAllowThreads(__tstate); | |
6318 | if (PyErr_Occurred()) SWIG_fail; | |
6319 | } | |
6320 | { | |
6321 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6322 | } | |
6323 | return resultobj; | |
6324 | fail: | |
6325 | return NULL; | |
6326 | } | |
6327 | ||
6328 | ||
c370783e | 6329 | static PyObject *_wrap_InputStream_Ungetch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6330 | PyObject *resultobj; |
6331 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6332 | char arg2 ; | |
6333 | bool result; | |
6334 | PyObject * obj0 = 0 ; | |
6335 | PyObject * obj1 = 0 ; | |
6336 | char *kwnames[] = { | |
6337 | (char *) "self",(char *) "c", NULL | |
6338 | }; | |
6339 | ||
6340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; | |
6341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6343 | arg2 = (char)SWIG_As_char(obj1); |
d55e5bfc RD |
6344 | if (PyErr_Occurred()) SWIG_fail; |
6345 | { | |
6346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6347 | result = (bool)(arg1)->Ungetch(arg2); | |
6348 | ||
6349 | wxPyEndAllowThreads(__tstate); | |
6350 | if (PyErr_Occurred()) SWIG_fail; | |
6351 | } | |
6352 | { | |
6353 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6354 | } | |
6355 | return resultobj; | |
6356 | fail: | |
6357 | return NULL; | |
6358 | } | |
6359 | ||
6360 | ||
c370783e | 6361 | static PyObject *_wrap_InputStream_SeekI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6362 | PyObject *resultobj; |
6363 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6364 | long arg2 ; | |
6365 | int arg3 = (int) wxFromStart ; | |
6366 | long result; | |
6367 | PyObject * obj0 = 0 ; | |
6368 | PyObject * obj1 = 0 ; | |
6369 | PyObject * obj2 = 0 ; | |
6370 | char *kwnames[] = { | |
6371 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
6372 | }; | |
6373 | ||
6374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6377 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
6378 | if (PyErr_Occurred()) SWIG_fail; |
6379 | if (obj2) { | |
c370783e | 6380 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6381 | if (PyErr_Occurred()) SWIG_fail; |
6382 | } | |
6383 | { | |
6384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6385 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
6386 | ||
6387 | wxPyEndAllowThreads(__tstate); | |
6388 | if (PyErr_Occurred()) SWIG_fail; | |
6389 | } | |
c370783e | 6390 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
6391 | return resultobj; |
6392 | fail: | |
6393 | return NULL; | |
6394 | } | |
6395 | ||
6396 | ||
c370783e | 6397 | static PyObject *_wrap_InputStream_TellI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6398 | PyObject *resultobj; |
6399 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6400 | long result; | |
6401 | PyObject * obj0 = 0 ; | |
6402 | char *kwnames[] = { | |
6403 | (char *) "self", NULL | |
6404 | }; | |
6405 | ||
6406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
6407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6409 | { | |
6410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6411 | result = (long)(arg1)->TellI(); | |
6412 | ||
6413 | wxPyEndAllowThreads(__tstate); | |
6414 | if (PyErr_Occurred()) SWIG_fail; | |
6415 | } | |
c370783e | 6416 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
6417 | return resultobj; |
6418 | fail: | |
6419 | return NULL; | |
6420 | } | |
6421 | ||
6422 | ||
c370783e | 6423 | static PyObject * InputStream_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6424 | PyObject *obj; |
6425 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6426 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
6427 | Py_INCREF(obj); | |
6428 | return Py_BuildValue((char *)""); | |
6429 | } | |
c370783e | 6430 | static PyObject *_wrap_OutputStream_write(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6431 | PyObject *resultobj; |
6432 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
6433 | PyObject *arg2 = (PyObject *) 0 ; | |
6434 | PyObject * obj0 = 0 ; | |
6435 | PyObject * obj1 = 0 ; | |
6436 | char *kwnames[] = { | |
6437 | (char *) "self",(char *) "obj", NULL | |
6438 | }; | |
6439 | ||
6440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
6441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream, | |
6442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6443 | arg2 = obj1; | |
6444 | { | |
6445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6446 | wxOutputStream_write(arg1,arg2); | |
6447 | ||
6448 | wxPyEndAllowThreads(__tstate); | |
6449 | if (PyErr_Occurred()) SWIG_fail; | |
6450 | } | |
6451 | Py_INCREF(Py_None); resultobj = Py_None; | |
6452 | return resultobj; | |
6453 | fail: | |
6454 | return NULL; | |
6455 | } | |
6456 | ||
6457 | ||
c370783e | 6458 | static PyObject * OutputStream_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6459 | PyObject *obj; |
6460 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6461 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
6462 | Py_INCREF(obj); | |
6463 | return Py_BuildValue((char *)""); | |
6464 | } | |
c370783e | 6465 | static PyObject *_wrap_new_FSFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6466 | PyObject *resultobj; |
6467 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
6468 | wxString *arg2 = 0 ; | |
6469 | wxString *arg3 = 0 ; | |
6470 | wxString *arg4 = 0 ; | |
6471 | wxDateTime arg5 ; | |
6472 | wxFSFile *result; | |
6473 | wxPyInputStream *temp1 ; | |
6474 | bool created1 ; | |
b411df4a RD |
6475 | bool temp2 = false ; |
6476 | bool temp3 = false ; | |
6477 | bool temp4 = false ; | |
d55e5bfc RD |
6478 | wxDateTime *argp5 ; |
6479 | PyObject * obj0 = 0 ; | |
6480 | PyObject * obj1 = 0 ; | |
6481 | PyObject * obj2 = 0 ; | |
6482 | PyObject * obj3 = 0 ; | |
6483 | PyObject * obj4 = 0 ; | |
6484 | char *kwnames[] = { | |
6485 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
6486 | }; | |
6487 | ||
6488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6489 | { | |
6490 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
6491 | arg1 = temp1->m_wxis; | |
b411df4a | 6492 | created1 = false; |
d55e5bfc RD |
6493 | } else { |
6494 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
b411df4a | 6495 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
6496 | if (arg1 == NULL) { |
6497 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
6498 | SWIG_fail; | |
6499 | } | |
b411df4a | 6500 | created1 = true; |
d55e5bfc RD |
6501 | } |
6502 | } | |
6503 | { | |
6504 | arg2 = wxString_in_helper(obj1); | |
6505 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 6506 | temp2 = true; |
d55e5bfc RD |
6507 | } |
6508 | { | |
6509 | arg3 = wxString_in_helper(obj2); | |
6510 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 6511 | temp3 = true; |
d55e5bfc RD |
6512 | } |
6513 | { | |
6514 | arg4 = wxString_in_helper(obj3); | |
6515 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 6516 | temp4 = true; |
d55e5bfc RD |
6517 | } |
6518 | if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime, | |
6519 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
6520 | arg5 = *argp5; | |
6521 | { | |
6522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6523 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
6524 | ||
6525 | wxPyEndAllowThreads(__tstate); | |
6526 | if (PyErr_Occurred()) SWIG_fail; | |
6527 | } | |
6528 | { | |
412d302d | 6529 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
6530 | } |
6531 | { | |
6532 | if (created1) | |
6533 | delete arg1; | |
6534 | } | |
6535 | { | |
6536 | if (temp2) | |
6537 | delete arg2; | |
6538 | } | |
6539 | { | |
6540 | if (temp3) | |
6541 | delete arg3; | |
6542 | } | |
6543 | { | |
6544 | if (temp4) | |
6545 | delete arg4; | |
6546 | } | |
6547 | return resultobj; | |
6548 | fail: | |
6549 | { | |
6550 | if (created1) | |
6551 | delete arg1; | |
6552 | } | |
6553 | { | |
6554 | if (temp2) | |
6555 | delete arg2; | |
6556 | } | |
6557 | { | |
6558 | if (temp3) | |
6559 | delete arg3; | |
6560 | } | |
6561 | { | |
6562 | if (temp4) | |
6563 | delete arg4; | |
6564 | } | |
6565 | return NULL; | |
6566 | } | |
6567 | ||
6568 | ||
c370783e | 6569 | static PyObject *_wrap_delete_FSFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6570 | PyObject *resultobj; |
6571 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6572 | PyObject * obj0 = 0 ; | |
6573 | char *kwnames[] = { | |
6574 | (char *) "self", NULL | |
6575 | }; | |
6576 | ||
6577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail; | |
6578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6580 | { | |
6581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6582 | delete arg1; | |
6583 | ||
6584 | wxPyEndAllowThreads(__tstate); | |
6585 | if (PyErr_Occurred()) SWIG_fail; | |
6586 | } | |
6587 | Py_INCREF(Py_None); resultobj = Py_None; | |
6588 | return resultobj; | |
6589 | fail: | |
6590 | return NULL; | |
6591 | } | |
6592 | ||
6593 | ||
c370783e | 6594 | static PyObject *_wrap_FSFile_GetStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6595 | PyObject *resultobj; |
6596 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6597 | wxInputStream *result; | |
6598 | PyObject * obj0 = 0 ; | |
6599 | char *kwnames[] = { | |
6600 | (char *) "self", NULL | |
6601 | }; | |
6602 | ||
6603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
6604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6606 | { | |
6607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6608 | result = (wxInputStream *)(arg1)->GetStream(); | |
6609 | ||
6610 | wxPyEndAllowThreads(__tstate); | |
6611 | if (PyErr_Occurred()) SWIG_fail; | |
6612 | } | |
6613 | { | |
6614 | wxPyInputStream * _ptr = NULL; | |
6615 | ||
6616 | if (result) { | |
6617 | _ptr = new wxPyInputStream(result); | |
6618 | } | |
b411df4a | 6619 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), true); |
d55e5bfc RD |
6620 | } |
6621 | return resultobj; | |
6622 | fail: | |
6623 | return NULL; | |
6624 | } | |
6625 | ||
6626 | ||
c370783e | 6627 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6628 | PyObject *resultobj; |
6629 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6630 | wxString *result; | |
6631 | PyObject * obj0 = 0 ; | |
6632 | char *kwnames[] = { | |
6633 | (char *) "self", NULL | |
6634 | }; | |
6635 | ||
6636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
6637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6639 | { | |
6640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6641 | { | |
6642 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
6643 | result = (wxString *) &_result_ref; | |
6644 | } | |
6645 | ||
6646 | wxPyEndAllowThreads(__tstate); | |
6647 | if (PyErr_Occurred()) SWIG_fail; | |
6648 | } | |
6649 | { | |
6650 | #if wxUSE_UNICODE | |
6651 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6652 | #else | |
6653 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6654 | #endif | |
6655 | } | |
6656 | return resultobj; | |
6657 | fail: | |
6658 | return NULL; | |
6659 | } | |
6660 | ||
6661 | ||
c370783e | 6662 | static PyObject *_wrap_FSFile_GetLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6663 | PyObject *resultobj; |
6664 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6665 | wxString *result; | |
6666 | PyObject * obj0 = 0 ; | |
6667 | char *kwnames[] = { | |
6668 | (char *) "self", NULL | |
6669 | }; | |
6670 | ||
6671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
6672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6674 | { | |
6675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6676 | { | |
6677 | wxString const &_result_ref = (arg1)->GetLocation(); | |
6678 | result = (wxString *) &_result_ref; | |
6679 | } | |
6680 | ||
6681 | wxPyEndAllowThreads(__tstate); | |
6682 | if (PyErr_Occurred()) SWIG_fail; | |
6683 | } | |
6684 | { | |
6685 | #if wxUSE_UNICODE | |
6686 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6687 | #else | |
6688 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6689 | #endif | |
6690 | } | |
6691 | return resultobj; | |
6692 | fail: | |
6693 | return NULL; | |
6694 | } | |
6695 | ||
6696 | ||
c370783e | 6697 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6698 | PyObject *resultobj; |
6699 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6700 | wxString *result; | |
6701 | PyObject * obj0 = 0 ; | |
6702 | char *kwnames[] = { | |
6703 | (char *) "self", NULL | |
6704 | }; | |
6705 | ||
6706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
6707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6709 | { | |
6710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6711 | { | |
6712 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
6713 | result = (wxString *) &_result_ref; | |
6714 | } | |
6715 | ||
6716 | wxPyEndAllowThreads(__tstate); | |
6717 | if (PyErr_Occurred()) SWIG_fail; | |
6718 | } | |
6719 | { | |
6720 | #if wxUSE_UNICODE | |
6721 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6722 | #else | |
6723 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6724 | #endif | |
6725 | } | |
6726 | return resultobj; | |
6727 | fail: | |
6728 | return NULL; | |
6729 | } | |
6730 | ||
6731 | ||
c370783e | 6732 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6733 | PyObject *resultobj; |
6734 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6735 | wxDateTime result; | |
6736 | PyObject * obj0 = 0 ; | |
6737 | char *kwnames[] = { | |
6738 | (char *) "self", NULL | |
6739 | }; | |
6740 | ||
6741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
6742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6744 | { | |
6745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6746 | result = (arg1)->GetModificationTime(); | |
6747 | ||
6748 | wxPyEndAllowThreads(__tstate); | |
6749 | if (PyErr_Occurred()) SWIG_fail; | |
6750 | } | |
6751 | { | |
6752 | wxDateTime * resultptr; | |
6753 | resultptr = new wxDateTime((wxDateTime &) result); | |
6754 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
6755 | } | |
6756 | return resultobj; | |
6757 | fail: | |
6758 | return NULL; | |
6759 | } | |
6760 | ||
6761 | ||
c370783e | 6762 | static PyObject * FSFile_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6763 | PyObject *obj; |
6764 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6765 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
6766 | Py_INCREF(obj); | |
6767 | return Py_BuildValue((char *)""); | |
6768 | } | |
c370783e | 6769 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6770 | PyObject *obj; |
6771 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6772 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
6773 | Py_INCREF(obj); | |
6774 | return Py_BuildValue((char *)""); | |
6775 | } | |
c370783e | 6776 | static PyObject *_wrap_new_FileSystemHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6777 | PyObject *resultobj; |
6778 | wxPyFileSystemHandler *result; | |
6779 | char *kwnames[] = { | |
6780 | NULL | |
6781 | }; | |
6782 | ||
6783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
6784 | { | |
6785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6786 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
6787 | ||
6788 | wxPyEndAllowThreads(__tstate); | |
6789 | if (PyErr_Occurred()) SWIG_fail; | |
6790 | } | |
6791 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); | |
6792 | return resultobj; | |
6793 | fail: | |
6794 | return NULL; | |
6795 | } | |
6796 | ||
6797 | ||
c370783e | 6798 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6799 | PyObject *resultobj; |
6800 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6801 | PyObject *arg2 = (PyObject *) 0 ; | |
6802 | PyObject *arg3 = (PyObject *) 0 ; | |
6803 | PyObject * obj0 = 0 ; | |
6804 | PyObject * obj1 = 0 ; | |
6805 | PyObject * obj2 = 0 ; | |
6806 | char *kwnames[] = { | |
6807 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6808 | }; | |
6809 | ||
6810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6813 | arg2 = obj1; | |
6814 | arg3 = obj2; | |
6815 | { | |
6816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6817 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6818 | ||
6819 | wxPyEndAllowThreads(__tstate); | |
6820 | if (PyErr_Occurred()) SWIG_fail; | |
6821 | } | |
6822 | Py_INCREF(Py_None); resultobj = Py_None; | |
6823 | return resultobj; | |
6824 | fail: | |
6825 | return NULL; | |
6826 | } | |
6827 | ||
6828 | ||
c370783e | 6829 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6830 | PyObject *resultobj; |
6831 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6832 | wxString *arg2 = 0 ; | |
6833 | bool result; | |
b411df4a | 6834 | bool temp2 = false ; |
d55e5bfc RD |
6835 | PyObject * obj0 = 0 ; |
6836 | PyObject * obj1 = 0 ; | |
6837 | char *kwnames[] = { | |
6838 | (char *) "self",(char *) "location", NULL | |
6839 | }; | |
6840 | ||
6841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
6842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6844 | { | |
6845 | arg2 = wxString_in_helper(obj1); | |
6846 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 6847 | temp2 = true; |
d55e5bfc RD |
6848 | } |
6849 | { | |
6850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6851 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
6852 | ||
6853 | wxPyEndAllowThreads(__tstate); | |
6854 | if (PyErr_Occurred()) SWIG_fail; | |
6855 | } | |
6856 | { | |
6857 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6858 | } | |
6859 | { | |
6860 | if (temp2) | |
6861 | delete arg2; | |
6862 | } | |
6863 | return resultobj; | |
6864 | fail: | |
6865 | { | |
6866 | if (temp2) | |
6867 | delete arg2; | |
6868 | } | |
6869 | return NULL; | |
6870 | } | |
6871 | ||
6872 | ||
c370783e | 6873 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6874 | PyObject *resultobj; |
6875 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6876 | wxFileSystem *arg2 = 0 ; | |
6877 | wxString *arg3 = 0 ; | |
6878 | wxFSFile *result; | |
b411df4a | 6879 | bool temp3 = false ; |
d55e5bfc RD |
6880 | PyObject * obj0 = 0 ; |
6881 | PyObject * obj1 = 0 ; | |
6882 | PyObject * obj2 = 0 ; | |
6883 | char *kwnames[] = { | |
6884 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
6885 | }; | |
6886 | ||
6887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6890 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
6891 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6892 | SWIG_fail; | |
6893 | if (arg2 == NULL) { | |
6894 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6895 | SWIG_fail; | |
6896 | } | |
6897 | { | |
6898 | arg3 = wxString_in_helper(obj2); | |
6899 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 6900 | temp3 = true; |
d55e5bfc RD |
6901 | } |
6902 | { | |
6903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6904 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
6905 | ||
6906 | wxPyEndAllowThreads(__tstate); | |
6907 | if (PyErr_Occurred()) SWIG_fail; | |
6908 | } | |
6909 | { | |
4cf4100f | 6910 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
6911 | } |
6912 | { | |
6913 | if (temp3) | |
6914 | delete arg3; | |
6915 | } | |
6916 | return resultobj; | |
6917 | fail: | |
6918 | { | |
6919 | if (temp3) | |
6920 | delete arg3; | |
6921 | } | |
6922 | return NULL; | |
6923 | } | |
6924 | ||
6925 | ||
c370783e | 6926 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6927 | PyObject *resultobj; |
6928 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6929 | wxString *arg2 = 0 ; | |
6930 | int arg3 = (int) 0 ; | |
6931 | wxString result; | |
b411df4a | 6932 | bool temp2 = false ; |
d55e5bfc RD |
6933 | PyObject * obj0 = 0 ; |
6934 | PyObject * obj1 = 0 ; | |
6935 | PyObject * obj2 = 0 ; | |
6936 | char *kwnames[] = { | |
6937 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
6938 | }; | |
6939 | ||
6940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6943 | { | |
6944 | arg2 = wxString_in_helper(obj1); | |
6945 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 6946 | temp2 = true; |
d55e5bfc RD |
6947 | } |
6948 | if (obj2) { | |
c370783e | 6949 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6950 | if (PyErr_Occurred()) SWIG_fail; |
6951 | } | |
6952 | { | |
6953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6954 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
6955 | ||
6956 | wxPyEndAllowThreads(__tstate); | |
6957 | if (PyErr_Occurred()) SWIG_fail; | |
6958 | } | |
6959 | { | |
6960 | #if wxUSE_UNICODE | |
6961 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6962 | #else | |
6963 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6964 | #endif | |
6965 | } | |
6966 | { | |
6967 | if (temp2) | |
6968 | delete arg2; | |
6969 | } | |
6970 | return resultobj; | |
6971 | fail: | |
6972 | { | |
6973 | if (temp2) | |
6974 | delete arg2; | |
6975 | } | |
6976 | return NULL; | |
6977 | } | |
6978 | ||
6979 | ||
c370783e | 6980 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6981 | PyObject *resultobj; |
6982 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6983 | wxString result; | |
6984 | PyObject * obj0 = 0 ; | |
6985 | char *kwnames[] = { | |
6986 | (char *) "self", NULL | |
6987 | }; | |
6988 | ||
6989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
6990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6992 | { | |
6993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6994 | result = (arg1)->FindNext(); | |
6995 | ||
6996 | wxPyEndAllowThreads(__tstate); | |
6997 | if (PyErr_Occurred()) SWIG_fail; | |
6998 | } | |
6999 | { | |
7000 | #if wxUSE_UNICODE | |
7001 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7002 | #else | |
7003 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7004 | #endif | |
7005 | } | |
7006 | return resultobj; | |
7007 | fail: | |
7008 | return NULL; | |
7009 | } | |
7010 | ||
7011 | ||
c370783e | 7012 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7013 | PyObject *resultobj; |
7014 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7015 | wxString *arg2 = 0 ; | |
7016 | wxString result; | |
b411df4a | 7017 | bool temp2 = false ; |
d55e5bfc RD |
7018 | PyObject * obj0 = 0 ; |
7019 | PyObject * obj1 = 0 ; | |
7020 | char *kwnames[] = { | |
7021 | (char *) "self",(char *) "location", NULL | |
7022 | }; | |
7023 | ||
7024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
7025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7027 | { | |
7028 | arg2 = wxString_in_helper(obj1); | |
7029 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7030 | temp2 = true; |
d55e5bfc RD |
7031 | } |
7032 | { | |
7033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7034 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
7035 | ||
7036 | wxPyEndAllowThreads(__tstate); | |
7037 | if (PyErr_Occurred()) SWIG_fail; | |
7038 | } | |
7039 | { | |
7040 | #if wxUSE_UNICODE | |
7041 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7042 | #else | |
7043 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7044 | #endif | |
7045 | } | |
7046 | { | |
7047 | if (temp2) | |
7048 | delete arg2; | |
7049 | } | |
7050 | return resultobj; | |
7051 | fail: | |
7052 | { | |
7053 | if (temp2) | |
7054 | delete arg2; | |
7055 | } | |
7056 | return NULL; | |
7057 | } | |
7058 | ||
7059 | ||
c370783e | 7060 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7061 | PyObject *resultobj; |
7062 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7063 | wxString *arg2 = 0 ; | |
7064 | wxString result; | |
b411df4a | 7065 | bool temp2 = false ; |
d55e5bfc RD |
7066 | PyObject * obj0 = 0 ; |
7067 | PyObject * obj1 = 0 ; | |
7068 | char *kwnames[] = { | |
7069 | (char *) "self",(char *) "location", NULL | |
7070 | }; | |
7071 | ||
7072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
7073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7075 | { | |
7076 | arg2 = wxString_in_helper(obj1); | |
7077 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7078 | temp2 = true; |
d55e5bfc RD |
7079 | } |
7080 | { | |
7081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7082 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
7083 | ||
7084 | wxPyEndAllowThreads(__tstate); | |
7085 | if (PyErr_Occurred()) SWIG_fail; | |
7086 | } | |
7087 | { | |
7088 | #if wxUSE_UNICODE | |
7089 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7090 | #else | |
7091 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7092 | #endif | |
7093 | } | |
7094 | { | |
7095 | if (temp2) | |
7096 | delete arg2; | |
7097 | } | |
7098 | return resultobj; | |
7099 | fail: | |
7100 | { | |
7101 | if (temp2) | |
7102 | delete arg2; | |
7103 | } | |
7104 | return NULL; | |
7105 | } | |
7106 | ||
7107 | ||
c370783e | 7108 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7109 | PyObject *resultobj; |
7110 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7111 | wxString *arg2 = 0 ; | |
7112 | wxString result; | |
b411df4a | 7113 | bool temp2 = false ; |
d55e5bfc RD |
7114 | PyObject * obj0 = 0 ; |
7115 | PyObject * obj1 = 0 ; | |
7116 | char *kwnames[] = { | |
7117 | (char *) "self",(char *) "location", NULL | |
7118 | }; | |
7119 | ||
7120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
7121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7123 | { | |
7124 | arg2 = wxString_in_helper(obj1); | |
7125 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7126 | temp2 = true; |
d55e5bfc RD |
7127 | } |
7128 | { | |
7129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7130 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
7131 | ||
7132 | wxPyEndAllowThreads(__tstate); | |
7133 | if (PyErr_Occurred()) SWIG_fail; | |
7134 | } | |
7135 | { | |
7136 | #if wxUSE_UNICODE | |
7137 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7138 | #else | |
7139 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7140 | #endif | |
7141 | } | |
7142 | { | |
7143 | if (temp2) | |
7144 | delete arg2; | |
7145 | } | |
7146 | return resultobj; | |
7147 | fail: | |
7148 | { | |
7149 | if (temp2) | |
7150 | delete arg2; | |
7151 | } | |
7152 | return NULL; | |
7153 | } | |
7154 | ||
7155 | ||
c370783e | 7156 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7157 | PyObject *resultobj; |
7158 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7159 | wxString *arg2 = 0 ; | |
7160 | wxString result; | |
b411df4a | 7161 | bool temp2 = false ; |
d55e5bfc RD |
7162 | PyObject * obj0 = 0 ; |
7163 | PyObject * obj1 = 0 ; | |
7164 | char *kwnames[] = { | |
7165 | (char *) "self",(char *) "location", NULL | |
7166 | }; | |
7167 | ||
7168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
7169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7171 | { | |
7172 | arg2 = wxString_in_helper(obj1); | |
7173 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7174 | temp2 = true; |
d55e5bfc RD |
7175 | } |
7176 | { | |
7177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7178 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
7179 | ||
7180 | wxPyEndAllowThreads(__tstate); | |
7181 | if (PyErr_Occurred()) SWIG_fail; | |
7182 | } | |
7183 | { | |
7184 | #if wxUSE_UNICODE | |
7185 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7186 | #else | |
7187 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7188 | #endif | |
7189 | } | |
7190 | { | |
7191 | if (temp2) | |
7192 | delete arg2; | |
7193 | } | |
7194 | return resultobj; | |
7195 | fail: | |
7196 | { | |
7197 | if (temp2) | |
7198 | delete arg2; | |
7199 | } | |
7200 | return NULL; | |
7201 | } | |
7202 | ||
7203 | ||
c370783e | 7204 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7205 | PyObject *resultobj; |
7206 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7207 | wxString *arg2 = 0 ; | |
7208 | wxString result; | |
b411df4a | 7209 | bool temp2 = false ; |
d55e5bfc RD |
7210 | PyObject * obj0 = 0 ; |
7211 | PyObject * obj1 = 0 ; | |
7212 | char *kwnames[] = { | |
7213 | (char *) "self",(char *) "location", NULL | |
7214 | }; | |
7215 | ||
7216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
7217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7219 | { | |
7220 | arg2 = wxString_in_helper(obj1); | |
7221 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7222 | temp2 = true; |
d55e5bfc RD |
7223 | } |
7224 | { | |
7225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7226 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
7227 | ||
7228 | wxPyEndAllowThreads(__tstate); | |
7229 | if (PyErr_Occurred()) SWIG_fail; | |
7230 | } | |
7231 | { | |
7232 | #if wxUSE_UNICODE | |
7233 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7234 | #else | |
7235 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7236 | #endif | |
7237 | } | |
7238 | { | |
7239 | if (temp2) | |
7240 | delete arg2; | |
7241 | } | |
7242 | return resultobj; | |
7243 | fail: | |
7244 | { | |
7245 | if (temp2) | |
7246 | delete arg2; | |
7247 | } | |
7248 | return NULL; | |
7249 | } | |
7250 | ||
7251 | ||
c370783e | 7252 | static PyObject * FileSystemHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7253 | PyObject *obj; |
7254 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7255 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
7256 | Py_INCREF(obj); | |
7257 | return Py_BuildValue((char *)""); | |
7258 | } | |
c370783e | 7259 | static PyObject *_wrap_new_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7260 | PyObject *resultobj; |
7261 | wxFileSystem *result; | |
7262 | char *kwnames[] = { | |
7263 | NULL | |
7264 | }; | |
7265 | ||
7266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
7267 | { | |
7268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7269 | result = (wxFileSystem *)new wxFileSystem(); | |
7270 | ||
7271 | wxPyEndAllowThreads(__tstate); | |
7272 | if (PyErr_Occurred()) SWIG_fail; | |
7273 | } | |
7274 | { | |
412d302d | 7275 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7276 | } |
7277 | return resultobj; | |
7278 | fail: | |
7279 | return NULL; | |
7280 | } | |
7281 | ||
7282 | ||
c370783e | 7283 | static PyObject *_wrap_delete_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7284 | PyObject *resultobj; |
7285 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7286 | PyObject * obj0 = 0 ; | |
7287 | char *kwnames[] = { | |
7288 | (char *) "self", NULL | |
7289 | }; | |
7290 | ||
7291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
7292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7294 | { | |
7295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7296 | delete arg1; | |
7297 | ||
7298 | wxPyEndAllowThreads(__tstate); | |
7299 | if (PyErr_Occurred()) SWIG_fail; | |
7300 | } | |
7301 | Py_INCREF(Py_None); resultobj = Py_None; | |
7302 | return resultobj; | |
7303 | fail: | |
7304 | return NULL; | |
7305 | } | |
7306 | ||
7307 | ||
c370783e | 7308 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7309 | PyObject *resultobj; |
7310 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7311 | wxString *arg2 = 0 ; | |
b411df4a RD |
7312 | bool arg3 = (bool) false ; |
7313 | bool temp2 = false ; | |
d55e5bfc RD |
7314 | PyObject * obj0 = 0 ; |
7315 | PyObject * obj1 = 0 ; | |
7316 | PyObject * obj2 = 0 ; | |
7317 | char *kwnames[] = { | |
7318 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
7319 | }; | |
7320 | ||
7321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7324 | { | |
7325 | arg2 = wxString_in_helper(obj1); | |
7326 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7327 | temp2 = true; |
d55e5bfc RD |
7328 | } |
7329 | if (obj2) { | |
c370783e | 7330 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
7331 | if (PyErr_Occurred()) SWIG_fail; |
7332 | } | |
7333 | { | |
7334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7335 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
7336 | ||
7337 | wxPyEndAllowThreads(__tstate); | |
7338 | if (PyErr_Occurred()) SWIG_fail; | |
7339 | } | |
7340 | Py_INCREF(Py_None); resultobj = Py_None; | |
7341 | { | |
7342 | if (temp2) | |
7343 | delete arg2; | |
7344 | } | |
7345 | return resultobj; | |
7346 | fail: | |
7347 | { | |
7348 | if (temp2) | |
7349 | delete arg2; | |
7350 | } | |
7351 | return NULL; | |
7352 | } | |
7353 | ||
7354 | ||
c370783e | 7355 | static PyObject *_wrap_FileSystem_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7356 | PyObject *resultobj; |
7357 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7358 | wxString result; | |
7359 | PyObject * obj0 = 0 ; | |
7360 | char *kwnames[] = { | |
7361 | (char *) "self", NULL | |
7362 | }; | |
7363 | ||
7364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
7365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7367 | { | |
7368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7369 | result = (arg1)->GetPath(); | |
7370 | ||
7371 | wxPyEndAllowThreads(__tstate); | |
7372 | if (PyErr_Occurred()) SWIG_fail; | |
7373 | } | |
7374 | { | |
7375 | #if wxUSE_UNICODE | |
7376 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7377 | #else | |
7378 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7379 | #endif | |
7380 | } | |
7381 | return resultobj; | |
7382 | fail: | |
7383 | return NULL; | |
7384 | } | |
7385 | ||
7386 | ||
c370783e | 7387 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7388 | PyObject *resultobj; |
7389 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7390 | wxString *arg2 = 0 ; | |
7391 | wxFSFile *result; | |
b411df4a | 7392 | bool temp2 = false ; |
d55e5bfc RD |
7393 | PyObject * obj0 = 0 ; |
7394 | PyObject * obj1 = 0 ; | |
7395 | char *kwnames[] = { | |
7396 | (char *) "self",(char *) "location", NULL | |
7397 | }; | |
7398 | ||
7399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
7400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7402 | { | |
7403 | arg2 = wxString_in_helper(obj1); | |
7404 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7405 | temp2 = true; |
d55e5bfc RD |
7406 | } |
7407 | { | |
7408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7409 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
7410 | ||
7411 | wxPyEndAllowThreads(__tstate); | |
7412 | if (PyErr_Occurred()) SWIG_fail; | |
7413 | } | |
7414 | { | |
4cf4100f | 7415 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7416 | } |
7417 | { | |
7418 | if (temp2) | |
7419 | delete arg2; | |
7420 | } | |
7421 | return resultobj; | |
7422 | fail: | |
7423 | { | |
7424 | if (temp2) | |
7425 | delete arg2; | |
7426 | } | |
7427 | return NULL; | |
7428 | } | |
7429 | ||
7430 | ||
c370783e | 7431 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7432 | PyObject *resultobj; |
7433 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7434 | wxString *arg2 = 0 ; | |
7435 | int arg3 = (int) 0 ; | |
7436 | wxString result; | |
b411df4a | 7437 | bool temp2 = false ; |
d55e5bfc RD |
7438 | PyObject * obj0 = 0 ; |
7439 | PyObject * obj1 = 0 ; | |
7440 | PyObject * obj2 = 0 ; | |
7441 | char *kwnames[] = { | |
7442 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7443 | }; | |
7444 | ||
7445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7448 | { | |
7449 | arg2 = wxString_in_helper(obj1); | |
7450 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7451 | temp2 = true; |
d55e5bfc RD |
7452 | } |
7453 | if (obj2) { | |
c370783e | 7454 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
7455 | if (PyErr_Occurred()) SWIG_fail; |
7456 | } | |
7457 | { | |
7458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7459 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7460 | ||
7461 | wxPyEndAllowThreads(__tstate); | |
7462 | if (PyErr_Occurred()) SWIG_fail; | |
7463 | } | |
7464 | { | |
7465 | #if wxUSE_UNICODE | |
7466 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7467 | #else | |
7468 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7469 | #endif | |
7470 | } | |
7471 | { | |
7472 | if (temp2) | |
7473 | delete arg2; | |
7474 | } | |
7475 | return resultobj; | |
7476 | fail: | |
7477 | { | |
7478 | if (temp2) | |
7479 | delete arg2; | |
7480 | } | |
7481 | return NULL; | |
7482 | } | |
7483 | ||
7484 | ||
c370783e | 7485 | static PyObject *_wrap_FileSystem_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7486 | PyObject *resultobj; |
7487 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7488 | wxString result; | |
7489 | PyObject * obj0 = 0 ; | |
7490 | char *kwnames[] = { | |
7491 | (char *) "self", NULL | |
7492 | }; | |
7493 | ||
7494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
7495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7497 | { | |
7498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7499 | result = (arg1)->FindNext(); | |
7500 | ||
7501 | wxPyEndAllowThreads(__tstate); | |
7502 | if (PyErr_Occurred()) SWIG_fail; | |
7503 | } | |
7504 | { | |
7505 | #if wxUSE_UNICODE | |
7506 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7507 | #else | |
7508 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7509 | #endif | |
7510 | } | |
7511 | return resultobj; | |
7512 | fail: | |
7513 | return NULL; | |
7514 | } | |
7515 | ||
7516 | ||
c370783e | 7517 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7518 | PyObject *resultobj; |
7519 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
7520 | PyObject * obj0 = 0 ; | |
7521 | char *kwnames[] = { | |
7522 | (char *) "handler", NULL | |
7523 | }; | |
7524 | ||
7525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
7526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler, | |
7527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7528 | { | |
7529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7530 | wxFileSystem::AddHandler(arg1); | |
7531 | ||
7532 | wxPyEndAllowThreads(__tstate); | |
7533 | if (PyErr_Occurred()) SWIG_fail; | |
7534 | } | |
7535 | Py_INCREF(Py_None); resultobj = Py_None; | |
7536 | return resultobj; | |
7537 | fail: | |
7538 | return NULL; | |
7539 | } | |
7540 | ||
7541 | ||
c370783e | 7542 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7543 | PyObject *resultobj; |
7544 | char *kwnames[] = { | |
7545 | NULL | |
7546 | }; | |
7547 | ||
7548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
7549 | { | |
7550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7551 | wxFileSystem::CleanUpHandlers(); | |
7552 | ||
7553 | wxPyEndAllowThreads(__tstate); | |
7554 | if (PyErr_Occurred()) SWIG_fail; | |
7555 | } | |
7556 | Py_INCREF(Py_None); resultobj = Py_None; | |
7557 | return resultobj; | |
7558 | fail: | |
7559 | return NULL; | |
7560 | } | |
7561 | ||
7562 | ||
c370783e | 7563 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7564 | PyObject *resultobj; |
7565 | wxString *arg1 = 0 ; | |
7566 | wxString result; | |
b411df4a | 7567 | bool temp1 = false ; |
d55e5bfc RD |
7568 | PyObject * obj0 = 0 ; |
7569 | char *kwnames[] = { | |
7570 | (char *) "filename", NULL | |
7571 | }; | |
7572 | ||
7573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
7574 | { | |
7575 | arg1 = wxString_in_helper(obj0); | |
7576 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 7577 | temp1 = true; |
d55e5bfc RD |
7578 | } |
7579 | { | |
7580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7581 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
7582 | ||
7583 | wxPyEndAllowThreads(__tstate); | |
7584 | if (PyErr_Occurred()) SWIG_fail; | |
7585 | } | |
7586 | { | |
7587 | #if wxUSE_UNICODE | |
7588 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7589 | #else | |
7590 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7591 | #endif | |
7592 | } | |
7593 | { | |
7594 | if (temp1) | |
7595 | delete arg1; | |
7596 | } | |
7597 | return resultobj; | |
7598 | fail: | |
7599 | { | |
7600 | if (temp1) | |
7601 | delete arg1; | |
7602 | } | |
7603 | return NULL; | |
7604 | } | |
7605 | ||
7606 | ||
c370783e | 7607 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7608 | PyObject *resultobj; |
7609 | wxString *arg1 = 0 ; | |
7610 | wxString result; | |
b411df4a | 7611 | bool temp1 = false ; |
d55e5bfc RD |
7612 | PyObject * obj0 = 0 ; |
7613 | char *kwnames[] = { | |
7614 | (char *) "url", NULL | |
7615 | }; | |
7616 | ||
7617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
7618 | { | |
7619 | arg1 = wxString_in_helper(obj0); | |
7620 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 7621 | temp1 = true; |
d55e5bfc RD |
7622 | } |
7623 | { | |
7624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b411df4a | 7625 | result = FileSystem_URLToFileName((wxString const &)*arg1); |
d55e5bfc RD |
7626 | |
7627 | wxPyEndAllowThreads(__tstate); | |
7628 | if (PyErr_Occurred()) SWIG_fail; | |
7629 | } | |
7630 | { | |
7631 | #if wxUSE_UNICODE | |
7632 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7633 | #else | |
7634 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7635 | #endif | |
7636 | } | |
7637 | { | |
7638 | if (temp1) | |
7639 | delete arg1; | |
7640 | } | |
7641 | return resultobj; | |
7642 | fail: | |
7643 | { | |
7644 | if (temp1) | |
7645 | delete arg1; | |
7646 | } | |
7647 | return NULL; | |
7648 | } | |
7649 | ||
7650 | ||
b411df4a RD |
7651 | static PyObject * FileSystem_swigregister(PyObject *, PyObject *args) { |
7652 | PyObject *obj; | |
7653 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7654 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
7655 | Py_INCREF(obj); | |
7656 | return Py_BuildValue((char *)""); | |
7657 | } | |
c370783e | 7658 | static PyObject *_wrap_new_InternetFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7659 | PyObject *resultobj; |
7660 | wxInternetFSHandler *result; | |
7661 | char *kwnames[] = { | |
7662 | NULL | |
7663 | }; | |
7664 | ||
7665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
7666 | { | |
7667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7668 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
7669 | ||
7670 | wxPyEndAllowThreads(__tstate); | |
7671 | if (PyErr_Occurred()) SWIG_fail; | |
7672 | } | |
7673 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); | |
7674 | return resultobj; | |
7675 | fail: | |
7676 | return NULL; | |
7677 | } | |
7678 | ||
7679 | ||
c370783e | 7680 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7681 | PyObject *resultobj; |
7682 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7683 | wxString *arg2 = 0 ; | |
7684 | bool result; | |
b411df4a | 7685 | bool temp2 = false ; |
d55e5bfc RD |
7686 | PyObject * obj0 = 0 ; |
7687 | PyObject * obj1 = 0 ; | |
7688 | char *kwnames[] = { | |
7689 | (char *) "self",(char *) "location", NULL | |
7690 | }; | |
7691 | ||
7692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, | |
7694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7695 | { | |
7696 | arg2 = wxString_in_helper(obj1); | |
7697 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7698 | temp2 = true; |
d55e5bfc RD |
7699 | } |
7700 | { | |
7701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7702 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7703 | ||
7704 | wxPyEndAllowThreads(__tstate); | |
7705 | if (PyErr_Occurred()) SWIG_fail; | |
7706 | } | |
7707 | { | |
7708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7709 | } | |
7710 | { | |
7711 | if (temp2) | |
7712 | delete arg2; | |
7713 | } | |
7714 | return resultobj; | |
7715 | fail: | |
7716 | { | |
7717 | if (temp2) | |
7718 | delete arg2; | |
7719 | } | |
7720 | return NULL; | |
7721 | } | |
7722 | ||
7723 | ||
c370783e | 7724 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7725 | PyObject *resultobj; |
7726 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7727 | wxFileSystem *arg2 = 0 ; | |
7728 | wxString *arg3 = 0 ; | |
7729 | wxFSFile *result; | |
b411df4a | 7730 | bool temp3 = false ; |
d55e5bfc RD |
7731 | PyObject * obj0 = 0 ; |
7732 | PyObject * obj1 = 0 ; | |
7733 | PyObject * obj2 = 0 ; | |
7734 | char *kwnames[] = { | |
7735 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7736 | }; | |
7737 | ||
7738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, | |
7740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7741 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7742 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7743 | SWIG_fail; | |
7744 | if (arg2 == NULL) { | |
7745 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7746 | SWIG_fail; | |
7747 | } | |
7748 | { | |
7749 | arg3 = wxString_in_helper(obj2); | |
7750 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 7751 | temp3 = true; |
d55e5bfc RD |
7752 | } |
7753 | { | |
7754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7755 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7756 | ||
7757 | wxPyEndAllowThreads(__tstate); | |
7758 | if (PyErr_Occurred()) SWIG_fail; | |
7759 | } | |
7760 | { | |
4cf4100f | 7761 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7762 | } |
7763 | { | |
7764 | if (temp3) | |
7765 | delete arg3; | |
7766 | } | |
7767 | return resultobj; | |
7768 | fail: | |
7769 | { | |
7770 | if (temp3) | |
7771 | delete arg3; | |
7772 | } | |
7773 | return NULL; | |
7774 | } | |
7775 | ||
7776 | ||
c370783e | 7777 | static PyObject * InternetFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7778 | PyObject *obj; |
7779 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7780 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
7781 | Py_INCREF(obj); | |
7782 | return Py_BuildValue((char *)""); | |
7783 | } | |
c370783e | 7784 | static PyObject *_wrap_new_ZipFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7785 | PyObject *resultobj; |
7786 | wxZipFSHandler *result; | |
7787 | char *kwnames[] = { | |
7788 | NULL | |
7789 | }; | |
7790 | ||
7791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
7792 | { | |
7793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7794 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
7795 | ||
7796 | wxPyEndAllowThreads(__tstate); | |
7797 | if (PyErr_Occurred()) SWIG_fail; | |
7798 | } | |
7799 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); | |
7800 | return resultobj; | |
7801 | fail: | |
7802 | return NULL; | |
7803 | } | |
7804 | ||
7805 | ||
c370783e | 7806 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7807 | PyObject *resultobj; |
7808 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7809 | wxString *arg2 = 0 ; | |
7810 | bool result; | |
b411df4a | 7811 | bool temp2 = false ; |
d55e5bfc RD |
7812 | PyObject * obj0 = 0 ; |
7813 | PyObject * obj1 = 0 ; | |
7814 | char *kwnames[] = { | |
7815 | (char *) "self",(char *) "location", NULL | |
7816 | }; | |
7817 | ||
7818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7821 | { | |
7822 | arg2 = wxString_in_helper(obj1); | |
7823 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7824 | temp2 = true; |
d55e5bfc RD |
7825 | } |
7826 | { | |
7827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7828 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7829 | ||
7830 | wxPyEndAllowThreads(__tstate); | |
7831 | if (PyErr_Occurred()) SWIG_fail; | |
7832 | } | |
7833 | { | |
7834 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7835 | } | |
7836 | { | |
7837 | if (temp2) | |
7838 | delete arg2; | |
7839 | } | |
7840 | return resultobj; | |
7841 | fail: | |
7842 | { | |
7843 | if (temp2) | |
7844 | delete arg2; | |
7845 | } | |
7846 | return NULL; | |
7847 | } | |
7848 | ||
7849 | ||
c370783e | 7850 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7851 | PyObject *resultobj; |
7852 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7853 | wxFileSystem *arg2 = 0 ; | |
7854 | wxString *arg3 = 0 ; | |
7855 | wxFSFile *result; | |
b411df4a | 7856 | bool temp3 = false ; |
d55e5bfc RD |
7857 | PyObject * obj0 = 0 ; |
7858 | PyObject * obj1 = 0 ; | |
7859 | PyObject * obj2 = 0 ; | |
7860 | char *kwnames[] = { | |
7861 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7862 | }; | |
7863 | ||
7864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7867 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7868 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7869 | SWIG_fail; | |
7870 | if (arg2 == NULL) { | |
7871 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7872 | SWIG_fail; | |
7873 | } | |
7874 | { | |
7875 | arg3 = wxString_in_helper(obj2); | |
7876 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 7877 | temp3 = true; |
d55e5bfc RD |
7878 | } |
7879 | { | |
7880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7881 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7882 | ||
7883 | wxPyEndAllowThreads(__tstate); | |
7884 | if (PyErr_Occurred()) SWIG_fail; | |
7885 | } | |
7886 | { | |
4cf4100f | 7887 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7888 | } |
7889 | { | |
7890 | if (temp3) | |
7891 | delete arg3; | |
7892 | } | |
7893 | return resultobj; | |
7894 | fail: | |
7895 | { | |
7896 | if (temp3) | |
7897 | delete arg3; | |
7898 | } | |
7899 | return NULL; | |
7900 | } | |
7901 | ||
7902 | ||
c370783e | 7903 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7904 | PyObject *resultobj; |
7905 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7906 | wxString *arg2 = 0 ; | |
7907 | int arg3 = (int) 0 ; | |
7908 | wxString result; | |
b411df4a | 7909 | bool temp2 = false ; |
d55e5bfc RD |
7910 | PyObject * obj0 = 0 ; |
7911 | PyObject * obj1 = 0 ; | |
7912 | PyObject * obj2 = 0 ; | |
7913 | char *kwnames[] = { | |
7914 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7915 | }; | |
7916 | ||
7917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7920 | { | |
7921 | arg2 = wxString_in_helper(obj1); | |
7922 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7923 | temp2 = true; |
d55e5bfc RD |
7924 | } |
7925 | if (obj2) { | |
c370783e | 7926 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
7927 | if (PyErr_Occurred()) SWIG_fail; |
7928 | } | |
7929 | { | |
7930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7931 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7932 | ||
7933 | wxPyEndAllowThreads(__tstate); | |
7934 | if (PyErr_Occurred()) SWIG_fail; | |
7935 | } | |
7936 | { | |
7937 | #if wxUSE_UNICODE | |
7938 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7939 | #else | |
7940 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7941 | #endif | |
7942 | } | |
7943 | { | |
7944 | if (temp2) | |
7945 | delete arg2; | |
7946 | } | |
7947 | return resultobj; | |
7948 | fail: | |
7949 | { | |
7950 | if (temp2) | |
7951 | delete arg2; | |
7952 | } | |
7953 | return NULL; | |
7954 | } | |
7955 | ||
7956 | ||
c370783e | 7957 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7958 | PyObject *resultobj; |
7959 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7960 | wxString result; | |
7961 | PyObject * obj0 = 0 ; | |
7962 | char *kwnames[] = { | |
7963 | (char *) "self", NULL | |
7964 | }; | |
7965 | ||
7966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
7967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7969 | { | |
7970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7971 | result = (arg1)->FindNext(); | |
7972 | ||
7973 | wxPyEndAllowThreads(__tstate); | |
7974 | if (PyErr_Occurred()) SWIG_fail; | |
7975 | } | |
7976 | { | |
7977 | #if wxUSE_UNICODE | |
7978 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7979 | #else | |
7980 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7981 | #endif | |
7982 | } | |
7983 | return resultobj; | |
7984 | fail: | |
7985 | return NULL; | |
7986 | } | |
7987 | ||
7988 | ||
c370783e | 7989 | static PyObject * ZipFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7990 | PyObject *obj; |
7991 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7992 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
7993 | Py_INCREF(obj); | |
7994 | return Py_BuildValue((char *)""); | |
7995 | } | |
c370783e | 7996 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7997 | PyObject *resultobj; |
7998 | wxString *arg1 = 0 ; | |
7999 | wxImage *arg2 = 0 ; | |
8000 | long arg3 ; | |
b411df4a | 8001 | bool temp1 = false ; |
d55e5bfc RD |
8002 | PyObject * obj0 = 0 ; |
8003 | PyObject * obj1 = 0 ; | |
8004 | PyObject * obj2 = 0 ; | |
8005 | char *kwnames[] = { | |
8006 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
8007 | }; | |
8008 | ||
8009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8010 | { | |
8011 | arg1 = wxString_in_helper(obj0); | |
8012 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8013 | temp1 = true; |
d55e5bfc RD |
8014 | } |
8015 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
8016 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8017 | SWIG_fail; | |
8018 | if (arg2 == NULL) { | |
8019 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8020 | SWIG_fail; | |
8021 | } | |
c370783e | 8022 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
8023 | if (PyErr_Occurred()) SWIG_fail; |
8024 | { | |
8025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8026 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
8027 | ||
8028 | wxPyEndAllowThreads(__tstate); | |
8029 | if (PyErr_Occurred()) SWIG_fail; | |
8030 | } | |
8031 | Py_INCREF(Py_None); resultobj = Py_None; | |
8032 | { | |
8033 | if (temp1) | |
8034 | delete arg1; | |
8035 | } | |
8036 | return resultobj; | |
8037 | fail: | |
8038 | { | |
8039 | if (temp1) | |
8040 | delete arg1; | |
8041 | } | |
8042 | return NULL; | |
8043 | } | |
8044 | ||
8045 | ||
c370783e | 8046 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8047 | PyObject *resultobj; |
8048 | wxString *arg1 = 0 ; | |
8049 | wxBitmap *arg2 = 0 ; | |
8050 | long arg3 ; | |
b411df4a | 8051 | bool temp1 = false ; |
d55e5bfc RD |
8052 | PyObject * obj0 = 0 ; |
8053 | PyObject * obj1 = 0 ; | |
8054 | PyObject * obj2 = 0 ; | |
8055 | char *kwnames[] = { | |
8056 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
8057 | }; | |
8058 | ||
8059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8060 | { | |
8061 | arg1 = wxString_in_helper(obj0); | |
8062 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8063 | temp1 = true; |
d55e5bfc RD |
8064 | } |
8065 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
8066 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8067 | SWIG_fail; | |
8068 | if (arg2 == NULL) { | |
8069 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8070 | SWIG_fail; | |
8071 | } | |
c370783e | 8072 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
8073 | if (PyErr_Occurred()) SWIG_fail; |
8074 | { | |
8075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8076 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
8077 | ||
8078 | wxPyEndAllowThreads(__tstate); | |
8079 | if (PyErr_Occurred()) SWIG_fail; | |
8080 | } | |
8081 | Py_INCREF(Py_None); resultobj = Py_None; | |
8082 | { | |
8083 | if (temp1) | |
8084 | delete arg1; | |
8085 | } | |
8086 | return resultobj; | |
8087 | fail: | |
8088 | { | |
8089 | if (temp1) | |
8090 | delete arg1; | |
8091 | } | |
8092 | return NULL; | |
8093 | } | |
8094 | ||
8095 | ||
c370783e | 8096 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8097 | PyObject *resultobj; |
8098 | wxString *arg1 = 0 ; | |
8099 | PyObject *arg2 = (PyObject *) 0 ; | |
b411df4a | 8100 | bool temp1 = false ; |
d55e5bfc RD |
8101 | PyObject * obj0 = 0 ; |
8102 | PyObject * obj1 = 0 ; | |
8103 | char *kwnames[] = { | |
8104 | (char *) "filename",(char *) "data", NULL | |
8105 | }; | |
8106 | ||
8107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
8108 | { | |
8109 | arg1 = wxString_in_helper(obj0); | |
8110 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8111 | temp1 = true; |
d55e5bfc RD |
8112 | } |
8113 | arg2 = obj1; | |
8114 | { | |
8115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8116 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
8117 | ||
8118 | wxPyEndAllowThreads(__tstate); | |
8119 | if (PyErr_Occurred()) SWIG_fail; | |
8120 | } | |
8121 | Py_INCREF(Py_None); resultobj = Py_None; | |
8122 | { | |
8123 | if (temp1) | |
8124 | delete arg1; | |
8125 | } | |
8126 | return resultobj; | |
8127 | fail: | |
8128 | { | |
8129 | if (temp1) | |
8130 | delete arg1; | |
8131 | } | |
8132 | return NULL; | |
8133 | } | |
8134 | ||
8135 | ||
c370783e | 8136 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8137 | PyObject *resultobj; |
8138 | wxMemoryFSHandler *result; | |
8139 | char *kwnames[] = { | |
8140 | NULL | |
8141 | }; | |
8142 | ||
8143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
8144 | { | |
8145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8146 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
8147 | ||
8148 | wxPyEndAllowThreads(__tstate); | |
8149 | if (PyErr_Occurred()) SWIG_fail; | |
8150 | } | |
8151 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); | |
8152 | return resultobj; | |
8153 | fail: | |
8154 | return NULL; | |
8155 | } | |
8156 | ||
8157 | ||
c370783e | 8158 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8159 | PyObject *resultobj; |
8160 | wxString *arg1 = 0 ; | |
b411df4a | 8161 | bool temp1 = false ; |
d55e5bfc RD |
8162 | PyObject * obj0 = 0 ; |
8163 | char *kwnames[] = { | |
8164 | (char *) "filename", NULL | |
8165 | }; | |
8166 | ||
8167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
8168 | { | |
8169 | arg1 = wxString_in_helper(obj0); | |
8170 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8171 | temp1 = true; |
d55e5bfc RD |
8172 | } |
8173 | { | |
8174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8175 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
8176 | ||
8177 | wxPyEndAllowThreads(__tstate); | |
8178 | if (PyErr_Occurred()) SWIG_fail; | |
8179 | } | |
8180 | Py_INCREF(Py_None); resultobj = Py_None; | |
8181 | { | |
8182 | if (temp1) | |
8183 | delete arg1; | |
8184 | } | |
8185 | return resultobj; | |
8186 | fail: | |
8187 | { | |
8188 | if (temp1) | |
8189 | delete arg1; | |
8190 | } | |
8191 | return NULL; | |
8192 | } | |
8193 | ||
8194 | ||
c370783e | 8195 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8196 | PyObject *resultobj; |
8197 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8198 | wxString *arg2 = 0 ; | |
8199 | bool result; | |
b411df4a | 8200 | bool temp2 = false ; |
d55e5bfc RD |
8201 | PyObject * obj0 = 0 ; |
8202 | PyObject * obj1 = 0 ; | |
8203 | char *kwnames[] = { | |
8204 | (char *) "self",(char *) "location", NULL | |
8205 | }; | |
8206 | ||
8207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
8208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8210 | { | |
8211 | arg2 = wxString_in_helper(obj1); | |
8212 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8213 | temp2 = true; |
d55e5bfc RD |
8214 | } |
8215 | { | |
8216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8217 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
8218 | ||
8219 | wxPyEndAllowThreads(__tstate); | |
8220 | if (PyErr_Occurred()) SWIG_fail; | |
8221 | } | |
8222 | { | |
8223 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8224 | } | |
8225 | { | |
8226 | if (temp2) | |
8227 | delete arg2; | |
8228 | } | |
8229 | return resultobj; | |
8230 | fail: | |
8231 | { | |
8232 | if (temp2) | |
8233 | delete arg2; | |
8234 | } | |
8235 | return NULL; | |
8236 | } | |
8237 | ||
8238 | ||
c370783e | 8239 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8240 | PyObject *resultobj; |
8241 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8242 | wxFileSystem *arg2 = 0 ; | |
8243 | wxString *arg3 = 0 ; | |
8244 | wxFSFile *result; | |
b411df4a | 8245 | bool temp3 = false ; |
d55e5bfc RD |
8246 | PyObject * obj0 = 0 ; |
8247 | PyObject * obj1 = 0 ; | |
8248 | PyObject * obj2 = 0 ; | |
8249 | char *kwnames[] = { | |
8250 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
8251 | }; | |
8252 | ||
8253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8256 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
8257 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8258 | SWIG_fail; | |
8259 | if (arg2 == NULL) { | |
8260 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8261 | SWIG_fail; | |
8262 | } | |
8263 | { | |
8264 | arg3 = wxString_in_helper(obj2); | |
8265 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 8266 | temp3 = true; |
d55e5bfc RD |
8267 | } |
8268 | { | |
8269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8270 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
8271 | ||
8272 | wxPyEndAllowThreads(__tstate); | |
8273 | if (PyErr_Occurred()) SWIG_fail; | |
8274 | } | |
8275 | { | |
4cf4100f | 8276 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
8277 | } |
8278 | { | |
8279 | if (temp3) | |
8280 | delete arg3; | |
8281 | } | |
8282 | return resultobj; | |
8283 | fail: | |
8284 | { | |
8285 | if (temp3) | |
8286 | delete arg3; | |
8287 | } | |
8288 | return NULL; | |
8289 | } | |
8290 | ||
8291 | ||
c370783e | 8292 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8293 | PyObject *resultobj; |
8294 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8295 | wxString *arg2 = 0 ; | |
8296 | int arg3 = (int) 0 ; | |
8297 | wxString result; | |
b411df4a | 8298 | bool temp2 = false ; |
d55e5bfc RD |
8299 | PyObject * obj0 = 0 ; |
8300 | PyObject * obj1 = 0 ; | |
8301 | PyObject * obj2 = 0 ; | |
8302 | char *kwnames[] = { | |
8303 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
8304 | }; | |
8305 | ||
8306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8309 | { | |
8310 | arg2 = wxString_in_helper(obj1); | |
8311 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8312 | temp2 = true; |
d55e5bfc RD |
8313 | } |
8314 | if (obj2) { | |
c370783e | 8315 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
8316 | if (PyErr_Occurred()) SWIG_fail; |
8317 | } | |
8318 | { | |
8319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8320 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8321 | ||
8322 | wxPyEndAllowThreads(__tstate); | |
8323 | if (PyErr_Occurred()) SWIG_fail; | |
8324 | } | |
8325 | { | |
8326 | #if wxUSE_UNICODE | |
8327 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8328 | #else | |
8329 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8330 | #endif | |
8331 | } | |
8332 | { | |
8333 | if (temp2) | |
8334 | delete arg2; | |
8335 | } | |
8336 | return resultobj; | |
8337 | fail: | |
8338 | { | |
8339 | if (temp2) | |
8340 | delete arg2; | |
8341 | } | |
8342 | return NULL; | |
8343 | } | |
8344 | ||
8345 | ||
c370783e | 8346 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8347 | PyObject *resultobj; |
8348 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8349 | wxString result; | |
8350 | PyObject * obj0 = 0 ; | |
8351 | char *kwnames[] = { | |
8352 | (char *) "self", NULL | |
8353 | }; | |
8354 | ||
8355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
8356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8358 | { | |
8359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8360 | result = (arg1)->FindNext(); | |
8361 | ||
8362 | wxPyEndAllowThreads(__tstate); | |
8363 | if (PyErr_Occurred()) SWIG_fail; | |
8364 | } | |
8365 | { | |
8366 | #if wxUSE_UNICODE | |
8367 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8368 | #else | |
8369 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8370 | #endif | |
8371 | } | |
8372 | return resultobj; | |
8373 | fail: | |
8374 | return NULL; | |
8375 | } | |
8376 | ||
8377 | ||
c370783e | 8378 | static PyObject * MemoryFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8379 | PyObject *obj; |
8380 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8381 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
8382 | Py_INCREF(obj); | |
8383 | return Py_BuildValue((char *)""); | |
8384 | } | |
c370783e | 8385 | static PyObject *_wrap_ImageHandler_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8386 | PyObject *resultobj; |
8387 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8388 | wxString result; | |
8389 | PyObject * obj0 = 0 ; | |
8390 | char *kwnames[] = { | |
8391 | (char *) "self", NULL | |
8392 | }; | |
8393 | ||
8394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
8395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8397 | { | |
8398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8399 | result = (arg1)->GetName(); | |
8400 | ||
8401 | wxPyEndAllowThreads(__tstate); | |
8402 | if (PyErr_Occurred()) SWIG_fail; | |
8403 | } | |
8404 | { | |
8405 | #if wxUSE_UNICODE | |
8406 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8407 | #else | |
8408 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8409 | #endif | |
8410 | } | |
8411 | return resultobj; | |
8412 | fail: | |
8413 | return NULL; | |
8414 | } | |
8415 | ||
8416 | ||
c370783e | 8417 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8418 | PyObject *resultobj; |
8419 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8420 | wxString result; | |
8421 | PyObject * obj0 = 0 ; | |
8422 | char *kwnames[] = { | |
8423 | (char *) "self", NULL | |
8424 | }; | |
8425 | ||
8426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
8427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8429 | { | |
8430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8431 | result = (arg1)->GetExtension(); | |
8432 | ||
8433 | wxPyEndAllowThreads(__tstate); | |
8434 | if (PyErr_Occurred()) SWIG_fail; | |
8435 | } | |
8436 | { | |
8437 | #if wxUSE_UNICODE | |
8438 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8439 | #else | |
8440 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8441 | #endif | |
8442 | } | |
8443 | return resultobj; | |
8444 | fail: | |
8445 | return NULL; | |
8446 | } | |
8447 | ||
8448 | ||
c370783e | 8449 | static PyObject *_wrap_ImageHandler_GetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8450 | PyObject *resultobj; |
8451 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8452 | long result; | |
8453 | PyObject * obj0 = 0 ; | |
8454 | char *kwnames[] = { | |
8455 | (char *) "self", NULL | |
8456 | }; | |
8457 | ||
8458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
8459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8461 | { | |
8462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8463 | result = (long)(arg1)->GetType(); | |
8464 | ||
8465 | wxPyEndAllowThreads(__tstate); | |
8466 | if (PyErr_Occurred()) SWIG_fail; | |
8467 | } | |
c370783e | 8468 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
8469 | return resultobj; |
8470 | fail: | |
8471 | return NULL; | |
8472 | } | |
8473 | ||
8474 | ||
c370783e | 8475 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8476 | PyObject *resultobj; |
8477 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8478 | wxString result; | |
8479 | PyObject * obj0 = 0 ; | |
8480 | char *kwnames[] = { | |
8481 | (char *) "self", NULL | |
8482 | }; | |
8483 | ||
8484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
8485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8487 | { | |
8488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8489 | result = (arg1)->GetMimeType(); | |
8490 | ||
8491 | wxPyEndAllowThreads(__tstate); | |
8492 | if (PyErr_Occurred()) SWIG_fail; | |
8493 | } | |
8494 | { | |
8495 | #if wxUSE_UNICODE | |
8496 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8497 | #else | |
8498 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8499 | #endif | |
8500 | } | |
8501 | return resultobj; | |
8502 | fail: | |
8503 | return NULL; | |
8504 | } | |
8505 | ||
8506 | ||
c370783e | 8507 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8508 | PyObject *resultobj; |
8509 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8510 | wxString *arg2 = 0 ; | |
8511 | bool result; | |
b411df4a | 8512 | bool temp2 = false ; |
d55e5bfc RD |
8513 | PyObject * obj0 = 0 ; |
8514 | PyObject * obj1 = 0 ; | |
8515 | char *kwnames[] = { | |
8516 | (char *) "self",(char *) "name", NULL | |
8517 | }; | |
8518 | ||
8519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
8520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8522 | { | |
8523 | arg2 = wxString_in_helper(obj1); | |
8524 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8525 | temp2 = true; |
d55e5bfc RD |
8526 | } |
8527 | { | |
8528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8529 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
8530 | ||
8531 | wxPyEndAllowThreads(__tstate); | |
8532 | if (PyErr_Occurred()) SWIG_fail; | |
8533 | } | |
8534 | { | |
8535 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8536 | } | |
8537 | { | |
8538 | if (temp2) | |
8539 | delete arg2; | |
8540 | } | |
8541 | return resultobj; | |
8542 | fail: | |
8543 | { | |
8544 | if (temp2) | |
8545 | delete arg2; | |
8546 | } | |
8547 | return NULL; | |
8548 | } | |
8549 | ||
8550 | ||
c370783e | 8551 | static PyObject *_wrap_ImageHandler_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8552 | PyObject *resultobj; |
8553 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8554 | wxString *arg2 = 0 ; | |
b411df4a | 8555 | bool temp2 = false ; |
d55e5bfc RD |
8556 | PyObject * obj0 = 0 ; |
8557 | PyObject * obj1 = 0 ; | |
8558 | char *kwnames[] = { | |
8559 | (char *) "self",(char *) "name", NULL | |
8560 | }; | |
8561 | ||
8562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
8563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8565 | { | |
8566 | arg2 = wxString_in_helper(obj1); | |
8567 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8568 | temp2 = true; |
d55e5bfc RD |
8569 | } |
8570 | { | |
8571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8572 | (arg1)->SetName((wxString const &)*arg2); | |
8573 | ||
8574 | wxPyEndAllowThreads(__tstate); | |
8575 | if (PyErr_Occurred()) SWIG_fail; | |
8576 | } | |
8577 | Py_INCREF(Py_None); resultobj = Py_None; | |
8578 | { | |
8579 | if (temp2) | |
8580 | delete arg2; | |
8581 | } | |
8582 | return resultobj; | |
8583 | fail: | |
8584 | { | |
8585 | if (temp2) | |
8586 | delete arg2; | |
8587 | } | |
8588 | return NULL; | |
8589 | } | |
8590 | ||
8591 | ||
c370783e | 8592 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8593 | PyObject *resultobj; |
8594 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8595 | wxString *arg2 = 0 ; | |
b411df4a | 8596 | bool temp2 = false ; |
d55e5bfc RD |
8597 | PyObject * obj0 = 0 ; |
8598 | PyObject * obj1 = 0 ; | |
8599 | char *kwnames[] = { | |
8600 | (char *) "self",(char *) "extension", NULL | |
8601 | }; | |
8602 | ||
8603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
8604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8606 | { | |
8607 | arg2 = wxString_in_helper(obj1); | |
8608 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8609 | temp2 = true; |
d55e5bfc RD |
8610 | } |
8611 | { | |
8612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8613 | (arg1)->SetExtension((wxString const &)*arg2); | |
8614 | ||
8615 | wxPyEndAllowThreads(__tstate); | |
8616 | if (PyErr_Occurred()) SWIG_fail; | |
8617 | } | |
8618 | Py_INCREF(Py_None); resultobj = Py_None; | |
8619 | { | |
8620 | if (temp2) | |
8621 | delete arg2; | |
8622 | } | |
8623 | return resultobj; | |
8624 | fail: | |
8625 | { | |
8626 | if (temp2) | |
8627 | delete arg2; | |
8628 | } | |
8629 | return NULL; | |
8630 | } | |
8631 | ||
8632 | ||
c370783e | 8633 | static PyObject *_wrap_ImageHandler_SetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8634 | PyObject *resultobj; |
8635 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8636 | long arg2 ; | |
8637 | PyObject * obj0 = 0 ; | |
8638 | PyObject * obj1 = 0 ; | |
8639 | char *kwnames[] = { | |
8640 | (char *) "self",(char *) "type", NULL | |
8641 | }; | |
8642 | ||
8643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; | |
8644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8646 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
8647 | if (PyErr_Occurred()) SWIG_fail; |
8648 | { | |
8649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8650 | (arg1)->SetType(arg2); | |
8651 | ||
8652 | wxPyEndAllowThreads(__tstate); | |
8653 | if (PyErr_Occurred()) SWIG_fail; | |
8654 | } | |
8655 | Py_INCREF(Py_None); resultobj = Py_None; | |
8656 | return resultobj; | |
8657 | fail: | |
8658 | return NULL; | |
8659 | } | |
8660 | ||
8661 | ||
c370783e | 8662 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8663 | PyObject *resultobj; |
8664 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8665 | wxString *arg2 = 0 ; | |
b411df4a | 8666 | bool temp2 = false ; |
d55e5bfc RD |
8667 | PyObject * obj0 = 0 ; |
8668 | PyObject * obj1 = 0 ; | |
8669 | char *kwnames[] = { | |
8670 | (char *) "self",(char *) "mimetype", NULL | |
8671 | }; | |
8672 | ||
8673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
8674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8676 | { | |
8677 | arg2 = wxString_in_helper(obj1); | |
8678 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8679 | temp2 = true; |
d55e5bfc RD |
8680 | } |
8681 | { | |
8682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8683 | (arg1)->SetMimeType((wxString const &)*arg2); | |
8684 | ||
8685 | wxPyEndAllowThreads(__tstate); | |
8686 | if (PyErr_Occurred()) SWIG_fail; | |
8687 | } | |
8688 | Py_INCREF(Py_None); resultobj = Py_None; | |
8689 | { | |
8690 | if (temp2) | |
8691 | delete arg2; | |
8692 | } | |
8693 | return resultobj; | |
8694 | fail: | |
8695 | { | |
8696 | if (temp2) | |
8697 | delete arg2; | |
8698 | } | |
8699 | return NULL; | |
8700 | } | |
8701 | ||
8702 | ||
c370783e | 8703 | static PyObject * ImageHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8704 | PyObject *obj; |
8705 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8706 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
8707 | Py_INCREF(obj); | |
8708 | return Py_BuildValue((char *)""); | |
8709 | } | |
c370783e | 8710 | static PyObject *_wrap_new_ImageHistogram(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8711 | PyObject *resultobj; |
8712 | wxImageHistogram *result; | |
8713 | char *kwnames[] = { | |
8714 | NULL | |
8715 | }; | |
8716 | ||
8717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
8718 | { | |
8719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8720 | result = (wxImageHistogram *)new wxImageHistogram(); | |
8721 | ||
8722 | wxPyEndAllowThreads(__tstate); | |
8723 | if (PyErr_Occurred()) SWIG_fail; | |
8724 | } | |
8725 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); | |
8726 | return resultobj; | |
8727 | fail: | |
8728 | return NULL; | |
8729 | } | |
8730 | ||
8731 | ||
c370783e | 8732 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8733 | PyObject *resultobj; |
8734 | unsigned char arg1 ; | |
8735 | unsigned char arg2 ; | |
8736 | unsigned char arg3 ; | |
8737 | unsigned long result; | |
8738 | PyObject * obj0 = 0 ; | |
8739 | PyObject * obj1 = 0 ; | |
8740 | PyObject * obj2 = 0 ; | |
8741 | char *kwnames[] = { | |
8742 | (char *) "r",(char *) "g",(char *) "b", NULL | |
8743 | }; | |
8744 | ||
8745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c370783e | 8746 | arg1 = (unsigned char)SWIG_As_unsigned_SS_char(obj0); |
d55e5bfc | 8747 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8748 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 8749 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8750 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc RD |
8751 | if (PyErr_Occurred()) SWIG_fail; |
8752 | { | |
8753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8754 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
8755 | ||
8756 | wxPyEndAllowThreads(__tstate); | |
8757 | if (PyErr_Occurred()) SWIG_fail; | |
8758 | } | |
c370783e | 8759 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
8760 | return resultobj; |
8761 | fail: | |
8762 | return NULL; | |
8763 | } | |
8764 | ||
8765 | ||
c370783e | 8766 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8767 | PyObject *resultobj; |
8768 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
8769 | unsigned char *arg2 = (unsigned char *) 0 ; | |
8770 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8771 | unsigned char *arg4 = (unsigned char *) 0 ; | |
8772 | unsigned char arg5 = (unsigned char) 1 ; | |
8773 | unsigned char arg6 = (unsigned char) 0 ; | |
8774 | unsigned char arg7 = (unsigned char) 0 ; | |
8775 | bool result; | |
8776 | unsigned char temp2 ; | |
c370783e | 8777 | int res2 = 0 ; |
d55e5bfc | 8778 | unsigned char temp3 ; |
c370783e | 8779 | int res3 = 0 ; |
d55e5bfc | 8780 | unsigned char temp4 ; |
c370783e | 8781 | int res4 = 0 ; |
d55e5bfc RD |
8782 | PyObject * obj0 = 0 ; |
8783 | PyObject * obj1 = 0 ; | |
8784 | PyObject * obj2 = 0 ; | |
8785 | PyObject * obj3 = 0 ; | |
8786 | char *kwnames[] = { | |
8787 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8788 | }; | |
8789 | ||
c370783e RD |
8790 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
8791 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
8792 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
8793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
8794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram, | |
8795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8796 | if (obj1) { | |
c370783e | 8797 | arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc RD |
8798 | if (PyErr_Occurred()) SWIG_fail; |
8799 | } | |
8800 | if (obj2) { | |
c370783e | 8801 | arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc RD |
8802 | if (PyErr_Occurred()) SWIG_fail; |
8803 | } | |
8804 | if (obj3) { | |
c370783e | 8805 | arg7 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
8806 | if (PyErr_Occurred()) SWIG_fail; |
8807 | } | |
8808 | { | |
8809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8810 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8811 | ||
8812 | wxPyEndAllowThreads(__tstate); | |
8813 | if (PyErr_Occurred()) SWIG_fail; | |
8814 | } | |
8815 | { | |
8816 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8817 | } | |
c370783e RD |
8818 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
8819 | SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, 0))); | |
8820 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
8821 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0))); | |
8822 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
8823 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0))); | |
d55e5bfc RD |
8824 | return resultobj; |
8825 | fail: | |
8826 | return NULL; | |
8827 | } | |
8828 | ||
8829 | ||
c370783e | 8830 | static PyObject * ImageHistogram_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8831 | PyObject *obj; |
8832 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8833 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
8834 | Py_INCREF(obj); | |
8835 | return Py_BuildValue((char *)""); | |
8836 | } | |
c370783e | 8837 | static PyObject *_wrap_new_Image(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8838 | PyObject *resultobj; |
8839 | wxString *arg1 = 0 ; | |
8840 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8841 | int arg3 = (int) -1 ; | |
8842 | wxImage *result; | |
b411df4a | 8843 | bool temp1 = false ; |
d55e5bfc RD |
8844 | PyObject * obj0 = 0 ; |
8845 | PyObject * obj1 = 0 ; | |
8846 | PyObject * obj2 = 0 ; | |
8847 | char *kwnames[] = { | |
8848 | (char *) "name",(char *) "type",(char *) "index", NULL | |
8849 | }; | |
8850 | ||
8851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8852 | { | |
8853 | arg1 = wxString_in_helper(obj0); | |
8854 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8855 | temp1 = true; |
d55e5bfc RD |
8856 | } |
8857 | if (obj1) { | |
c370783e | 8858 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
8859 | if (PyErr_Occurred()) SWIG_fail; |
8860 | } | |
8861 | if (obj2) { | |
c370783e | 8862 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
8863 | if (PyErr_Occurred()) SWIG_fail; |
8864 | } | |
8865 | { | |
8866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8867 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
8868 | ||
8869 | wxPyEndAllowThreads(__tstate); | |
8870 | if (PyErr_Occurred()) SWIG_fail; | |
8871 | } | |
8872 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8873 | { | |
8874 | if (temp1) | |
8875 | delete arg1; | |
8876 | } | |
8877 | return resultobj; | |
8878 | fail: | |
8879 | { | |
8880 | if (temp1) | |
8881 | delete arg1; | |
8882 | } | |
8883 | return NULL; | |
8884 | } | |
8885 | ||
8886 | ||
c370783e | 8887 | static PyObject *_wrap_delete_Image(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8888 | PyObject *resultobj; |
8889 | wxImage *arg1 = (wxImage *) 0 ; | |
8890 | PyObject * obj0 = 0 ; | |
8891 | char *kwnames[] = { | |
8892 | (char *) "self", NULL | |
8893 | }; | |
8894 | ||
8895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
8896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
8897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8898 | { | |
8899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8900 | delete arg1; | |
8901 | ||
8902 | wxPyEndAllowThreads(__tstate); | |
8903 | if (PyErr_Occurred()) SWIG_fail; | |
8904 | } | |
8905 | Py_INCREF(Py_None); resultobj = Py_None; | |
8906 | return resultobj; | |
8907 | fail: | |
8908 | return NULL; | |
8909 | } | |
8910 | ||
8911 | ||
c370783e | 8912 | static PyObject *_wrap_new_ImageFromMime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8913 | PyObject *resultobj; |
8914 | wxString *arg1 = 0 ; | |
8915 | wxString *arg2 = 0 ; | |
8916 | int arg3 = (int) -1 ; | |
8917 | wxImage *result; | |
b411df4a RD |
8918 | bool temp1 = false ; |
8919 | bool temp2 = false ; | |
d55e5bfc RD |
8920 | PyObject * obj0 = 0 ; |
8921 | PyObject * obj1 = 0 ; | |
8922 | PyObject * obj2 = 0 ; | |
8923 | char *kwnames[] = { | |
8924 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
8925 | }; | |
8926 | ||
8927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8928 | { | |
8929 | arg1 = wxString_in_helper(obj0); | |
8930 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8931 | temp1 = true; |
d55e5bfc RD |
8932 | } |
8933 | { | |
8934 | arg2 = wxString_in_helper(obj1); | |
8935 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8936 | temp2 = true; |
d55e5bfc RD |
8937 | } |
8938 | if (obj2) { | |
c370783e | 8939 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
8940 | if (PyErr_Occurred()) SWIG_fail; |
8941 | } | |
8942 | { | |
8943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8944 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
8945 | ||
8946 | wxPyEndAllowThreads(__tstate); | |
8947 | if (PyErr_Occurred()) SWIG_fail; | |
8948 | } | |
8949 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
8950 | { | |
8951 | if (temp1) | |
8952 | delete arg1; | |
8953 | } | |
8954 | { | |
8955 | if (temp2) | |
8956 | delete arg2; | |
8957 | } | |
8958 | return resultobj; | |
8959 | fail: | |
8960 | { | |
8961 | if (temp1) | |
8962 | delete arg1; | |
8963 | } | |
8964 | { | |
8965 | if (temp2) | |
8966 | delete arg2; | |
8967 | } | |
8968 | return NULL; | |
8969 | } | |
8970 | ||
8971 | ||
c370783e | 8972 | static PyObject *_wrap_new_ImageFromStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8973 | PyObject *resultobj; |
8974 | wxInputStream *arg1 = 0 ; | |
8975 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
8976 | int arg3 = (int) -1 ; | |
8977 | wxImage *result; | |
8978 | wxPyInputStream *temp1 ; | |
8979 | bool created1 ; | |
8980 | PyObject * obj0 = 0 ; | |
8981 | PyObject * obj1 = 0 ; | |
8982 | PyObject * obj2 = 0 ; | |
8983 | char *kwnames[] = { | |
8984 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
8985 | }; | |
8986 | ||
8987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8988 | { | |
8989 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
8990 | arg1 = temp1->m_wxis; | |
b411df4a | 8991 | created1 = false; |
d55e5bfc RD |
8992 | } else { |
8993 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
b411df4a | 8994 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
8995 | if (arg1 == NULL) { |
8996 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
8997 | SWIG_fail; | |
8998 | } | |
b411df4a | 8999 | created1 = true; |
d55e5bfc RD |
9000 | } |
9001 | } | |
9002 | if (obj1) { | |
c370783e | 9003 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
9004 | if (PyErr_Occurred()) SWIG_fail; |
9005 | } | |
9006 | if (obj2) { | |
c370783e | 9007 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9008 | if (PyErr_Occurred()) SWIG_fail; |
9009 | } | |
9010 | { | |
9011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9012 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
9013 | ||
9014 | wxPyEndAllowThreads(__tstate); | |
9015 | if (PyErr_Occurred()) SWIG_fail; | |
9016 | } | |
9017 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9018 | { | |
9019 | if (created1) | |
9020 | delete arg1; | |
9021 | } | |
9022 | return resultobj; | |
9023 | fail: | |
9024 | { | |
9025 | if (created1) | |
9026 | delete arg1; | |
9027 | } | |
9028 | return NULL; | |
9029 | } | |
9030 | ||
9031 | ||
c370783e | 9032 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9033 | PyObject *resultobj; |
9034 | wxInputStream *arg1 = 0 ; | |
9035 | wxString *arg2 = 0 ; | |
9036 | int arg3 = (int) -1 ; | |
9037 | wxImage *result; | |
9038 | wxPyInputStream *temp1 ; | |
9039 | bool created1 ; | |
b411df4a | 9040 | bool temp2 = false ; |
d55e5bfc RD |
9041 | PyObject * obj0 = 0 ; |
9042 | PyObject * obj1 = 0 ; | |
9043 | PyObject * obj2 = 0 ; | |
9044 | char *kwnames[] = { | |
9045 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
9046 | }; | |
9047 | ||
9048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9049 | { | |
9050 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9051 | arg1 = temp1->m_wxis; | |
b411df4a | 9052 | created1 = false; |
d55e5bfc RD |
9053 | } else { |
9054 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
b411df4a | 9055 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
9056 | if (arg1 == NULL) { |
9057 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9058 | SWIG_fail; | |
9059 | } | |
b411df4a | 9060 | created1 = true; |
d55e5bfc RD |
9061 | } |
9062 | } | |
9063 | { | |
9064 | arg2 = wxString_in_helper(obj1); | |
9065 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 9066 | temp2 = true; |
d55e5bfc RD |
9067 | } |
9068 | if (obj2) { | |
c370783e | 9069 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9070 | if (PyErr_Occurred()) SWIG_fail; |
9071 | } | |
9072 | { | |
9073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9074 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
9075 | ||
9076 | wxPyEndAllowThreads(__tstate); | |
9077 | if (PyErr_Occurred()) SWIG_fail; | |
9078 | } | |
9079 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9080 | { | |
9081 | if (created1) | |
9082 | delete arg1; | |
9083 | } | |
9084 | { | |
9085 | if (temp2) | |
9086 | delete arg2; | |
9087 | } | |
9088 | return resultobj; | |
9089 | fail: | |
9090 | { | |
9091 | if (created1) | |
9092 | delete arg1; | |
9093 | } | |
9094 | { | |
9095 | if (temp2) | |
9096 | delete arg2; | |
9097 | } | |
9098 | return NULL; | |
9099 | } | |
9100 | ||
9101 | ||
c370783e | 9102 | static PyObject *_wrap_new_EmptyImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9103 | PyObject *resultobj; |
9104 | int arg1 = (int) 0 ; | |
9105 | int arg2 = (int) 0 ; | |
b411df4a | 9106 | bool arg3 = (bool) true ; |
d55e5bfc RD |
9107 | wxImage *result; |
9108 | PyObject * obj0 = 0 ; | |
9109 | PyObject * obj1 = 0 ; | |
9110 | PyObject * obj2 = 0 ; | |
d6c14a4c RD |
9111 | char *kwnames[] = { |
9112 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
9113 | }; | |
d55e5bfc | 9114 | |
d6c14a4c | 9115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc | 9116 | if (obj0) { |
c370783e | 9117 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9118 | if (PyErr_Occurred()) SWIG_fail; |
9119 | } | |
9120 | if (obj1) { | |
c370783e | 9121 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9122 | if (PyErr_Occurred()) SWIG_fail; |
9123 | } | |
9124 | if (obj2) { | |
c370783e | 9125 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
9126 | if (PyErr_Occurred()) SWIG_fail; |
9127 | } | |
9128 | { | |
9129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 9130 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); |
d55e5bfc RD |
9131 | |
9132 | wxPyEndAllowThreads(__tstate); | |
9133 | if (PyErr_Occurred()) SWIG_fail; | |
9134 | } | |
9135 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9136 | return resultobj; | |
9137 | fail: | |
9138 | return NULL; | |
9139 | } | |
9140 | ||
9141 | ||
c370783e | 9142 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9143 | PyObject *resultobj; |
9144 | wxBitmap *arg1 = 0 ; | |
9145 | wxImage *result; | |
9146 | PyObject * obj0 = 0 ; | |
9147 | char *kwnames[] = { | |
9148 | (char *) "bitmap", NULL | |
9149 | }; | |
9150 | ||
9151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
9152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
9153 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9154 | SWIG_fail; | |
9155 | if (arg1 == NULL) { | |
9156 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9157 | SWIG_fail; | |
9158 | } | |
9159 | { | |
0439c23b | 9160 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9162 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
9163 | ||
9164 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9165 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9166 | } |
9167 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9168 | return resultobj; | |
9169 | fail: | |
9170 | return NULL; | |
9171 | } | |
9172 | ||
9173 | ||
c370783e | 9174 | static PyObject *_wrap_new_ImageFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9175 | PyObject *resultobj; |
9176 | int arg1 ; | |
9177 | int arg2 ; | |
9178 | unsigned char *arg3 = (unsigned char *) 0 ; | |
9179 | wxImage *result; | |
9180 | PyObject * obj0 = 0 ; | |
9181 | PyObject * obj1 = 0 ; | |
9182 | PyObject * obj2 = 0 ; | |
9183 | char *kwnames[] = { | |
9184 | (char *) "width",(char *) "height",(char *) "data", NULL | |
9185 | }; | |
9186 | ||
9187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c370783e | 9188 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 9189 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9190 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9191 | if (PyErr_Occurred()) SWIG_fail; |
9192 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
9193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9194 | { | |
9195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9196 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
9197 | ||
9198 | wxPyEndAllowThreads(__tstate); | |
9199 | if (PyErr_Occurred()) SWIG_fail; | |
9200 | } | |
9201 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9202 | return resultobj; | |
9203 | fail: | |
9204 | return NULL; | |
9205 | } | |
9206 | ||
9207 | ||
c370783e | 9208 | static PyObject *_wrap_Image_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9209 | PyObject *resultobj; |
9210 | wxImage *arg1 = (wxImage *) 0 ; | |
9211 | int arg2 ; | |
9212 | int arg3 ; | |
9213 | PyObject * obj0 = 0 ; | |
9214 | PyObject * obj1 = 0 ; | |
9215 | PyObject * obj2 = 0 ; | |
9216 | char *kwnames[] = { | |
9217 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9218 | }; | |
9219 | ||
9220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9223 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9224 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9225 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9226 | if (PyErr_Occurred()) SWIG_fail; |
9227 | { | |
9228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9229 | (arg1)->Create(arg2,arg3); | |
9230 | ||
9231 | wxPyEndAllowThreads(__tstate); | |
9232 | if (PyErr_Occurred()) SWIG_fail; | |
9233 | } | |
9234 | Py_INCREF(Py_None); resultobj = Py_None; | |
9235 | return resultobj; | |
9236 | fail: | |
9237 | return NULL; | |
9238 | } | |
9239 | ||
9240 | ||
c370783e | 9241 | static PyObject *_wrap_Image_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9242 | PyObject *resultobj; |
9243 | wxImage *arg1 = (wxImage *) 0 ; | |
9244 | PyObject * obj0 = 0 ; | |
9245 | char *kwnames[] = { | |
9246 | (char *) "self", NULL | |
9247 | }; | |
9248 | ||
9249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
9250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9252 | { | |
9253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9254 | (arg1)->Destroy(); | |
9255 | ||
9256 | wxPyEndAllowThreads(__tstate); | |
9257 | if (PyErr_Occurred()) SWIG_fail; | |
9258 | } | |
9259 | Py_INCREF(Py_None); resultobj = Py_None; | |
9260 | return resultobj; | |
9261 | fail: | |
9262 | return NULL; | |
9263 | } | |
9264 | ||
9265 | ||
c370783e | 9266 | static PyObject *_wrap_Image_Scale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9267 | PyObject *resultobj; |
9268 | wxImage *arg1 = (wxImage *) 0 ; | |
9269 | int arg2 ; | |
9270 | int arg3 ; | |
9271 | SwigValueWrapper< wxImage > result; | |
9272 | PyObject * obj0 = 0 ; | |
9273 | PyObject * obj1 = 0 ; | |
9274 | PyObject * obj2 = 0 ; | |
9275 | char *kwnames[] = { | |
9276 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9277 | }; | |
9278 | ||
9279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9282 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9283 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9284 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9285 | if (PyErr_Occurred()) SWIG_fail; |
9286 | { | |
9287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9288 | result = (arg1)->Scale(arg2,arg3); | |
9289 | ||
9290 | wxPyEndAllowThreads(__tstate); | |
9291 | if (PyErr_Occurred()) SWIG_fail; | |
9292 | } | |
9293 | { | |
9294 | wxImage * resultptr; | |
9295 | resultptr = new wxImage((wxImage &) result); | |
9296 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
9297 | } | |
9298 | return resultobj; | |
9299 | fail: | |
9300 | return NULL; | |
9301 | } | |
9302 | ||
9303 | ||
c370783e | 9304 | static PyObject *_wrap_Image_ShrinkBy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9305 | PyObject *resultobj; |
9306 | wxImage *arg1 = (wxImage *) 0 ; | |
9307 | int arg2 ; | |
9308 | int arg3 ; | |
9309 | SwigValueWrapper< wxImage > result; | |
9310 | PyObject * obj0 = 0 ; | |
9311 | PyObject * obj1 = 0 ; | |
9312 | PyObject * obj2 = 0 ; | |
9313 | char *kwnames[] = { | |
9314 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
9315 | }; | |
9316 | ||
9317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9320 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9321 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9322 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9323 | if (PyErr_Occurred()) SWIG_fail; |
9324 | { | |
9325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9326 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
9327 | ||
9328 | wxPyEndAllowThreads(__tstate); | |
9329 | if (PyErr_Occurred()) SWIG_fail; | |
9330 | } | |
9331 | { | |
9332 | wxImage * resultptr; | |
9333 | resultptr = new wxImage((wxImage &) result); | |
9334 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
9335 | } | |
9336 | return resultobj; | |
9337 | fail: | |
9338 | return NULL; | |
9339 | } | |
9340 | ||
9341 | ||
c370783e | 9342 | static PyObject *_wrap_Image_Rescale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9343 | PyObject *resultobj; |
9344 | wxImage *arg1 = (wxImage *) 0 ; | |
9345 | int arg2 ; | |
9346 | int arg3 ; | |
9347 | wxImage *result; | |
9348 | PyObject * obj0 = 0 ; | |
9349 | PyObject * obj1 = 0 ; | |
9350 | PyObject * obj2 = 0 ; | |
9351 | char *kwnames[] = { | |
9352 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9353 | }; | |
9354 | ||
9355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9358 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9359 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9360 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9361 | if (PyErr_Occurred()) SWIG_fail; |
9362 | { | |
9363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9364 | { | |
9365 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
9366 | result = (wxImage *) &_result_ref; | |
9367 | } | |
9368 | ||
9369 | wxPyEndAllowThreads(__tstate); | |
9370 | if (PyErr_Occurred()) SWIG_fail; | |
9371 | } | |
9372 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); | |
9373 | return resultobj; | |
9374 | fail: | |
9375 | return NULL; | |
9376 | } | |
9377 | ||
9378 | ||
c370783e | 9379 | static PyObject *_wrap_Image_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9380 | PyObject *resultobj; |
9381 | wxImage *arg1 = (wxImage *) 0 ; | |
9382 | int arg2 ; | |
9383 | int arg3 ; | |
9384 | unsigned char arg4 ; | |
9385 | unsigned char arg5 ; | |
9386 | unsigned char arg6 ; | |
9387 | PyObject * obj0 = 0 ; | |
9388 | PyObject * obj1 = 0 ; | |
9389 | PyObject * obj2 = 0 ; | |
9390 | PyObject * obj3 = 0 ; | |
9391 | PyObject * obj4 = 0 ; | |
9392 | PyObject * obj5 = 0 ; | |
9393 | char *kwnames[] = { | |
9394 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
9395 | }; | |
9396 | ||
9397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9400 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9401 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9402 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 9403 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9404 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc | 9405 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9406 | arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj4); |
d55e5bfc | 9407 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9408 | arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj5); |
d55e5bfc RD |
9409 | if (PyErr_Occurred()) SWIG_fail; |
9410 | { | |
9411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9412 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
9413 | ||
9414 | wxPyEndAllowThreads(__tstate); | |
9415 | if (PyErr_Occurred()) SWIG_fail; | |
9416 | } | |
9417 | Py_INCREF(Py_None); resultobj = Py_None; | |
9418 | return resultobj; | |
9419 | fail: | |
9420 | return NULL; | |
9421 | } | |
9422 | ||
9423 | ||
c370783e | 9424 | static PyObject *_wrap_Image_GetRed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9425 | PyObject *resultobj; |
9426 | wxImage *arg1 = (wxImage *) 0 ; | |
9427 | int arg2 ; | |
9428 | int arg3 ; | |
9429 | unsigned char result; | |
9430 | PyObject * obj0 = 0 ; | |
9431 | PyObject * obj1 = 0 ; | |
9432 | PyObject * obj2 = 0 ; | |
9433 | char *kwnames[] = { | |
9434 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9435 | }; | |
9436 | ||
9437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9440 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9441 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9442 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9443 | if (PyErr_Occurred()) SWIG_fail; |
9444 | { | |
9445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9446 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
9447 | ||
9448 | wxPyEndAllowThreads(__tstate); | |
9449 | if (PyErr_Occurred()) SWIG_fail; | |
9450 | } | |
c370783e | 9451 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9452 | return resultobj; |
9453 | fail: | |
9454 | return NULL; | |
9455 | } | |
9456 | ||
9457 | ||
c370783e | 9458 | static PyObject *_wrap_Image_GetGreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9459 | PyObject *resultobj; |
9460 | wxImage *arg1 = (wxImage *) 0 ; | |
9461 | int arg2 ; | |
9462 | int arg3 ; | |
9463 | unsigned char result; | |
9464 | PyObject * obj0 = 0 ; | |
9465 | PyObject * obj1 = 0 ; | |
9466 | PyObject * obj2 = 0 ; | |
9467 | char *kwnames[] = { | |
9468 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9469 | }; | |
9470 | ||
9471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9474 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9475 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9476 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9477 | if (PyErr_Occurred()) SWIG_fail; |
9478 | { | |
9479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9480 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
9481 | ||
9482 | wxPyEndAllowThreads(__tstate); | |
9483 | if (PyErr_Occurred()) SWIG_fail; | |
9484 | } | |
c370783e | 9485 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9486 | return resultobj; |
9487 | fail: | |
9488 | return NULL; | |
9489 | } | |
9490 | ||
9491 | ||
c370783e | 9492 | static PyObject *_wrap_Image_GetBlue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9493 | PyObject *resultobj; |
9494 | wxImage *arg1 = (wxImage *) 0 ; | |
9495 | int arg2 ; | |
9496 | int arg3 ; | |
9497 | unsigned char result; | |
9498 | PyObject * obj0 = 0 ; | |
9499 | PyObject * obj1 = 0 ; | |
9500 | PyObject * obj2 = 0 ; | |
9501 | char *kwnames[] = { | |
9502 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9503 | }; | |
9504 | ||
9505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9508 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9509 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9510 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9511 | if (PyErr_Occurred()) SWIG_fail; |
9512 | { | |
9513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9514 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
9515 | ||
9516 | wxPyEndAllowThreads(__tstate); | |
9517 | if (PyErr_Occurred()) SWIG_fail; | |
9518 | } | |
c370783e | 9519 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9520 | return resultobj; |
9521 | fail: | |
9522 | return NULL; | |
9523 | } | |
9524 | ||
9525 | ||
c370783e | 9526 | static PyObject *_wrap_Image_SetAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9527 | PyObject *resultobj; |
9528 | wxImage *arg1 = (wxImage *) 0 ; | |
9529 | int arg2 ; | |
9530 | int arg3 ; | |
9531 | unsigned char arg4 ; | |
9532 | PyObject * obj0 = 0 ; | |
9533 | PyObject * obj1 = 0 ; | |
9534 | PyObject * obj2 = 0 ; | |
9535 | PyObject * obj3 = 0 ; | |
9536 | char *kwnames[] = { | |
9537 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
9538 | }; | |
9539 | ||
9540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9543 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9544 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9545 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 9546 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9547 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
9548 | if (PyErr_Occurred()) SWIG_fail; |
9549 | { | |
9550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9551 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
9552 | ||
9553 | wxPyEndAllowThreads(__tstate); | |
9554 | if (PyErr_Occurred()) SWIG_fail; | |
9555 | } | |
9556 | Py_INCREF(Py_None); resultobj = Py_None; | |
9557 | return resultobj; | |
9558 | fail: | |
9559 | return NULL; | |
9560 | } | |
9561 | ||
9562 | ||
c370783e | 9563 | static PyObject *_wrap_Image_GetAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9564 | PyObject *resultobj; |
9565 | wxImage *arg1 = (wxImage *) 0 ; | |
9566 | int arg2 ; | |
9567 | int arg3 ; | |
9568 | unsigned char result; | |
9569 | PyObject * obj0 = 0 ; | |
9570 | PyObject * obj1 = 0 ; | |
9571 | PyObject * obj2 = 0 ; | |
9572 | char *kwnames[] = { | |
9573 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9574 | }; | |
9575 | ||
9576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9579 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9580 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9581 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9582 | if (PyErr_Occurred()) SWIG_fail; |
9583 | { | |
9584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9585 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
9586 | ||
9587 | wxPyEndAllowThreads(__tstate); | |
9588 | if (PyErr_Occurred()) SWIG_fail; | |
9589 | } | |
c370783e | 9590 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9591 | return resultobj; |
9592 | fail: | |
9593 | return NULL; | |
9594 | } | |
9595 | ||
9596 | ||
c370783e | 9597 | static PyObject *_wrap_Image_HasAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9598 | PyObject *resultobj; |
9599 | wxImage *arg1 = (wxImage *) 0 ; | |
9600 | bool result; | |
9601 | PyObject * obj0 = 0 ; | |
9602 | char *kwnames[] = { | |
9603 | (char *) "self", NULL | |
9604 | }; | |
9605 | ||
9606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
9607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9609 | { | |
9610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9611 | result = (bool)(arg1)->HasAlpha(); | |
9612 | ||
9613 | wxPyEndAllowThreads(__tstate); | |
9614 | if (PyErr_Occurred()) SWIG_fail; | |
9615 | } | |
9616 | { | |
9617 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9618 | } | |
9619 | return resultobj; | |
9620 | fail: | |
9621 | return NULL; | |
9622 | } | |
9623 | ||
9624 | ||
c370783e | 9625 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9626 | PyObject *resultobj; |
9627 | wxImage *arg1 = (wxImage *) 0 ; | |
9628 | byte *arg2 = (byte *) 0 ; | |
9629 | byte *arg3 = (byte *) 0 ; | |
9630 | byte *arg4 = (byte *) 0 ; | |
9631 | byte arg5 = (byte) 0 ; | |
9632 | byte arg6 = (byte) 0 ; | |
9633 | byte arg7 = (byte) 0 ; | |
9634 | bool result; | |
9635 | byte temp2 ; | |
c370783e | 9636 | int res2 = 0 ; |
d55e5bfc | 9637 | byte temp3 ; |
c370783e | 9638 | int res3 = 0 ; |
d55e5bfc | 9639 | byte temp4 ; |
c370783e | 9640 | int res4 = 0 ; |
d55e5bfc RD |
9641 | PyObject * obj0 = 0 ; |
9642 | PyObject * obj1 = 0 ; | |
9643 | PyObject * obj2 = 0 ; | |
9644 | PyObject * obj3 = 0 ; | |
9645 | char *kwnames[] = { | |
9646 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
9647 | }; | |
9648 | ||
c370783e RD |
9649 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
9650 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
9651 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
9652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
9653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9655 | if (obj1) { | |
c370783e | 9656 | arg5 = (byte)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc RD |
9657 | if (PyErr_Occurred()) SWIG_fail; |
9658 | } | |
9659 | if (obj2) { | |
c370783e | 9660 | arg6 = (byte)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc RD |
9661 | if (PyErr_Occurred()) SWIG_fail; |
9662 | } | |
9663 | if (obj3) { | |
c370783e | 9664 | arg7 = (byte)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
9665 | if (PyErr_Occurred()) SWIG_fail; |
9666 | } | |
9667 | { | |
9668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9669 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
9670 | ||
9671 | wxPyEndAllowThreads(__tstate); | |
9672 | if (PyErr_Occurred()) SWIG_fail; | |
9673 | } | |
9674 | { | |
9675 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9676 | } | |
c370783e RD |
9677 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
9678 | SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_byte, 0))); | |
9679 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
9680 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0))); | |
9681 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
9682 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0))); | |
d55e5bfc RD |
9683 | return resultobj; |
9684 | fail: | |
9685 | return NULL; | |
9686 | } | |
9687 | ||
9688 | ||
c370783e | 9689 | static PyObject *_wrap_Image_ConvertAlphaToMask(PyObject *, PyObject *args, PyObject *kwargs) { |
4cf4100f RD |
9690 | PyObject *resultobj; |
9691 | wxImage *arg1 = (wxImage *) 0 ; | |
9692 | byte arg2 = (byte) 128 ; | |
9693 | bool result; | |
9694 | PyObject * obj0 = 0 ; | |
9695 | PyObject * obj1 = 0 ; | |
9696 | char *kwnames[] = { | |
9697 | (char *) "self",(char *) "threshold", NULL | |
9698 | }; | |
9699 | ||
9700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertAlphaToMask",kwnames,&obj0,&obj1)) goto fail; | |
9701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9703 | if (obj1) { | |
c370783e | 9704 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); |
4cf4100f RD |
9705 | if (PyErr_Occurred()) SWIG_fail; |
9706 | } | |
9707 | { | |
9708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9709 | result = (bool)(arg1)->ConvertAlphaToMask(arg2); | |
9710 | ||
9711 | wxPyEndAllowThreads(__tstate); | |
9712 | if (PyErr_Occurred()) SWIG_fail; | |
9713 | } | |
9714 | { | |
9715 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9716 | } | |
9717 | return resultobj; | |
9718 | fail: | |
9719 | return NULL; | |
9720 | } | |
9721 | ||
9722 | ||
c370783e | 9723 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9724 | PyObject *resultobj; |
9725 | wxImage *arg1 = (wxImage *) 0 ; | |
9726 | wxImage *arg2 = 0 ; | |
9727 | byte arg3 ; | |
9728 | byte arg4 ; | |
9729 | byte arg5 ; | |
9730 | bool result; | |
9731 | PyObject * obj0 = 0 ; | |
9732 | PyObject * obj1 = 0 ; | |
9733 | PyObject * obj2 = 0 ; | |
9734 | PyObject * obj3 = 0 ; | |
9735 | PyObject * obj4 = 0 ; | |
9736 | char *kwnames[] = { | |
9737 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
9738 | }; | |
9739 | ||
9740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
9741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9743 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
9744 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9745 | SWIG_fail; | |
9746 | if (arg2 == NULL) { | |
9747 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9748 | SWIG_fail; | |
9749 | } | |
c370783e | 9750 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 9751 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9752 | arg4 = (byte)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc | 9753 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9754 | arg5 = (byte)SWIG_As_unsigned_SS_char(obj4); |
d55e5bfc RD |
9755 | if (PyErr_Occurred()) SWIG_fail; |
9756 | { | |
9757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9758 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
9759 | ||
9760 | wxPyEndAllowThreads(__tstate); | |
9761 | if (PyErr_Occurred()) SWIG_fail; | |
9762 | } | |
9763 | { | |
9764 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9765 | } | |
9766 | return resultobj; | |
9767 | fail: | |
9768 | return NULL; | |
9769 | } | |
9770 | ||
9771 | ||
c370783e | 9772 | static PyObject *_wrap_Image_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9773 | PyObject *resultobj; |
9774 | wxString *arg1 = 0 ; | |
9775 | bool result; | |
b411df4a | 9776 | bool temp1 = false ; |
d55e5bfc RD |
9777 | PyObject * obj0 = 0 ; |
9778 | char *kwnames[] = { | |
9779 | (char *) "name", NULL | |
9780 | }; | |
9781 | ||
9782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
9783 | { | |
9784 | arg1 = wxString_in_helper(obj0); | |
9785 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 9786 | temp1 = true; |
d55e5bfc RD |
9787 | } |
9788 | { | |
9789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9790 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
9791 | ||
9792 | wxPyEndAllowThreads(__tstate); | |
9793 | if (PyErr_Occurred()) SWIG_fail; | |
9794 | } | |
9795 | { | |
9796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9797 | } | |
9798 | { | |
9799 | if (temp1) | |
9800 | delete arg1; | |
9801 | } | |
9802 | return resultobj; | |
9803 | fail: | |
9804 | { | |
9805 | if (temp1) | |
9806 | delete arg1; | |
9807 | } | |
9808 | return NULL; | |
9809 | } | |
9810 | ||
9811 | ||
c370783e | 9812 | static PyObject *_wrap_Image_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9813 | PyObject *resultobj; |
9814 | wxString *arg1 = 0 ; | |
9815 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9816 | int result; | |
b411df4a | 9817 | bool temp1 = false ; |
d55e5bfc RD |
9818 | PyObject * obj0 = 0 ; |
9819 | PyObject * obj1 = 0 ; | |
9820 | char *kwnames[] = { | |
9821 | (char *) "name",(char *) "type", NULL | |
9822 | }; | |
9823 | ||
9824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; | |
9825 | { | |
9826 | arg1 = wxString_in_helper(obj0); | |
9827 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 9828 | temp1 = true; |
d55e5bfc RD |
9829 | } |
9830 | if (obj1) { | |
c370783e | 9831 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
9832 | if (PyErr_Occurred()) SWIG_fail; |
9833 | } | |
9834 | { | |
9835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9836 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
9837 | ||
9838 | wxPyEndAllowThreads(__tstate); | |
9839 | if (PyErr_Occurred()) SWIG_fail; | |
9840 | } | |
c370783e | 9841 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
9842 | { |
9843 | if (temp1) | |
9844 | delete arg1; | |
9845 | } | |
9846 | return resultobj; | |
9847 | fail: | |
9848 | { | |
9849 | if (temp1) | |
9850 | delete arg1; | |
9851 | } | |
9852 | return NULL; | |
9853 | } | |
9854 | ||
9855 | ||
c370783e | 9856 | static PyObject *_wrap_Image_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9857 | PyObject *resultobj; |
9858 | wxImage *arg1 = (wxImage *) 0 ; | |
9859 | wxString *arg2 = 0 ; | |
9860 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
9861 | int arg4 = (int) -1 ; | |
9862 | bool result; | |
b411df4a | 9863 | bool temp2 = false ; |
d55e5bfc RD |
9864 | PyObject * obj0 = 0 ; |
9865 | PyObject * obj1 = 0 ; | |
9866 | PyObject * obj2 = 0 ; | |
9867 | PyObject * obj3 = 0 ; | |
9868 | char *kwnames[] = { | |
9869 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
9870 | }; | |
9871 | ||
9872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9875 | { | |
9876 | arg2 = wxString_in_helper(obj1); | |
9877 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 9878 | temp2 = true; |
d55e5bfc RD |
9879 | } |
9880 | if (obj2) { | |
c370783e | 9881 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
9882 | if (PyErr_Occurred()) SWIG_fail; |
9883 | } | |
9884 | if (obj3) { | |
c370783e | 9885 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
9886 | if (PyErr_Occurred()) SWIG_fail; |
9887 | } | |
9888 | { | |
9889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9890 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
9891 | ||
9892 | wxPyEndAllowThreads(__tstate); | |
9893 | if (PyErr_Occurred()) SWIG_fail; | |
9894 | } | |
9895 | { | |
9896 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9897 | } | |
9898 | { | |
9899 | if (temp2) | |
9900 | delete arg2; | |
9901 | } | |
9902 | return resultobj; | |
9903 | fail: | |
9904 | { | |
9905 | if (temp2) | |
9906 | delete arg2; | |
9907 | } | |
9908 | return NULL; | |
9909 | } | |
9910 | ||
9911 | ||
c370783e | 9912 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9913 | PyObject *resultobj; |
9914 | wxImage *arg1 = (wxImage *) 0 ; | |
9915 | wxString *arg2 = 0 ; | |
9916 | wxString *arg3 = 0 ; | |
9917 | int arg4 = (int) -1 ; | |
9918 | bool result; | |
b411df4a RD |
9919 | bool temp2 = false ; |
9920 | bool temp3 = false ; | |
d55e5bfc RD |
9921 | PyObject * obj0 = 0 ; |
9922 | PyObject * obj1 = 0 ; | |
9923 | PyObject * obj2 = 0 ; | |
9924 | PyObject * obj3 = 0 ; | |
9925 | char *kwnames[] = { | |
9926 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
9927 | }; | |
9928 | ||
9929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9932 | { | |
9933 | arg2 = wxString_in_helper(obj1); | |
9934 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 9935 | temp2 = true; |
d55e5bfc RD |
9936 | } |
9937 | { | |
9938 | arg3 = wxString_in_helper(obj2); | |
9939 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 9940 | temp3 = true; |
d55e5bfc RD |
9941 | } |
9942 | if (obj3) { | |
c370783e | 9943 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
9944 | if (PyErr_Occurred()) SWIG_fail; |
9945 | } | |
9946 | { | |
9947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9948 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
9949 | ||
9950 | wxPyEndAllowThreads(__tstate); | |
9951 | if (PyErr_Occurred()) SWIG_fail; | |
9952 | } | |
9953 | { | |
9954 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9955 | } | |
9956 | { | |
9957 | if (temp2) | |
9958 | delete arg2; | |
9959 | } | |
9960 | { | |
9961 | if (temp3) | |
9962 | delete arg3; | |
9963 | } | |
9964 | return resultobj; | |
9965 | fail: | |
9966 | { | |
9967 | if (temp2) | |
9968 | delete arg2; | |
9969 | } | |
9970 | { | |
9971 | if (temp3) | |
9972 | delete arg3; | |
9973 | } | |
9974 | return NULL; | |
9975 | } | |
9976 | ||
9977 | ||
c370783e | 9978 | static PyObject *_wrap_Image_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9979 | PyObject *resultobj; |
9980 | wxImage *arg1 = (wxImage *) 0 ; | |
9981 | wxString *arg2 = 0 ; | |
9982 | int arg3 ; | |
9983 | bool result; | |
b411df4a | 9984 | bool temp2 = false ; |
d55e5bfc RD |
9985 | PyObject * obj0 = 0 ; |
9986 | PyObject * obj1 = 0 ; | |
9987 | PyObject * obj2 = 0 ; | |
9988 | char *kwnames[] = { | |
9989 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9990 | }; | |
9991 | ||
9992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9995 | { | |
9996 | arg2 = wxString_in_helper(obj1); | |
9997 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 9998 | temp2 = true; |
d55e5bfc | 9999 | } |
c370783e | 10000 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
10001 | if (PyErr_Occurred()) SWIG_fail; |
10002 | { | |
10003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10004 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
10005 | ||
10006 | wxPyEndAllowThreads(__tstate); | |
10007 | if (PyErr_Occurred()) SWIG_fail; | |
10008 | } | |
10009 | { | |
10010 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10011 | } | |
10012 | { | |
10013 | if (temp2) | |
10014 | delete arg2; | |
10015 | } | |
10016 | return resultobj; | |
10017 | fail: | |
10018 | { | |
10019 | if (temp2) | |
10020 | delete arg2; | |
10021 | } | |
10022 | return NULL; | |
10023 | } | |
10024 | ||
10025 | ||
c370783e | 10026 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10027 | PyObject *resultobj; |
10028 | wxImage *arg1 = (wxImage *) 0 ; | |
10029 | wxString *arg2 = 0 ; | |
10030 | wxString *arg3 = 0 ; | |
10031 | bool result; | |
b411df4a RD |
10032 | bool temp2 = false ; |
10033 | bool temp3 = false ; | |
d55e5bfc RD |
10034 | PyObject * obj0 = 0 ; |
10035 | PyObject * obj1 = 0 ; | |
10036 | PyObject * obj2 = 0 ; | |
10037 | char *kwnames[] = { | |
10038 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
10039 | }; | |
10040 | ||
10041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10044 | { | |
10045 | arg2 = wxString_in_helper(obj1); | |
10046 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 10047 | temp2 = true; |
d55e5bfc RD |
10048 | } |
10049 | { | |
10050 | arg3 = wxString_in_helper(obj2); | |
10051 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 10052 | temp3 = true; |
d55e5bfc RD |
10053 | } |
10054 | { | |
10055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10056 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
10057 | ||
10058 | wxPyEndAllowThreads(__tstate); | |
10059 | if (PyErr_Occurred()) SWIG_fail; | |
10060 | } | |
10061 | { | |
10062 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10063 | } | |
10064 | { | |
10065 | if (temp2) | |
10066 | delete arg2; | |
10067 | } | |
10068 | { | |
10069 | if (temp3) | |
10070 | delete arg3; | |
10071 | } | |
10072 | return resultobj; | |
10073 | fail: | |
10074 | { | |
10075 | if (temp2) | |
10076 | delete arg2; | |
10077 | } | |
10078 | { | |
10079 | if (temp3) | |
10080 | delete arg3; | |
10081 | } | |
10082 | return NULL; | |
10083 | } | |
10084 | ||
10085 | ||
c370783e | 10086 | static PyObject *_wrap_Image_CanReadStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10087 | PyObject *resultobj; |
10088 | wxInputStream *arg1 = 0 ; | |
10089 | bool result; | |
10090 | wxPyInputStream *temp1 ; | |
10091 | bool created1 ; | |
10092 | PyObject * obj0 = 0 ; | |
10093 | char *kwnames[] = { | |
10094 | (char *) "stream", NULL | |
10095 | }; | |
10096 | ||
10097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
10098 | { | |
10099 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
10100 | arg1 = temp1->m_wxis; | |
b411df4a | 10101 | created1 = false; |
d55e5bfc RD |
10102 | } else { |
10103 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
b411df4a | 10104 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
10105 | if (arg1 == NULL) { |
10106 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10107 | SWIG_fail; | |
10108 | } | |
b411df4a | 10109 | created1 = true; |
d55e5bfc RD |
10110 | } |
10111 | } | |
10112 | { | |
10113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10114 | result = (bool)wxImage::CanRead(*arg1); | |
10115 | ||
10116 | wxPyEndAllowThreads(__tstate); | |
10117 | if (PyErr_Occurred()) SWIG_fail; | |
10118 | } | |
10119 | { | |
10120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10121 | } | |
10122 | { | |
10123 | if (created1) | |
10124 | delete arg1; | |
10125 | } | |
10126 | return resultobj; | |
10127 | fail: | |
10128 | { | |
10129 | if (created1) | |
10130 | delete arg1; | |
10131 | } | |
10132 | return NULL; | |
10133 | } | |
10134 | ||
10135 | ||
c370783e | 10136 | static PyObject *_wrap_Image_LoadStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10137 | PyObject *resultobj; |
10138 | wxImage *arg1 = (wxImage *) 0 ; | |
10139 | wxInputStream *arg2 = 0 ; | |
10140 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
10141 | int arg4 = (int) -1 ; | |
10142 | bool result; | |
10143 | wxPyInputStream *temp2 ; | |
10144 | bool created2 ; | |
10145 | PyObject * obj0 = 0 ; | |
10146 | PyObject * obj1 = 0 ; | |
10147 | PyObject * obj2 = 0 ; | |
10148 | PyObject * obj3 = 0 ; | |
10149 | char *kwnames[] = { | |
10150 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
10151 | }; | |
10152 | ||
10153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10156 | { | |
10157 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
10158 | arg2 = temp2->m_wxis; | |
b411df4a | 10159 | created2 = false; |
d55e5bfc RD |
10160 | } else { |
10161 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
b411df4a | 10162 | arg2 = wxPyCBInputStream_create(obj1, false); |
d55e5bfc RD |
10163 | if (arg2 == NULL) { |
10164 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10165 | SWIG_fail; | |
10166 | } | |
b411df4a | 10167 | created2 = true; |
d55e5bfc RD |
10168 | } |
10169 | } | |
10170 | if (obj2) { | |
c370783e | 10171 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
10172 | if (PyErr_Occurred()) SWIG_fail; |
10173 | } | |
10174 | if (obj3) { | |
c370783e | 10175 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10176 | if (PyErr_Occurred()) SWIG_fail; |
10177 | } | |
10178 | { | |
10179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10180 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
10181 | ||
10182 | wxPyEndAllowThreads(__tstate); | |
10183 | if (PyErr_Occurred()) SWIG_fail; | |
10184 | } | |
10185 | { | |
10186 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10187 | } | |
10188 | { | |
10189 | if (created2) | |
10190 | delete arg2; | |
10191 | } | |
10192 | return resultobj; | |
10193 | fail: | |
10194 | { | |
10195 | if (created2) | |
10196 | delete arg2; | |
10197 | } | |
10198 | return NULL; | |
10199 | } | |
10200 | ||
10201 | ||
c370783e | 10202 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10203 | PyObject *resultobj; |
10204 | wxImage *arg1 = (wxImage *) 0 ; | |
10205 | wxInputStream *arg2 = 0 ; | |
10206 | wxString *arg3 = 0 ; | |
10207 | int arg4 = (int) -1 ; | |
10208 | bool result; | |
10209 | wxPyInputStream *temp2 ; | |
10210 | bool created2 ; | |
b411df4a | 10211 | bool temp3 = false ; |
d55e5bfc RD |
10212 | PyObject * obj0 = 0 ; |
10213 | PyObject * obj1 = 0 ; | |
10214 | PyObject * obj2 = 0 ; | |
10215 | PyObject * obj3 = 0 ; | |
10216 | char *kwnames[] = { | |
10217 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
10218 | }; | |
10219 | ||
10220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10223 | { | |
10224 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
10225 | arg2 = temp2->m_wxis; | |
b411df4a | 10226 | created2 = false; |
d55e5bfc RD |
10227 | } else { |
10228 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
b411df4a | 10229 | arg2 = wxPyCBInputStream_create(obj1, false); |
d55e5bfc RD |
10230 | if (arg2 == NULL) { |
10231 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10232 | SWIG_fail; | |
10233 | } | |
b411df4a | 10234 | created2 = true; |
d55e5bfc RD |
10235 | } |
10236 | } | |
10237 | { | |
10238 | arg3 = wxString_in_helper(obj2); | |
10239 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 10240 | temp3 = true; |
d55e5bfc RD |
10241 | } |
10242 | if (obj3) { | |
c370783e | 10243 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10244 | if (PyErr_Occurred()) SWIG_fail; |
10245 | } | |
10246 | { | |
10247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10248 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
10249 | ||
10250 | wxPyEndAllowThreads(__tstate); | |
10251 | if (PyErr_Occurred()) SWIG_fail; | |
10252 | } | |
10253 | { | |
10254 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10255 | } | |
10256 | { | |
10257 | if (created2) | |
10258 | delete arg2; | |
10259 | } | |
10260 | { | |
10261 | if (temp3) | |
10262 | delete arg3; | |
10263 | } | |
10264 | return resultobj; | |
10265 | fail: | |
10266 | { | |
10267 | if (created2) | |
10268 | delete arg2; | |
10269 | } | |
10270 | { | |
10271 | if (temp3) | |
10272 | delete arg3; | |
10273 | } | |
10274 | return NULL; | |
10275 | } | |
10276 | ||
10277 | ||
c370783e | 10278 | static PyObject *_wrap_Image_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10279 | PyObject *resultobj; |
10280 | wxImage *arg1 = (wxImage *) 0 ; | |
10281 | bool result; | |
10282 | PyObject * obj0 = 0 ; | |
10283 | char *kwnames[] = { | |
10284 | (char *) "self", NULL | |
10285 | }; | |
10286 | ||
10287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
10288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10290 | { | |
10291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10292 | result = (bool)(arg1)->Ok(); | |
10293 | ||
10294 | wxPyEndAllowThreads(__tstate); | |
10295 | if (PyErr_Occurred()) SWIG_fail; | |
10296 | } | |
10297 | { | |
10298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10299 | } | |
10300 | return resultobj; | |
10301 | fail: | |
10302 | return NULL; | |
10303 | } | |
10304 | ||
10305 | ||
c370783e | 10306 | static PyObject *_wrap_Image_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10307 | PyObject *resultobj; |
10308 | wxImage *arg1 = (wxImage *) 0 ; | |
10309 | int result; | |
10310 | PyObject * obj0 = 0 ; | |
10311 | char *kwnames[] = { | |
10312 | (char *) "self", NULL | |
10313 | }; | |
10314 | ||
10315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
10316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10318 | { | |
10319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10320 | result = (int)(arg1)->GetWidth(); | |
10321 | ||
10322 | wxPyEndAllowThreads(__tstate); | |
10323 | if (PyErr_Occurred()) SWIG_fail; | |
10324 | } | |
c370783e | 10325 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10326 | return resultobj; |
10327 | fail: | |
10328 | return NULL; | |
10329 | } | |
10330 | ||
10331 | ||
c370783e | 10332 | static PyObject *_wrap_Image_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10333 | PyObject *resultobj; |
10334 | wxImage *arg1 = (wxImage *) 0 ; | |
10335 | int result; | |
10336 | PyObject * obj0 = 0 ; | |
10337 | char *kwnames[] = { | |
10338 | (char *) "self", NULL | |
10339 | }; | |
10340 | ||
10341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
10342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10344 | { | |
10345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10346 | result = (int)(arg1)->GetHeight(); | |
10347 | ||
10348 | wxPyEndAllowThreads(__tstate); | |
10349 | if (PyErr_Occurred()) SWIG_fail; | |
10350 | } | |
c370783e | 10351 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10352 | return resultobj; |
10353 | fail: | |
10354 | return NULL; | |
10355 | } | |
10356 | ||
10357 | ||
c370783e | 10358 | static PyObject *_wrap_Image_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10359 | PyObject *resultobj; |
10360 | wxImage *arg1 = (wxImage *) 0 ; | |
10361 | wxSize result; | |
10362 | PyObject * obj0 = 0 ; | |
10363 | char *kwnames[] = { | |
10364 | (char *) "self", NULL | |
10365 | }; | |
10366 | ||
10367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail; | |
10368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10370 | { | |
10371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10372 | result = wxImage_GetSize(arg1); | |
10373 | ||
10374 | wxPyEndAllowThreads(__tstate); | |
10375 | if (PyErr_Occurred()) SWIG_fail; | |
10376 | } | |
10377 | { | |
10378 | wxSize * resultptr; | |
10379 | resultptr = new wxSize((wxSize &) result); | |
10380 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
10381 | } | |
10382 | return resultobj; | |
10383 | fail: | |
10384 | return NULL; | |
10385 | } | |
10386 | ||
10387 | ||
c370783e | 10388 | static PyObject *_wrap_Image_GetSubImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10389 | PyObject *resultobj; |
10390 | wxImage *arg1 = (wxImage *) 0 ; | |
10391 | wxRect *arg2 = 0 ; | |
10392 | SwigValueWrapper< wxImage > result; | |
10393 | wxRect temp2 ; | |
10394 | PyObject * obj0 = 0 ; | |
10395 | PyObject * obj1 = 0 ; | |
10396 | char *kwnames[] = { | |
10397 | (char *) "self",(char *) "rect", NULL | |
10398 | }; | |
10399 | ||
10400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
10401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10403 | { | |
10404 | arg2 = &temp2; | |
10405 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10406 | } | |
10407 | { | |
10408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10409 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
10410 | ||
10411 | wxPyEndAllowThreads(__tstate); | |
10412 | if (PyErr_Occurred()) SWIG_fail; | |
10413 | } | |
10414 | { | |
10415 | wxImage * resultptr; | |
10416 | resultptr = new wxImage((wxImage &) result); | |
10417 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10418 | } | |
10419 | return resultobj; | |
10420 | fail: | |
10421 | return NULL; | |
10422 | } | |
10423 | ||
10424 | ||
c370783e | 10425 | static PyObject *_wrap_Image_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10426 | PyObject *resultobj; |
10427 | wxImage *arg1 = (wxImage *) 0 ; | |
10428 | SwigValueWrapper< wxImage > result; | |
10429 | PyObject * obj0 = 0 ; | |
10430 | char *kwnames[] = { | |
10431 | (char *) "self", NULL | |
10432 | }; | |
10433 | ||
10434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
10435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10437 | { | |
10438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10439 | result = (arg1)->Copy(); | |
10440 | ||
10441 | wxPyEndAllowThreads(__tstate); | |
10442 | if (PyErr_Occurred()) SWIG_fail; | |
10443 | } | |
10444 | { | |
10445 | wxImage * resultptr; | |
10446 | resultptr = new wxImage((wxImage &) result); | |
10447 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10448 | } | |
10449 | return resultobj; | |
10450 | fail: | |
10451 | return NULL; | |
10452 | } | |
10453 | ||
10454 | ||
c370783e | 10455 | static PyObject *_wrap_Image_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10456 | PyObject *resultobj; |
10457 | wxImage *arg1 = (wxImage *) 0 ; | |
10458 | wxImage *arg2 = 0 ; | |
10459 | int arg3 ; | |
10460 | int arg4 ; | |
10461 | PyObject * obj0 = 0 ; | |
10462 | PyObject * obj1 = 0 ; | |
10463 | PyObject * obj2 = 0 ; | |
10464 | PyObject * obj3 = 0 ; | |
10465 | char *kwnames[] = { | |
10466 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
10467 | }; | |
10468 | ||
10469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10472 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
10473 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10474 | SWIG_fail; | |
10475 | if (arg2 == NULL) { | |
10476 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10477 | SWIG_fail; | |
10478 | } | |
c370783e | 10479 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 10480 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 10481 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10482 | if (PyErr_Occurred()) SWIG_fail; |
10483 | { | |
10484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10485 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
10486 | ||
10487 | wxPyEndAllowThreads(__tstate); | |
10488 | if (PyErr_Occurred()) SWIG_fail; | |
10489 | } | |
10490 | Py_INCREF(Py_None); resultobj = Py_None; | |
10491 | return resultobj; | |
10492 | fail: | |
10493 | return NULL; | |
10494 | } | |
10495 | ||
10496 | ||
c370783e | 10497 | static PyObject *_wrap_Image_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10498 | PyObject *resultobj; |
10499 | wxImage *arg1 = (wxImage *) 0 ; | |
10500 | PyObject *result; | |
10501 | PyObject * obj0 = 0 ; | |
10502 | char *kwnames[] = { | |
10503 | (char *) "self", NULL | |
10504 | }; | |
10505 | ||
10506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
10507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10509 | { | |
10510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10511 | result = (PyObject *)wxImage_GetData(arg1); | |
10512 | ||
10513 | wxPyEndAllowThreads(__tstate); | |
10514 | if (PyErr_Occurred()) SWIG_fail; | |
10515 | } | |
10516 | resultobj = result; | |
10517 | return resultobj; | |
10518 | fail: | |
10519 | return NULL; | |
10520 | } | |
10521 | ||
10522 | ||
c370783e | 10523 | static PyObject *_wrap_Image_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10524 | PyObject *resultobj; |
10525 | wxImage *arg1 = (wxImage *) 0 ; | |
10526 | PyObject *arg2 = (PyObject *) 0 ; | |
10527 | PyObject * obj0 = 0 ; | |
10528 | PyObject * obj1 = 0 ; | |
10529 | char *kwnames[] = { | |
10530 | (char *) "self",(char *) "data", NULL | |
10531 | }; | |
10532 | ||
10533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
10534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10536 | arg2 = obj1; | |
10537 | { | |
10538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10539 | wxImage_SetData(arg1,arg2); | |
10540 | ||
10541 | wxPyEndAllowThreads(__tstate); | |
10542 | if (PyErr_Occurred()) SWIG_fail; | |
10543 | } | |
10544 | Py_INCREF(Py_None); resultobj = Py_None; | |
10545 | return resultobj; | |
10546 | fail: | |
10547 | return NULL; | |
10548 | } | |
10549 | ||
10550 | ||
c370783e | 10551 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10552 | PyObject *resultobj; |
10553 | wxImage *arg1 = (wxImage *) 0 ; | |
10554 | PyObject *result; | |
10555 | PyObject * obj0 = 0 ; | |
10556 | char *kwnames[] = { | |
10557 | (char *) "self", NULL | |
10558 | }; | |
10559 | ||
10560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
10561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10563 | { | |
10564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10565 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
10566 | ||
10567 | wxPyEndAllowThreads(__tstate); | |
10568 | if (PyErr_Occurred()) SWIG_fail; | |
10569 | } | |
10570 | resultobj = result; | |
10571 | return resultobj; | |
10572 | fail: | |
10573 | return NULL; | |
10574 | } | |
10575 | ||
10576 | ||
c370783e | 10577 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10578 | PyObject *resultobj; |
10579 | wxImage *arg1 = (wxImage *) 0 ; | |
10580 | PyObject *arg2 = (PyObject *) 0 ; | |
10581 | PyObject * obj0 = 0 ; | |
10582 | PyObject * obj1 = 0 ; | |
10583 | char *kwnames[] = { | |
10584 | (char *) "self",(char *) "data", NULL | |
10585 | }; | |
10586 | ||
10587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
10588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10590 | arg2 = obj1; | |
10591 | { | |
10592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10593 | wxImage_SetDataBuffer(arg1,arg2); | |
10594 | ||
10595 | wxPyEndAllowThreads(__tstate); | |
10596 | if (PyErr_Occurred()) SWIG_fail; | |
10597 | } | |
10598 | Py_INCREF(Py_None); resultobj = Py_None; | |
10599 | return resultobj; | |
10600 | fail: | |
10601 | return NULL; | |
10602 | } | |
10603 | ||
10604 | ||
c370783e | 10605 | static PyObject *_wrap_Image_GetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10606 | PyObject *resultobj; |
10607 | wxImage *arg1 = (wxImage *) 0 ; | |
10608 | PyObject *result; | |
10609 | PyObject * obj0 = 0 ; | |
10610 | char *kwnames[] = { | |
10611 | (char *) "self", NULL | |
10612 | }; | |
10613 | ||
10614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
10615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10617 | { | |
10618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10619 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
10620 | ||
10621 | wxPyEndAllowThreads(__tstate); | |
10622 | if (PyErr_Occurred()) SWIG_fail; | |
10623 | } | |
10624 | resultobj = result; | |
10625 | return resultobj; | |
10626 | fail: | |
10627 | return NULL; | |
10628 | } | |
10629 | ||
10630 | ||
c370783e | 10631 | static PyObject *_wrap_Image_SetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10632 | PyObject *resultobj; |
10633 | wxImage *arg1 = (wxImage *) 0 ; | |
10634 | PyObject *arg2 = (PyObject *) 0 ; | |
10635 | PyObject * obj0 = 0 ; | |
10636 | PyObject * obj1 = 0 ; | |
10637 | char *kwnames[] = { | |
10638 | (char *) "self",(char *) "data", NULL | |
10639 | }; | |
10640 | ||
10641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
10642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10644 | arg2 = obj1; | |
10645 | { | |
10646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10647 | wxImage_SetAlphaData(arg1,arg2); | |
10648 | ||
10649 | wxPyEndAllowThreads(__tstate); | |
10650 | if (PyErr_Occurred()) SWIG_fail; | |
10651 | } | |
10652 | Py_INCREF(Py_None); resultobj = Py_None; | |
10653 | return resultobj; | |
10654 | fail: | |
10655 | return NULL; | |
10656 | } | |
10657 | ||
10658 | ||
c370783e | 10659 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10660 | PyObject *resultobj; |
10661 | wxImage *arg1 = (wxImage *) 0 ; | |
10662 | PyObject *result; | |
10663 | PyObject * obj0 = 0 ; | |
10664 | char *kwnames[] = { | |
10665 | (char *) "self", NULL | |
10666 | }; | |
10667 | ||
10668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
10669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10671 | { | |
10672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10673 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
10674 | ||
10675 | wxPyEndAllowThreads(__tstate); | |
10676 | if (PyErr_Occurred()) SWIG_fail; | |
10677 | } | |
10678 | resultobj = result; | |
10679 | return resultobj; | |
10680 | fail: | |
10681 | return NULL; | |
10682 | } | |
10683 | ||
10684 | ||
c370783e | 10685 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10686 | PyObject *resultobj; |
10687 | wxImage *arg1 = (wxImage *) 0 ; | |
10688 | PyObject *arg2 = (PyObject *) 0 ; | |
10689 | PyObject * obj0 = 0 ; | |
10690 | PyObject * obj1 = 0 ; | |
10691 | char *kwnames[] = { | |
10692 | (char *) "self",(char *) "data", NULL | |
10693 | }; | |
10694 | ||
10695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
10696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10698 | arg2 = obj1; | |
10699 | { | |
10700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10701 | wxImage_SetAlphaBuffer(arg1,arg2); | |
10702 | ||
10703 | wxPyEndAllowThreads(__tstate); | |
10704 | if (PyErr_Occurred()) SWIG_fail; | |
10705 | } | |
10706 | Py_INCREF(Py_None); resultobj = Py_None; | |
10707 | return resultobj; | |
10708 | fail: | |
10709 | return NULL; | |
10710 | } | |
10711 | ||
10712 | ||
c370783e | 10713 | static PyObject *_wrap_Image_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10714 | PyObject *resultobj; |
10715 | wxImage *arg1 = (wxImage *) 0 ; | |
10716 | unsigned char arg2 ; | |
10717 | unsigned char arg3 ; | |
10718 | unsigned char arg4 ; | |
10719 | PyObject * obj0 = 0 ; | |
10720 | PyObject * obj1 = 0 ; | |
10721 | PyObject * obj2 = 0 ; | |
10722 | PyObject * obj3 = 0 ; | |
10723 | char *kwnames[] = { | |
10724 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10725 | }; | |
10726 | ||
10727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10730 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 10731 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 10732 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 10733 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 10734 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
10735 | if (PyErr_Occurred()) SWIG_fail; |
10736 | { | |
10737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10738 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
10739 | ||
10740 | wxPyEndAllowThreads(__tstate); | |
10741 | if (PyErr_Occurred()) SWIG_fail; | |
10742 | } | |
10743 | Py_INCREF(Py_None); resultobj = Py_None; | |
10744 | return resultobj; | |
10745 | fail: | |
10746 | return NULL; | |
10747 | } | |
10748 | ||
10749 | ||
c370783e | 10750 | static PyObject *_wrap_Image_GetMaskRed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10751 | PyObject *resultobj; |
10752 | wxImage *arg1 = (wxImage *) 0 ; | |
10753 | unsigned char result; | |
10754 | PyObject * obj0 = 0 ; | |
10755 | char *kwnames[] = { | |
10756 | (char *) "self", NULL | |
10757 | }; | |
10758 | ||
10759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
10760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10762 | { | |
10763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10764 | result = (unsigned char)(arg1)->GetMaskRed(); | |
10765 | ||
10766 | wxPyEndAllowThreads(__tstate); | |
10767 | if (PyErr_Occurred()) SWIG_fail; | |
10768 | } | |
c370783e | 10769 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
10770 | return resultobj; |
10771 | fail: | |
10772 | return NULL; | |
10773 | } | |
10774 | ||
10775 | ||
c370783e | 10776 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10777 | PyObject *resultobj; |
10778 | wxImage *arg1 = (wxImage *) 0 ; | |
10779 | unsigned char result; | |
10780 | PyObject * obj0 = 0 ; | |
10781 | char *kwnames[] = { | |
10782 | (char *) "self", NULL | |
10783 | }; | |
10784 | ||
10785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
10786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10788 | { | |
10789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10790 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
10791 | ||
10792 | wxPyEndAllowThreads(__tstate); | |
10793 | if (PyErr_Occurred()) SWIG_fail; | |
10794 | } | |
c370783e | 10795 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
10796 | return resultobj; |
10797 | fail: | |
10798 | return NULL; | |
10799 | } | |
10800 | ||
10801 | ||
c370783e | 10802 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10803 | PyObject *resultobj; |
10804 | wxImage *arg1 = (wxImage *) 0 ; | |
10805 | unsigned char result; | |
10806 | PyObject * obj0 = 0 ; | |
10807 | char *kwnames[] = { | |
10808 | (char *) "self", NULL | |
10809 | }; | |
10810 | ||
10811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
10812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10814 | { | |
10815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10816 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
10817 | ||
10818 | wxPyEndAllowThreads(__tstate); | |
10819 | if (PyErr_Occurred()) SWIG_fail; | |
10820 | } | |
c370783e | 10821 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
10822 | return resultobj; |
10823 | fail: | |
10824 | return NULL; | |
10825 | } | |
10826 | ||
10827 | ||
c370783e | 10828 | static PyObject *_wrap_Image_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10829 | PyObject *resultobj; |
10830 | wxImage *arg1 = (wxImage *) 0 ; | |
b411df4a | 10831 | bool arg2 = (bool) true ; |
d55e5bfc RD |
10832 | PyObject * obj0 = 0 ; |
10833 | PyObject * obj1 = 0 ; | |
10834 | char *kwnames[] = { | |
10835 | (char *) "self",(char *) "mask", NULL | |
10836 | }; | |
10837 | ||
10838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
10839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10841 | if (obj1) { | |
c370783e | 10842 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
10843 | if (PyErr_Occurred()) SWIG_fail; |
10844 | } | |
10845 | { | |
10846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10847 | (arg1)->SetMask(arg2); | |
10848 | ||
10849 | wxPyEndAllowThreads(__tstate); | |
10850 | if (PyErr_Occurred()) SWIG_fail; | |
10851 | } | |
10852 | Py_INCREF(Py_None); resultobj = Py_None; | |
10853 | return resultobj; | |
10854 | fail: | |
10855 | return NULL; | |
10856 | } | |
10857 | ||
10858 | ||
c370783e | 10859 | static PyObject *_wrap_Image_HasMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10860 | PyObject *resultobj; |
10861 | wxImage *arg1 = (wxImage *) 0 ; | |
10862 | bool result; | |
10863 | PyObject * obj0 = 0 ; | |
10864 | char *kwnames[] = { | |
10865 | (char *) "self", NULL | |
10866 | }; | |
10867 | ||
10868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
10869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10871 | { | |
10872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10873 | result = (bool)(arg1)->HasMask(); | |
10874 | ||
10875 | wxPyEndAllowThreads(__tstate); | |
10876 | if (PyErr_Occurred()) SWIG_fail; | |
10877 | } | |
10878 | { | |
10879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10880 | } | |
10881 | return resultobj; | |
10882 | fail: | |
10883 | return NULL; | |
10884 | } | |
10885 | ||
10886 | ||
c370783e | 10887 | static PyObject *_wrap_Image_Rotate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10888 | PyObject *resultobj; |
10889 | wxImage *arg1 = (wxImage *) 0 ; | |
10890 | double arg2 ; | |
10891 | wxPoint *arg3 = 0 ; | |
b411df4a | 10892 | bool arg4 = (bool) true ; |
d55e5bfc RD |
10893 | wxPoint *arg5 = (wxPoint *) NULL ; |
10894 | SwigValueWrapper< wxImage > result; | |
10895 | wxPoint temp3 ; | |
10896 | PyObject * obj0 = 0 ; | |
10897 | PyObject * obj1 = 0 ; | |
10898 | PyObject * obj2 = 0 ; | |
10899 | PyObject * obj3 = 0 ; | |
10900 | PyObject * obj4 = 0 ; | |
10901 | char *kwnames[] = { | |
10902 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
10903 | }; | |
10904 | ||
10905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
10906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10908 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
10909 | if (PyErr_Occurred()) SWIG_fail; |
10910 | { | |
10911 | arg3 = &temp3; | |
10912 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10913 | } | |
10914 | if (obj3) { | |
c370783e | 10915 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
10916 | if (PyErr_Occurred()) SWIG_fail; |
10917 | } | |
10918 | if (obj4) { | |
10919 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint, | |
10920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10921 | } | |
10922 | { | |
10923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10924 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
10925 | ||
10926 | wxPyEndAllowThreads(__tstate); | |
10927 | if (PyErr_Occurred()) SWIG_fail; | |
10928 | } | |
10929 | { | |
10930 | wxImage * resultptr; | |
10931 | resultptr = new wxImage((wxImage &) result); | |
10932 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10933 | } | |
10934 | return resultobj; | |
10935 | fail: | |
10936 | return NULL; | |
10937 | } | |
10938 | ||
10939 | ||
c370783e | 10940 | static PyObject *_wrap_Image_Rotate90(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10941 | PyObject *resultobj; |
10942 | wxImage *arg1 = (wxImage *) 0 ; | |
b411df4a | 10943 | bool arg2 = (bool) true ; |
d55e5bfc RD |
10944 | SwigValueWrapper< wxImage > result; |
10945 | PyObject * obj0 = 0 ; | |
10946 | PyObject * obj1 = 0 ; | |
10947 | char *kwnames[] = { | |
10948 | (char *) "self",(char *) "clockwise", NULL | |
10949 | }; | |
10950 | ||
10951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
10952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10954 | if (obj1) { | |
c370783e | 10955 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
10956 | if (PyErr_Occurred()) SWIG_fail; |
10957 | } | |
10958 | { | |
10959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10960 | result = (arg1)->Rotate90(arg2); | |
10961 | ||
10962 | wxPyEndAllowThreads(__tstate); | |
10963 | if (PyErr_Occurred()) SWIG_fail; | |
10964 | } | |
10965 | { | |
10966 | wxImage * resultptr; | |
10967 | resultptr = new wxImage((wxImage &) result); | |
10968 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10969 | } | |
10970 | return resultobj; | |
10971 | fail: | |
10972 | return NULL; | |
10973 | } | |
10974 | ||
10975 | ||
c370783e | 10976 | static PyObject *_wrap_Image_Mirror(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10977 | PyObject *resultobj; |
10978 | wxImage *arg1 = (wxImage *) 0 ; | |
b411df4a | 10979 | bool arg2 = (bool) true ; |
d55e5bfc RD |
10980 | SwigValueWrapper< wxImage > result; |
10981 | PyObject * obj0 = 0 ; | |
10982 | PyObject * obj1 = 0 ; | |
10983 | char *kwnames[] = { | |
10984 | (char *) "self",(char *) "horizontally", NULL | |
10985 | }; | |
10986 | ||
10987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
10988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10990 | if (obj1) { | |
c370783e | 10991 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
10992 | if (PyErr_Occurred()) SWIG_fail; |
10993 | } | |
10994 | { | |
10995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10996 | result = (arg1)->Mirror(arg2); | |
10997 | ||
10998 | wxPyEndAllowThreads(__tstate); | |
10999 | if (PyErr_Occurred()) SWIG_fail; | |
11000 | } | |
11001 | { | |
11002 | wxImage * resultptr; | |
11003 | resultptr = new wxImage((wxImage &) result); | |
11004 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
11005 | } | |
11006 | return resultobj; | |
11007 | fail: | |
11008 | return NULL; | |
11009 | } | |
11010 | ||
11011 | ||
c370783e | 11012 | static PyObject *_wrap_Image_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11013 | PyObject *resultobj; |
11014 | wxImage *arg1 = (wxImage *) 0 ; | |
11015 | unsigned char arg2 ; | |
11016 | unsigned char arg3 ; | |
11017 | unsigned char arg4 ; | |
11018 | unsigned char arg5 ; | |
11019 | unsigned char arg6 ; | |
11020 | unsigned char arg7 ; | |
11021 | PyObject * obj0 = 0 ; | |
11022 | PyObject * obj1 = 0 ; | |
11023 | PyObject * obj2 = 0 ; | |
11024 | PyObject * obj3 = 0 ; | |
11025 | PyObject * obj4 = 0 ; | |
11026 | PyObject * obj5 = 0 ; | |
11027 | PyObject * obj6 = 0 ; | |
11028 | char *kwnames[] = { | |
11029 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
11030 | }; | |
11031 | ||
11032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11035 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 11036 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11037 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 11038 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11039 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc | 11040 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11041 | arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj4); |
d55e5bfc | 11042 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11043 | arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj5); |
d55e5bfc | 11044 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11045 | arg7 = (unsigned char)SWIG_As_unsigned_SS_char(obj6); |
d55e5bfc RD |
11046 | if (PyErr_Occurred()) SWIG_fail; |
11047 | { | |
11048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11049 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
11050 | ||
11051 | wxPyEndAllowThreads(__tstate); | |
11052 | if (PyErr_Occurred()) SWIG_fail; | |
11053 | } | |
11054 | Py_INCREF(Py_None); resultobj = Py_None; | |
11055 | return resultobj; | |
11056 | fail: | |
11057 | return NULL; | |
11058 | } | |
11059 | ||
11060 | ||
c370783e | 11061 | static PyObject *_wrap_Image_ConvertToMono(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11062 | PyObject *resultobj; |
11063 | wxImage *arg1 = (wxImage *) 0 ; | |
11064 | unsigned char arg2 ; | |
11065 | unsigned char arg3 ; | |
11066 | unsigned char arg4 ; | |
11067 | SwigValueWrapper< wxImage > result; | |
11068 | PyObject * obj0 = 0 ; | |
11069 | PyObject * obj1 = 0 ; | |
11070 | PyObject * obj2 = 0 ; | |
11071 | PyObject * obj3 = 0 ; | |
11072 | char *kwnames[] = { | |
11073 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
11074 | }; | |
11075 | ||
11076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11079 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 11080 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11081 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 11082 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11083 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
11084 | if (PyErr_Occurred()) SWIG_fail; |
11085 | { | |
11086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11087 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
11088 | ||
11089 | wxPyEndAllowThreads(__tstate); | |
11090 | if (PyErr_Occurred()) SWIG_fail; | |
11091 | } | |
11092 | { | |
11093 | wxImage * resultptr; | |
11094 | resultptr = new wxImage((wxImage &) result); | |
11095 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
11096 | } | |
11097 | return resultobj; | |
11098 | fail: | |
11099 | return NULL; | |
11100 | } | |
11101 | ||
11102 | ||
c370783e | 11103 | static PyObject *_wrap_Image_SetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11104 | PyObject *resultobj; |
11105 | wxImage *arg1 = (wxImage *) 0 ; | |
11106 | wxString *arg2 = 0 ; | |
11107 | wxString *arg3 = 0 ; | |
b411df4a RD |
11108 | bool temp2 = false ; |
11109 | bool temp3 = false ; | |
d55e5bfc RD |
11110 | PyObject * obj0 = 0 ; |
11111 | PyObject * obj1 = 0 ; | |
11112 | PyObject * obj2 = 0 ; | |
11113 | char *kwnames[] = { | |
11114 | (char *) "self",(char *) "name",(char *) "value", NULL | |
11115 | }; | |
11116 | ||
11117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11120 | { | |
11121 | arg2 = wxString_in_helper(obj1); | |
11122 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 11123 | temp2 = true; |
d55e5bfc RD |
11124 | } |
11125 | { | |
11126 | arg3 = wxString_in_helper(obj2); | |
11127 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 11128 | temp3 = true; |
d55e5bfc RD |
11129 | } |
11130 | { | |
11131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11132 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
11133 | ||
11134 | wxPyEndAllowThreads(__tstate); | |
11135 | if (PyErr_Occurred()) SWIG_fail; | |
11136 | } | |
11137 | Py_INCREF(Py_None); resultobj = Py_None; | |
11138 | { | |
11139 | if (temp2) | |
11140 | delete arg2; | |
11141 | } | |
11142 | { | |
11143 | if (temp3) | |
11144 | delete arg3; | |
11145 | } | |
11146 | return resultobj; | |
11147 | fail: | |
11148 | { | |
11149 | if (temp2) | |
11150 | delete arg2; | |
11151 | } | |
11152 | { | |
11153 | if (temp3) | |
11154 | delete arg3; | |
11155 | } | |
11156 | return NULL; | |
11157 | } | |
11158 | ||
11159 | ||
c370783e | 11160 | static PyObject *_wrap_Image_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11161 | PyObject *resultobj; |
11162 | wxImage *arg1 = (wxImage *) 0 ; | |
11163 | wxString *arg2 = 0 ; | |
11164 | int arg3 ; | |
b411df4a | 11165 | bool temp2 = false ; |
d55e5bfc RD |
11166 | PyObject * obj0 = 0 ; |
11167 | PyObject * obj1 = 0 ; | |
11168 | PyObject * obj2 = 0 ; | |
11169 | char *kwnames[] = { | |
11170 | (char *) "self",(char *) "name",(char *) "value", NULL | |
11171 | }; | |
11172 | ||
11173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11176 | { | |
11177 | arg2 = wxString_in_helper(obj1); | |
11178 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 11179 | temp2 = true; |
d55e5bfc | 11180 | } |
c370783e | 11181 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11182 | if (PyErr_Occurred()) SWIG_fail; |
11183 | { | |
11184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11185 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
11186 | ||
11187 | wxPyEndAllowThreads(__tstate); | |
11188 | if (PyErr_Occurred()) SWIG_fail; | |
11189 | } | |
11190 | Py_INCREF(Py_None); resultobj = Py_None; | |
11191 | { | |
11192 | if (temp2) | |
11193 | delete arg2; | |
11194 | } | |
11195 | return resultobj; | |
11196 | fail: | |
11197 | { | |
11198 | if (temp2) | |
11199 | delete arg2; | |
11200 | } | |
11201 | return NULL; | |
11202 | } | |
11203 | ||
11204 | ||
c370783e | 11205 | static PyObject *_wrap_Image_GetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11206 | PyObject *resultobj; |
11207 | wxImage *arg1 = (wxImage *) 0 ; | |
11208 | wxString *arg2 = 0 ; | |
11209 | wxString result; | |
b411df4a | 11210 | bool temp2 = false ; |
d55e5bfc RD |
11211 | PyObject * obj0 = 0 ; |
11212 | PyObject * obj1 = 0 ; | |
11213 | char *kwnames[] = { | |
11214 | (char *) "self",(char *) "name", NULL | |
11215 | }; | |
11216 | ||
11217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
11218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11220 | { | |
11221 | arg2 = wxString_in_helper(obj1); | |
11222 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 11223 | temp2 = true; |
d55e5bfc RD |
11224 | } |
11225 | { | |
11226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11227 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
11228 | ||
11229 | wxPyEndAllowThreads(__tstate); | |
11230 | if (PyErr_Occurred()) SWIG_fail; | |
11231 | } | |
11232 | { | |
11233 | #if wxUSE_UNICODE | |
11234 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11235 | #else | |
11236 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11237 | #endif | |
11238 | } | |
11239 | { | |
11240 | if (temp2) | |
11241 | delete arg2; | |
11242 | } | |
11243 | return resultobj; | |
11244 | fail: | |
11245 | { | |
11246 | if (temp2) | |
11247 | delete arg2; | |
11248 | } | |
11249 | return NULL; | |
11250 | } | |
11251 | ||
11252 | ||
c370783e | 11253 | static PyObject *_wrap_Image_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11254 | PyObject *resultobj; |
11255 | wxImage *arg1 = (wxImage *) 0 ; | |
11256 | wxString *arg2 = 0 ; | |
11257 | int result; | |
b411df4a | 11258 | bool temp2 = false ; |
d55e5bfc RD |
11259 | PyObject * obj0 = 0 ; |
11260 | PyObject * obj1 = 0 ; | |
11261 | char *kwnames[] = { | |
11262 | (char *) "self",(char *) "name", NULL | |
11263 | }; | |
11264 | ||
11265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
11266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11268 | { | |
11269 | arg2 = wxString_in_helper(obj1); | |
11270 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 11271 | temp2 = true; |
d55e5bfc RD |
11272 | } |
11273 | { | |
11274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11275 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
11276 | ||
11277 | wxPyEndAllowThreads(__tstate); | |
11278 | if (PyErr_Occurred()) SWIG_fail; | |
11279 | } | |
c370783e | 11280 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11281 | { |
11282 | if (temp2) | |
11283 | delete arg2; | |
11284 | } | |
11285 | return resultobj; | |
11286 | fail: | |
11287 | { | |
11288 | if (temp2) | |
11289 | delete arg2; | |
11290 | } | |
11291 | return NULL; | |
11292 | } | |
11293 | ||
11294 | ||
c370783e | 11295 | static PyObject *_wrap_Image_HasOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11296 | PyObject *resultobj; |
11297 | wxImage *arg1 = (wxImage *) 0 ; | |
11298 | wxString *arg2 = 0 ; | |
11299 | bool result; | |
b411df4a | 11300 | bool temp2 = false ; |
d55e5bfc RD |
11301 | PyObject * obj0 = 0 ; |
11302 | PyObject * obj1 = 0 ; | |
11303 | char *kwnames[] = { | |
11304 | (char *) "self",(char *) "name", NULL | |
11305 | }; | |
11306 | ||
11307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
11308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11310 | { | |
11311 | arg2 = wxString_in_helper(obj1); | |
11312 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 11313 | temp2 = true; |
d55e5bfc RD |
11314 | } |
11315 | { | |
11316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11317 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
11318 | ||
11319 | wxPyEndAllowThreads(__tstate); | |
11320 | if (PyErr_Occurred()) SWIG_fail; | |
11321 | } | |
11322 | { | |
11323 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11324 | } | |
11325 | { | |
11326 | if (temp2) | |
11327 | delete arg2; | |
11328 | } | |
11329 | return resultobj; | |
11330 | fail: | |
11331 | { | |
11332 | if (temp2) | |
11333 | delete arg2; | |
11334 | } | |
11335 | return NULL; | |
11336 | } | |
11337 | ||
11338 | ||
c370783e | 11339 | static PyObject *_wrap_Image_CountColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11340 | PyObject *resultobj; |
11341 | wxImage *arg1 = (wxImage *) 0 ; | |
11342 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
11343 | unsigned long result; | |
11344 | PyObject * obj0 = 0 ; | |
11345 | PyObject * obj1 = 0 ; | |
11346 | char *kwnames[] = { | |
11347 | (char *) "self",(char *) "stopafter", NULL | |
11348 | }; | |
11349 | ||
11350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
11351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11353 | if (obj1) { | |
c370783e | 11354 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
11355 | if (PyErr_Occurred()) SWIG_fail; |
11356 | } | |
11357 | { | |
11358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11359 | result = (unsigned long)(arg1)->CountColours(arg2); | |
11360 | ||
11361 | wxPyEndAllowThreads(__tstate); | |
11362 | if (PyErr_Occurred()) SWIG_fail; | |
11363 | } | |
c370783e | 11364 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
11365 | return resultobj; |
11366 | fail: | |
11367 | return NULL; | |
11368 | } | |
11369 | ||
11370 | ||
c370783e | 11371 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11372 | PyObject *resultobj; |
11373 | wxImage *arg1 = (wxImage *) 0 ; | |
11374 | wxImageHistogram *arg2 = 0 ; | |
11375 | unsigned long result; | |
11376 | PyObject * obj0 = 0 ; | |
11377 | PyObject * obj1 = 0 ; | |
11378 | char *kwnames[] = { | |
11379 | (char *) "self",(char *) "h", NULL | |
11380 | }; | |
11381 | ||
11382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
11383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11385 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram, | |
11386 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11387 | SWIG_fail; | |
11388 | if (arg2 == NULL) { | |
11389 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11390 | SWIG_fail; | |
11391 | } | |
11392 | { | |
11393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11394 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
11395 | ||
11396 | wxPyEndAllowThreads(__tstate); | |
11397 | if (PyErr_Occurred()) SWIG_fail; | |
11398 | } | |
c370783e | 11399 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
11400 | return resultobj; |
11401 | fail: | |
11402 | return NULL; | |
11403 | } | |
11404 | ||
11405 | ||
c370783e | 11406 | static PyObject *_wrap_Image_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11407 | PyObject *resultobj; |
11408 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11409 | PyObject * obj0 = 0 ; | |
11410 | char *kwnames[] = { | |
11411 | (char *) "handler", NULL | |
11412 | }; | |
11413 | ||
11414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
11415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
11416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11417 | { | |
11418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11419 | wxImage::AddHandler(arg1); | |
11420 | ||
11421 | wxPyEndAllowThreads(__tstate); | |
11422 | if (PyErr_Occurred()) SWIG_fail; | |
11423 | } | |
11424 | Py_INCREF(Py_None); resultobj = Py_None; | |
11425 | return resultobj; | |
11426 | fail: | |
11427 | return NULL; | |
11428 | } | |
11429 | ||
11430 | ||
c370783e | 11431 | static PyObject *_wrap_Image_InsertHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11432 | PyObject *resultobj; |
11433 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11434 | PyObject * obj0 = 0 ; | |
11435 | char *kwnames[] = { | |
11436 | (char *) "handler", NULL | |
11437 | }; | |
11438 | ||
11439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
11440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
11441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11442 | { | |
11443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11444 | wxImage::InsertHandler(arg1); | |
11445 | ||
11446 | wxPyEndAllowThreads(__tstate); | |
11447 | if (PyErr_Occurred()) SWIG_fail; | |
11448 | } | |
11449 | Py_INCREF(Py_None); resultobj = Py_None; | |
11450 | return resultobj; | |
11451 | fail: | |
11452 | return NULL; | |
11453 | } | |
11454 | ||
11455 | ||
c370783e | 11456 | static PyObject *_wrap_Image_RemoveHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11457 | PyObject *resultobj; |
11458 | wxString *arg1 = 0 ; | |
11459 | bool result; | |
b411df4a | 11460 | bool temp1 = false ; |
d55e5bfc RD |
11461 | PyObject * obj0 = 0 ; |
11462 | char *kwnames[] = { | |
11463 | (char *) "name", NULL | |
11464 | }; | |
11465 | ||
11466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
11467 | { | |
11468 | arg1 = wxString_in_helper(obj0); | |
11469 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 11470 | temp1 = true; |
d55e5bfc RD |
11471 | } |
11472 | { | |
11473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11474 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
11475 | ||
11476 | wxPyEndAllowThreads(__tstate); | |
11477 | if (PyErr_Occurred()) SWIG_fail; | |
11478 | } | |
11479 | { | |
11480 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11481 | } | |
11482 | { | |
11483 | if (temp1) | |
11484 | delete arg1; | |
11485 | } | |
11486 | return resultobj; | |
11487 | fail: | |
11488 | { | |
11489 | if (temp1) | |
11490 | delete arg1; | |
11491 | } | |
11492 | return NULL; | |
11493 | } | |
11494 | ||
11495 | ||
c370783e | 11496 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11497 | PyObject *resultobj; |
11498 | wxString result; | |
11499 | char *kwnames[] = { | |
11500 | NULL | |
11501 | }; | |
11502 | ||
11503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
11504 | { | |
11505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11506 | result = wxImage::GetImageExtWildcard(); | |
11507 | ||
11508 | wxPyEndAllowThreads(__tstate); | |
11509 | if (PyErr_Occurred()) SWIG_fail; | |
11510 | } | |
11511 | { | |
11512 | #if wxUSE_UNICODE | |
11513 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11514 | #else | |
11515 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11516 | #endif | |
11517 | } | |
11518 | return resultobj; | |
11519 | fail: | |
11520 | return NULL; | |
11521 | } | |
11522 | ||
11523 | ||
c370783e | 11524 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11525 | PyObject *resultobj; |
11526 | wxImage *arg1 = (wxImage *) 0 ; | |
44bf767a | 11527 | int arg2 = (int) -1 ; |
d55e5bfc RD |
11528 | wxBitmap result; |
11529 | PyObject * obj0 = 0 ; | |
44bf767a | 11530 | PyObject * obj1 = 0 ; |
d55e5bfc | 11531 | char *kwnames[] = { |
44bf767a | 11532 | (char *) "self",(char *) "depth", NULL |
d55e5bfc RD |
11533 | }; |
11534 | ||
44bf767a | 11535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertToBitmap",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44bf767a RD |
11538 | if (obj1) { |
11539 | arg2 = (int)SWIG_As_int(obj1); | |
11540 | if (PyErr_Occurred()) SWIG_fail; | |
11541 | } | |
d55e5bfc | 11542 | { |
0439c23b | 11543 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 11544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
44bf767a | 11545 | result = wxImage_ConvertToBitmap(arg1,arg2); |
d55e5bfc RD |
11546 | |
11547 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11548 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11549 | } |
11550 | { | |
11551 | wxBitmap * resultptr; | |
11552 | resultptr = new wxBitmap((wxBitmap &) result); | |
11553 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
11554 | } | |
11555 | return resultobj; | |
11556 | fail: | |
11557 | return NULL; | |
11558 | } | |
11559 | ||
11560 | ||
c370783e | 11561 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11562 | PyObject *resultobj; |
11563 | wxImage *arg1 = (wxImage *) 0 ; | |
11564 | unsigned char arg2 ; | |
11565 | unsigned char arg3 ; | |
11566 | unsigned char arg4 ; | |
11567 | wxBitmap result; | |
11568 | PyObject * obj0 = 0 ; | |
11569 | PyObject * obj1 = 0 ; | |
11570 | PyObject * obj2 = 0 ; | |
11571 | PyObject * obj3 = 0 ; | |
11572 | char *kwnames[] = { | |
11573 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
11574 | }; | |
11575 | ||
11576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11579 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 11580 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11581 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 11582 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11583 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
11584 | if (PyErr_Occurred()) SWIG_fail; |
11585 | { | |
0439c23b | 11586 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11588 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
11589 | ||
11590 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11591 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11592 | } |
11593 | { | |
11594 | wxBitmap * resultptr; | |
11595 | resultptr = new wxBitmap((wxBitmap &) result); | |
11596 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
11597 | } | |
11598 | return resultobj; | |
11599 | fail: | |
11600 | return NULL; | |
11601 | } | |
11602 | ||
11603 | ||
c370783e | 11604 | static PyObject * Image_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11605 | PyObject *obj; |
11606 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11607 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
11608 | Py_INCREF(obj); | |
11609 | return Py_BuildValue((char *)""); | |
11610 | } | |
c370783e | 11611 | static int _wrap_NullImage_set(PyObject *) { |
d55e5bfc RD |
11612 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); |
11613 | return 1; | |
11614 | } | |
11615 | ||
11616 | ||
11617 | static PyObject *_wrap_NullImage_get() { | |
11618 | PyObject *pyobj; | |
11619 | ||
11620 | pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); | |
11621 | return pyobj; | |
11622 | } | |
11623 | ||
11624 | ||
c370783e | 11625 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *) { |
d55e5bfc RD |
11626 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); |
11627 | return 1; | |
11628 | } | |
11629 | ||
11630 | ||
11631 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
11632 | PyObject *pyobj; | |
11633 | ||
11634 | { | |
11635 | #if wxUSE_UNICODE | |
11636 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11637 | #else | |
11638 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11639 | #endif | |
11640 | } | |
11641 | return pyobj; | |
11642 | } | |
11643 | ||
11644 | ||
c370783e | 11645 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *) { |
d55e5bfc RD |
11646 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); |
11647 | return 1; | |
11648 | } | |
11649 | ||
11650 | ||
11651 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
11652 | PyObject *pyobj; | |
11653 | ||
11654 | { | |
11655 | #if wxUSE_UNICODE | |
11656 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11657 | #else | |
11658 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11659 | #endif | |
11660 | } | |
11661 | return pyobj; | |
11662 | } | |
11663 | ||
11664 | ||
c370783e | 11665 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *) { |
d55e5bfc RD |
11666 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); |
11667 | return 1; | |
11668 | } | |
11669 | ||
11670 | ||
11671 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
11672 | PyObject *pyobj; | |
11673 | ||
11674 | { | |
11675 | #if wxUSE_UNICODE | |
11676 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11677 | #else | |
11678 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11679 | #endif | |
11680 | } | |
11681 | return pyobj; | |
11682 | } | |
11683 | ||
11684 | ||
c370783e | 11685 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *) { |
d55e5bfc RD |
11686 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); |
11687 | return 1; | |
11688 | } | |
11689 | ||
11690 | ||
11691 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
11692 | PyObject *pyobj; | |
11693 | ||
11694 | { | |
11695 | #if wxUSE_UNICODE | |
11696 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11697 | #else | |
11698 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11699 | #endif | |
11700 | } | |
11701 | return pyobj; | |
11702 | } | |
11703 | ||
11704 | ||
c370783e | 11705 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *) { |
d55e5bfc RD |
11706 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); |
11707 | return 1; | |
11708 | } | |
11709 | ||
11710 | ||
11711 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
11712 | PyObject *pyobj; | |
11713 | ||
11714 | { | |
11715 | #if wxUSE_UNICODE | |
11716 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11717 | #else | |
11718 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11719 | #endif | |
11720 | } | |
11721 | return pyobj; | |
11722 | } | |
11723 | ||
11724 | ||
c370783e | 11725 | static PyObject *_wrap_new_BMPHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11726 | PyObject *resultobj; |
11727 | wxBMPHandler *result; | |
11728 | char *kwnames[] = { | |
11729 | NULL | |
11730 | }; | |
11731 | ||
11732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
11733 | { | |
11734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11735 | result = (wxBMPHandler *)new wxBMPHandler(); | |
11736 | ||
11737 | wxPyEndAllowThreads(__tstate); | |
11738 | if (PyErr_Occurred()) SWIG_fail; | |
11739 | } | |
11740 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); | |
11741 | return resultobj; | |
11742 | fail: | |
11743 | return NULL; | |
11744 | } | |
11745 | ||
11746 | ||
c370783e | 11747 | static PyObject * BMPHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11748 | PyObject *obj; |
11749 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11750 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
11751 | Py_INCREF(obj); | |
11752 | return Py_BuildValue((char *)""); | |
11753 | } | |
c370783e | 11754 | static PyObject *_wrap_new_ICOHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11755 | PyObject *resultobj; |
11756 | wxICOHandler *result; | |
11757 | char *kwnames[] = { | |
11758 | NULL | |
11759 | }; | |
11760 | ||
11761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
11762 | { | |
11763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11764 | result = (wxICOHandler *)new wxICOHandler(); | |
11765 | ||
11766 | wxPyEndAllowThreads(__tstate); | |
11767 | if (PyErr_Occurred()) SWIG_fail; | |
11768 | } | |
11769 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); | |
11770 | return resultobj; | |
11771 | fail: | |
11772 | return NULL; | |
11773 | } | |
11774 | ||
11775 | ||
c370783e | 11776 | static PyObject * ICOHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11777 | PyObject *obj; |
11778 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11779 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
11780 | Py_INCREF(obj); | |
11781 | return Py_BuildValue((char *)""); | |
11782 | } | |
c370783e | 11783 | static PyObject *_wrap_new_CURHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11784 | PyObject *resultobj; |
11785 | wxCURHandler *result; | |
11786 | char *kwnames[] = { | |
11787 | NULL | |
11788 | }; | |
11789 | ||
11790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
11791 | { | |
11792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11793 | result = (wxCURHandler *)new wxCURHandler(); | |
11794 | ||
11795 | wxPyEndAllowThreads(__tstate); | |
11796 | if (PyErr_Occurred()) SWIG_fail; | |
11797 | } | |
11798 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); | |
11799 | return resultobj; | |
11800 | fail: | |
11801 | return NULL; | |
11802 | } | |
11803 | ||
11804 | ||
c370783e | 11805 | static PyObject * CURHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11806 | PyObject *obj; |
11807 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11808 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
11809 | Py_INCREF(obj); | |
11810 | return Py_BuildValue((char *)""); | |
11811 | } | |
c370783e | 11812 | static PyObject *_wrap_new_ANIHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11813 | PyObject *resultobj; |
11814 | wxANIHandler *result; | |
11815 | char *kwnames[] = { | |
11816 | NULL | |
11817 | }; | |
11818 | ||
11819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
11820 | { | |
11821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11822 | result = (wxANIHandler *)new wxANIHandler(); | |
11823 | ||
11824 | wxPyEndAllowThreads(__tstate); | |
11825 | if (PyErr_Occurred()) SWIG_fail; | |
11826 | } | |
11827 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); | |
11828 | return resultobj; | |
11829 | fail: | |
11830 | return NULL; | |
11831 | } | |
11832 | ||
11833 | ||
c370783e | 11834 | static PyObject * ANIHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11835 | PyObject *obj; |
11836 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11837 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
11838 | Py_INCREF(obj); | |
11839 | return Py_BuildValue((char *)""); | |
11840 | } | |
c370783e | 11841 | static PyObject *_wrap_new_PNGHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11842 | PyObject *resultobj; |
11843 | wxPNGHandler *result; | |
11844 | char *kwnames[] = { | |
11845 | NULL | |
11846 | }; | |
11847 | ||
11848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
11849 | { | |
11850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11851 | result = (wxPNGHandler *)new wxPNGHandler(); | |
11852 | ||
11853 | wxPyEndAllowThreads(__tstate); | |
11854 | if (PyErr_Occurred()) SWIG_fail; | |
11855 | } | |
11856 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); | |
11857 | return resultobj; | |
11858 | fail: | |
11859 | return NULL; | |
11860 | } | |
11861 | ||
11862 | ||
c370783e | 11863 | static PyObject * PNGHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11864 | PyObject *obj; |
11865 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11866 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
11867 | Py_INCREF(obj); | |
11868 | return Py_BuildValue((char *)""); | |
11869 | } | |
c370783e | 11870 | static PyObject *_wrap_new_GIFHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11871 | PyObject *resultobj; |
11872 | wxGIFHandler *result; | |
11873 | char *kwnames[] = { | |
11874 | NULL | |
11875 | }; | |
11876 | ||
11877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
11878 | { | |
11879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11880 | result = (wxGIFHandler *)new wxGIFHandler(); | |
11881 | ||
11882 | wxPyEndAllowThreads(__tstate); | |
11883 | if (PyErr_Occurred()) SWIG_fail; | |
11884 | } | |
11885 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); | |
11886 | return resultobj; | |
11887 | fail: | |
11888 | return NULL; | |
11889 | } | |
11890 | ||
11891 | ||
c370783e | 11892 | static PyObject * GIFHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11893 | PyObject *obj; |
11894 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11895 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
11896 | Py_INCREF(obj); | |
11897 | return Py_BuildValue((char *)""); | |
11898 | } | |
c370783e | 11899 | static PyObject *_wrap_new_PCXHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11900 | PyObject *resultobj; |
11901 | wxPCXHandler *result; | |
11902 | char *kwnames[] = { | |
11903 | NULL | |
11904 | }; | |
11905 | ||
11906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
11907 | { | |
11908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11909 | result = (wxPCXHandler *)new wxPCXHandler(); | |
11910 | ||
11911 | wxPyEndAllowThreads(__tstate); | |
11912 | if (PyErr_Occurred()) SWIG_fail; | |
11913 | } | |
11914 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); | |
11915 | return resultobj; | |
11916 | fail: | |
11917 | return NULL; | |
11918 | } | |
11919 | ||
11920 | ||
c370783e | 11921 | static PyObject * PCXHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11922 | PyObject *obj; |
11923 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11924 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
11925 | Py_INCREF(obj); | |
11926 | return Py_BuildValue((char *)""); | |
11927 | } | |
c370783e | 11928 | static PyObject *_wrap_new_JPEGHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11929 | PyObject *resultobj; |
11930 | wxJPEGHandler *result; | |
11931 | char *kwnames[] = { | |
11932 | NULL | |
11933 | }; | |
11934 | ||
11935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
11936 | { | |
11937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11938 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
11939 | ||
11940 | wxPyEndAllowThreads(__tstate); | |
11941 | if (PyErr_Occurred()) SWIG_fail; | |
11942 | } | |
11943 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); | |
11944 | return resultobj; | |
11945 | fail: | |
11946 | return NULL; | |
11947 | } | |
11948 | ||
11949 | ||
c370783e | 11950 | static PyObject * JPEGHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11951 | PyObject *obj; |
11952 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11953 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
11954 | Py_INCREF(obj); | |
11955 | return Py_BuildValue((char *)""); | |
11956 | } | |
c370783e | 11957 | static PyObject *_wrap_new_PNMHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11958 | PyObject *resultobj; |
11959 | wxPNMHandler *result; | |
11960 | char *kwnames[] = { | |
11961 | NULL | |
11962 | }; | |
11963 | ||
11964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
11965 | { | |
11966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11967 | result = (wxPNMHandler *)new wxPNMHandler(); | |
11968 | ||
11969 | wxPyEndAllowThreads(__tstate); | |
11970 | if (PyErr_Occurred()) SWIG_fail; | |
11971 | } | |
11972 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); | |
11973 | return resultobj; | |
11974 | fail: | |
11975 | return NULL; | |
11976 | } | |
11977 | ||
11978 | ||
c370783e | 11979 | static PyObject * PNMHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11980 | PyObject *obj; |
11981 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11982 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
11983 | Py_INCREF(obj); | |
11984 | return Py_BuildValue((char *)""); | |
11985 | } | |
c370783e | 11986 | static PyObject *_wrap_new_XPMHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11987 | PyObject *resultobj; |
11988 | wxXPMHandler *result; | |
11989 | char *kwnames[] = { | |
11990 | NULL | |
11991 | }; | |
11992 | ||
11993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
11994 | { | |
11995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11996 | result = (wxXPMHandler *)new wxXPMHandler(); | |
11997 | ||
11998 | wxPyEndAllowThreads(__tstate); | |
11999 | if (PyErr_Occurred()) SWIG_fail; | |
12000 | } | |
12001 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); | |
12002 | return resultobj; | |
12003 | fail: | |
12004 | return NULL; | |
12005 | } | |
12006 | ||
12007 | ||
c370783e | 12008 | static PyObject * XPMHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12009 | PyObject *obj; |
12010 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12011 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
12012 | Py_INCREF(obj); | |
12013 | return Py_BuildValue((char *)""); | |
12014 | } | |
c370783e | 12015 | static PyObject *_wrap_new_TIFFHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12016 | PyObject *resultobj; |
12017 | wxTIFFHandler *result; | |
12018 | char *kwnames[] = { | |
12019 | NULL | |
12020 | }; | |
12021 | ||
12022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
12023 | { | |
12024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12025 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
12026 | ||
12027 | wxPyEndAllowThreads(__tstate); | |
12028 | if (PyErr_Occurred()) SWIG_fail; | |
12029 | } | |
12030 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); | |
12031 | return resultobj; | |
12032 | fail: | |
12033 | return NULL; | |
12034 | } | |
12035 | ||
12036 | ||
c370783e | 12037 | static PyObject * TIFFHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12038 | PyObject *obj; |
12039 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12040 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
12041 | Py_INCREF(obj); | |
12042 | return Py_BuildValue((char *)""); | |
12043 | } | |
c370783e | 12044 | static PyObject *_wrap_Quantize_Quantize(PyObject *, PyObject *args, PyObject *kwargs) { |
c0de73ae RD |
12045 | PyObject *resultobj; |
12046 | wxImage *arg1 = 0 ; | |
12047 | wxImage *arg2 = 0 ; | |
12048 | int arg3 = (int) 236 ; | |
12049 | int arg4 = (int) wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE ; | |
12050 | bool result; | |
12051 | PyObject * obj0 = 0 ; | |
12052 | PyObject * obj1 = 0 ; | |
12053 | PyObject * obj2 = 0 ; | |
12054 | PyObject * obj3 = 0 ; | |
12055 | char *kwnames[] = { | |
12056 | (char *) "src",(char *) "dest",(char *) "desiredNoColours",(char *) "flags", NULL | |
12057 | }; | |
12058 | ||
12059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Quantize_Quantize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
12061 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12062 | SWIG_fail; | |
12063 | if (arg1 == NULL) { | |
12064 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12065 | SWIG_fail; | |
12066 | } | |
12067 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
12068 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12069 | SWIG_fail; | |
12070 | if (arg2 == NULL) { | |
12071 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12072 | SWIG_fail; | |
12073 | } | |
12074 | if (obj2) { | |
c370783e | 12075 | arg3 = (int)SWIG_As_int(obj2); |
c0de73ae RD |
12076 | if (PyErr_Occurred()) SWIG_fail; |
12077 | } | |
12078 | if (obj3) { | |
c370783e | 12079 | arg4 = (int)SWIG_As_int(obj3); |
c0de73ae RD |
12080 | if (PyErr_Occurred()) SWIG_fail; |
12081 | } | |
12082 | { | |
12083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12084 | result = (bool)Quantize_Quantize((wxImage const &)*arg1,*arg2,arg3,arg4); | |
12085 | ||
12086 | wxPyEndAllowThreads(__tstate); | |
12087 | if (PyErr_Occurred()) SWIG_fail; | |
12088 | } | |
12089 | { | |
12090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12091 | } | |
12092 | return resultobj; | |
12093 | fail: | |
12094 | return NULL; | |
12095 | } | |
12096 | ||
12097 | ||
c370783e | 12098 | static PyObject * Quantize_swigregister(PyObject *, PyObject *args) { |
c0de73ae RD |
12099 | PyObject *obj; |
12100 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12101 | SWIG_TypeClientData(SWIGTYPE_p_wxQuantize, obj); | |
12102 | Py_INCREF(obj); | |
12103 | return Py_BuildValue((char *)""); | |
12104 | } | |
c370783e | 12105 | static PyObject *_wrap_new_EvtHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12106 | PyObject *resultobj; |
12107 | wxEvtHandler *result; | |
12108 | char *kwnames[] = { | |
12109 | NULL | |
12110 | }; | |
12111 | ||
12112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
12113 | { | |
12114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12115 | result = (wxEvtHandler *)new wxEvtHandler(); | |
12116 | ||
12117 | wxPyEndAllowThreads(__tstate); | |
12118 | if (PyErr_Occurred()) SWIG_fail; | |
12119 | } | |
b0f7404b | 12120 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvtHandler, 1); |
d55e5bfc RD |
12121 | return resultobj; |
12122 | fail: | |
12123 | return NULL; | |
12124 | } | |
12125 | ||
12126 | ||
c370783e | 12127 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12128 | PyObject *resultobj; |
12129 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12130 | wxEvtHandler *result; | |
12131 | PyObject * obj0 = 0 ; | |
12132 | char *kwnames[] = { | |
12133 | (char *) "self", NULL | |
12134 | }; | |
12135 | ||
12136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
12137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12139 | { | |
12140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12141 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
12142 | ||
12143 | wxPyEndAllowThreads(__tstate); | |
12144 | if (PyErr_Occurred()) SWIG_fail; | |
12145 | } | |
12146 | { | |
412d302d | 12147 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
12148 | } |
12149 | return resultobj; | |
12150 | fail: | |
12151 | return NULL; | |
12152 | } | |
12153 | ||
12154 | ||
c370783e | 12155 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12156 | PyObject *resultobj; |
12157 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12158 | wxEvtHandler *result; | |
12159 | PyObject * obj0 = 0 ; | |
12160 | char *kwnames[] = { | |
12161 | (char *) "self", NULL | |
12162 | }; | |
12163 | ||
12164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
12165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12167 | { | |
12168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12169 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
12170 | ||
12171 | wxPyEndAllowThreads(__tstate); | |
12172 | if (PyErr_Occurred()) SWIG_fail; | |
12173 | } | |
12174 | { | |
412d302d | 12175 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
12176 | } |
12177 | return resultobj; | |
12178 | fail: | |
12179 | return NULL; | |
12180 | } | |
12181 | ||
12182 | ||
c370783e | 12183 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12184 | PyObject *resultobj; |
12185 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12186 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
12187 | PyObject * obj0 = 0 ; | |
12188 | PyObject * obj1 = 0 ; | |
12189 | char *kwnames[] = { | |
12190 | (char *) "self",(char *) "handler", NULL | |
12191 | }; | |
12192 | ||
12193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
12194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12196 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
12197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12198 | { | |
12199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12200 | (arg1)->SetNextHandler(arg2); | |
12201 | ||
12202 | wxPyEndAllowThreads(__tstate); | |
12203 | if (PyErr_Occurred()) SWIG_fail; | |
12204 | } | |
12205 | Py_INCREF(Py_None); resultobj = Py_None; | |
12206 | return resultobj; | |
12207 | fail: | |
12208 | return NULL; | |
12209 | } | |
12210 | ||
12211 | ||
c370783e | 12212 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12213 | PyObject *resultobj; |
12214 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12215 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
12216 | PyObject * obj0 = 0 ; | |
12217 | PyObject * obj1 = 0 ; | |
12218 | char *kwnames[] = { | |
12219 | (char *) "self",(char *) "handler", NULL | |
12220 | }; | |
12221 | ||
12222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
12223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12225 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
12226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12227 | { | |
12228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12229 | (arg1)->SetPreviousHandler(arg2); | |
12230 | ||
12231 | wxPyEndAllowThreads(__tstate); | |
12232 | if (PyErr_Occurred()) SWIG_fail; | |
12233 | } | |
12234 | Py_INCREF(Py_None); resultobj = Py_None; | |
12235 | return resultobj; | |
12236 | fail: | |
12237 | return NULL; | |
12238 | } | |
12239 | ||
12240 | ||
c370783e | 12241 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12242 | PyObject *resultobj; |
12243 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12244 | bool result; | |
12245 | PyObject * obj0 = 0 ; | |
12246 | char *kwnames[] = { | |
12247 | (char *) "self", NULL | |
12248 | }; | |
12249 | ||
12250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
12251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12253 | { | |
12254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12255 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
12256 | ||
12257 | wxPyEndAllowThreads(__tstate); | |
12258 | if (PyErr_Occurred()) SWIG_fail; | |
12259 | } | |
12260 | { | |
12261 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12262 | } | |
12263 | return resultobj; | |
12264 | fail: | |
12265 | return NULL; | |
12266 | } | |
12267 | ||
12268 | ||
c370783e | 12269 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12270 | PyObject *resultobj; |
12271 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12272 | bool arg2 ; | |
12273 | PyObject * obj0 = 0 ; | |
12274 | PyObject * obj1 = 0 ; | |
12275 | char *kwnames[] = { | |
12276 | (char *) "self",(char *) "enabled", NULL | |
12277 | }; | |
12278 | ||
12279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
12280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12282 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
12283 | if (PyErr_Occurred()) SWIG_fail; |
12284 | { | |
12285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12286 | (arg1)->SetEvtHandlerEnabled(arg2); | |
12287 | ||
12288 | wxPyEndAllowThreads(__tstate); | |
12289 | if (PyErr_Occurred()) SWIG_fail; | |
12290 | } | |
12291 | Py_INCREF(Py_None); resultobj = Py_None; | |
12292 | return resultobj; | |
12293 | fail: | |
12294 | return NULL; | |
12295 | } | |
12296 | ||
12297 | ||
c370783e | 12298 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12299 | PyObject *resultobj; |
12300 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12301 | wxEvent *arg2 = 0 ; | |
12302 | bool result; | |
12303 | PyObject * obj0 = 0 ; | |
12304 | PyObject * obj1 = 0 ; | |
12305 | char *kwnames[] = { | |
12306 | (char *) "self",(char *) "event", NULL | |
12307 | }; | |
12308 | ||
12309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
12310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12312 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
12313 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12314 | SWIG_fail; | |
12315 | if (arg2 == NULL) { | |
12316 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12317 | SWIG_fail; | |
12318 | } | |
12319 | { | |
12320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12321 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
12322 | ||
12323 | wxPyEndAllowThreads(__tstate); | |
12324 | if (PyErr_Occurred()) SWIG_fail; | |
12325 | } | |
12326 | { | |
12327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12328 | } | |
12329 | return resultobj; | |
12330 | fail: | |
12331 | return NULL; | |
12332 | } | |
12333 | ||
12334 | ||
c370783e | 12335 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12336 | PyObject *resultobj; |
12337 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12338 | wxEvent *arg2 = 0 ; | |
12339 | PyObject * obj0 = 0 ; | |
12340 | PyObject * obj1 = 0 ; | |
12341 | char *kwnames[] = { | |
12342 | (char *) "self",(char *) "event", NULL | |
12343 | }; | |
12344 | ||
12345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
12346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12348 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
12349 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12350 | SWIG_fail; | |
12351 | if (arg2 == NULL) { | |
12352 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12353 | SWIG_fail; | |
12354 | } | |
12355 | { | |
12356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12357 | (arg1)->AddPendingEvent(*arg2); | |
12358 | ||
12359 | wxPyEndAllowThreads(__tstate); | |
12360 | if (PyErr_Occurred()) SWIG_fail; | |
12361 | } | |
12362 | Py_INCREF(Py_None); resultobj = Py_None; | |
12363 | return resultobj; | |
12364 | fail: | |
12365 | return NULL; | |
12366 | } | |
12367 | ||
12368 | ||
c370783e | 12369 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12370 | PyObject *resultobj; |
12371 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12372 | PyObject * obj0 = 0 ; | |
12373 | char *kwnames[] = { | |
12374 | (char *) "self", NULL | |
12375 | }; | |
12376 | ||
12377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
12378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12380 | { | |
12381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12382 | (arg1)->ProcessPendingEvents(); | |
12383 | ||
12384 | wxPyEndAllowThreads(__tstate); | |
12385 | if (PyErr_Occurred()) SWIG_fail; | |
12386 | } | |
12387 | Py_INCREF(Py_None); resultobj = Py_None; | |
12388 | return resultobj; | |
12389 | fail: | |
12390 | return NULL; | |
12391 | } | |
12392 | ||
12393 | ||
c370783e | 12394 | static PyObject *_wrap_EvtHandler_Connect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12395 | PyObject *resultobj; |
12396 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12397 | int arg2 ; | |
12398 | int arg3 ; | |
12399 | int arg4 ; | |
12400 | PyObject *arg5 = (PyObject *) 0 ; | |
12401 | PyObject * obj0 = 0 ; | |
12402 | PyObject * obj1 = 0 ; | |
12403 | PyObject * obj2 = 0 ; | |
12404 | PyObject * obj3 = 0 ; | |
12405 | PyObject * obj4 = 0 ; | |
12406 | char *kwnames[] = { | |
12407 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
12408 | }; | |
12409 | ||
12410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12413 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 12414 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12415 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12416 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12417 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
12418 | if (PyErr_Occurred()) SWIG_fail; |
12419 | arg5 = obj4; | |
12420 | { | |
12421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12422 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
12423 | ||
12424 | wxPyEndAllowThreads(__tstate); | |
12425 | if (PyErr_Occurred()) SWIG_fail; | |
12426 | } | |
12427 | Py_INCREF(Py_None); resultobj = Py_None; | |
12428 | return resultobj; | |
12429 | fail: | |
12430 | return NULL; | |
12431 | } | |
12432 | ||
12433 | ||
c370783e | 12434 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12435 | PyObject *resultobj; |
12436 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12437 | int arg2 ; | |
12438 | int arg3 = (int) -1 ; | |
12439 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
12440 | bool result; | |
12441 | PyObject * obj0 = 0 ; | |
12442 | PyObject * obj1 = 0 ; | |
12443 | PyObject * obj2 = 0 ; | |
12444 | PyObject * obj3 = 0 ; | |
12445 | char *kwnames[] = { | |
12446 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
12447 | }; | |
12448 | ||
12449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12452 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12453 | if (PyErr_Occurred()) SWIG_fail; |
12454 | if (obj2) { | |
c370783e | 12455 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
12456 | if (PyErr_Occurred()) SWIG_fail; |
12457 | } | |
12458 | if (obj3) { | |
c370783e | 12459 | arg4 = (wxEventType)SWIG_As_int(obj3); |
d55e5bfc RD |
12460 | if (PyErr_Occurred()) SWIG_fail; |
12461 | } | |
12462 | { | |
12463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12464 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
12465 | ||
12466 | wxPyEndAllowThreads(__tstate); | |
12467 | if (PyErr_Occurred()) SWIG_fail; | |
12468 | } | |
12469 | { | |
12470 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12471 | } | |
12472 | return resultobj; | |
12473 | fail: | |
12474 | return NULL; | |
12475 | } | |
12476 | ||
12477 | ||
c370783e | 12478 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12479 | PyObject *resultobj; |
12480 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12481 | PyObject *arg2 = (PyObject *) 0 ; | |
12482 | PyObject * obj0 = 0 ; | |
12483 | PyObject * obj1 = 0 ; | |
12484 | char *kwnames[] = { | |
12485 | (char *) "self",(char *) "_self", NULL | |
12486 | }; | |
12487 | ||
12488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
12489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12491 | arg2 = obj1; | |
12492 | { | |
12493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12494 | wxEvtHandler__setOORInfo(arg1,arg2); | |
12495 | ||
12496 | wxPyEndAllowThreads(__tstate); | |
12497 | if (PyErr_Occurred()) SWIG_fail; | |
12498 | } | |
12499 | Py_INCREF(Py_None); resultobj = Py_None; | |
12500 | return resultobj; | |
12501 | fail: | |
12502 | return NULL; | |
12503 | } | |
12504 | ||
12505 | ||
c370783e | 12506 | static PyObject * EvtHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12507 | PyObject *obj; |
12508 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12509 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
12510 | Py_INCREF(obj); | |
12511 | return Py_BuildValue((char *)""); | |
12512 | } | |
c370783e | 12513 | static PyObject *_wrap_NewEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12514 | PyObject *resultobj; |
12515 | wxEventType result; | |
12516 | char *kwnames[] = { | |
12517 | NULL | |
12518 | }; | |
12519 | ||
12520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
12521 | { | |
12522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12523 | result = (wxEventType)wxNewEventType(); | |
12524 | ||
12525 | wxPyEndAllowThreads(__tstate); | |
12526 | if (PyErr_Occurred()) SWIG_fail; | |
12527 | } | |
c370783e | 12528 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12529 | return resultobj; |
12530 | fail: | |
12531 | return NULL; | |
12532 | } | |
12533 | ||
12534 | ||
c370783e | 12535 | static PyObject *_wrap_delete_Event(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12536 | PyObject *resultobj; |
12537 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12538 | PyObject * obj0 = 0 ; | |
12539 | char *kwnames[] = { | |
12540 | (char *) "self", NULL | |
12541 | }; | |
12542 | ||
12543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
12544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12546 | { | |
12547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12548 | delete arg1; | |
12549 | ||
12550 | wxPyEndAllowThreads(__tstate); | |
12551 | if (PyErr_Occurred()) SWIG_fail; | |
12552 | } | |
12553 | Py_INCREF(Py_None); resultobj = Py_None; | |
12554 | return resultobj; | |
12555 | fail: | |
12556 | return NULL; | |
12557 | } | |
12558 | ||
12559 | ||
c370783e | 12560 | static PyObject *_wrap_Event_SetEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12561 | PyObject *resultobj; |
12562 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12563 | wxEventType arg2 ; | |
12564 | PyObject * obj0 = 0 ; | |
12565 | PyObject * obj1 = 0 ; | |
12566 | char *kwnames[] = { | |
12567 | (char *) "self",(char *) "typ", NULL | |
12568 | }; | |
12569 | ||
12570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; | |
12571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12573 | arg2 = (wxEventType)SWIG_As_int(obj1); |
d55e5bfc RD |
12574 | if (PyErr_Occurred()) SWIG_fail; |
12575 | { | |
12576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12577 | (arg1)->SetEventType(arg2); | |
12578 | ||
12579 | wxPyEndAllowThreads(__tstate); | |
12580 | if (PyErr_Occurred()) SWIG_fail; | |
12581 | } | |
12582 | Py_INCREF(Py_None); resultobj = Py_None; | |
12583 | return resultobj; | |
12584 | fail: | |
12585 | return NULL; | |
12586 | } | |
12587 | ||
12588 | ||
c370783e | 12589 | static PyObject *_wrap_Event_GetEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12590 | PyObject *resultobj; |
12591 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12592 | wxEventType result; | |
12593 | PyObject * obj0 = 0 ; | |
12594 | char *kwnames[] = { | |
12595 | (char *) "self", NULL | |
12596 | }; | |
12597 | ||
12598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
12599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12601 | { | |
12602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12603 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
12604 | ||
12605 | wxPyEndAllowThreads(__tstate); | |
12606 | if (PyErr_Occurred()) SWIG_fail; | |
12607 | } | |
c370783e | 12608 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12609 | return resultobj; |
12610 | fail: | |
12611 | return NULL; | |
12612 | } | |
12613 | ||
12614 | ||
c370783e | 12615 | static PyObject *_wrap_Event_GetEventObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12616 | PyObject *resultobj; |
12617 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12618 | wxObject *result; | |
12619 | PyObject * obj0 = 0 ; | |
12620 | char *kwnames[] = { | |
12621 | (char *) "self", NULL | |
12622 | }; | |
12623 | ||
12624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
12625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12627 | { | |
12628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12629 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
12630 | ||
12631 | wxPyEndAllowThreads(__tstate); | |
12632 | if (PyErr_Occurred()) SWIG_fail; | |
12633 | } | |
12634 | { | |
412d302d | 12635 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
12636 | } |
12637 | return resultobj; | |
12638 | fail: | |
12639 | return NULL; | |
12640 | } | |
12641 | ||
12642 | ||
c370783e | 12643 | static PyObject *_wrap_Event_SetEventObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12644 | PyObject *resultobj; |
12645 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12646 | wxObject *arg2 = (wxObject *) 0 ; | |
12647 | PyObject * obj0 = 0 ; | |
12648 | PyObject * obj1 = 0 ; | |
12649 | char *kwnames[] = { | |
12650 | (char *) "self",(char *) "obj", NULL | |
12651 | }; | |
12652 | ||
12653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
12654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12656 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
12657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12658 | { | |
12659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12660 | (arg1)->SetEventObject(arg2); | |
12661 | ||
12662 | wxPyEndAllowThreads(__tstate); | |
12663 | if (PyErr_Occurred()) SWIG_fail; | |
12664 | } | |
12665 | Py_INCREF(Py_None); resultobj = Py_None; | |
12666 | return resultobj; | |
12667 | fail: | |
12668 | return NULL; | |
12669 | } | |
12670 | ||
12671 | ||
c370783e | 12672 | static PyObject *_wrap_Event_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12673 | PyObject *resultobj; |
12674 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12675 | long result; | |
12676 | PyObject * obj0 = 0 ; | |
12677 | char *kwnames[] = { | |
12678 | (char *) "self", NULL | |
12679 | }; | |
12680 | ||
12681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
12682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12684 | { | |
12685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12686 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
12687 | ||
12688 | wxPyEndAllowThreads(__tstate); | |
12689 | if (PyErr_Occurred()) SWIG_fail; | |
12690 | } | |
c370783e | 12691 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
12692 | return resultobj; |
12693 | fail: | |
12694 | return NULL; | |
12695 | } | |
12696 | ||
12697 | ||
c370783e | 12698 | static PyObject *_wrap_Event_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12699 | PyObject *resultobj; |
12700 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12701 | long arg2 = (long) 0 ; | |
12702 | PyObject * obj0 = 0 ; | |
12703 | PyObject * obj1 = 0 ; | |
12704 | char *kwnames[] = { | |
12705 | (char *) "self",(char *) "ts", NULL | |
12706 | }; | |
12707 | ||
12708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; | |
12709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12711 | if (obj1) { | |
c370783e | 12712 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
12713 | if (PyErr_Occurred()) SWIG_fail; |
12714 | } | |
12715 | { | |
12716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12717 | (arg1)->SetTimestamp(arg2); | |
12718 | ||
12719 | wxPyEndAllowThreads(__tstate); | |
12720 | if (PyErr_Occurred()) SWIG_fail; | |
12721 | } | |
12722 | Py_INCREF(Py_None); resultobj = Py_None; | |
12723 | return resultobj; | |
12724 | fail: | |
12725 | return NULL; | |
12726 | } | |
12727 | ||
12728 | ||
c370783e | 12729 | static PyObject *_wrap_Event_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12730 | PyObject *resultobj; |
12731 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12732 | int result; | |
12733 | PyObject * obj0 = 0 ; | |
12734 | char *kwnames[] = { | |
12735 | (char *) "self", NULL | |
12736 | }; | |
12737 | ||
12738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
12739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12741 | { | |
12742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12743 | result = (int)((wxEvent const *)arg1)->GetId(); | |
12744 | ||
12745 | wxPyEndAllowThreads(__tstate); | |
12746 | if (PyErr_Occurred()) SWIG_fail; | |
12747 | } | |
c370783e | 12748 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12749 | return resultobj; |
12750 | fail: | |
12751 | return NULL; | |
12752 | } | |
12753 | ||
12754 | ||
c370783e | 12755 | static PyObject *_wrap_Event_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12756 | PyObject *resultobj; |
12757 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12758 | int arg2 ; | |
12759 | PyObject * obj0 = 0 ; | |
12760 | PyObject * obj1 = 0 ; | |
12761 | char *kwnames[] = { | |
12762 | (char *) "self",(char *) "Id", NULL | |
12763 | }; | |
12764 | ||
12765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; | |
12766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12768 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12769 | if (PyErr_Occurred()) SWIG_fail; |
12770 | { | |
12771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12772 | (arg1)->SetId(arg2); | |
12773 | ||
12774 | wxPyEndAllowThreads(__tstate); | |
12775 | if (PyErr_Occurred()) SWIG_fail; | |
12776 | } | |
12777 | Py_INCREF(Py_None); resultobj = Py_None; | |
12778 | return resultobj; | |
12779 | fail: | |
12780 | return NULL; | |
12781 | } | |
12782 | ||
12783 | ||
c370783e | 12784 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12785 | PyObject *resultobj; |
12786 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12787 | bool result; | |
12788 | PyObject * obj0 = 0 ; | |
12789 | char *kwnames[] = { | |
12790 | (char *) "self", NULL | |
12791 | }; | |
12792 | ||
12793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
12794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12796 | { | |
12797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12798 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
12799 | ||
12800 | wxPyEndAllowThreads(__tstate); | |
12801 | if (PyErr_Occurred()) SWIG_fail; | |
12802 | } | |
12803 | { | |
12804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12805 | } | |
12806 | return resultobj; | |
12807 | fail: | |
12808 | return NULL; | |
12809 | } | |
12810 | ||
12811 | ||
c370783e | 12812 | static PyObject *_wrap_Event_Skip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12813 | PyObject *resultobj; |
12814 | wxEvent *arg1 = (wxEvent *) 0 ; | |
b411df4a | 12815 | bool arg2 = (bool) true ; |
d55e5bfc RD |
12816 | PyObject * obj0 = 0 ; |
12817 | PyObject * obj1 = 0 ; | |
12818 | char *kwnames[] = { | |
12819 | (char *) "self",(char *) "skip", NULL | |
12820 | }; | |
12821 | ||
12822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
12823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12825 | if (obj1) { | |
c370783e | 12826 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
12827 | if (PyErr_Occurred()) SWIG_fail; |
12828 | } | |
12829 | { | |
12830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12831 | (arg1)->Skip(arg2); | |
12832 | ||
12833 | wxPyEndAllowThreads(__tstate); | |
12834 | if (PyErr_Occurred()) SWIG_fail; | |
12835 | } | |
12836 | Py_INCREF(Py_None); resultobj = Py_None; | |
12837 | return resultobj; | |
12838 | fail: | |
12839 | return NULL; | |
12840 | } | |
12841 | ||
12842 | ||
c370783e | 12843 | static PyObject *_wrap_Event_GetSkipped(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12844 | PyObject *resultobj; |
12845 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12846 | bool result; | |
12847 | PyObject * obj0 = 0 ; | |
12848 | char *kwnames[] = { | |
12849 | (char *) "self", NULL | |
12850 | }; | |
12851 | ||
12852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
12853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12855 | { | |
12856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12857 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
12858 | ||
12859 | wxPyEndAllowThreads(__tstate); | |
12860 | if (PyErr_Occurred()) SWIG_fail; | |
12861 | } | |
12862 | { | |
12863 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12864 | } | |
12865 | return resultobj; | |
12866 | fail: | |
12867 | return NULL; | |
12868 | } | |
12869 | ||
12870 | ||
c370783e | 12871 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12872 | PyObject *resultobj; |
12873 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12874 | bool result; | |
12875 | PyObject * obj0 = 0 ; | |
12876 | char *kwnames[] = { | |
12877 | (char *) "self", NULL | |
12878 | }; | |
12879 | ||
12880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
12881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12883 | { | |
12884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12885 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
12886 | ||
12887 | wxPyEndAllowThreads(__tstate); | |
12888 | if (PyErr_Occurred()) SWIG_fail; | |
12889 | } | |
12890 | { | |
12891 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12892 | } | |
12893 | return resultobj; | |
12894 | fail: | |
12895 | return NULL; | |
12896 | } | |
12897 | ||
12898 | ||
c370783e | 12899 | static PyObject *_wrap_Event_StopPropagation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12900 | PyObject *resultobj; |
12901 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12902 | int result; | |
12903 | PyObject * obj0 = 0 ; | |
12904 | char *kwnames[] = { | |
12905 | (char *) "self", NULL | |
12906 | }; | |
12907 | ||
12908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
12909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12911 | { | |
12912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12913 | result = (int)(arg1)->StopPropagation(); | |
12914 | ||
12915 | wxPyEndAllowThreads(__tstate); | |
12916 | if (PyErr_Occurred()) SWIG_fail; | |
12917 | } | |
c370783e | 12918 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12919 | return resultobj; |
12920 | fail: | |
12921 | return NULL; | |
12922 | } | |
12923 | ||
12924 | ||
c370783e | 12925 | static PyObject *_wrap_Event_ResumePropagation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12926 | PyObject *resultobj; |
12927 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12928 | int arg2 ; | |
12929 | PyObject * obj0 = 0 ; | |
12930 | PyObject * obj1 = 0 ; | |
12931 | char *kwnames[] = { | |
12932 | (char *) "self",(char *) "propagationLevel", NULL | |
12933 | }; | |
12934 | ||
12935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; | |
12936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12938 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12939 | if (PyErr_Occurred()) SWIG_fail; |
12940 | { | |
12941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12942 | (arg1)->ResumePropagation(arg2); | |
12943 | ||
12944 | wxPyEndAllowThreads(__tstate); | |
12945 | if (PyErr_Occurred()) SWIG_fail; | |
12946 | } | |
12947 | Py_INCREF(Py_None); resultobj = Py_None; | |
12948 | return resultobj; | |
12949 | fail: | |
12950 | return NULL; | |
12951 | } | |
12952 | ||
12953 | ||
c370783e | 12954 | static PyObject *_wrap_Event_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12955 | PyObject *resultobj; |
12956 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12957 | wxEvent *result; | |
12958 | PyObject * obj0 = 0 ; | |
12959 | char *kwnames[] = { | |
12960 | (char *) "self", NULL | |
12961 | }; | |
12962 | ||
12963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
12964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12966 | { | |
12967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12968 | result = (wxEvent *)(arg1)->Clone(); | |
12969 | ||
12970 | wxPyEndAllowThreads(__tstate); | |
12971 | if (PyErr_Occurred()) SWIG_fail; | |
12972 | } | |
12973 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
12974 | return resultobj; | |
12975 | fail: | |
12976 | return NULL; | |
12977 | } | |
12978 | ||
12979 | ||
c370783e | 12980 | static PyObject * Event_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12981 | PyObject *obj; |
12982 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12983 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
12984 | Py_INCREF(obj); | |
12985 | return Py_BuildValue((char *)""); | |
12986 | } | |
c370783e | 12987 | static PyObject *_wrap_new_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12988 | PyObject *resultobj; |
12989 | wxEvent *arg1 = 0 ; | |
12990 | wxPropagationDisabler *result; | |
12991 | PyObject * obj0 = 0 ; | |
12992 | char *kwnames[] = { | |
12993 | (char *) "event", NULL | |
12994 | }; | |
12995 | ||
12996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
12997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12998 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12999 | SWIG_fail; | |
13000 | if (arg1 == NULL) { | |
13001 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13002 | SWIG_fail; | |
13003 | } | |
13004 | { | |
13005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13006 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
13007 | ||
13008 | wxPyEndAllowThreads(__tstate); | |
13009 | if (PyErr_Occurred()) SWIG_fail; | |
13010 | } | |
13011 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); | |
13012 | return resultobj; | |
13013 | fail: | |
13014 | return NULL; | |
13015 | } | |
13016 | ||
13017 | ||
c370783e | 13018 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13019 | PyObject *resultobj; |
13020 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
13021 | PyObject * obj0 = 0 ; | |
13022 | char *kwnames[] = { | |
13023 | (char *) "self", NULL | |
13024 | }; | |
13025 | ||
13026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
13027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler, | |
13028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13029 | { | |
13030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13031 | delete arg1; | |
13032 | ||
13033 | wxPyEndAllowThreads(__tstate); | |
13034 | if (PyErr_Occurred()) SWIG_fail; | |
13035 | } | |
13036 | Py_INCREF(Py_None); resultobj = Py_None; | |
13037 | return resultobj; | |
13038 | fail: | |
13039 | return NULL; | |
13040 | } | |
13041 | ||
13042 | ||
c370783e | 13043 | static PyObject * PropagationDisabler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13044 | PyObject *obj; |
13045 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13046 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
13047 | Py_INCREF(obj); | |
13048 | return Py_BuildValue((char *)""); | |
13049 | } | |
c370783e | 13050 | static PyObject *_wrap_new_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13051 | PyObject *resultobj; |
13052 | wxEvent *arg1 = 0 ; | |
13053 | wxPropagateOnce *result; | |
13054 | PyObject * obj0 = 0 ; | |
13055 | char *kwnames[] = { | |
13056 | (char *) "event", NULL | |
13057 | }; | |
13058 | ||
13059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
13060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13061 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13062 | SWIG_fail; | |
13063 | if (arg1 == NULL) { | |
13064 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13065 | SWIG_fail; | |
13066 | } | |
13067 | { | |
13068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13069 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
13070 | ||
13071 | wxPyEndAllowThreads(__tstate); | |
13072 | if (PyErr_Occurred()) SWIG_fail; | |
13073 | } | |
13074 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); | |
13075 | return resultobj; | |
13076 | fail: | |
13077 | return NULL; | |
13078 | } | |
13079 | ||
13080 | ||
c370783e | 13081 | static PyObject *_wrap_delete_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13082 | PyObject *resultobj; |
13083 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
13084 | PyObject * obj0 = 0 ; | |
13085 | char *kwnames[] = { | |
13086 | (char *) "self", NULL | |
13087 | }; | |
13088 | ||
13089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
13090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce, | |
13091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13092 | { | |
13093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13094 | delete arg1; | |
13095 | ||
13096 | wxPyEndAllowThreads(__tstate); | |
13097 | if (PyErr_Occurred()) SWIG_fail; | |
13098 | } | |
13099 | Py_INCREF(Py_None); resultobj = Py_None; | |
13100 | return resultobj; | |
13101 | fail: | |
13102 | return NULL; | |
13103 | } | |
13104 | ||
13105 | ||
c370783e | 13106 | static PyObject * PropagateOnce_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13107 | PyObject *obj; |
13108 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13109 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
13110 | Py_INCREF(obj); | |
13111 | return Py_BuildValue((char *)""); | |
13112 | } | |
c370783e | 13113 | static PyObject *_wrap_new_CommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13114 | PyObject *resultobj; |
13115 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13116 | int arg2 = (int) 0 ; | |
13117 | wxCommandEvent *result; | |
13118 | PyObject * obj0 = 0 ; | |
13119 | PyObject * obj1 = 0 ; | |
13120 | char *kwnames[] = { | |
13121 | (char *) "commandType",(char *) "winid", NULL | |
13122 | }; | |
13123 | ||
13124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
13125 | if (obj0) { | |
c370783e | 13126 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13127 | if (PyErr_Occurred()) SWIG_fail; |
13128 | } | |
13129 | if (obj1) { | |
c370783e | 13130 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13131 | if (PyErr_Occurred()) SWIG_fail; |
13132 | } | |
13133 | { | |
13134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13135 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
13136 | ||
13137 | wxPyEndAllowThreads(__tstate); | |
13138 | if (PyErr_Occurred()) SWIG_fail; | |
13139 | } | |
13140 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); | |
13141 | return resultobj; | |
13142 | fail: | |
13143 | return NULL; | |
13144 | } | |
13145 | ||
13146 | ||
c370783e | 13147 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13148 | PyObject *resultobj; |
13149 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13150 | int result; | |
13151 | PyObject * obj0 = 0 ; | |
13152 | char *kwnames[] = { | |
13153 | (char *) "self", NULL | |
13154 | }; | |
13155 | ||
13156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
13157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13159 | { | |
13160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13161 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
13162 | ||
13163 | wxPyEndAllowThreads(__tstate); | |
13164 | if (PyErr_Occurred()) SWIG_fail; | |
13165 | } | |
c370783e | 13166 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13167 | return resultobj; |
13168 | fail: | |
13169 | return NULL; | |
13170 | } | |
13171 | ||
13172 | ||
c370783e | 13173 | static PyObject *_wrap_CommandEvent_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13174 | PyObject *resultobj; |
13175 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13176 | wxString *arg2 = 0 ; | |
b411df4a | 13177 | bool temp2 = false ; |
d55e5bfc RD |
13178 | PyObject * obj0 = 0 ; |
13179 | PyObject * obj1 = 0 ; | |
13180 | char *kwnames[] = { | |
13181 | (char *) "self",(char *) "s", NULL | |
13182 | }; | |
13183 | ||
13184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
13185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13187 | { | |
13188 | arg2 = wxString_in_helper(obj1); | |
13189 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13190 | temp2 = true; |
d55e5bfc RD |
13191 | } |
13192 | { | |
13193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13194 | (arg1)->SetString((wxString const &)*arg2); | |
13195 | ||
13196 | wxPyEndAllowThreads(__tstate); | |
13197 | if (PyErr_Occurred()) SWIG_fail; | |
13198 | } | |
13199 | Py_INCREF(Py_None); resultobj = Py_None; | |
13200 | { | |
13201 | if (temp2) | |
13202 | delete arg2; | |
13203 | } | |
13204 | return resultobj; | |
13205 | fail: | |
13206 | { | |
13207 | if (temp2) | |
13208 | delete arg2; | |
13209 | } | |
13210 | return NULL; | |
13211 | } | |
13212 | ||
13213 | ||
c370783e | 13214 | static PyObject *_wrap_CommandEvent_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13215 | PyObject *resultobj; |
13216 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13217 | wxString result; | |
13218 | PyObject * obj0 = 0 ; | |
13219 | char *kwnames[] = { | |
13220 | (char *) "self", NULL | |
13221 | }; | |
13222 | ||
13223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
13224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13226 | { | |
13227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13228 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
13229 | ||
13230 | wxPyEndAllowThreads(__tstate); | |
13231 | if (PyErr_Occurred()) SWIG_fail; | |
13232 | } | |
13233 | { | |
13234 | #if wxUSE_UNICODE | |
13235 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13236 | #else | |
13237 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13238 | #endif | |
13239 | } | |
13240 | return resultobj; | |
13241 | fail: | |
13242 | return NULL; | |
13243 | } | |
13244 | ||
13245 | ||
c370783e | 13246 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13247 | PyObject *resultobj; |
13248 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13249 | bool result; | |
13250 | PyObject * obj0 = 0 ; | |
13251 | char *kwnames[] = { | |
13252 | (char *) "self", NULL | |
13253 | }; | |
13254 | ||
13255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
13256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13258 | { | |
13259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13260 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
13261 | ||
13262 | wxPyEndAllowThreads(__tstate); | |
13263 | if (PyErr_Occurred()) SWIG_fail; | |
13264 | } | |
13265 | { | |
13266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13267 | } | |
13268 | return resultobj; | |
13269 | fail: | |
13270 | return NULL; | |
13271 | } | |
13272 | ||
13273 | ||
c370783e | 13274 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13275 | PyObject *resultobj; |
13276 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13277 | bool result; | |
13278 | PyObject * obj0 = 0 ; | |
13279 | char *kwnames[] = { | |
13280 | (char *) "self", NULL | |
13281 | }; | |
13282 | ||
13283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
13284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13286 | { | |
13287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13288 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
13289 | ||
13290 | wxPyEndAllowThreads(__tstate); | |
13291 | if (PyErr_Occurred()) SWIG_fail; | |
13292 | } | |
13293 | { | |
13294 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13295 | } | |
13296 | return resultobj; | |
13297 | fail: | |
13298 | return NULL; | |
13299 | } | |
13300 | ||
13301 | ||
c370783e | 13302 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13303 | PyObject *resultobj; |
13304 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13305 | long arg2 ; | |
13306 | PyObject * obj0 = 0 ; | |
13307 | PyObject * obj1 = 0 ; | |
13308 | char *kwnames[] = { | |
13309 | (char *) "self",(char *) "extraLong", NULL | |
13310 | }; | |
13311 | ||
13312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; | |
13313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13315 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
13316 | if (PyErr_Occurred()) SWIG_fail; |
13317 | { | |
13318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13319 | (arg1)->SetExtraLong(arg2); | |
13320 | ||
13321 | wxPyEndAllowThreads(__tstate); | |
13322 | if (PyErr_Occurred()) SWIG_fail; | |
13323 | } | |
13324 | Py_INCREF(Py_None); resultobj = Py_None; | |
13325 | return resultobj; | |
13326 | fail: | |
13327 | return NULL; | |
13328 | } | |
13329 | ||
13330 | ||
c370783e | 13331 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13332 | PyObject *resultobj; |
13333 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13334 | long result; | |
13335 | PyObject * obj0 = 0 ; | |
13336 | char *kwnames[] = { | |
13337 | (char *) "self", NULL | |
13338 | }; | |
13339 | ||
13340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
13341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13343 | { | |
13344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13345 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
13346 | ||
13347 | wxPyEndAllowThreads(__tstate); | |
13348 | if (PyErr_Occurred()) SWIG_fail; | |
13349 | } | |
c370783e | 13350 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
13351 | return resultobj; |
13352 | fail: | |
13353 | return NULL; | |
13354 | } | |
13355 | ||
13356 | ||
c370783e | 13357 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13358 | PyObject *resultobj; |
13359 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13360 | int arg2 ; | |
13361 | PyObject * obj0 = 0 ; | |
13362 | PyObject * obj1 = 0 ; | |
13363 | char *kwnames[] = { | |
13364 | (char *) "self",(char *) "i", NULL | |
13365 | }; | |
13366 | ||
13367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; | |
13368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13370 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13371 | if (PyErr_Occurred()) SWIG_fail; |
13372 | { | |
13373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13374 | (arg1)->SetInt(arg2); | |
13375 | ||
13376 | wxPyEndAllowThreads(__tstate); | |
13377 | if (PyErr_Occurred()) SWIG_fail; | |
13378 | } | |
13379 | Py_INCREF(Py_None); resultobj = Py_None; | |
13380 | return resultobj; | |
13381 | fail: | |
13382 | return NULL; | |
13383 | } | |
13384 | ||
13385 | ||
c370783e | 13386 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13387 | PyObject *resultobj; |
13388 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13389 | long result; | |
13390 | PyObject * obj0 = 0 ; | |
13391 | char *kwnames[] = { | |
13392 | (char *) "self", NULL | |
13393 | }; | |
13394 | ||
13395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
13396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13398 | { | |
13399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13400 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
13401 | ||
13402 | wxPyEndAllowThreads(__tstate); | |
13403 | if (PyErr_Occurred()) SWIG_fail; | |
13404 | } | |
c370783e | 13405 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
13406 | return resultobj; |
13407 | fail: | |
13408 | return NULL; | |
13409 | } | |
13410 | ||
13411 | ||
c370783e | 13412 | static PyObject *_wrap_CommandEvent_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13413 | PyObject *resultobj; |
13414 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13415 | wxEvent *result; | |
13416 | PyObject * obj0 = 0 ; | |
13417 | char *kwnames[] = { | |
13418 | (char *) "self", NULL | |
13419 | }; | |
13420 | ||
13421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
13422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13424 | { | |
13425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13426 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
13427 | ||
13428 | wxPyEndAllowThreads(__tstate); | |
13429 | if (PyErr_Occurred()) SWIG_fail; | |
13430 | } | |
13431 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
13432 | return resultobj; | |
13433 | fail: | |
13434 | return NULL; | |
13435 | } | |
13436 | ||
13437 | ||
c370783e | 13438 | static PyObject * CommandEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13439 | PyObject *obj; |
13440 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13441 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
13442 | Py_INCREF(obj); | |
13443 | return Py_BuildValue((char *)""); | |
13444 | } | |
c370783e | 13445 | static PyObject *_wrap_new_NotifyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13446 | PyObject *resultobj; |
13447 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13448 | int arg2 = (int) 0 ; | |
13449 | wxNotifyEvent *result; | |
13450 | PyObject * obj0 = 0 ; | |
13451 | PyObject * obj1 = 0 ; | |
13452 | char *kwnames[] = { | |
13453 | (char *) "commandType",(char *) "winid", NULL | |
13454 | }; | |
13455 | ||
13456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; | |
13457 | if (obj0) { | |
c370783e | 13458 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13459 | if (PyErr_Occurred()) SWIG_fail; |
13460 | } | |
13461 | if (obj1) { | |
c370783e | 13462 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13463 | if (PyErr_Occurred()) SWIG_fail; |
13464 | } | |
13465 | { | |
13466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13467 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
13468 | ||
13469 | wxPyEndAllowThreads(__tstate); | |
13470 | if (PyErr_Occurred()) SWIG_fail; | |
13471 | } | |
13472 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); | |
13473 | return resultobj; | |
13474 | fail: | |
13475 | return NULL; | |
13476 | } | |
13477 | ||
13478 | ||
c370783e | 13479 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13480 | PyObject *resultobj; |
13481 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13482 | PyObject * obj0 = 0 ; | |
13483 | char *kwnames[] = { | |
13484 | (char *) "self", NULL | |
13485 | }; | |
13486 | ||
13487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
13488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13490 | { | |
13491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13492 | (arg1)->Veto(); | |
13493 | ||
13494 | wxPyEndAllowThreads(__tstate); | |
13495 | if (PyErr_Occurred()) SWIG_fail; | |
13496 | } | |
13497 | Py_INCREF(Py_None); resultobj = Py_None; | |
13498 | return resultobj; | |
13499 | fail: | |
13500 | return NULL; | |
13501 | } | |
13502 | ||
13503 | ||
c370783e | 13504 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13505 | PyObject *resultobj; |
13506 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13507 | PyObject * obj0 = 0 ; | |
13508 | char *kwnames[] = { | |
13509 | (char *) "self", NULL | |
13510 | }; | |
13511 | ||
13512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
13513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13515 | { | |
13516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13517 | (arg1)->Allow(); | |
13518 | ||
13519 | wxPyEndAllowThreads(__tstate); | |
13520 | if (PyErr_Occurred()) SWIG_fail; | |
13521 | } | |
13522 | Py_INCREF(Py_None); resultobj = Py_None; | |
13523 | return resultobj; | |
13524 | fail: | |
13525 | return NULL; | |
13526 | } | |
13527 | ||
13528 | ||
c370783e | 13529 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13530 | PyObject *resultobj; |
13531 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13532 | bool result; | |
13533 | PyObject * obj0 = 0 ; | |
13534 | char *kwnames[] = { | |
13535 | (char *) "self", NULL | |
13536 | }; | |
13537 | ||
13538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
13539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13541 | { | |
13542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13543 | result = (bool)(arg1)->IsAllowed(); | |
13544 | ||
13545 | wxPyEndAllowThreads(__tstate); | |
13546 | if (PyErr_Occurred()) SWIG_fail; | |
13547 | } | |
13548 | { | |
13549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13550 | } | |
13551 | return resultobj; | |
13552 | fail: | |
13553 | return NULL; | |
13554 | } | |
13555 | ||
13556 | ||
c370783e | 13557 | static PyObject * NotifyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13558 | PyObject *obj; |
13559 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13560 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
13561 | Py_INCREF(obj); | |
13562 | return Py_BuildValue((char *)""); | |
13563 | } | |
c370783e | 13564 | static PyObject *_wrap_new_ScrollEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13565 | PyObject *resultobj; |
13566 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13567 | int arg2 = (int) 0 ; | |
13568 | int arg3 = (int) 0 ; | |
13569 | int arg4 = (int) 0 ; | |
13570 | wxScrollEvent *result; | |
13571 | PyObject * obj0 = 0 ; | |
13572 | PyObject * obj1 = 0 ; | |
13573 | PyObject * obj2 = 0 ; | |
13574 | PyObject * obj3 = 0 ; | |
13575 | char *kwnames[] = { | |
13576 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
13577 | }; | |
13578 | ||
13579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13580 | if (obj0) { | |
c370783e | 13581 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13582 | if (PyErr_Occurred()) SWIG_fail; |
13583 | } | |
13584 | if (obj1) { | |
c370783e | 13585 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13586 | if (PyErr_Occurred()) SWIG_fail; |
13587 | } | |
13588 | if (obj2) { | |
c370783e | 13589 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13590 | if (PyErr_Occurred()) SWIG_fail; |
13591 | } | |
13592 | if (obj3) { | |
c370783e | 13593 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
13594 | if (PyErr_Occurred()) SWIG_fail; |
13595 | } | |
13596 | { | |
13597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13598 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
13599 | ||
13600 | wxPyEndAllowThreads(__tstate); | |
13601 | if (PyErr_Occurred()) SWIG_fail; | |
13602 | } | |
13603 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); | |
13604 | return resultobj; | |
13605 | fail: | |
13606 | return NULL; | |
13607 | } | |
13608 | ||
13609 | ||
c370783e | 13610 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13611 | PyObject *resultobj; |
13612 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13613 | int result; | |
13614 | PyObject * obj0 = 0 ; | |
13615 | char *kwnames[] = { | |
13616 | (char *) "self", NULL | |
13617 | }; | |
13618 | ||
13619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
13620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13622 | { | |
13623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13624 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
13625 | ||
13626 | wxPyEndAllowThreads(__tstate); | |
13627 | if (PyErr_Occurred()) SWIG_fail; | |
13628 | } | |
c370783e | 13629 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13630 | return resultobj; |
13631 | fail: | |
13632 | return NULL; | |
13633 | } | |
13634 | ||
13635 | ||
c370783e | 13636 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13637 | PyObject *resultobj; |
13638 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13639 | int result; | |
13640 | PyObject * obj0 = 0 ; | |
13641 | char *kwnames[] = { | |
13642 | (char *) "self", NULL | |
13643 | }; | |
13644 | ||
13645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13648 | { | |
13649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13650 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
13651 | ||
13652 | wxPyEndAllowThreads(__tstate); | |
13653 | if (PyErr_Occurred()) SWIG_fail; | |
13654 | } | |
c370783e | 13655 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13656 | return resultobj; |
13657 | fail: | |
13658 | return NULL; | |
13659 | } | |
13660 | ||
13661 | ||
c370783e | 13662 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13663 | PyObject *resultobj; |
13664 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13665 | int arg2 ; | |
13666 | PyObject * obj0 = 0 ; | |
13667 | PyObject * obj1 = 0 ; | |
13668 | char *kwnames[] = { | |
13669 | (char *) "self",(char *) "orient", NULL | |
13670 | }; | |
13671 | ||
13672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
13673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13675 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13676 | if (PyErr_Occurred()) SWIG_fail; |
13677 | { | |
13678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13679 | (arg1)->SetOrientation(arg2); | |
13680 | ||
13681 | wxPyEndAllowThreads(__tstate); | |
13682 | if (PyErr_Occurred()) SWIG_fail; | |
13683 | } | |
13684 | Py_INCREF(Py_None); resultobj = Py_None; | |
13685 | return resultobj; | |
13686 | fail: | |
13687 | return NULL; | |
13688 | } | |
13689 | ||
13690 | ||
c370783e | 13691 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13692 | PyObject *resultobj; |
13693 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13694 | int arg2 ; | |
13695 | PyObject * obj0 = 0 ; | |
13696 | PyObject * obj1 = 0 ; | |
13697 | char *kwnames[] = { | |
13698 | (char *) "self",(char *) "pos", NULL | |
13699 | }; | |
13700 | ||
13701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
13702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13704 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13705 | if (PyErr_Occurred()) SWIG_fail; |
13706 | { | |
13707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13708 | (arg1)->SetPosition(arg2); | |
13709 | ||
13710 | wxPyEndAllowThreads(__tstate); | |
13711 | if (PyErr_Occurred()) SWIG_fail; | |
13712 | } | |
13713 | Py_INCREF(Py_None); resultobj = Py_None; | |
13714 | return resultobj; | |
13715 | fail: | |
13716 | return NULL; | |
13717 | } | |
13718 | ||
13719 | ||
c370783e | 13720 | static PyObject * ScrollEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13721 | PyObject *obj; |
13722 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13723 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
13724 | Py_INCREF(obj); | |
13725 | return Py_BuildValue((char *)""); | |
13726 | } | |
c370783e | 13727 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13728 | PyObject *resultobj; |
13729 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13730 | int arg2 = (int) 0 ; | |
13731 | int arg3 = (int) 0 ; | |
13732 | wxScrollWinEvent *result; | |
13733 | PyObject * obj0 = 0 ; | |
13734 | PyObject * obj1 = 0 ; | |
13735 | PyObject * obj2 = 0 ; | |
13736 | char *kwnames[] = { | |
13737 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
13738 | }; | |
13739 | ||
13740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13741 | if (obj0) { | |
c370783e | 13742 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13743 | if (PyErr_Occurred()) SWIG_fail; |
13744 | } | |
13745 | if (obj1) { | |
c370783e | 13746 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13747 | if (PyErr_Occurred()) SWIG_fail; |
13748 | } | |
13749 | if (obj2) { | |
c370783e | 13750 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13751 | if (PyErr_Occurred()) SWIG_fail; |
13752 | } | |
13753 | { | |
13754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13755 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
13756 | ||
13757 | wxPyEndAllowThreads(__tstate); | |
13758 | if (PyErr_Occurred()) SWIG_fail; | |
13759 | } | |
13760 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); | |
13761 | return resultobj; | |
13762 | fail: | |
13763 | return NULL; | |
13764 | } | |
13765 | ||
13766 | ||
c370783e | 13767 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13768 | PyObject *resultobj; |
13769 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13770 | int result; | |
13771 | PyObject * obj0 = 0 ; | |
13772 | char *kwnames[] = { | |
13773 | (char *) "self", NULL | |
13774 | }; | |
13775 | ||
13776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
13777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13779 | { | |
13780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13781 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
13782 | ||
13783 | wxPyEndAllowThreads(__tstate); | |
13784 | if (PyErr_Occurred()) SWIG_fail; | |
13785 | } | |
c370783e | 13786 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13787 | return resultobj; |
13788 | fail: | |
13789 | return NULL; | |
13790 | } | |
13791 | ||
13792 | ||
c370783e | 13793 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13794 | PyObject *resultobj; |
13795 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13796 | int result; | |
13797 | PyObject * obj0 = 0 ; | |
13798 | char *kwnames[] = { | |
13799 | (char *) "self", NULL | |
13800 | }; | |
13801 | ||
13802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13805 | { | |
13806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13807 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
13808 | ||
13809 | wxPyEndAllowThreads(__tstate); | |
13810 | if (PyErr_Occurred()) SWIG_fail; | |
13811 | } | |
c370783e | 13812 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13813 | return resultobj; |
13814 | fail: | |
13815 | return NULL; | |
13816 | } | |
13817 | ||
13818 | ||
c370783e | 13819 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13820 | PyObject *resultobj; |
13821 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13822 | int arg2 ; | |
13823 | PyObject * obj0 = 0 ; | |
13824 | PyObject * obj1 = 0 ; | |
13825 | char *kwnames[] = { | |
13826 | (char *) "self",(char *) "orient", NULL | |
13827 | }; | |
13828 | ||
13829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
13830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13832 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13833 | if (PyErr_Occurred()) SWIG_fail; |
13834 | { | |
13835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13836 | (arg1)->SetOrientation(arg2); | |
13837 | ||
13838 | wxPyEndAllowThreads(__tstate); | |
13839 | if (PyErr_Occurred()) SWIG_fail; | |
13840 | } | |
13841 | Py_INCREF(Py_None); resultobj = Py_None; | |
13842 | return resultobj; | |
13843 | fail: | |
13844 | return NULL; | |
13845 | } | |
13846 | ||
13847 | ||
c370783e | 13848 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13849 | PyObject *resultobj; |
13850 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
13851 | int arg2 ; | |
13852 | PyObject * obj0 = 0 ; | |
13853 | PyObject * obj1 = 0 ; | |
13854 | char *kwnames[] = { | |
13855 | (char *) "self",(char *) "pos", NULL | |
13856 | }; | |
13857 | ||
13858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
13859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
13860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13861 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13862 | if (PyErr_Occurred()) SWIG_fail; |
13863 | { | |
13864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13865 | (arg1)->SetPosition(arg2); | |
13866 | ||
13867 | wxPyEndAllowThreads(__tstate); | |
13868 | if (PyErr_Occurred()) SWIG_fail; | |
13869 | } | |
13870 | Py_INCREF(Py_None); resultobj = Py_None; | |
13871 | return resultobj; | |
13872 | fail: | |
13873 | return NULL; | |
13874 | } | |
13875 | ||
13876 | ||
c370783e | 13877 | static PyObject * ScrollWinEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13878 | PyObject *obj; |
13879 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13880 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
13881 | Py_INCREF(obj); | |
13882 | return Py_BuildValue((char *)""); | |
13883 | } | |
c370783e | 13884 | static PyObject *_wrap_new_MouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13885 | PyObject *resultobj; |
13886 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13887 | wxMouseEvent *result; | |
13888 | PyObject * obj0 = 0 ; | |
13889 | char *kwnames[] = { | |
13890 | (char *) "mouseType", NULL | |
13891 | }; | |
13892 | ||
13893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; | |
13894 | if (obj0) { | |
c370783e | 13895 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13896 | if (PyErr_Occurred()) SWIG_fail; |
13897 | } | |
13898 | { | |
13899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13900 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
13901 | ||
13902 | wxPyEndAllowThreads(__tstate); | |
13903 | if (PyErr_Occurred()) SWIG_fail; | |
13904 | } | |
13905 | { | |
412d302d | 13906 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
13907 | } |
13908 | return resultobj; | |
13909 | fail: | |
13910 | return NULL; | |
13911 | } | |
13912 | ||
13913 | ||
c370783e | 13914 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13915 | PyObject *resultobj; |
13916 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13917 | bool result; | |
13918 | PyObject * obj0 = 0 ; | |
13919 | char *kwnames[] = { | |
13920 | (char *) "self", NULL | |
13921 | }; | |
13922 | ||
13923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
13924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13926 | { | |
13927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13928 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
13929 | ||
13930 | wxPyEndAllowThreads(__tstate); | |
13931 | if (PyErr_Occurred()) SWIG_fail; | |
13932 | } | |
13933 | { | |
13934 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13935 | } | |
13936 | return resultobj; | |
13937 | fail: | |
13938 | return NULL; | |
13939 | } | |
13940 | ||
13941 | ||
c370783e | 13942 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13943 | PyObject *resultobj; |
13944 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13945 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13946 | bool result; | |
13947 | PyObject * obj0 = 0 ; | |
13948 | PyObject * obj1 = 0 ; | |
13949 | char *kwnames[] = { | |
13950 | (char *) "self",(char *) "but", NULL | |
13951 | }; | |
13952 | ||
13953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
13954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13956 | if (obj1) { | |
c370783e | 13957 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13958 | if (PyErr_Occurred()) SWIG_fail; |
13959 | } | |
13960 | { | |
13961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13962 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
13963 | ||
13964 | wxPyEndAllowThreads(__tstate); | |
13965 | if (PyErr_Occurred()) SWIG_fail; | |
13966 | } | |
13967 | { | |
13968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13969 | } | |
13970 | return resultobj; | |
13971 | fail: | |
13972 | return NULL; | |
13973 | } | |
13974 | ||
13975 | ||
c370783e | 13976 | static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13977 | PyObject *resultobj; |
13978 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
13979 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
13980 | bool result; | |
13981 | PyObject * obj0 = 0 ; | |
13982 | PyObject * obj1 = 0 ; | |
13983 | char *kwnames[] = { | |
13984 | (char *) "self",(char *) "but", NULL | |
13985 | }; | |
13986 | ||
13987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; | |
13988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
13989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13990 | if (obj1) { | |
c370783e | 13991 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13992 | if (PyErr_Occurred()) SWIG_fail; |
13993 | } | |
13994 | { | |
13995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13996 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
13997 | ||
13998 | wxPyEndAllowThreads(__tstate); | |
13999 | if (PyErr_Occurred()) SWIG_fail; | |
14000 | } | |
14001 | { | |
14002 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14003 | } | |
14004 | return resultobj; | |
14005 | fail: | |
14006 | return NULL; | |
14007 | } | |
14008 | ||
14009 | ||
c370783e | 14010 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14011 | PyObject *resultobj; |
14012 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14013 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
14014 | bool result; | |
14015 | PyObject * obj0 = 0 ; | |
14016 | PyObject * obj1 = 0 ; | |
14017 | char *kwnames[] = { | |
14018 | (char *) "self",(char *) "but", NULL | |
14019 | }; | |
14020 | ||
14021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
14022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14024 | if (obj1) { | |
c370783e | 14025 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14026 | if (PyErr_Occurred()) SWIG_fail; |
14027 | } | |
14028 | { | |
14029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14030 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
14031 | ||
14032 | wxPyEndAllowThreads(__tstate); | |
14033 | if (PyErr_Occurred()) SWIG_fail; | |
14034 | } | |
14035 | { | |
14036 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14037 | } | |
14038 | return resultobj; | |
14039 | fail: | |
14040 | return NULL; | |
14041 | } | |
14042 | ||
14043 | ||
c370783e | 14044 | static PyObject *_wrap_MouseEvent_Button(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14045 | PyObject *resultobj; |
14046 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14047 | int arg2 ; | |
14048 | bool result; | |
14049 | PyObject * obj0 = 0 ; | |
14050 | PyObject * obj1 = 0 ; | |
14051 | char *kwnames[] = { | |
14052 | (char *) "self",(char *) "but", NULL | |
14053 | }; | |
14054 | ||
14055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; | |
14056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14058 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14059 | if (PyErr_Occurred()) SWIG_fail; |
14060 | { | |
14061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14062 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
14063 | ||
14064 | wxPyEndAllowThreads(__tstate); | |
14065 | if (PyErr_Occurred()) SWIG_fail; | |
14066 | } | |
14067 | { | |
14068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14069 | } | |
14070 | return resultobj; | |
14071 | fail: | |
14072 | return NULL; | |
14073 | } | |
14074 | ||
14075 | ||
c370783e | 14076 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14077 | PyObject *resultobj; |
14078 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14079 | int arg2 ; | |
14080 | bool result; | |
14081 | PyObject * obj0 = 0 ; | |
14082 | PyObject * obj1 = 0 ; | |
14083 | char *kwnames[] = { | |
14084 | (char *) "self",(char *) "but", NULL | |
14085 | }; | |
14086 | ||
14087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
14088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14090 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14091 | if (PyErr_Occurred()) SWIG_fail; |
14092 | { | |
14093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14094 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
14095 | ||
14096 | wxPyEndAllowThreads(__tstate); | |
14097 | if (PyErr_Occurred()) SWIG_fail; | |
14098 | } | |
14099 | { | |
14100 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14101 | } | |
14102 | return resultobj; | |
14103 | fail: | |
14104 | return NULL; | |
14105 | } | |
14106 | ||
14107 | ||
c370783e | 14108 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14109 | PyObject *resultobj; |
14110 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14111 | int result; | |
14112 | PyObject * obj0 = 0 ; | |
14113 | char *kwnames[] = { | |
14114 | (char *) "self", NULL | |
14115 | }; | |
14116 | ||
14117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
14118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14120 | { | |
14121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14122 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
14123 | ||
14124 | wxPyEndAllowThreads(__tstate); | |
14125 | if (PyErr_Occurred()) SWIG_fail; | |
14126 | } | |
c370783e | 14127 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14128 | return resultobj; |
14129 | fail: | |
14130 | return NULL; | |
14131 | } | |
14132 | ||
14133 | ||
c370783e | 14134 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14135 | PyObject *resultobj; |
14136 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14137 | bool result; | |
14138 | PyObject * obj0 = 0 ; | |
14139 | char *kwnames[] = { | |
14140 | (char *) "self", NULL | |
14141 | }; | |
14142 | ||
14143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
14144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14146 | { | |
14147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14148 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
14149 | ||
14150 | wxPyEndAllowThreads(__tstate); | |
14151 | if (PyErr_Occurred()) SWIG_fail; | |
14152 | } | |
14153 | { | |
14154 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14155 | } | |
14156 | return resultobj; | |
14157 | fail: | |
14158 | return NULL; | |
14159 | } | |
14160 | ||
14161 | ||
c370783e | 14162 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14163 | PyObject *resultobj; |
14164 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14165 | bool result; | |
14166 | PyObject * obj0 = 0 ; | |
14167 | char *kwnames[] = { | |
14168 | (char *) "self", NULL | |
14169 | }; | |
14170 | ||
14171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
14172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14174 | { | |
14175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14176 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
14177 | ||
14178 | wxPyEndAllowThreads(__tstate); | |
14179 | if (PyErr_Occurred()) SWIG_fail; | |
14180 | } | |
14181 | { | |
14182 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14183 | } | |
14184 | return resultobj; | |
14185 | fail: | |
14186 | return NULL; | |
14187 | } | |
14188 | ||
14189 | ||
c370783e | 14190 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14191 | PyObject *resultobj; |
14192 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14193 | bool result; | |
14194 | PyObject * obj0 = 0 ; | |
14195 | char *kwnames[] = { | |
14196 | (char *) "self", NULL | |
14197 | }; | |
14198 | ||
14199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
14200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14202 | { | |
14203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14204 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
14205 | ||
14206 | wxPyEndAllowThreads(__tstate); | |
14207 | if (PyErr_Occurred()) SWIG_fail; | |
14208 | } | |
14209 | { | |
14210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14211 | } | |
14212 | return resultobj; | |
14213 | fail: | |
14214 | return NULL; | |
14215 | } | |
14216 | ||
14217 | ||
c370783e | 14218 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14219 | PyObject *resultobj; |
14220 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14221 | bool result; | |
14222 | PyObject * obj0 = 0 ; | |
14223 | char *kwnames[] = { | |
14224 | (char *) "self", NULL | |
14225 | }; | |
14226 | ||
14227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
14228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14230 | { | |
14231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14232 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
14233 | ||
14234 | wxPyEndAllowThreads(__tstate); | |
14235 | if (PyErr_Occurred()) SWIG_fail; | |
14236 | } | |
14237 | { | |
14238 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14239 | } | |
14240 | return resultobj; | |
14241 | fail: | |
14242 | return NULL; | |
14243 | } | |
14244 | ||
14245 | ||
c370783e | 14246 | static PyObject *_wrap_MouseEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) { |
412d302d RD |
14247 | PyObject *resultobj; |
14248 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14249 | bool result; | |
14250 | PyObject * obj0 = 0 ; | |
14251 | char *kwnames[] = { | |
14252 | (char *) "self", NULL | |
14253 | }; | |
14254 | ||
14255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_CmdDown",kwnames,&obj0)) goto fail; | |
14256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14258 | { | |
14259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14260 | result = (bool)((wxMouseEvent const *)arg1)->CmdDown(); | |
14261 | ||
14262 | wxPyEndAllowThreads(__tstate); | |
14263 | if (PyErr_Occurred()) SWIG_fail; | |
14264 | } | |
14265 | { | |
14266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14267 | } | |
14268 | return resultobj; | |
14269 | fail: | |
14270 | return NULL; | |
14271 | } | |
14272 | ||
14273 | ||
c370783e | 14274 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14275 | PyObject *resultobj; |
14276 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14277 | bool result; | |
14278 | PyObject * obj0 = 0 ; | |
14279 | char *kwnames[] = { | |
14280 | (char *) "self", NULL | |
14281 | }; | |
14282 | ||
14283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
14284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14286 | { | |
14287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14288 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
14289 | ||
14290 | wxPyEndAllowThreads(__tstate); | |
14291 | if (PyErr_Occurred()) SWIG_fail; | |
14292 | } | |
14293 | { | |
14294 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14295 | } | |
14296 | return resultobj; | |
14297 | fail: | |
14298 | return NULL; | |
14299 | } | |
14300 | ||
14301 | ||
c370783e | 14302 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14303 | PyObject *resultobj; |
14304 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14305 | bool result; | |
14306 | PyObject * obj0 = 0 ; | |
14307 | char *kwnames[] = { | |
14308 | (char *) "self", NULL | |
14309 | }; | |
14310 | ||
14311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
14312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14314 | { | |
14315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14316 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
14317 | ||
14318 | wxPyEndAllowThreads(__tstate); | |
14319 | if (PyErr_Occurred()) SWIG_fail; | |
14320 | } | |
14321 | { | |
14322 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14323 | } | |
14324 | return resultobj; | |
14325 | fail: | |
14326 | return NULL; | |
14327 | } | |
14328 | ||
14329 | ||
c370783e | 14330 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14331 | PyObject *resultobj; |
14332 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14333 | bool result; | |
14334 | PyObject * obj0 = 0 ; | |
14335 | char *kwnames[] = { | |
14336 | (char *) "self", NULL | |
14337 | }; | |
14338 | ||
14339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
14340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14342 | { | |
14343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14344 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
14345 | ||
14346 | wxPyEndAllowThreads(__tstate); | |
14347 | if (PyErr_Occurred()) SWIG_fail; | |
14348 | } | |
14349 | { | |
14350 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14351 | } | |
14352 | return resultobj; | |
14353 | fail: | |
14354 | return NULL; | |
14355 | } | |
14356 | ||
14357 | ||
c370783e | 14358 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14359 | PyObject *resultobj; |
14360 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14361 | bool result; | |
14362 | PyObject * obj0 = 0 ; | |
14363 | char *kwnames[] = { | |
14364 | (char *) "self", NULL | |
14365 | }; | |
14366 | ||
14367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
14368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14370 | { | |
14371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14372 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
14373 | ||
14374 | wxPyEndAllowThreads(__tstate); | |
14375 | if (PyErr_Occurred()) SWIG_fail; | |
14376 | } | |
14377 | { | |
14378 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14379 | } | |
14380 | return resultobj; | |
14381 | fail: | |
14382 | return NULL; | |
14383 | } | |
14384 | ||
14385 | ||
c370783e | 14386 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14387 | PyObject *resultobj; |
14388 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14389 | bool result; | |
14390 | PyObject * obj0 = 0 ; | |
14391 | char *kwnames[] = { | |
14392 | (char *) "self", NULL | |
14393 | }; | |
14394 | ||
14395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
14396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14398 | { | |
14399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14400 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
14401 | ||
14402 | wxPyEndAllowThreads(__tstate); | |
14403 | if (PyErr_Occurred()) SWIG_fail; | |
14404 | } | |
14405 | { | |
14406 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14407 | } | |
14408 | return resultobj; | |
14409 | fail: | |
14410 | return NULL; | |
14411 | } | |
14412 | ||
14413 | ||
c370783e | 14414 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14415 | PyObject *resultobj; |
14416 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14417 | bool result; | |
14418 | PyObject * obj0 = 0 ; | |
14419 | char *kwnames[] = { | |
14420 | (char *) "self", NULL | |
14421 | }; | |
14422 | ||
14423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
14424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14426 | { | |
14427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14428 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
14429 | ||
14430 | wxPyEndAllowThreads(__tstate); | |
14431 | if (PyErr_Occurred()) SWIG_fail; | |
14432 | } | |
14433 | { | |
14434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14435 | } | |
14436 | return resultobj; | |
14437 | fail: | |
14438 | return NULL; | |
14439 | } | |
14440 | ||
14441 | ||
c370783e | 14442 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14443 | PyObject *resultobj; |
14444 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14445 | bool result; | |
14446 | PyObject * obj0 = 0 ; | |
14447 | char *kwnames[] = { | |
14448 | (char *) "self", NULL | |
14449 | }; | |
14450 | ||
14451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
14452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14454 | { | |
14455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14456 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
14457 | ||
14458 | wxPyEndAllowThreads(__tstate); | |
14459 | if (PyErr_Occurred()) SWIG_fail; | |
14460 | } | |
14461 | { | |
14462 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14463 | } | |
14464 | return resultobj; | |
14465 | fail: | |
14466 | return NULL; | |
14467 | } | |
14468 | ||
14469 | ||
c370783e | 14470 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14471 | PyObject *resultobj; |
14472 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14473 | bool result; | |
14474 | PyObject * obj0 = 0 ; | |
14475 | char *kwnames[] = { | |
14476 | (char *) "self", NULL | |
14477 | }; | |
14478 | ||
14479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
14480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14482 | { | |
14483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14484 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
14485 | ||
14486 | wxPyEndAllowThreads(__tstate); | |
14487 | if (PyErr_Occurred()) SWIG_fail; | |
14488 | } | |
14489 | { | |
14490 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14491 | } | |
14492 | return resultobj; | |
14493 | fail: | |
14494 | return NULL; | |
14495 | } | |
14496 | ||
14497 | ||
c370783e | 14498 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14499 | PyObject *resultobj; |
14500 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14501 | bool result; | |
14502 | PyObject * obj0 = 0 ; | |
14503 | char *kwnames[] = { | |
14504 | (char *) "self", NULL | |
14505 | }; | |
14506 | ||
14507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
14508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14510 | { | |
14511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14512 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
14513 | ||
14514 | wxPyEndAllowThreads(__tstate); | |
14515 | if (PyErr_Occurred()) SWIG_fail; | |
14516 | } | |
14517 | { | |
14518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14519 | } | |
14520 | return resultobj; | |
14521 | fail: | |
14522 | return NULL; | |
14523 | } | |
14524 | ||
14525 | ||
c370783e | 14526 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14527 | PyObject *resultobj; |
14528 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14529 | bool result; | |
14530 | PyObject * obj0 = 0 ; | |
14531 | char *kwnames[] = { | |
14532 | (char *) "self", NULL | |
14533 | }; | |
14534 | ||
14535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
14536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14538 | { | |
14539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14540 | result = (bool)(arg1)->LeftIsDown(); | |
14541 | ||
14542 | wxPyEndAllowThreads(__tstate); | |
14543 | if (PyErr_Occurred()) SWIG_fail; | |
14544 | } | |
14545 | { | |
14546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14547 | } | |
14548 | return resultobj; | |
14549 | fail: | |
14550 | return NULL; | |
14551 | } | |
14552 | ||
14553 | ||
c370783e | 14554 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14555 | PyObject *resultobj; |
14556 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14557 | bool result; | |
14558 | PyObject * obj0 = 0 ; | |
14559 | char *kwnames[] = { | |
14560 | (char *) "self", NULL | |
14561 | }; | |
14562 | ||
14563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
14564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14566 | { | |
14567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14568 | result = (bool)(arg1)->MiddleIsDown(); | |
14569 | ||
14570 | wxPyEndAllowThreads(__tstate); | |
14571 | if (PyErr_Occurred()) SWIG_fail; | |
14572 | } | |
14573 | { | |
14574 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14575 | } | |
14576 | return resultobj; | |
14577 | fail: | |
14578 | return NULL; | |
14579 | } | |
14580 | ||
14581 | ||
c370783e | 14582 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14583 | PyObject *resultobj; |
14584 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14585 | bool result; | |
14586 | PyObject * obj0 = 0 ; | |
14587 | char *kwnames[] = { | |
14588 | (char *) "self", NULL | |
14589 | }; | |
14590 | ||
14591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
14592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14594 | { | |
14595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14596 | result = (bool)(arg1)->RightIsDown(); | |
14597 | ||
14598 | wxPyEndAllowThreads(__tstate); | |
14599 | if (PyErr_Occurred()) SWIG_fail; | |
14600 | } | |
14601 | { | |
14602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14603 | } | |
14604 | return resultobj; | |
14605 | fail: | |
14606 | return NULL; | |
14607 | } | |
14608 | ||
14609 | ||
c370783e | 14610 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14611 | PyObject *resultobj; |
14612 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14613 | bool result; | |
14614 | PyObject * obj0 = 0 ; | |
14615 | char *kwnames[] = { | |
14616 | (char *) "self", NULL | |
14617 | }; | |
14618 | ||
14619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
14620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14622 | { | |
14623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14624 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
14625 | ||
14626 | wxPyEndAllowThreads(__tstate); | |
14627 | if (PyErr_Occurred()) SWIG_fail; | |
14628 | } | |
14629 | { | |
14630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14631 | } | |
14632 | return resultobj; | |
14633 | fail: | |
14634 | return NULL; | |
14635 | } | |
14636 | ||
14637 | ||
c370783e | 14638 | static PyObject *_wrap_MouseEvent_Moving(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14639 | PyObject *resultobj; |
14640 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14641 | bool result; | |
14642 | PyObject * obj0 = 0 ; | |
14643 | char *kwnames[] = { | |
14644 | (char *) "self", NULL | |
14645 | }; | |
14646 | ||
14647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail; | |
14648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14650 | { | |
14651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14652 | result = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
14653 | ||
14654 | wxPyEndAllowThreads(__tstate); | |
14655 | if (PyErr_Occurred()) SWIG_fail; | |
14656 | } | |
14657 | { | |
14658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14659 | } | |
14660 | return resultobj; | |
14661 | fail: | |
14662 | return NULL; | |
14663 | } | |
14664 | ||
14665 | ||
c370783e | 14666 | static PyObject *_wrap_MouseEvent_Entering(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14667 | PyObject *resultobj; |
14668 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14669 | bool result; | |
14670 | PyObject * obj0 = 0 ; | |
14671 | char *kwnames[] = { | |
14672 | (char *) "self", NULL | |
14673 | }; | |
14674 | ||
14675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
14676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14678 | { | |
14679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14680 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
14681 | ||
14682 | wxPyEndAllowThreads(__tstate); | |
14683 | if (PyErr_Occurred()) SWIG_fail; | |
14684 | } | |
14685 | { | |
14686 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14687 | } | |
14688 | return resultobj; | |
14689 | fail: | |
14690 | return NULL; | |
14691 | } | |
14692 | ||
14693 | ||
c370783e | 14694 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14695 | PyObject *resultobj; |
14696 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14697 | bool result; | |
14698 | PyObject * obj0 = 0 ; | |
14699 | char *kwnames[] = { | |
14700 | (char *) "self", NULL | |
14701 | }; | |
14702 | ||
14703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
14704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14706 | { | |
14707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14708 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
14709 | ||
14710 | wxPyEndAllowThreads(__tstate); | |
14711 | if (PyErr_Occurred()) SWIG_fail; | |
14712 | } | |
14713 | { | |
14714 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14715 | } | |
14716 | return resultobj; | |
14717 | fail: | |
14718 | return NULL; | |
14719 | } | |
14720 | ||
14721 | ||
c370783e | 14722 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14723 | PyObject *resultobj; |
14724 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14725 | wxPoint result; | |
14726 | PyObject * obj0 = 0 ; | |
14727 | char *kwnames[] = { | |
14728 | (char *) "self", NULL | |
14729 | }; | |
14730 | ||
14731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14734 | { | |
14735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14736 | result = (arg1)->GetPosition(); | |
14737 | ||
14738 | wxPyEndAllowThreads(__tstate); | |
14739 | if (PyErr_Occurred()) SWIG_fail; | |
14740 | } | |
14741 | { | |
14742 | wxPoint * resultptr; | |
14743 | resultptr = new wxPoint((wxPoint &) result); | |
14744 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14745 | } | |
14746 | return resultobj; | |
14747 | fail: | |
14748 | return NULL; | |
14749 | } | |
14750 | ||
14751 | ||
c370783e | 14752 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14753 | PyObject *resultobj; |
14754 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14755 | long *arg2 = (long *) 0 ; | |
14756 | long *arg3 = (long *) 0 ; | |
14757 | long temp2 ; | |
c370783e | 14758 | int res2 = 0 ; |
d55e5bfc | 14759 | long temp3 ; |
c370783e | 14760 | int res3 = 0 ; |
d55e5bfc RD |
14761 | PyObject * obj0 = 0 ; |
14762 | char *kwnames[] = { | |
14763 | (char *) "self", NULL | |
14764 | }; | |
14765 | ||
c370783e RD |
14766 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
14767 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
14768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; |
14769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14771 | { | |
14772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14773 | (arg1)->GetPosition(arg2,arg3); | |
14774 | ||
14775 | wxPyEndAllowThreads(__tstate); | |
14776 | if (PyErr_Occurred()) SWIG_fail; | |
14777 | } | |
14778 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
14779 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
14780 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
14781 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
14782 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
14783 | return resultobj; |
14784 | fail: | |
14785 | return NULL; | |
14786 | } | |
14787 | ||
14788 | ||
c370783e | 14789 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14790 | PyObject *resultobj; |
14791 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14792 | wxDC *arg2 = 0 ; | |
14793 | wxPoint result; | |
14794 | PyObject * obj0 = 0 ; | |
14795 | PyObject * obj1 = 0 ; | |
14796 | char *kwnames[] = { | |
14797 | (char *) "self",(char *) "dc", NULL | |
14798 | }; | |
14799 | ||
14800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
14801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14803 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
14804 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
14805 | SWIG_fail; | |
14806 | if (arg2 == NULL) { | |
14807 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
14808 | SWIG_fail; | |
14809 | } | |
14810 | { | |
14811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14812 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
14813 | ||
14814 | wxPyEndAllowThreads(__tstate); | |
14815 | if (PyErr_Occurred()) SWIG_fail; | |
14816 | } | |
14817 | { | |
14818 | wxPoint * resultptr; | |
14819 | resultptr = new wxPoint((wxPoint &) result); | |
14820 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14821 | } | |
14822 | return resultobj; | |
14823 | fail: | |
14824 | return NULL; | |
14825 | } | |
14826 | ||
14827 | ||
c370783e | 14828 | static PyObject *_wrap_MouseEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14829 | PyObject *resultobj; |
14830 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14831 | int result; | |
14832 | PyObject * obj0 = 0 ; | |
14833 | char *kwnames[] = { | |
14834 | (char *) "self", NULL | |
14835 | }; | |
14836 | ||
14837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
14838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14840 | { | |
14841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14842 | result = (int)((wxMouseEvent const *)arg1)->GetX(); | |
14843 | ||
14844 | wxPyEndAllowThreads(__tstate); | |
14845 | if (PyErr_Occurred()) SWIG_fail; | |
14846 | } | |
c370783e | 14847 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14848 | return resultobj; |
14849 | fail: | |
14850 | return NULL; | |
14851 | } | |
14852 | ||
14853 | ||
c370783e | 14854 | static PyObject *_wrap_MouseEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14855 | PyObject *resultobj; |
14856 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14857 | int result; | |
14858 | PyObject * obj0 = 0 ; | |
14859 | char *kwnames[] = { | |
14860 | (char *) "self", NULL | |
14861 | }; | |
14862 | ||
14863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
14864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14866 | { | |
14867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14868 | result = (int)((wxMouseEvent const *)arg1)->GetY(); | |
14869 | ||
14870 | wxPyEndAllowThreads(__tstate); | |
14871 | if (PyErr_Occurred()) SWIG_fail; | |
14872 | } | |
c370783e | 14873 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14874 | return resultobj; |
14875 | fail: | |
14876 | return NULL; | |
14877 | } | |
14878 | ||
14879 | ||
c370783e | 14880 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14881 | PyObject *resultobj; |
14882 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14883 | int result; | |
14884 | PyObject * obj0 = 0 ; | |
14885 | char *kwnames[] = { | |
14886 | (char *) "self", NULL | |
14887 | }; | |
14888 | ||
14889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
14890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14892 | { | |
14893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14894 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
14895 | ||
14896 | wxPyEndAllowThreads(__tstate); | |
14897 | if (PyErr_Occurred()) SWIG_fail; | |
14898 | } | |
c370783e | 14899 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14900 | return resultobj; |
14901 | fail: | |
14902 | return NULL; | |
14903 | } | |
14904 | ||
14905 | ||
c370783e | 14906 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14907 | PyObject *resultobj; |
14908 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14909 | int result; | |
14910 | PyObject * obj0 = 0 ; | |
14911 | char *kwnames[] = { | |
14912 | (char *) "self", NULL | |
14913 | }; | |
14914 | ||
14915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
14916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14918 | { | |
14919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14920 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
14921 | ||
14922 | wxPyEndAllowThreads(__tstate); | |
14923 | if (PyErr_Occurred()) SWIG_fail; | |
14924 | } | |
c370783e | 14925 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14926 | return resultobj; |
14927 | fail: | |
14928 | return NULL; | |
14929 | } | |
14930 | ||
14931 | ||
c370783e | 14932 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14933 | PyObject *resultobj; |
14934 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14935 | int result; | |
14936 | PyObject * obj0 = 0 ; | |
14937 | char *kwnames[] = { | |
14938 | (char *) "self", NULL | |
14939 | }; | |
14940 | ||
14941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
14942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14944 | { | |
14945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14946 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
14947 | ||
14948 | wxPyEndAllowThreads(__tstate); | |
14949 | if (PyErr_Occurred()) SWIG_fail; | |
14950 | } | |
c370783e | 14951 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14952 | return resultobj; |
14953 | fail: | |
14954 | return NULL; | |
14955 | } | |
14956 | ||
14957 | ||
c370783e | 14958 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14959 | PyObject *resultobj; |
14960 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14961 | bool result; | |
14962 | PyObject * obj0 = 0 ; | |
14963 | char *kwnames[] = { | |
14964 | (char *) "self", NULL | |
14965 | }; | |
14966 | ||
14967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
14968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14970 | { | |
14971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14972 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
14973 | ||
14974 | wxPyEndAllowThreads(__tstate); | |
14975 | if (PyErr_Occurred()) SWIG_fail; | |
14976 | } | |
14977 | { | |
14978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14979 | } | |
14980 | return resultobj; | |
14981 | fail: | |
14982 | return NULL; | |
14983 | } | |
14984 | ||
14985 | ||
c370783e | 14986 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14987 | PyObject *resultobj; |
14988 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14989 | int arg2 ; | |
14990 | PyObject * obj0 = 0 ; | |
14991 | PyObject * obj1 = 0 ; | |
14992 | char *kwnames[] = { | |
14993 | (char *) "self",(char *) "m_x", NULL | |
14994 | }; | |
14995 | ||
14996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
14997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14999 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15000 | if (PyErr_Occurred()) SWIG_fail; |
15001 | if (arg1) (arg1)->m_x = arg2; | |
15002 | ||
15003 | Py_INCREF(Py_None); resultobj = Py_None; | |
15004 | return resultobj; | |
15005 | fail: | |
15006 | return NULL; | |
15007 | } | |
15008 | ||
15009 | ||
c370783e | 15010 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15011 | PyObject *resultobj; |
15012 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15013 | int result; | |
15014 | PyObject * obj0 = 0 ; | |
15015 | char *kwnames[] = { | |
15016 | (char *) "self", NULL | |
15017 | }; | |
15018 | ||
15019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15022 | result = (int) ((arg1)->m_x); | |
15023 | ||
c370783e | 15024 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15025 | return resultobj; |
15026 | fail: | |
15027 | return NULL; | |
15028 | } | |
15029 | ||
15030 | ||
c370783e | 15031 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15032 | PyObject *resultobj; |
15033 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15034 | int arg2 ; | |
15035 | PyObject * obj0 = 0 ; | |
15036 | PyObject * obj1 = 0 ; | |
15037 | char *kwnames[] = { | |
15038 | (char *) "self",(char *) "m_y", NULL | |
15039 | }; | |
15040 | ||
15041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
15042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15044 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15045 | if (PyErr_Occurred()) SWIG_fail; |
15046 | if (arg1) (arg1)->m_y = arg2; | |
15047 | ||
15048 | Py_INCREF(Py_None); resultobj = Py_None; | |
15049 | return resultobj; | |
15050 | fail: | |
15051 | return NULL; | |
15052 | } | |
15053 | ||
15054 | ||
c370783e | 15055 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15056 | PyObject *resultobj; |
15057 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15058 | int result; | |
15059 | PyObject * obj0 = 0 ; | |
15060 | char *kwnames[] = { | |
15061 | (char *) "self", NULL | |
15062 | }; | |
15063 | ||
15064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
15065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15067 | result = (int) ((arg1)->m_y); | |
15068 | ||
c370783e | 15069 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15070 | return resultobj; |
15071 | fail: | |
15072 | return NULL; | |
15073 | } | |
15074 | ||
15075 | ||
c370783e | 15076 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15077 | PyObject *resultobj; |
15078 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15079 | bool arg2 ; | |
15080 | PyObject * obj0 = 0 ; | |
15081 | PyObject * obj1 = 0 ; | |
15082 | char *kwnames[] = { | |
15083 | (char *) "self",(char *) "m_leftDown", NULL | |
15084 | }; | |
15085 | ||
15086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15089 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15090 | if (PyErr_Occurred()) SWIG_fail; |
15091 | if (arg1) (arg1)->m_leftDown = arg2; | |
15092 | ||
15093 | Py_INCREF(Py_None); resultobj = Py_None; | |
15094 | return resultobj; | |
15095 | fail: | |
15096 | return NULL; | |
15097 | } | |
15098 | ||
15099 | ||
c370783e | 15100 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15101 | PyObject *resultobj; |
15102 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15103 | bool result; | |
15104 | PyObject * obj0 = 0 ; | |
15105 | char *kwnames[] = { | |
15106 | (char *) "self", NULL | |
15107 | }; | |
15108 | ||
15109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
15110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15112 | result = (bool) ((arg1)->m_leftDown); | |
15113 | ||
15114 | { | |
15115 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15116 | } | |
15117 | return resultobj; | |
15118 | fail: | |
15119 | return NULL; | |
15120 | } | |
15121 | ||
15122 | ||
c370783e | 15123 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15124 | PyObject *resultobj; |
15125 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15126 | bool arg2 ; | |
15127 | PyObject * obj0 = 0 ; | |
15128 | PyObject * obj1 = 0 ; | |
15129 | char *kwnames[] = { | |
15130 | (char *) "self",(char *) "m_middleDown", NULL | |
15131 | }; | |
15132 | ||
15133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15136 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15137 | if (PyErr_Occurred()) SWIG_fail; |
15138 | if (arg1) (arg1)->m_middleDown = arg2; | |
15139 | ||
15140 | Py_INCREF(Py_None); resultobj = Py_None; | |
15141 | return resultobj; | |
15142 | fail: | |
15143 | return NULL; | |
15144 | } | |
15145 | ||
15146 | ||
c370783e | 15147 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15148 | PyObject *resultobj; |
15149 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15150 | bool result; | |
15151 | PyObject * obj0 = 0 ; | |
15152 | char *kwnames[] = { | |
15153 | (char *) "self", NULL | |
15154 | }; | |
15155 | ||
15156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
15157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15159 | result = (bool) ((arg1)->m_middleDown); | |
15160 | ||
15161 | { | |
15162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15163 | } | |
15164 | return resultobj; | |
15165 | fail: | |
15166 | return NULL; | |
15167 | } | |
15168 | ||
15169 | ||
c370783e | 15170 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15171 | PyObject *resultobj; |
15172 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15173 | bool arg2 ; | |
15174 | PyObject * obj0 = 0 ; | |
15175 | PyObject * obj1 = 0 ; | |
15176 | char *kwnames[] = { | |
15177 | (char *) "self",(char *) "m_rightDown", NULL | |
15178 | }; | |
15179 | ||
15180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15183 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15184 | if (PyErr_Occurred()) SWIG_fail; |
15185 | if (arg1) (arg1)->m_rightDown = arg2; | |
15186 | ||
15187 | Py_INCREF(Py_None); resultobj = Py_None; | |
15188 | return resultobj; | |
15189 | fail: | |
15190 | return NULL; | |
15191 | } | |
15192 | ||
15193 | ||
c370783e | 15194 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15195 | PyObject *resultobj; |
15196 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15197 | bool result; | |
15198 | PyObject * obj0 = 0 ; | |
15199 | char *kwnames[] = { | |
15200 | (char *) "self", NULL | |
15201 | }; | |
15202 | ||
15203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
15204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15206 | result = (bool) ((arg1)->m_rightDown); | |
15207 | ||
15208 | { | |
15209 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15210 | } | |
15211 | return resultobj; | |
15212 | fail: | |
15213 | return NULL; | |
15214 | } | |
15215 | ||
15216 | ||
c370783e | 15217 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15218 | PyObject *resultobj; |
15219 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15220 | bool arg2 ; | |
15221 | PyObject * obj0 = 0 ; | |
15222 | PyObject * obj1 = 0 ; | |
15223 | char *kwnames[] = { | |
15224 | (char *) "self",(char *) "m_controlDown", NULL | |
15225 | }; | |
15226 | ||
15227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15230 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15231 | if (PyErr_Occurred()) SWIG_fail; |
15232 | if (arg1) (arg1)->m_controlDown = arg2; | |
15233 | ||
15234 | Py_INCREF(Py_None); resultobj = Py_None; | |
15235 | return resultobj; | |
15236 | fail: | |
15237 | return NULL; | |
15238 | } | |
15239 | ||
15240 | ||
c370783e | 15241 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15242 | PyObject *resultobj; |
15243 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15244 | bool result; | |
15245 | PyObject * obj0 = 0 ; | |
15246 | char *kwnames[] = { | |
15247 | (char *) "self", NULL | |
15248 | }; | |
15249 | ||
15250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15253 | result = (bool) ((arg1)->m_controlDown); | |
15254 | ||
15255 | { | |
15256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15257 | } | |
15258 | return resultobj; | |
15259 | fail: | |
15260 | return NULL; | |
15261 | } | |
15262 | ||
15263 | ||
c370783e | 15264 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15265 | PyObject *resultobj; |
15266 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15267 | bool arg2 ; | |
15268 | PyObject * obj0 = 0 ; | |
15269 | PyObject * obj1 = 0 ; | |
15270 | char *kwnames[] = { | |
15271 | (char *) "self",(char *) "m_shiftDown", NULL | |
15272 | }; | |
15273 | ||
15274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15277 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15278 | if (PyErr_Occurred()) SWIG_fail; |
15279 | if (arg1) (arg1)->m_shiftDown = arg2; | |
15280 | ||
15281 | Py_INCREF(Py_None); resultobj = Py_None; | |
15282 | return resultobj; | |
15283 | fail: | |
15284 | return NULL; | |
15285 | } | |
15286 | ||
15287 | ||
c370783e | 15288 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15289 | PyObject *resultobj; |
15290 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15291 | bool result; | |
15292 | PyObject * obj0 = 0 ; | |
15293 | char *kwnames[] = { | |
15294 | (char *) "self", NULL | |
15295 | }; | |
15296 | ||
15297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15300 | result = (bool) ((arg1)->m_shiftDown); | |
15301 | ||
15302 | { | |
15303 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15304 | } | |
15305 | return resultobj; | |
15306 | fail: | |
15307 | return NULL; | |
15308 | } | |
15309 | ||
15310 | ||
c370783e | 15311 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15312 | PyObject *resultobj; |
15313 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15314 | bool arg2 ; | |
15315 | PyObject * obj0 = 0 ; | |
15316 | PyObject * obj1 = 0 ; | |
15317 | char *kwnames[] = { | |
15318 | (char *) "self",(char *) "m_altDown", NULL | |
15319 | }; | |
15320 | ||
15321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15324 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15325 | if (PyErr_Occurred()) SWIG_fail; |
15326 | if (arg1) (arg1)->m_altDown = arg2; | |
15327 | ||
15328 | Py_INCREF(Py_None); resultobj = Py_None; | |
15329 | return resultobj; | |
15330 | fail: | |
15331 | return NULL; | |
15332 | } | |
15333 | ||
15334 | ||
c370783e | 15335 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15336 | PyObject *resultobj; |
15337 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15338 | bool result; | |
15339 | PyObject * obj0 = 0 ; | |
15340 | char *kwnames[] = { | |
15341 | (char *) "self", NULL | |
15342 | }; | |
15343 | ||
15344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15347 | result = (bool) ((arg1)->m_altDown); | |
15348 | ||
15349 | { | |
15350 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15351 | } | |
15352 | return resultobj; | |
15353 | fail: | |
15354 | return NULL; | |
15355 | } | |
15356 | ||
15357 | ||
c370783e | 15358 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15359 | PyObject *resultobj; |
15360 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15361 | bool arg2 ; | |
15362 | PyObject * obj0 = 0 ; | |
15363 | PyObject * obj1 = 0 ; | |
15364 | char *kwnames[] = { | |
15365 | (char *) "self",(char *) "m_metaDown", NULL | |
15366 | }; | |
15367 | ||
15368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15371 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15372 | if (PyErr_Occurred()) SWIG_fail; |
15373 | if (arg1) (arg1)->m_metaDown = arg2; | |
15374 | ||
15375 | Py_INCREF(Py_None); resultobj = Py_None; | |
15376 | return resultobj; | |
15377 | fail: | |
15378 | return NULL; | |
15379 | } | |
15380 | ||
15381 | ||
c370783e | 15382 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15383 | PyObject *resultobj; |
15384 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15385 | bool result; | |
15386 | PyObject * obj0 = 0 ; | |
15387 | char *kwnames[] = { | |
15388 | (char *) "self", NULL | |
15389 | }; | |
15390 | ||
15391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
15392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15394 | result = (bool) ((arg1)->m_metaDown); | |
15395 | ||
15396 | { | |
15397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15398 | } | |
15399 | return resultobj; | |
15400 | fail: | |
15401 | return NULL; | |
15402 | } | |
15403 | ||
15404 | ||
c370783e | 15405 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15406 | PyObject *resultobj; |
15407 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15408 | int arg2 ; | |
15409 | PyObject * obj0 = 0 ; | |
15410 | PyObject * obj1 = 0 ; | |
15411 | char *kwnames[] = { | |
15412 | (char *) "self",(char *) "m_wheelRotation", NULL | |
15413 | }; | |
15414 | ||
15415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; | |
15416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15418 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15419 | if (PyErr_Occurred()) SWIG_fail; |
15420 | if (arg1) (arg1)->m_wheelRotation = arg2; | |
15421 | ||
15422 | Py_INCREF(Py_None); resultobj = Py_None; | |
15423 | return resultobj; | |
15424 | fail: | |
15425 | return NULL; | |
15426 | } | |
15427 | ||
15428 | ||
c370783e | 15429 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15430 | PyObject *resultobj; |
15431 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15432 | int result; | |
15433 | PyObject * obj0 = 0 ; | |
15434 | char *kwnames[] = { | |
15435 | (char *) "self", NULL | |
15436 | }; | |
15437 | ||
15438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
15439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15441 | result = (int) ((arg1)->m_wheelRotation); | |
15442 | ||
c370783e | 15443 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15444 | return resultobj; |
15445 | fail: | |
15446 | return NULL; | |
15447 | } | |
15448 | ||
15449 | ||
c370783e | 15450 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15451 | PyObject *resultobj; |
15452 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15453 | int arg2 ; | |
15454 | PyObject * obj0 = 0 ; | |
15455 | PyObject * obj1 = 0 ; | |
15456 | char *kwnames[] = { | |
15457 | (char *) "self",(char *) "m_wheelDelta", NULL | |
15458 | }; | |
15459 | ||
15460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; | |
15461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15463 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15464 | if (PyErr_Occurred()) SWIG_fail; |
15465 | if (arg1) (arg1)->m_wheelDelta = arg2; | |
15466 | ||
15467 | Py_INCREF(Py_None); resultobj = Py_None; | |
15468 | return resultobj; | |
15469 | fail: | |
15470 | return NULL; | |
15471 | } | |
15472 | ||
15473 | ||
c370783e | 15474 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15475 | PyObject *resultobj; |
15476 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15477 | int result; | |
15478 | PyObject * obj0 = 0 ; | |
15479 | char *kwnames[] = { | |
15480 | (char *) "self", NULL | |
15481 | }; | |
15482 | ||
15483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
15484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15486 | result = (int) ((arg1)->m_wheelDelta); | |
15487 | ||
c370783e | 15488 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15489 | return resultobj; |
15490 | fail: | |
15491 | return NULL; | |
15492 | } | |
15493 | ||
15494 | ||
c370783e | 15495 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15496 | PyObject *resultobj; |
15497 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15498 | int arg2 ; | |
15499 | PyObject * obj0 = 0 ; | |
15500 | PyObject * obj1 = 0 ; | |
15501 | char *kwnames[] = { | |
15502 | (char *) "self",(char *) "m_linesPerAction", NULL | |
15503 | }; | |
15504 | ||
15505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; | |
15506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15508 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15509 | if (PyErr_Occurred()) SWIG_fail; |
15510 | if (arg1) (arg1)->m_linesPerAction = arg2; | |
15511 | ||
15512 | Py_INCREF(Py_None); resultobj = Py_None; | |
15513 | return resultobj; | |
15514 | fail: | |
15515 | return NULL; | |
15516 | } | |
15517 | ||
15518 | ||
c370783e | 15519 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15520 | PyObject *resultobj; |
15521 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15522 | int result; | |
15523 | PyObject * obj0 = 0 ; | |
15524 | char *kwnames[] = { | |
15525 | (char *) "self", NULL | |
15526 | }; | |
15527 | ||
15528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
15529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15531 | result = (int) ((arg1)->m_linesPerAction); | |
15532 | ||
c370783e | 15533 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15534 | return resultobj; |
15535 | fail: | |
15536 | return NULL; | |
15537 | } | |
15538 | ||
15539 | ||
c370783e | 15540 | static PyObject * MouseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15541 | PyObject *obj; |
15542 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15543 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
15544 | Py_INCREF(obj); | |
15545 | return Py_BuildValue((char *)""); | |
15546 | } | |
c370783e | 15547 | static PyObject *_wrap_new_SetCursorEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15548 | PyObject *resultobj; |
15549 | int arg1 = (int) 0 ; | |
15550 | int arg2 = (int) 0 ; | |
15551 | wxSetCursorEvent *result; | |
15552 | PyObject * obj0 = 0 ; | |
15553 | PyObject * obj1 = 0 ; | |
15554 | char *kwnames[] = { | |
15555 | (char *) "x",(char *) "y", NULL | |
15556 | }; | |
15557 | ||
15558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; | |
15559 | if (obj0) { | |
c370783e | 15560 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
15561 | if (PyErr_Occurred()) SWIG_fail; |
15562 | } | |
15563 | if (obj1) { | |
c370783e | 15564 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15565 | if (PyErr_Occurred()) SWIG_fail; |
15566 | } | |
15567 | { | |
15568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15569 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
15570 | ||
15571 | wxPyEndAllowThreads(__tstate); | |
15572 | if (PyErr_Occurred()) SWIG_fail; | |
15573 | } | |
15574 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); | |
15575 | return resultobj; | |
15576 | fail: | |
15577 | return NULL; | |
15578 | } | |
15579 | ||
15580 | ||
c370783e | 15581 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15582 | PyObject *resultobj; |
15583 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15584 | int result; | |
15585 | PyObject * obj0 = 0 ; | |
15586 | char *kwnames[] = { | |
15587 | (char *) "self", NULL | |
15588 | }; | |
15589 | ||
15590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
15591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15593 | { | |
15594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15595 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); | |
15596 | ||
15597 | wxPyEndAllowThreads(__tstate); | |
15598 | if (PyErr_Occurred()) SWIG_fail; | |
15599 | } | |
c370783e | 15600 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15601 | return resultobj; |
15602 | fail: | |
15603 | return NULL; | |
15604 | } | |
15605 | ||
15606 | ||
c370783e | 15607 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15608 | PyObject *resultobj; |
15609 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15610 | int result; | |
15611 | PyObject * obj0 = 0 ; | |
15612 | char *kwnames[] = { | |
15613 | (char *) "self", NULL | |
15614 | }; | |
15615 | ||
15616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
15617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15619 | { | |
15620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15621 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); | |
15622 | ||
15623 | wxPyEndAllowThreads(__tstate); | |
15624 | if (PyErr_Occurred()) SWIG_fail; | |
15625 | } | |
c370783e | 15626 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15627 | return resultobj; |
15628 | fail: | |
15629 | return NULL; | |
15630 | } | |
15631 | ||
15632 | ||
c370783e | 15633 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15634 | PyObject *resultobj; |
15635 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15636 | wxCursor *arg2 = 0 ; | |
15637 | PyObject * obj0 = 0 ; | |
15638 | PyObject * obj1 = 0 ; | |
15639 | char *kwnames[] = { | |
15640 | (char *) "self",(char *) "cursor", NULL | |
15641 | }; | |
15642 | ||
15643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
15644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15646 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
15647 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15648 | SWIG_fail; | |
15649 | if (arg2 == NULL) { | |
15650 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15651 | SWIG_fail; | |
15652 | } | |
15653 | { | |
15654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15655 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
15656 | ||
15657 | wxPyEndAllowThreads(__tstate); | |
15658 | if (PyErr_Occurred()) SWIG_fail; | |
15659 | } | |
15660 | Py_INCREF(Py_None); resultobj = Py_None; | |
15661 | return resultobj; | |
15662 | fail: | |
15663 | return NULL; | |
15664 | } | |
15665 | ||
15666 | ||
c370783e | 15667 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15668 | PyObject *resultobj; |
15669 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15670 | wxCursor *result; | |
15671 | PyObject * obj0 = 0 ; | |
15672 | char *kwnames[] = { | |
15673 | (char *) "self", NULL | |
15674 | }; | |
15675 | ||
15676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
15677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15679 | { | |
15680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15681 | { | |
15682 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
15683 | result = (wxCursor *) &_result_ref; | |
15684 | } | |
15685 | ||
15686 | wxPyEndAllowThreads(__tstate); | |
15687 | if (PyErr_Occurred()) SWIG_fail; | |
15688 | } | |
15689 | { | |
15690 | wxCursor* resultptr = new wxCursor(*result); | |
15691 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
15692 | } | |
15693 | return resultobj; | |
15694 | fail: | |
15695 | return NULL; | |
15696 | } | |
15697 | ||
15698 | ||
c370783e | 15699 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15700 | PyObject *resultobj; |
15701 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15702 | bool result; | |
15703 | PyObject * obj0 = 0 ; | |
15704 | char *kwnames[] = { | |
15705 | (char *) "self", NULL | |
15706 | }; | |
15707 | ||
15708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
15709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15711 | { | |
15712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15713 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
15714 | ||
15715 | wxPyEndAllowThreads(__tstate); | |
15716 | if (PyErr_Occurred()) SWIG_fail; | |
15717 | } | |
15718 | { | |
15719 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15720 | } | |
15721 | return resultobj; | |
15722 | fail: | |
15723 | return NULL; | |
15724 | } | |
15725 | ||
15726 | ||
c370783e | 15727 | static PyObject * SetCursorEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15728 | PyObject *obj; |
15729 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15730 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
15731 | Py_INCREF(obj); | |
15732 | return Py_BuildValue((char *)""); | |
15733 | } | |
c370783e | 15734 | static PyObject *_wrap_new_KeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15735 | PyObject *resultobj; |
15736 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15737 | wxKeyEvent *result; | |
15738 | PyObject * obj0 = 0 ; | |
15739 | char *kwnames[] = { | |
15740 | (char *) "keyType", NULL | |
15741 | }; | |
15742 | ||
15743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; | |
15744 | if (obj0) { | |
c370783e | 15745 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
15746 | if (PyErr_Occurred()) SWIG_fail; |
15747 | } | |
15748 | { | |
15749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15750 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
15751 | ||
15752 | wxPyEndAllowThreads(__tstate); | |
15753 | if (PyErr_Occurred()) SWIG_fail; | |
15754 | } | |
15755 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); | |
15756 | return resultobj; | |
15757 | fail: | |
15758 | return NULL; | |
15759 | } | |
15760 | ||
15761 | ||
c370783e | 15762 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15763 | PyObject *resultobj; |
15764 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15765 | bool result; | |
15766 | PyObject * obj0 = 0 ; | |
15767 | char *kwnames[] = { | |
15768 | (char *) "self", NULL | |
15769 | }; | |
15770 | ||
15771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
15772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15774 | { | |
15775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15776 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
15777 | ||
15778 | wxPyEndAllowThreads(__tstate); | |
15779 | if (PyErr_Occurred()) SWIG_fail; | |
15780 | } | |
15781 | { | |
15782 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15783 | } | |
15784 | return resultobj; | |
15785 | fail: | |
15786 | return NULL; | |
15787 | } | |
15788 | ||
15789 | ||
c370783e | 15790 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15791 | PyObject *resultobj; |
15792 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15793 | bool result; | |
15794 | PyObject * obj0 = 0 ; | |
15795 | char *kwnames[] = { | |
15796 | (char *) "self", NULL | |
15797 | }; | |
15798 | ||
15799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
15800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15802 | { | |
15803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15804 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
15805 | ||
15806 | wxPyEndAllowThreads(__tstate); | |
15807 | if (PyErr_Occurred()) SWIG_fail; | |
15808 | } | |
15809 | { | |
15810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15811 | } | |
15812 | return resultobj; | |
15813 | fail: | |
15814 | return NULL; | |
15815 | } | |
15816 | ||
15817 | ||
c370783e | 15818 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15819 | PyObject *resultobj; |
15820 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15821 | bool result; | |
15822 | PyObject * obj0 = 0 ; | |
15823 | char *kwnames[] = { | |
15824 | (char *) "self", NULL | |
15825 | }; | |
15826 | ||
15827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
15828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15830 | { | |
15831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15832 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
15833 | ||
15834 | wxPyEndAllowThreads(__tstate); | |
15835 | if (PyErr_Occurred()) SWIG_fail; | |
15836 | } | |
15837 | { | |
15838 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15839 | } | |
15840 | return resultobj; | |
15841 | fail: | |
15842 | return NULL; | |
15843 | } | |
15844 | ||
15845 | ||
c370783e | 15846 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15847 | PyObject *resultobj; |
15848 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15849 | bool result; | |
15850 | PyObject * obj0 = 0 ; | |
15851 | char *kwnames[] = { | |
15852 | (char *) "self", NULL | |
15853 | }; | |
15854 | ||
15855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
15856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15858 | { | |
15859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15860 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
15861 | ||
15862 | wxPyEndAllowThreads(__tstate); | |
15863 | if (PyErr_Occurred()) SWIG_fail; | |
15864 | } | |
15865 | { | |
15866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15867 | } | |
15868 | return resultobj; | |
15869 | fail: | |
15870 | return NULL; | |
15871 | } | |
15872 | ||
15873 | ||
c370783e | 15874 | static PyObject *_wrap_KeyEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) { |
412d302d RD |
15875 | PyObject *resultobj; |
15876 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15877 | bool result; | |
15878 | PyObject * obj0 = 0 ; | |
15879 | char *kwnames[] = { | |
15880 | (char *) "self", NULL | |
15881 | }; | |
15882 | ||
15883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_CmdDown",kwnames,&obj0)) goto fail; | |
15884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15886 | { | |
15887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15888 | result = (bool)((wxKeyEvent const *)arg1)->CmdDown(); | |
15889 | ||
15890 | wxPyEndAllowThreads(__tstate); | |
15891 | if (PyErr_Occurred()) SWIG_fail; | |
15892 | } | |
15893 | { | |
15894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15895 | } | |
15896 | return resultobj; | |
15897 | fail: | |
15898 | return NULL; | |
15899 | } | |
15900 | ||
15901 | ||
c370783e | 15902 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15903 | PyObject *resultobj; |
15904 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15905 | bool result; | |
15906 | PyObject * obj0 = 0 ; | |
15907 | char *kwnames[] = { | |
15908 | (char *) "self", NULL | |
15909 | }; | |
15910 | ||
15911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
15912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15914 | { | |
15915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15916 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
15917 | ||
15918 | wxPyEndAllowThreads(__tstate); | |
15919 | if (PyErr_Occurred()) SWIG_fail; | |
15920 | } | |
15921 | { | |
15922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15923 | } | |
15924 | return resultobj; | |
15925 | fail: | |
15926 | return NULL; | |
15927 | } | |
15928 | ||
15929 | ||
c370783e | 15930 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15931 | PyObject *resultobj; |
15932 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15933 | int result; | |
15934 | PyObject * obj0 = 0 ; | |
15935 | char *kwnames[] = { | |
15936 | (char *) "self", NULL | |
15937 | }; | |
15938 | ||
15939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15942 | { | |
15943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15944 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
15945 | ||
15946 | wxPyEndAllowThreads(__tstate); | |
15947 | if (PyErr_Occurred()) SWIG_fail; | |
15948 | } | |
c370783e | 15949 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15950 | return resultobj; |
15951 | fail: | |
15952 | return NULL; | |
15953 | } | |
15954 | ||
15955 | ||
c370783e | 15956 | static PyObject *_wrap_KeyEvent_GetUnicodeKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15957 | PyObject *resultobj; |
15958 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15959 | int result; | |
15960 | PyObject * obj0 = 0 ; | |
15961 | char *kwnames[] = { | |
15962 | (char *) "self", NULL | |
15963 | }; | |
15964 | ||
bb4524c4 | 15965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUnicodeKey",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
15966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
15967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15968 | { | |
15969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bb4524c4 | 15970 | result = (int)wxKeyEvent_GetUnicodeKey(arg1); |
d55e5bfc RD |
15971 | |
15972 | wxPyEndAllowThreads(__tstate); | |
15973 | if (PyErr_Occurred()) SWIG_fail; | |
15974 | } | |
c370783e | 15975 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15976 | return resultobj; |
15977 | fail: | |
15978 | return NULL; | |
15979 | } | |
15980 | ||
15981 | ||
c370783e | 15982 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15983 | PyObject *resultobj; |
15984 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
15985 | unsigned int result; | |
15986 | PyObject * obj0 = 0 ; | |
15987 | char *kwnames[] = { | |
15988 | (char *) "self", NULL | |
15989 | }; | |
15990 | ||
15991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
15992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
15993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15994 | { | |
15995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15996 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); | |
15997 | ||
15998 | wxPyEndAllowThreads(__tstate); | |
15999 | if (PyErr_Occurred()) SWIG_fail; | |
16000 | } | |
c370783e | 16001 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16002 | return resultobj; |
16003 | fail: | |
16004 | return NULL; | |
16005 | } | |
16006 | ||
16007 | ||
c370783e | 16008 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16009 | PyObject *resultobj; |
16010 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16011 | unsigned int result; | |
16012 | PyObject * obj0 = 0 ; | |
16013 | char *kwnames[] = { | |
16014 | (char *) "self", NULL | |
16015 | }; | |
16016 | ||
16017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
16018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16020 | { | |
16021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16022 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); | |
16023 | ||
16024 | wxPyEndAllowThreads(__tstate); | |
16025 | if (PyErr_Occurred()) SWIG_fail; | |
16026 | } | |
c370783e | 16027 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16028 | return resultobj; |
16029 | fail: | |
16030 | return NULL; | |
16031 | } | |
16032 | ||
16033 | ||
c370783e | 16034 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16035 | PyObject *resultobj; |
16036 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16037 | wxPoint result; | |
16038 | PyObject * obj0 = 0 ; | |
16039 | char *kwnames[] = { | |
16040 | (char *) "self", NULL | |
16041 | }; | |
16042 | ||
16043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
16044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16046 | { | |
16047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16048 | result = (arg1)->GetPosition(); | |
16049 | ||
16050 | wxPyEndAllowThreads(__tstate); | |
16051 | if (PyErr_Occurred()) SWIG_fail; | |
16052 | } | |
16053 | { | |
16054 | wxPoint * resultptr; | |
16055 | resultptr = new wxPoint((wxPoint &) result); | |
16056 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
16057 | } | |
16058 | return resultobj; | |
16059 | fail: | |
16060 | return NULL; | |
16061 | } | |
16062 | ||
16063 | ||
c370783e | 16064 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16065 | PyObject *resultobj; |
16066 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16067 | long *arg2 = (long *) 0 ; | |
16068 | long *arg3 = (long *) 0 ; | |
16069 | long temp2 ; | |
c370783e | 16070 | int res2 = 0 ; |
d55e5bfc | 16071 | long temp3 ; |
c370783e | 16072 | int res3 = 0 ; |
d55e5bfc RD |
16073 | PyObject * obj0 = 0 ; |
16074 | char *kwnames[] = { | |
16075 | (char *) "self", NULL | |
16076 | }; | |
16077 | ||
c370783e RD |
16078 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
16079 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
16080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; |
16081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16083 | { | |
16084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16085 | (arg1)->GetPosition(arg2,arg3); | |
16086 | ||
16087 | wxPyEndAllowThreads(__tstate); | |
16088 | if (PyErr_Occurred()) SWIG_fail; | |
16089 | } | |
16090 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
16091 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
16092 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
16093 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
16094 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
16095 | return resultobj; |
16096 | fail: | |
16097 | return NULL; | |
16098 | } | |
16099 | ||
16100 | ||
c370783e | 16101 | static PyObject *_wrap_KeyEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16102 | PyObject *resultobj; |
16103 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16104 | int result; | |
16105 | PyObject * obj0 = 0 ; | |
16106 | char *kwnames[] = { | |
16107 | (char *) "self", NULL | |
16108 | }; | |
16109 | ||
16110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
16111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16113 | { | |
16114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16115 | result = (int)((wxKeyEvent const *)arg1)->GetX(); | |
16116 | ||
16117 | wxPyEndAllowThreads(__tstate); | |
16118 | if (PyErr_Occurred()) SWIG_fail; | |
16119 | } | |
c370783e | 16120 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16121 | return resultobj; |
16122 | fail: | |
16123 | return NULL; | |
16124 | } | |
16125 | ||
16126 | ||
c370783e | 16127 | static PyObject *_wrap_KeyEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16128 | PyObject *resultobj; |
16129 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16130 | int result; | |
16131 | PyObject * obj0 = 0 ; | |
16132 | char *kwnames[] = { | |
16133 | (char *) "self", NULL | |
16134 | }; | |
16135 | ||
16136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
16137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16139 | { | |
16140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16141 | result = (int)((wxKeyEvent const *)arg1)->GetY(); | |
16142 | ||
16143 | wxPyEndAllowThreads(__tstate); | |
16144 | if (PyErr_Occurred()) SWIG_fail; | |
16145 | } | |
c370783e | 16146 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16147 | return resultobj; |
16148 | fail: | |
16149 | return NULL; | |
16150 | } | |
16151 | ||
16152 | ||
c370783e | 16153 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16154 | PyObject *resultobj; |
16155 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16156 | int arg2 ; | |
16157 | PyObject * obj0 = 0 ; | |
16158 | PyObject * obj1 = 0 ; | |
16159 | char *kwnames[] = { | |
16160 | (char *) "self",(char *) "m_x", NULL | |
16161 | }; | |
16162 | ||
16163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
16164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16166 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16167 | if (PyErr_Occurred()) SWIG_fail; |
16168 | if (arg1) (arg1)->m_x = arg2; | |
16169 | ||
16170 | Py_INCREF(Py_None); resultobj = Py_None; | |
16171 | return resultobj; | |
16172 | fail: | |
16173 | return NULL; | |
16174 | } | |
16175 | ||
16176 | ||
c370783e | 16177 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16178 | PyObject *resultobj; |
16179 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16180 | int result; | |
16181 | PyObject * obj0 = 0 ; | |
16182 | char *kwnames[] = { | |
16183 | (char *) "self", NULL | |
16184 | }; | |
16185 | ||
16186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
16187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16189 | result = (int) ((arg1)->m_x); | |
16190 | ||
c370783e | 16191 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16192 | return resultobj; |
16193 | fail: | |
16194 | return NULL; | |
16195 | } | |
16196 | ||
16197 | ||
c370783e | 16198 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16199 | PyObject *resultobj; |
16200 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16201 | int arg2 ; | |
16202 | PyObject * obj0 = 0 ; | |
16203 | PyObject * obj1 = 0 ; | |
16204 | char *kwnames[] = { | |
16205 | (char *) "self",(char *) "m_y", NULL | |
16206 | }; | |
16207 | ||
16208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
16209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16211 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16212 | if (PyErr_Occurred()) SWIG_fail; |
16213 | if (arg1) (arg1)->m_y = arg2; | |
16214 | ||
16215 | Py_INCREF(Py_None); resultobj = Py_None; | |
16216 | return resultobj; | |
16217 | fail: | |
16218 | return NULL; | |
16219 | } | |
16220 | ||
16221 | ||
c370783e | 16222 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16223 | PyObject *resultobj; |
16224 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16225 | int result; | |
16226 | PyObject * obj0 = 0 ; | |
16227 | char *kwnames[] = { | |
16228 | (char *) "self", NULL | |
16229 | }; | |
16230 | ||
16231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
16232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16234 | result = (int) ((arg1)->m_y); | |
16235 | ||
c370783e | 16236 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16237 | return resultobj; |
16238 | fail: | |
16239 | return NULL; | |
16240 | } | |
16241 | ||
16242 | ||
c370783e | 16243 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16244 | PyObject *resultobj; |
16245 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16246 | long arg2 ; | |
16247 | PyObject * obj0 = 0 ; | |
16248 | PyObject * obj1 = 0 ; | |
16249 | char *kwnames[] = { | |
16250 | (char *) "self",(char *) "m_keyCode", NULL | |
16251 | }; | |
16252 | ||
16253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16256 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
16257 | if (PyErr_Occurred()) SWIG_fail; |
16258 | if (arg1) (arg1)->m_keyCode = arg2; | |
16259 | ||
16260 | Py_INCREF(Py_None); resultobj = Py_None; | |
16261 | return resultobj; | |
16262 | fail: | |
16263 | return NULL; | |
16264 | } | |
16265 | ||
16266 | ||
c370783e | 16267 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16268 | PyObject *resultobj; |
16269 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16270 | long result; | |
16271 | PyObject * obj0 = 0 ; | |
16272 | char *kwnames[] = { | |
16273 | (char *) "self", NULL | |
16274 | }; | |
16275 | ||
16276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
16277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16279 | result = (long) ((arg1)->m_keyCode); | |
16280 | ||
c370783e | 16281 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
16282 | return resultobj; |
16283 | fail: | |
16284 | return NULL; | |
16285 | } | |
16286 | ||
16287 | ||
c370783e | 16288 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16289 | PyObject *resultobj; |
16290 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16291 | bool arg2 ; | |
16292 | PyObject * obj0 = 0 ; | |
16293 | PyObject * obj1 = 0 ; | |
16294 | char *kwnames[] = { | |
16295 | (char *) "self",(char *) "m_controlDown", NULL | |
16296 | }; | |
16297 | ||
16298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16301 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16302 | if (PyErr_Occurred()) SWIG_fail; |
16303 | if (arg1) (arg1)->m_controlDown = arg2; | |
16304 | ||
16305 | Py_INCREF(Py_None); resultobj = Py_None; | |
16306 | return resultobj; | |
16307 | fail: | |
16308 | return NULL; | |
16309 | } | |
16310 | ||
16311 | ||
c370783e | 16312 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16313 | PyObject *resultobj; |
16314 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16315 | bool result; | |
16316 | PyObject * obj0 = 0 ; | |
16317 | char *kwnames[] = { | |
16318 | (char *) "self", NULL | |
16319 | }; | |
16320 | ||
16321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
16322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16324 | result = (bool) ((arg1)->m_controlDown); | |
16325 | ||
16326 | { | |
16327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16328 | } | |
16329 | return resultobj; | |
16330 | fail: | |
16331 | return NULL; | |
16332 | } | |
16333 | ||
16334 | ||
c370783e | 16335 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16336 | PyObject *resultobj; |
16337 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16338 | bool arg2 ; | |
16339 | PyObject * obj0 = 0 ; | |
16340 | PyObject * obj1 = 0 ; | |
16341 | char *kwnames[] = { | |
16342 | (char *) "self",(char *) "m_shiftDown", NULL | |
16343 | }; | |
16344 | ||
16345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16348 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16349 | if (PyErr_Occurred()) SWIG_fail; |
16350 | if (arg1) (arg1)->m_shiftDown = arg2; | |
16351 | ||
16352 | Py_INCREF(Py_None); resultobj = Py_None; | |
16353 | return resultobj; | |
16354 | fail: | |
16355 | return NULL; | |
16356 | } | |
16357 | ||
16358 | ||
c370783e | 16359 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16360 | PyObject *resultobj; |
16361 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16362 | bool result; | |
16363 | PyObject * obj0 = 0 ; | |
16364 | char *kwnames[] = { | |
16365 | (char *) "self", NULL | |
16366 | }; | |
16367 | ||
16368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
16369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16371 | result = (bool) ((arg1)->m_shiftDown); | |
16372 | ||
16373 | { | |
16374 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16375 | } | |
16376 | return resultobj; | |
16377 | fail: | |
16378 | return NULL; | |
16379 | } | |
16380 | ||
16381 | ||
c370783e | 16382 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16383 | PyObject *resultobj; |
16384 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16385 | bool arg2 ; | |
16386 | PyObject * obj0 = 0 ; | |
16387 | PyObject * obj1 = 0 ; | |
16388 | char *kwnames[] = { | |
16389 | (char *) "self",(char *) "m_altDown", NULL | |
16390 | }; | |
16391 | ||
16392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16395 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16396 | if (PyErr_Occurred()) SWIG_fail; |
16397 | if (arg1) (arg1)->m_altDown = arg2; | |
16398 | ||
16399 | Py_INCREF(Py_None); resultobj = Py_None; | |
16400 | return resultobj; | |
16401 | fail: | |
16402 | return NULL; | |
16403 | } | |
16404 | ||
16405 | ||
c370783e | 16406 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16407 | PyObject *resultobj; |
16408 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16409 | bool result; | |
16410 | PyObject * obj0 = 0 ; | |
16411 | char *kwnames[] = { | |
16412 | (char *) "self", NULL | |
16413 | }; | |
16414 | ||
16415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
16416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16418 | result = (bool) ((arg1)->m_altDown); | |
16419 | ||
16420 | { | |
16421 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16422 | } | |
16423 | return resultobj; | |
16424 | fail: | |
16425 | return NULL; | |
16426 | } | |
16427 | ||
16428 | ||
c370783e | 16429 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16430 | PyObject *resultobj; |
16431 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16432 | bool arg2 ; | |
16433 | PyObject * obj0 = 0 ; | |
16434 | PyObject * obj1 = 0 ; | |
16435 | char *kwnames[] = { | |
16436 | (char *) "self",(char *) "m_metaDown", NULL | |
16437 | }; | |
16438 | ||
16439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16442 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16443 | if (PyErr_Occurred()) SWIG_fail; |
16444 | if (arg1) (arg1)->m_metaDown = arg2; | |
16445 | ||
16446 | Py_INCREF(Py_None); resultobj = Py_None; | |
16447 | return resultobj; | |
16448 | fail: | |
16449 | return NULL; | |
16450 | } | |
16451 | ||
16452 | ||
c370783e | 16453 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16454 | PyObject *resultobj; |
16455 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16456 | bool result; | |
16457 | PyObject * obj0 = 0 ; | |
16458 | char *kwnames[] = { | |
16459 | (char *) "self", NULL | |
16460 | }; | |
16461 | ||
16462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
16463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16465 | result = (bool) ((arg1)->m_metaDown); | |
16466 | ||
16467 | { | |
16468 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16469 | } | |
16470 | return resultobj; | |
16471 | fail: | |
16472 | return NULL; | |
16473 | } | |
16474 | ||
16475 | ||
c370783e | 16476 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16477 | PyObject *resultobj; |
16478 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16479 | bool arg2 ; | |
16480 | PyObject * obj0 = 0 ; | |
16481 | PyObject * obj1 = 0 ; | |
16482 | char *kwnames[] = { | |
16483 | (char *) "self",(char *) "m_scanCode", NULL | |
16484 | }; | |
16485 | ||
16486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16489 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16490 | if (PyErr_Occurred()) SWIG_fail; |
16491 | if (arg1) (arg1)->m_scanCode = arg2; | |
16492 | ||
16493 | Py_INCREF(Py_None); resultobj = Py_None; | |
16494 | return resultobj; | |
16495 | fail: | |
16496 | return NULL; | |
16497 | } | |
16498 | ||
16499 | ||
c370783e | 16500 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16501 | PyObject *resultobj; |
16502 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16503 | bool result; | |
16504 | PyObject * obj0 = 0 ; | |
16505 | char *kwnames[] = { | |
16506 | (char *) "self", NULL | |
16507 | }; | |
16508 | ||
16509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
16510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16512 | result = (bool) ((arg1)->m_scanCode); | |
16513 | ||
16514 | { | |
16515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16516 | } | |
16517 | return resultobj; | |
16518 | fail: | |
16519 | return NULL; | |
16520 | } | |
16521 | ||
16522 | ||
c370783e | 16523 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16524 | PyObject *resultobj; |
16525 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16526 | unsigned int arg2 ; | |
16527 | PyObject * obj0 = 0 ; | |
16528 | PyObject * obj1 = 0 ; | |
16529 | char *kwnames[] = { | |
16530 | (char *) "self",(char *) "m_rawCode", NULL | |
16531 | }; | |
16532 | ||
16533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16536 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
16537 | if (PyErr_Occurred()) SWIG_fail; |
16538 | if (arg1) (arg1)->m_rawCode = arg2; | |
16539 | ||
16540 | Py_INCREF(Py_None); resultobj = Py_None; | |
16541 | return resultobj; | |
16542 | fail: | |
16543 | return NULL; | |
16544 | } | |
16545 | ||
16546 | ||
c370783e | 16547 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16548 | PyObject *resultobj; |
16549 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16550 | unsigned int result; | |
16551 | PyObject * obj0 = 0 ; | |
16552 | char *kwnames[] = { | |
16553 | (char *) "self", NULL | |
16554 | }; | |
16555 | ||
16556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
16557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16559 | result = (unsigned int) ((arg1)->m_rawCode); | |
16560 | ||
c370783e | 16561 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16562 | return resultobj; |
16563 | fail: | |
16564 | return NULL; | |
16565 | } | |
16566 | ||
16567 | ||
c370783e | 16568 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16569 | PyObject *resultobj; |
16570 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16571 | unsigned int arg2 ; | |
16572 | PyObject * obj0 = 0 ; | |
16573 | PyObject * obj1 = 0 ; | |
16574 | char *kwnames[] = { | |
16575 | (char *) "self",(char *) "m_rawFlags", NULL | |
16576 | }; | |
16577 | ||
16578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
16579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16581 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
16582 | if (PyErr_Occurred()) SWIG_fail; |
16583 | if (arg1) (arg1)->m_rawFlags = arg2; | |
16584 | ||
16585 | Py_INCREF(Py_None); resultobj = Py_None; | |
16586 | return resultobj; | |
16587 | fail: | |
16588 | return NULL; | |
16589 | } | |
16590 | ||
16591 | ||
c370783e | 16592 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16593 | PyObject *resultobj; |
16594 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16595 | unsigned int result; | |
16596 | PyObject * obj0 = 0 ; | |
16597 | char *kwnames[] = { | |
16598 | (char *) "self", NULL | |
16599 | }; | |
16600 | ||
16601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
16602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16604 | result = (unsigned int) ((arg1)->m_rawFlags); | |
16605 | ||
c370783e | 16606 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16607 | return resultobj; |
16608 | fail: | |
16609 | return NULL; | |
16610 | } | |
16611 | ||
16612 | ||
c370783e | 16613 | static PyObject * KeyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16614 | PyObject *obj; |
16615 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16616 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
16617 | Py_INCREF(obj); | |
16618 | return Py_BuildValue((char *)""); | |
16619 | } | |
c370783e | 16620 | static PyObject *_wrap_new_SizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16621 | PyObject *resultobj; |
16622 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
16623 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
16624 | int arg2 = (int) 0 ; | |
16625 | wxSizeEvent *result; | |
16626 | wxSize temp1 ; | |
16627 | PyObject * obj0 = 0 ; | |
16628 | PyObject * obj1 = 0 ; | |
16629 | char *kwnames[] = { | |
16630 | (char *) "sz",(char *) "winid", NULL | |
16631 | }; | |
16632 | ||
16633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
16634 | if (obj0) { | |
16635 | { | |
16636 | arg1 = &temp1; | |
16637 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
16638 | } | |
16639 | } | |
16640 | if (obj1) { | |
c370783e | 16641 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16642 | if (PyErr_Occurred()) SWIG_fail; |
16643 | } | |
16644 | { | |
16645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16646 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
16647 | ||
16648 | wxPyEndAllowThreads(__tstate); | |
16649 | if (PyErr_Occurred()) SWIG_fail; | |
16650 | } | |
16651 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); | |
16652 | return resultobj; | |
16653 | fail: | |
16654 | return NULL; | |
16655 | } | |
16656 | ||
16657 | ||
c370783e | 16658 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16659 | PyObject *resultobj; |
16660 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16661 | wxSize result; | |
16662 | PyObject * obj0 = 0 ; | |
16663 | char *kwnames[] = { | |
16664 | (char *) "self", NULL | |
16665 | }; | |
16666 | ||
16667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
16668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16670 | { | |
16671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16672 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
16673 | ||
16674 | wxPyEndAllowThreads(__tstate); | |
16675 | if (PyErr_Occurred()) SWIG_fail; | |
16676 | } | |
16677 | { | |
16678 | wxSize * resultptr; | |
16679 | resultptr = new wxSize((wxSize &) result); | |
16680 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16681 | } | |
16682 | return resultobj; | |
16683 | fail: | |
16684 | return NULL; | |
16685 | } | |
16686 | ||
16687 | ||
c370783e | 16688 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16689 | PyObject *resultobj; |
16690 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16691 | wxRect result; | |
16692 | PyObject * obj0 = 0 ; | |
16693 | char *kwnames[] = { | |
16694 | (char *) "self", NULL | |
16695 | }; | |
16696 | ||
16697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
16698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16700 | { | |
16701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16702 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
16703 | ||
16704 | wxPyEndAllowThreads(__tstate); | |
16705 | if (PyErr_Occurred()) SWIG_fail; | |
16706 | } | |
16707 | { | |
16708 | wxRect * resultptr; | |
16709 | resultptr = new wxRect((wxRect &) result); | |
16710 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
16711 | } | |
16712 | return resultobj; | |
16713 | fail: | |
16714 | return NULL; | |
16715 | } | |
16716 | ||
16717 | ||
c370783e | 16718 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16719 | PyObject *resultobj; |
16720 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16721 | wxRect arg2 ; | |
16722 | wxRect *argp2 ; | |
16723 | PyObject * obj0 = 0 ; | |
16724 | PyObject * obj1 = 0 ; | |
16725 | char *kwnames[] = { | |
16726 | (char *) "self",(char *) "rect", NULL | |
16727 | }; | |
16728 | ||
16729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
16730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16732 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16733 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16734 | arg2 = *argp2; | |
16735 | { | |
16736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16737 | (arg1)->SetRect(arg2); | |
16738 | ||
16739 | wxPyEndAllowThreads(__tstate); | |
16740 | if (PyErr_Occurred()) SWIG_fail; | |
16741 | } | |
16742 | Py_INCREF(Py_None); resultobj = Py_None; | |
16743 | return resultobj; | |
16744 | fail: | |
16745 | return NULL; | |
16746 | } | |
16747 | ||
16748 | ||
c370783e | 16749 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16750 | PyObject *resultobj; |
16751 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16752 | wxSize arg2 ; | |
16753 | wxSize *argp2 ; | |
16754 | PyObject * obj0 = 0 ; | |
16755 | PyObject * obj1 = 0 ; | |
16756 | char *kwnames[] = { | |
16757 | (char *) "self",(char *) "size", NULL | |
16758 | }; | |
16759 | ||
16760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
16761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16763 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
16764 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16765 | arg2 = *argp2; | |
16766 | { | |
16767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16768 | wxSizeEvent_SetSize(arg1,arg2); | |
16769 | ||
16770 | wxPyEndAllowThreads(__tstate); | |
16771 | if (PyErr_Occurred()) SWIG_fail; | |
16772 | } | |
16773 | Py_INCREF(Py_None); resultobj = Py_None; | |
16774 | return resultobj; | |
16775 | fail: | |
16776 | return NULL; | |
16777 | } | |
16778 | ||
16779 | ||
c370783e | 16780 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16781 | PyObject *resultobj; |
16782 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16783 | wxSize *arg2 = (wxSize *) 0 ; | |
16784 | PyObject * obj0 = 0 ; | |
16785 | PyObject * obj1 = 0 ; | |
16786 | char *kwnames[] = { | |
16787 | (char *) "self",(char *) "m_size", NULL | |
16788 | }; | |
16789 | ||
16790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
16791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16793 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize, | |
16794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16795 | if (arg1) (arg1)->m_size = *arg2; | |
16796 | ||
16797 | Py_INCREF(Py_None); resultobj = Py_None; | |
16798 | return resultobj; | |
16799 | fail: | |
16800 | return NULL; | |
16801 | } | |
16802 | ||
16803 | ||
c370783e | 16804 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16805 | PyObject *resultobj; |
16806 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16807 | wxSize *result; | |
16808 | PyObject * obj0 = 0 ; | |
16809 | char *kwnames[] = { | |
16810 | (char *) "self", NULL | |
16811 | }; | |
16812 | ||
16813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
16814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16816 | result = (wxSize *)& ((arg1)->m_size); | |
16817 | ||
16818 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
16819 | return resultobj; | |
16820 | fail: | |
16821 | return NULL; | |
16822 | } | |
16823 | ||
16824 | ||
c370783e | 16825 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16826 | PyObject *resultobj; |
16827 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16828 | wxRect *arg2 = (wxRect *) 0 ; | |
16829 | PyObject * obj0 = 0 ; | |
16830 | PyObject * obj1 = 0 ; | |
16831 | char *kwnames[] = { | |
16832 | (char *) "self",(char *) "m_rect", NULL | |
16833 | }; | |
16834 | ||
16835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
16836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16838 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
16839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16840 | if (arg1) (arg1)->m_rect = *arg2; | |
16841 | ||
16842 | Py_INCREF(Py_None); resultobj = Py_None; | |
16843 | return resultobj; | |
16844 | fail: | |
16845 | return NULL; | |
16846 | } | |
16847 | ||
16848 | ||
c370783e | 16849 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16850 | PyObject *resultobj; |
16851 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16852 | wxRect *result; | |
16853 | PyObject * obj0 = 0 ; | |
16854 | char *kwnames[] = { | |
16855 | (char *) "self", NULL | |
16856 | }; | |
16857 | ||
16858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
16859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16861 | result = (wxRect *)& ((arg1)->m_rect); | |
16862 | ||
16863 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
16864 | return resultobj; | |
16865 | fail: | |
16866 | return NULL; | |
16867 | } | |
16868 | ||
16869 | ||
c370783e | 16870 | static PyObject * SizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16871 | PyObject *obj; |
16872 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16873 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
16874 | Py_INCREF(obj); | |
16875 | return Py_BuildValue((char *)""); | |
16876 | } | |
c370783e | 16877 | static PyObject *_wrap_new_MoveEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16878 | PyObject *resultobj; |
16879 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
16880 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
16881 | int arg2 = (int) 0 ; | |
16882 | wxMoveEvent *result; | |
16883 | wxPoint temp1 ; | |
16884 | PyObject * obj0 = 0 ; | |
16885 | PyObject * obj1 = 0 ; | |
16886 | char *kwnames[] = { | |
16887 | (char *) "pos",(char *) "winid", NULL | |
16888 | }; | |
16889 | ||
16890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; | |
16891 | if (obj0) { | |
16892 | { | |
16893 | arg1 = &temp1; | |
16894 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
16895 | } | |
16896 | } | |
16897 | if (obj1) { | |
c370783e | 16898 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16899 | if (PyErr_Occurred()) SWIG_fail; |
16900 | } | |
16901 | { | |
16902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16903 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
16904 | ||
16905 | wxPyEndAllowThreads(__tstate); | |
16906 | if (PyErr_Occurred()) SWIG_fail; | |
16907 | } | |
16908 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); | |
16909 | return resultobj; | |
16910 | fail: | |
16911 | return NULL; | |
16912 | } | |
16913 | ||
16914 | ||
c370783e | 16915 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16916 | PyObject *resultobj; |
16917 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16918 | wxPoint result; | |
16919 | PyObject * obj0 = 0 ; | |
16920 | char *kwnames[] = { | |
16921 | (char *) "self", NULL | |
16922 | }; | |
16923 | ||
16924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
16925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16927 | { | |
16928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16929 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
16930 | ||
16931 | wxPyEndAllowThreads(__tstate); | |
16932 | if (PyErr_Occurred()) SWIG_fail; | |
16933 | } | |
16934 | { | |
16935 | wxPoint * resultptr; | |
16936 | resultptr = new wxPoint((wxPoint &) result); | |
16937 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
16938 | } | |
16939 | return resultobj; | |
16940 | fail: | |
16941 | return NULL; | |
16942 | } | |
16943 | ||
16944 | ||
c370783e | 16945 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16946 | PyObject *resultobj; |
16947 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16948 | wxRect result; | |
16949 | PyObject * obj0 = 0 ; | |
16950 | char *kwnames[] = { | |
16951 | (char *) "self", NULL | |
16952 | }; | |
16953 | ||
16954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
16955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16957 | { | |
16958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16959 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
16960 | ||
16961 | wxPyEndAllowThreads(__tstate); | |
16962 | if (PyErr_Occurred()) SWIG_fail; | |
16963 | } | |
16964 | { | |
16965 | wxRect * resultptr; | |
16966 | resultptr = new wxRect((wxRect &) result); | |
16967 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
16968 | } | |
16969 | return resultobj; | |
16970 | fail: | |
16971 | return NULL; | |
16972 | } | |
16973 | ||
16974 | ||
c370783e | 16975 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16976 | PyObject *resultobj; |
16977 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
16978 | wxRect arg2 ; | |
16979 | wxRect *argp2 ; | |
16980 | PyObject * obj0 = 0 ; | |
16981 | PyObject * obj1 = 0 ; | |
16982 | char *kwnames[] = { | |
16983 | (char *) "self",(char *) "rect", NULL | |
16984 | }; | |
16985 | ||
16986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
16987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
16988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16989 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16990 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16991 | arg2 = *argp2; | |
16992 | { | |
16993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16994 | (arg1)->SetRect(arg2); | |
16995 | ||
16996 | wxPyEndAllowThreads(__tstate); | |
16997 | if (PyErr_Occurred()) SWIG_fail; | |
16998 | } | |
16999 | Py_INCREF(Py_None); resultobj = Py_None; | |
17000 | return resultobj; | |
17001 | fail: | |
17002 | return NULL; | |
17003 | } | |
17004 | ||
17005 | ||
c370783e | 17006 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17007 | PyObject *resultobj; |
17008 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17009 | wxPoint arg2 ; | |
17010 | wxPoint *argp2 ; | |
17011 | PyObject * obj0 = 0 ; | |
17012 | PyObject * obj1 = 0 ; | |
17013 | char *kwnames[] = { | |
17014 | (char *) "self",(char *) "pos", NULL | |
17015 | }; | |
17016 | ||
17017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
17018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17020 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
17021 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
17022 | arg2 = *argp2; | |
17023 | { | |
17024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17025 | wxMoveEvent_SetPosition(arg1,arg2); | |
17026 | ||
17027 | wxPyEndAllowThreads(__tstate); | |
17028 | if (PyErr_Occurred()) SWIG_fail; | |
17029 | } | |
17030 | Py_INCREF(Py_None); resultobj = Py_None; | |
17031 | return resultobj; | |
17032 | fail: | |
17033 | return NULL; | |
17034 | } | |
17035 | ||
17036 | ||
c370783e | 17037 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17038 | PyObject *resultobj; |
17039 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17040 | wxPoint *arg2 = (wxPoint *) 0 ; | |
17041 | PyObject * obj0 = 0 ; | |
17042 | PyObject * obj1 = 0 ; | |
17043 | char *kwnames[] = { | |
17044 | (char *) "self",(char *) "m_pos", NULL | |
17045 | }; | |
17046 | ||
17047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
17048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17050 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
17051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17052 | if (arg1) (arg1)->m_pos = *arg2; | |
17053 | ||
17054 | Py_INCREF(Py_None); resultobj = Py_None; | |
17055 | return resultobj; | |
17056 | fail: | |
17057 | return NULL; | |
17058 | } | |
17059 | ||
17060 | ||
c370783e | 17061 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17062 | PyObject *resultobj; |
17063 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17064 | wxPoint *result; | |
17065 | PyObject * obj0 = 0 ; | |
17066 | char *kwnames[] = { | |
17067 | (char *) "self", NULL | |
17068 | }; | |
17069 | ||
17070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
17071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17073 | result = (wxPoint *)& ((arg1)->m_pos); | |
17074 | ||
17075 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
17076 | return resultobj; | |
17077 | fail: | |
17078 | return NULL; | |
17079 | } | |
17080 | ||
17081 | ||
c370783e | 17082 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17083 | PyObject *resultobj; |
17084 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17085 | wxRect *arg2 = (wxRect *) 0 ; | |
17086 | PyObject * obj0 = 0 ; | |
17087 | PyObject * obj1 = 0 ; | |
17088 | char *kwnames[] = { | |
17089 | (char *) "self",(char *) "m_rect", NULL | |
17090 | }; | |
17091 | ||
17092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
17093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17095 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
17096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17097 | if (arg1) (arg1)->m_rect = *arg2; | |
17098 | ||
17099 | Py_INCREF(Py_None); resultobj = Py_None; | |
17100 | return resultobj; | |
17101 | fail: | |
17102 | return NULL; | |
17103 | } | |
17104 | ||
17105 | ||
c370783e | 17106 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17107 | PyObject *resultobj; |
17108 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17109 | wxRect *result; | |
17110 | PyObject * obj0 = 0 ; | |
17111 | char *kwnames[] = { | |
17112 | (char *) "self", NULL | |
17113 | }; | |
17114 | ||
17115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
17116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17118 | result = (wxRect *)& ((arg1)->m_rect); | |
17119 | ||
17120 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
17121 | return resultobj; | |
17122 | fail: | |
17123 | return NULL; | |
17124 | } | |
17125 | ||
17126 | ||
c370783e | 17127 | static PyObject * MoveEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17128 | PyObject *obj; |
17129 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17130 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
17131 | Py_INCREF(obj); | |
17132 | return Py_BuildValue((char *)""); | |
17133 | } | |
c370783e | 17134 | static PyObject *_wrap_new_PaintEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17135 | PyObject *resultobj; |
17136 | int arg1 = (int) 0 ; | |
17137 | wxPaintEvent *result; | |
17138 | PyObject * obj0 = 0 ; | |
17139 | char *kwnames[] = { | |
17140 | (char *) "Id", NULL | |
17141 | }; | |
17142 | ||
17143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; | |
17144 | if (obj0) { | |
c370783e | 17145 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17146 | if (PyErr_Occurred()) SWIG_fail; |
17147 | } | |
17148 | { | |
17149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17150 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
17151 | ||
17152 | wxPyEndAllowThreads(__tstate); | |
17153 | if (PyErr_Occurred()) SWIG_fail; | |
17154 | } | |
17155 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); | |
17156 | return resultobj; | |
17157 | fail: | |
17158 | return NULL; | |
17159 | } | |
17160 | ||
17161 | ||
c370783e | 17162 | static PyObject * PaintEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17163 | PyObject *obj; |
17164 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17165 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
17166 | Py_INCREF(obj); | |
17167 | return Py_BuildValue((char *)""); | |
17168 | } | |
c370783e | 17169 | static PyObject *_wrap_new_NcPaintEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17170 | PyObject *resultobj; |
17171 | int arg1 = (int) 0 ; | |
17172 | wxNcPaintEvent *result; | |
17173 | PyObject * obj0 = 0 ; | |
17174 | char *kwnames[] = { | |
17175 | (char *) "winid", NULL | |
17176 | }; | |
17177 | ||
17178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; | |
17179 | if (obj0) { | |
c370783e | 17180 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17181 | if (PyErr_Occurred()) SWIG_fail; |
17182 | } | |
17183 | { | |
17184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17185 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
17186 | ||
17187 | wxPyEndAllowThreads(__tstate); | |
17188 | if (PyErr_Occurred()) SWIG_fail; | |
17189 | } | |
17190 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); | |
17191 | return resultobj; | |
17192 | fail: | |
17193 | return NULL; | |
17194 | } | |
17195 | ||
17196 | ||
c370783e | 17197 | static PyObject * NcPaintEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17198 | PyObject *obj; |
17199 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17200 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
17201 | Py_INCREF(obj); | |
17202 | return Py_BuildValue((char *)""); | |
17203 | } | |
c370783e | 17204 | static PyObject *_wrap_new_EraseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17205 | PyObject *resultobj; |
17206 | int arg1 = (int) 0 ; | |
17207 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
17208 | wxEraseEvent *result; | |
17209 | PyObject * obj0 = 0 ; | |
17210 | PyObject * obj1 = 0 ; | |
17211 | char *kwnames[] = { | |
17212 | (char *) "Id",(char *) "dc", NULL | |
17213 | }; | |
17214 | ||
17215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; | |
17216 | if (obj0) { | |
c370783e | 17217 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17218 | if (PyErr_Occurred()) SWIG_fail; |
17219 | } | |
17220 | if (obj1) { | |
17221 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
17222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17223 | } | |
17224 | { | |
17225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17226 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
17227 | ||
17228 | wxPyEndAllowThreads(__tstate); | |
17229 | if (PyErr_Occurred()) SWIG_fail; | |
17230 | } | |
17231 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); | |
17232 | return resultobj; | |
17233 | fail: | |
17234 | return NULL; | |
17235 | } | |
17236 | ||
17237 | ||
c370783e | 17238 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17239 | PyObject *resultobj; |
17240 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
17241 | wxDC *result; | |
17242 | PyObject * obj0 = 0 ; | |
17243 | char *kwnames[] = { | |
17244 | (char *) "self", NULL | |
17245 | }; | |
17246 | ||
17247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
17248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent, | |
17249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17250 | { | |
17251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17252 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
17253 | ||
17254 | wxPyEndAllowThreads(__tstate); | |
17255 | if (PyErr_Occurred()) SWIG_fail; | |
17256 | } | |
17257 | { | |
412d302d | 17258 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17259 | } |
17260 | return resultobj; | |
17261 | fail: | |
17262 | return NULL; | |
17263 | } | |
17264 | ||
17265 | ||
c370783e | 17266 | static PyObject * EraseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17267 | PyObject *obj; |
17268 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17269 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
17270 | Py_INCREF(obj); | |
17271 | return Py_BuildValue((char *)""); | |
17272 | } | |
c370783e | 17273 | static PyObject *_wrap_new_FocusEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17274 | PyObject *resultobj; |
17275 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17276 | int arg2 = (int) 0 ; | |
17277 | wxFocusEvent *result; | |
17278 | PyObject * obj0 = 0 ; | |
17279 | PyObject * obj1 = 0 ; | |
17280 | char *kwnames[] = { | |
17281 | (char *) "type",(char *) "winid", NULL | |
17282 | }; | |
17283 | ||
17284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; | |
17285 | if (obj0) { | |
c370783e | 17286 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17287 | if (PyErr_Occurred()) SWIG_fail; |
17288 | } | |
17289 | if (obj1) { | |
c370783e | 17290 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17291 | if (PyErr_Occurred()) SWIG_fail; |
17292 | } | |
17293 | { | |
17294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17295 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
17296 | ||
17297 | wxPyEndAllowThreads(__tstate); | |
17298 | if (PyErr_Occurred()) SWIG_fail; | |
17299 | } | |
17300 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); | |
17301 | return resultobj; | |
17302 | fail: | |
17303 | return NULL; | |
17304 | } | |
17305 | ||
17306 | ||
c370783e | 17307 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17308 | PyObject *resultobj; |
17309 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
17310 | wxWindow *result; | |
17311 | PyObject * obj0 = 0 ; | |
17312 | char *kwnames[] = { | |
17313 | (char *) "self", NULL | |
17314 | }; | |
17315 | ||
17316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
17317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, | |
17318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17319 | { | |
17320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17321 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
17322 | ||
17323 | wxPyEndAllowThreads(__tstate); | |
17324 | if (PyErr_Occurred()) SWIG_fail; | |
17325 | } | |
17326 | { | |
412d302d | 17327 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17328 | } |
17329 | return resultobj; | |
17330 | fail: | |
17331 | return NULL; | |
17332 | } | |
17333 | ||
17334 | ||
c370783e | 17335 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17336 | PyObject *resultobj; |
17337 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
17338 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17339 | PyObject * obj0 = 0 ; | |
17340 | PyObject * obj1 = 0 ; | |
17341 | char *kwnames[] = { | |
17342 | (char *) "self",(char *) "win", NULL | |
17343 | }; | |
17344 | ||
17345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
17346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, | |
17347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17348 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17350 | { | |
17351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17352 | (arg1)->SetWindow(arg2); | |
17353 | ||
17354 | wxPyEndAllowThreads(__tstate); | |
17355 | if (PyErr_Occurred()) SWIG_fail; | |
17356 | } | |
17357 | Py_INCREF(Py_None); resultobj = Py_None; | |
17358 | return resultobj; | |
17359 | fail: | |
17360 | return NULL; | |
17361 | } | |
17362 | ||
17363 | ||
c370783e | 17364 | static PyObject * FocusEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17365 | PyObject *obj; |
17366 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17367 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
17368 | Py_INCREF(obj); | |
17369 | return Py_BuildValue((char *)""); | |
17370 | } | |
c370783e | 17371 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17372 | PyObject *resultobj; |
17373 | wxWindow *arg1 = (wxWindow *) NULL ; | |
17374 | wxChildFocusEvent *result; | |
17375 | PyObject * obj0 = 0 ; | |
17376 | char *kwnames[] = { | |
17377 | (char *) "win", NULL | |
17378 | }; | |
17379 | ||
17380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
17381 | if (obj0) { | |
17382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
17383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17384 | } | |
17385 | { | |
17386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17387 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
17388 | ||
17389 | wxPyEndAllowThreads(__tstate); | |
17390 | if (PyErr_Occurred()) SWIG_fail; | |
17391 | } | |
17392 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); | |
17393 | return resultobj; | |
17394 | fail: | |
17395 | return NULL; | |
17396 | } | |
17397 | ||
17398 | ||
c370783e | 17399 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17400 | PyObject *resultobj; |
17401 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
17402 | wxWindow *result; | |
17403 | PyObject * obj0 = 0 ; | |
17404 | char *kwnames[] = { | |
17405 | (char *) "self", NULL | |
17406 | }; | |
17407 | ||
17408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
17409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent, | |
17410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17411 | { | |
17412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17413 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
17414 | ||
17415 | wxPyEndAllowThreads(__tstate); | |
17416 | if (PyErr_Occurred()) SWIG_fail; | |
17417 | } | |
17418 | { | |
412d302d | 17419 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17420 | } |
17421 | return resultobj; | |
17422 | fail: | |
17423 | return NULL; | |
17424 | } | |
17425 | ||
17426 | ||
c370783e | 17427 | static PyObject * ChildFocusEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17428 | PyObject *obj; |
17429 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17430 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
17431 | Py_INCREF(obj); | |
17432 | return Py_BuildValue((char *)""); | |
17433 | } | |
c370783e | 17434 | static PyObject *_wrap_new_ActivateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17435 | PyObject *resultobj; |
17436 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
b411df4a | 17437 | bool arg2 = (bool) true ; |
d55e5bfc RD |
17438 | int arg3 = (int) 0 ; |
17439 | wxActivateEvent *result; | |
17440 | PyObject * obj0 = 0 ; | |
17441 | PyObject * obj1 = 0 ; | |
17442 | PyObject * obj2 = 0 ; | |
17443 | char *kwnames[] = { | |
17444 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
17445 | }; | |
17446 | ||
17447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17448 | if (obj0) { | |
c370783e | 17449 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17450 | if (PyErr_Occurred()) SWIG_fail; |
17451 | } | |
17452 | if (obj1) { | |
c370783e | 17453 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17454 | if (PyErr_Occurred()) SWIG_fail; |
17455 | } | |
17456 | if (obj2) { | |
c370783e | 17457 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17458 | if (PyErr_Occurred()) SWIG_fail; |
17459 | } | |
17460 | { | |
17461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17462 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
17463 | ||
17464 | wxPyEndAllowThreads(__tstate); | |
17465 | if (PyErr_Occurred()) SWIG_fail; | |
17466 | } | |
17467 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); | |
17468 | return resultobj; | |
17469 | fail: | |
17470 | return NULL; | |
17471 | } | |
17472 | ||
17473 | ||
c370783e | 17474 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17475 | PyObject *resultobj; |
17476 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
17477 | bool result; | |
17478 | PyObject * obj0 = 0 ; | |
17479 | char *kwnames[] = { | |
17480 | (char *) "self", NULL | |
17481 | }; | |
17482 | ||
17483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
17484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent, | |
17485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17486 | { | |
17487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17488 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
17489 | ||
17490 | wxPyEndAllowThreads(__tstate); | |
17491 | if (PyErr_Occurred()) SWIG_fail; | |
17492 | } | |
17493 | { | |
17494 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17495 | } | |
17496 | return resultobj; | |
17497 | fail: | |
17498 | return NULL; | |
17499 | } | |
17500 | ||
17501 | ||
c370783e | 17502 | static PyObject * ActivateEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17503 | PyObject *obj; |
17504 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17505 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
17506 | Py_INCREF(obj); | |
17507 | return Py_BuildValue((char *)""); | |
17508 | } | |
c370783e | 17509 | static PyObject *_wrap_new_InitDialogEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17510 | PyObject *resultobj; |
17511 | int arg1 = (int) 0 ; | |
17512 | wxInitDialogEvent *result; | |
17513 | PyObject * obj0 = 0 ; | |
17514 | char *kwnames[] = { | |
17515 | (char *) "Id", NULL | |
17516 | }; | |
17517 | ||
17518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; | |
17519 | if (obj0) { | |
c370783e | 17520 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17521 | if (PyErr_Occurred()) SWIG_fail; |
17522 | } | |
17523 | { | |
17524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17525 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
17526 | ||
17527 | wxPyEndAllowThreads(__tstate); | |
17528 | if (PyErr_Occurred()) SWIG_fail; | |
17529 | } | |
17530 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); | |
17531 | return resultobj; | |
17532 | fail: | |
17533 | return NULL; | |
17534 | } | |
17535 | ||
17536 | ||
c370783e | 17537 | static PyObject * InitDialogEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17538 | PyObject *obj; |
17539 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17540 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
17541 | Py_INCREF(obj); | |
17542 | return Py_BuildValue((char *)""); | |
17543 | } | |
c370783e | 17544 | static PyObject *_wrap_new_MenuEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17545 | PyObject *resultobj; |
17546 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17547 | int arg2 = (int) 0 ; | |
17548 | wxMenu *arg3 = (wxMenu *) NULL ; | |
17549 | wxMenuEvent *result; | |
17550 | PyObject * obj0 = 0 ; | |
17551 | PyObject * obj1 = 0 ; | |
17552 | PyObject * obj2 = 0 ; | |
17553 | char *kwnames[] = { | |
17554 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
17555 | }; | |
17556 | ||
17557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17558 | if (obj0) { | |
c370783e | 17559 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17560 | if (PyErr_Occurred()) SWIG_fail; |
17561 | } | |
17562 | if (obj1) { | |
c370783e | 17563 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17564 | if (PyErr_Occurred()) SWIG_fail; |
17565 | } | |
17566 | if (obj2) { | |
17567 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
17568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17569 | } | |
17570 | { | |
17571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17572 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
17573 | ||
17574 | wxPyEndAllowThreads(__tstate); | |
17575 | if (PyErr_Occurred()) SWIG_fail; | |
17576 | } | |
17577 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); | |
17578 | return resultobj; | |
17579 | fail: | |
17580 | return NULL; | |
17581 | } | |
17582 | ||
17583 | ||
c370783e | 17584 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17585 | PyObject *resultobj; |
17586 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17587 | int result; | |
17588 | PyObject * obj0 = 0 ; | |
17589 | char *kwnames[] = { | |
17590 | (char *) "self", NULL | |
17591 | }; | |
17592 | ||
17593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
17594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17596 | { | |
17597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17598 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
17599 | ||
17600 | wxPyEndAllowThreads(__tstate); | |
17601 | if (PyErr_Occurred()) SWIG_fail; | |
17602 | } | |
c370783e | 17603 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17604 | return resultobj; |
17605 | fail: | |
17606 | return NULL; | |
17607 | } | |
17608 | ||
17609 | ||
c370783e | 17610 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17611 | PyObject *resultobj; |
17612 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17613 | bool result; | |
17614 | PyObject * obj0 = 0 ; | |
17615 | char *kwnames[] = { | |
17616 | (char *) "self", NULL | |
17617 | }; | |
17618 | ||
17619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
17620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17622 | { | |
17623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17624 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
17625 | ||
17626 | wxPyEndAllowThreads(__tstate); | |
17627 | if (PyErr_Occurred()) SWIG_fail; | |
17628 | } | |
17629 | { | |
17630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17631 | } | |
17632 | return resultobj; | |
17633 | fail: | |
17634 | return NULL; | |
17635 | } | |
17636 | ||
17637 | ||
c370783e | 17638 | static PyObject *_wrap_MenuEvent_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17639 | PyObject *resultobj; |
17640 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17641 | wxMenu *result; | |
17642 | PyObject * obj0 = 0 ; | |
17643 | char *kwnames[] = { | |
17644 | (char *) "self", NULL | |
17645 | }; | |
17646 | ||
17647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
17648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17650 | { | |
17651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17652 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
17653 | ||
17654 | wxPyEndAllowThreads(__tstate); | |
17655 | if (PyErr_Occurred()) SWIG_fail; | |
17656 | } | |
17657 | { | |
412d302d | 17658 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17659 | } |
17660 | return resultobj; | |
17661 | fail: | |
17662 | return NULL; | |
17663 | } | |
17664 | ||
17665 | ||
c370783e | 17666 | static PyObject * MenuEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17667 | PyObject *obj; |
17668 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17669 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
17670 | Py_INCREF(obj); | |
17671 | return Py_BuildValue((char *)""); | |
17672 | } | |
c370783e | 17673 | static PyObject *_wrap_new_CloseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17674 | PyObject *resultobj; |
17675 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17676 | int arg2 = (int) 0 ; | |
17677 | wxCloseEvent *result; | |
17678 | PyObject * obj0 = 0 ; | |
17679 | PyObject * obj1 = 0 ; | |
17680 | char *kwnames[] = { | |
17681 | (char *) "type",(char *) "winid", NULL | |
17682 | }; | |
17683 | ||
17684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; | |
17685 | if (obj0) { | |
c370783e | 17686 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17687 | if (PyErr_Occurred()) SWIG_fail; |
17688 | } | |
17689 | if (obj1) { | |
c370783e | 17690 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17691 | if (PyErr_Occurred()) SWIG_fail; |
17692 | } | |
17693 | { | |
17694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17695 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
17696 | ||
17697 | wxPyEndAllowThreads(__tstate); | |
17698 | if (PyErr_Occurred()) SWIG_fail; | |
17699 | } | |
17700 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); | |
17701 | return resultobj; | |
17702 | fail: | |
17703 | return NULL; | |
17704 | } | |
17705 | ||
17706 | ||
c370783e | 17707 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17708 | PyObject *resultobj; |
17709 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17710 | bool arg2 ; | |
17711 | PyObject * obj0 = 0 ; | |
17712 | PyObject * obj1 = 0 ; | |
17713 | char *kwnames[] = { | |
17714 | (char *) "self",(char *) "logOff", NULL | |
17715 | }; | |
17716 | ||
17717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
17718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17720 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17721 | if (PyErr_Occurred()) SWIG_fail; |
17722 | { | |
17723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17724 | (arg1)->SetLoggingOff(arg2); | |
17725 | ||
17726 | wxPyEndAllowThreads(__tstate); | |
17727 | if (PyErr_Occurred()) SWIG_fail; | |
17728 | } | |
17729 | Py_INCREF(Py_None); resultobj = Py_None; | |
17730 | return resultobj; | |
17731 | fail: | |
17732 | return NULL; | |
17733 | } | |
17734 | ||
17735 | ||
c370783e | 17736 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17737 | PyObject *resultobj; |
17738 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17739 | bool result; | |
17740 | PyObject * obj0 = 0 ; | |
17741 | char *kwnames[] = { | |
17742 | (char *) "self", NULL | |
17743 | }; | |
17744 | ||
17745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
17746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17748 | { | |
17749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17750 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
17751 | ||
17752 | wxPyEndAllowThreads(__tstate); | |
17753 | if (PyErr_Occurred()) SWIG_fail; | |
17754 | } | |
17755 | { | |
17756 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17757 | } | |
17758 | return resultobj; | |
17759 | fail: | |
17760 | return NULL; | |
17761 | } | |
17762 | ||
17763 | ||
c370783e | 17764 | static PyObject *_wrap_CloseEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17765 | PyObject *resultobj; |
17766 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
b411df4a | 17767 | bool arg2 = (bool) true ; |
d55e5bfc RD |
17768 | PyObject * obj0 = 0 ; |
17769 | PyObject * obj1 = 0 ; | |
17770 | char *kwnames[] = { | |
17771 | (char *) "self",(char *) "veto", NULL | |
17772 | }; | |
17773 | ||
17774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
17775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17777 | if (obj1) { | |
c370783e | 17778 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17779 | if (PyErr_Occurred()) SWIG_fail; |
17780 | } | |
17781 | { | |
17782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17783 | (arg1)->Veto(arg2); | |
17784 | ||
17785 | wxPyEndAllowThreads(__tstate); | |
17786 | if (PyErr_Occurred()) SWIG_fail; | |
17787 | } | |
17788 | Py_INCREF(Py_None); resultobj = Py_None; | |
17789 | return resultobj; | |
17790 | fail: | |
17791 | return NULL; | |
17792 | } | |
17793 | ||
17794 | ||
c370783e | 17795 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17796 | PyObject *resultobj; |
17797 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17798 | bool arg2 ; | |
17799 | PyObject * obj0 = 0 ; | |
17800 | PyObject * obj1 = 0 ; | |
17801 | char *kwnames[] = { | |
17802 | (char *) "self",(char *) "canVeto", NULL | |
17803 | }; | |
17804 | ||
17805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
17806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17808 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17809 | if (PyErr_Occurred()) SWIG_fail; |
17810 | { | |
17811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17812 | (arg1)->SetCanVeto(arg2); | |
17813 | ||
17814 | wxPyEndAllowThreads(__tstate); | |
17815 | if (PyErr_Occurred()) SWIG_fail; | |
17816 | } | |
17817 | Py_INCREF(Py_None); resultobj = Py_None; | |
17818 | return resultobj; | |
17819 | fail: | |
17820 | return NULL; | |
17821 | } | |
17822 | ||
17823 | ||
c370783e | 17824 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17825 | PyObject *resultobj; |
17826 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17827 | bool result; | |
17828 | PyObject * obj0 = 0 ; | |
17829 | char *kwnames[] = { | |
17830 | (char *) "self", NULL | |
17831 | }; | |
17832 | ||
17833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
17834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17836 | { | |
17837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17838 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
17839 | ||
17840 | wxPyEndAllowThreads(__tstate); | |
17841 | if (PyErr_Occurred()) SWIG_fail; | |
17842 | } | |
17843 | { | |
17844 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17845 | } | |
17846 | return resultobj; | |
17847 | fail: | |
17848 | return NULL; | |
17849 | } | |
17850 | ||
17851 | ||
c370783e | 17852 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17853 | PyObject *resultobj; |
17854 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17855 | bool result; | |
17856 | PyObject * obj0 = 0 ; | |
17857 | char *kwnames[] = { | |
17858 | (char *) "self", NULL | |
17859 | }; | |
17860 | ||
17861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
17862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17864 | { | |
17865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17866 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
17867 | ||
17868 | wxPyEndAllowThreads(__tstate); | |
17869 | if (PyErr_Occurred()) SWIG_fail; | |
17870 | } | |
17871 | { | |
17872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17873 | } | |
17874 | return resultobj; | |
17875 | fail: | |
17876 | return NULL; | |
17877 | } | |
17878 | ||
17879 | ||
c370783e | 17880 | static PyObject * CloseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17881 | PyObject *obj; |
17882 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17883 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
17884 | Py_INCREF(obj); | |
17885 | return Py_BuildValue((char *)""); | |
17886 | } | |
c370783e | 17887 | static PyObject *_wrap_new_ShowEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17888 | PyObject *resultobj; |
17889 | int arg1 = (int) 0 ; | |
b411df4a | 17890 | bool arg2 = (bool) false ; |
d55e5bfc RD |
17891 | wxShowEvent *result; |
17892 | PyObject * obj0 = 0 ; | |
17893 | PyObject * obj1 = 0 ; | |
17894 | char *kwnames[] = { | |
17895 | (char *) "winid",(char *) "show", NULL | |
17896 | }; | |
17897 | ||
17898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; | |
17899 | if (obj0) { | |
c370783e | 17900 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17901 | if (PyErr_Occurred()) SWIG_fail; |
17902 | } | |
17903 | if (obj1) { | |
c370783e | 17904 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17905 | if (PyErr_Occurred()) SWIG_fail; |
17906 | } | |
17907 | { | |
17908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17909 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
17910 | ||
17911 | wxPyEndAllowThreads(__tstate); | |
17912 | if (PyErr_Occurred()) SWIG_fail; | |
17913 | } | |
17914 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); | |
17915 | return resultobj; | |
17916 | fail: | |
17917 | return NULL; | |
17918 | } | |
17919 | ||
17920 | ||
c370783e | 17921 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17922 | PyObject *resultobj; |
17923 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17924 | bool arg2 ; | |
17925 | PyObject * obj0 = 0 ; | |
17926 | PyObject * obj1 = 0 ; | |
17927 | char *kwnames[] = { | |
17928 | (char *) "self",(char *) "show", NULL | |
17929 | }; | |
17930 | ||
17931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
17932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, | |
17933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17934 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17935 | if (PyErr_Occurred()) SWIG_fail; |
17936 | { | |
17937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17938 | (arg1)->SetShow(arg2); | |
17939 | ||
17940 | wxPyEndAllowThreads(__tstate); | |
17941 | if (PyErr_Occurred()) SWIG_fail; | |
17942 | } | |
17943 | Py_INCREF(Py_None); resultobj = Py_None; | |
17944 | return resultobj; | |
17945 | fail: | |
17946 | return NULL; | |
17947 | } | |
17948 | ||
17949 | ||
c370783e | 17950 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17951 | PyObject *resultobj; |
17952 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
17953 | bool result; | |
17954 | PyObject * obj0 = 0 ; | |
17955 | char *kwnames[] = { | |
17956 | (char *) "self", NULL | |
17957 | }; | |
17958 | ||
17959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
17960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, | |
17961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17962 | { | |
17963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17964 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
17965 | ||
17966 | wxPyEndAllowThreads(__tstate); | |
17967 | if (PyErr_Occurred()) SWIG_fail; | |
17968 | } | |
17969 | { | |
17970 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17971 | } | |
17972 | return resultobj; | |
17973 | fail: | |
17974 | return NULL; | |
17975 | } | |
17976 | ||
17977 | ||
c370783e | 17978 | static PyObject * ShowEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17979 | PyObject *obj; |
17980 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17981 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
17982 | Py_INCREF(obj); | |
17983 | return Py_BuildValue((char *)""); | |
17984 | } | |
c370783e | 17985 | static PyObject *_wrap_new_IconizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17986 | PyObject *resultobj; |
17987 | int arg1 = (int) 0 ; | |
b411df4a | 17988 | bool arg2 = (bool) true ; |
d55e5bfc RD |
17989 | wxIconizeEvent *result; |
17990 | PyObject * obj0 = 0 ; | |
17991 | PyObject * obj1 = 0 ; | |
17992 | char *kwnames[] = { | |
17993 | (char *) "id",(char *) "iconized", NULL | |
17994 | }; | |
17995 | ||
17996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
17997 | if (obj0) { | |
c370783e | 17998 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17999 | if (PyErr_Occurred()) SWIG_fail; |
18000 | } | |
18001 | if (obj1) { | |
c370783e | 18002 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18003 | if (PyErr_Occurred()) SWIG_fail; |
18004 | } | |
18005 | { | |
18006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18007 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
18008 | ||
18009 | wxPyEndAllowThreads(__tstate); | |
18010 | if (PyErr_Occurred()) SWIG_fail; | |
18011 | } | |
18012 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); | |
18013 | return resultobj; | |
18014 | fail: | |
18015 | return NULL; | |
18016 | } | |
18017 | ||
18018 | ||
c370783e | 18019 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18020 | PyObject *resultobj; |
18021 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
18022 | bool result; | |
18023 | PyObject * obj0 = 0 ; | |
18024 | char *kwnames[] = { | |
18025 | (char *) "self", NULL | |
18026 | }; | |
18027 | ||
18028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
18029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent, | |
18030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18031 | { | |
18032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18033 | result = (bool)(arg1)->Iconized(); | |
18034 | ||
18035 | wxPyEndAllowThreads(__tstate); | |
18036 | if (PyErr_Occurred()) SWIG_fail; | |
18037 | } | |
18038 | { | |
18039 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18040 | } | |
18041 | return resultobj; | |
18042 | fail: | |
18043 | return NULL; | |
18044 | } | |
18045 | ||
18046 | ||
c370783e | 18047 | static PyObject * IconizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18048 | PyObject *obj; |
18049 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18050 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
18051 | Py_INCREF(obj); | |
18052 | return Py_BuildValue((char *)""); | |
18053 | } | |
c370783e | 18054 | static PyObject *_wrap_new_MaximizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18055 | PyObject *resultobj; |
18056 | int arg1 = (int) 0 ; | |
18057 | wxMaximizeEvent *result; | |
18058 | PyObject * obj0 = 0 ; | |
18059 | char *kwnames[] = { | |
18060 | (char *) "id", NULL | |
18061 | }; | |
18062 | ||
18063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; | |
18064 | if (obj0) { | |
c370783e | 18065 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18066 | if (PyErr_Occurred()) SWIG_fail; |
18067 | } | |
18068 | { | |
18069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18070 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
18071 | ||
18072 | wxPyEndAllowThreads(__tstate); | |
18073 | if (PyErr_Occurred()) SWIG_fail; | |
18074 | } | |
18075 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); | |
18076 | return resultobj; | |
18077 | fail: | |
18078 | return NULL; | |
18079 | } | |
18080 | ||
18081 | ||
c370783e | 18082 | static PyObject * MaximizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18083 | PyObject *obj; |
18084 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18085 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
18086 | Py_INCREF(obj); | |
18087 | return Py_BuildValue((char *)""); | |
18088 | } | |
c370783e | 18089 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18090 | PyObject *resultobj; |
18091 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
18092 | wxPoint result; | |
18093 | PyObject * obj0 = 0 ; | |
18094 | char *kwnames[] = { | |
18095 | (char *) "self", NULL | |
18096 | }; | |
18097 | ||
18098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
18099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
18100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18101 | { | |
18102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18103 | result = (arg1)->GetPosition(); | |
18104 | ||
18105 | wxPyEndAllowThreads(__tstate); | |
18106 | if (PyErr_Occurred()) SWIG_fail; | |
18107 | } | |
18108 | { | |
18109 | wxPoint * resultptr; | |
18110 | resultptr = new wxPoint((wxPoint &) result); | |
18111 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
18112 | } | |
18113 | return resultobj; | |
18114 | fail: | |
18115 | return NULL; | |
18116 | } | |
18117 | ||
18118 | ||
c370783e | 18119 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18120 | PyObject *resultobj; |
18121 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
18122 | int result; | |
18123 | PyObject * obj0 = 0 ; | |
18124 | char *kwnames[] = { | |
18125 | (char *) "self", NULL | |
18126 | }; | |
18127 | ||
18128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
18129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
18130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18131 | { | |
18132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18133 | result = (int)(arg1)->GetNumberOfFiles(); | |
18134 | ||
18135 | wxPyEndAllowThreads(__tstate); | |
18136 | if (PyErr_Occurred()) SWIG_fail; | |
18137 | } | |
c370783e | 18138 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18139 | return resultobj; |
18140 | fail: | |
18141 | return NULL; | |
18142 | } | |
18143 | ||
18144 | ||
c370783e | 18145 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18146 | PyObject *resultobj; |
18147 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
18148 | PyObject *result; | |
18149 | PyObject * obj0 = 0 ; | |
18150 | char *kwnames[] = { | |
18151 | (char *) "self", NULL | |
18152 | }; | |
18153 | ||
18154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
18155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
18156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18157 | { | |
18158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18159 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
18160 | ||
18161 | wxPyEndAllowThreads(__tstate); | |
18162 | if (PyErr_Occurred()) SWIG_fail; | |
18163 | } | |
18164 | resultobj = result; | |
18165 | return resultobj; | |
18166 | fail: | |
18167 | return NULL; | |
18168 | } | |
18169 | ||
18170 | ||
c370783e | 18171 | static PyObject * DropFilesEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18172 | PyObject *obj; |
18173 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18174 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
18175 | Py_INCREF(obj); | |
18176 | return Py_BuildValue((char *)""); | |
18177 | } | |
c370783e | 18178 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18179 | PyObject *resultobj; |
18180 | int arg1 = (int) 0 ; | |
18181 | wxUpdateUIEvent *result; | |
18182 | PyObject * obj0 = 0 ; | |
18183 | char *kwnames[] = { | |
18184 | (char *) "commandId", NULL | |
18185 | }; | |
18186 | ||
18187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; | |
18188 | if (obj0) { | |
c370783e | 18189 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18190 | if (PyErr_Occurred()) SWIG_fail; |
18191 | } | |
18192 | { | |
18193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18194 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
18195 | ||
18196 | wxPyEndAllowThreads(__tstate); | |
18197 | if (PyErr_Occurred()) SWIG_fail; | |
18198 | } | |
18199 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); | |
18200 | return resultobj; | |
18201 | fail: | |
18202 | return NULL; | |
18203 | } | |
18204 | ||
18205 | ||
c370783e | 18206 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18207 | PyObject *resultobj; |
18208 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18209 | bool result; | |
18210 | PyObject * obj0 = 0 ; | |
18211 | char *kwnames[] = { | |
18212 | (char *) "self", NULL | |
18213 | }; | |
18214 | ||
18215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
18216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18218 | { | |
18219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18220 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
18221 | ||
18222 | wxPyEndAllowThreads(__tstate); | |
18223 | if (PyErr_Occurred()) SWIG_fail; | |
18224 | } | |
18225 | { | |
18226 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18227 | } | |
18228 | return resultobj; | |
18229 | fail: | |
18230 | return NULL; | |
18231 | } | |
18232 | ||
18233 | ||
c370783e | 18234 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18235 | PyObject *resultobj; |
18236 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18237 | bool result; | |
18238 | PyObject * obj0 = 0 ; | |
18239 | char *kwnames[] = { | |
18240 | (char *) "self", NULL | |
18241 | }; | |
18242 | ||
18243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
18244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18246 | { | |
18247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18248 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
18249 | ||
18250 | wxPyEndAllowThreads(__tstate); | |
18251 | if (PyErr_Occurred()) SWIG_fail; | |
18252 | } | |
18253 | { | |
18254 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18255 | } | |
18256 | return resultobj; | |
18257 | fail: | |
18258 | return NULL; | |
18259 | } | |
18260 | ||
18261 | ||
c370783e | 18262 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18263 | PyObject *resultobj; |
18264 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18265 | wxString result; | |
18266 | PyObject * obj0 = 0 ; | |
18267 | char *kwnames[] = { | |
18268 | (char *) "self", NULL | |
18269 | }; | |
18270 | ||
18271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
18272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18274 | { | |
18275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18276 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
18277 | ||
18278 | wxPyEndAllowThreads(__tstate); | |
18279 | if (PyErr_Occurred()) SWIG_fail; | |
18280 | } | |
18281 | { | |
18282 | #if wxUSE_UNICODE | |
18283 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18284 | #else | |
18285 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18286 | #endif | |
18287 | } | |
18288 | return resultobj; | |
18289 | fail: | |
18290 | return NULL; | |
18291 | } | |
18292 | ||
18293 | ||
c370783e | 18294 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18295 | PyObject *resultobj; |
18296 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18297 | bool result; | |
18298 | PyObject * obj0 = 0 ; | |
18299 | char *kwnames[] = { | |
18300 | (char *) "self", NULL | |
18301 | }; | |
18302 | ||
18303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
18304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18306 | { | |
18307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18308 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
18309 | ||
18310 | wxPyEndAllowThreads(__tstate); | |
18311 | if (PyErr_Occurred()) SWIG_fail; | |
18312 | } | |
18313 | { | |
18314 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18315 | } | |
18316 | return resultobj; | |
18317 | fail: | |
18318 | return NULL; | |
18319 | } | |
18320 | ||
18321 | ||
c370783e | 18322 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18323 | PyObject *resultobj; |
18324 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18325 | bool result; | |
18326 | PyObject * obj0 = 0 ; | |
18327 | char *kwnames[] = { | |
18328 | (char *) "self", NULL | |
18329 | }; | |
18330 | ||
18331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
18332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18334 | { | |
18335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18336 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
18337 | ||
18338 | wxPyEndAllowThreads(__tstate); | |
18339 | if (PyErr_Occurred()) SWIG_fail; | |
18340 | } | |
18341 | { | |
18342 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18343 | } | |
18344 | return resultobj; | |
18345 | fail: | |
18346 | return NULL; | |
18347 | } | |
18348 | ||
18349 | ||
c370783e | 18350 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18351 | PyObject *resultobj; |
18352 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18353 | bool result; | |
18354 | PyObject * obj0 = 0 ; | |
18355 | char *kwnames[] = { | |
18356 | (char *) "self", NULL | |
18357 | }; | |
18358 | ||
18359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
18360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18362 | { | |
18363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18364 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
18365 | ||
18366 | wxPyEndAllowThreads(__tstate); | |
18367 | if (PyErr_Occurred()) SWIG_fail; | |
18368 | } | |
18369 | { | |
18370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18371 | } | |
18372 | return resultobj; | |
18373 | fail: | |
18374 | return NULL; | |
18375 | } | |
18376 | ||
18377 | ||
c370783e | 18378 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18379 | PyObject *resultobj; |
18380 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18381 | bool arg2 ; | |
18382 | PyObject * obj0 = 0 ; | |
18383 | PyObject * obj1 = 0 ; | |
18384 | char *kwnames[] = { | |
18385 | (char *) "self",(char *) "check", NULL | |
18386 | }; | |
18387 | ||
18388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
18389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18391 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18392 | if (PyErr_Occurred()) SWIG_fail; |
18393 | { | |
18394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18395 | (arg1)->Check(arg2); | |
18396 | ||
18397 | wxPyEndAllowThreads(__tstate); | |
18398 | if (PyErr_Occurred()) SWIG_fail; | |
18399 | } | |
18400 | Py_INCREF(Py_None); resultobj = Py_None; | |
18401 | return resultobj; | |
18402 | fail: | |
18403 | return NULL; | |
18404 | } | |
18405 | ||
18406 | ||
c370783e | 18407 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18408 | PyObject *resultobj; |
18409 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18410 | bool arg2 ; | |
18411 | PyObject * obj0 = 0 ; | |
18412 | PyObject * obj1 = 0 ; | |
18413 | char *kwnames[] = { | |
18414 | (char *) "self",(char *) "enable", NULL | |
18415 | }; | |
18416 | ||
18417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
18418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18420 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18421 | if (PyErr_Occurred()) SWIG_fail; |
18422 | { | |
18423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18424 | (arg1)->Enable(arg2); | |
18425 | ||
18426 | wxPyEndAllowThreads(__tstate); | |
18427 | if (PyErr_Occurred()) SWIG_fail; | |
18428 | } | |
18429 | Py_INCREF(Py_None); resultobj = Py_None; | |
18430 | return resultobj; | |
18431 | fail: | |
18432 | return NULL; | |
18433 | } | |
18434 | ||
18435 | ||
c370783e | 18436 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18437 | PyObject *resultobj; |
18438 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18439 | wxString *arg2 = 0 ; | |
b411df4a | 18440 | bool temp2 = false ; |
d55e5bfc RD |
18441 | PyObject * obj0 = 0 ; |
18442 | PyObject * obj1 = 0 ; | |
18443 | char *kwnames[] = { | |
18444 | (char *) "self",(char *) "text", NULL | |
18445 | }; | |
18446 | ||
18447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
18448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18450 | { | |
18451 | arg2 = wxString_in_helper(obj1); | |
18452 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 18453 | temp2 = true; |
d55e5bfc RD |
18454 | } |
18455 | { | |
18456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18457 | (arg1)->SetText((wxString const &)*arg2); | |
18458 | ||
18459 | wxPyEndAllowThreads(__tstate); | |
18460 | if (PyErr_Occurred()) SWIG_fail; | |
18461 | } | |
18462 | Py_INCREF(Py_None); resultobj = Py_None; | |
18463 | { | |
18464 | if (temp2) | |
18465 | delete arg2; | |
18466 | } | |
18467 | return resultobj; | |
18468 | fail: | |
18469 | { | |
18470 | if (temp2) | |
18471 | delete arg2; | |
18472 | } | |
18473 | return NULL; | |
18474 | } | |
18475 | ||
18476 | ||
c370783e | 18477 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18478 | PyObject *resultobj; |
18479 | long arg1 ; | |
18480 | PyObject * obj0 = 0 ; | |
18481 | char *kwnames[] = { | |
18482 | (char *) "updateInterval", NULL | |
18483 | }; | |
18484 | ||
18485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; | |
c370783e | 18486 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
18487 | if (PyErr_Occurred()) SWIG_fail; |
18488 | { | |
18489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18490 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
18491 | ||
18492 | wxPyEndAllowThreads(__tstate); | |
18493 | if (PyErr_Occurred()) SWIG_fail; | |
18494 | } | |
18495 | Py_INCREF(Py_None); resultobj = Py_None; | |
18496 | return resultobj; | |
18497 | fail: | |
18498 | return NULL; | |
18499 | } | |
18500 | ||
18501 | ||
c370783e | 18502 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18503 | PyObject *resultobj; |
18504 | long result; | |
18505 | char *kwnames[] = { | |
18506 | NULL | |
18507 | }; | |
18508 | ||
18509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
18510 | { | |
18511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18512 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
18513 | ||
18514 | wxPyEndAllowThreads(__tstate); | |
18515 | if (PyErr_Occurred()) SWIG_fail; | |
18516 | } | |
c370783e | 18517 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
18518 | return resultobj; |
18519 | fail: | |
18520 | return NULL; | |
18521 | } | |
18522 | ||
18523 | ||
c370783e | 18524 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18525 | PyObject *resultobj; |
18526 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18527 | bool result; | |
18528 | PyObject * obj0 = 0 ; | |
18529 | char *kwnames[] = { | |
18530 | (char *) "win", NULL | |
18531 | }; | |
18532 | ||
18533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
18534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
18535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18536 | { | |
18537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18538 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
18539 | ||
18540 | wxPyEndAllowThreads(__tstate); | |
18541 | if (PyErr_Occurred()) SWIG_fail; | |
18542 | } | |
18543 | { | |
18544 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18545 | } | |
18546 | return resultobj; | |
18547 | fail: | |
18548 | return NULL; | |
18549 | } | |
18550 | ||
18551 | ||
c370783e | 18552 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18553 | PyObject *resultobj; |
18554 | char *kwnames[] = { | |
18555 | NULL | |
18556 | }; | |
18557 | ||
18558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
18559 | { | |
18560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18561 | wxUpdateUIEvent::ResetUpdateTime(); | |
18562 | ||
18563 | wxPyEndAllowThreads(__tstate); | |
18564 | if (PyErr_Occurred()) SWIG_fail; | |
18565 | } | |
18566 | Py_INCREF(Py_None); resultobj = Py_None; | |
18567 | return resultobj; | |
18568 | fail: | |
18569 | return NULL; | |
18570 | } | |
18571 | ||
18572 | ||
c370783e | 18573 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18574 | PyObject *resultobj; |
18575 | int arg1 ; | |
18576 | PyObject * obj0 = 0 ; | |
18577 | char *kwnames[] = { | |
18578 | (char *) "mode", NULL | |
18579 | }; | |
18580 | ||
18581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; | |
c370783e | 18582 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18583 | if (PyErr_Occurred()) SWIG_fail; |
18584 | { | |
18585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18586 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
18587 | ||
18588 | wxPyEndAllowThreads(__tstate); | |
18589 | if (PyErr_Occurred()) SWIG_fail; | |
18590 | } | |
18591 | Py_INCREF(Py_None); resultobj = Py_None; | |
18592 | return resultobj; | |
18593 | fail: | |
18594 | return NULL; | |
18595 | } | |
18596 | ||
18597 | ||
c370783e | 18598 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18599 | PyObject *resultobj; |
18600 | int result; | |
18601 | char *kwnames[] = { | |
18602 | NULL | |
18603 | }; | |
18604 | ||
18605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
18606 | { | |
18607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18608 | result = (int)wxUpdateUIEvent::GetMode(); | |
18609 | ||
18610 | wxPyEndAllowThreads(__tstate); | |
18611 | if (PyErr_Occurred()) SWIG_fail; | |
18612 | } | |
c370783e | 18613 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18614 | return resultobj; |
18615 | fail: | |
18616 | return NULL; | |
18617 | } | |
18618 | ||
18619 | ||
c370783e | 18620 | static PyObject * UpdateUIEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18621 | PyObject *obj; |
18622 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18623 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
18624 | Py_INCREF(obj); | |
18625 | return Py_BuildValue((char *)""); | |
18626 | } | |
c370783e | 18627 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18628 | PyObject *resultobj; |
18629 | wxSysColourChangedEvent *result; | |
18630 | char *kwnames[] = { | |
18631 | NULL | |
18632 | }; | |
18633 | ||
18634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
18635 | { | |
18636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18637 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
18638 | ||
18639 | wxPyEndAllowThreads(__tstate); | |
18640 | if (PyErr_Occurred()) SWIG_fail; | |
18641 | } | |
18642 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); | |
18643 | return resultobj; | |
18644 | fail: | |
18645 | return NULL; | |
18646 | } | |
18647 | ||
18648 | ||
c370783e | 18649 | static PyObject * SysColourChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18650 | PyObject *obj; |
18651 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18652 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
18653 | Py_INCREF(obj); | |
18654 | return Py_BuildValue((char *)""); | |
18655 | } | |
c370783e | 18656 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18657 | PyObject *resultobj; |
18658 | int arg1 = (int) 0 ; | |
18659 | wxWindow *arg2 = (wxWindow *) NULL ; | |
18660 | wxMouseCaptureChangedEvent *result; | |
18661 | PyObject * obj0 = 0 ; | |
18662 | PyObject * obj1 = 0 ; | |
18663 | char *kwnames[] = { | |
18664 | (char *) "winid",(char *) "gainedCapture", NULL | |
18665 | }; | |
18666 | ||
18667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; | |
18668 | if (obj0) { | |
c370783e | 18669 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18670 | if (PyErr_Occurred()) SWIG_fail; |
18671 | } | |
18672 | if (obj1) { | |
18673 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18675 | } | |
18676 | { | |
18677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18678 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
18679 | ||
18680 | wxPyEndAllowThreads(__tstate); | |
18681 | if (PyErr_Occurred()) SWIG_fail; | |
18682 | } | |
18683 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); | |
18684 | return resultobj; | |
18685 | fail: | |
18686 | return NULL; | |
18687 | } | |
18688 | ||
18689 | ||
c370783e | 18690 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18691 | PyObject *resultobj; |
18692 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
18693 | wxWindow *result; | |
18694 | PyObject * obj0 = 0 ; | |
18695 | char *kwnames[] = { | |
18696 | (char *) "self", NULL | |
18697 | }; | |
18698 | ||
18699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
18700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent, | |
18701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18702 | { | |
18703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18704 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
18705 | ||
18706 | wxPyEndAllowThreads(__tstate); | |
18707 | if (PyErr_Occurred()) SWIG_fail; | |
18708 | } | |
18709 | { | |
412d302d | 18710 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18711 | } |
18712 | return resultobj; | |
18713 | fail: | |
18714 | return NULL; | |
18715 | } | |
18716 | ||
18717 | ||
c370783e | 18718 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18719 | PyObject *obj; |
18720 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18721 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
18722 | Py_INCREF(obj); | |
18723 | return Py_BuildValue((char *)""); | |
18724 | } | |
c370783e | 18725 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18726 | PyObject *resultobj; |
18727 | wxDisplayChangedEvent *result; | |
18728 | char *kwnames[] = { | |
18729 | NULL | |
18730 | }; | |
18731 | ||
18732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
18733 | { | |
18734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18735 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
18736 | ||
18737 | wxPyEndAllowThreads(__tstate); | |
18738 | if (PyErr_Occurred()) SWIG_fail; | |
18739 | } | |
18740 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); | |
18741 | return resultobj; | |
18742 | fail: | |
18743 | return NULL; | |
18744 | } | |
18745 | ||
18746 | ||
c370783e | 18747 | static PyObject * DisplayChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18748 | PyObject *obj; |
18749 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18750 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
18751 | Py_INCREF(obj); | |
18752 | return Py_BuildValue((char *)""); | |
18753 | } | |
c370783e | 18754 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18755 | PyObject *resultobj; |
18756 | int arg1 = (int) 0 ; | |
18757 | wxPaletteChangedEvent *result; | |
18758 | PyObject * obj0 = 0 ; | |
18759 | char *kwnames[] = { | |
18760 | (char *) "id", NULL | |
18761 | }; | |
18762 | ||
18763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; | |
18764 | if (obj0) { | |
c370783e | 18765 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18766 | if (PyErr_Occurred()) SWIG_fail; |
18767 | } | |
18768 | { | |
18769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18770 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
18771 | ||
18772 | wxPyEndAllowThreads(__tstate); | |
18773 | if (PyErr_Occurred()) SWIG_fail; | |
18774 | } | |
18775 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); | |
18776 | return resultobj; | |
18777 | fail: | |
18778 | return NULL; | |
18779 | } | |
18780 | ||
18781 | ||
c370783e | 18782 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18783 | PyObject *resultobj; |
18784 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18785 | wxWindow *arg2 = (wxWindow *) 0 ; | |
18786 | PyObject * obj0 = 0 ; | |
18787 | PyObject * obj1 = 0 ; | |
18788 | char *kwnames[] = { | |
18789 | (char *) "self",(char *) "win", NULL | |
18790 | }; | |
18791 | ||
18792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
18793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, | |
18794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18795 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18797 | { | |
18798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18799 | (arg1)->SetChangedWindow(arg2); | |
18800 | ||
18801 | wxPyEndAllowThreads(__tstate); | |
18802 | if (PyErr_Occurred()) SWIG_fail; | |
18803 | } | |
18804 | Py_INCREF(Py_None); resultobj = Py_None; | |
18805 | return resultobj; | |
18806 | fail: | |
18807 | return NULL; | |
18808 | } | |
18809 | ||
18810 | ||
c370783e | 18811 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18812 | PyObject *resultobj; |
18813 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
18814 | wxWindow *result; | |
18815 | PyObject * obj0 = 0 ; | |
18816 | char *kwnames[] = { | |
18817 | (char *) "self", NULL | |
18818 | }; | |
18819 | ||
18820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
18821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, | |
18822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18823 | { | |
18824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18825 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
18826 | ||
18827 | wxPyEndAllowThreads(__tstate); | |
18828 | if (PyErr_Occurred()) SWIG_fail; | |
18829 | } | |
18830 | { | |
412d302d | 18831 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18832 | } |
18833 | return resultobj; | |
18834 | fail: | |
18835 | return NULL; | |
18836 | } | |
18837 | ||
18838 | ||
c370783e | 18839 | static PyObject * PaletteChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18840 | PyObject *obj; |
18841 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18842 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
18843 | Py_INCREF(obj); | |
18844 | return Py_BuildValue((char *)""); | |
18845 | } | |
c370783e | 18846 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18847 | PyObject *resultobj; |
18848 | int arg1 = (int) 0 ; | |
18849 | wxQueryNewPaletteEvent *result; | |
18850 | PyObject * obj0 = 0 ; | |
18851 | char *kwnames[] = { | |
18852 | (char *) "winid", NULL | |
18853 | }; | |
18854 | ||
18855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; | |
18856 | if (obj0) { | |
c370783e | 18857 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18858 | if (PyErr_Occurred()) SWIG_fail; |
18859 | } | |
18860 | { | |
18861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18862 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
18863 | ||
18864 | wxPyEndAllowThreads(__tstate); | |
18865 | if (PyErr_Occurred()) SWIG_fail; | |
18866 | } | |
18867 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); | |
18868 | return resultobj; | |
18869 | fail: | |
18870 | return NULL; | |
18871 | } | |
18872 | ||
18873 | ||
c370783e | 18874 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18875 | PyObject *resultobj; |
18876 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18877 | bool arg2 ; | |
18878 | PyObject * obj0 = 0 ; | |
18879 | PyObject * obj1 = 0 ; | |
18880 | char *kwnames[] = { | |
18881 | (char *) "self",(char *) "realized", NULL | |
18882 | }; | |
18883 | ||
18884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
18885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, | |
18886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18887 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18888 | if (PyErr_Occurred()) SWIG_fail; |
18889 | { | |
18890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18891 | (arg1)->SetPaletteRealized(arg2); | |
18892 | ||
18893 | wxPyEndAllowThreads(__tstate); | |
18894 | if (PyErr_Occurred()) SWIG_fail; | |
18895 | } | |
18896 | Py_INCREF(Py_None); resultobj = Py_None; | |
18897 | return resultobj; | |
18898 | fail: | |
18899 | return NULL; | |
18900 | } | |
18901 | ||
18902 | ||
c370783e | 18903 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18904 | PyObject *resultobj; |
18905 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
18906 | bool result; | |
18907 | PyObject * obj0 = 0 ; | |
18908 | char *kwnames[] = { | |
18909 | (char *) "self", NULL | |
18910 | }; | |
18911 | ||
18912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
18913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, | |
18914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18915 | { | |
18916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18917 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
18918 | ||
18919 | wxPyEndAllowThreads(__tstate); | |
18920 | if (PyErr_Occurred()) SWIG_fail; | |
18921 | } | |
18922 | { | |
18923 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18924 | } | |
18925 | return resultobj; | |
18926 | fail: | |
18927 | return NULL; | |
18928 | } | |
18929 | ||
18930 | ||
c370783e | 18931 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18932 | PyObject *obj; |
18933 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18934 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
18935 | Py_INCREF(obj); | |
18936 | return Py_BuildValue((char *)""); | |
18937 | } | |
c370783e | 18938 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18939 | PyObject *resultobj; |
18940 | wxNavigationKeyEvent *result; | |
18941 | char *kwnames[] = { | |
18942 | NULL | |
18943 | }; | |
18944 | ||
18945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
18946 | { | |
18947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18948 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
18949 | ||
18950 | wxPyEndAllowThreads(__tstate); | |
18951 | if (PyErr_Occurred()) SWIG_fail; | |
18952 | } | |
18953 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); | |
18954 | return resultobj; | |
18955 | fail: | |
18956 | return NULL; | |
18957 | } | |
18958 | ||
18959 | ||
c370783e | 18960 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18961 | PyObject *resultobj; |
18962 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18963 | bool result; | |
18964 | PyObject * obj0 = 0 ; | |
18965 | char *kwnames[] = { | |
18966 | (char *) "self", NULL | |
18967 | }; | |
18968 | ||
18969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
18970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
18971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18972 | { | |
18973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18974 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
18975 | ||
18976 | wxPyEndAllowThreads(__tstate); | |
18977 | if (PyErr_Occurred()) SWIG_fail; | |
18978 | } | |
18979 | { | |
18980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18981 | } | |
18982 | return resultobj; | |
18983 | fail: | |
18984 | return NULL; | |
18985 | } | |
18986 | ||
18987 | ||
c370783e | 18988 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18989 | PyObject *resultobj; |
18990 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
18991 | bool arg2 ; | |
18992 | PyObject * obj0 = 0 ; | |
18993 | PyObject * obj1 = 0 ; | |
18994 | char *kwnames[] = { | |
908b74cd | 18995 | (char *) "self",(char *) "forward", NULL |
d55e5bfc RD |
18996 | }; |
18997 | ||
18998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
18999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19001 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19002 | if (PyErr_Occurred()) SWIG_fail; |
19003 | { | |
19004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19005 | (arg1)->SetDirection(arg2); | |
19006 | ||
19007 | wxPyEndAllowThreads(__tstate); | |
19008 | if (PyErr_Occurred()) SWIG_fail; | |
19009 | } | |
19010 | Py_INCREF(Py_None); resultobj = Py_None; | |
19011 | return resultobj; | |
19012 | fail: | |
19013 | return NULL; | |
19014 | } | |
19015 | ||
19016 | ||
c370783e | 19017 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19018 | PyObject *resultobj; |
19019 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19020 | bool result; | |
19021 | PyObject * obj0 = 0 ; | |
19022 | char *kwnames[] = { | |
19023 | (char *) "self", NULL | |
19024 | }; | |
19025 | ||
19026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
19027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19029 | { | |
19030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19031 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
19032 | ||
19033 | wxPyEndAllowThreads(__tstate); | |
19034 | if (PyErr_Occurred()) SWIG_fail; | |
19035 | } | |
19036 | { | |
19037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19038 | } | |
19039 | return resultobj; | |
19040 | fail: | |
19041 | return NULL; | |
19042 | } | |
19043 | ||
19044 | ||
c370783e | 19045 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19046 | PyObject *resultobj; |
19047 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19048 | bool arg2 ; | |
19049 | PyObject * obj0 = 0 ; | |
19050 | PyObject * obj1 = 0 ; | |
19051 | char *kwnames[] = { | |
908b74cd | 19052 | (char *) "self",(char *) "ischange", NULL |
d55e5bfc RD |
19053 | }; |
19054 | ||
19055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
19056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19058 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19059 | if (PyErr_Occurred()) SWIG_fail; |
19060 | { | |
19061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19062 | (arg1)->SetWindowChange(arg2); | |
19063 | ||
19064 | wxPyEndAllowThreads(__tstate); | |
19065 | if (PyErr_Occurred()) SWIG_fail; | |
19066 | } | |
19067 | Py_INCREF(Py_None); resultobj = Py_None; | |
19068 | return resultobj; | |
19069 | fail: | |
19070 | return NULL; | |
19071 | } | |
19072 | ||
19073 | ||
c370783e | 19074 | static PyObject *_wrap_NavigationKeyEvent_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
19075 | PyObject *resultobj; |
19076 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19077 | long arg2 ; | |
19078 | PyObject * obj0 = 0 ; | |
19079 | PyObject * obj1 = 0 ; | |
19080 | char *kwnames[] = { | |
19081 | (char *) "self",(char *) "flags", NULL | |
19082 | }; | |
19083 | ||
19084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
19085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19087 | arg2 = (long)SWIG_As_long(obj1); |
908b74cd RD |
19088 | if (PyErr_Occurred()) SWIG_fail; |
19089 | { | |
19090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19091 | (arg1)->SetFlags(arg2); | |
19092 | ||
19093 | wxPyEndAllowThreads(__tstate); | |
19094 | if (PyErr_Occurred()) SWIG_fail; | |
19095 | } | |
19096 | Py_INCREF(Py_None); resultobj = Py_None; | |
19097 | return resultobj; | |
19098 | fail: | |
19099 | return NULL; | |
19100 | } | |
19101 | ||
19102 | ||
c370783e | 19103 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19104 | PyObject *resultobj; |
19105 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19106 | wxWindow *result; | |
19107 | PyObject * obj0 = 0 ; | |
19108 | char *kwnames[] = { | |
19109 | (char *) "self", NULL | |
19110 | }; | |
19111 | ||
19112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
19113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19115 | { | |
19116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19117 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
19118 | ||
19119 | wxPyEndAllowThreads(__tstate); | |
19120 | if (PyErr_Occurred()) SWIG_fail; | |
19121 | } | |
19122 | { | |
412d302d | 19123 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19124 | } |
19125 | return resultobj; | |
19126 | fail: | |
19127 | return NULL; | |
19128 | } | |
19129 | ||
19130 | ||
c370783e | 19131 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19132 | PyObject *resultobj; |
19133 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19134 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19135 | PyObject * obj0 = 0 ; | |
19136 | PyObject * obj1 = 0 ; | |
19137 | char *kwnames[] = { | |
19138 | (char *) "self",(char *) "win", NULL | |
19139 | }; | |
19140 | ||
19141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
19142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19144 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19146 | { | |
19147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19148 | (arg1)->SetCurrentFocus(arg2); | |
19149 | ||
19150 | wxPyEndAllowThreads(__tstate); | |
19151 | if (PyErr_Occurred()) SWIG_fail; | |
19152 | } | |
19153 | Py_INCREF(Py_None); resultobj = Py_None; | |
19154 | return resultobj; | |
19155 | fail: | |
19156 | return NULL; | |
19157 | } | |
19158 | ||
19159 | ||
c370783e | 19160 | static PyObject * NavigationKeyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19161 | PyObject *obj; |
19162 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19163 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
19164 | Py_INCREF(obj); | |
19165 | return Py_BuildValue((char *)""); | |
19166 | } | |
c370783e | 19167 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19168 | PyObject *resultobj; |
19169 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19170 | wxWindowCreateEvent *result; | |
19171 | PyObject * obj0 = 0 ; | |
19172 | char *kwnames[] = { | |
19173 | (char *) "win", NULL | |
19174 | }; | |
19175 | ||
19176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
19177 | if (obj0) { | |
19178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19180 | } | |
19181 | { | |
19182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19183 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
19184 | ||
19185 | wxPyEndAllowThreads(__tstate); | |
19186 | if (PyErr_Occurred()) SWIG_fail; | |
19187 | } | |
19188 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); | |
19189 | return resultobj; | |
19190 | fail: | |
19191 | return NULL; | |
19192 | } | |
19193 | ||
19194 | ||
c370783e | 19195 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19196 | PyObject *resultobj; |
19197 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
19198 | wxWindow *result; | |
19199 | PyObject * obj0 = 0 ; | |
19200 | char *kwnames[] = { | |
19201 | (char *) "self", NULL | |
19202 | }; | |
19203 | ||
19204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
19205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent, | |
19206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19207 | { | |
19208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19209 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
19210 | ||
19211 | wxPyEndAllowThreads(__tstate); | |
19212 | if (PyErr_Occurred()) SWIG_fail; | |
19213 | } | |
19214 | { | |
412d302d | 19215 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19216 | } |
19217 | return resultobj; | |
19218 | fail: | |
19219 | return NULL; | |
19220 | } | |
19221 | ||
19222 | ||
c370783e | 19223 | static PyObject * WindowCreateEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19224 | PyObject *obj; |
19225 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19226 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
19227 | Py_INCREF(obj); | |
19228 | return Py_BuildValue((char *)""); | |
19229 | } | |
c370783e | 19230 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19231 | PyObject *resultobj; |
19232 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19233 | wxWindowDestroyEvent *result; | |
19234 | PyObject * obj0 = 0 ; | |
19235 | char *kwnames[] = { | |
19236 | (char *) "win", NULL | |
19237 | }; | |
19238 | ||
19239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
19240 | if (obj0) { | |
19241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19243 | } | |
19244 | { | |
19245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19246 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
19247 | ||
19248 | wxPyEndAllowThreads(__tstate); | |
19249 | if (PyErr_Occurred()) SWIG_fail; | |
19250 | } | |
19251 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); | |
19252 | return resultobj; | |
19253 | fail: | |
19254 | return NULL; | |
19255 | } | |
19256 | ||
19257 | ||
c370783e | 19258 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19259 | PyObject *resultobj; |
19260 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
19261 | wxWindow *result; | |
19262 | PyObject * obj0 = 0 ; | |
19263 | char *kwnames[] = { | |
19264 | (char *) "self", NULL | |
19265 | }; | |
19266 | ||
19267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
19268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent, | |
19269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19270 | { | |
19271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19272 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
19273 | ||
19274 | wxPyEndAllowThreads(__tstate); | |
19275 | if (PyErr_Occurred()) SWIG_fail; | |
19276 | } | |
19277 | { | |
412d302d | 19278 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19279 | } |
19280 | return resultobj; | |
19281 | fail: | |
19282 | return NULL; | |
19283 | } | |
19284 | ||
19285 | ||
c370783e | 19286 | static PyObject * WindowDestroyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19287 | PyObject *obj; |
19288 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19289 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
19290 | Py_INCREF(obj); | |
19291 | return Py_BuildValue((char *)""); | |
19292 | } | |
c370783e | 19293 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19294 | PyObject *resultobj; |
19295 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19296 | int arg2 = (int) 0 ; | |
19297 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
19298 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19299 | wxContextMenuEvent *result; | |
19300 | wxPoint temp3 ; | |
19301 | PyObject * obj0 = 0 ; | |
19302 | PyObject * obj1 = 0 ; | |
19303 | PyObject * obj2 = 0 ; | |
19304 | char *kwnames[] = { | |
19305 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
19306 | }; | |
19307 | ||
19308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19309 | if (obj0) { | |
c370783e | 19310 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
19311 | if (PyErr_Occurred()) SWIG_fail; |
19312 | } | |
19313 | if (obj1) { | |
c370783e | 19314 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19315 | if (PyErr_Occurred()) SWIG_fail; |
19316 | } | |
19317 | if (obj2) { | |
19318 | { | |
19319 | arg3 = &temp3; | |
19320 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19321 | } | |
19322 | } | |
19323 | { | |
19324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19325 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
19326 | ||
19327 | wxPyEndAllowThreads(__tstate); | |
19328 | if (PyErr_Occurred()) SWIG_fail; | |
19329 | } | |
19330 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); | |
19331 | return resultobj; | |
19332 | fail: | |
19333 | return NULL; | |
19334 | } | |
19335 | ||
19336 | ||
c370783e | 19337 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19338 | PyObject *resultobj; |
19339 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
19340 | wxPoint *result; | |
19341 | PyObject * obj0 = 0 ; | |
19342 | char *kwnames[] = { | |
19343 | (char *) "self", NULL | |
19344 | }; | |
19345 | ||
19346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
19347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, | |
19348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19349 | { | |
19350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19351 | { | |
19352 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
19353 | result = (wxPoint *) &_result_ref; | |
19354 | } | |
19355 | ||
19356 | wxPyEndAllowThreads(__tstate); | |
19357 | if (PyErr_Occurred()) SWIG_fail; | |
19358 | } | |
19359 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
19360 | return resultobj; | |
19361 | fail: | |
19362 | return NULL; | |
19363 | } | |
19364 | ||
19365 | ||
c370783e | 19366 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19367 | PyObject *resultobj; |
19368 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
19369 | wxPoint *arg2 = 0 ; | |
19370 | wxPoint temp2 ; | |
19371 | PyObject * obj0 = 0 ; | |
19372 | PyObject * obj1 = 0 ; | |
19373 | char *kwnames[] = { | |
19374 | (char *) "self",(char *) "pos", NULL | |
19375 | }; | |
19376 | ||
19377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
19378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, | |
19379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19380 | { | |
19381 | arg2 = &temp2; | |
19382 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19383 | } | |
19384 | { | |
19385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19386 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
19387 | ||
19388 | wxPyEndAllowThreads(__tstate); | |
19389 | if (PyErr_Occurred()) SWIG_fail; | |
19390 | } | |
19391 | Py_INCREF(Py_None); resultobj = Py_None; | |
19392 | return resultobj; | |
19393 | fail: | |
19394 | return NULL; | |
19395 | } | |
19396 | ||
19397 | ||
c370783e | 19398 | static PyObject * ContextMenuEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19399 | PyObject *obj; |
19400 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19401 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
19402 | Py_INCREF(obj); | |
19403 | return Py_BuildValue((char *)""); | |
19404 | } | |
c370783e | 19405 | static PyObject *_wrap_new_IdleEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19406 | PyObject *resultobj; |
19407 | wxIdleEvent *result; | |
19408 | char *kwnames[] = { | |
19409 | NULL | |
19410 | }; | |
19411 | ||
19412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
19413 | { | |
19414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19415 | result = (wxIdleEvent *)new wxIdleEvent(); | |
19416 | ||
19417 | wxPyEndAllowThreads(__tstate); | |
19418 | if (PyErr_Occurred()) SWIG_fail; | |
19419 | } | |
19420 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); | |
19421 | return resultobj; | |
19422 | fail: | |
19423 | return NULL; | |
19424 | } | |
19425 | ||
19426 | ||
c370783e | 19427 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19428 | PyObject *resultobj; |
19429 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
b411df4a | 19430 | bool arg2 = (bool) true ; |
d55e5bfc RD |
19431 | PyObject * obj0 = 0 ; |
19432 | PyObject * obj1 = 0 ; | |
19433 | char *kwnames[] = { | |
19434 | (char *) "self",(char *) "needMore", NULL | |
19435 | }; | |
19436 | ||
19437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
19438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, | |
19439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19440 | if (obj1) { | |
c370783e | 19441 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19442 | if (PyErr_Occurred()) SWIG_fail; |
19443 | } | |
19444 | { | |
19445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19446 | (arg1)->RequestMore(arg2); | |
19447 | ||
19448 | wxPyEndAllowThreads(__tstate); | |
19449 | if (PyErr_Occurred()) SWIG_fail; | |
19450 | } | |
19451 | Py_INCREF(Py_None); resultobj = Py_None; | |
19452 | return resultobj; | |
19453 | fail: | |
19454 | return NULL; | |
19455 | } | |
19456 | ||
19457 | ||
c370783e | 19458 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19459 | PyObject *resultobj; |
19460 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
19461 | bool result; | |
19462 | PyObject * obj0 = 0 ; | |
19463 | char *kwnames[] = { | |
19464 | (char *) "self", NULL | |
19465 | }; | |
19466 | ||
19467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
19468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, | |
19469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19470 | { | |
19471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19472 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
19473 | ||
19474 | wxPyEndAllowThreads(__tstate); | |
19475 | if (PyErr_Occurred()) SWIG_fail; | |
19476 | } | |
19477 | { | |
19478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19479 | } | |
19480 | return resultobj; | |
19481 | fail: | |
19482 | return NULL; | |
19483 | } | |
19484 | ||
19485 | ||
c370783e | 19486 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19487 | PyObject *resultobj; |
19488 | int arg1 ; | |
19489 | PyObject * obj0 = 0 ; | |
19490 | char *kwnames[] = { | |
19491 | (char *) "mode", NULL | |
19492 | }; | |
19493 | ||
19494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; | |
c370783e | 19495 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
19496 | if (PyErr_Occurred()) SWIG_fail; |
19497 | { | |
19498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19499 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
19500 | ||
19501 | wxPyEndAllowThreads(__tstate); | |
19502 | if (PyErr_Occurred()) SWIG_fail; | |
19503 | } | |
19504 | Py_INCREF(Py_None); resultobj = Py_None; | |
19505 | return resultobj; | |
19506 | fail: | |
19507 | return NULL; | |
19508 | } | |
19509 | ||
19510 | ||
c370783e | 19511 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19512 | PyObject *resultobj; |
19513 | int result; | |
19514 | char *kwnames[] = { | |
19515 | NULL | |
19516 | }; | |
19517 | ||
19518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
19519 | { | |
19520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19521 | result = (int)wxIdleEvent::GetMode(); | |
19522 | ||
19523 | wxPyEndAllowThreads(__tstate); | |
19524 | if (PyErr_Occurred()) SWIG_fail; | |
19525 | } | |
c370783e | 19526 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19527 | return resultobj; |
19528 | fail: | |
19529 | return NULL; | |
19530 | } | |
19531 | ||
19532 | ||
c370783e | 19533 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19534 | PyObject *resultobj; |
19535 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19536 | bool result; | |
19537 | PyObject * obj0 = 0 ; | |
19538 | char *kwnames[] = { | |
19539 | (char *) "win", NULL | |
19540 | }; | |
19541 | ||
19542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
19543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19545 | { | |
19546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19547 | result = (bool)wxIdleEvent::CanSend(arg1); | |
19548 | ||
19549 | wxPyEndAllowThreads(__tstate); | |
19550 | if (PyErr_Occurred()) SWIG_fail; | |
19551 | } | |
19552 | { | |
19553 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19554 | } | |
19555 | return resultobj; | |
19556 | fail: | |
19557 | return NULL; | |
19558 | } | |
19559 | ||
19560 | ||
c370783e | 19561 | static PyObject * IdleEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19562 | PyObject *obj; |
19563 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19564 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
19565 | Py_INCREF(obj); | |
19566 | return Py_BuildValue((char *)""); | |
19567 | } | |
c370783e | 19568 | static PyObject *_wrap_new_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19569 | PyObject *resultobj; |
19570 | int arg1 = (int) 0 ; | |
19571 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
19572 | wxPyEvent *result; | |
19573 | PyObject * obj0 = 0 ; | |
19574 | PyObject * obj1 = 0 ; | |
19575 | char *kwnames[] = { | |
19576 | (char *) "winid",(char *) "commandType", NULL | |
19577 | }; | |
19578 | ||
19579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; | |
19580 | if (obj0) { | |
c370783e | 19581 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
19582 | if (PyErr_Occurred()) SWIG_fail; |
19583 | } | |
19584 | if (obj1) { | |
c370783e | 19585 | arg2 = (wxEventType)SWIG_As_int(obj1); |
d55e5bfc RD |
19586 | if (PyErr_Occurred()) SWIG_fail; |
19587 | } | |
19588 | { | |
19589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19590 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
19591 | ||
19592 | wxPyEndAllowThreads(__tstate); | |
19593 | if (PyErr_Occurred()) SWIG_fail; | |
19594 | } | |
19595 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); | |
19596 | return resultobj; | |
19597 | fail: | |
19598 | return NULL; | |
19599 | } | |
19600 | ||
19601 | ||
c370783e | 19602 | static PyObject *_wrap_delete_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19603 | PyObject *resultobj; |
19604 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19605 | PyObject * obj0 = 0 ; | |
19606 | char *kwnames[] = { | |
19607 | (char *) "self", NULL | |
19608 | }; | |
19609 | ||
19610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
19611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19613 | { | |
19614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19615 | delete arg1; | |
19616 | ||
19617 | wxPyEndAllowThreads(__tstate); | |
19618 | if (PyErr_Occurred()) SWIG_fail; | |
19619 | } | |
19620 | Py_INCREF(Py_None); resultobj = Py_None; | |
19621 | return resultobj; | |
19622 | fail: | |
19623 | return NULL; | |
19624 | } | |
19625 | ||
19626 | ||
c370783e | 19627 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19628 | PyObject *resultobj; |
19629 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19630 | PyObject *arg2 = (PyObject *) 0 ; | |
19631 | PyObject * obj0 = 0 ; | |
19632 | PyObject * obj1 = 0 ; | |
19633 | char *kwnames[] = { | |
19634 | (char *) "self",(char *) "self", NULL | |
19635 | }; | |
19636 | ||
19637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
19638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19640 | arg2 = obj1; | |
19641 | { | |
19642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19643 | (arg1)->SetSelf(arg2); | |
19644 | ||
19645 | wxPyEndAllowThreads(__tstate); | |
19646 | if (PyErr_Occurred()) SWIG_fail; | |
19647 | } | |
19648 | Py_INCREF(Py_None); resultobj = Py_None; | |
19649 | return resultobj; | |
19650 | fail: | |
19651 | return NULL; | |
19652 | } | |
19653 | ||
19654 | ||
c370783e | 19655 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19656 | PyObject *resultobj; |
19657 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19658 | PyObject *result; | |
19659 | PyObject * obj0 = 0 ; | |
19660 | char *kwnames[] = { | |
19661 | (char *) "self", NULL | |
19662 | }; | |
19663 | ||
19664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
19665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19667 | { | |
19668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19669 | result = (PyObject *)(arg1)->GetSelf(); | |
19670 | ||
19671 | wxPyEndAllowThreads(__tstate); | |
19672 | if (PyErr_Occurred()) SWIG_fail; | |
19673 | } | |
19674 | resultobj = result; | |
19675 | return resultobj; | |
19676 | fail: | |
19677 | return NULL; | |
19678 | } | |
19679 | ||
19680 | ||
c370783e | 19681 | static PyObject * PyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19682 | PyObject *obj; |
19683 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19684 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
19685 | Py_INCREF(obj); | |
19686 | return Py_BuildValue((char *)""); | |
19687 | } | |
c370783e | 19688 | static PyObject *_wrap_new_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19689 | PyObject *resultobj; |
19690 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19691 | int arg2 = (int) 0 ; | |
19692 | wxPyCommandEvent *result; | |
19693 | PyObject * obj0 = 0 ; | |
19694 | PyObject * obj1 = 0 ; | |
19695 | char *kwnames[] = { | |
19696 | (char *) "commandType",(char *) "id", NULL | |
19697 | }; | |
19698 | ||
19699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
19700 | if (obj0) { | |
c370783e | 19701 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
19702 | if (PyErr_Occurred()) SWIG_fail; |
19703 | } | |
19704 | if (obj1) { | |
c370783e | 19705 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19706 | if (PyErr_Occurred()) SWIG_fail; |
19707 | } | |
19708 | { | |
19709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19710 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
19711 | ||
19712 | wxPyEndAllowThreads(__tstate); | |
19713 | if (PyErr_Occurred()) SWIG_fail; | |
19714 | } | |
19715 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); | |
19716 | return resultobj; | |
19717 | fail: | |
19718 | return NULL; | |
19719 | } | |
19720 | ||
19721 | ||
c370783e | 19722 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19723 | PyObject *resultobj; |
19724 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19725 | PyObject * obj0 = 0 ; | |
19726 | char *kwnames[] = { | |
19727 | (char *) "self", NULL | |
19728 | }; | |
19729 | ||
19730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
19731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19733 | { | |
19734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19735 | delete arg1; | |
19736 | ||
19737 | wxPyEndAllowThreads(__tstate); | |
19738 | if (PyErr_Occurred()) SWIG_fail; | |
19739 | } | |
19740 | Py_INCREF(Py_None); resultobj = Py_None; | |
19741 | return resultobj; | |
19742 | fail: | |
19743 | return NULL; | |
19744 | } | |
19745 | ||
19746 | ||
c370783e | 19747 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19748 | PyObject *resultobj; |
19749 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19750 | PyObject *arg2 = (PyObject *) 0 ; | |
19751 | PyObject * obj0 = 0 ; | |
19752 | PyObject * obj1 = 0 ; | |
19753 | char *kwnames[] = { | |
19754 | (char *) "self",(char *) "self", NULL | |
19755 | }; | |
19756 | ||
19757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
19758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19760 | arg2 = obj1; | |
19761 | { | |
19762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19763 | (arg1)->SetSelf(arg2); | |
19764 | ||
19765 | wxPyEndAllowThreads(__tstate); | |
19766 | if (PyErr_Occurred()) SWIG_fail; | |
19767 | } | |
19768 | Py_INCREF(Py_None); resultobj = Py_None; | |
19769 | return resultobj; | |
19770 | fail: | |
19771 | return NULL; | |
19772 | } | |
19773 | ||
19774 | ||
c370783e | 19775 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19776 | PyObject *resultobj; |
19777 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19778 | PyObject *result; | |
19779 | PyObject * obj0 = 0 ; | |
19780 | char *kwnames[] = { | |
19781 | (char *) "self", NULL | |
19782 | }; | |
19783 | ||
19784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
19785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19787 | { | |
19788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19789 | result = (PyObject *)(arg1)->GetSelf(); | |
19790 | ||
19791 | wxPyEndAllowThreads(__tstate); | |
19792 | if (PyErr_Occurred()) SWIG_fail; | |
19793 | } | |
19794 | resultobj = result; | |
19795 | return resultobj; | |
19796 | fail: | |
19797 | return NULL; | |
19798 | } | |
19799 | ||
19800 | ||
c370783e | 19801 | static PyObject * PyCommandEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19802 | PyObject *obj; |
19803 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19804 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
19805 | Py_INCREF(obj); | |
19806 | return Py_BuildValue((char *)""); | |
19807 | } | |
c370783e | 19808 | static PyObject *_wrap_new_PyApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19809 | PyObject *resultobj; |
19810 | wxPyApp *result; | |
19811 | char *kwnames[] = { | |
19812 | NULL | |
19813 | }; | |
19814 | ||
19815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
19816 | { | |
19817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19818 | result = (wxPyApp *)new_wxPyApp(); | |
19819 | ||
19820 | wxPyEndAllowThreads(__tstate); | |
19821 | if (PyErr_Occurred()) SWIG_fail; | |
19822 | } | |
b0f7404b | 19823 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyApp, 1); |
d55e5bfc RD |
19824 | return resultobj; |
19825 | fail: | |
19826 | return NULL; | |
19827 | } | |
19828 | ||
19829 | ||
c370783e | 19830 | static PyObject *_wrap_delete_PyApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19831 | PyObject *resultobj; |
19832 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19833 | PyObject * obj0 = 0 ; | |
19834 | char *kwnames[] = { | |
19835 | (char *) "self", NULL | |
19836 | }; | |
19837 | ||
19838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
19839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19841 | { | |
19842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19843 | delete arg1; | |
19844 | ||
19845 | wxPyEndAllowThreads(__tstate); | |
19846 | if (PyErr_Occurred()) SWIG_fail; | |
19847 | } | |
19848 | Py_INCREF(Py_None); resultobj = Py_None; | |
19849 | return resultobj; | |
19850 | fail: | |
19851 | return NULL; | |
19852 | } | |
19853 | ||
19854 | ||
c370783e | 19855 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19856 | PyObject *resultobj; |
19857 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19858 | PyObject *arg2 = (PyObject *) 0 ; | |
19859 | PyObject *arg3 = (PyObject *) 0 ; | |
19860 | PyObject * obj0 = 0 ; | |
19861 | PyObject * obj1 = 0 ; | |
19862 | PyObject * obj2 = 0 ; | |
19863 | char *kwnames[] = { | |
19864 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
19865 | }; | |
19866 | ||
19867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19870 | arg2 = obj1; | |
19871 | arg3 = obj2; | |
19872 | { | |
19873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19874 | (arg1)->_setCallbackInfo(arg2,arg3); | |
19875 | ||
19876 | wxPyEndAllowThreads(__tstate); | |
19877 | if (PyErr_Occurred()) SWIG_fail; | |
19878 | } | |
19879 | Py_INCREF(Py_None); resultobj = Py_None; | |
19880 | return resultobj; | |
19881 | fail: | |
19882 | return NULL; | |
19883 | } | |
19884 | ||
19885 | ||
c370783e | 19886 | static PyObject *_wrap_PyApp_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19887 | PyObject *resultobj; |
19888 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19889 | wxString result; | |
19890 | PyObject * obj0 = 0 ; | |
19891 | char *kwnames[] = { | |
19892 | (char *) "self", NULL | |
19893 | }; | |
19894 | ||
19895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
19896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19898 | { | |
19899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19900 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
19901 | ||
19902 | wxPyEndAllowThreads(__tstate); | |
19903 | if (PyErr_Occurred()) SWIG_fail; | |
19904 | } | |
19905 | { | |
19906 | #if wxUSE_UNICODE | |
19907 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19908 | #else | |
19909 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19910 | #endif | |
19911 | } | |
19912 | return resultobj; | |
19913 | fail: | |
19914 | return NULL; | |
19915 | } | |
19916 | ||
19917 | ||
c370783e | 19918 | static PyObject *_wrap_PyApp_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19919 | PyObject *resultobj; |
19920 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19921 | wxString *arg2 = 0 ; | |
b411df4a | 19922 | bool temp2 = false ; |
d55e5bfc RD |
19923 | PyObject * obj0 = 0 ; |
19924 | PyObject * obj1 = 0 ; | |
19925 | char *kwnames[] = { | |
19926 | (char *) "self",(char *) "name", NULL | |
19927 | }; | |
19928 | ||
19929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
19930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19932 | { | |
19933 | arg2 = wxString_in_helper(obj1); | |
19934 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 19935 | temp2 = true; |
d55e5bfc RD |
19936 | } |
19937 | { | |
19938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19939 | (arg1)->SetAppName((wxString const &)*arg2); | |
19940 | ||
19941 | wxPyEndAllowThreads(__tstate); | |
19942 | if (PyErr_Occurred()) SWIG_fail; | |
19943 | } | |
19944 | Py_INCREF(Py_None); resultobj = Py_None; | |
19945 | { | |
19946 | if (temp2) | |
19947 | delete arg2; | |
19948 | } | |
19949 | return resultobj; | |
19950 | fail: | |
19951 | { | |
19952 | if (temp2) | |
19953 | delete arg2; | |
19954 | } | |
19955 | return NULL; | |
19956 | } | |
19957 | ||
19958 | ||
c370783e | 19959 | static PyObject *_wrap_PyApp_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19960 | PyObject *resultobj; |
19961 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19962 | wxString result; | |
19963 | PyObject * obj0 = 0 ; | |
19964 | char *kwnames[] = { | |
19965 | (char *) "self", NULL | |
19966 | }; | |
19967 | ||
19968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
19969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
19970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19971 | { | |
19972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19973 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
19974 | ||
19975 | wxPyEndAllowThreads(__tstate); | |
19976 | if (PyErr_Occurred()) SWIG_fail; | |
19977 | } | |
19978 | { | |
19979 | #if wxUSE_UNICODE | |
19980 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
19981 | #else | |
19982 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
19983 | #endif | |
19984 | } | |
19985 | return resultobj; | |
19986 | fail: | |
19987 | return NULL; | |
19988 | } | |
19989 | ||
19990 | ||
c370783e | 19991 | static PyObject *_wrap_PyApp_SetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19992 | PyObject *resultobj; |
19993 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
19994 | wxString *arg2 = 0 ; | |
b411df4a | 19995 | bool temp2 = false ; |
d55e5bfc RD |
19996 | PyObject * obj0 = 0 ; |
19997 | PyObject * obj1 = 0 ; | |
19998 | char *kwnames[] = { | |
19999 | (char *) "self",(char *) "name", NULL | |
20000 | }; | |
20001 | ||
20002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
20003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20005 | { | |
20006 | arg2 = wxString_in_helper(obj1); | |
20007 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 20008 | temp2 = true; |
d55e5bfc RD |
20009 | } |
20010 | { | |
20011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20012 | (arg1)->SetClassName((wxString const &)*arg2); | |
20013 | ||
20014 | wxPyEndAllowThreads(__tstate); | |
20015 | if (PyErr_Occurred()) SWIG_fail; | |
20016 | } | |
20017 | Py_INCREF(Py_None); resultobj = Py_None; | |
20018 | { | |
20019 | if (temp2) | |
20020 | delete arg2; | |
20021 | } | |
20022 | return resultobj; | |
20023 | fail: | |
20024 | { | |
20025 | if (temp2) | |
20026 | delete arg2; | |
20027 | } | |
20028 | return NULL; | |
20029 | } | |
20030 | ||
20031 | ||
c370783e | 20032 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20033 | PyObject *resultobj; |
20034 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20035 | wxString *result; | |
20036 | PyObject * obj0 = 0 ; | |
20037 | char *kwnames[] = { | |
20038 | (char *) "self", NULL | |
20039 | }; | |
20040 | ||
20041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
20042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20044 | { | |
20045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20046 | { | |
20047 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
20048 | result = (wxString *) &_result_ref; | |
20049 | } | |
20050 | ||
20051 | wxPyEndAllowThreads(__tstate); | |
20052 | if (PyErr_Occurred()) SWIG_fail; | |
20053 | } | |
20054 | { | |
20055 | #if wxUSE_UNICODE | |
20056 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20057 | #else | |
20058 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20059 | #endif | |
20060 | } | |
20061 | return resultobj; | |
20062 | fail: | |
20063 | return NULL; | |
20064 | } | |
20065 | ||
20066 | ||
c370783e | 20067 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20068 | PyObject *resultobj; |
20069 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20070 | wxString *arg2 = 0 ; | |
b411df4a | 20071 | bool temp2 = false ; |
d55e5bfc RD |
20072 | PyObject * obj0 = 0 ; |
20073 | PyObject * obj1 = 0 ; | |
20074 | char *kwnames[] = { | |
20075 | (char *) "self",(char *) "name", NULL | |
20076 | }; | |
20077 | ||
20078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
20079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20081 | { | |
20082 | arg2 = wxString_in_helper(obj1); | |
20083 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 20084 | temp2 = true; |
d55e5bfc RD |
20085 | } |
20086 | { | |
20087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20088 | (arg1)->SetVendorName((wxString const &)*arg2); | |
20089 | ||
20090 | wxPyEndAllowThreads(__tstate); | |
20091 | if (PyErr_Occurred()) SWIG_fail; | |
20092 | } | |
20093 | Py_INCREF(Py_None); resultobj = Py_None; | |
20094 | { | |
20095 | if (temp2) | |
20096 | delete arg2; | |
20097 | } | |
20098 | return resultobj; | |
20099 | fail: | |
20100 | { | |
20101 | if (temp2) | |
20102 | delete arg2; | |
20103 | } | |
20104 | return NULL; | |
20105 | } | |
20106 | ||
20107 | ||
c370783e | 20108 | static PyObject *_wrap_PyApp_GetTraits(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20109 | PyObject *resultobj; |
20110 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20111 | wxAppTraits *result; | |
20112 | PyObject * obj0 = 0 ; | |
20113 | char *kwnames[] = { | |
20114 | (char *) "self", NULL | |
20115 | }; | |
20116 | ||
20117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
20118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20120 | { | |
20121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20122 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
20123 | ||
20124 | wxPyEndAllowThreads(__tstate); | |
20125 | if (PyErr_Occurred()) SWIG_fail; | |
20126 | } | |
20127 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); | |
20128 | return resultobj; | |
20129 | fail: | |
20130 | return NULL; | |
20131 | } | |
20132 | ||
20133 | ||
c370783e | 20134 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20135 | PyObject *resultobj; |
20136 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20137 | PyObject * obj0 = 0 ; | |
20138 | char *kwnames[] = { | |
20139 | (char *) "self", NULL | |
20140 | }; | |
20141 | ||
20142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
20143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20145 | { | |
20146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20147 | (arg1)->ProcessPendingEvents(); | |
20148 | ||
20149 | wxPyEndAllowThreads(__tstate); | |
20150 | if (PyErr_Occurred()) SWIG_fail; | |
20151 | } | |
20152 | Py_INCREF(Py_None); resultobj = Py_None; | |
20153 | return resultobj; | |
20154 | fail: | |
20155 | return NULL; | |
20156 | } | |
20157 | ||
20158 | ||
c370783e | 20159 | static PyObject *_wrap_PyApp_Yield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20160 | PyObject *resultobj; |
20161 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
b411df4a | 20162 | bool arg2 = (bool) false ; |
d55e5bfc RD |
20163 | bool result; |
20164 | PyObject * obj0 = 0 ; | |
20165 | PyObject * obj1 = 0 ; | |
20166 | char *kwnames[] = { | |
20167 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
20168 | }; | |
20169 | ||
20170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
20171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20173 | if (obj1) { | |
c370783e | 20174 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
20175 | if (PyErr_Occurred()) SWIG_fail; |
20176 | } | |
20177 | { | |
20178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20179 | result = (bool)(arg1)->Yield(arg2); | |
20180 | ||
20181 | wxPyEndAllowThreads(__tstate); | |
20182 | if (PyErr_Occurred()) SWIG_fail; | |
20183 | } | |
20184 | { | |
20185 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20186 | } | |
20187 | return resultobj; | |
20188 | fail: | |
20189 | return NULL; | |
20190 | } | |
20191 | ||
20192 | ||
c370783e | 20193 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20194 | PyObject *resultobj; |
20195 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20196 | PyObject * obj0 = 0 ; | |
20197 | char *kwnames[] = { | |
20198 | (char *) "self", NULL | |
20199 | }; | |
20200 | ||
20201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
20202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20204 | { | |
20205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20206 | (arg1)->WakeUpIdle(); | |
20207 | ||
20208 | wxPyEndAllowThreads(__tstate); | |
20209 | if (PyErr_Occurred()) SWIG_fail; | |
20210 | } | |
20211 | Py_INCREF(Py_None); resultobj = Py_None; | |
20212 | return resultobj; | |
20213 | fail: | |
20214 | return NULL; | |
20215 | } | |
20216 | ||
20217 | ||
c370783e | 20218 | static PyObject *_wrap_PyApp_MainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20219 | PyObject *resultobj; |
20220 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20221 | int result; | |
20222 | PyObject * obj0 = 0 ; | |
20223 | char *kwnames[] = { | |
20224 | (char *) "self", NULL | |
20225 | }; | |
20226 | ||
20227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
20228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20230 | { | |
20231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20232 | result = (int)(arg1)->MainLoop(); | |
20233 | ||
20234 | wxPyEndAllowThreads(__tstate); | |
20235 | if (PyErr_Occurred()) SWIG_fail; | |
20236 | } | |
c370783e | 20237 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20238 | return resultobj; |
20239 | fail: | |
20240 | return NULL; | |
20241 | } | |
20242 | ||
20243 | ||
c370783e | 20244 | static PyObject *_wrap_PyApp_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20245 | PyObject *resultobj; |
20246 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20247 | PyObject * obj0 = 0 ; | |
20248 | char *kwnames[] = { | |
20249 | (char *) "self", NULL | |
20250 | }; | |
20251 | ||
20252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
20253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20255 | { | |
20256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20257 | (arg1)->Exit(); | |
20258 | ||
20259 | wxPyEndAllowThreads(__tstate); | |
20260 | if (PyErr_Occurred()) SWIG_fail; | |
20261 | } | |
20262 | Py_INCREF(Py_None); resultobj = Py_None; | |
20263 | return resultobj; | |
20264 | fail: | |
20265 | return NULL; | |
20266 | } | |
20267 | ||
20268 | ||
c370783e | 20269 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20270 | PyObject *resultobj; |
20271 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20272 | PyObject * obj0 = 0 ; | |
20273 | char *kwnames[] = { | |
20274 | (char *) "self", NULL | |
20275 | }; | |
20276 | ||
20277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
20278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20280 | { | |
20281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20282 | (arg1)->ExitMainLoop(); | |
20283 | ||
20284 | wxPyEndAllowThreads(__tstate); | |
20285 | if (PyErr_Occurred()) SWIG_fail; | |
20286 | } | |
20287 | Py_INCREF(Py_None); resultobj = Py_None; | |
20288 | return resultobj; | |
20289 | fail: | |
20290 | return NULL; | |
20291 | } | |
20292 | ||
20293 | ||
c370783e | 20294 | static PyObject *_wrap_PyApp_Pending(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20295 | PyObject *resultobj; |
20296 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20297 | bool result; | |
20298 | PyObject * obj0 = 0 ; | |
20299 | char *kwnames[] = { | |
20300 | (char *) "self", NULL | |
20301 | }; | |
20302 | ||
20303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
20304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20306 | { | |
20307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20308 | result = (bool)(arg1)->Pending(); | |
20309 | ||
20310 | wxPyEndAllowThreads(__tstate); | |
20311 | if (PyErr_Occurred()) SWIG_fail; | |
20312 | } | |
20313 | { | |
20314 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20315 | } | |
20316 | return resultobj; | |
20317 | fail: | |
20318 | return NULL; | |
20319 | } | |
20320 | ||
20321 | ||
c370783e | 20322 | static PyObject *_wrap_PyApp_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20323 | PyObject *resultobj; |
20324 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20325 | bool result; | |
20326 | PyObject * obj0 = 0 ; | |
20327 | char *kwnames[] = { | |
20328 | (char *) "self", NULL | |
20329 | }; | |
20330 | ||
20331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
20332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20334 | { | |
20335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20336 | result = (bool)(arg1)->Dispatch(); | |
20337 | ||
20338 | wxPyEndAllowThreads(__tstate); | |
20339 | if (PyErr_Occurred()) SWIG_fail; | |
20340 | } | |
20341 | { | |
20342 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20343 | } | |
20344 | return resultobj; | |
20345 | fail: | |
20346 | return NULL; | |
20347 | } | |
20348 | ||
20349 | ||
c370783e | 20350 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20351 | PyObject *resultobj; |
20352 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20353 | bool result; | |
20354 | PyObject * obj0 = 0 ; | |
20355 | char *kwnames[] = { | |
20356 | (char *) "self", NULL | |
20357 | }; | |
20358 | ||
20359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
20360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20362 | { | |
20363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20364 | result = (bool)(arg1)->ProcessIdle(); | |
20365 | ||
20366 | wxPyEndAllowThreads(__tstate); | |
20367 | if (PyErr_Occurred()) SWIG_fail; | |
20368 | } | |
20369 | { | |
20370 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20371 | } | |
20372 | return resultobj; | |
20373 | fail: | |
20374 | return NULL; | |
20375 | } | |
20376 | ||
20377 | ||
c370783e | 20378 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20379 | PyObject *resultobj; |
20380 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20381 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20382 | wxIdleEvent *arg3 = 0 ; | |
20383 | bool result; | |
20384 | PyObject * obj0 = 0 ; | |
20385 | PyObject * obj1 = 0 ; | |
20386 | PyObject * obj2 = 0 ; | |
20387 | char *kwnames[] = { | |
20388 | (char *) "self",(char *) "win",(char *) "event", NULL | |
20389 | }; | |
20390 | ||
20391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20394 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20396 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent, | |
20397 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20398 | SWIG_fail; | |
20399 | if (arg3 == NULL) { | |
20400 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20401 | SWIG_fail; | |
20402 | } | |
20403 | { | |
20404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20405 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
20406 | ||
20407 | wxPyEndAllowThreads(__tstate); | |
20408 | if (PyErr_Occurred()) SWIG_fail; | |
20409 | } | |
20410 | { | |
20411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20412 | } | |
20413 | return resultobj; | |
20414 | fail: | |
20415 | return NULL; | |
20416 | } | |
20417 | ||
20418 | ||
c370783e | 20419 | static PyObject *_wrap_PyApp_IsActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20420 | PyObject *resultobj; |
20421 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20422 | bool result; | |
20423 | PyObject * obj0 = 0 ; | |
20424 | char *kwnames[] = { | |
20425 | (char *) "self", NULL | |
20426 | }; | |
20427 | ||
20428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
20429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20431 | { | |
20432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20433 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
20434 | ||
20435 | wxPyEndAllowThreads(__tstate); | |
20436 | if (PyErr_Occurred()) SWIG_fail; | |
20437 | } | |
20438 | { | |
20439 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20440 | } | |
20441 | return resultobj; | |
20442 | fail: | |
20443 | return NULL; | |
20444 | } | |
20445 | ||
20446 | ||
c370783e | 20447 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20448 | PyObject *resultobj; |
20449 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20450 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20451 | PyObject * obj0 = 0 ; | |
20452 | PyObject * obj1 = 0 ; | |
20453 | char *kwnames[] = { | |
20454 | (char *) "self",(char *) "win", NULL | |
20455 | }; | |
20456 | ||
20457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
20458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20460 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20462 | { | |
20463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20464 | (arg1)->SetTopWindow(arg2); | |
20465 | ||
20466 | wxPyEndAllowThreads(__tstate); | |
20467 | if (PyErr_Occurred()) SWIG_fail; | |
20468 | } | |
20469 | Py_INCREF(Py_None); resultobj = Py_None; | |
20470 | return resultobj; | |
20471 | fail: | |
20472 | return NULL; | |
20473 | } | |
20474 | ||
20475 | ||
c370783e | 20476 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20477 | PyObject *resultobj; |
20478 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20479 | wxWindow *result; | |
20480 | PyObject * obj0 = 0 ; | |
20481 | char *kwnames[] = { | |
20482 | (char *) "self", NULL | |
20483 | }; | |
20484 | ||
20485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
20486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20488 | { | |
20489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20490 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
20491 | ||
20492 | wxPyEndAllowThreads(__tstate); | |
20493 | if (PyErr_Occurred()) SWIG_fail; | |
20494 | } | |
20495 | { | |
412d302d | 20496 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
20497 | } |
20498 | return resultobj; | |
20499 | fail: | |
20500 | return NULL; | |
20501 | } | |
20502 | ||
20503 | ||
c370783e | 20504 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20505 | PyObject *resultobj; |
20506 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20507 | bool arg2 ; | |
20508 | PyObject * obj0 = 0 ; | |
20509 | PyObject * obj1 = 0 ; | |
20510 | char *kwnames[] = { | |
20511 | (char *) "self",(char *) "flag", NULL | |
20512 | }; | |
20513 | ||
20514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
20515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20517 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
20518 | if (PyErr_Occurred()) SWIG_fail; |
20519 | { | |
20520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20521 | (arg1)->SetExitOnFrameDelete(arg2); | |
20522 | ||
20523 | wxPyEndAllowThreads(__tstate); | |
20524 | if (PyErr_Occurred()) SWIG_fail; | |
20525 | } | |
20526 | Py_INCREF(Py_None); resultobj = Py_None; | |
20527 | return resultobj; | |
20528 | fail: | |
20529 | return NULL; | |
20530 | } | |
20531 | ||
20532 | ||
c370783e | 20533 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20534 | PyObject *resultobj; |
20535 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20536 | bool result; | |
20537 | PyObject * obj0 = 0 ; | |
20538 | char *kwnames[] = { | |
20539 | (char *) "self", NULL | |
20540 | }; | |
20541 | ||
20542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
20543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20545 | { | |
20546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20547 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
20548 | ||
20549 | wxPyEndAllowThreads(__tstate); | |
20550 | if (PyErr_Occurred()) SWIG_fail; | |
20551 | } | |
20552 | { | |
20553 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20554 | } | |
20555 | return resultobj; | |
20556 | fail: | |
20557 | return NULL; | |
20558 | } | |
20559 | ||
20560 | ||
c370783e | 20561 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20562 | PyObject *resultobj; |
20563 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20564 | bool arg2 ; | |
20565 | PyObject * obj0 = 0 ; | |
20566 | PyObject * obj1 = 0 ; | |
20567 | char *kwnames[] = { | |
20568 | (char *) "self",(char *) "flag", NULL | |
20569 | }; | |
20570 | ||
20571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
20572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20574 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
20575 | if (PyErr_Occurred()) SWIG_fail; |
20576 | { | |
20577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20578 | (arg1)->SetUseBestVisual(arg2); | |
20579 | ||
20580 | wxPyEndAllowThreads(__tstate); | |
20581 | if (PyErr_Occurred()) SWIG_fail; | |
20582 | } | |
20583 | Py_INCREF(Py_None); resultobj = Py_None; | |
20584 | return resultobj; | |
20585 | fail: | |
20586 | return NULL; | |
20587 | } | |
20588 | ||
20589 | ||
c370783e | 20590 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20591 | PyObject *resultobj; |
20592 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20593 | bool result; | |
20594 | PyObject * obj0 = 0 ; | |
20595 | char *kwnames[] = { | |
20596 | (char *) "self", NULL | |
20597 | }; | |
20598 | ||
20599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
20600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20602 | { | |
20603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20604 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
20605 | ||
20606 | wxPyEndAllowThreads(__tstate); | |
20607 | if (PyErr_Occurred()) SWIG_fail; | |
20608 | } | |
20609 | { | |
20610 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20611 | } | |
20612 | return resultobj; | |
20613 | fail: | |
20614 | return NULL; | |
20615 | } | |
20616 | ||
20617 | ||
c370783e | 20618 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20619 | PyObject *resultobj; |
20620 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20621 | int arg2 ; | |
20622 | PyObject * obj0 = 0 ; | |
20623 | PyObject * obj1 = 0 ; | |
20624 | char *kwnames[] = { | |
20625 | (char *) "self",(char *) "mode", NULL | |
20626 | }; | |
20627 | ||
20628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; | |
20629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20631 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20632 | if (PyErr_Occurred()) SWIG_fail; |
20633 | { | |
20634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20635 | (arg1)->SetPrintMode(arg2); | |
20636 | ||
20637 | wxPyEndAllowThreads(__tstate); | |
20638 | if (PyErr_Occurred()) SWIG_fail; | |
20639 | } | |
20640 | Py_INCREF(Py_None); resultobj = Py_None; | |
20641 | return resultobj; | |
20642 | fail: | |
20643 | return NULL; | |
20644 | } | |
20645 | ||
20646 | ||
c370783e | 20647 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20648 | PyObject *resultobj; |
20649 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20650 | int result; | |
20651 | PyObject * obj0 = 0 ; | |
20652 | char *kwnames[] = { | |
20653 | (char *) "self", NULL | |
20654 | }; | |
20655 | ||
20656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
20657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20659 | { | |
20660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20661 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
20662 | ||
20663 | wxPyEndAllowThreads(__tstate); | |
20664 | if (PyErr_Occurred()) SWIG_fail; | |
20665 | } | |
c370783e | 20666 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20667 | return resultobj; |
20668 | fail: | |
20669 | return NULL; | |
20670 | } | |
20671 | ||
20672 | ||
c370783e | 20673 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20674 | PyObject *resultobj; |
20675 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20676 | int arg2 ; | |
20677 | PyObject * obj0 = 0 ; | |
20678 | PyObject * obj1 = 0 ; | |
20679 | char *kwnames[] = { | |
20680 | (char *) "self",(char *) "mode", NULL | |
20681 | }; | |
20682 | ||
20683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; | |
20684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20686 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20687 | if (PyErr_Occurred()) SWIG_fail; |
20688 | { | |
20689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20690 | (arg1)->SetAssertMode(arg2); | |
20691 | ||
20692 | wxPyEndAllowThreads(__tstate); | |
20693 | if (PyErr_Occurred()) SWIG_fail; | |
20694 | } | |
20695 | Py_INCREF(Py_None); resultobj = Py_None; | |
20696 | return resultobj; | |
20697 | fail: | |
20698 | return NULL; | |
20699 | } | |
20700 | ||
20701 | ||
c370783e | 20702 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20703 | PyObject *resultobj; |
20704 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20705 | int result; | |
20706 | PyObject * obj0 = 0 ; | |
20707 | char *kwnames[] = { | |
20708 | (char *) "self", NULL | |
20709 | }; | |
20710 | ||
20711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; | |
20712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20714 | { | |
20715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20716 | result = (int)(arg1)->GetAssertMode(); | |
20717 | ||
20718 | wxPyEndAllowThreads(__tstate); | |
20719 | if (PyErr_Occurred()) SWIG_fail; | |
20720 | } | |
c370783e | 20721 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20722 | return resultobj; |
20723 | fail: | |
20724 | return NULL; | |
20725 | } | |
20726 | ||
20727 | ||
c370783e | 20728 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20729 | PyObject *resultobj; |
20730 | bool result; | |
20731 | char *kwnames[] = { | |
20732 | NULL | |
20733 | }; | |
20734 | ||
20735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
20736 | { | |
20737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20738 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
20739 | ||
20740 | wxPyEndAllowThreads(__tstate); | |
20741 | if (PyErr_Occurred()) SWIG_fail; | |
20742 | } | |
20743 | { | |
20744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20745 | } | |
20746 | return resultobj; | |
20747 | fail: | |
20748 | return NULL; | |
20749 | } | |
20750 | ||
20751 | ||
c370783e | 20752 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20753 | PyObject *resultobj; |
20754 | long result; | |
20755 | char *kwnames[] = { | |
20756 | NULL | |
20757 | }; | |
20758 | ||
20759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
20760 | { | |
20761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20762 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
20763 | ||
20764 | wxPyEndAllowThreads(__tstate); | |
20765 | if (PyErr_Occurred()) SWIG_fail; | |
20766 | } | |
c370783e | 20767 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20768 | return resultobj; |
20769 | fail: | |
20770 | return NULL; | |
20771 | } | |
20772 | ||
20773 | ||
c370783e | 20774 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20775 | PyObject *resultobj; |
20776 | long result; | |
20777 | char *kwnames[] = { | |
20778 | NULL | |
20779 | }; | |
20780 | ||
20781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
20782 | { | |
20783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20784 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
20785 | ||
20786 | wxPyEndAllowThreads(__tstate); | |
20787 | if (PyErr_Occurred()) SWIG_fail; | |
20788 | } | |
c370783e | 20789 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20790 | return resultobj; |
20791 | fail: | |
20792 | return NULL; | |
20793 | } | |
20794 | ||
20795 | ||
c370783e | 20796 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20797 | PyObject *resultobj; |
20798 | long result; | |
20799 | char *kwnames[] = { | |
20800 | NULL | |
20801 | }; | |
20802 | ||
20803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
20804 | { | |
20805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20806 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
20807 | ||
20808 | wxPyEndAllowThreads(__tstate); | |
20809 | if (PyErr_Occurred()) SWIG_fail; | |
20810 | } | |
c370783e | 20811 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20812 | return resultobj; |
20813 | fail: | |
20814 | return NULL; | |
20815 | } | |
20816 | ||
20817 | ||
c370783e | 20818 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20819 | PyObject *resultobj; |
20820 | wxString result; | |
20821 | char *kwnames[] = { | |
20822 | NULL | |
20823 | }; | |
20824 | ||
20825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
20826 | { | |
20827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20828 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
20829 | ||
20830 | wxPyEndAllowThreads(__tstate); | |
20831 | if (PyErr_Occurred()) SWIG_fail; | |
20832 | } | |
20833 | { | |
20834 | #if wxUSE_UNICODE | |
20835 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20836 | #else | |
20837 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20838 | #endif | |
20839 | } | |
20840 | return resultobj; | |
20841 | fail: | |
20842 | return NULL; | |
20843 | } | |
20844 | ||
20845 | ||
c370783e | 20846 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20847 | PyObject *resultobj; |
20848 | bool arg1 ; | |
20849 | PyObject * obj0 = 0 ; | |
20850 | char *kwnames[] = { | |
20851 | (char *) "val", NULL | |
20852 | }; | |
20853 | ||
20854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
c370783e | 20855 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
20856 | if (PyErr_Occurred()) SWIG_fail; |
20857 | { | |
20858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20859 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
20860 | ||
20861 | wxPyEndAllowThreads(__tstate); | |
20862 | if (PyErr_Occurred()) SWIG_fail; | |
20863 | } | |
20864 | Py_INCREF(Py_None); resultobj = Py_None; | |
20865 | return resultobj; | |
20866 | fail: | |
20867 | return NULL; | |
20868 | } | |
20869 | ||
20870 | ||
c370783e | 20871 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20872 | PyObject *resultobj; |
20873 | long arg1 ; | |
20874 | PyObject * obj0 = 0 ; | |
20875 | char *kwnames[] = { | |
20876 | (char *) "val", NULL | |
20877 | }; | |
20878 | ||
20879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; | |
c370783e | 20880 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
20881 | if (PyErr_Occurred()) SWIG_fail; |
20882 | { | |
20883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20884 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
20885 | ||
20886 | wxPyEndAllowThreads(__tstate); | |
20887 | if (PyErr_Occurred()) SWIG_fail; | |
20888 | } | |
20889 | Py_INCREF(Py_None); resultobj = Py_None; | |
20890 | return resultobj; | |
20891 | fail: | |
20892 | return NULL; | |
20893 | } | |
20894 | ||
20895 | ||
c370783e | 20896 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20897 | PyObject *resultobj; |
20898 | long arg1 ; | |
20899 | PyObject * obj0 = 0 ; | |
20900 | char *kwnames[] = { | |
20901 | (char *) "val", NULL | |
20902 | }; | |
20903 | ||
20904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; | |
c370783e | 20905 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
20906 | if (PyErr_Occurred()) SWIG_fail; |
20907 | { | |
20908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20909 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
20910 | ||
20911 | wxPyEndAllowThreads(__tstate); | |
20912 | if (PyErr_Occurred()) SWIG_fail; | |
20913 | } | |
20914 | Py_INCREF(Py_None); resultobj = Py_None; | |
20915 | return resultobj; | |
20916 | fail: | |
20917 | return NULL; | |
20918 | } | |
20919 | ||
20920 | ||
c370783e | 20921 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20922 | PyObject *resultobj; |
20923 | long arg1 ; | |
20924 | PyObject * obj0 = 0 ; | |
20925 | char *kwnames[] = { | |
20926 | (char *) "val", NULL | |
20927 | }; | |
20928 | ||
20929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; | |
c370783e | 20930 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
20931 | if (PyErr_Occurred()) SWIG_fail; |
20932 | { | |
20933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20934 | wxPyApp::SetMacExitMenuItemId(arg1); | |
20935 | ||
20936 | wxPyEndAllowThreads(__tstate); | |
20937 | if (PyErr_Occurred()) SWIG_fail; | |
20938 | } | |
20939 | Py_INCREF(Py_None); resultobj = Py_None; | |
20940 | return resultobj; | |
20941 | fail: | |
20942 | return NULL; | |
20943 | } | |
20944 | ||
20945 | ||
c370783e | 20946 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20947 | PyObject *resultobj; |
20948 | wxString *arg1 = 0 ; | |
b411df4a | 20949 | bool temp1 = false ; |
d55e5bfc RD |
20950 | PyObject * obj0 = 0 ; |
20951 | char *kwnames[] = { | |
20952 | (char *) "val", NULL | |
20953 | }; | |
20954 | ||
20955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
20956 | { | |
20957 | arg1 = wxString_in_helper(obj0); | |
20958 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 20959 | temp1 = true; |
d55e5bfc RD |
20960 | } |
20961 | { | |
20962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20963 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
20964 | ||
20965 | wxPyEndAllowThreads(__tstate); | |
20966 | if (PyErr_Occurred()) SWIG_fail; | |
20967 | } | |
20968 | Py_INCREF(Py_None); resultobj = Py_None; | |
20969 | { | |
20970 | if (temp1) | |
20971 | delete arg1; | |
20972 | } | |
20973 | return resultobj; | |
20974 | fail: | |
20975 | { | |
20976 | if (temp1) | |
20977 | delete arg1; | |
20978 | } | |
20979 | return NULL; | |
20980 | } | |
20981 | ||
20982 | ||
c370783e | 20983 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20984 | PyObject *resultobj; |
20985 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20986 | PyObject * obj0 = 0 ; | |
20987 | char *kwnames[] = { | |
20988 | (char *) "self", NULL | |
20989 | }; | |
20990 | ||
20991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
20992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20994 | { | |
20995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20996 | (arg1)->_BootstrapApp(); | |
20997 | ||
20998 | wxPyEndAllowThreads(__tstate); | |
20999 | if (PyErr_Occurred()) SWIG_fail; | |
21000 | } | |
21001 | Py_INCREF(Py_None); resultobj = Py_None; | |
21002 | return resultobj; | |
21003 | fail: | |
21004 | return NULL; | |
21005 | } | |
21006 | ||
21007 | ||
c370783e | 21008 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21009 | PyObject *resultobj; |
21010 | int result; | |
21011 | char *kwnames[] = { | |
21012 | NULL | |
21013 | }; | |
21014 | ||
21015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
21016 | { | |
21017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21018 | result = (int)PyApp_GetComCtl32Version(); | |
21019 | ||
21020 | wxPyEndAllowThreads(__tstate); | |
21021 | if (PyErr_Occurred()) SWIG_fail; | |
21022 | } | |
c370783e | 21023 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21024 | return resultobj; |
21025 | fail: | |
21026 | return NULL; | |
21027 | } | |
21028 | ||
21029 | ||
c370783e | 21030 | static PyObject * PyApp_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21031 | PyObject *obj; |
21032 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21033 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
21034 | Py_INCREF(obj); | |
21035 | return Py_BuildValue((char *)""); | |
21036 | } | |
c370783e | 21037 | static PyObject *_wrap_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21038 | PyObject *resultobj; |
21039 | char *kwnames[] = { | |
21040 | NULL | |
21041 | }; | |
21042 | ||
21043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
21044 | { | |
21045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21046 | wxExit(); | |
21047 | ||
21048 | wxPyEndAllowThreads(__tstate); | |
21049 | if (PyErr_Occurred()) SWIG_fail; | |
21050 | } | |
21051 | Py_INCREF(Py_None); resultobj = Py_None; | |
21052 | return resultobj; | |
21053 | fail: | |
21054 | return NULL; | |
21055 | } | |
21056 | ||
21057 | ||
c370783e | 21058 | static PyObject *_wrap_Yield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21059 | PyObject *resultobj; |
21060 | bool result; | |
21061 | char *kwnames[] = { | |
21062 | NULL | |
21063 | }; | |
21064 | ||
21065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
21066 | { | |
21067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21068 | result = (bool)wxYield(); | |
21069 | ||
21070 | wxPyEndAllowThreads(__tstate); | |
21071 | if (PyErr_Occurred()) SWIG_fail; | |
21072 | } | |
21073 | { | |
21074 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21075 | } | |
21076 | return resultobj; | |
21077 | fail: | |
21078 | return NULL; | |
21079 | } | |
21080 | ||
21081 | ||
c370783e | 21082 | static PyObject *_wrap_YieldIfNeeded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21083 | PyObject *resultobj; |
21084 | bool result; | |
21085 | char *kwnames[] = { | |
21086 | NULL | |
21087 | }; | |
21088 | ||
21089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
21090 | { | |
21091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21092 | result = (bool)wxYieldIfNeeded(); | |
21093 | ||
21094 | wxPyEndAllowThreads(__tstate); | |
21095 | if (PyErr_Occurred()) SWIG_fail; | |
21096 | } | |
21097 | { | |
21098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21099 | } | |
21100 | return resultobj; | |
21101 | fail: | |
21102 | return NULL; | |
21103 | } | |
21104 | ||
21105 | ||
c370783e | 21106 | static PyObject *_wrap_SafeYield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21107 | PyObject *resultobj; |
21108 | wxWindow *arg1 = (wxWindow *) NULL ; | |
b411df4a | 21109 | bool arg2 = (bool) false ; |
d55e5bfc RD |
21110 | bool result; |
21111 | PyObject * obj0 = 0 ; | |
21112 | PyObject * obj1 = 0 ; | |
21113 | char *kwnames[] = { | |
21114 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
21115 | }; | |
21116 | ||
21117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
21118 | if (obj0) { | |
21119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21121 | } | |
21122 | if (obj1) { | |
c370783e | 21123 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
21124 | if (PyErr_Occurred()) SWIG_fail; |
21125 | } | |
21126 | { | |
21127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21128 | result = (bool)wxSafeYield(arg1,arg2); | |
21129 | ||
21130 | wxPyEndAllowThreads(__tstate); | |
21131 | if (PyErr_Occurred()) SWIG_fail; | |
21132 | } | |
21133 | { | |
21134 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21135 | } | |
21136 | return resultobj; | |
21137 | fail: | |
21138 | return NULL; | |
21139 | } | |
21140 | ||
21141 | ||
c370783e | 21142 | static PyObject *_wrap_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21143 | PyObject *resultobj; |
21144 | char *kwnames[] = { | |
21145 | NULL | |
21146 | }; | |
21147 | ||
21148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
21149 | { | |
21150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21151 | wxWakeUpIdle(); | |
21152 | ||
21153 | wxPyEndAllowThreads(__tstate); | |
21154 | if (PyErr_Occurred()) SWIG_fail; | |
21155 | } | |
21156 | Py_INCREF(Py_None); resultobj = Py_None; | |
21157 | return resultobj; | |
21158 | fail: | |
21159 | return NULL; | |
21160 | } | |
21161 | ||
21162 | ||
c370783e | 21163 | static PyObject *_wrap_PostEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21164 | PyObject *resultobj; |
21165 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
21166 | wxEvent *arg2 = 0 ; | |
21167 | PyObject * obj0 = 0 ; | |
21168 | PyObject * obj1 = 0 ; | |
21169 | char *kwnames[] = { | |
21170 | (char *) "dest",(char *) "event", NULL | |
21171 | }; | |
21172 | ||
21173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
21174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
21175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21176 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
21177 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21178 | SWIG_fail; | |
21179 | if (arg2 == NULL) { | |
21180 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21181 | SWIG_fail; | |
21182 | } | |
21183 | { | |
21184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21185 | wxPostEvent(arg1,*arg2); | |
21186 | ||
21187 | wxPyEndAllowThreads(__tstate); | |
21188 | if (PyErr_Occurred()) SWIG_fail; | |
21189 | } | |
21190 | Py_INCREF(Py_None); resultobj = Py_None; | |
21191 | return resultobj; | |
21192 | fail: | |
21193 | return NULL; | |
21194 | } | |
21195 | ||
21196 | ||
c370783e | 21197 | static PyObject *_wrap_App_CleanUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21198 | PyObject *resultobj; |
21199 | char *kwnames[] = { | |
21200 | NULL | |
21201 | }; | |
21202 | ||
21203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
21204 | { | |
21205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21206 | wxApp_CleanUp(); | |
21207 | ||
21208 | wxPyEndAllowThreads(__tstate); | |
21209 | if (PyErr_Occurred()) SWIG_fail; | |
21210 | } | |
21211 | Py_INCREF(Py_None); resultobj = Py_None; | |
21212 | return resultobj; | |
21213 | fail: | |
21214 | return NULL; | |
21215 | } | |
21216 | ||
21217 | ||
c370783e | 21218 | static PyObject *_wrap_GetApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21219 | PyObject *resultobj; |
21220 | wxPyApp *result; | |
21221 | char *kwnames[] = { | |
21222 | NULL | |
21223 | }; | |
21224 | ||
21225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
21226 | { | |
21227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a5ee0656 | 21228 | result = (wxPyApp *)wxPyGetApp(); |
d55e5bfc RD |
21229 | |
21230 | wxPyEndAllowThreads(__tstate); | |
21231 | if (PyErr_Occurred()) SWIG_fail; | |
21232 | } | |
21233 | { | |
412d302d | 21234 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21235 | } |
21236 | return resultobj; | |
21237 | fail: | |
21238 | return NULL; | |
21239 | } | |
21240 | ||
21241 | ||
b411df4a RD |
21242 | static PyObject *_wrap_new_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
21243 | PyObject *resultobj; | |
21244 | wxEventLoop *result; | |
21245 | char *kwnames[] = { | |
21246 | NULL | |
21247 | }; | |
21248 | ||
21249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EventLoop",kwnames)) goto fail; | |
21250 | { | |
21251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21252 | result = (wxEventLoop *)new wxEventLoop(); | |
21253 | ||
21254 | wxPyEndAllowThreads(__tstate); | |
21255 | if (PyErr_Occurred()) SWIG_fail; | |
21256 | } | |
21257 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 1); | |
21258 | return resultobj; | |
21259 | fail: | |
21260 | return NULL; | |
21261 | } | |
21262 | ||
21263 | ||
21264 | static PyObject *_wrap_delete_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) { | |
21265 | PyObject *resultobj; | |
21266 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21267 | PyObject * obj0 = 0 ; | |
21268 | char *kwnames[] = { | |
21269 | (char *) "self", NULL | |
21270 | }; | |
21271 | ||
21272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EventLoop",kwnames,&obj0)) goto fail; | |
21273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21275 | { | |
21276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21277 | delete arg1; | |
21278 | ||
21279 | wxPyEndAllowThreads(__tstate); | |
21280 | if (PyErr_Occurred()) SWIG_fail; | |
21281 | } | |
21282 | Py_INCREF(Py_None); resultobj = Py_None; | |
21283 | return resultobj; | |
21284 | fail: | |
21285 | return NULL; | |
21286 | } | |
21287 | ||
21288 | ||
21289 | static PyObject *_wrap_EventLoop_Run(PyObject *, PyObject *args, PyObject *kwargs) { | |
21290 | PyObject *resultobj; | |
21291 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21292 | int result; | |
21293 | PyObject * obj0 = 0 ; | |
21294 | char *kwnames[] = { | |
21295 | (char *) "self", NULL | |
21296 | }; | |
21297 | ||
21298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Run",kwnames,&obj0)) goto fail; | |
21299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21301 | { | |
21302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21303 | result = (int)(arg1)->Run(); | |
21304 | ||
21305 | wxPyEndAllowThreads(__tstate); | |
21306 | if (PyErr_Occurred()) SWIG_fail; | |
21307 | } | |
21308 | resultobj = SWIG_From_int((int)result); | |
21309 | return resultobj; | |
21310 | fail: | |
21311 | return NULL; | |
21312 | } | |
21313 | ||
21314 | ||
21315 | static PyObject *_wrap_EventLoop_Exit(PyObject *, PyObject *args, PyObject *kwargs) { | |
21316 | PyObject *resultobj; | |
21317 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21318 | int arg2 = (int) 0 ; | |
21319 | PyObject * obj0 = 0 ; | |
21320 | PyObject * obj1 = 0 ; | |
21321 | char *kwnames[] = { | |
21322 | (char *) "self",(char *) "rc", NULL | |
21323 | }; | |
21324 | ||
21325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EventLoop_Exit",kwnames,&obj0,&obj1)) goto fail; | |
21326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21328 | if (obj1) { | |
21329 | arg2 = (int)SWIG_As_int(obj1); | |
21330 | if (PyErr_Occurred()) SWIG_fail; | |
21331 | } | |
21332 | { | |
21333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21334 | (arg1)->Exit(arg2); | |
21335 | ||
21336 | wxPyEndAllowThreads(__tstate); | |
21337 | if (PyErr_Occurred()) SWIG_fail; | |
21338 | } | |
21339 | Py_INCREF(Py_None); resultobj = Py_None; | |
21340 | return resultobj; | |
21341 | fail: | |
21342 | return NULL; | |
21343 | } | |
21344 | ||
21345 | ||
21346 | static PyObject *_wrap_EventLoop_Pending(PyObject *, PyObject *args, PyObject *kwargs) { | |
21347 | PyObject *resultobj; | |
21348 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21349 | bool result; | |
21350 | PyObject * obj0 = 0 ; | |
21351 | char *kwnames[] = { | |
21352 | (char *) "self", NULL | |
21353 | }; | |
21354 | ||
21355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Pending",kwnames,&obj0)) goto fail; | |
21356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21358 | { | |
21359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21360 | result = (bool)((wxEventLoop const *)arg1)->Pending(); | |
21361 | ||
21362 | wxPyEndAllowThreads(__tstate); | |
21363 | if (PyErr_Occurred()) SWIG_fail; | |
21364 | } | |
21365 | { | |
21366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21367 | } | |
21368 | return resultobj; | |
21369 | fail: | |
21370 | return NULL; | |
21371 | } | |
21372 | ||
21373 | ||
21374 | static PyObject *_wrap_EventLoop_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { | |
21375 | PyObject *resultobj; | |
21376 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21377 | bool result; | |
21378 | PyObject * obj0 = 0 ; | |
21379 | char *kwnames[] = { | |
21380 | (char *) "self", NULL | |
21381 | }; | |
21382 | ||
21383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Dispatch",kwnames,&obj0)) goto fail; | |
21384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21386 | { | |
21387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21388 | result = (bool)(arg1)->Dispatch(); | |
21389 | ||
21390 | wxPyEndAllowThreads(__tstate); | |
21391 | if (PyErr_Occurred()) SWIG_fail; | |
21392 | } | |
21393 | { | |
21394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21395 | } | |
21396 | return resultobj; | |
21397 | fail: | |
21398 | return NULL; | |
21399 | } | |
21400 | ||
21401 | ||
21402 | static PyObject *_wrap_EventLoop_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) { | |
21403 | PyObject *resultobj; | |
21404 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21405 | bool result; | |
21406 | PyObject * obj0 = 0 ; | |
21407 | char *kwnames[] = { | |
21408 | (char *) "self", NULL | |
21409 | }; | |
21410 | ||
21411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_IsRunning",kwnames,&obj0)) goto fail; | |
21412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21414 | { | |
21415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21416 | result = (bool)((wxEventLoop const *)arg1)->IsRunning(); | |
21417 | ||
21418 | wxPyEndAllowThreads(__tstate); | |
21419 | if (PyErr_Occurred()) SWIG_fail; | |
21420 | } | |
21421 | { | |
21422 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21423 | } | |
21424 | return resultobj; | |
21425 | fail: | |
21426 | return NULL; | |
21427 | } | |
21428 | ||
21429 | ||
21430 | static PyObject *_wrap_EventLoop_GetActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
21431 | PyObject *resultobj; | |
21432 | wxEventLoop *result; | |
21433 | char *kwnames[] = { | |
21434 | NULL | |
21435 | }; | |
21436 | ||
21437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EventLoop_GetActive",kwnames)) goto fail; | |
21438 | { | |
21439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21440 | result = (wxEventLoop *)wxEventLoop::GetActive(); | |
21441 | ||
21442 | wxPyEndAllowThreads(__tstate); | |
21443 | if (PyErr_Occurred()) SWIG_fail; | |
21444 | } | |
21445 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 0); | |
21446 | return resultobj; | |
21447 | fail: | |
21448 | return NULL; | |
21449 | } | |
21450 | ||
21451 | ||
21452 | static PyObject *_wrap_EventLoop_SetActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
21453 | PyObject *resultobj; | |
21454 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21455 | PyObject * obj0 = 0 ; | |
21456 | char *kwnames[] = { | |
21457 | (char *) "loop", NULL | |
21458 | }; | |
21459 | ||
21460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_SetActive",kwnames,&obj0)) goto fail; | |
21461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21463 | { | |
21464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21465 | wxEventLoop::SetActive(arg1); | |
21466 | ||
21467 | wxPyEndAllowThreads(__tstate); | |
21468 | if (PyErr_Occurred()) SWIG_fail; | |
21469 | } | |
21470 | Py_INCREF(Py_None); resultobj = Py_None; | |
21471 | return resultobj; | |
21472 | fail: | |
21473 | return NULL; | |
21474 | } | |
21475 | ||
21476 | ||
21477 | static PyObject * EventLoop_swigregister(PyObject *, PyObject *args) { | |
21478 | PyObject *obj; | |
21479 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21480 | SWIG_TypeClientData(SWIGTYPE_p_wxEventLoop, obj); | |
21481 | Py_INCREF(obj); | |
21482 | return Py_BuildValue((char *)""); | |
21483 | } | |
c370783e | 21484 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21485 | PyObject *resultobj; |
21486 | int arg1 = (int) 0 ; | |
21487 | int arg2 = (int) 0 ; | |
21488 | int arg3 = (int) 0 ; | |
d55e5bfc RD |
21489 | wxAcceleratorEntry *result; |
21490 | PyObject * obj0 = 0 ; | |
21491 | PyObject * obj1 = 0 ; | |
21492 | PyObject * obj2 = 0 ; | |
d55e5bfc | 21493 | char *kwnames[] = { |
d6c14a4c | 21494 | (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL |
d55e5bfc RD |
21495 | }; |
21496 | ||
d6c14a4c | 21497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc | 21498 | if (obj0) { |
c370783e | 21499 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
21500 | if (PyErr_Occurred()) SWIG_fail; |
21501 | } | |
21502 | if (obj1) { | |
c370783e | 21503 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
21504 | if (PyErr_Occurred()) SWIG_fail; |
21505 | } | |
21506 | if (obj2) { | |
c370783e | 21507 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
21508 | if (PyErr_Occurred()) SWIG_fail; |
21509 | } | |
d55e5bfc RD |
21510 | { |
21511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 21512 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3); |
d55e5bfc RD |
21513 | |
21514 | wxPyEndAllowThreads(__tstate); | |
21515 | if (PyErr_Occurred()) SWIG_fail; | |
21516 | } | |
21517 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); | |
21518 | return resultobj; | |
21519 | fail: | |
21520 | return NULL; | |
21521 | } | |
21522 | ||
21523 | ||
c370783e | 21524 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21525 | PyObject *resultobj; |
21526 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21527 | PyObject * obj0 = 0 ; | |
21528 | char *kwnames[] = { | |
21529 | (char *) "self", NULL | |
21530 | }; | |
21531 | ||
21532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
21533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21535 | { | |
21536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21537 | delete arg1; | |
21538 | ||
21539 | wxPyEndAllowThreads(__tstate); | |
21540 | if (PyErr_Occurred()) SWIG_fail; | |
21541 | } | |
21542 | Py_INCREF(Py_None); resultobj = Py_None; | |
21543 | return resultobj; | |
21544 | fail: | |
21545 | return NULL; | |
21546 | } | |
21547 | ||
21548 | ||
c370783e | 21549 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21550 | PyObject *resultobj; |
21551 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21552 | int arg2 ; | |
21553 | int arg3 ; | |
21554 | int arg4 ; | |
d55e5bfc RD |
21555 | PyObject * obj0 = 0 ; |
21556 | PyObject * obj1 = 0 ; | |
21557 | PyObject * obj2 = 0 ; | |
21558 | PyObject * obj3 = 0 ; | |
d55e5bfc | 21559 | char *kwnames[] = { |
d6c14a4c | 21560 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL |
d55e5bfc RD |
21561 | }; |
21562 | ||
d6c14a4c | 21563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
21564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
21565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21566 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 21567 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21568 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 21569 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21570 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 21571 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21572 | { |
21573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 21574 | (arg1)->Set(arg2,arg3,arg4); |
d55e5bfc RD |
21575 | |
21576 | wxPyEndAllowThreads(__tstate); | |
21577 | if (PyErr_Occurred()) SWIG_fail; | |
21578 | } | |
21579 | Py_INCREF(Py_None); resultobj = Py_None; | |
21580 | return resultobj; | |
21581 | fail: | |
21582 | return NULL; | |
21583 | } | |
21584 | ||
21585 | ||
c370783e | 21586 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21587 | PyObject *resultobj; |
21588 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21589 | int result; | |
21590 | PyObject * obj0 = 0 ; | |
21591 | char *kwnames[] = { | |
21592 | (char *) "self", NULL | |
21593 | }; | |
21594 | ||
21595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
21596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21598 | { | |
21599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21600 | result = (int)(arg1)->GetFlags(); | |
21601 | ||
21602 | wxPyEndAllowThreads(__tstate); | |
21603 | if (PyErr_Occurred()) SWIG_fail; | |
21604 | } | |
c370783e | 21605 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21606 | return resultobj; |
21607 | fail: | |
21608 | return NULL; | |
21609 | } | |
21610 | ||
21611 | ||
c370783e | 21612 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21613 | PyObject *resultobj; |
21614 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21615 | int result; | |
21616 | PyObject * obj0 = 0 ; | |
21617 | char *kwnames[] = { | |
21618 | (char *) "self", NULL | |
21619 | }; | |
21620 | ||
21621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
21622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21624 | { | |
21625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21626 | result = (int)(arg1)->GetKeyCode(); | |
21627 | ||
21628 | wxPyEndAllowThreads(__tstate); | |
21629 | if (PyErr_Occurred()) SWIG_fail; | |
21630 | } | |
c370783e | 21631 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21632 | return resultobj; |
21633 | fail: | |
21634 | return NULL; | |
21635 | } | |
21636 | ||
21637 | ||
c370783e | 21638 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21639 | PyObject *resultobj; |
21640 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21641 | int result; | |
21642 | PyObject * obj0 = 0 ; | |
21643 | char *kwnames[] = { | |
21644 | (char *) "self", NULL | |
21645 | }; | |
21646 | ||
21647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
21648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21650 | { | |
21651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21652 | result = (int)(arg1)->GetCommand(); | |
21653 | ||
21654 | wxPyEndAllowThreads(__tstate); | |
21655 | if (PyErr_Occurred()) SWIG_fail; | |
21656 | } | |
c370783e | 21657 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21658 | return resultobj; |
21659 | fail: | |
21660 | return NULL; | |
21661 | } | |
21662 | ||
21663 | ||
c370783e | 21664 | static PyObject * AcceleratorEntry_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21665 | PyObject *obj; |
21666 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21667 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
21668 | Py_INCREF(obj); | |
21669 | return Py_BuildValue((char *)""); | |
21670 | } | |
c370783e | 21671 | static PyObject *_wrap_new_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21672 | PyObject *resultobj; |
21673 | int arg1 ; | |
21674 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
21675 | wxAcceleratorTable *result; | |
21676 | PyObject * obj0 = 0 ; | |
21677 | char *kwnames[] = { | |
21678 | (char *) "n", NULL | |
21679 | }; | |
21680 | ||
21681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
21682 | { | |
21683 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
21684 | if (arg2) arg1 = PyList_Size(obj0); | |
21685 | else arg1 = 0; | |
21686 | } | |
21687 | { | |
21688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21689 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
21690 | ||
21691 | wxPyEndAllowThreads(__tstate); | |
21692 | if (PyErr_Occurred()) SWIG_fail; | |
21693 | } | |
21694 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); | |
21695 | { | |
21696 | delete [] arg2; | |
21697 | } | |
21698 | return resultobj; | |
21699 | fail: | |
21700 | { | |
21701 | delete [] arg2; | |
21702 | } | |
21703 | return NULL; | |
21704 | } | |
21705 | ||
21706 | ||
c370783e | 21707 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21708 | PyObject *resultobj; |
21709 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21710 | PyObject * obj0 = 0 ; | |
21711 | char *kwnames[] = { | |
21712 | (char *) "self", NULL | |
21713 | }; | |
21714 | ||
21715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
21716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, | |
21717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21718 | { | |
21719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21720 | delete arg1; | |
21721 | ||
21722 | wxPyEndAllowThreads(__tstate); | |
21723 | if (PyErr_Occurred()) SWIG_fail; | |
21724 | } | |
21725 | Py_INCREF(Py_None); resultobj = Py_None; | |
21726 | return resultobj; | |
21727 | fail: | |
21728 | return NULL; | |
21729 | } | |
21730 | ||
21731 | ||
c370783e | 21732 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21733 | PyObject *resultobj; |
21734 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21735 | bool result; | |
21736 | PyObject * obj0 = 0 ; | |
21737 | char *kwnames[] = { | |
21738 | (char *) "self", NULL | |
21739 | }; | |
21740 | ||
21741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
21742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, | |
21743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21744 | { | |
21745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21746 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
21747 | ||
21748 | wxPyEndAllowThreads(__tstate); | |
21749 | if (PyErr_Occurred()) SWIG_fail; | |
21750 | } | |
21751 | { | |
21752 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21753 | } | |
21754 | return resultobj; | |
21755 | fail: | |
21756 | return NULL; | |
21757 | } | |
21758 | ||
21759 | ||
c370783e | 21760 | static PyObject * AcceleratorTable_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21761 | PyObject *obj; |
21762 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21763 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
21764 | Py_INCREF(obj); | |
21765 | return Py_BuildValue((char *)""); | |
21766 | } | |
c370783e | 21767 | static int _wrap_NullAcceleratorTable_set(PyObject *) { |
d55e5bfc RD |
21768 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); |
21769 | return 1; | |
21770 | } | |
21771 | ||
21772 | ||
21773 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
21774 | PyObject *pyobj; | |
21775 | ||
21776 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); | |
21777 | return pyobj; | |
21778 | } | |
21779 | ||
21780 | ||
c370783e | 21781 | static PyObject *_wrap_GetAccelFromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21782 | PyObject *resultobj; |
21783 | wxString *arg1 = 0 ; | |
21784 | wxAcceleratorEntry *result; | |
b411df4a | 21785 | bool temp1 = false ; |
d55e5bfc RD |
21786 | PyObject * obj0 = 0 ; |
21787 | char *kwnames[] = { | |
21788 | (char *) "label", NULL | |
21789 | }; | |
21790 | ||
21791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
21792 | { | |
21793 | arg1 = wxString_in_helper(obj0); | |
21794 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 21795 | temp1 = true; |
d55e5bfc RD |
21796 | } |
21797 | { | |
21798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21799 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
21800 | ||
21801 | wxPyEndAllowThreads(__tstate); | |
21802 | if (PyErr_Occurred()) SWIG_fail; | |
21803 | } | |
21804 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
21805 | { | |
21806 | if (temp1) | |
21807 | delete arg1; | |
21808 | } | |
21809 | return resultobj; | |
21810 | fail: | |
21811 | { | |
21812 | if (temp1) | |
21813 | delete arg1; | |
21814 | } | |
21815 | return NULL; | |
21816 | } | |
21817 | ||
21818 | ||
c370783e | 21819 | static int _wrap_PanelNameStr_set(PyObject *) { |
d55e5bfc RD |
21820 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); |
21821 | return 1; | |
21822 | } | |
21823 | ||
21824 | ||
21825 | static PyObject *_wrap_PanelNameStr_get() { | |
21826 | PyObject *pyobj; | |
21827 | ||
21828 | { | |
21829 | #if wxUSE_UNICODE | |
21830 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21831 | #else | |
21832 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21833 | #endif | |
21834 | } | |
21835 | return pyobj; | |
21836 | } | |
21837 | ||
21838 | ||
c370783e | 21839 | static PyObject *_wrap_new_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21840 | PyObject *resultobj; |
21841 | wxVisualAttributes *result; | |
21842 | char *kwnames[] = { | |
21843 | NULL | |
21844 | }; | |
21845 | ||
21846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail; | |
21847 | { | |
21848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21849 | result = (wxVisualAttributes *)new_wxVisualAttributes(); | |
21850 | ||
21851 | wxPyEndAllowThreads(__tstate); | |
21852 | if (PyErr_Occurred()) SWIG_fail; | |
21853 | } | |
21854 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1); | |
21855 | return resultobj; | |
21856 | fail: | |
21857 | return NULL; | |
21858 | } | |
21859 | ||
21860 | ||
c370783e | 21861 | static PyObject *_wrap_delete_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21862 | PyObject *resultobj; |
21863 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21864 | PyObject * obj0 = 0 ; | |
21865 | char *kwnames[] = { | |
21866 | (char *) "self", NULL | |
21867 | }; | |
21868 | ||
21869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail; | |
21870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21872 | { | |
21873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21874 | delete_wxVisualAttributes(arg1); | |
21875 | ||
21876 | wxPyEndAllowThreads(__tstate); | |
21877 | if (PyErr_Occurred()) SWIG_fail; | |
21878 | } | |
21879 | Py_INCREF(Py_None); resultobj = Py_None; | |
21880 | return resultobj; | |
21881 | fail: | |
21882 | return NULL; | |
21883 | } | |
21884 | ||
21885 | ||
c370783e | 21886 | static PyObject *_wrap_VisualAttributes_font_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21887 | PyObject *resultobj; |
21888 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21889 | wxFont *arg2 = (wxFont *) 0 ; | |
21890 | PyObject * obj0 = 0 ; | |
21891 | PyObject * obj1 = 0 ; | |
21892 | char *kwnames[] = { | |
21893 | (char *) "self",(char *) "font", NULL | |
21894 | }; | |
21895 | ||
21896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail; | |
21897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21899 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
21900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21901 | if (arg1) (arg1)->font = *arg2; | |
21902 | ||
21903 | Py_INCREF(Py_None); resultobj = Py_None; | |
21904 | return resultobj; | |
21905 | fail: | |
21906 | return NULL; | |
21907 | } | |
21908 | ||
21909 | ||
c370783e | 21910 | static PyObject *_wrap_VisualAttributes_font_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21911 | PyObject *resultobj; |
21912 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21913 | wxFont *result; | |
21914 | PyObject * obj0 = 0 ; | |
21915 | char *kwnames[] = { | |
21916 | (char *) "self", NULL | |
21917 | }; | |
21918 | ||
21919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail; | |
21920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21922 | result = (wxFont *)& ((arg1)->font); | |
21923 | ||
21924 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
21925 | return resultobj; | |
21926 | fail: | |
21927 | return NULL; | |
21928 | } | |
21929 | ||
21930 | ||
c370783e | 21931 | static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21932 | PyObject *resultobj; |
21933 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21934 | wxColour *arg2 = (wxColour *) 0 ; | |
21935 | PyObject * obj0 = 0 ; | |
21936 | PyObject * obj1 = 0 ; | |
21937 | char *kwnames[] = { | |
21938 | (char *) "self",(char *) "colFg", NULL | |
21939 | }; | |
21940 | ||
21941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail; | |
21942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21944 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
21945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21946 | if (arg1) (arg1)->colFg = *arg2; | |
21947 | ||
21948 | Py_INCREF(Py_None); resultobj = Py_None; | |
21949 | return resultobj; | |
21950 | fail: | |
21951 | return NULL; | |
21952 | } | |
21953 | ||
21954 | ||
c370783e | 21955 | static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21956 | PyObject *resultobj; |
21957 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21958 | wxColour *result; | |
21959 | PyObject * obj0 = 0 ; | |
21960 | char *kwnames[] = { | |
21961 | (char *) "self", NULL | |
21962 | }; | |
21963 | ||
21964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail; | |
21965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21967 | result = (wxColour *)& ((arg1)->colFg); | |
21968 | ||
21969 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
21970 | return resultobj; | |
21971 | fail: | |
21972 | return NULL; | |
21973 | } | |
21974 | ||
21975 | ||
c370783e | 21976 | static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21977 | PyObject *resultobj; |
21978 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21979 | wxColour *arg2 = (wxColour *) 0 ; | |
21980 | PyObject * obj0 = 0 ; | |
21981 | PyObject * obj1 = 0 ; | |
21982 | char *kwnames[] = { | |
21983 | (char *) "self",(char *) "colBg", NULL | |
21984 | }; | |
21985 | ||
21986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail; | |
21987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21989 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
21990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21991 | if (arg1) (arg1)->colBg = *arg2; | |
21992 | ||
21993 | Py_INCREF(Py_None); resultobj = Py_None; | |
21994 | return resultobj; | |
21995 | fail: | |
21996 | return NULL; | |
21997 | } | |
21998 | ||
21999 | ||
c370783e | 22000 | static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22001 | PyObject *resultobj; |
22002 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22003 | wxColour *result; | |
22004 | PyObject * obj0 = 0 ; | |
22005 | char *kwnames[] = { | |
22006 | (char *) "self", NULL | |
22007 | }; | |
22008 | ||
22009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail; | |
22010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22012 | result = (wxColour *)& ((arg1)->colBg); | |
22013 | ||
22014 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
22015 | return resultobj; | |
22016 | fail: | |
22017 | return NULL; | |
22018 | } | |
22019 | ||
22020 | ||
c370783e | 22021 | static PyObject * VisualAttributes_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
22022 | PyObject *obj; |
22023 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22024 | SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj); | |
22025 | Py_INCREF(obj); | |
22026 | return Py_BuildValue((char *)""); | |
22027 | } | |
c370783e | 22028 | static PyObject *_wrap_new_Window(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22029 | PyObject *resultobj; |
22030 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22031 | int arg2 = (int) (int)-1 ; | |
22032 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22033 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22034 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22035 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22036 | long arg5 = (long) 0 ; | |
22037 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
22038 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22039 | wxWindow *result; | |
22040 | wxPoint temp3 ; | |
22041 | wxSize temp4 ; | |
b411df4a | 22042 | bool temp6 = false ; |
d55e5bfc RD |
22043 | PyObject * obj0 = 0 ; |
22044 | PyObject * obj1 = 0 ; | |
22045 | PyObject * obj2 = 0 ; | |
22046 | PyObject * obj3 = 0 ; | |
22047 | PyObject * obj4 = 0 ; | |
22048 | PyObject * obj5 = 0 ; | |
22049 | char *kwnames[] = { | |
22050 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22051 | }; | |
22052 | ||
22053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22056 | if (obj1) { | |
c370783e | 22057 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22058 | if (PyErr_Occurred()) SWIG_fail; |
22059 | } | |
22060 | if (obj2) { | |
22061 | { | |
22062 | arg3 = &temp3; | |
22063 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22064 | } | |
22065 | } | |
22066 | if (obj3) { | |
22067 | { | |
22068 | arg4 = &temp4; | |
22069 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22070 | } | |
22071 | } | |
22072 | if (obj4) { | |
c370783e | 22073 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
22074 | if (PyErr_Occurred()) SWIG_fail; |
22075 | } | |
22076 | if (obj5) { | |
22077 | { | |
22078 | arg6 = wxString_in_helper(obj5); | |
22079 | if (arg6 == NULL) SWIG_fail; | |
b411df4a | 22080 | temp6 = true; |
d55e5bfc RD |
22081 | } |
22082 | } | |
22083 | { | |
0439c23b | 22084 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22086 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22087 | ||
22088 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22089 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 22090 | } |
b0f7404b | 22091 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d55e5bfc RD |
22092 | { |
22093 | if (temp6) | |
22094 | delete arg6; | |
22095 | } | |
22096 | return resultobj; | |
22097 | fail: | |
22098 | { | |
22099 | if (temp6) | |
22100 | delete arg6; | |
22101 | } | |
22102 | return NULL; | |
22103 | } | |
22104 | ||
22105 | ||
c370783e | 22106 | static PyObject *_wrap_new_PreWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22107 | PyObject *resultobj; |
22108 | wxWindow *result; | |
22109 | char *kwnames[] = { | |
22110 | NULL | |
22111 | }; | |
22112 | ||
22113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
22114 | { | |
0439c23b | 22115 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22117 | result = (wxWindow *)new wxWindow(); | |
22118 | ||
22119 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22120 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 22121 | } |
b0f7404b | 22122 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d55e5bfc RD |
22123 | return resultobj; |
22124 | fail: | |
22125 | return NULL; | |
22126 | } | |
22127 | ||
22128 | ||
c370783e | 22129 | static PyObject *_wrap_Window_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22130 | PyObject *resultobj; |
22131 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22132 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22133 | int arg3 = (int) (int)-1 ; | |
22134 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22135 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22136 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22137 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22138 | long arg6 = (long) 0 ; | |
22139 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
22140 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22141 | bool result; | |
22142 | wxPoint temp4 ; | |
22143 | wxSize temp5 ; | |
b411df4a | 22144 | bool temp7 = false ; |
d55e5bfc RD |
22145 | PyObject * obj0 = 0 ; |
22146 | PyObject * obj1 = 0 ; | |
22147 | PyObject * obj2 = 0 ; | |
22148 | PyObject * obj3 = 0 ; | |
22149 | PyObject * obj4 = 0 ; | |
22150 | PyObject * obj5 = 0 ; | |
22151 | PyObject * obj6 = 0 ; | |
22152 | char *kwnames[] = { | |
22153 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22154 | }; | |
22155 | ||
22156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22159 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22161 | if (obj2) { | |
c370783e | 22162 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22163 | if (PyErr_Occurred()) SWIG_fail; |
22164 | } | |
22165 | if (obj3) { | |
22166 | { | |
22167 | arg4 = &temp4; | |
22168 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22169 | } | |
22170 | } | |
22171 | if (obj4) { | |
22172 | { | |
22173 | arg5 = &temp5; | |
22174 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22175 | } | |
22176 | } | |
22177 | if (obj5) { | |
c370783e | 22178 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
22179 | if (PyErr_Occurred()) SWIG_fail; |
22180 | } | |
22181 | if (obj6) { | |
22182 | { | |
22183 | arg7 = wxString_in_helper(obj6); | |
22184 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 22185 | temp7 = true; |
d55e5bfc RD |
22186 | } |
22187 | } | |
22188 | { | |
22189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22190 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22191 | ||
22192 | wxPyEndAllowThreads(__tstate); | |
22193 | if (PyErr_Occurred()) SWIG_fail; | |
22194 | } | |
22195 | { | |
22196 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22197 | } | |
22198 | { | |
22199 | if (temp7) | |
22200 | delete arg7; | |
22201 | } | |
22202 | return resultobj; | |
22203 | fail: | |
22204 | { | |
22205 | if (temp7) | |
22206 | delete arg7; | |
22207 | } | |
22208 | return NULL; | |
22209 | } | |
22210 | ||
22211 | ||
c370783e | 22212 | static PyObject *_wrap_Window_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22213 | PyObject *resultobj; |
22214 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b411df4a | 22215 | bool arg2 = (bool) false ; |
d55e5bfc RD |
22216 | bool result; |
22217 | PyObject * obj0 = 0 ; | |
22218 | PyObject * obj1 = 0 ; | |
22219 | char *kwnames[] = { | |
22220 | (char *) "self",(char *) "force", NULL | |
22221 | }; | |
22222 | ||
22223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
22224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22226 | if (obj1) { | |
c370783e | 22227 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
22228 | if (PyErr_Occurred()) SWIG_fail; |
22229 | } | |
22230 | { | |
22231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22232 | result = (bool)(arg1)->Close(arg2); | |
22233 | ||
22234 | wxPyEndAllowThreads(__tstate); | |
22235 | if (PyErr_Occurred()) SWIG_fail; | |
22236 | } | |
22237 | { | |
22238 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22239 | } | |
22240 | return resultobj; | |
22241 | fail: | |
22242 | return NULL; | |
22243 | } | |
22244 | ||
22245 | ||
c370783e | 22246 | static PyObject *_wrap_Window_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22247 | PyObject *resultobj; |
22248 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22249 | bool result; | |
22250 | PyObject * obj0 = 0 ; | |
22251 | char *kwnames[] = { | |
22252 | (char *) "self", NULL | |
22253 | }; | |
22254 | ||
22255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
22256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22258 | { | |
22259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22260 | result = (bool)(arg1)->Destroy(); | |
22261 | ||
22262 | wxPyEndAllowThreads(__tstate); | |
22263 | if (PyErr_Occurred()) SWIG_fail; | |
22264 | } | |
22265 | { | |
22266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22267 | } | |
22268 | return resultobj; | |
22269 | fail: | |
22270 | return NULL; | |
22271 | } | |
22272 | ||
22273 | ||
c370783e | 22274 | static PyObject *_wrap_Window_DestroyChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22275 | PyObject *resultobj; |
22276 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22277 | bool result; | |
22278 | PyObject * obj0 = 0 ; | |
22279 | char *kwnames[] = { | |
22280 | (char *) "self", NULL | |
22281 | }; | |
22282 | ||
22283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
22284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22286 | { | |
22287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22288 | result = (bool)(arg1)->DestroyChildren(); | |
22289 | ||
22290 | wxPyEndAllowThreads(__tstate); | |
22291 | if (PyErr_Occurred()) SWIG_fail; | |
22292 | } | |
22293 | { | |
22294 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22295 | } | |
22296 | return resultobj; | |
22297 | fail: | |
22298 | return NULL; | |
22299 | } | |
22300 | ||
22301 | ||
c370783e | 22302 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22303 | PyObject *resultobj; |
22304 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22305 | bool result; | |
22306 | PyObject * obj0 = 0 ; | |
22307 | char *kwnames[] = { | |
22308 | (char *) "self", NULL | |
22309 | }; | |
22310 | ||
22311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
22312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22314 | { | |
22315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22316 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
22317 | ||
22318 | wxPyEndAllowThreads(__tstate); | |
22319 | if (PyErr_Occurred()) SWIG_fail; | |
22320 | } | |
22321 | { | |
22322 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22323 | } | |
22324 | return resultobj; | |
22325 | fail: | |
22326 | return NULL; | |
22327 | } | |
22328 | ||
22329 | ||
c370783e | 22330 | static PyObject *_wrap_Window_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22331 | PyObject *resultobj; |
22332 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22333 | wxString *arg2 = 0 ; | |
b411df4a | 22334 | bool temp2 = false ; |
d55e5bfc RD |
22335 | PyObject * obj0 = 0 ; |
22336 | PyObject * obj1 = 0 ; | |
22337 | char *kwnames[] = { | |
22338 | (char *) "self",(char *) "title", NULL | |
22339 | }; | |
22340 | ||
22341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
22342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22344 | { | |
22345 | arg2 = wxString_in_helper(obj1); | |
22346 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 22347 | temp2 = true; |
d55e5bfc RD |
22348 | } |
22349 | { | |
22350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22351 | (arg1)->SetTitle((wxString const &)*arg2); | |
22352 | ||
22353 | wxPyEndAllowThreads(__tstate); | |
22354 | if (PyErr_Occurred()) SWIG_fail; | |
22355 | } | |
22356 | Py_INCREF(Py_None); resultobj = Py_None; | |
22357 | { | |
22358 | if (temp2) | |
22359 | delete arg2; | |
22360 | } | |
22361 | return resultobj; | |
22362 | fail: | |
22363 | { | |
22364 | if (temp2) | |
22365 | delete arg2; | |
22366 | } | |
22367 | return NULL; | |
22368 | } | |
22369 | ||
22370 | ||
c370783e | 22371 | static PyObject *_wrap_Window_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22372 | PyObject *resultobj; |
22373 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22374 | wxString result; | |
22375 | PyObject * obj0 = 0 ; | |
22376 | char *kwnames[] = { | |
22377 | (char *) "self", NULL | |
22378 | }; | |
22379 | ||
22380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
22381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22383 | { | |
22384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22385 | result = ((wxWindow const *)arg1)->GetTitle(); | |
22386 | ||
22387 | wxPyEndAllowThreads(__tstate); | |
22388 | if (PyErr_Occurred()) SWIG_fail; | |
22389 | } | |
22390 | { | |
22391 | #if wxUSE_UNICODE | |
22392 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22393 | #else | |
22394 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22395 | #endif | |
22396 | } | |
22397 | return resultobj; | |
22398 | fail: | |
22399 | return NULL; | |
22400 | } | |
22401 | ||
22402 | ||
c370783e | 22403 | static PyObject *_wrap_Window_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22404 | PyObject *resultobj; |
22405 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22406 | wxString *arg2 = 0 ; | |
b411df4a | 22407 | bool temp2 = false ; |
d55e5bfc RD |
22408 | PyObject * obj0 = 0 ; |
22409 | PyObject * obj1 = 0 ; | |
22410 | char *kwnames[] = { | |
22411 | (char *) "self",(char *) "label", NULL | |
22412 | }; | |
22413 | ||
22414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
22415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22417 | { | |
22418 | arg2 = wxString_in_helper(obj1); | |
22419 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 22420 | temp2 = true; |
d55e5bfc RD |
22421 | } |
22422 | { | |
22423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22424 | (arg1)->SetLabel((wxString const &)*arg2); | |
22425 | ||
22426 | wxPyEndAllowThreads(__tstate); | |
22427 | if (PyErr_Occurred()) SWIG_fail; | |
22428 | } | |
22429 | Py_INCREF(Py_None); resultobj = Py_None; | |
22430 | { | |
22431 | if (temp2) | |
22432 | delete arg2; | |
22433 | } | |
22434 | return resultobj; | |
22435 | fail: | |
22436 | { | |
22437 | if (temp2) | |
22438 | delete arg2; | |
22439 | } | |
22440 | return NULL; | |
22441 | } | |
22442 | ||
22443 | ||
c370783e | 22444 | static PyObject *_wrap_Window_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22445 | PyObject *resultobj; |
22446 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22447 | wxString result; | |
22448 | PyObject * obj0 = 0 ; | |
22449 | char *kwnames[] = { | |
22450 | (char *) "self", NULL | |
22451 | }; | |
22452 | ||
22453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
22454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22456 | { | |
22457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22458 | result = ((wxWindow const *)arg1)->GetLabel(); | |
22459 | ||
22460 | wxPyEndAllowThreads(__tstate); | |
22461 | if (PyErr_Occurred()) SWIG_fail; | |
22462 | } | |
22463 | { | |
22464 | #if wxUSE_UNICODE | |
22465 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22466 | #else | |
22467 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22468 | #endif | |
22469 | } | |
22470 | return resultobj; | |
22471 | fail: | |
22472 | return NULL; | |
22473 | } | |
22474 | ||
22475 | ||
c370783e | 22476 | static PyObject *_wrap_Window_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22477 | PyObject *resultobj; |
22478 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22479 | wxString *arg2 = 0 ; | |
b411df4a | 22480 | bool temp2 = false ; |
d55e5bfc RD |
22481 | PyObject * obj0 = 0 ; |
22482 | PyObject * obj1 = 0 ; | |
22483 | char *kwnames[] = { | |
22484 | (char *) "self",(char *) "name", NULL | |
22485 | }; | |
22486 | ||
22487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
22488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22490 | { | |
22491 | arg2 = wxString_in_helper(obj1); | |
22492 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 22493 | temp2 = true; |
d55e5bfc RD |
22494 | } |
22495 | { | |
22496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22497 | (arg1)->SetName((wxString const &)*arg2); | |
22498 | ||
22499 | wxPyEndAllowThreads(__tstate); | |
22500 | if (PyErr_Occurred()) SWIG_fail; | |
22501 | } | |
22502 | Py_INCREF(Py_None); resultobj = Py_None; | |
22503 | { | |
22504 | if (temp2) | |
22505 | delete arg2; | |
22506 | } | |
22507 | return resultobj; | |
22508 | fail: | |
22509 | { | |
22510 | if (temp2) | |
22511 | delete arg2; | |
22512 | } | |
22513 | return NULL; | |
22514 | } | |
22515 | ||
22516 | ||
c370783e | 22517 | static PyObject *_wrap_Window_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22518 | PyObject *resultobj; |
22519 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22520 | wxString result; | |
22521 | PyObject * obj0 = 0 ; | |
22522 | char *kwnames[] = { | |
22523 | (char *) "self", NULL | |
22524 | }; | |
22525 | ||
22526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
22527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22529 | { | |
22530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22531 | result = ((wxWindow const *)arg1)->GetName(); | |
22532 | ||
22533 | wxPyEndAllowThreads(__tstate); | |
22534 | if (PyErr_Occurred()) SWIG_fail; | |
22535 | } | |
22536 | { | |
22537 | #if wxUSE_UNICODE | |
22538 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22539 | #else | |
22540 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22541 | #endif | |
22542 | } | |
22543 | return resultobj; | |
22544 | fail: | |
22545 | return NULL; | |
22546 | } | |
22547 | ||
22548 | ||
c370783e | 22549 | static PyObject *_wrap_Window_SetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22550 | PyObject *resultobj; |
22551 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22552 | int arg2 ; | |
22553 | PyObject * obj0 = 0 ; | |
22554 | PyObject * obj1 = 0 ; | |
22555 | char *kwnames[] = { | |
22556 | (char *) "self",(char *) "variant", NULL | |
22557 | }; | |
22558 | ||
22559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail; | |
22560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22562 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22563 | if (PyErr_Occurred()) SWIG_fail; |
22564 | { | |
22565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22566 | (arg1)->SetWindowVariant((wxWindowVariant )arg2); | |
22567 | ||
22568 | wxPyEndAllowThreads(__tstate); | |
22569 | if (PyErr_Occurred()) SWIG_fail; | |
22570 | } | |
22571 | Py_INCREF(Py_None); resultobj = Py_None; | |
22572 | return resultobj; | |
22573 | fail: | |
22574 | return NULL; | |
22575 | } | |
22576 | ||
22577 | ||
c370783e | 22578 | static PyObject *_wrap_Window_GetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22579 | PyObject *resultobj; |
22580 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22581 | int result; | |
22582 | PyObject * obj0 = 0 ; | |
22583 | char *kwnames[] = { | |
22584 | (char *) "self", NULL | |
22585 | }; | |
22586 | ||
22587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail; | |
22588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22590 | { | |
22591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22592 | result = (int)((wxWindow const *)arg1)->GetWindowVariant(); | |
22593 | ||
22594 | wxPyEndAllowThreads(__tstate); | |
22595 | if (PyErr_Occurred()) SWIG_fail; | |
22596 | } | |
c370783e | 22597 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22598 | return resultobj; |
22599 | fail: | |
22600 | return NULL; | |
22601 | } | |
22602 | ||
22603 | ||
c370783e | 22604 | static PyObject *_wrap_Window_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22605 | PyObject *resultobj; |
22606 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22607 | int arg2 ; | |
22608 | PyObject * obj0 = 0 ; | |
22609 | PyObject * obj1 = 0 ; | |
22610 | char *kwnames[] = { | |
22611 | (char *) "self",(char *) "winid", NULL | |
22612 | }; | |
22613 | ||
22614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; | |
22615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22617 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22618 | if (PyErr_Occurred()) SWIG_fail; |
22619 | { | |
22620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22621 | (arg1)->SetId(arg2); | |
22622 | ||
22623 | wxPyEndAllowThreads(__tstate); | |
22624 | if (PyErr_Occurred()) SWIG_fail; | |
22625 | } | |
22626 | Py_INCREF(Py_None); resultobj = Py_None; | |
22627 | return resultobj; | |
22628 | fail: | |
22629 | return NULL; | |
22630 | } | |
22631 | ||
22632 | ||
c370783e | 22633 | static PyObject *_wrap_Window_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22634 | PyObject *resultobj; |
22635 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22636 | int result; | |
22637 | PyObject * obj0 = 0 ; | |
22638 | char *kwnames[] = { | |
22639 | (char *) "self", NULL | |
22640 | }; | |
22641 | ||
22642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
22643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22645 | { | |
22646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22647 | result = (int)((wxWindow const *)arg1)->GetId(); | |
22648 | ||
22649 | wxPyEndAllowThreads(__tstate); | |
22650 | if (PyErr_Occurred()) SWIG_fail; | |
22651 | } | |
c370783e | 22652 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22653 | return resultobj; |
22654 | fail: | |
22655 | return NULL; | |
22656 | } | |
22657 | ||
22658 | ||
c370783e | 22659 | static PyObject *_wrap_Window_NewControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22660 | PyObject *resultobj; |
22661 | int result; | |
22662 | char *kwnames[] = { | |
22663 | NULL | |
22664 | }; | |
22665 | ||
22666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
22667 | { | |
22668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22669 | result = (int)wxWindow::NewControlId(); | |
22670 | ||
22671 | wxPyEndAllowThreads(__tstate); | |
22672 | if (PyErr_Occurred()) SWIG_fail; | |
22673 | } | |
c370783e | 22674 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22675 | return resultobj; |
22676 | fail: | |
22677 | return NULL; | |
22678 | } | |
22679 | ||
22680 | ||
c370783e | 22681 | static PyObject *_wrap_Window_NextControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22682 | PyObject *resultobj; |
22683 | int arg1 ; | |
22684 | int result; | |
22685 | PyObject * obj0 = 0 ; | |
22686 | char *kwnames[] = { | |
22687 | (char *) "winid", NULL | |
22688 | }; | |
22689 | ||
22690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; | |
c370783e | 22691 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
22692 | if (PyErr_Occurred()) SWIG_fail; |
22693 | { | |
22694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22695 | result = (int)wxWindow::NextControlId(arg1); | |
22696 | ||
22697 | wxPyEndAllowThreads(__tstate); | |
22698 | if (PyErr_Occurred()) SWIG_fail; | |
22699 | } | |
c370783e | 22700 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22701 | return resultobj; |
22702 | fail: | |
22703 | return NULL; | |
22704 | } | |
22705 | ||
22706 | ||
c370783e | 22707 | static PyObject *_wrap_Window_PrevControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22708 | PyObject *resultobj; |
22709 | int arg1 ; | |
22710 | int result; | |
22711 | PyObject * obj0 = 0 ; | |
22712 | char *kwnames[] = { | |
22713 | (char *) "winid", NULL | |
22714 | }; | |
22715 | ||
22716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; | |
c370783e | 22717 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
22718 | if (PyErr_Occurred()) SWIG_fail; |
22719 | { | |
22720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22721 | result = (int)wxWindow::PrevControlId(arg1); | |
22722 | ||
22723 | wxPyEndAllowThreads(__tstate); | |
22724 | if (PyErr_Occurred()) SWIG_fail; | |
22725 | } | |
c370783e | 22726 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22727 | return resultobj; |
22728 | fail: | |
22729 | return NULL; | |
22730 | } | |
22731 | ||
22732 | ||
c370783e | 22733 | static PyObject *_wrap_Window_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22734 | PyObject *resultobj; |
22735 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22736 | wxSize *arg2 = 0 ; | |
22737 | wxSize temp2 ; | |
22738 | PyObject * obj0 = 0 ; | |
22739 | PyObject * obj1 = 0 ; | |
22740 | char *kwnames[] = { | |
22741 | (char *) "self",(char *) "size", NULL | |
22742 | }; | |
22743 | ||
22744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
22745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22747 | { | |
22748 | arg2 = &temp2; | |
22749 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22750 | } | |
22751 | { | |
22752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22753 | (arg1)->SetSize((wxSize const &)*arg2); | |
22754 | ||
22755 | wxPyEndAllowThreads(__tstate); | |
22756 | if (PyErr_Occurred()) SWIG_fail; | |
22757 | } | |
22758 | Py_INCREF(Py_None); resultobj = Py_None; | |
22759 | return resultobj; | |
22760 | fail: | |
22761 | return NULL; | |
22762 | } | |
22763 | ||
22764 | ||
c370783e | 22765 | static PyObject *_wrap_Window_SetDimensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22766 | PyObject *resultobj; |
22767 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22768 | int arg2 ; | |
22769 | int arg3 ; | |
22770 | int arg4 ; | |
22771 | int arg5 ; | |
22772 | int arg6 = (int) wxSIZE_AUTO ; | |
22773 | PyObject * obj0 = 0 ; | |
22774 | PyObject * obj1 = 0 ; | |
22775 | PyObject * obj2 = 0 ; | |
22776 | PyObject * obj3 = 0 ; | |
22777 | PyObject * obj4 = 0 ; | |
22778 | PyObject * obj5 = 0 ; | |
22779 | char *kwnames[] = { | |
22780 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
22781 | }; | |
22782 | ||
22783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22786 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 22787 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22788 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 22789 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22790 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 22791 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22792 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
22793 | if (PyErr_Occurred()) SWIG_fail; |
22794 | if (obj5) { | |
c370783e | 22795 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
22796 | if (PyErr_Occurred()) SWIG_fail; |
22797 | } | |
22798 | { | |
22799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22800 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
22801 | ||
22802 | wxPyEndAllowThreads(__tstate); | |
22803 | if (PyErr_Occurred()) SWIG_fail; | |
22804 | } | |
22805 | Py_INCREF(Py_None); resultobj = Py_None; | |
22806 | return resultobj; | |
22807 | fail: | |
22808 | return NULL; | |
22809 | } | |
22810 | ||
22811 | ||
c370783e | 22812 | static PyObject *_wrap_Window_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22813 | PyObject *resultobj; |
22814 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22815 | wxRect *arg2 = 0 ; | |
22816 | int arg3 = (int) wxSIZE_AUTO ; | |
22817 | wxRect temp2 ; | |
22818 | PyObject * obj0 = 0 ; | |
22819 | PyObject * obj1 = 0 ; | |
22820 | PyObject * obj2 = 0 ; | |
22821 | char *kwnames[] = { | |
22822 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
22823 | }; | |
22824 | ||
22825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22828 | { | |
22829 | arg2 = &temp2; | |
22830 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22831 | } | |
22832 | if (obj2) { | |
c370783e | 22833 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22834 | if (PyErr_Occurred()) SWIG_fail; |
22835 | } | |
22836 | { | |
22837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22838 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
22839 | ||
22840 | wxPyEndAllowThreads(__tstate); | |
22841 | if (PyErr_Occurred()) SWIG_fail; | |
22842 | } | |
22843 | Py_INCREF(Py_None); resultobj = Py_None; | |
22844 | return resultobj; | |
22845 | fail: | |
22846 | return NULL; | |
22847 | } | |
22848 | ||
22849 | ||
c370783e | 22850 | static PyObject *_wrap_Window_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22851 | PyObject *resultobj; |
22852 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22853 | int arg2 ; | |
22854 | int arg3 ; | |
22855 | PyObject * obj0 = 0 ; | |
22856 | PyObject * obj1 = 0 ; | |
22857 | PyObject * obj2 = 0 ; | |
22858 | char *kwnames[] = { | |
22859 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22860 | }; | |
22861 | ||
22862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22865 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 22866 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22867 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22868 | if (PyErr_Occurred()) SWIG_fail; |
22869 | { | |
22870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22871 | (arg1)->SetSize(arg2,arg3); | |
22872 | ||
22873 | wxPyEndAllowThreads(__tstate); | |
22874 | if (PyErr_Occurred()) SWIG_fail; | |
22875 | } | |
22876 | Py_INCREF(Py_None); resultobj = Py_None; | |
22877 | return resultobj; | |
22878 | fail: | |
22879 | return NULL; | |
22880 | } | |
22881 | ||
22882 | ||
c370783e | 22883 | static PyObject *_wrap_Window_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22884 | PyObject *resultobj; |
22885 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22886 | wxPoint *arg2 = 0 ; | |
22887 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
22888 | wxPoint temp2 ; | |
22889 | PyObject * obj0 = 0 ; | |
22890 | PyObject * obj1 = 0 ; | |
22891 | PyObject * obj2 = 0 ; | |
22892 | char *kwnames[] = { | |
22893 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
22894 | }; | |
22895 | ||
22896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22899 | { | |
22900 | arg2 = &temp2; | |
22901 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22902 | } | |
22903 | if (obj2) { | |
c370783e | 22904 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22905 | if (PyErr_Occurred()) SWIG_fail; |
22906 | } | |
22907 | { | |
22908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22909 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
22910 | ||
22911 | wxPyEndAllowThreads(__tstate); | |
22912 | if (PyErr_Occurred()) SWIG_fail; | |
22913 | } | |
22914 | Py_INCREF(Py_None); resultobj = Py_None; | |
22915 | return resultobj; | |
22916 | fail: | |
22917 | return NULL; | |
22918 | } | |
22919 | ||
22920 | ||
c370783e | 22921 | static PyObject *_wrap_Window_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22922 | PyObject *resultobj; |
22923 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22924 | int arg2 ; | |
22925 | int arg3 ; | |
22926 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
22927 | PyObject * obj0 = 0 ; | |
22928 | PyObject * obj1 = 0 ; | |
22929 | PyObject * obj2 = 0 ; | |
22930 | PyObject * obj3 = 0 ; | |
22931 | char *kwnames[] = { | |
22932 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
22933 | }; | |
22934 | ||
22935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22938 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 22939 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22940 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22941 | if (PyErr_Occurred()) SWIG_fail; |
22942 | if (obj3) { | |
c370783e | 22943 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
22944 | if (PyErr_Occurred()) SWIG_fail; |
22945 | } | |
22946 | { | |
22947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22948 | (arg1)->Move(arg2,arg3,arg4); | |
22949 | ||
22950 | wxPyEndAllowThreads(__tstate); | |
22951 | if (PyErr_Occurred()) SWIG_fail; | |
22952 | } | |
22953 | Py_INCREF(Py_None); resultobj = Py_None; | |
22954 | return resultobj; | |
22955 | fail: | |
22956 | return NULL; | |
22957 | } | |
22958 | ||
22959 | ||
c370783e | 22960 | static PyObject *_wrap_Window_SetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) { |
f8167d6e RD |
22961 | PyObject *resultobj; |
22962 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22963 | wxSize const &arg2_defvalue = wxDefaultSize ; | |
22964 | wxSize *arg2 = (wxSize *) &arg2_defvalue ; | |
22965 | wxSize temp2 ; | |
22966 | PyObject * obj0 = 0 ; | |
22967 | PyObject * obj1 = 0 ; | |
22968 | char *kwnames[] = { | |
22969 | (char *) "self",(char *) "size", NULL | |
22970 | }; | |
22971 | ||
22972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_SetBestFittingSize",kwnames,&obj0,&obj1)) goto fail; | |
22973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22975 | if (obj1) { | |
22976 | { | |
22977 | arg2 = &temp2; | |
22978 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22979 | } | |
22980 | } | |
22981 | { | |
22982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22983 | (arg1)->SetBestFittingSize((wxSize const &)*arg2); | |
22984 | ||
22985 | wxPyEndAllowThreads(__tstate); | |
22986 | if (PyErr_Occurred()) SWIG_fail; | |
22987 | } | |
22988 | Py_INCREF(Py_None); resultobj = Py_None; | |
22989 | return resultobj; | |
22990 | fail: | |
22991 | return NULL; | |
22992 | } | |
22993 | ||
22994 | ||
c370783e | 22995 | static PyObject *_wrap_Window_Raise(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22996 | PyObject *resultobj; |
22997 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22998 | PyObject * obj0 = 0 ; | |
22999 | char *kwnames[] = { | |
23000 | (char *) "self", NULL | |
23001 | }; | |
23002 | ||
23003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
23004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23006 | { | |
23007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23008 | (arg1)->Raise(); | |
23009 | ||
23010 | wxPyEndAllowThreads(__tstate); | |
23011 | if (PyErr_Occurred()) SWIG_fail; | |
23012 | } | |
23013 | Py_INCREF(Py_None); resultobj = Py_None; | |
23014 | return resultobj; | |
23015 | fail: | |
23016 | return NULL; | |
23017 | } | |
23018 | ||
23019 | ||
c370783e | 23020 | static PyObject *_wrap_Window_Lower(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23021 | PyObject *resultobj; |
23022 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23023 | PyObject * obj0 = 0 ; | |
23024 | char *kwnames[] = { | |
23025 | (char *) "self", NULL | |
23026 | }; | |
23027 | ||
23028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
23029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23031 | { | |
23032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23033 | (arg1)->Lower(); | |
23034 | ||
23035 | wxPyEndAllowThreads(__tstate); | |
23036 | if (PyErr_Occurred()) SWIG_fail; | |
23037 | } | |
23038 | Py_INCREF(Py_None); resultobj = Py_None; | |
23039 | return resultobj; | |
23040 | fail: | |
23041 | return NULL; | |
23042 | } | |
23043 | ||
23044 | ||
c370783e | 23045 | static PyObject *_wrap_Window_SetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23046 | PyObject *resultobj; |
23047 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23048 | wxSize *arg2 = 0 ; | |
23049 | wxSize temp2 ; | |
23050 | PyObject * obj0 = 0 ; | |
23051 | PyObject * obj1 = 0 ; | |
23052 | char *kwnames[] = { | |
23053 | (char *) "self",(char *) "size", NULL | |
23054 | }; | |
23055 | ||
23056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
23057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23059 | { | |
23060 | arg2 = &temp2; | |
23061 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23062 | } | |
23063 | { | |
23064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23065 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
23066 | ||
23067 | wxPyEndAllowThreads(__tstate); | |
23068 | if (PyErr_Occurred()) SWIG_fail; | |
23069 | } | |
23070 | Py_INCREF(Py_None); resultobj = Py_None; | |
23071 | return resultobj; | |
23072 | fail: | |
23073 | return NULL; | |
23074 | } | |
23075 | ||
23076 | ||
c370783e | 23077 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23078 | PyObject *resultobj; |
23079 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23080 | int arg2 ; | |
23081 | int arg3 ; | |
23082 | PyObject * obj0 = 0 ; | |
23083 | PyObject * obj1 = 0 ; | |
23084 | PyObject * obj2 = 0 ; | |
23085 | char *kwnames[] = { | |
23086 | (char *) "self",(char *) "width",(char *) "height", NULL | |
23087 | }; | |
23088 | ||
23089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23092 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 23093 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23094 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23095 | if (PyErr_Occurred()) SWIG_fail; |
23096 | { | |
23097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23098 | (arg1)->SetClientSize(arg2,arg3); | |
23099 | ||
23100 | wxPyEndAllowThreads(__tstate); | |
23101 | if (PyErr_Occurred()) SWIG_fail; | |
23102 | } | |
23103 | Py_INCREF(Py_None); resultobj = Py_None; | |
23104 | return resultobj; | |
23105 | fail: | |
23106 | return NULL; | |
23107 | } | |
23108 | ||
23109 | ||
c370783e | 23110 | static PyObject *_wrap_Window_SetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23111 | PyObject *resultobj; |
23112 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23113 | wxRect *arg2 = 0 ; | |
23114 | wxRect temp2 ; | |
23115 | PyObject * obj0 = 0 ; | |
23116 | PyObject * obj1 = 0 ; | |
23117 | char *kwnames[] = { | |
23118 | (char *) "self",(char *) "rect", NULL | |
23119 | }; | |
23120 | ||
23121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
23122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23124 | { | |
23125 | arg2 = &temp2; | |
23126 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
23127 | } | |
23128 | { | |
23129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23130 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
23131 | ||
23132 | wxPyEndAllowThreads(__tstate); | |
23133 | if (PyErr_Occurred()) SWIG_fail; | |
23134 | } | |
23135 | Py_INCREF(Py_None); resultobj = Py_None; | |
23136 | return resultobj; | |
23137 | fail: | |
23138 | return NULL; | |
23139 | } | |
23140 | ||
23141 | ||
c370783e | 23142 | static PyObject *_wrap_Window_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23143 | PyObject *resultobj; |
23144 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23145 | wxPoint result; | |
23146 | PyObject * obj0 = 0 ; | |
23147 | char *kwnames[] = { | |
23148 | (char *) "self", NULL | |
23149 | }; | |
23150 | ||
23151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
23152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23154 | { | |
23155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23156 | result = (arg1)->GetPosition(); | |
23157 | ||
23158 | wxPyEndAllowThreads(__tstate); | |
23159 | if (PyErr_Occurred()) SWIG_fail; | |
23160 | } | |
23161 | { | |
23162 | wxPoint * resultptr; | |
23163 | resultptr = new wxPoint((wxPoint &) result); | |
23164 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
23165 | } | |
23166 | return resultobj; | |
23167 | fail: | |
23168 | return NULL; | |
23169 | } | |
23170 | ||
23171 | ||
c370783e | 23172 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23173 | PyObject *resultobj; |
23174 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23175 | int *arg2 = (int *) 0 ; | |
23176 | int *arg3 = (int *) 0 ; | |
23177 | int temp2 ; | |
c370783e | 23178 | int res2 = 0 ; |
d55e5bfc | 23179 | int temp3 ; |
c370783e | 23180 | int res3 = 0 ; |
d55e5bfc RD |
23181 | PyObject * obj0 = 0 ; |
23182 | char *kwnames[] = { | |
23183 | (char *) "self", NULL | |
23184 | }; | |
23185 | ||
c370783e RD |
23186 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23187 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; |
23189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23191 | { | |
23192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23193 | (arg1)->GetPosition(arg2,arg3); | |
23194 | ||
23195 | wxPyEndAllowThreads(__tstate); | |
23196 | if (PyErr_Occurred()) SWIG_fail; | |
23197 | } | |
23198 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
23199 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23200 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23201 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23202 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23203 | return resultobj; |
23204 | fail: | |
23205 | return NULL; | |
23206 | } | |
23207 | ||
23208 | ||
c370783e | 23209 | static PyObject *_wrap_Window_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23210 | PyObject *resultobj; |
23211 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23212 | wxSize result; | |
23213 | PyObject * obj0 = 0 ; | |
23214 | char *kwnames[] = { | |
23215 | (char *) "self", NULL | |
23216 | }; | |
23217 | ||
23218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
23219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23221 | { | |
23222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23223 | result = ((wxWindow const *)arg1)->GetSize(); | |
23224 | ||
23225 | wxPyEndAllowThreads(__tstate); | |
23226 | if (PyErr_Occurred()) SWIG_fail; | |
23227 | } | |
23228 | { | |
23229 | wxSize * resultptr; | |
23230 | resultptr = new wxSize((wxSize &) result); | |
23231 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23232 | } | |
23233 | return resultobj; | |
23234 | fail: | |
23235 | return NULL; | |
23236 | } | |
23237 | ||
23238 | ||
c370783e | 23239 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23240 | PyObject *resultobj; |
23241 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23242 | int *arg2 = (int *) 0 ; | |
23243 | int *arg3 = (int *) 0 ; | |
23244 | int temp2 ; | |
c370783e | 23245 | int res2 = 0 ; |
d55e5bfc | 23246 | int temp3 ; |
c370783e | 23247 | int res3 = 0 ; |
d55e5bfc RD |
23248 | PyObject * obj0 = 0 ; |
23249 | char *kwnames[] = { | |
23250 | (char *) "self", NULL | |
23251 | }; | |
23252 | ||
c370783e RD |
23253 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23254 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; |
23256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23258 | { | |
23259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23260 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
23261 | ||
23262 | wxPyEndAllowThreads(__tstate); | |
23263 | if (PyErr_Occurred()) SWIG_fail; | |
23264 | } | |
23265 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
23266 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23267 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23268 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23269 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23270 | return resultobj; |
23271 | fail: | |
23272 | return NULL; | |
23273 | } | |
23274 | ||
23275 | ||
c370783e | 23276 | static PyObject *_wrap_Window_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23277 | PyObject *resultobj; |
23278 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23279 | wxRect result; | |
23280 | PyObject * obj0 = 0 ; | |
23281 | char *kwnames[] = { | |
23282 | (char *) "self", NULL | |
23283 | }; | |
23284 | ||
23285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
23286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23288 | { | |
23289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23290 | result = ((wxWindow const *)arg1)->GetRect(); | |
23291 | ||
23292 | wxPyEndAllowThreads(__tstate); | |
23293 | if (PyErr_Occurred()) SWIG_fail; | |
23294 | } | |
23295 | { | |
23296 | wxRect * resultptr; | |
23297 | resultptr = new wxRect((wxRect &) result); | |
23298 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
23299 | } | |
23300 | return resultobj; | |
23301 | fail: | |
23302 | return NULL; | |
23303 | } | |
23304 | ||
23305 | ||
c370783e | 23306 | static PyObject *_wrap_Window_GetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23307 | PyObject *resultobj; |
23308 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23309 | wxSize result; | |
23310 | PyObject * obj0 = 0 ; | |
23311 | char *kwnames[] = { | |
23312 | (char *) "self", NULL | |
23313 | }; | |
23314 | ||
23315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
23316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23318 | { | |
23319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23320 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
23321 | ||
23322 | wxPyEndAllowThreads(__tstate); | |
23323 | if (PyErr_Occurred()) SWIG_fail; | |
23324 | } | |
23325 | { | |
23326 | wxSize * resultptr; | |
23327 | resultptr = new wxSize((wxSize &) result); | |
23328 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23329 | } | |
23330 | return resultobj; | |
23331 | fail: | |
23332 | return NULL; | |
23333 | } | |
23334 | ||
23335 | ||
c370783e | 23336 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23337 | PyObject *resultobj; |
23338 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23339 | int *arg2 = (int *) 0 ; | |
23340 | int *arg3 = (int *) 0 ; | |
23341 | int temp2 ; | |
c370783e | 23342 | int res2 = 0 ; |
d55e5bfc | 23343 | int temp3 ; |
c370783e | 23344 | int res3 = 0 ; |
d55e5bfc RD |
23345 | PyObject * obj0 = 0 ; |
23346 | char *kwnames[] = { | |
23347 | (char *) "self", NULL | |
23348 | }; | |
23349 | ||
c370783e RD |
23350 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23351 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; |
23353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23355 | { | |
23356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23357 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
23358 | ||
23359 | wxPyEndAllowThreads(__tstate); | |
23360 | if (PyErr_Occurred()) SWIG_fail; | |
23361 | } | |
23362 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
23363 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23364 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23365 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23366 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23367 | return resultobj; |
23368 | fail: | |
23369 | return NULL; | |
23370 | } | |
23371 | ||
23372 | ||
c370783e | 23373 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23374 | PyObject *resultobj; |
23375 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23376 | wxPoint result; | |
23377 | PyObject * obj0 = 0 ; | |
23378 | char *kwnames[] = { | |
23379 | (char *) "self", NULL | |
23380 | }; | |
23381 | ||
23382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
23383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23385 | { | |
23386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23387 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
23388 | ||
23389 | wxPyEndAllowThreads(__tstate); | |
23390 | if (PyErr_Occurred()) SWIG_fail; | |
23391 | } | |
23392 | { | |
23393 | wxPoint * resultptr; | |
23394 | resultptr = new wxPoint((wxPoint &) result); | |
23395 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
23396 | } | |
23397 | return resultobj; | |
23398 | fail: | |
23399 | return NULL; | |
23400 | } | |
23401 | ||
23402 | ||
c370783e | 23403 | static PyObject *_wrap_Window_GetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23404 | PyObject *resultobj; |
23405 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23406 | wxRect result; | |
23407 | PyObject * obj0 = 0 ; | |
23408 | char *kwnames[] = { | |
23409 | (char *) "self", NULL | |
23410 | }; | |
23411 | ||
23412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
23413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23415 | { | |
23416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23417 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
23418 | ||
23419 | wxPyEndAllowThreads(__tstate); | |
23420 | if (PyErr_Occurred()) SWIG_fail; | |
23421 | } | |
23422 | { | |
23423 | wxRect * resultptr; | |
23424 | resultptr = new wxRect((wxRect &) result); | |
23425 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
23426 | } | |
23427 | return resultobj; | |
23428 | fail: | |
23429 | return NULL; | |
23430 | } | |
23431 | ||
23432 | ||
c370783e | 23433 | static PyObject *_wrap_Window_GetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23434 | PyObject *resultobj; |
23435 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23436 | wxSize result; | |
23437 | PyObject * obj0 = 0 ; | |
23438 | char *kwnames[] = { | |
23439 | (char *) "self", NULL | |
23440 | }; | |
23441 | ||
23442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
23443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23445 | { | |
23446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23447 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
23448 | ||
23449 | wxPyEndAllowThreads(__tstate); | |
23450 | if (PyErr_Occurred()) SWIG_fail; | |
23451 | } | |
23452 | { | |
23453 | wxSize * resultptr; | |
23454 | resultptr = new wxSize((wxSize &) result); | |
23455 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23456 | } | |
23457 | return resultobj; | |
23458 | fail: | |
23459 | return NULL; | |
23460 | } | |
23461 | ||
23462 | ||
c370783e | 23463 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23464 | PyObject *resultobj; |
23465 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23466 | int *arg2 = (int *) 0 ; | |
23467 | int *arg3 = (int *) 0 ; | |
23468 | int temp2 ; | |
c370783e | 23469 | int res2 = 0 ; |
d55e5bfc | 23470 | int temp3 ; |
c370783e | 23471 | int res3 = 0 ; |
d55e5bfc RD |
23472 | PyObject * obj0 = 0 ; |
23473 | char *kwnames[] = { | |
23474 | (char *) "self", NULL | |
23475 | }; | |
23476 | ||
c370783e RD |
23477 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23478 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; |
23480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23482 | { | |
23483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23484 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
23485 | ||
23486 | wxPyEndAllowThreads(__tstate); | |
23487 | if (PyErr_Occurred()) SWIG_fail; | |
23488 | } | |
23489 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
23490 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23491 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23492 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23493 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23494 | return resultobj; |
23495 | fail: | |
23496 | return NULL; | |
23497 | } | |
23498 | ||
23499 | ||
c370783e | 23500 | static PyObject *_wrap_Window_InvalidateBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
23501 | PyObject *resultobj; |
23502 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23503 | PyObject * obj0 = 0 ; | |
23504 | char *kwnames[] = { | |
23505 | (char *) "self", NULL | |
23506 | }; | |
23507 | ||
23508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InvalidateBestSize",kwnames,&obj0)) goto fail; | |
23509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23511 | { | |
23512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23513 | (arg1)->InvalidateBestSize(); | |
23514 | ||
23515 | wxPyEndAllowThreads(__tstate); | |
23516 | if (PyErr_Occurred()) SWIG_fail; | |
23517 | } | |
23518 | Py_INCREF(Py_None); resultobj = Py_None; | |
23519 | return resultobj; | |
23520 | fail: | |
23521 | return NULL; | |
23522 | } | |
23523 | ||
23524 | ||
c370783e | 23525 | static PyObject *_wrap_Window_GetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
23526 | PyObject *resultobj; |
23527 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23528 | wxSize result; | |
23529 | PyObject * obj0 = 0 ; | |
23530 | char *kwnames[] = { | |
23531 | (char *) "self", NULL | |
23532 | }; | |
23533 | ||
23534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestFittingSize",kwnames,&obj0)) goto fail; | |
23535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23537 | { | |
23538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23539 | result = ((wxWindow const *)arg1)->GetBestFittingSize(); | |
23540 | ||
23541 | wxPyEndAllowThreads(__tstate); | |
23542 | if (PyErr_Occurred()) SWIG_fail; | |
23543 | } | |
23544 | { | |
23545 | wxSize * resultptr; | |
23546 | resultptr = new wxSize((wxSize &) result); | |
23547 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23548 | } | |
23549 | return resultobj; | |
23550 | fail: | |
23551 | return NULL; | |
23552 | } | |
23553 | ||
23554 | ||
c370783e | 23555 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23556 | PyObject *resultobj; |
23557 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23558 | wxSize result; | |
23559 | PyObject * obj0 = 0 ; | |
23560 | char *kwnames[] = { | |
23561 | (char *) "self", NULL | |
23562 | }; | |
23563 | ||
23564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
23565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23567 | { | |
23568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23569 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
23570 | ||
23571 | wxPyEndAllowThreads(__tstate); | |
23572 | if (PyErr_Occurred()) SWIG_fail; | |
23573 | } | |
23574 | { | |
23575 | wxSize * resultptr; | |
23576 | resultptr = new wxSize((wxSize &) result); | |
23577 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23578 | } | |
23579 | return resultobj; | |
23580 | fail: | |
23581 | return NULL; | |
23582 | } | |
23583 | ||
23584 | ||
c370783e | 23585 | static PyObject *_wrap_Window_Center(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23586 | PyObject *resultobj; |
23587 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23588 | int arg2 = (int) wxBOTH ; | |
23589 | PyObject * obj0 = 0 ; | |
23590 | PyObject * obj1 = 0 ; | |
23591 | char *kwnames[] = { | |
23592 | (char *) "self",(char *) "direction", NULL | |
23593 | }; | |
23594 | ||
23595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; | |
23596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23598 | if (obj1) { | |
c370783e | 23599 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23600 | if (PyErr_Occurred()) SWIG_fail; |
23601 | } | |
23602 | { | |
23603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23604 | (arg1)->Center(arg2); | |
23605 | ||
23606 | wxPyEndAllowThreads(__tstate); | |
23607 | if (PyErr_Occurred()) SWIG_fail; | |
23608 | } | |
23609 | Py_INCREF(Py_None); resultobj = Py_None; | |
23610 | return resultobj; | |
23611 | fail: | |
23612 | return NULL; | |
23613 | } | |
23614 | ||
23615 | ||
c370783e | 23616 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23617 | PyObject *resultobj; |
23618 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23619 | int arg2 = (int) wxBOTH ; | |
23620 | PyObject * obj0 = 0 ; | |
23621 | PyObject * obj1 = 0 ; | |
23622 | char *kwnames[] = { | |
23623 | (char *) "self",(char *) "dir", NULL | |
23624 | }; | |
23625 | ||
23626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; | |
23627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23629 | if (obj1) { | |
c370783e | 23630 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23631 | if (PyErr_Occurred()) SWIG_fail; |
23632 | } | |
23633 | { | |
23634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23635 | (arg1)->CenterOnScreen(arg2); | |
23636 | ||
23637 | wxPyEndAllowThreads(__tstate); | |
23638 | if (PyErr_Occurred()) SWIG_fail; | |
23639 | } | |
23640 | Py_INCREF(Py_None); resultobj = Py_None; | |
23641 | return resultobj; | |
23642 | fail: | |
23643 | return NULL; | |
23644 | } | |
23645 | ||
23646 | ||
c370783e | 23647 | static PyObject *_wrap_Window_CenterOnParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23648 | PyObject *resultobj; |
23649 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23650 | int arg2 = (int) wxBOTH ; | |
23651 | PyObject * obj0 = 0 ; | |
23652 | PyObject * obj1 = 0 ; | |
23653 | char *kwnames[] = { | |
23654 | (char *) "self",(char *) "dir", NULL | |
23655 | }; | |
23656 | ||
23657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; | |
23658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23660 | if (obj1) { | |
c370783e | 23661 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23662 | if (PyErr_Occurred()) SWIG_fail; |
23663 | } | |
23664 | { | |
23665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23666 | (arg1)->CenterOnParent(arg2); | |
23667 | ||
23668 | wxPyEndAllowThreads(__tstate); | |
23669 | if (PyErr_Occurred()) SWIG_fail; | |
23670 | } | |
23671 | Py_INCREF(Py_None); resultobj = Py_None; | |
23672 | return resultobj; | |
23673 | fail: | |
23674 | return NULL; | |
23675 | } | |
23676 | ||
23677 | ||
c370783e | 23678 | static PyObject *_wrap_Window_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23679 | PyObject *resultobj; |
23680 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23681 | PyObject * obj0 = 0 ; | |
23682 | char *kwnames[] = { | |
23683 | (char *) "self", NULL | |
23684 | }; | |
23685 | ||
23686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
23687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23689 | { | |
23690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23691 | (arg1)->Fit(); | |
23692 | ||
23693 | wxPyEndAllowThreads(__tstate); | |
23694 | if (PyErr_Occurred()) SWIG_fail; | |
23695 | } | |
23696 | Py_INCREF(Py_None); resultobj = Py_None; | |
23697 | return resultobj; | |
23698 | fail: | |
23699 | return NULL; | |
23700 | } | |
23701 | ||
23702 | ||
c370783e | 23703 | static PyObject *_wrap_Window_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23704 | PyObject *resultobj; |
23705 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23706 | PyObject * obj0 = 0 ; | |
23707 | char *kwnames[] = { | |
23708 | (char *) "self", NULL | |
23709 | }; | |
23710 | ||
23711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
23712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23714 | { | |
23715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23716 | (arg1)->FitInside(); | |
23717 | ||
23718 | wxPyEndAllowThreads(__tstate); | |
23719 | if (PyErr_Occurred()) SWIG_fail; | |
23720 | } | |
23721 | Py_INCREF(Py_None); resultobj = Py_None; | |
23722 | return resultobj; | |
23723 | fail: | |
23724 | return NULL; | |
23725 | } | |
23726 | ||
23727 | ||
c370783e | 23728 | static PyObject *_wrap_Window_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23729 | PyObject *resultobj; |
23730 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23731 | int arg2 ; | |
23732 | int arg3 ; | |
23733 | int arg4 = (int) -1 ; | |
23734 | int arg5 = (int) -1 ; | |
23735 | int arg6 = (int) -1 ; | |
23736 | int arg7 = (int) -1 ; | |
23737 | PyObject * obj0 = 0 ; | |
23738 | PyObject * obj1 = 0 ; | |
23739 | PyObject * obj2 = 0 ; | |
23740 | PyObject * obj3 = 0 ; | |
23741 | PyObject * obj4 = 0 ; | |
23742 | PyObject * obj5 = 0 ; | |
23743 | PyObject * obj6 = 0 ; | |
03837c5c RD |
23744 | char *kwnames[] = { |
23745 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
23746 | }; | |
d55e5bfc | 23747 | |
03837c5c | 23748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
23749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23751 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 23752 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23753 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23754 | if (PyErr_Occurred()) SWIG_fail; |
23755 | if (obj3) { | |
c370783e | 23756 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
23757 | if (PyErr_Occurred()) SWIG_fail; |
23758 | } | |
23759 | if (obj4) { | |
c370783e | 23760 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
23761 | if (PyErr_Occurred()) SWIG_fail; |
23762 | } | |
23763 | if (obj5) { | |
c370783e | 23764 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
23765 | if (PyErr_Occurred()) SWIG_fail; |
23766 | } | |
23767 | if (obj6) { | |
c370783e | 23768 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
23769 | if (PyErr_Occurred()) SWIG_fail; |
23770 | } | |
23771 | { | |
23772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23773 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
23774 | ||
23775 | wxPyEndAllowThreads(__tstate); | |
23776 | if (PyErr_Occurred()) SWIG_fail; | |
23777 | } | |
23778 | Py_INCREF(Py_None); resultobj = Py_None; | |
23779 | return resultobj; | |
23780 | fail: | |
23781 | return NULL; | |
23782 | } | |
23783 | ||
23784 | ||
c370783e | 23785 | static PyObject *_wrap_Window_SetSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23786 | PyObject *resultobj; |
23787 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
23788 | wxSize *arg2 = 0 ; |
23789 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23790 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
03837c5c RD |
23791 | wxSize const &arg4_defvalue = wxDefaultSize ; |
23792 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
908b74cd RD |
23793 | wxSize temp2 ; |
23794 | wxSize temp3 ; | |
03837c5c | 23795 | wxSize temp4 ; |
d55e5bfc RD |
23796 | PyObject * obj0 = 0 ; |
23797 | PyObject * obj1 = 0 ; | |
23798 | PyObject * obj2 = 0 ; | |
03837c5c RD |
23799 | PyObject * obj3 = 0 ; |
23800 | char *kwnames[] = { | |
23801 | (char *) "self",(char *) "minSize",(char *) "maxSize",(char *) "incSize", NULL | |
23802 | }; | |
d55e5bfc | 23803 | |
03837c5c | 23804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_SetSizeHintsSz",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
23805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
908b74cd RD |
23807 | { |
23808 | arg2 = &temp2; | |
23809 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 23810 | } |
908b74cd RD |
23811 | if (obj2) { |
23812 | { | |
23813 | arg3 = &temp3; | |
23814 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
23815 | } | |
d55e5bfc | 23816 | } |
03837c5c RD |
23817 | if (obj3) { |
23818 | { | |
23819 | arg4 = &temp4; | |
23820 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23821 | } | |
23822 | } | |
d55e5bfc RD |
23823 | { |
23824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03837c5c | 23825 | (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4); |
d55e5bfc RD |
23826 | |
23827 | wxPyEndAllowThreads(__tstate); | |
23828 | if (PyErr_Occurred()) SWIG_fail; | |
23829 | } | |
23830 | Py_INCREF(Py_None); resultobj = Py_None; | |
23831 | return resultobj; | |
23832 | fail: | |
23833 | return NULL; | |
23834 | } | |
23835 | ||
23836 | ||
c370783e | 23837 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23838 | PyObject *resultobj; |
23839 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
23840 | int arg2 ; |
23841 | int arg3 ; | |
23842 | int arg4 = (int) -1 ; | |
23843 | int arg5 = (int) -1 ; | |
d55e5bfc RD |
23844 | PyObject * obj0 = 0 ; |
23845 | PyObject * obj1 = 0 ; | |
23846 | PyObject * obj2 = 0 ; | |
908b74cd RD |
23847 | PyObject * obj3 = 0 ; |
23848 | PyObject * obj4 = 0 ; | |
03837c5c RD |
23849 | char *kwnames[] = { |
23850 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
23851 | }; | |
d55e5bfc | 23852 | |
03837c5c | 23853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
23854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23856 | arg2 = (int)SWIG_As_int(obj1); |
908b74cd | 23857 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23858 | arg3 = (int)SWIG_As_int(obj2); |
908b74cd RD |
23859 | if (PyErr_Occurred()) SWIG_fail; |
23860 | if (obj3) { | |
c370783e | 23861 | arg4 = (int)SWIG_As_int(obj3); |
908b74cd | 23862 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 23863 | } |
908b74cd | 23864 | if (obj4) { |
c370783e | 23865 | arg5 = (int)SWIG_As_int(obj4); |
908b74cd | 23866 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23867 | } |
23868 | { | |
23869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23870 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
23871 | |
23872 | wxPyEndAllowThreads(__tstate); | |
23873 | if (PyErr_Occurred()) SWIG_fail; | |
23874 | } | |
23875 | Py_INCREF(Py_None); resultobj = Py_None; | |
23876 | return resultobj; | |
23877 | fail: | |
23878 | return NULL; | |
23879 | } | |
23880 | ||
23881 | ||
c370783e | 23882 | static PyObject *_wrap_Window_SetVirtualSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) { |
03837c5c RD |
23883 | PyObject *resultobj; |
23884 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23885 | wxSize *arg2 = 0 ; | |
23886 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23887 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
23888 | wxSize temp2 ; | |
23889 | wxSize temp3 ; | |
23890 | PyObject * obj0 = 0 ; | |
23891 | PyObject * obj1 = 0 ; | |
23892 | PyObject * obj2 = 0 ; | |
23893 | char *kwnames[] = { | |
23894 | (char *) "self",(char *) "minSize",(char *) "maxSize", NULL | |
23895 | }; | |
d55e5bfc | 23896 | |
03837c5c RD |
23897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetVirtualSizeHintsSz",kwnames,&obj0,&obj1,&obj2)) goto fail; |
23898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23900 | { | |
23901 | arg2 = &temp2; | |
23902 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 23903 | } |
03837c5c | 23904 | if (obj2) { |
d55e5bfc | 23905 | { |
03837c5c RD |
23906 | arg3 = &temp3; |
23907 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
23908 | } |
23909 | } | |
03837c5c RD |
23910 | { |
23911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23912 | (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3); | |
23913 | ||
23914 | wxPyEndAllowThreads(__tstate); | |
23915 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 23916 | } |
03837c5c RD |
23917 | Py_INCREF(Py_None); resultobj = Py_None; |
23918 | return resultobj; | |
23919 | fail: | |
d55e5bfc RD |
23920 | return NULL; |
23921 | } | |
23922 | ||
23923 | ||
c370783e | 23924 | static PyObject *_wrap_Window_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23925 | PyObject *resultobj; |
23926 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 23927 | wxSize result; |
d55e5bfc RD |
23928 | PyObject * obj0 = 0 ; |
23929 | char *kwnames[] = { | |
23930 | (char *) "self", NULL | |
23931 | }; | |
23932 | ||
908b74cd | 23933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
23934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23936 | { | |
23937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23938 | result = ((wxWindow const *)arg1)->GetMaxSize(); |
d55e5bfc RD |
23939 | |
23940 | wxPyEndAllowThreads(__tstate); | |
23941 | if (PyErr_Occurred()) SWIG_fail; | |
23942 | } | |
908b74cd RD |
23943 | { |
23944 | wxSize * resultptr; | |
23945 | resultptr = new wxSize((wxSize &) result); | |
23946 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23947 | } | |
d55e5bfc RD |
23948 | return resultobj; |
23949 | fail: | |
23950 | return NULL; | |
23951 | } | |
23952 | ||
23953 | ||
c370783e | 23954 | static PyObject *_wrap_Window_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23955 | PyObject *resultobj; |
23956 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 23957 | wxSize result; |
d55e5bfc RD |
23958 | PyObject * obj0 = 0 ; |
23959 | char *kwnames[] = { | |
23960 | (char *) "self", NULL | |
23961 | }; | |
23962 | ||
908b74cd | 23963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
23964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23966 | { | |
23967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23968 | result = ((wxWindow const *)arg1)->GetMinSize(); |
d55e5bfc RD |
23969 | |
23970 | wxPyEndAllowThreads(__tstate); | |
23971 | if (PyErr_Occurred()) SWIG_fail; | |
23972 | } | |
908b74cd RD |
23973 | { |
23974 | wxSize * resultptr; | |
23975 | resultptr = new wxSize((wxSize &) result); | |
23976 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23977 | } | |
d55e5bfc RD |
23978 | return resultobj; |
23979 | fail: | |
23980 | return NULL; | |
23981 | } | |
23982 | ||
23983 | ||
c370783e | 23984 | static PyObject *_wrap_Window_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
23985 | PyObject *resultobj; |
23986 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23987 | wxSize *arg2 = 0 ; | |
23988 | wxSize temp2 ; | |
23989 | PyObject * obj0 = 0 ; | |
23990 | PyObject * obj1 = 0 ; | |
23991 | char *kwnames[] = { | |
23992 | (char *) "self",(char *) "minSize", NULL | |
23993 | }; | |
23994 | ||
23995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
23996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23998 | { | |
23999 | arg2 = &temp2; | |
24000 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24001 | } | |
24002 | { | |
24003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24004 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
24005 | ||
24006 | wxPyEndAllowThreads(__tstate); | |
24007 | if (PyErr_Occurred()) SWIG_fail; | |
24008 | } | |
24009 | Py_INCREF(Py_None); resultobj = Py_None; | |
24010 | return resultobj; | |
24011 | fail: | |
24012 | return NULL; | |
24013 | } | |
24014 | ||
24015 | ||
c370783e | 24016 | static PyObject *_wrap_Window_SetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
24017 | PyObject *resultobj; |
24018 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24019 | wxSize *arg2 = 0 ; | |
24020 | wxSize temp2 ; | |
24021 | PyObject * obj0 = 0 ; | |
24022 | PyObject * obj1 = 0 ; | |
24023 | char *kwnames[] = { | |
24024 | (char *) "self",(char *) "maxSize", NULL | |
24025 | }; | |
24026 | ||
24027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) goto fail; | |
24028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24030 | { | |
24031 | arg2 = &temp2; | |
24032 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24033 | } | |
24034 | { | |
24035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24036 | (arg1)->SetMaxSize((wxSize const &)*arg2); | |
24037 | ||
24038 | wxPyEndAllowThreads(__tstate); | |
24039 | if (PyErr_Occurred()) SWIG_fail; | |
24040 | } | |
24041 | Py_INCREF(Py_None); resultobj = Py_None; | |
24042 | return resultobj; | |
24043 | fail: | |
24044 | return NULL; | |
24045 | } | |
24046 | ||
24047 | ||
c370783e | 24048 | static PyObject *_wrap_Window_GetMinWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24049 | PyObject *resultobj; |
24050 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24051 | int result; | |
24052 | PyObject * obj0 = 0 ; | |
24053 | char *kwnames[] = { | |
24054 | (char *) "self", NULL | |
24055 | }; | |
24056 | ||
908b74cd | 24057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24060 | { | |
24061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24062 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); |
d55e5bfc RD |
24063 | |
24064 | wxPyEndAllowThreads(__tstate); | |
24065 | if (PyErr_Occurred()) SWIG_fail; | |
24066 | } | |
c370783e | 24067 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24068 | return resultobj; |
24069 | fail: | |
24070 | return NULL; | |
24071 | } | |
24072 | ||
24073 | ||
c370783e | 24074 | static PyObject *_wrap_Window_GetMinHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24075 | PyObject *resultobj; |
24076 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24077 | int result; | |
24078 | PyObject * obj0 = 0 ; | |
24079 | char *kwnames[] = { | |
24080 | (char *) "self", NULL | |
24081 | }; | |
24082 | ||
908b74cd | 24083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24086 | { | |
24087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24088 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); |
d55e5bfc RD |
24089 | |
24090 | wxPyEndAllowThreads(__tstate); | |
24091 | if (PyErr_Occurred()) SWIG_fail; | |
24092 | } | |
c370783e | 24093 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24094 | return resultobj; |
24095 | fail: | |
24096 | return NULL; | |
24097 | } | |
24098 | ||
24099 | ||
c370783e | 24100 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24101 | PyObject *resultobj; |
24102 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24103 | int result; |
d55e5bfc RD |
24104 | PyObject * obj0 = 0 ; |
24105 | char *kwnames[] = { | |
24106 | (char *) "self", NULL | |
24107 | }; | |
24108 | ||
908b74cd | 24109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24112 | { | |
24113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24114 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); |
d55e5bfc RD |
24115 | |
24116 | wxPyEndAllowThreads(__tstate); | |
24117 | if (PyErr_Occurred()) SWIG_fail; | |
24118 | } | |
c370783e | 24119 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24120 | return resultobj; |
24121 | fail: | |
24122 | return NULL; | |
24123 | } | |
24124 | ||
24125 | ||
c370783e | 24126 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24127 | PyObject *resultobj; |
24128 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24129 | int result; |
d55e5bfc RD |
24130 | PyObject * obj0 = 0 ; |
24131 | char *kwnames[] = { | |
24132 | (char *) "self", NULL | |
24133 | }; | |
24134 | ||
908b74cd | 24135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24138 | { | |
24139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24140 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); |
d55e5bfc RD |
24141 | |
24142 | wxPyEndAllowThreads(__tstate); | |
24143 | if (PyErr_Occurred()) SWIG_fail; | |
24144 | } | |
c370783e | 24145 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24146 | return resultobj; |
24147 | fail: | |
24148 | return NULL; | |
24149 | } | |
24150 | ||
24151 | ||
c370783e | 24152 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24153 | PyObject *resultobj; |
24154 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24155 | wxSize *arg2 = 0 ; | |
24156 | wxSize temp2 ; | |
24157 | PyObject * obj0 = 0 ; | |
24158 | PyObject * obj1 = 0 ; | |
24159 | char *kwnames[] = { | |
24160 | (char *) "self",(char *) "size", NULL | |
24161 | }; | |
24162 | ||
24163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
24164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24166 | { | |
24167 | arg2 = &temp2; | |
24168 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24169 | } | |
24170 | { | |
24171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24172 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
24173 | ||
24174 | wxPyEndAllowThreads(__tstate); | |
24175 | if (PyErr_Occurred()) SWIG_fail; | |
24176 | } | |
24177 | Py_INCREF(Py_None); resultobj = Py_None; | |
24178 | return resultobj; | |
24179 | fail: | |
24180 | return NULL; | |
24181 | } | |
24182 | ||
24183 | ||
c370783e | 24184 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24185 | PyObject *resultobj; |
24186 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24187 | int arg2 ; | |
24188 | int arg3 ; | |
24189 | PyObject * obj0 = 0 ; | |
24190 | PyObject * obj1 = 0 ; | |
24191 | PyObject * obj2 = 0 ; | |
24192 | char *kwnames[] = { | |
24193 | (char *) "self",(char *) "w",(char *) "h", NULL | |
24194 | }; | |
24195 | ||
24196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24199 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 24200 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24201 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
24202 | if (PyErr_Occurred()) SWIG_fail; |
24203 | { | |
24204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24205 | (arg1)->SetVirtualSize(arg2,arg3); | |
24206 | ||
24207 | wxPyEndAllowThreads(__tstate); | |
24208 | if (PyErr_Occurred()) SWIG_fail; | |
24209 | } | |
24210 | Py_INCREF(Py_None); resultobj = Py_None; | |
24211 | return resultobj; | |
24212 | fail: | |
24213 | return NULL; | |
24214 | } | |
24215 | ||
24216 | ||
c370783e | 24217 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24218 | PyObject *resultobj; |
24219 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24220 | wxSize result; | |
24221 | PyObject * obj0 = 0 ; | |
24222 | char *kwnames[] = { | |
24223 | (char *) "self", NULL | |
24224 | }; | |
24225 | ||
24226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
24227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24229 | { | |
24230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24231 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
24232 | ||
24233 | wxPyEndAllowThreads(__tstate); | |
24234 | if (PyErr_Occurred()) SWIG_fail; | |
24235 | } | |
24236 | { | |
24237 | wxSize * resultptr; | |
24238 | resultptr = new wxSize((wxSize &) result); | |
24239 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24240 | } | |
24241 | return resultobj; | |
24242 | fail: | |
24243 | return NULL; | |
24244 | } | |
24245 | ||
24246 | ||
c370783e | 24247 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24248 | PyObject *resultobj; |
24249 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24250 | int *arg2 = (int *) 0 ; | |
24251 | int *arg3 = (int *) 0 ; | |
24252 | int temp2 ; | |
c370783e | 24253 | int res2 = 0 ; |
d55e5bfc | 24254 | int temp3 ; |
c370783e | 24255 | int res3 = 0 ; |
d55e5bfc RD |
24256 | PyObject * obj0 = 0 ; |
24257 | char *kwnames[] = { | |
24258 | (char *) "self", NULL | |
24259 | }; | |
24260 | ||
c370783e RD |
24261 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
24262 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
24263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; |
24264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24266 | { | |
24267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24268 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
24269 | ||
24270 | wxPyEndAllowThreads(__tstate); | |
24271 | if (PyErr_Occurred()) SWIG_fail; | |
24272 | } | |
24273 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
24274 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
24275 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
24276 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
24277 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
24278 | return resultobj; |
24279 | fail: | |
24280 | return NULL; | |
24281 | } | |
24282 | ||
24283 | ||
c370783e | 24284 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24285 | PyObject *resultobj; |
24286 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24287 | wxSize result; | |
24288 | PyObject * obj0 = 0 ; | |
24289 | char *kwnames[] = { | |
24290 | (char *) "self", NULL | |
24291 | }; | |
24292 | ||
24293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
24294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24296 | { | |
24297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24298 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
24299 | ||
24300 | wxPyEndAllowThreads(__tstate); | |
24301 | if (PyErr_Occurred()) SWIG_fail; | |
24302 | } | |
24303 | { | |
24304 | wxSize * resultptr; | |
24305 | resultptr = new wxSize((wxSize &) result); | |
24306 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24307 | } | |
24308 | return resultobj; | |
24309 | fail: | |
24310 | return NULL; | |
24311 | } | |
24312 | ||
24313 | ||
c370783e | 24314 | static PyObject *_wrap_Window_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24315 | PyObject *resultobj; |
24316 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b411df4a | 24317 | bool arg2 = (bool) true ; |
d55e5bfc RD |
24318 | bool result; |
24319 | PyObject * obj0 = 0 ; | |
24320 | PyObject * obj1 = 0 ; | |
24321 | char *kwnames[] = { | |
24322 | (char *) "self",(char *) "show", NULL | |
24323 | }; | |
24324 | ||
24325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
24326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24328 | if (obj1) { | |
c370783e | 24329 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24330 | if (PyErr_Occurred()) SWIG_fail; |
24331 | } | |
24332 | { | |
24333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24334 | result = (bool)(arg1)->Show(arg2); | |
24335 | ||
24336 | wxPyEndAllowThreads(__tstate); | |
24337 | if (PyErr_Occurred()) SWIG_fail; | |
24338 | } | |
24339 | { | |
24340 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24341 | } | |
24342 | return resultobj; | |
24343 | fail: | |
24344 | return NULL; | |
24345 | } | |
24346 | ||
24347 | ||
c370783e | 24348 | static PyObject *_wrap_Window_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24349 | PyObject *resultobj; |
24350 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24351 | bool result; | |
24352 | PyObject * obj0 = 0 ; | |
24353 | char *kwnames[] = { | |
24354 | (char *) "self", NULL | |
24355 | }; | |
24356 | ||
24357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
24358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24360 | { | |
24361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24362 | result = (bool)(arg1)->Hide(); | |
24363 | ||
24364 | wxPyEndAllowThreads(__tstate); | |
24365 | if (PyErr_Occurred()) SWIG_fail; | |
24366 | } | |
24367 | { | |
24368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24369 | } | |
24370 | return resultobj; | |
24371 | fail: | |
24372 | return NULL; | |
24373 | } | |
24374 | ||
24375 | ||
c370783e | 24376 | static PyObject *_wrap_Window_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24377 | PyObject *resultobj; |
24378 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b411df4a | 24379 | bool arg2 = (bool) true ; |
d55e5bfc RD |
24380 | bool result; |
24381 | PyObject * obj0 = 0 ; | |
24382 | PyObject * obj1 = 0 ; | |
24383 | char *kwnames[] = { | |
24384 | (char *) "self",(char *) "enable", NULL | |
24385 | }; | |
24386 | ||
24387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
24388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24390 | if (obj1) { | |
c370783e | 24391 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24392 | if (PyErr_Occurred()) SWIG_fail; |
24393 | } | |
24394 | { | |
24395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24396 | result = (bool)(arg1)->Enable(arg2); | |
24397 | ||
24398 | wxPyEndAllowThreads(__tstate); | |
24399 | if (PyErr_Occurred()) SWIG_fail; | |
24400 | } | |
24401 | { | |
24402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24403 | } | |
24404 | return resultobj; | |
24405 | fail: | |
24406 | return NULL; | |
24407 | } | |
24408 | ||
24409 | ||
c370783e | 24410 | static PyObject *_wrap_Window_Disable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24411 | PyObject *resultobj; |
24412 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24413 | bool result; | |
24414 | PyObject * obj0 = 0 ; | |
24415 | char *kwnames[] = { | |
24416 | (char *) "self", NULL | |
24417 | }; | |
24418 | ||
24419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
24420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24422 | { | |
24423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24424 | result = (bool)(arg1)->Disable(); | |
24425 | ||
24426 | wxPyEndAllowThreads(__tstate); | |
24427 | if (PyErr_Occurred()) SWIG_fail; | |
24428 | } | |
24429 | { | |
24430 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24431 | } | |
24432 | return resultobj; | |
24433 | fail: | |
24434 | return NULL; | |
24435 | } | |
24436 | ||
24437 | ||
c370783e | 24438 | static PyObject *_wrap_Window_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24439 | PyObject *resultobj; |
24440 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24441 | bool result; | |
24442 | PyObject * obj0 = 0 ; | |
24443 | char *kwnames[] = { | |
24444 | (char *) "self", NULL | |
24445 | }; | |
24446 | ||
24447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
24448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24450 | { | |
24451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24452 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
24453 | ||
24454 | wxPyEndAllowThreads(__tstate); | |
24455 | if (PyErr_Occurred()) SWIG_fail; | |
24456 | } | |
24457 | { | |
24458 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24459 | } | |
24460 | return resultobj; | |
24461 | fail: | |
24462 | return NULL; | |
24463 | } | |
24464 | ||
24465 | ||
c370783e | 24466 | static PyObject *_wrap_Window_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24467 | PyObject *resultobj; |
24468 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24469 | bool result; | |
24470 | PyObject * obj0 = 0 ; | |
24471 | char *kwnames[] = { | |
24472 | (char *) "self", NULL | |
24473 | }; | |
24474 | ||
24475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
24476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24478 | { | |
24479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24480 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
24481 | ||
24482 | wxPyEndAllowThreads(__tstate); | |
24483 | if (PyErr_Occurred()) SWIG_fail; | |
24484 | } | |
24485 | { | |
24486 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24487 | } | |
24488 | return resultobj; | |
24489 | fail: | |
24490 | return NULL; | |
24491 | } | |
24492 | ||
24493 | ||
c370783e | 24494 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24495 | PyObject *resultobj; |
24496 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24497 | long arg2 ; | |
24498 | PyObject * obj0 = 0 ; | |
24499 | PyObject * obj1 = 0 ; | |
24500 | char *kwnames[] = { | |
24501 | (char *) "self",(char *) "style", NULL | |
24502 | }; | |
24503 | ||
24504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
24505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24507 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24508 | if (PyErr_Occurred()) SWIG_fail; |
24509 | { | |
24510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24511 | (arg1)->SetWindowStyleFlag(arg2); | |
24512 | ||
24513 | wxPyEndAllowThreads(__tstate); | |
24514 | if (PyErr_Occurred()) SWIG_fail; | |
24515 | } | |
24516 | Py_INCREF(Py_None); resultobj = Py_None; | |
24517 | return resultobj; | |
24518 | fail: | |
24519 | return NULL; | |
24520 | } | |
24521 | ||
24522 | ||
c370783e | 24523 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24524 | PyObject *resultobj; |
24525 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24526 | long result; | |
24527 | PyObject * obj0 = 0 ; | |
24528 | char *kwnames[] = { | |
24529 | (char *) "self", NULL | |
24530 | }; | |
24531 | ||
24532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
24533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24535 | { | |
24536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24537 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
24538 | ||
24539 | wxPyEndAllowThreads(__tstate); | |
24540 | if (PyErr_Occurred()) SWIG_fail; | |
24541 | } | |
c370783e | 24542 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24543 | return resultobj; |
24544 | fail: | |
24545 | return NULL; | |
24546 | } | |
24547 | ||
24548 | ||
c370783e | 24549 | static PyObject *_wrap_Window_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24550 | PyObject *resultobj; |
24551 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24552 | int arg2 ; | |
24553 | bool result; | |
24554 | PyObject * obj0 = 0 ; | |
24555 | PyObject * obj1 = 0 ; | |
24556 | char *kwnames[] = { | |
24557 | (char *) "self",(char *) "flag", NULL | |
24558 | }; | |
24559 | ||
24560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
24561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24563 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24564 | if (PyErr_Occurred()) SWIG_fail; |
24565 | { | |
24566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24567 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
24568 | ||
24569 | wxPyEndAllowThreads(__tstate); | |
24570 | if (PyErr_Occurred()) SWIG_fail; | |
24571 | } | |
24572 | { | |
24573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24574 | } | |
24575 | return resultobj; | |
24576 | fail: | |
24577 | return NULL; | |
24578 | } | |
24579 | ||
24580 | ||
c370783e | 24581 | static PyObject *_wrap_Window_IsRetained(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24582 | PyObject *resultobj; |
24583 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24584 | bool result; | |
24585 | PyObject * obj0 = 0 ; | |
24586 | char *kwnames[] = { | |
24587 | (char *) "self", NULL | |
24588 | }; | |
24589 | ||
24590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
24591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24593 | { | |
24594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24595 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
24596 | ||
24597 | wxPyEndAllowThreads(__tstate); | |
24598 | if (PyErr_Occurred()) SWIG_fail; | |
24599 | } | |
24600 | { | |
24601 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24602 | } | |
24603 | return resultobj; | |
24604 | fail: | |
24605 | return NULL; | |
24606 | } | |
24607 | ||
24608 | ||
c370783e | 24609 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24610 | PyObject *resultobj; |
24611 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24612 | long arg2 ; | |
24613 | PyObject * obj0 = 0 ; | |
24614 | PyObject * obj1 = 0 ; | |
24615 | char *kwnames[] = { | |
24616 | (char *) "self",(char *) "exStyle", NULL | |
24617 | }; | |
24618 | ||
24619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; | |
24620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24622 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24623 | if (PyErr_Occurred()) SWIG_fail; |
24624 | { | |
24625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24626 | (arg1)->SetExtraStyle(arg2); | |
24627 | ||
24628 | wxPyEndAllowThreads(__tstate); | |
24629 | if (PyErr_Occurred()) SWIG_fail; | |
24630 | } | |
24631 | Py_INCREF(Py_None); resultobj = Py_None; | |
24632 | return resultobj; | |
24633 | fail: | |
24634 | return NULL; | |
24635 | } | |
24636 | ||
24637 | ||
c370783e | 24638 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24639 | PyObject *resultobj; |
24640 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24641 | long result; | |
24642 | PyObject * obj0 = 0 ; | |
24643 | char *kwnames[] = { | |
24644 | (char *) "self", NULL | |
24645 | }; | |
24646 | ||
24647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
24648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24650 | { | |
24651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24652 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
24653 | ||
24654 | wxPyEndAllowThreads(__tstate); | |
24655 | if (PyErr_Occurred()) SWIG_fail; | |
24656 | } | |
c370783e | 24657 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24658 | return resultobj; |
24659 | fail: | |
24660 | return NULL; | |
24661 | } | |
24662 | ||
24663 | ||
c370783e | 24664 | static PyObject *_wrap_Window_MakeModal(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24665 | PyObject *resultobj; |
24666 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b411df4a | 24667 | bool arg2 = (bool) true ; |
d55e5bfc RD |
24668 | PyObject * obj0 = 0 ; |
24669 | PyObject * obj1 = 0 ; | |
24670 | char *kwnames[] = { | |
24671 | (char *) "self",(char *) "modal", NULL | |
24672 | }; | |
24673 | ||
24674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
24675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24677 | if (obj1) { | |
c370783e | 24678 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24679 | if (PyErr_Occurred()) SWIG_fail; |
24680 | } | |
24681 | { | |
24682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24683 | (arg1)->MakeModal(arg2); | |
24684 | ||
24685 | wxPyEndAllowThreads(__tstate); | |
24686 | if (PyErr_Occurred()) SWIG_fail; | |
24687 | } | |
24688 | Py_INCREF(Py_None); resultobj = Py_None; | |
24689 | return resultobj; | |
24690 | fail: | |
24691 | return NULL; | |
24692 | } | |
24693 | ||
24694 | ||
c370783e | 24695 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24696 | PyObject *resultobj; |
24697 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24698 | bool arg2 ; | |
24699 | PyObject * obj0 = 0 ; | |
24700 | PyObject * obj1 = 0 ; | |
24701 | char *kwnames[] = { | |
24702 | (char *) "self",(char *) "enableTheme", NULL | |
24703 | }; | |
24704 | ||
24705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
24706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24708 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24709 | if (PyErr_Occurred()) SWIG_fail; |
24710 | { | |
24711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24712 | (arg1)->SetThemeEnabled(arg2); | |
24713 | ||
24714 | wxPyEndAllowThreads(__tstate); | |
24715 | if (PyErr_Occurred()) SWIG_fail; | |
24716 | } | |
24717 | Py_INCREF(Py_None); resultobj = Py_None; | |
24718 | return resultobj; | |
24719 | fail: | |
24720 | return NULL; | |
24721 | } | |
24722 | ||
24723 | ||
c370783e | 24724 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24725 | PyObject *resultobj; |
24726 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24727 | bool result; | |
24728 | PyObject * obj0 = 0 ; | |
24729 | char *kwnames[] = { | |
24730 | (char *) "self", NULL | |
24731 | }; | |
24732 | ||
24733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
24734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24736 | { | |
24737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24738 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
24739 | ||
24740 | wxPyEndAllowThreads(__tstate); | |
24741 | if (PyErr_Occurred()) SWIG_fail; | |
24742 | } | |
24743 | { | |
24744 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24745 | } | |
24746 | return resultobj; | |
24747 | fail: | |
24748 | return NULL; | |
24749 | } | |
24750 | ||
24751 | ||
c370783e | 24752 | static PyObject *_wrap_Window_SetFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24753 | PyObject *resultobj; |
24754 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24755 | PyObject * obj0 = 0 ; | |
24756 | char *kwnames[] = { | |
24757 | (char *) "self", NULL | |
24758 | }; | |
24759 | ||
24760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
24761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24763 | { | |
24764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24765 | (arg1)->SetFocus(); | |
24766 | ||
24767 | wxPyEndAllowThreads(__tstate); | |
24768 | if (PyErr_Occurred()) SWIG_fail; | |
24769 | } | |
24770 | Py_INCREF(Py_None); resultobj = Py_None; | |
24771 | return resultobj; | |
24772 | fail: | |
24773 | return NULL; | |
24774 | } | |
24775 | ||
24776 | ||
c370783e | 24777 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24778 | PyObject *resultobj; |
24779 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24780 | PyObject * obj0 = 0 ; | |
24781 | char *kwnames[] = { | |
24782 | (char *) "self", NULL | |
24783 | }; | |
24784 | ||
24785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
24786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24788 | { | |
24789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24790 | (arg1)->SetFocusFromKbd(); | |
24791 | ||
24792 | wxPyEndAllowThreads(__tstate); | |
24793 | if (PyErr_Occurred()) SWIG_fail; | |
24794 | } | |
24795 | Py_INCREF(Py_None); resultobj = Py_None; | |
24796 | return resultobj; | |
24797 | fail: | |
24798 | return NULL; | |
24799 | } | |
24800 | ||
24801 | ||
c370783e | 24802 | static PyObject *_wrap_Window_FindFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24803 | PyObject *resultobj; |
24804 | wxWindow *result; | |
24805 | char *kwnames[] = { | |
24806 | NULL | |
24807 | }; | |
24808 | ||
24809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
24810 | { | |
0439c23b | 24811 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24813 | result = (wxWindow *)wxWindow::FindFocus(); | |
24814 | ||
24815 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24816 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24817 | } |
24818 | { | |
412d302d | 24819 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24820 | } |
24821 | return resultobj; | |
24822 | fail: | |
24823 | return NULL; | |
24824 | } | |
24825 | ||
24826 | ||
c370783e | 24827 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24828 | PyObject *resultobj; |
24829 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24830 | bool result; | |
24831 | PyObject * obj0 = 0 ; | |
24832 | char *kwnames[] = { | |
24833 | (char *) "self", NULL | |
24834 | }; | |
24835 | ||
24836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
24837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24839 | { | |
24840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24841 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
24842 | ||
24843 | wxPyEndAllowThreads(__tstate); | |
24844 | if (PyErr_Occurred()) SWIG_fail; | |
24845 | } | |
24846 | { | |
24847 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24848 | } | |
24849 | return resultobj; | |
24850 | fail: | |
24851 | return NULL; | |
24852 | } | |
24853 | ||
24854 | ||
c370783e | 24855 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24856 | PyObject *resultobj; |
24857 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24858 | bool result; | |
24859 | PyObject * obj0 = 0 ; | |
24860 | char *kwnames[] = { | |
24861 | (char *) "self", NULL | |
24862 | }; | |
24863 | ||
24864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
24865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24867 | { | |
24868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24869 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
24870 | ||
24871 | wxPyEndAllowThreads(__tstate); | |
24872 | if (PyErr_Occurred()) SWIG_fail; | |
24873 | } | |
24874 | { | |
24875 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24876 | } | |
24877 | return resultobj; | |
24878 | fail: | |
24879 | return NULL; | |
24880 | } | |
24881 | ||
24882 | ||
c370783e | 24883 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24884 | PyObject *resultobj; |
24885 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24886 | wxWindow *result; | |
24887 | PyObject * obj0 = 0 ; | |
24888 | char *kwnames[] = { | |
24889 | (char *) "self", NULL | |
24890 | }; | |
24891 | ||
24892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
24893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24895 | { | |
24896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24897 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
24898 | ||
24899 | wxPyEndAllowThreads(__tstate); | |
24900 | if (PyErr_Occurred()) SWIG_fail; | |
24901 | } | |
24902 | { | |
412d302d | 24903 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24904 | } |
24905 | return resultobj; | |
24906 | fail: | |
24907 | return NULL; | |
24908 | } | |
24909 | ||
24910 | ||
c370783e | 24911 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24912 | PyObject *resultobj; |
24913 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24914 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24915 | wxWindow *result; | |
24916 | PyObject * obj0 = 0 ; | |
24917 | PyObject * obj1 = 0 ; | |
24918 | char *kwnames[] = { | |
24919 | (char *) "self",(char *) "child", NULL | |
24920 | }; | |
24921 | ||
24922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
24923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24925 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24927 | { | |
24928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24929 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
24930 | ||
24931 | wxPyEndAllowThreads(__tstate); | |
24932 | if (PyErr_Occurred()) SWIG_fail; | |
24933 | } | |
24934 | { | |
412d302d | 24935 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24936 | } |
24937 | return resultobj; | |
24938 | fail: | |
24939 | return NULL; | |
24940 | } | |
24941 | ||
24942 | ||
c370783e | 24943 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24944 | PyObject *resultobj; |
24945 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24946 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24947 | PyObject * obj0 = 0 ; | |
24948 | PyObject * obj1 = 0 ; | |
24949 | char *kwnames[] = { | |
24950 | (char *) "self",(char *) "win", NULL | |
24951 | }; | |
24952 | ||
24953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
24954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24956 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24958 | { | |
24959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24960 | (arg1)->SetTmpDefaultItem(arg2); | |
24961 | ||
24962 | wxPyEndAllowThreads(__tstate); | |
24963 | if (PyErr_Occurred()) SWIG_fail; | |
24964 | } | |
24965 | Py_INCREF(Py_None); resultobj = Py_None; | |
24966 | return resultobj; | |
24967 | fail: | |
24968 | return NULL; | |
24969 | } | |
24970 | ||
24971 | ||
c370783e | 24972 | static PyObject *_wrap_Window_Navigate(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
24973 | PyObject *resultobj; |
24974 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24975 | int arg2 = (int) wxNavigationKeyEvent::IsForward ; | |
24976 | bool result; | |
24977 | PyObject * obj0 = 0 ; | |
24978 | PyObject * obj1 = 0 ; | |
24979 | char *kwnames[] = { | |
24980 | (char *) "self",(char *) "flags", NULL | |
24981 | }; | |
24982 | ||
24983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) goto fail; | |
24984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24986 | if (obj1) { | |
c370783e | 24987 | arg2 = (int)SWIG_As_int(obj1); |
908b74cd RD |
24988 | if (PyErr_Occurred()) SWIG_fail; |
24989 | } | |
24990 | { | |
24991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24992 | result = (bool)(arg1)->Navigate(arg2); | |
24993 | ||
24994 | wxPyEndAllowThreads(__tstate); | |
24995 | if (PyErr_Occurred()) SWIG_fail; | |
24996 | } | |
24997 | { | |
24998 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24999 | } | |
25000 | return resultobj; | |
25001 | fail: | |
25002 | return NULL; | |
25003 | } | |
25004 | ||
25005 | ||
c370783e | 25006 | static PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
25007 | PyObject *resultobj; |
25008 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25009 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25010 | PyObject * obj0 = 0 ; | |
25011 | PyObject * obj1 = 0 ; | |
25012 | char *kwnames[] = { | |
25013 | (char *) "self",(char *) "win", NULL | |
25014 | }; | |
25015 | ||
25016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
25017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25019 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25021 | { | |
25022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25023 | (arg1)->MoveAfterInTabOrder(arg2); | |
25024 | ||
25025 | wxPyEndAllowThreads(__tstate); | |
25026 | if (PyErr_Occurred()) SWIG_fail; | |
25027 | } | |
25028 | Py_INCREF(Py_None); resultobj = Py_None; | |
25029 | return resultobj; | |
25030 | fail: | |
25031 | return NULL; | |
25032 | } | |
25033 | ||
25034 | ||
c370783e | 25035 | static PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
25036 | PyObject *resultobj; |
25037 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25038 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25039 | PyObject * obj0 = 0 ; | |
25040 | PyObject * obj1 = 0 ; | |
25041 | char *kwnames[] = { | |
25042 | (char *) "self",(char *) "win", NULL | |
25043 | }; | |
25044 | ||
25045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
25046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25048 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25050 | { | |
25051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25052 | (arg1)->MoveBeforeInTabOrder(arg2); | |
25053 | ||
25054 | wxPyEndAllowThreads(__tstate); | |
25055 | if (PyErr_Occurred()) SWIG_fail; | |
25056 | } | |
25057 | Py_INCREF(Py_None); resultobj = Py_None; | |
25058 | return resultobj; | |
25059 | fail: | |
25060 | return NULL; | |
25061 | } | |
25062 | ||
25063 | ||
c370783e | 25064 | static PyObject *_wrap_Window_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25065 | PyObject *resultobj; |
25066 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25067 | PyObject *result; | |
25068 | PyObject * obj0 = 0 ; | |
25069 | char *kwnames[] = { | |
25070 | (char *) "self", NULL | |
25071 | }; | |
25072 | ||
25073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
25074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25076 | { | |
25077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25078 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
25079 | ||
25080 | wxPyEndAllowThreads(__tstate); | |
25081 | if (PyErr_Occurred()) SWIG_fail; | |
25082 | } | |
25083 | resultobj = result; | |
25084 | return resultobj; | |
25085 | fail: | |
25086 | return NULL; | |
25087 | } | |
25088 | ||
25089 | ||
c370783e | 25090 | static PyObject *_wrap_Window_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25091 | PyObject *resultobj; |
25092 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25093 | wxWindow *result; | |
25094 | PyObject * obj0 = 0 ; | |
25095 | char *kwnames[] = { | |
25096 | (char *) "self", NULL | |
25097 | }; | |
25098 | ||
25099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
25100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25102 | { | |
25103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25104 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
25105 | ||
25106 | wxPyEndAllowThreads(__tstate); | |
25107 | if (PyErr_Occurred()) SWIG_fail; | |
25108 | } | |
25109 | { | |
412d302d | 25110 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25111 | } |
25112 | return resultobj; | |
25113 | fail: | |
25114 | return NULL; | |
25115 | } | |
25116 | ||
25117 | ||
c370783e | 25118 | static PyObject *_wrap_Window_GetGrandParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25119 | PyObject *resultobj; |
25120 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25121 | wxWindow *result; | |
25122 | PyObject * obj0 = 0 ; | |
25123 | char *kwnames[] = { | |
25124 | (char *) "self", NULL | |
25125 | }; | |
25126 | ||
25127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
25128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25130 | { | |
25131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25132 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
25133 | ||
25134 | wxPyEndAllowThreads(__tstate); | |
25135 | if (PyErr_Occurred()) SWIG_fail; | |
25136 | } | |
25137 | { | |
412d302d | 25138 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25139 | } |
25140 | return resultobj; | |
25141 | fail: | |
25142 | return NULL; | |
25143 | } | |
25144 | ||
25145 | ||
c370783e | 25146 | static PyObject *_wrap_Window_IsTopLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25147 | PyObject *resultobj; |
25148 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25149 | bool result; | |
25150 | PyObject * obj0 = 0 ; | |
25151 | char *kwnames[] = { | |
25152 | (char *) "self", NULL | |
25153 | }; | |
25154 | ||
25155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
25156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25158 | { | |
25159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25160 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
25161 | ||
25162 | wxPyEndAllowThreads(__tstate); | |
25163 | if (PyErr_Occurred()) SWIG_fail; | |
25164 | } | |
25165 | { | |
25166 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25167 | } | |
25168 | return resultobj; | |
25169 | fail: | |
25170 | return NULL; | |
25171 | } | |
25172 | ||
25173 | ||
c370783e | 25174 | static PyObject *_wrap_Window_Reparent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25175 | PyObject *resultobj; |
25176 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25177 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25178 | bool result; | |
25179 | PyObject * obj0 = 0 ; | |
25180 | PyObject * obj1 = 0 ; | |
25181 | char *kwnames[] = { | |
25182 | (char *) "self",(char *) "newParent", NULL | |
25183 | }; | |
25184 | ||
25185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
25186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25188 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25190 | { | |
25191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25192 | result = (bool)(arg1)->Reparent(arg2); | |
25193 | ||
25194 | wxPyEndAllowThreads(__tstate); | |
25195 | if (PyErr_Occurred()) SWIG_fail; | |
25196 | } | |
25197 | { | |
25198 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25199 | } | |
25200 | return resultobj; | |
25201 | fail: | |
25202 | return NULL; | |
25203 | } | |
25204 | ||
25205 | ||
c370783e | 25206 | static PyObject *_wrap_Window_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25207 | PyObject *resultobj; |
25208 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25209 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25210 | PyObject * obj0 = 0 ; | |
25211 | PyObject * obj1 = 0 ; | |
25212 | char *kwnames[] = { | |
25213 | (char *) "self",(char *) "child", NULL | |
25214 | }; | |
25215 | ||
25216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
25217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25219 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25221 | { | |
25222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25223 | (arg1)->AddChild(arg2); | |
25224 | ||
25225 | wxPyEndAllowThreads(__tstate); | |
25226 | if (PyErr_Occurred()) SWIG_fail; | |
25227 | } | |
25228 | Py_INCREF(Py_None); resultobj = Py_None; | |
25229 | return resultobj; | |
25230 | fail: | |
25231 | return NULL; | |
25232 | } | |
25233 | ||
25234 | ||
c370783e | 25235 | static PyObject *_wrap_Window_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25236 | PyObject *resultobj; |
25237 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25238 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25239 | PyObject * obj0 = 0 ; | |
25240 | PyObject * obj1 = 0 ; | |
25241 | char *kwnames[] = { | |
25242 | (char *) "self",(char *) "child", NULL | |
25243 | }; | |
25244 | ||
25245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
25246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25248 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25250 | { | |
25251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25252 | (arg1)->RemoveChild(arg2); | |
25253 | ||
25254 | wxPyEndAllowThreads(__tstate); | |
25255 | if (PyErr_Occurred()) SWIG_fail; | |
25256 | } | |
25257 | Py_INCREF(Py_None); resultobj = Py_None; | |
25258 | return resultobj; | |
25259 | fail: | |
25260 | return NULL; | |
25261 | } | |
25262 | ||
25263 | ||
c370783e | 25264 | static PyObject *_wrap_Window_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25265 | PyObject *resultobj; |
25266 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25267 | long arg2 ; | |
25268 | wxWindow *result; | |
25269 | PyObject * obj0 = 0 ; | |
25270 | PyObject * obj1 = 0 ; | |
25271 | char *kwnames[] = { | |
25272 | (char *) "self",(char *) "winid", NULL | |
25273 | }; | |
25274 | ||
25275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
25276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25278 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
25279 | if (PyErr_Occurred()) SWIG_fail; |
25280 | { | |
25281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25282 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
25283 | ||
25284 | wxPyEndAllowThreads(__tstate); | |
25285 | if (PyErr_Occurred()) SWIG_fail; | |
25286 | } | |
25287 | { | |
412d302d | 25288 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25289 | } |
25290 | return resultobj; | |
25291 | fail: | |
25292 | return NULL; | |
25293 | } | |
25294 | ||
25295 | ||
c370783e | 25296 | static PyObject *_wrap_Window_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25297 | PyObject *resultobj; |
25298 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25299 | wxString *arg2 = 0 ; | |
25300 | wxWindow *result; | |
b411df4a | 25301 | bool temp2 = false ; |
d55e5bfc RD |
25302 | PyObject * obj0 = 0 ; |
25303 | PyObject * obj1 = 0 ; | |
25304 | char *kwnames[] = { | |
25305 | (char *) "self",(char *) "name", NULL | |
25306 | }; | |
25307 | ||
25308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
25309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25311 | { | |
25312 | arg2 = wxString_in_helper(obj1); | |
25313 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 25314 | temp2 = true; |
d55e5bfc RD |
25315 | } |
25316 | { | |
25317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25318 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
25319 | ||
25320 | wxPyEndAllowThreads(__tstate); | |
25321 | if (PyErr_Occurred()) SWIG_fail; | |
25322 | } | |
25323 | { | |
412d302d | 25324 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25325 | } |
25326 | { | |
25327 | if (temp2) | |
25328 | delete arg2; | |
25329 | } | |
25330 | return resultobj; | |
25331 | fail: | |
25332 | { | |
25333 | if (temp2) | |
25334 | delete arg2; | |
25335 | } | |
25336 | return NULL; | |
25337 | } | |
25338 | ||
25339 | ||
c370783e | 25340 | static PyObject *_wrap_Window_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25341 | PyObject *resultobj; |
25342 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25343 | wxEvtHandler *result; | |
25344 | PyObject * obj0 = 0 ; | |
25345 | char *kwnames[] = { | |
25346 | (char *) "self", NULL | |
25347 | }; | |
25348 | ||
25349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
25350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25352 | { | |
25353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25354 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
25355 | ||
25356 | wxPyEndAllowThreads(__tstate); | |
25357 | if (PyErr_Occurred()) SWIG_fail; | |
25358 | } | |
25359 | { | |
412d302d | 25360 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25361 | } |
25362 | return resultobj; | |
25363 | fail: | |
25364 | return NULL; | |
25365 | } | |
25366 | ||
25367 | ||
c370783e | 25368 | static PyObject *_wrap_Window_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25369 | PyObject *resultobj; |
25370 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25371 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25372 | PyObject * obj0 = 0 ; | |
25373 | PyObject * obj1 = 0 ; | |
25374 | char *kwnames[] = { | |
25375 | (char *) "self",(char *) "handler", NULL | |
25376 | }; | |
25377 | ||
25378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25381 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25383 | { | |
25384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25385 | (arg1)->SetEventHandler(arg2); | |
25386 | ||
25387 | wxPyEndAllowThreads(__tstate); | |
25388 | if (PyErr_Occurred()) SWIG_fail; | |
25389 | } | |
25390 | Py_INCREF(Py_None); resultobj = Py_None; | |
25391 | return resultobj; | |
25392 | fail: | |
25393 | return NULL; | |
25394 | } | |
25395 | ||
25396 | ||
c370783e | 25397 | static PyObject *_wrap_Window_PushEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25398 | PyObject *resultobj; |
25399 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25400 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25401 | PyObject * obj0 = 0 ; | |
25402 | PyObject * obj1 = 0 ; | |
25403 | char *kwnames[] = { | |
25404 | (char *) "self",(char *) "handler", NULL | |
25405 | }; | |
25406 | ||
25407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25410 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25412 | { | |
25413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25414 | (arg1)->PushEventHandler(arg2); | |
25415 | ||
25416 | wxPyEndAllowThreads(__tstate); | |
25417 | if (PyErr_Occurred()) SWIG_fail; | |
25418 | } | |
25419 | Py_INCREF(Py_None); resultobj = Py_None; | |
25420 | return resultobj; | |
25421 | fail: | |
25422 | return NULL; | |
25423 | } | |
25424 | ||
25425 | ||
c370783e | 25426 | static PyObject *_wrap_Window_PopEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25427 | PyObject *resultobj; |
25428 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b411df4a | 25429 | bool arg2 = (bool) false ; |
d55e5bfc RD |
25430 | wxEvtHandler *result; |
25431 | PyObject * obj0 = 0 ; | |
25432 | PyObject * obj1 = 0 ; | |
25433 | char *kwnames[] = { | |
25434 | (char *) "self",(char *) "deleteHandler", NULL | |
25435 | }; | |
25436 | ||
25437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25440 | if (obj1) { | |
c370783e | 25441 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
25442 | if (PyErr_Occurred()) SWIG_fail; |
25443 | } | |
25444 | { | |
25445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25446 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
25447 | ||
25448 | wxPyEndAllowThreads(__tstate); | |
25449 | if (PyErr_Occurred()) SWIG_fail; | |
25450 | } | |
25451 | { | |
412d302d | 25452 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25453 | } |
25454 | return resultobj; | |
25455 | fail: | |
25456 | return NULL; | |
25457 | } | |
25458 | ||
25459 | ||
c370783e | 25460 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25461 | PyObject *resultobj; |
25462 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25463 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25464 | bool result; | |
25465 | PyObject * obj0 = 0 ; | |
25466 | PyObject * obj1 = 0 ; | |
25467 | char *kwnames[] = { | |
25468 | (char *) "self",(char *) "handler", NULL | |
25469 | }; | |
25470 | ||
25471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25474 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25476 | { | |
25477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25478 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
25479 | ||
25480 | wxPyEndAllowThreads(__tstate); | |
25481 | if (PyErr_Occurred()) SWIG_fail; | |
25482 | } | |
25483 | { | |
25484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25485 | } | |
25486 | return resultobj; | |
25487 | fail: | |
25488 | return NULL; | |
25489 | } | |
25490 | ||
25491 | ||
c370783e | 25492 | static PyObject *_wrap_Window_SetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25493 | PyObject *resultobj; |
25494 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25495 | wxValidator *arg2 = 0 ; | |
25496 | PyObject * obj0 = 0 ; | |
25497 | PyObject * obj1 = 0 ; | |
25498 | char *kwnames[] = { | |
25499 | (char *) "self",(char *) "validator", NULL | |
25500 | }; | |
25501 | ||
25502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
25503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25505 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator, | |
25506 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25507 | SWIG_fail; | |
25508 | if (arg2 == NULL) { | |
25509 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25510 | SWIG_fail; | |
25511 | } | |
25512 | { | |
25513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25514 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
25515 | ||
25516 | wxPyEndAllowThreads(__tstate); | |
25517 | if (PyErr_Occurred()) SWIG_fail; | |
25518 | } | |
25519 | Py_INCREF(Py_None); resultobj = Py_None; | |
25520 | return resultobj; | |
25521 | fail: | |
25522 | return NULL; | |
25523 | } | |
25524 | ||
25525 | ||
c370783e | 25526 | static PyObject *_wrap_Window_GetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25527 | PyObject *resultobj; |
25528 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25529 | wxValidator *result; | |
25530 | PyObject * obj0 = 0 ; | |
25531 | char *kwnames[] = { | |
25532 | (char *) "self", NULL | |
25533 | }; | |
25534 | ||
25535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
25536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25538 | { | |
25539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25540 | result = (wxValidator *)(arg1)->GetValidator(); | |
25541 | ||
25542 | wxPyEndAllowThreads(__tstate); | |
25543 | if (PyErr_Occurred()) SWIG_fail; | |
25544 | } | |
25545 | { | |
412d302d | 25546 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25547 | } |
25548 | return resultobj; | |
25549 | fail: | |
25550 | return NULL; | |
25551 | } | |
25552 | ||
25553 | ||
c370783e | 25554 | static PyObject *_wrap_Window_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25555 | PyObject *resultobj; |
25556 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25557 | bool result; | |
25558 | PyObject * obj0 = 0 ; | |
25559 | char *kwnames[] = { | |
25560 | (char *) "self", NULL | |
25561 | }; | |
25562 | ||
25563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail; | |
25564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25566 | { | |
25567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25568 | result = (bool)(arg1)->Validate(); | |
25569 | ||
25570 | wxPyEndAllowThreads(__tstate); | |
25571 | if (PyErr_Occurred()) SWIG_fail; | |
25572 | } | |
25573 | { | |
25574 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25575 | } | |
25576 | return resultobj; | |
25577 | fail: | |
25578 | return NULL; | |
25579 | } | |
25580 | ||
25581 | ||
c370783e | 25582 | static PyObject *_wrap_Window_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25583 | PyObject *resultobj; |
25584 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25585 | bool result; | |
25586 | PyObject * obj0 = 0 ; | |
25587 | char *kwnames[] = { | |
25588 | (char *) "self", NULL | |
25589 | }; | |
25590 | ||
25591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
25592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25594 | { | |
25595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25596 | result = (bool)(arg1)->TransferDataToWindow(); | |
25597 | ||
25598 | wxPyEndAllowThreads(__tstate); | |
25599 | if (PyErr_Occurred()) SWIG_fail; | |
25600 | } | |
25601 | { | |
25602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25603 | } | |
25604 | return resultobj; | |
25605 | fail: | |
25606 | return NULL; | |
25607 | } | |
25608 | ||
25609 | ||
c370783e | 25610 | static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25611 | PyObject *resultobj; |
25612 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25613 | bool result; | |
25614 | PyObject * obj0 = 0 ; | |
25615 | char *kwnames[] = { | |
25616 | (char *) "self", NULL | |
25617 | }; | |
25618 | ||
25619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
25620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25622 | { | |
25623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25624 | result = (bool)(arg1)->TransferDataFromWindow(); | |
25625 | ||
25626 | wxPyEndAllowThreads(__tstate); | |
25627 | if (PyErr_Occurred()) SWIG_fail; | |
25628 | } | |
25629 | { | |
25630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25631 | } | |
25632 | return resultobj; | |
25633 | fail: | |
25634 | return NULL; | |
25635 | } | |
25636 | ||
25637 | ||
c370783e | 25638 | static PyObject *_wrap_Window_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25639 | PyObject *resultobj; |
25640 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25641 | PyObject * obj0 = 0 ; | |
25642 | char *kwnames[] = { | |
25643 | (char *) "self", NULL | |
25644 | }; | |
25645 | ||
25646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail; | |
25647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25649 | { | |
25650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25651 | (arg1)->InitDialog(); | |
25652 | ||
25653 | wxPyEndAllowThreads(__tstate); | |
25654 | if (PyErr_Occurred()) SWIG_fail; | |
25655 | } | |
25656 | Py_INCREF(Py_None); resultobj = Py_None; | |
25657 | return resultobj; | |
25658 | fail: | |
25659 | return NULL; | |
25660 | } | |
25661 | ||
25662 | ||
c370783e | 25663 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25664 | PyObject *resultobj; |
25665 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25666 | wxAcceleratorTable *arg2 = 0 ; | |
25667 | PyObject * obj0 = 0 ; | |
25668 | PyObject * obj1 = 0 ; | |
25669 | char *kwnames[] = { | |
25670 | (char *) "self",(char *) "accel", NULL | |
25671 | }; | |
25672 | ||
25673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
25674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25676 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable, | |
25677 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25678 | SWIG_fail; | |
25679 | if (arg2 == NULL) { | |
25680 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25681 | SWIG_fail; | |
25682 | } | |
25683 | { | |
25684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25685 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
25686 | ||
25687 | wxPyEndAllowThreads(__tstate); | |
25688 | if (PyErr_Occurred()) SWIG_fail; | |
25689 | } | |
25690 | Py_INCREF(Py_None); resultobj = Py_None; | |
25691 | return resultobj; | |
25692 | fail: | |
25693 | return NULL; | |
25694 | } | |
25695 | ||
25696 | ||
c370783e | 25697 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25698 | PyObject *resultobj; |
25699 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25700 | wxAcceleratorTable *result; | |
25701 | PyObject * obj0 = 0 ; | |
25702 | char *kwnames[] = { | |
25703 | (char *) "self", NULL | |
25704 | }; | |
25705 | ||
25706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
25707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25709 | { | |
25710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25711 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
25712 | ||
25713 | wxPyEndAllowThreads(__tstate); | |
25714 | if (PyErr_Occurred()) SWIG_fail; | |
25715 | } | |
25716 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); | |
25717 | return resultobj; | |
25718 | fail: | |
25719 | return NULL; | |
25720 | } | |
25721 | ||
25722 | ||
c370783e | 25723 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25724 | PyObject *resultobj; |
25725 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25726 | int arg2 ; | |
25727 | int arg3 ; | |
25728 | int arg4 ; | |
25729 | bool result; | |
25730 | PyObject * obj0 = 0 ; | |
25731 | PyObject * obj1 = 0 ; | |
25732 | PyObject * obj2 = 0 ; | |
25733 | PyObject * obj3 = 0 ; | |
25734 | char *kwnames[] = { | |
25735 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
25736 | }; | |
25737 | ||
25738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25741 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 25742 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 25743 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 25744 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 25745 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
25746 | if (PyErr_Occurred()) SWIG_fail; |
25747 | { | |
25748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25749 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
25750 | ||
25751 | wxPyEndAllowThreads(__tstate); | |
25752 | if (PyErr_Occurred()) SWIG_fail; | |
25753 | } | |
25754 | { | |
25755 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25756 | } | |
25757 | return resultobj; | |
25758 | fail: | |
25759 | return NULL; | |
25760 | } | |
25761 | ||
25762 | ||
c370783e | 25763 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25764 | PyObject *resultobj; |
25765 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25766 | int arg2 ; | |
25767 | bool result; | |
25768 | PyObject * obj0 = 0 ; | |
25769 | PyObject * obj1 = 0 ; | |
25770 | char *kwnames[] = { | |
25771 | (char *) "self",(char *) "hotkeyId", NULL | |
25772 | }; | |
25773 | ||
25774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; | |
25775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25777 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
25778 | if (PyErr_Occurred()) SWIG_fail; |
25779 | { | |
25780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25781 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
25782 | ||
25783 | wxPyEndAllowThreads(__tstate); | |
25784 | if (PyErr_Occurred()) SWIG_fail; | |
25785 | } | |
25786 | { | |
25787 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25788 | } | |
25789 | return resultobj; | |
25790 | fail: | |
25791 | return NULL; | |
25792 | } | |
25793 | ||
25794 | ||
c370783e | 25795 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25796 | PyObject *resultobj; |
25797 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25798 | wxPoint *arg2 = 0 ; | |
25799 | wxPoint result; | |
25800 | wxPoint temp2 ; | |
25801 | PyObject * obj0 = 0 ; | |
25802 | PyObject * obj1 = 0 ; | |
25803 | char *kwnames[] = { | |
25804 | (char *) "self",(char *) "pt", NULL | |
25805 | }; | |
25806 | ||
25807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
25808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25810 | { | |
25811 | arg2 = &temp2; | |
25812 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25813 | } | |
25814 | { | |
25815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25816 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25817 | ||
25818 | wxPyEndAllowThreads(__tstate); | |
25819 | if (PyErr_Occurred()) SWIG_fail; | |
25820 | } | |
25821 | { | |
25822 | wxPoint * resultptr; | |
25823 | resultptr = new wxPoint((wxPoint &) result); | |
25824 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25825 | } | |
25826 | return resultobj; | |
25827 | fail: | |
25828 | return NULL; | |
25829 | } | |
25830 | ||
25831 | ||
c370783e | 25832 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25833 | PyObject *resultobj; |
25834 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25835 | wxSize *arg2 = 0 ; | |
25836 | wxSize result; | |
25837 | wxSize temp2 ; | |
25838 | PyObject * obj0 = 0 ; | |
25839 | PyObject * obj1 = 0 ; | |
25840 | char *kwnames[] = { | |
25841 | (char *) "self",(char *) "sz", NULL | |
25842 | }; | |
25843 | ||
25844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
25845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25847 | { | |
25848 | arg2 = &temp2; | |
25849 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25850 | } | |
25851 | { | |
25852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25853 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25854 | ||
25855 | wxPyEndAllowThreads(__tstate); | |
25856 | if (PyErr_Occurred()) SWIG_fail; | |
25857 | } | |
25858 | { | |
25859 | wxSize * resultptr; | |
25860 | resultptr = new wxSize((wxSize &) result); | |
25861 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
25862 | } | |
25863 | return resultobj; | |
25864 | fail: | |
25865 | return NULL; | |
25866 | } | |
25867 | ||
25868 | ||
c370783e | 25869 | static PyObject *_wrap_Window_DLG_PNT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25870 | PyObject *resultobj; |
25871 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25872 | wxPoint *arg2 = 0 ; | |
25873 | wxPoint result; | |
25874 | wxPoint temp2 ; | |
25875 | PyObject * obj0 = 0 ; | |
25876 | PyObject * obj1 = 0 ; | |
25877 | char *kwnames[] = { | |
25878 | (char *) "self",(char *) "pt", NULL | |
25879 | }; | |
25880 | ||
25881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
25882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25884 | { | |
25885 | arg2 = &temp2; | |
25886 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25887 | } | |
25888 | { | |
25889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25890 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25891 | ||
25892 | wxPyEndAllowThreads(__tstate); | |
25893 | if (PyErr_Occurred()) SWIG_fail; | |
25894 | } | |
25895 | { | |
25896 | wxPoint * resultptr; | |
25897 | resultptr = new wxPoint((wxPoint &) result); | |
25898 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25899 | } | |
25900 | return resultobj; | |
25901 | fail: | |
25902 | return NULL; | |
25903 | } | |
25904 | ||
25905 | ||
c370783e | 25906 | static PyObject *_wrap_Window_DLG_SZE(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25907 | PyObject *resultobj; |
25908 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25909 | wxSize *arg2 = 0 ; | |
25910 | wxSize result; | |
25911 | wxSize temp2 ; | |
25912 | PyObject * obj0 = 0 ; | |
25913 | PyObject * obj1 = 0 ; | |
25914 | char *kwnames[] = { | |
25915 | (char *) "self",(char *) "sz", NULL | |
25916 | }; | |
25917 | ||
25918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
25919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25921 | { | |
25922 | arg2 = &temp2; | |
25923 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25924 | } | |
25925 | { | |
25926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25927 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25928 | ||
25929 | wxPyEndAllowThreads(__tstate); | |
25930 | if (PyErr_Occurred()) SWIG_fail; | |
25931 | } | |
25932 | { | |
25933 | wxSize * resultptr; | |
25934 | resultptr = new wxSize((wxSize &) result); | |
25935 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
25936 | } | |
25937 | return resultobj; | |
25938 | fail: | |
25939 | return NULL; | |
25940 | } | |
25941 | ||
25942 | ||
c370783e | 25943 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25944 | PyObject *resultobj; |
25945 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25946 | wxPoint *arg2 = 0 ; | |
25947 | wxPoint result; | |
25948 | wxPoint temp2 ; | |
25949 | PyObject * obj0 = 0 ; | |
25950 | PyObject * obj1 = 0 ; | |
25951 | char *kwnames[] = { | |
25952 | (char *) "self",(char *) "pt", NULL | |
25953 | }; | |
25954 | ||
25955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
25956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25958 | { | |
25959 | arg2 = &temp2; | |
25960 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25961 | } | |
25962 | { | |
25963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25964 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
25965 | ||
25966 | wxPyEndAllowThreads(__tstate); | |
25967 | if (PyErr_Occurred()) SWIG_fail; | |
25968 | } | |
25969 | { | |
25970 | wxPoint * resultptr; | |
25971 | resultptr = new wxPoint((wxPoint &) result); | |
25972 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25973 | } | |
25974 | return resultobj; | |
25975 | fail: | |
25976 | return NULL; | |
25977 | } | |
25978 | ||
25979 | ||
c370783e | 25980 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25981 | PyObject *resultobj; |
25982 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25983 | wxSize *arg2 = 0 ; | |
25984 | wxSize result; | |
25985 | wxSize temp2 ; | |
25986 | PyObject * obj0 = 0 ; | |
25987 | PyObject * obj1 = 0 ; | |
25988 | char *kwnames[] = { | |
25989 | (char *) "self",(char *) "sz", NULL | |
25990 | }; | |
25991 | ||
25992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
25993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25995 | { | |
25996 | arg2 = &temp2; | |
25997 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25998 | } | |
25999 | { | |
26000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26001 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
26002 | ||
26003 | wxPyEndAllowThreads(__tstate); | |
26004 | if (PyErr_Occurred()) SWIG_fail; | |
26005 | } | |
26006 | { | |
26007 | wxSize * resultptr; | |
26008 | resultptr = new wxSize((wxSize &) result); | |
26009 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
26010 | } | |
26011 | return resultobj; | |
26012 | fail: | |
26013 | return NULL; | |
26014 | } | |
26015 | ||
26016 | ||
c370783e | 26017 | static PyObject *_wrap_Window_WarpPointer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26018 | PyObject *resultobj; |
26019 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26020 | int arg2 ; | |
26021 | int arg3 ; | |
26022 | PyObject * obj0 = 0 ; | |
26023 | PyObject * obj1 = 0 ; | |
26024 | PyObject * obj2 = 0 ; | |
26025 | char *kwnames[] = { | |
26026 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26027 | }; | |
26028 | ||
26029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26032 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26033 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26034 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26035 | if (PyErr_Occurred()) SWIG_fail; |
26036 | { | |
26037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26038 | (arg1)->WarpPointer(arg2,arg3); | |
26039 | ||
26040 | wxPyEndAllowThreads(__tstate); | |
26041 | if (PyErr_Occurred()) SWIG_fail; | |
26042 | } | |
26043 | Py_INCREF(Py_None); resultobj = Py_None; | |
26044 | return resultobj; | |
26045 | fail: | |
26046 | return NULL; | |
26047 | } | |
26048 | ||
26049 | ||
c370783e | 26050 | static PyObject *_wrap_Window_CaptureMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26051 | PyObject *resultobj; |
26052 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26053 | PyObject * obj0 = 0 ; | |
26054 | char *kwnames[] = { | |
26055 | (char *) "self", NULL | |
26056 | }; | |
26057 | ||
26058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
26059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26061 | { | |
26062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26063 | (arg1)->CaptureMouse(); | |
26064 | ||
26065 | wxPyEndAllowThreads(__tstate); | |
26066 | if (PyErr_Occurred()) SWIG_fail; | |
26067 | } | |
26068 | Py_INCREF(Py_None); resultobj = Py_None; | |
26069 | return resultobj; | |
26070 | fail: | |
26071 | return NULL; | |
26072 | } | |
26073 | ||
26074 | ||
c370783e | 26075 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26076 | PyObject *resultobj; |
26077 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26078 | PyObject * obj0 = 0 ; | |
26079 | char *kwnames[] = { | |
26080 | (char *) "self", NULL | |
26081 | }; | |
26082 | ||
26083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
26084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26086 | { | |
26087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26088 | (arg1)->ReleaseMouse(); | |
26089 | ||
26090 | wxPyEndAllowThreads(__tstate); | |
26091 | if (PyErr_Occurred()) SWIG_fail; | |
26092 | } | |
26093 | Py_INCREF(Py_None); resultobj = Py_None; | |
26094 | return resultobj; | |
26095 | fail: | |
26096 | return NULL; | |
26097 | } | |
26098 | ||
26099 | ||
c370783e | 26100 | static PyObject *_wrap_Window_GetCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26101 | PyObject *resultobj; |
26102 | wxWindow *result; | |
26103 | char *kwnames[] = { | |
26104 | NULL | |
26105 | }; | |
26106 | ||
26107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
26108 | { | |
0439c23b | 26109 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
26110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26111 | result = (wxWindow *)wxWindow::GetCapture(); | |
26112 | ||
26113 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26114 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
26115 | } |
26116 | { | |
412d302d | 26117 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
26118 | } |
26119 | return resultobj; | |
26120 | fail: | |
26121 | return NULL; | |
26122 | } | |
26123 | ||
26124 | ||
c370783e | 26125 | static PyObject *_wrap_Window_HasCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26126 | PyObject *resultobj; |
26127 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26128 | bool result; | |
26129 | PyObject * obj0 = 0 ; | |
26130 | char *kwnames[] = { | |
26131 | (char *) "self", NULL | |
26132 | }; | |
26133 | ||
26134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
26135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26137 | { | |
26138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26139 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
26140 | ||
26141 | wxPyEndAllowThreads(__tstate); | |
26142 | if (PyErr_Occurred()) SWIG_fail; | |
26143 | } | |
26144 | { | |
26145 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26146 | } | |
26147 | return resultobj; | |
26148 | fail: | |
26149 | return NULL; | |
26150 | } | |
26151 | ||
26152 | ||
c370783e | 26153 | static PyObject *_wrap_Window_Refresh(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26154 | PyObject *resultobj; |
26155 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b411df4a | 26156 | bool arg2 = (bool) true ; |
d55e5bfc RD |
26157 | wxRect *arg3 = (wxRect *) NULL ; |
26158 | PyObject * obj0 = 0 ; | |
26159 | PyObject * obj1 = 0 ; | |
26160 | PyObject * obj2 = 0 ; | |
26161 | char *kwnames[] = { | |
26162 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
26163 | }; | |
26164 | ||
26165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26168 | if (obj1) { | |
c370783e | 26169 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
26170 | if (PyErr_Occurred()) SWIG_fail; |
26171 | } | |
26172 | if (obj2) { | |
26173 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, | |
26174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26175 | } | |
26176 | { | |
26177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26178 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
26179 | ||
26180 | wxPyEndAllowThreads(__tstate); | |
26181 | if (PyErr_Occurred()) SWIG_fail; | |
26182 | } | |
26183 | Py_INCREF(Py_None); resultobj = Py_None; | |
26184 | return resultobj; | |
26185 | fail: | |
26186 | return NULL; | |
26187 | } | |
26188 | ||
26189 | ||
c370783e | 26190 | static PyObject *_wrap_Window_RefreshRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26191 | PyObject *resultobj; |
26192 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26193 | wxRect *arg2 = 0 ; | |
26194 | wxRect temp2 ; | |
26195 | PyObject * obj0 = 0 ; | |
26196 | PyObject * obj1 = 0 ; | |
26197 | char *kwnames[] = { | |
26198 | (char *) "self",(char *) "rect", NULL | |
26199 | }; | |
26200 | ||
26201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
26202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26204 | { | |
26205 | arg2 = &temp2; | |
26206 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
26207 | } | |
26208 | { | |
26209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26210 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
26211 | ||
26212 | wxPyEndAllowThreads(__tstate); | |
26213 | if (PyErr_Occurred()) SWIG_fail; | |
26214 | } | |
26215 | Py_INCREF(Py_None); resultobj = Py_None; | |
26216 | return resultobj; | |
26217 | fail: | |
26218 | return NULL; | |
26219 | } | |
26220 | ||
26221 | ||
c370783e | 26222 | static PyObject *_wrap_Window_Update(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26223 | PyObject *resultobj; |
26224 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26225 | PyObject * obj0 = 0 ; | |
26226 | char *kwnames[] = { | |
26227 | (char *) "self", NULL | |
26228 | }; | |
26229 | ||
26230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
26231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26233 | { | |
26234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26235 | (arg1)->Update(); | |
26236 | ||
26237 | wxPyEndAllowThreads(__tstate); | |
26238 | if (PyErr_Occurred()) SWIG_fail; | |
26239 | } | |
26240 | Py_INCREF(Py_None); resultobj = Py_None; | |
26241 | return resultobj; | |
26242 | fail: | |
26243 | return NULL; | |
26244 | } | |
26245 | ||
26246 | ||
c370783e | 26247 | static PyObject *_wrap_Window_ClearBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26248 | PyObject *resultobj; |
26249 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26250 | PyObject * obj0 = 0 ; | |
26251 | char *kwnames[] = { | |
26252 | (char *) "self", NULL | |
26253 | }; | |
26254 | ||
26255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
26256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26258 | { | |
26259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26260 | (arg1)->ClearBackground(); | |
26261 | ||
26262 | wxPyEndAllowThreads(__tstate); | |
26263 | if (PyErr_Occurred()) SWIG_fail; | |
26264 | } | |
26265 | Py_INCREF(Py_None); resultobj = Py_None; | |
26266 | return resultobj; | |
26267 | fail: | |
26268 | return NULL; | |
26269 | } | |
26270 | ||
26271 | ||
c370783e | 26272 | static PyObject *_wrap_Window_Freeze(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26273 | PyObject *resultobj; |
26274 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26275 | PyObject * obj0 = 0 ; | |
26276 | char *kwnames[] = { | |
26277 | (char *) "self", NULL | |
26278 | }; | |
26279 | ||
26280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
26281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26283 | { | |
26284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26285 | (arg1)->Freeze(); | |
26286 | ||
26287 | wxPyEndAllowThreads(__tstate); | |
26288 | if (PyErr_Occurred()) SWIG_fail; | |
26289 | } | |
26290 | Py_INCREF(Py_None); resultobj = Py_None; | |
26291 | return resultobj; | |
26292 | fail: | |
26293 | return NULL; | |
26294 | } | |
26295 | ||
26296 | ||
c370783e | 26297 | static PyObject *_wrap_Window_Thaw(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26298 | PyObject *resultobj; |
26299 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26300 | PyObject * obj0 = 0 ; | |
26301 | char *kwnames[] = { | |
26302 | (char *) "self", NULL | |
26303 | }; | |
26304 | ||
26305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
26306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26308 | { | |
26309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26310 | (arg1)->Thaw(); | |
26311 | ||
26312 | wxPyEndAllowThreads(__tstate); | |
26313 | if (PyErr_Occurred()) SWIG_fail; | |
26314 | } | |
26315 | Py_INCREF(Py_None); resultobj = Py_None; | |
26316 | return resultobj; | |
26317 | fail: | |
26318 | return NULL; | |
26319 | } | |
26320 | ||
26321 | ||
c370783e | 26322 | static PyObject *_wrap_Window_PrepareDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26323 | PyObject *resultobj; |
26324 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26325 | wxDC *arg2 = 0 ; | |
26326 | PyObject * obj0 = 0 ; | |
26327 | PyObject * obj1 = 0 ; | |
26328 | char *kwnames[] = { | |
26329 | (char *) "self",(char *) "dc", NULL | |
26330 | }; | |
26331 | ||
26332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
26333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26335 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
26336 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26337 | SWIG_fail; | |
26338 | if (arg2 == NULL) { | |
26339 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26340 | SWIG_fail; | |
26341 | } | |
26342 | { | |
26343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26344 | (arg1)->PrepareDC(*arg2); | |
26345 | ||
26346 | wxPyEndAllowThreads(__tstate); | |
26347 | if (PyErr_Occurred()) SWIG_fail; | |
26348 | } | |
26349 | Py_INCREF(Py_None); resultobj = Py_None; | |
26350 | return resultobj; | |
26351 | fail: | |
26352 | return NULL; | |
26353 | } | |
26354 | ||
26355 | ||
c370783e | 26356 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26357 | PyObject *resultobj; |
26358 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26359 | wxRegion *result; | |
26360 | PyObject * obj0 = 0 ; | |
26361 | char *kwnames[] = { | |
26362 | (char *) "self", NULL | |
26363 | }; | |
26364 | ||
26365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
26366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26368 | { | |
26369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26370 | { | |
26371 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
26372 | result = (wxRegion *) &_result_ref; | |
26373 | } | |
26374 | ||
26375 | wxPyEndAllowThreads(__tstate); | |
26376 | if (PyErr_Occurred()) SWIG_fail; | |
26377 | } | |
26378 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); | |
26379 | return resultobj; | |
26380 | fail: | |
26381 | return NULL; | |
26382 | } | |
26383 | ||
26384 | ||
c370783e | 26385 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26386 | PyObject *resultobj; |
26387 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26388 | wxRect result; | |
26389 | PyObject * obj0 = 0 ; | |
26390 | char *kwnames[] = { | |
26391 | (char *) "self", NULL | |
26392 | }; | |
26393 | ||
26394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
26395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26397 | { | |
26398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26399 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
26400 | ||
26401 | wxPyEndAllowThreads(__tstate); | |
26402 | if (PyErr_Occurred()) SWIG_fail; | |
26403 | } | |
26404 | { | |
26405 | wxRect * resultptr; | |
26406 | resultptr = new wxRect((wxRect &) result); | |
26407 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
26408 | } | |
26409 | return resultobj; | |
26410 | fail: | |
26411 | return NULL; | |
26412 | } | |
26413 | ||
26414 | ||
c370783e | 26415 | static PyObject *_wrap_Window_IsExposed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26416 | PyObject *resultobj; |
26417 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26418 | int arg2 ; | |
26419 | int arg3 ; | |
26420 | int arg4 = (int) 1 ; | |
26421 | int arg5 = (int) 1 ; | |
26422 | bool result; | |
26423 | PyObject * obj0 = 0 ; | |
26424 | PyObject * obj1 = 0 ; | |
26425 | PyObject * obj2 = 0 ; | |
26426 | PyObject * obj3 = 0 ; | |
26427 | PyObject * obj4 = 0 ; | |
26428 | char *kwnames[] = { | |
26429 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
26430 | }; | |
26431 | ||
26432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26435 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26436 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26437 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26438 | if (PyErr_Occurred()) SWIG_fail; |
26439 | if (obj3) { | |
c370783e | 26440 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26441 | if (PyErr_Occurred()) SWIG_fail; |
26442 | } | |
26443 | if (obj4) { | |
c370783e | 26444 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
26445 | if (PyErr_Occurred()) SWIG_fail; |
26446 | } | |
26447 | { | |
26448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26449 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
26450 | ||
26451 | wxPyEndAllowThreads(__tstate); | |
26452 | if (PyErr_Occurred()) SWIG_fail; | |
26453 | } | |
26454 | { | |
26455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26456 | } | |
26457 | return resultobj; | |
26458 | fail: | |
26459 | return NULL; | |
26460 | } | |
26461 | ||
26462 | ||
c370783e | 26463 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26464 | PyObject *resultobj; |
26465 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26466 | wxPoint *arg2 = 0 ; | |
26467 | bool result; | |
26468 | wxPoint temp2 ; | |
26469 | PyObject * obj0 = 0 ; | |
26470 | PyObject * obj1 = 0 ; | |
26471 | char *kwnames[] = { | |
26472 | (char *) "self",(char *) "pt", NULL | |
26473 | }; | |
26474 | ||
26475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
26476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26478 | { | |
26479 | arg2 = &temp2; | |
26480 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26481 | } | |
26482 | { | |
26483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26484 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
26485 | ||
26486 | wxPyEndAllowThreads(__tstate); | |
26487 | if (PyErr_Occurred()) SWIG_fail; | |
26488 | } | |
26489 | { | |
26490 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26491 | } | |
26492 | return resultobj; | |
26493 | fail: | |
26494 | return NULL; | |
26495 | } | |
26496 | ||
26497 | ||
c370783e | 26498 | static PyObject *_wrap_Window_IsExposedRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26499 | PyObject *resultobj; |
26500 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26501 | wxRect *arg2 = 0 ; | |
26502 | bool result; | |
26503 | wxRect temp2 ; | |
26504 | PyObject * obj0 = 0 ; | |
26505 | PyObject * obj1 = 0 ; | |
26506 | char *kwnames[] = { | |
26507 | (char *) "self",(char *) "rect", NULL | |
26508 | }; | |
26509 | ||
26510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; | |
26511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26513 | { | |
26514 | arg2 = &temp2; | |
26515 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
26516 | } | |
26517 | { | |
26518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26519 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
26520 | ||
26521 | wxPyEndAllowThreads(__tstate); | |
26522 | if (PyErr_Occurred()) SWIG_fail; | |
26523 | } | |
26524 | { | |
26525 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26526 | } | |
26527 | return resultobj; | |
26528 | fail: | |
26529 | return NULL; | |
26530 | } | |
26531 | ||
26532 | ||
c370783e | 26533 | static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26534 | PyObject *resultobj; |
26535 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26536 | wxVisualAttributes result; | |
26537 | PyObject * obj0 = 0 ; | |
26538 | char *kwnames[] = { | |
26539 | (char *) "self", NULL | |
26540 | }; | |
26541 | ||
26542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
26543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26545 | { | |
26546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26547 | result = ((wxWindow const *)arg1)->GetDefaultAttributes(); | |
26548 | ||
26549 | wxPyEndAllowThreads(__tstate); | |
26550 | if (PyErr_Occurred()) SWIG_fail; | |
26551 | } | |
26552 | { | |
26553 | wxVisualAttributes * resultptr; | |
26554 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
26555 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
26556 | } | |
26557 | return resultobj; | |
26558 | fail: | |
26559 | return NULL; | |
26560 | } | |
26561 | ||
26562 | ||
c370783e | 26563 | static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26564 | PyObject *resultobj; |
26565 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
26566 | wxVisualAttributes result; | |
26567 | PyObject * obj0 = 0 ; | |
26568 | char *kwnames[] = { | |
26569 | (char *) "variant", NULL | |
26570 | }; | |
26571 | ||
26572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
26573 | if (obj0) { | |
c370783e | 26574 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
26575 | if (PyErr_Occurred()) SWIG_fail; |
26576 | } | |
26577 | { | |
0439c23b | 26578 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
26579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26580 | result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
26581 | ||
26582 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26583 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
26584 | } |
26585 | { | |
26586 | wxVisualAttributes * resultptr; | |
26587 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
26588 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
26589 | } | |
26590 | return resultobj; | |
26591 | fail: | |
26592 | return NULL; | |
26593 | } | |
26594 | ||
26595 | ||
c370783e | 26596 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26597 | PyObject *resultobj; |
26598 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26599 | wxColour *arg2 = 0 ; | |
26600 | bool result; | |
26601 | wxColour temp2 ; | |
26602 | PyObject * obj0 = 0 ; | |
26603 | PyObject * obj1 = 0 ; | |
26604 | char *kwnames[] = { | |
26605 | (char *) "self",(char *) "colour", NULL | |
26606 | }; | |
26607 | ||
26608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
26609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26611 | { | |
26612 | arg2 = &temp2; | |
26613 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26614 | } | |
26615 | { | |
26616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26617 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
26618 | ||
26619 | wxPyEndAllowThreads(__tstate); | |
26620 | if (PyErr_Occurred()) SWIG_fail; | |
26621 | } | |
26622 | { | |
26623 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26624 | } | |
26625 | return resultobj; | |
26626 | fail: | |
26627 | return NULL; | |
26628 | } | |
26629 | ||
26630 | ||
c370783e | 26631 | static PyObject *_wrap_Window_SetOwnBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26632 | PyObject *resultobj; |
26633 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26634 | wxColour *arg2 = 0 ; | |
26635 | wxColour temp2 ; | |
26636 | PyObject * obj0 = 0 ; | |
26637 | PyObject * obj1 = 0 ; | |
26638 | char *kwnames[] = { | |
26639 | (char *) "self",(char *) "colour", NULL | |
26640 | }; | |
26641 | ||
412d302d | 26642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
26643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26645 | { | |
26646 | arg2 = &temp2; | |
26647 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26648 | } | |
26649 | { | |
26650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
412d302d | 26651 | (arg1)->SetOwnBackgroundColour((wxColour const &)*arg2); |
d55e5bfc RD |
26652 | |
26653 | wxPyEndAllowThreads(__tstate); | |
26654 | if (PyErr_Occurred()) SWIG_fail; | |
26655 | } | |
26656 | Py_INCREF(Py_None); resultobj = Py_None; | |
26657 | return resultobj; | |
26658 | fail: | |
26659 | return NULL; | |
26660 | } | |
26661 | ||
26662 | ||
c370783e | 26663 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26664 | PyObject *resultobj; |
26665 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26666 | wxColour *arg2 = 0 ; | |
26667 | bool result; | |
26668 | wxColour temp2 ; | |
26669 | PyObject * obj0 = 0 ; | |
26670 | PyObject * obj1 = 0 ; | |
26671 | char *kwnames[] = { | |
26672 | (char *) "self",(char *) "colour", NULL | |
26673 | }; | |
26674 | ||
26675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
26676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26678 | { | |
26679 | arg2 = &temp2; | |
26680 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26681 | } | |
26682 | { | |
26683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26684 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
26685 | ||
26686 | wxPyEndAllowThreads(__tstate); | |
26687 | if (PyErr_Occurred()) SWIG_fail; | |
26688 | } | |
26689 | { | |
26690 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26691 | } | |
26692 | return resultobj; | |
26693 | fail: | |
26694 | return NULL; | |
26695 | } | |
26696 | ||
26697 | ||
c370783e | 26698 | static PyObject *_wrap_Window_SetOwnForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26699 | PyObject *resultobj; |
26700 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26701 | wxColour *arg2 = 0 ; | |
26702 | wxColour temp2 ; | |
26703 | PyObject * obj0 = 0 ; | |
26704 | PyObject * obj1 = 0 ; | |
26705 | char *kwnames[] = { | |
26706 | (char *) "self",(char *) "colour", NULL | |
26707 | }; | |
26708 | ||
fa47d7a7 | 26709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnForegroundColour",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
26710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26712 | { | |
26713 | arg2 = &temp2; | |
26714 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26715 | } | |
26716 | { | |
26717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 26718 | (arg1)->SetOwnForegroundColour((wxColour const &)*arg2); |
d55e5bfc RD |
26719 | |
26720 | wxPyEndAllowThreads(__tstate); | |
26721 | if (PyErr_Occurred()) SWIG_fail; | |
26722 | } | |
26723 | Py_INCREF(Py_None); resultobj = Py_None; | |
26724 | return resultobj; | |
26725 | fail: | |
26726 | return NULL; | |
26727 | } | |
26728 | ||
26729 | ||
c370783e | 26730 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26731 | PyObject *resultobj; |
26732 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26733 | wxColour result; | |
26734 | PyObject * obj0 = 0 ; | |
26735 | char *kwnames[] = { | |
26736 | (char *) "self", NULL | |
26737 | }; | |
26738 | ||
26739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
26740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26742 | { | |
26743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26744 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
26745 | ||
26746 | wxPyEndAllowThreads(__tstate); | |
26747 | if (PyErr_Occurred()) SWIG_fail; | |
26748 | } | |
26749 | { | |
26750 | wxColour * resultptr; | |
26751 | resultptr = new wxColour((wxColour &) result); | |
26752 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
26753 | } | |
26754 | return resultobj; | |
26755 | fail: | |
26756 | return NULL; | |
26757 | } | |
26758 | ||
26759 | ||
c370783e | 26760 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26761 | PyObject *resultobj; |
26762 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26763 | wxColour result; | |
26764 | PyObject * obj0 = 0 ; | |
26765 | char *kwnames[] = { | |
26766 | (char *) "self", NULL | |
26767 | }; | |
26768 | ||
26769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
26770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26772 | { | |
26773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26774 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
26775 | ||
26776 | wxPyEndAllowThreads(__tstate); | |
26777 | if (PyErr_Occurred()) SWIG_fail; | |
26778 | } | |
26779 | { | |
26780 | wxColour * resultptr; | |
26781 | resultptr = new wxColour((wxColour &) result); | |
26782 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
26783 | } | |
26784 | return resultobj; | |
26785 | fail: | |
26786 | return NULL; | |
26787 | } | |
26788 | ||
26789 | ||
c370783e | 26790 | static PyObject *_wrap_Window_SetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
0f63ec68 RD |
26791 | PyObject *resultobj; |
26792 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26793 | int arg2 ; | |
26794 | bool result; | |
26795 | PyObject * obj0 = 0 ; | |
26796 | PyObject * obj1 = 0 ; | |
26797 | char *kwnames[] = { | |
26798 | (char *) "self",(char *) "style", NULL | |
26799 | }; | |
26800 | ||
26801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundStyle",kwnames,&obj0,&obj1)) goto fail; | |
26802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26804 | arg2 = (int)SWIG_As_int(obj1); |
0f63ec68 RD |
26805 | if (PyErr_Occurred()) SWIG_fail; |
26806 | { | |
26807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26808 | result = (bool)(arg1)->SetBackgroundStyle((wxBackgroundStyle )arg2); | |
26809 | ||
26810 | wxPyEndAllowThreads(__tstate); | |
26811 | if (PyErr_Occurred()) SWIG_fail; | |
26812 | } | |
26813 | { | |
26814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26815 | } | |
26816 | return resultobj; | |
26817 | fail: | |
26818 | return NULL; | |
26819 | } | |
26820 | ||
26821 | ||
c370783e | 26822 | static PyObject *_wrap_Window_GetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
0f63ec68 RD |
26823 | PyObject *resultobj; |
26824 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26825 | int result; | |
26826 | PyObject * obj0 = 0 ; | |
26827 | char *kwnames[] = { | |
26828 | (char *) "self", NULL | |
26829 | }; | |
26830 | ||
26831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundStyle",kwnames,&obj0)) goto fail; | |
26832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26834 | { | |
26835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26836 | result = (int)((wxWindow const *)arg1)->GetBackgroundStyle(); | |
26837 | ||
26838 | wxPyEndAllowThreads(__tstate); | |
26839 | if (PyErr_Occurred()) SWIG_fail; | |
26840 | } | |
c370783e | 26841 | resultobj = SWIG_From_int((int)result); |
0f63ec68 RD |
26842 | return resultobj; |
26843 | fail: | |
26844 | return NULL; | |
26845 | } | |
26846 | ||
26847 | ||
c370783e | 26848 | static PyObject *_wrap_Window_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26849 | PyObject *resultobj; |
26850 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26851 | wxCursor *arg2 = 0 ; | |
26852 | bool result; | |
26853 | PyObject * obj0 = 0 ; | |
26854 | PyObject * obj1 = 0 ; | |
26855 | char *kwnames[] = { | |
26856 | (char *) "self",(char *) "cursor", NULL | |
26857 | }; | |
26858 | ||
26859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
26860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26862 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
26863 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26864 | SWIG_fail; | |
26865 | if (arg2 == NULL) { | |
26866 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26867 | SWIG_fail; | |
26868 | } | |
26869 | { | |
26870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26871 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
26872 | ||
26873 | wxPyEndAllowThreads(__tstate); | |
26874 | if (PyErr_Occurred()) SWIG_fail; | |
26875 | } | |
26876 | { | |
26877 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26878 | } | |
26879 | return resultobj; | |
26880 | fail: | |
26881 | return NULL; | |
26882 | } | |
26883 | ||
26884 | ||
c370783e | 26885 | static PyObject *_wrap_Window_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26886 | PyObject *resultobj; |
26887 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a001823c | 26888 | wxCursor result; |
d55e5bfc RD |
26889 | PyObject * obj0 = 0 ; |
26890 | char *kwnames[] = { | |
26891 | (char *) "self", NULL | |
26892 | }; | |
26893 | ||
26894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
26895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26897 | { | |
26898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a001823c | 26899 | result = (arg1)->GetCursor(); |
d55e5bfc RD |
26900 | |
26901 | wxPyEndAllowThreads(__tstate); | |
26902 | if (PyErr_Occurred()) SWIG_fail; | |
26903 | } | |
26904 | { | |
a001823c RD |
26905 | wxCursor * resultptr; |
26906 | resultptr = new wxCursor((wxCursor &) result); | |
26907 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
d55e5bfc RD |
26908 | } |
26909 | return resultobj; | |
26910 | fail: | |
26911 | return NULL; | |
26912 | } | |
26913 | ||
26914 | ||
c370783e | 26915 | static PyObject *_wrap_Window_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26916 | PyObject *resultobj; |
26917 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26918 | wxFont *arg2 = 0 ; | |
26919 | bool result; | |
26920 | PyObject * obj0 = 0 ; | |
26921 | PyObject * obj1 = 0 ; | |
26922 | char *kwnames[] = { | |
26923 | (char *) "self",(char *) "font", NULL | |
26924 | }; | |
26925 | ||
26926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
26927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26929 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
26930 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26931 | SWIG_fail; | |
26932 | if (arg2 == NULL) { | |
26933 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26934 | SWIG_fail; | |
26935 | } | |
26936 | { | |
26937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26938 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
26939 | ||
26940 | wxPyEndAllowThreads(__tstate); | |
26941 | if (PyErr_Occurred()) SWIG_fail; | |
26942 | } | |
26943 | { | |
26944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26945 | } | |
26946 | return resultobj; | |
26947 | fail: | |
26948 | return NULL; | |
26949 | } | |
26950 | ||
26951 | ||
c370783e | 26952 | static PyObject *_wrap_Window_SetOwnFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26953 | PyObject *resultobj; |
26954 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26955 | wxFont *arg2 = 0 ; | |
26956 | PyObject * obj0 = 0 ; | |
26957 | PyObject * obj1 = 0 ; | |
26958 | char *kwnames[] = { | |
26959 | (char *) "self",(char *) "font", NULL | |
26960 | }; | |
26961 | ||
fa47d7a7 | 26962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnFont",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
26963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26965 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
26966 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26967 | SWIG_fail; | |
26968 | if (arg2 == NULL) { | |
26969 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26970 | SWIG_fail; | |
26971 | } | |
26972 | { | |
26973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 26974 | (arg1)->SetOwnFont((wxFont const &)*arg2); |
d55e5bfc RD |
26975 | |
26976 | wxPyEndAllowThreads(__tstate); | |
26977 | if (PyErr_Occurred()) SWIG_fail; | |
26978 | } | |
26979 | Py_INCREF(Py_None); resultobj = Py_None; | |
26980 | return resultobj; | |
26981 | fail: | |
26982 | return NULL; | |
26983 | } | |
26984 | ||
26985 | ||
c370783e | 26986 | static PyObject *_wrap_Window_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26987 | PyObject *resultobj; |
26988 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a001823c | 26989 | wxFont result; |
d55e5bfc RD |
26990 | PyObject * obj0 = 0 ; |
26991 | char *kwnames[] = { | |
26992 | (char *) "self", NULL | |
26993 | }; | |
26994 | ||
26995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
26996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26998 | { | |
26999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a001823c | 27000 | result = (arg1)->GetFont(); |
d55e5bfc RD |
27001 | |
27002 | wxPyEndAllowThreads(__tstate); | |
27003 | if (PyErr_Occurred()) SWIG_fail; | |
27004 | } | |
27005 | { | |
a001823c RD |
27006 | wxFont * resultptr; |
27007 | resultptr = new wxFont((wxFont &) result); | |
27008 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
d55e5bfc RD |
27009 | } |
27010 | return resultobj; | |
27011 | fail: | |
27012 | return NULL; | |
27013 | } | |
27014 | ||
27015 | ||
c370783e | 27016 | static PyObject *_wrap_Window_SetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27017 | PyObject *resultobj; |
27018 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27019 | wxCaret *arg2 = (wxCaret *) 0 ; | |
27020 | PyObject * obj0 = 0 ; | |
27021 | PyObject * obj1 = 0 ; | |
27022 | char *kwnames[] = { | |
27023 | (char *) "self",(char *) "caret", NULL | |
27024 | }; | |
27025 | ||
27026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
27027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27029 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret, | |
27030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27031 | { | |
27032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27033 | (arg1)->SetCaret(arg2); | |
27034 | ||
27035 | wxPyEndAllowThreads(__tstate); | |
27036 | if (PyErr_Occurred()) SWIG_fail; | |
27037 | } | |
27038 | Py_INCREF(Py_None); resultobj = Py_None; | |
27039 | return resultobj; | |
27040 | fail: | |
27041 | return NULL; | |
27042 | } | |
27043 | ||
27044 | ||
c370783e | 27045 | static PyObject *_wrap_Window_GetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27046 | PyObject *resultobj; |
27047 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27048 | wxCaret *result; | |
27049 | PyObject * obj0 = 0 ; | |
27050 | char *kwnames[] = { | |
27051 | (char *) "self", NULL | |
27052 | }; | |
27053 | ||
27054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
27055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27057 | { | |
27058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27059 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
27060 | ||
27061 | wxPyEndAllowThreads(__tstate); | |
27062 | if (PyErr_Occurred()) SWIG_fail; | |
27063 | } | |
27064 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); | |
27065 | return resultobj; | |
27066 | fail: | |
27067 | return NULL; | |
27068 | } | |
27069 | ||
27070 | ||
c370783e | 27071 | static PyObject *_wrap_Window_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27072 | PyObject *resultobj; |
27073 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27074 | int result; | |
27075 | PyObject * obj0 = 0 ; | |
27076 | char *kwnames[] = { | |
27077 | (char *) "self", NULL | |
27078 | }; | |
27079 | ||
27080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
27081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27083 | { | |
27084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27085 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
27086 | ||
27087 | wxPyEndAllowThreads(__tstate); | |
27088 | if (PyErr_Occurred()) SWIG_fail; | |
27089 | } | |
c370783e | 27090 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27091 | return resultobj; |
27092 | fail: | |
27093 | return NULL; | |
27094 | } | |
27095 | ||
27096 | ||
c370783e | 27097 | static PyObject *_wrap_Window_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27098 | PyObject *resultobj; |
27099 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27100 | int result; | |
27101 | PyObject * obj0 = 0 ; | |
27102 | char *kwnames[] = { | |
27103 | (char *) "self", NULL | |
27104 | }; | |
27105 | ||
27106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
27107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27109 | { | |
27110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27111 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
27112 | ||
27113 | wxPyEndAllowThreads(__tstate); | |
27114 | if (PyErr_Occurred()) SWIG_fail; | |
27115 | } | |
c370783e | 27116 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27117 | return resultobj; |
27118 | fail: | |
27119 | return NULL; | |
27120 | } | |
27121 | ||
27122 | ||
c370783e | 27123 | static PyObject *_wrap_Window_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27124 | PyObject *resultobj; |
27125 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27126 | wxString *arg2 = 0 ; | |
27127 | int *arg3 = (int *) 0 ; | |
27128 | int *arg4 = (int *) 0 ; | |
b411df4a | 27129 | bool temp2 = false ; |
d55e5bfc | 27130 | int temp3 ; |
c370783e | 27131 | int res3 = 0 ; |
d55e5bfc | 27132 | int temp4 ; |
c370783e | 27133 | int res4 = 0 ; |
d55e5bfc RD |
27134 | PyObject * obj0 = 0 ; |
27135 | PyObject * obj1 = 0 ; | |
27136 | char *kwnames[] = { | |
27137 | (char *) "self",(char *) "string", NULL | |
27138 | }; | |
27139 | ||
c370783e RD |
27140 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
27141 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
27142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; |
27143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27145 | { | |
27146 | arg2 = wxString_in_helper(obj1); | |
27147 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 27148 | temp2 = true; |
d55e5bfc RD |
27149 | } |
27150 | { | |
27151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27152 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
27153 | ||
27154 | wxPyEndAllowThreads(__tstate); | |
27155 | if (PyErr_Occurred()) SWIG_fail; | |
27156 | } | |
27157 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
27158 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
27159 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
27160 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
27161 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27162 | { |
27163 | if (temp2) | |
27164 | delete arg2; | |
27165 | } | |
27166 | return resultobj; | |
27167 | fail: | |
27168 | { | |
27169 | if (temp2) | |
27170 | delete arg2; | |
27171 | } | |
27172 | return NULL; | |
27173 | } | |
27174 | ||
27175 | ||
c370783e | 27176 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27177 | PyObject *resultobj; |
27178 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27179 | wxString *arg2 = 0 ; | |
27180 | int *arg3 = (int *) 0 ; | |
27181 | int *arg4 = (int *) 0 ; | |
27182 | int *arg5 = (int *) 0 ; | |
27183 | int *arg6 = (int *) 0 ; | |
27184 | wxFont *arg7 = (wxFont *) NULL ; | |
b411df4a | 27185 | bool temp2 = false ; |
d55e5bfc | 27186 | int temp3 ; |
c370783e | 27187 | int res3 = 0 ; |
d55e5bfc | 27188 | int temp4 ; |
c370783e | 27189 | int res4 = 0 ; |
d55e5bfc | 27190 | int temp5 ; |
c370783e | 27191 | int res5 = 0 ; |
d55e5bfc | 27192 | int temp6 ; |
c370783e | 27193 | int res6 = 0 ; |
d55e5bfc RD |
27194 | PyObject * obj0 = 0 ; |
27195 | PyObject * obj1 = 0 ; | |
27196 | PyObject * obj2 = 0 ; | |
27197 | char *kwnames[] = { | |
27198 | (char *) "self",(char *) "string",(char *) "font", NULL | |
27199 | }; | |
27200 | ||
c370783e RD |
27201 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
27202 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
27203 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
27204 | arg6 = &temp6; res6 = SWIG_NEWOBJ; | |
d55e5bfc RD |
27205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
27206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27208 | { | |
27209 | arg2 = wxString_in_helper(obj1); | |
27210 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 27211 | temp2 = true; |
d55e5bfc RD |
27212 | } |
27213 | if (obj2) { | |
27214 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, | |
27215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27216 | } | |
27217 | { | |
27218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27219 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
27220 | ||
27221 | wxPyEndAllowThreads(__tstate); | |
27222 | if (PyErr_Occurred()) SWIG_fail; | |
27223 | } | |
27224 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
27225 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
27226 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
27227 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
27228 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
27229 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
27230 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
27231 | resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ? | |
27232 | SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27233 | { |
27234 | if (temp2) | |
27235 | delete arg2; | |
27236 | } | |
27237 | return resultobj; | |
27238 | fail: | |
27239 | { | |
27240 | if (temp2) | |
27241 | delete arg2; | |
27242 | } | |
27243 | return NULL; | |
27244 | } | |
27245 | ||
27246 | ||
c370783e | 27247 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27248 | PyObject *resultobj; |
27249 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27250 | int *arg2 = (int *) 0 ; | |
27251 | int *arg3 = (int *) 0 ; | |
27252 | int temp2 ; | |
c370783e | 27253 | int res2 = 0 ; |
d55e5bfc | 27254 | int temp3 ; |
c370783e | 27255 | int res3 = 0 ; |
d55e5bfc RD |
27256 | PyObject * obj0 = 0 ; |
27257 | PyObject * obj1 = 0 ; | |
27258 | PyObject * obj2 = 0 ; | |
27259 | char *kwnames[] = { | |
27260 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27261 | }; | |
27262 | ||
27263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27266 | { | |
c370783e RD |
27267 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) { |
27268 | temp2 = SWIG_As_int(obj1); | |
27269 | if (PyErr_Occurred()) SWIG_fail; | |
27270 | arg2 = &temp2; | |
27271 | res2 = SWIG_NEWOBJ; | |
27272 | } | |
d55e5bfc RD |
27273 | } |
27274 | { | |
c370783e RD |
27275 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) { |
27276 | temp3 = SWIG_As_int(obj2); | |
27277 | if (PyErr_Occurred()) SWIG_fail; | |
27278 | arg3 = &temp3; | |
27279 | res3 = SWIG_NEWOBJ; | |
27280 | } | |
d55e5bfc RD |
27281 | } |
27282 | { | |
27283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27284 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
27285 | ||
27286 | wxPyEndAllowThreads(__tstate); | |
27287 | if (PyErr_Occurred()) SWIG_fail; | |
27288 | } | |
27289 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
27290 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
27291 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
27292 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
27293 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27294 | return resultobj; |
27295 | fail: | |
27296 | return NULL; | |
27297 | } | |
27298 | ||
27299 | ||
c370783e | 27300 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27301 | PyObject *resultobj; |
27302 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27303 | int *arg2 = (int *) 0 ; | |
27304 | int *arg3 = (int *) 0 ; | |
27305 | int temp2 ; | |
c370783e | 27306 | int res2 = 0 ; |
d55e5bfc | 27307 | int temp3 ; |
c370783e | 27308 | int res3 = 0 ; |
d55e5bfc RD |
27309 | PyObject * obj0 = 0 ; |
27310 | PyObject * obj1 = 0 ; | |
27311 | PyObject * obj2 = 0 ; | |
27312 | char *kwnames[] = { | |
27313 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27314 | }; | |
27315 | ||
27316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27319 | { | |
c370783e RD |
27320 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) { |
27321 | temp2 = SWIG_As_int(obj1); | |
27322 | if (PyErr_Occurred()) SWIG_fail; | |
27323 | arg2 = &temp2; | |
27324 | res2 = SWIG_NEWOBJ; | |
27325 | } | |
d55e5bfc RD |
27326 | } |
27327 | { | |
c370783e RD |
27328 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) { |
27329 | temp3 = SWIG_As_int(obj2); | |
27330 | if (PyErr_Occurred()) SWIG_fail; | |
27331 | arg3 = &temp3; | |
27332 | res3 = SWIG_NEWOBJ; | |
27333 | } | |
d55e5bfc RD |
27334 | } |
27335 | { | |
27336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27337 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
27338 | ||
27339 | wxPyEndAllowThreads(__tstate); | |
27340 | if (PyErr_Occurred()) SWIG_fail; | |
27341 | } | |
27342 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
27343 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
27344 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
27345 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
27346 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27347 | return resultobj; |
27348 | fail: | |
27349 | return NULL; | |
27350 | } | |
27351 | ||
27352 | ||
c370783e | 27353 | static PyObject *_wrap_Window_ClientToScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27354 | PyObject *resultobj; |
27355 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27356 | wxPoint *arg2 = 0 ; | |
27357 | wxPoint result; | |
27358 | wxPoint temp2 ; | |
27359 | PyObject * obj0 = 0 ; | |
27360 | PyObject * obj1 = 0 ; | |
27361 | char *kwnames[] = { | |
27362 | (char *) "self",(char *) "pt", NULL | |
27363 | }; | |
27364 | ||
27365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
27366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27368 | { | |
27369 | arg2 = &temp2; | |
27370 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27371 | } | |
27372 | { | |
27373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27374 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
27375 | ||
27376 | wxPyEndAllowThreads(__tstate); | |
27377 | if (PyErr_Occurred()) SWIG_fail; | |
27378 | } | |
27379 | { | |
27380 | wxPoint * resultptr; | |
27381 | resultptr = new wxPoint((wxPoint &) result); | |
27382 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
27383 | } | |
27384 | return resultobj; | |
27385 | fail: | |
27386 | return NULL; | |
27387 | } | |
27388 | ||
27389 | ||
c370783e | 27390 | static PyObject *_wrap_Window_ScreenToClient(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27391 | PyObject *resultobj; |
27392 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27393 | wxPoint *arg2 = 0 ; | |
27394 | wxPoint result; | |
27395 | wxPoint temp2 ; | |
27396 | PyObject * obj0 = 0 ; | |
27397 | PyObject * obj1 = 0 ; | |
27398 | char *kwnames[] = { | |
27399 | (char *) "self",(char *) "pt", NULL | |
27400 | }; | |
27401 | ||
27402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
27403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27405 | { | |
27406 | arg2 = &temp2; | |
27407 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27408 | } | |
27409 | { | |
27410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27411 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
27412 | ||
27413 | wxPyEndAllowThreads(__tstate); | |
27414 | if (PyErr_Occurred()) SWIG_fail; | |
27415 | } | |
27416 | { | |
27417 | wxPoint * resultptr; | |
27418 | resultptr = new wxPoint((wxPoint &) result); | |
27419 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
27420 | } | |
27421 | return resultobj; | |
27422 | fail: | |
27423 | return NULL; | |
27424 | } | |
27425 | ||
27426 | ||
c370783e | 27427 | static PyObject *_wrap_Window_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27428 | PyObject *resultobj; |
27429 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27430 | int arg2 ; | |
27431 | int arg3 ; | |
27432 | int result; | |
27433 | PyObject * obj0 = 0 ; | |
27434 | PyObject * obj1 = 0 ; | |
27435 | PyObject * obj2 = 0 ; | |
27436 | char *kwnames[] = { | |
27437 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27438 | }; | |
27439 | ||
27440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27443 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27444 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27445 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
27446 | if (PyErr_Occurred()) SWIG_fail; |
27447 | { | |
27448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27449 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
27450 | ||
27451 | wxPyEndAllowThreads(__tstate); | |
27452 | if (PyErr_Occurred()) SWIG_fail; | |
27453 | } | |
c370783e | 27454 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27455 | return resultobj; |
27456 | fail: | |
27457 | return NULL; | |
27458 | } | |
27459 | ||
27460 | ||
c370783e | 27461 | static PyObject *_wrap_Window_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27462 | PyObject *resultobj; |
27463 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27464 | wxPoint *arg2 = 0 ; | |
27465 | int result; | |
27466 | wxPoint temp2 ; | |
27467 | PyObject * obj0 = 0 ; | |
27468 | PyObject * obj1 = 0 ; | |
27469 | char *kwnames[] = { | |
27470 | (char *) "self",(char *) "pt", NULL | |
27471 | }; | |
27472 | ||
27473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
27474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27476 | { | |
27477 | arg2 = &temp2; | |
27478 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27479 | } | |
27480 | { | |
27481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27482 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
27483 | ||
27484 | wxPyEndAllowThreads(__tstate); | |
27485 | if (PyErr_Occurred()) SWIG_fail; | |
27486 | } | |
c370783e | 27487 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27488 | return resultobj; |
27489 | fail: | |
27490 | return NULL; | |
27491 | } | |
27492 | ||
27493 | ||
c370783e | 27494 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
27495 | PyObject *resultobj; |
27496 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27497 | long arg2 ; | |
27498 | int result; | |
27499 | PyObject * obj0 = 0 ; | |
27500 | PyObject * obj1 = 0 ; | |
27501 | ||
27502 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; | |
27503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27505 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
27506 | if (PyErr_Occurred()) SWIG_fail; |
27507 | { | |
27508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27509 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
27510 | ||
27511 | wxPyEndAllowThreads(__tstate); | |
27512 | if (PyErr_Occurred()) SWIG_fail; | |
27513 | } | |
c370783e | 27514 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27515 | return resultobj; |
27516 | fail: | |
27517 | return NULL; | |
27518 | } | |
27519 | ||
27520 | ||
c370783e | 27521 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
27522 | PyObject *resultobj; |
27523 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27524 | int result; | |
27525 | PyObject * obj0 = 0 ; | |
27526 | ||
27527 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; | |
27528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27530 | { | |
27531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27532 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
27533 | ||
27534 | wxPyEndAllowThreads(__tstate); | |
27535 | if (PyErr_Occurred()) SWIG_fail; | |
27536 | } | |
c370783e | 27537 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27538 | return resultobj; |
27539 | fail: | |
27540 | return NULL; | |
27541 | } | |
27542 | ||
27543 | ||
27544 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { | |
27545 | int argc; | |
27546 | PyObject *argv[3]; | |
27547 | int ii; | |
27548 | ||
27549 | argc = PyObject_Length(args); | |
27550 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
27551 | argv[ii] = PyTuple_GetItem(args,ii); | |
27552 | } | |
27553 | if (argc == 1) { | |
27554 | int _v; | |
27555 | { | |
27556 | void *ptr; | |
27557 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
27558 | _v = 0; | |
27559 | PyErr_Clear(); | |
27560 | } else { | |
27561 | _v = 1; | |
27562 | } | |
27563 | } | |
27564 | if (_v) { | |
27565 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
27566 | } | |
27567 | } | |
27568 | if (argc == 2) { | |
27569 | int _v; | |
27570 | { | |
27571 | void *ptr; | |
27572 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
27573 | _v = 0; | |
27574 | PyErr_Clear(); | |
27575 | } else { | |
27576 | _v = 1; | |
27577 | } | |
27578 | } | |
27579 | if (_v) { | |
c370783e | 27580 | _v = SWIG_Check_long(argv[1]); |
d55e5bfc RD |
27581 | if (_v) { |
27582 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
27583 | } | |
27584 | } | |
27585 | } | |
27586 | ||
27587 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'"); | |
27588 | return NULL; | |
27589 | } | |
27590 | ||
27591 | ||
c370783e | 27592 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27593 | PyObject *resultobj; |
27594 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27595 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
27596 | PyObject * obj0 = 0 ; | |
27597 | PyObject * obj1 = 0 ; | |
27598 | char *kwnames[] = { | |
27599 | (char *) "self",(char *) "flags", NULL | |
27600 | }; | |
27601 | ||
27602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; | |
27603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27605 | if (obj1) { | |
c370783e | 27606 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
27607 | if (PyErr_Occurred()) SWIG_fail; |
27608 | } | |
27609 | { | |
27610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27611 | (arg1)->UpdateWindowUI(arg2); | |
27612 | ||
27613 | wxPyEndAllowThreads(__tstate); | |
27614 | if (PyErr_Occurred()) SWIG_fail; | |
27615 | } | |
27616 | Py_INCREF(Py_None); resultobj = Py_None; | |
27617 | return resultobj; | |
27618 | fail: | |
27619 | return NULL; | |
27620 | } | |
27621 | ||
27622 | ||
c370783e | 27623 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27624 | PyObject *resultobj; |
27625 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27626 | wxMenu *arg2 = (wxMenu *) 0 ; | |
b0503257 RD |
27627 | int arg3 = (int) -1 ; |
27628 | int arg4 = (int) -1 ; | |
d55e5bfc RD |
27629 | bool result; |
27630 | PyObject * obj0 = 0 ; | |
27631 | PyObject * obj1 = 0 ; | |
27632 | PyObject * obj2 = 0 ; | |
27633 | PyObject * obj3 = 0 ; | |
27634 | char *kwnames[] = { | |
27635 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
27636 | }; | |
27637 | ||
b0503257 | 27638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
27639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27641 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
27642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b0503257 | 27643 | if (obj2) { |
c370783e | 27644 | arg3 = (int)SWIG_As_int(obj2); |
b0503257 RD |
27645 | if (PyErr_Occurred()) SWIG_fail; |
27646 | } | |
27647 | if (obj3) { | |
c370783e | 27648 | arg4 = (int)SWIG_As_int(obj3); |
b0503257 RD |
27649 | if (PyErr_Occurred()) SWIG_fail; |
27650 | } | |
d55e5bfc RD |
27651 | { |
27652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27653 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
27654 | ||
27655 | wxPyEndAllowThreads(__tstate); | |
27656 | if (PyErr_Occurred()) SWIG_fail; | |
27657 | } | |
27658 | { | |
27659 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27660 | } | |
27661 | return resultobj; | |
27662 | fail: | |
27663 | return NULL; | |
27664 | } | |
27665 | ||
27666 | ||
c370783e | 27667 | static PyObject *_wrap_Window_PopupMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27668 | PyObject *resultobj; |
27669 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27670 | wxMenu *arg2 = (wxMenu *) 0 ; | |
b0503257 RD |
27671 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27672 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
d55e5bfc RD |
27673 | bool result; |
27674 | wxPoint temp3 ; | |
27675 | PyObject * obj0 = 0 ; | |
27676 | PyObject * obj1 = 0 ; | |
27677 | PyObject * obj2 = 0 ; | |
27678 | char *kwnames[] = { | |
27679 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
27680 | }; | |
27681 | ||
b0503257 | 27682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
27683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27685 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
27686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b0503257 RD |
27687 | if (obj2) { |
27688 | { | |
27689 | arg3 = &temp3; | |
27690 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27691 | } | |
d55e5bfc RD |
27692 | } |
27693 | { | |
27694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27695 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
27696 | ||
27697 | wxPyEndAllowThreads(__tstate); | |
27698 | if (PyErr_Occurred()) SWIG_fail; | |
27699 | } | |
27700 | { | |
27701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27702 | } | |
27703 | return resultobj; | |
27704 | fail: | |
27705 | return NULL; | |
27706 | } | |
27707 | ||
27708 | ||
c370783e | 27709 | static PyObject *_wrap_Window_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27710 | PyObject *resultobj; |
27711 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27712 | long result; | |
27713 | PyObject * obj0 = 0 ; | |
27714 | char *kwnames[] = { | |
27715 | (char *) "self", NULL | |
27716 | }; | |
27717 | ||
27718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
27719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27721 | { | |
27722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27723 | result = (long)wxWindow_GetHandle(arg1); | |
27724 | ||
27725 | wxPyEndAllowThreads(__tstate); | |
27726 | if (PyErr_Occurred()) SWIG_fail; | |
27727 | } | |
c370783e | 27728 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
27729 | return resultobj; |
27730 | fail: | |
27731 | return NULL; | |
27732 | } | |
27733 | ||
27734 | ||
629e65c2 RD |
27735 | static PyObject *_wrap_Window_AssociateHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
27736 | PyObject *resultobj; | |
27737 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27738 | long arg2 ; | |
27739 | PyObject * obj0 = 0 ; | |
27740 | PyObject * obj1 = 0 ; | |
27741 | char *kwnames[] = { | |
27742 | (char *) "self",(char *) "handle", NULL | |
27743 | }; | |
27744 | ||
27745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AssociateHandle",kwnames,&obj0,&obj1)) goto fail; | |
27746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27748 | arg2 = (long)SWIG_As_long(obj1); | |
27749 | if (PyErr_Occurred()) SWIG_fail; | |
27750 | { | |
27751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27752 | wxWindow_AssociateHandle(arg1,arg2); | |
27753 | ||
27754 | wxPyEndAllowThreads(__tstate); | |
27755 | if (PyErr_Occurred()) SWIG_fail; | |
27756 | } | |
27757 | Py_INCREF(Py_None); resultobj = Py_None; | |
27758 | return resultobj; | |
27759 | fail: | |
27760 | return NULL; | |
27761 | } | |
27762 | ||
27763 | ||
27764 | static PyObject *_wrap_Window_DissociateHandle(PyObject *, PyObject *args, PyObject *kwargs) { | |
27765 | PyObject *resultobj; | |
27766 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27767 | PyObject * obj0 = 0 ; | |
27768 | char *kwnames[] = { | |
27769 | (char *) "self", NULL | |
27770 | }; | |
27771 | ||
27772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DissociateHandle",kwnames,&obj0)) goto fail; | |
27773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27775 | { | |
27776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27777 | (arg1)->DissociateHandle(); | |
27778 | ||
27779 | wxPyEndAllowThreads(__tstate); | |
27780 | if (PyErr_Occurred()) SWIG_fail; | |
27781 | } | |
27782 | Py_INCREF(Py_None); resultobj = Py_None; | |
27783 | return resultobj; | |
27784 | fail: | |
27785 | return NULL; | |
27786 | } | |
27787 | ||
27788 | ||
c370783e | 27789 | static PyObject *_wrap_Window_HasScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27790 | PyObject *resultobj; |
27791 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27792 | int arg2 ; | |
27793 | bool result; | |
27794 | PyObject * obj0 = 0 ; | |
27795 | PyObject * obj1 = 0 ; | |
27796 | char *kwnames[] = { | |
27797 | (char *) "self",(char *) "orient", NULL | |
27798 | }; | |
27799 | ||
27800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; | |
27801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27803 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
27804 | if (PyErr_Occurred()) SWIG_fail; |
27805 | { | |
27806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27807 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
27808 | ||
27809 | wxPyEndAllowThreads(__tstate); | |
27810 | if (PyErr_Occurred()) SWIG_fail; | |
27811 | } | |
27812 | { | |
27813 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27814 | } | |
27815 | return resultobj; | |
27816 | fail: | |
27817 | return NULL; | |
27818 | } | |
27819 | ||
27820 | ||
c370783e | 27821 | static PyObject *_wrap_Window_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27822 | PyObject *resultobj; |
27823 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27824 | int arg2 ; | |
27825 | int arg3 ; | |
27826 | int arg4 ; | |
27827 | int arg5 ; | |
b411df4a | 27828 | bool arg6 = (bool) true ; |
d55e5bfc RD |
27829 | PyObject * obj0 = 0 ; |
27830 | PyObject * obj1 = 0 ; | |
27831 | PyObject * obj2 = 0 ; | |
27832 | PyObject * obj3 = 0 ; | |
27833 | PyObject * obj4 = 0 ; | |
27834 | PyObject * obj5 = 0 ; | |
27835 | char *kwnames[] = { | |
15817c7e | 27836 | (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL |
d55e5bfc RD |
27837 | }; |
27838 | ||
27839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
27840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27842 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27843 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27844 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27845 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27846 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 27847 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27848 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
27849 | if (PyErr_Occurred()) SWIG_fail; |
27850 | if (obj5) { | |
c370783e | 27851 | arg6 = (bool)SWIG_As_bool(obj5); |
d55e5bfc RD |
27852 | if (PyErr_Occurred()) SWIG_fail; |
27853 | } | |
27854 | { | |
27855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27856 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
27857 | ||
27858 | wxPyEndAllowThreads(__tstate); | |
27859 | if (PyErr_Occurred()) SWIG_fail; | |
27860 | } | |
27861 | Py_INCREF(Py_None); resultobj = Py_None; | |
27862 | return resultobj; | |
27863 | fail: | |
27864 | return NULL; | |
27865 | } | |
27866 | ||
27867 | ||
c370783e | 27868 | static PyObject *_wrap_Window_SetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27869 | PyObject *resultobj; |
27870 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27871 | int arg2 ; | |
27872 | int arg3 ; | |
b411df4a | 27873 | bool arg4 = (bool) true ; |
d55e5bfc RD |
27874 | PyObject * obj0 = 0 ; |
27875 | PyObject * obj1 = 0 ; | |
27876 | PyObject * obj2 = 0 ; | |
27877 | PyObject * obj3 = 0 ; | |
27878 | char *kwnames[] = { | |
27879 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL | |
27880 | }; | |
27881 | ||
27882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27885 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27886 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27887 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
27888 | if (PyErr_Occurred()) SWIG_fail; |
27889 | if (obj3) { | |
c370783e | 27890 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
27891 | if (PyErr_Occurred()) SWIG_fail; |
27892 | } | |
27893 | { | |
27894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27895 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
27896 | ||
27897 | wxPyEndAllowThreads(__tstate); | |
27898 | if (PyErr_Occurred()) SWIG_fail; | |
27899 | } | |
27900 | Py_INCREF(Py_None); resultobj = Py_None; | |
27901 | return resultobj; | |
27902 | fail: | |
27903 | return NULL; | |
27904 | } | |
27905 | ||
27906 | ||
c370783e | 27907 | static PyObject *_wrap_Window_GetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27908 | PyObject *resultobj; |
27909 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27910 | int arg2 ; | |
27911 | int result; | |
27912 | PyObject * obj0 = 0 ; | |
27913 | PyObject * obj1 = 0 ; | |
27914 | char *kwnames[] = { | |
27915 | (char *) "self",(char *) "orientation", NULL | |
27916 | }; | |
27917 | ||
27918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; | |
27919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27921 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
27922 | if (PyErr_Occurred()) SWIG_fail; |
27923 | { | |
27924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27925 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
27926 | ||
27927 | wxPyEndAllowThreads(__tstate); | |
27928 | if (PyErr_Occurred()) SWIG_fail; | |
27929 | } | |
c370783e | 27930 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27931 | return resultobj; |
27932 | fail: | |
27933 | return NULL; | |
27934 | } | |
27935 | ||
27936 | ||
c370783e | 27937 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27938 | PyObject *resultobj; |
27939 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27940 | int arg2 ; | |
27941 | int result; | |
27942 | PyObject * obj0 = 0 ; | |
27943 | PyObject * obj1 = 0 ; | |
27944 | char *kwnames[] = { | |
27945 | (char *) "self",(char *) "orientation", NULL | |
27946 | }; | |
27947 | ||
27948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; | |
27949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27951 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
27952 | if (PyErr_Occurred()) SWIG_fail; |
27953 | { | |
27954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27955 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
27956 | ||
27957 | wxPyEndAllowThreads(__tstate); | |
27958 | if (PyErr_Occurred()) SWIG_fail; | |
27959 | } | |
c370783e | 27960 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27961 | return resultobj; |
27962 | fail: | |
27963 | return NULL; | |
27964 | } | |
27965 | ||
27966 | ||
c370783e | 27967 | static PyObject *_wrap_Window_GetScrollRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27968 | PyObject *resultobj; |
27969 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27970 | int arg2 ; | |
27971 | int result; | |
27972 | PyObject * obj0 = 0 ; | |
27973 | PyObject * obj1 = 0 ; | |
27974 | char *kwnames[] = { | |
27975 | (char *) "self",(char *) "orientation", NULL | |
27976 | }; | |
27977 | ||
27978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; | |
27979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27981 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
27982 | if (PyErr_Occurred()) SWIG_fail; |
27983 | { | |
27984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27985 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
27986 | ||
27987 | wxPyEndAllowThreads(__tstate); | |
27988 | if (PyErr_Occurred()) SWIG_fail; | |
27989 | } | |
c370783e | 27990 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27991 | return resultobj; |
27992 | fail: | |
27993 | return NULL; | |
27994 | } | |
27995 | ||
27996 | ||
c370783e | 27997 | static PyObject *_wrap_Window_ScrollWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27998 | PyObject *resultobj; |
27999 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28000 | int arg2 ; | |
28001 | int arg3 ; | |
28002 | wxRect *arg4 = (wxRect *) NULL ; | |
28003 | PyObject * obj0 = 0 ; | |
28004 | PyObject * obj1 = 0 ; | |
28005 | PyObject * obj2 = 0 ; | |
28006 | PyObject * obj3 = 0 ; | |
28007 | char *kwnames[] = { | |
28008 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
28009 | }; | |
28010 | ||
28011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28014 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 28015 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 28016 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
28017 | if (PyErr_Occurred()) SWIG_fail; |
28018 | if (obj3) { | |
28019 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, | |
28020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28021 | } | |
28022 | { | |
28023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28024 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
28025 | ||
28026 | wxPyEndAllowThreads(__tstate); | |
28027 | if (PyErr_Occurred()) SWIG_fail; | |
28028 | } | |
28029 | Py_INCREF(Py_None); resultobj = Py_None; | |
28030 | return resultobj; | |
28031 | fail: | |
28032 | return NULL; | |
28033 | } | |
28034 | ||
28035 | ||
c370783e | 28036 | static PyObject *_wrap_Window_ScrollLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28037 | PyObject *resultobj; |
28038 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28039 | int arg2 ; | |
28040 | bool result; | |
28041 | PyObject * obj0 = 0 ; | |
28042 | PyObject * obj1 = 0 ; | |
28043 | char *kwnames[] = { | |
28044 | (char *) "self",(char *) "lines", NULL | |
28045 | }; | |
28046 | ||
28047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; | |
28048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28050 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28051 | if (PyErr_Occurred()) SWIG_fail; |
28052 | { | |
28053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28054 | result = (bool)(arg1)->ScrollLines(arg2); | |
28055 | ||
28056 | wxPyEndAllowThreads(__tstate); | |
28057 | if (PyErr_Occurred()) SWIG_fail; | |
28058 | } | |
28059 | { | |
28060 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28061 | } | |
28062 | return resultobj; | |
28063 | fail: | |
28064 | return NULL; | |
28065 | } | |
28066 | ||
28067 | ||
c370783e | 28068 | static PyObject *_wrap_Window_ScrollPages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28069 | PyObject *resultobj; |
28070 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28071 | int arg2 ; | |
28072 | bool result; | |
28073 | PyObject * obj0 = 0 ; | |
28074 | PyObject * obj1 = 0 ; | |
28075 | char *kwnames[] = { | |
28076 | (char *) "self",(char *) "pages", NULL | |
28077 | }; | |
28078 | ||
28079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; | |
28080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28082 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28083 | if (PyErr_Occurred()) SWIG_fail; |
28084 | { | |
28085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28086 | result = (bool)(arg1)->ScrollPages(arg2); | |
28087 | ||
28088 | wxPyEndAllowThreads(__tstate); | |
28089 | if (PyErr_Occurred()) SWIG_fail; | |
28090 | } | |
28091 | { | |
28092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28093 | } | |
28094 | return resultobj; | |
28095 | fail: | |
28096 | return NULL; | |
28097 | } | |
28098 | ||
28099 | ||
c370783e | 28100 | static PyObject *_wrap_Window_LineUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28101 | PyObject *resultobj; |
28102 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28103 | bool result; | |
28104 | PyObject * obj0 = 0 ; | |
28105 | char *kwnames[] = { | |
28106 | (char *) "self", NULL | |
28107 | }; | |
28108 | ||
28109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
28110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28112 | { | |
28113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28114 | result = (bool)(arg1)->LineUp(); | |
28115 | ||
28116 | wxPyEndAllowThreads(__tstate); | |
28117 | if (PyErr_Occurred()) SWIG_fail; | |
28118 | } | |
28119 | { | |
28120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28121 | } | |
28122 | return resultobj; | |
28123 | fail: | |
28124 | return NULL; | |
28125 | } | |
28126 | ||
28127 | ||
c370783e | 28128 | static PyObject *_wrap_Window_LineDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28129 | PyObject *resultobj; |
28130 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28131 | bool result; | |
28132 | PyObject * obj0 = 0 ; | |
28133 | char *kwnames[] = { | |
28134 | (char *) "self", NULL | |
28135 | }; | |
28136 | ||
28137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
28138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28140 | { | |
28141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28142 | result = (bool)(arg1)->LineDown(); | |
28143 | ||
28144 | wxPyEndAllowThreads(__tstate); | |
28145 | if (PyErr_Occurred()) SWIG_fail; | |
28146 | } | |
28147 | { | |
28148 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28149 | } | |
28150 | return resultobj; | |
28151 | fail: | |
28152 | return NULL; | |
28153 | } | |
28154 | ||
28155 | ||
c370783e | 28156 | static PyObject *_wrap_Window_PageUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28157 | PyObject *resultobj; |
28158 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28159 | bool result; | |
28160 | PyObject * obj0 = 0 ; | |
28161 | char *kwnames[] = { | |
28162 | (char *) "self", NULL | |
28163 | }; | |
28164 | ||
28165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
28166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28168 | { | |
28169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28170 | result = (bool)(arg1)->PageUp(); | |
28171 | ||
28172 | wxPyEndAllowThreads(__tstate); | |
28173 | if (PyErr_Occurred()) SWIG_fail; | |
28174 | } | |
28175 | { | |
28176 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28177 | } | |
28178 | return resultobj; | |
28179 | fail: | |
28180 | return NULL; | |
28181 | } | |
28182 | ||
28183 | ||
c370783e | 28184 | static PyObject *_wrap_Window_PageDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28185 | PyObject *resultobj; |
28186 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28187 | bool result; | |
28188 | PyObject * obj0 = 0 ; | |
28189 | char *kwnames[] = { | |
28190 | (char *) "self", NULL | |
28191 | }; | |
28192 | ||
28193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
28194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28196 | { | |
28197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28198 | result = (bool)(arg1)->PageDown(); | |
28199 | ||
28200 | wxPyEndAllowThreads(__tstate); | |
28201 | if (PyErr_Occurred()) SWIG_fail; | |
28202 | } | |
28203 | { | |
28204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28205 | } | |
28206 | return resultobj; | |
28207 | fail: | |
28208 | return NULL; | |
28209 | } | |
28210 | ||
28211 | ||
c370783e | 28212 | static PyObject *_wrap_Window_SetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28213 | PyObject *resultobj; |
28214 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28215 | wxString *arg2 = 0 ; | |
b411df4a | 28216 | bool temp2 = false ; |
d55e5bfc RD |
28217 | PyObject * obj0 = 0 ; |
28218 | PyObject * obj1 = 0 ; | |
28219 | char *kwnames[] = { | |
28220 | (char *) "self",(char *) "text", NULL | |
28221 | }; | |
28222 | ||
28223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
28224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28226 | { | |
28227 | arg2 = wxString_in_helper(obj1); | |
28228 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 28229 | temp2 = true; |
d55e5bfc RD |
28230 | } |
28231 | { | |
28232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28233 | (arg1)->SetHelpText((wxString const &)*arg2); | |
28234 | ||
28235 | wxPyEndAllowThreads(__tstate); | |
28236 | if (PyErr_Occurred()) SWIG_fail; | |
28237 | } | |
28238 | Py_INCREF(Py_None); resultobj = Py_None; | |
28239 | { | |
28240 | if (temp2) | |
28241 | delete arg2; | |
28242 | } | |
28243 | return resultobj; | |
28244 | fail: | |
28245 | { | |
28246 | if (temp2) | |
28247 | delete arg2; | |
28248 | } | |
28249 | return NULL; | |
28250 | } | |
28251 | ||
28252 | ||
c370783e | 28253 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28254 | PyObject *resultobj; |
28255 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28256 | wxString *arg2 = 0 ; | |
b411df4a | 28257 | bool temp2 = false ; |
d55e5bfc RD |
28258 | PyObject * obj0 = 0 ; |
28259 | PyObject * obj1 = 0 ; | |
28260 | char *kwnames[] = { | |
28261 | (char *) "self",(char *) "text", NULL | |
28262 | }; | |
28263 | ||
28264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
28265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28267 | { | |
28268 | arg2 = wxString_in_helper(obj1); | |
28269 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 28270 | temp2 = true; |
d55e5bfc RD |
28271 | } |
28272 | { | |
28273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28274 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
28275 | ||
28276 | wxPyEndAllowThreads(__tstate); | |
28277 | if (PyErr_Occurred()) SWIG_fail; | |
28278 | } | |
28279 | Py_INCREF(Py_None); resultobj = Py_None; | |
28280 | { | |
28281 | if (temp2) | |
28282 | delete arg2; | |
28283 | } | |
28284 | return resultobj; | |
28285 | fail: | |
28286 | { | |
28287 | if (temp2) | |
28288 | delete arg2; | |
28289 | } | |
28290 | return NULL; | |
28291 | } | |
28292 | ||
28293 | ||
c370783e | 28294 | static PyObject *_wrap_Window_GetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28295 | PyObject *resultobj; |
28296 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28297 | wxString result; | |
28298 | PyObject * obj0 = 0 ; | |
28299 | char *kwnames[] = { | |
28300 | (char *) "self", NULL | |
28301 | }; | |
28302 | ||
28303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
28304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28306 | { | |
28307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28308 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
28309 | ||
28310 | wxPyEndAllowThreads(__tstate); | |
28311 | if (PyErr_Occurred()) SWIG_fail; | |
28312 | } | |
28313 | { | |
28314 | #if wxUSE_UNICODE | |
28315 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28316 | #else | |
28317 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28318 | #endif | |
28319 | } | |
28320 | return resultobj; | |
28321 | fail: | |
28322 | return NULL; | |
28323 | } | |
28324 | ||
28325 | ||
c370783e | 28326 | static PyObject *_wrap_Window_SetToolTipString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28327 | PyObject *resultobj; |
28328 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28329 | wxString *arg2 = 0 ; | |
b411df4a | 28330 | bool temp2 = false ; |
d55e5bfc RD |
28331 | PyObject * obj0 = 0 ; |
28332 | PyObject * obj1 = 0 ; | |
28333 | char *kwnames[] = { | |
28334 | (char *) "self",(char *) "tip", NULL | |
28335 | }; | |
28336 | ||
28337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
28338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28340 | { | |
28341 | arg2 = wxString_in_helper(obj1); | |
28342 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 28343 | temp2 = true; |
d55e5bfc RD |
28344 | } |
28345 | { | |
28346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28347 | (arg1)->SetToolTip((wxString const &)*arg2); | |
28348 | ||
28349 | wxPyEndAllowThreads(__tstate); | |
28350 | if (PyErr_Occurred()) SWIG_fail; | |
28351 | } | |
28352 | Py_INCREF(Py_None); resultobj = Py_None; | |
28353 | { | |
28354 | if (temp2) | |
28355 | delete arg2; | |
28356 | } | |
28357 | return resultobj; | |
28358 | fail: | |
28359 | { | |
28360 | if (temp2) | |
28361 | delete arg2; | |
28362 | } | |
28363 | return NULL; | |
28364 | } | |
28365 | ||
28366 | ||
c370783e | 28367 | static PyObject *_wrap_Window_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28368 | PyObject *resultobj; |
28369 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28370 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
28371 | PyObject * obj0 = 0 ; | |
28372 | PyObject * obj1 = 0 ; | |
28373 | char *kwnames[] = { | |
28374 | (char *) "self",(char *) "tip", NULL | |
28375 | }; | |
28376 | ||
28377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
28378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28380 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip, | |
28381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28382 | { | |
28383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28384 | (arg1)->SetToolTip(arg2); | |
28385 | ||
28386 | wxPyEndAllowThreads(__tstate); | |
28387 | if (PyErr_Occurred()) SWIG_fail; | |
28388 | } | |
28389 | Py_INCREF(Py_None); resultobj = Py_None; | |
28390 | return resultobj; | |
28391 | fail: | |
28392 | return NULL; | |
28393 | } | |
28394 | ||
28395 | ||
c370783e | 28396 | static PyObject *_wrap_Window_GetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28397 | PyObject *resultobj; |
28398 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28399 | wxToolTip *result; | |
28400 | PyObject * obj0 = 0 ; | |
28401 | char *kwnames[] = { | |
28402 | (char *) "self", NULL | |
28403 | }; | |
28404 | ||
28405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
28406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28408 | { | |
28409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28410 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
28411 | ||
28412 | wxPyEndAllowThreads(__tstate); | |
28413 | if (PyErr_Occurred()) SWIG_fail; | |
28414 | } | |
28415 | { | |
412d302d | 28416 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28417 | } |
28418 | return resultobj; | |
28419 | fail: | |
28420 | return NULL; | |
28421 | } | |
28422 | ||
28423 | ||
c370783e | 28424 | static PyObject *_wrap_Window_SetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28425 | PyObject *resultobj; |
28426 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28427 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; | |
28428 | PyObject * obj0 = 0 ; | |
28429 | PyObject * obj1 = 0 ; | |
28430 | char *kwnames[] = { | |
28431 | (char *) "self",(char *) "dropTarget", NULL | |
28432 | }; | |
28433 | ||
28434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
28435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28437 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget, | |
28438 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
28439 | { | |
28440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28441 | (arg1)->SetDropTarget(arg2); | |
28442 | ||
28443 | wxPyEndAllowThreads(__tstate); | |
28444 | if (PyErr_Occurred()) SWIG_fail; | |
28445 | } | |
28446 | Py_INCREF(Py_None); resultobj = Py_None; | |
28447 | return resultobj; | |
28448 | fail: | |
28449 | return NULL; | |
28450 | } | |
28451 | ||
28452 | ||
c370783e | 28453 | static PyObject *_wrap_Window_GetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28454 | PyObject *resultobj; |
28455 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28456 | wxPyDropTarget *result; | |
28457 | PyObject * obj0 = 0 ; | |
28458 | char *kwnames[] = { | |
28459 | (char *) "self", NULL | |
28460 | }; | |
28461 | ||
28462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
28463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28465 | { | |
28466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28467 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); | |
28468 | ||
28469 | wxPyEndAllowThreads(__tstate); | |
28470 | if (PyErr_Occurred()) SWIG_fail; | |
28471 | } | |
28472 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); | |
28473 | return resultobj; | |
28474 | fail: | |
28475 | return NULL; | |
28476 | } | |
28477 | ||
28478 | ||
c370783e | 28479 | static PyObject *_wrap_Window_SetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28480 | PyObject *resultobj; |
28481 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28482 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
28483 | PyObject * obj0 = 0 ; | |
28484 | PyObject * obj1 = 0 ; | |
28485 | char *kwnames[] = { | |
28486 | (char *) "self",(char *) "constraints", NULL | |
28487 | }; | |
28488 | ||
28489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
28490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28492 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
28493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28494 | { | |
28495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28496 | (arg1)->SetConstraints(arg2); | |
28497 | ||
28498 | wxPyEndAllowThreads(__tstate); | |
28499 | if (PyErr_Occurred()) SWIG_fail; | |
28500 | } | |
28501 | Py_INCREF(Py_None); resultobj = Py_None; | |
28502 | return resultobj; | |
28503 | fail: | |
28504 | return NULL; | |
28505 | } | |
28506 | ||
28507 | ||
c370783e | 28508 | static PyObject *_wrap_Window_GetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28509 | PyObject *resultobj; |
28510 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28511 | wxLayoutConstraints *result; | |
28512 | PyObject * obj0 = 0 ; | |
28513 | char *kwnames[] = { | |
28514 | (char *) "self", NULL | |
28515 | }; | |
28516 | ||
28517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
28518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28520 | { | |
28521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28522 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
28523 | ||
28524 | wxPyEndAllowThreads(__tstate); | |
28525 | if (PyErr_Occurred()) SWIG_fail; | |
28526 | } | |
28527 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); | |
28528 | return resultobj; | |
28529 | fail: | |
28530 | return NULL; | |
28531 | } | |
28532 | ||
28533 | ||
c370783e | 28534 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28535 | PyObject *resultobj; |
28536 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28537 | bool arg2 ; | |
28538 | PyObject * obj0 = 0 ; | |
28539 | PyObject * obj1 = 0 ; | |
28540 | char *kwnames[] = { | |
28541 | (char *) "self",(char *) "autoLayout", NULL | |
28542 | }; | |
28543 | ||
28544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
28545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28547 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
28548 | if (PyErr_Occurred()) SWIG_fail; |
28549 | { | |
28550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28551 | (arg1)->SetAutoLayout(arg2); | |
28552 | ||
28553 | wxPyEndAllowThreads(__tstate); | |
28554 | if (PyErr_Occurred()) SWIG_fail; | |
28555 | } | |
28556 | Py_INCREF(Py_None); resultobj = Py_None; | |
28557 | return resultobj; | |
28558 | fail: | |
28559 | return NULL; | |
28560 | } | |
28561 | ||
28562 | ||
c370783e | 28563 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28564 | PyObject *resultobj; |
28565 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28566 | bool result; | |
28567 | PyObject * obj0 = 0 ; | |
28568 | char *kwnames[] = { | |
28569 | (char *) "self", NULL | |
28570 | }; | |
28571 | ||
28572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
28573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28575 | { | |
28576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28577 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
28578 | ||
28579 | wxPyEndAllowThreads(__tstate); | |
28580 | if (PyErr_Occurred()) SWIG_fail; | |
28581 | } | |
28582 | { | |
28583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28584 | } | |
28585 | return resultobj; | |
28586 | fail: | |
28587 | return NULL; | |
28588 | } | |
28589 | ||
28590 | ||
c370783e | 28591 | static PyObject *_wrap_Window_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28592 | PyObject *resultobj; |
28593 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28594 | bool result; | |
28595 | PyObject * obj0 = 0 ; | |
28596 | char *kwnames[] = { | |
28597 | (char *) "self", NULL | |
28598 | }; | |
28599 | ||
28600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
28601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28603 | { | |
28604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28605 | result = (bool)(arg1)->Layout(); | |
28606 | ||
28607 | wxPyEndAllowThreads(__tstate); | |
28608 | if (PyErr_Occurred()) SWIG_fail; | |
28609 | } | |
28610 | { | |
28611 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28612 | } | |
28613 | return resultobj; | |
28614 | fail: | |
28615 | return NULL; | |
28616 | } | |
28617 | ||
28618 | ||
c370783e | 28619 | static PyObject *_wrap_Window_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28620 | PyObject *resultobj; |
28621 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28622 | wxSizer *arg2 = (wxSizer *) 0 ; | |
b411df4a | 28623 | bool arg3 = (bool) true ; |
d55e5bfc RD |
28624 | PyObject * obj0 = 0 ; |
28625 | PyObject * obj1 = 0 ; | |
28626 | PyObject * obj2 = 0 ; | |
28627 | char *kwnames[] = { | |
28628 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
28629 | }; | |
28630 | ||
28631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28634 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28636 | if (obj2) { | |
c370783e | 28637 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
28638 | if (PyErr_Occurred()) SWIG_fail; |
28639 | } | |
28640 | { | |
28641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28642 | (arg1)->SetSizer(arg2,arg3); | |
28643 | ||
28644 | wxPyEndAllowThreads(__tstate); | |
28645 | if (PyErr_Occurred()) SWIG_fail; | |
28646 | } | |
28647 | Py_INCREF(Py_None); resultobj = Py_None; | |
28648 | return resultobj; | |
28649 | fail: | |
28650 | return NULL; | |
28651 | } | |
28652 | ||
28653 | ||
c370783e | 28654 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28655 | PyObject *resultobj; |
28656 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28657 | wxSizer *arg2 = (wxSizer *) 0 ; | |
b411df4a | 28658 | bool arg3 = (bool) true ; |
d55e5bfc RD |
28659 | PyObject * obj0 = 0 ; |
28660 | PyObject * obj1 = 0 ; | |
28661 | PyObject * obj2 = 0 ; | |
28662 | char *kwnames[] = { | |
28663 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
28664 | }; | |
28665 | ||
28666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28669 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28671 | if (obj2) { | |
c370783e | 28672 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
28673 | if (PyErr_Occurred()) SWIG_fail; |
28674 | } | |
28675 | { | |
28676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28677 | (arg1)->SetSizerAndFit(arg2,arg3); | |
28678 | ||
28679 | wxPyEndAllowThreads(__tstate); | |
28680 | if (PyErr_Occurred()) SWIG_fail; | |
28681 | } | |
28682 | Py_INCREF(Py_None); resultobj = Py_None; | |
28683 | return resultobj; | |
28684 | fail: | |
28685 | return NULL; | |
28686 | } | |
28687 | ||
28688 | ||
c370783e | 28689 | static PyObject *_wrap_Window_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28690 | PyObject *resultobj; |
28691 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28692 | wxSizer *result; | |
28693 | PyObject * obj0 = 0 ; | |
28694 | char *kwnames[] = { | |
28695 | (char *) "self", NULL | |
28696 | }; | |
28697 | ||
28698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
28699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28701 | { | |
28702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28703 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
28704 | ||
28705 | wxPyEndAllowThreads(__tstate); | |
28706 | if (PyErr_Occurred()) SWIG_fail; | |
28707 | } | |
28708 | { | |
412d302d | 28709 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
28710 | } |
28711 | return resultobj; | |
28712 | fail: | |
28713 | return NULL; | |
28714 | } | |
28715 | ||
28716 | ||
c370783e | 28717 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28718 | PyObject *resultobj; |
28719 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28720 | wxSizer *arg2 = (wxSizer *) 0 ; | |
28721 | PyObject * obj0 = 0 ; | |
28722 | PyObject * obj1 = 0 ; | |
28723 | char *kwnames[] = { | |
28724 | (char *) "self",(char *) "sizer", NULL | |
28725 | }; | |
28726 | ||
28727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
28728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28730 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28732 | { | |
28733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28734 | (arg1)->SetContainingSizer(arg2); | |
28735 | ||
28736 | wxPyEndAllowThreads(__tstate); | |
28737 | if (PyErr_Occurred()) SWIG_fail; | |
28738 | } | |
28739 | Py_INCREF(Py_None); resultobj = Py_None; | |
28740 | return resultobj; | |
28741 | fail: | |
28742 | return NULL; | |
28743 | } | |
28744 | ||
28745 | ||
c370783e | 28746 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28747 | PyObject *resultobj; |
28748 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28749 | wxSizer *result; | |
28750 | PyObject * obj0 = 0 ; | |
28751 | char *kwnames[] = { | |
28752 | (char *) "self", NULL | |
28753 | }; | |
28754 | ||
28755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
28756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28758 | { | |
28759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28760 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
28761 | ||
28762 | wxPyEndAllowThreads(__tstate); | |
28763 | if (PyErr_Occurred()) SWIG_fail; | |
28764 | } | |
28765 | { | |
412d302d | 28766 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
28767 | } |
28768 | return resultobj; | |
28769 | fail: | |
28770 | return NULL; | |
28771 | } | |
28772 | ||
28773 | ||
c370783e | 28774 | static PyObject *_wrap_Window_InheritAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28775 | PyObject *resultobj; |
28776 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28777 | PyObject * obj0 = 0 ; | |
28778 | char *kwnames[] = { | |
28779 | (char *) "self", NULL | |
28780 | }; | |
28781 | ||
28782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail; | |
28783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28785 | { | |
28786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28787 | (arg1)->InheritAttributes(); | |
28788 | ||
28789 | wxPyEndAllowThreads(__tstate); | |
28790 | if (PyErr_Occurred()) SWIG_fail; | |
28791 | } | |
28792 | Py_INCREF(Py_None); resultobj = Py_None; | |
28793 | return resultobj; | |
28794 | fail: | |
28795 | return NULL; | |
28796 | } | |
28797 | ||
28798 | ||
c370783e | 28799 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28800 | PyObject *resultobj; |
28801 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28802 | bool result; | |
28803 | PyObject * obj0 = 0 ; | |
28804 | char *kwnames[] = { | |
28805 | (char *) "self", NULL | |
28806 | }; | |
28807 | ||
28808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
28809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28811 | { | |
28812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28813 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
28814 | ||
28815 | wxPyEndAllowThreads(__tstate); | |
28816 | if (PyErr_Occurred()) SWIG_fail; | |
28817 | } | |
28818 | { | |
28819 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28820 | } | |
28821 | return resultobj; | |
28822 | fail: | |
28823 | return NULL; | |
28824 | } | |
28825 | ||
28826 | ||
c370783e | 28827 | static PyObject * Window_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28828 | PyObject *obj; |
28829 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28830 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
28831 | Py_INCREF(obj); | |
28832 | return Py_BuildValue((char *)""); | |
28833 | } | |
c370783e | 28834 | static PyObject *_wrap_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28835 | PyObject *resultobj; |
28836 | long arg1 ; | |
28837 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28838 | wxWindow *result; | |
28839 | PyObject * obj0 = 0 ; | |
28840 | PyObject * obj1 = 0 ; | |
28841 | char *kwnames[] = { | |
28842 | (char *) "id",(char *) "parent", NULL | |
28843 | }; | |
28844 | ||
28845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
c370783e | 28846 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
28847 | if (PyErr_Occurred()) SWIG_fail; |
28848 | if (obj1) { | |
28849 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28851 | } | |
28852 | { | |
0439c23b | 28853 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28855 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
28856 | ||
28857 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28858 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28859 | } |
28860 | { | |
412d302d | 28861 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28862 | } |
28863 | return resultobj; | |
28864 | fail: | |
28865 | return NULL; | |
28866 | } | |
28867 | ||
28868 | ||
c370783e | 28869 | static PyObject *_wrap_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28870 | PyObject *resultobj; |
28871 | wxString *arg1 = 0 ; | |
28872 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28873 | wxWindow *result; | |
b411df4a | 28874 | bool temp1 = false ; |
d55e5bfc RD |
28875 | PyObject * obj0 = 0 ; |
28876 | PyObject * obj1 = 0 ; | |
28877 | char *kwnames[] = { | |
28878 | (char *) "name",(char *) "parent", NULL | |
28879 | }; | |
28880 | ||
28881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
28882 | { | |
28883 | arg1 = wxString_in_helper(obj0); | |
28884 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 28885 | temp1 = true; |
d55e5bfc RD |
28886 | } |
28887 | if (obj1) { | |
28888 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28890 | } | |
28891 | { | |
0439c23b | 28892 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28894 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
28895 | ||
28896 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28897 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28898 | } |
28899 | { | |
412d302d | 28900 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28901 | } |
28902 | { | |
28903 | if (temp1) | |
28904 | delete arg1; | |
28905 | } | |
28906 | return resultobj; | |
28907 | fail: | |
28908 | { | |
28909 | if (temp1) | |
28910 | delete arg1; | |
28911 | } | |
28912 | return NULL; | |
28913 | } | |
28914 | ||
28915 | ||
c370783e | 28916 | static PyObject *_wrap_FindWindowByLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28917 | PyObject *resultobj; |
28918 | wxString *arg1 = 0 ; | |
28919 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28920 | wxWindow *result; | |
b411df4a | 28921 | bool temp1 = false ; |
d55e5bfc RD |
28922 | PyObject * obj0 = 0 ; |
28923 | PyObject * obj1 = 0 ; | |
28924 | char *kwnames[] = { | |
28925 | (char *) "label",(char *) "parent", NULL | |
28926 | }; | |
28927 | ||
28928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
28929 | { | |
28930 | arg1 = wxString_in_helper(obj0); | |
28931 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 28932 | temp1 = true; |
d55e5bfc RD |
28933 | } |
28934 | if (obj1) { | |
28935 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28937 | } | |
28938 | { | |
0439c23b | 28939 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28941 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
28942 | ||
28943 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28944 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28945 | } |
28946 | { | |
412d302d | 28947 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28948 | } |
28949 | { | |
28950 | if (temp1) | |
28951 | delete arg1; | |
28952 | } | |
28953 | return resultobj; | |
28954 | fail: | |
28955 | { | |
28956 | if (temp1) | |
28957 | delete arg1; | |
28958 | } | |
28959 | return NULL; | |
28960 | } | |
28961 | ||
28962 | ||
c370783e | 28963 | static PyObject *_wrap_Window_FromHWND(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28964 | PyObject *resultobj; |
28965 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28966 | unsigned long arg2 ; | |
28967 | wxWindow *result; | |
28968 | PyObject * obj0 = 0 ; | |
28969 | PyObject * obj1 = 0 ; | |
28970 | char *kwnames[] = { | |
28971 | (char *) "parent",(char *) "_hWnd", NULL | |
28972 | }; | |
28973 | ||
28974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; | |
28975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28977 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
28978 | if (PyErr_Occurred()) SWIG_fail; |
28979 | { | |
28980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28981 | result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); | |
28982 | ||
28983 | wxPyEndAllowThreads(__tstate); | |
28984 | if (PyErr_Occurred()) SWIG_fail; | |
28985 | } | |
28986 | { | |
412d302d | 28987 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28988 | } |
28989 | return resultobj; | |
28990 | fail: | |
28991 | return NULL; | |
28992 | } | |
28993 | ||
28994 | ||
c370783e | 28995 | static PyObject *_wrap_new_Validator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28996 | PyObject *resultobj; |
28997 | wxValidator *result; | |
28998 | char *kwnames[] = { | |
28999 | NULL | |
29000 | }; | |
29001 | ||
29002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
29003 | { | |
29004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29005 | result = (wxValidator *)new wxValidator(); | |
29006 | ||
29007 | wxPyEndAllowThreads(__tstate); | |
29008 | if (PyErr_Occurred()) SWIG_fail; | |
29009 | } | |
b0f7404b | 29010 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxValidator, 1); |
d55e5bfc RD |
29011 | return resultobj; |
29012 | fail: | |
29013 | return NULL; | |
29014 | } | |
29015 | ||
29016 | ||
c370783e | 29017 | static PyObject *_wrap_Validator_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29018 | PyObject *resultobj; |
29019 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29020 | wxValidator *result; | |
29021 | PyObject * obj0 = 0 ; | |
29022 | char *kwnames[] = { | |
29023 | (char *) "self", NULL | |
29024 | }; | |
29025 | ||
29026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
29027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29029 | { | |
29030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29031 | result = (wxValidator *)(arg1)->Clone(); | |
29032 | ||
29033 | wxPyEndAllowThreads(__tstate); | |
29034 | if (PyErr_Occurred()) SWIG_fail; | |
29035 | } | |
29036 | { | |
412d302d | 29037 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29038 | } |
29039 | return resultobj; | |
29040 | fail: | |
29041 | return NULL; | |
29042 | } | |
29043 | ||
29044 | ||
c370783e | 29045 | static PyObject *_wrap_Validator_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29046 | PyObject *resultobj; |
29047 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29048 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29049 | bool result; | |
29050 | PyObject * obj0 = 0 ; | |
29051 | PyObject * obj1 = 0 ; | |
29052 | char *kwnames[] = { | |
29053 | (char *) "self",(char *) "parent", NULL | |
29054 | }; | |
29055 | ||
29056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
29057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29059 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29061 | { | |
29062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29063 | result = (bool)(arg1)->Validate(arg2); | |
29064 | ||
29065 | wxPyEndAllowThreads(__tstate); | |
29066 | if (PyErr_Occurred()) SWIG_fail; | |
29067 | } | |
29068 | { | |
29069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29070 | } | |
29071 | return resultobj; | |
29072 | fail: | |
29073 | return NULL; | |
29074 | } | |
29075 | ||
29076 | ||
c370783e | 29077 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29078 | PyObject *resultobj; |
29079 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29080 | bool result; | |
29081 | PyObject * obj0 = 0 ; | |
29082 | char *kwnames[] = { | |
29083 | (char *) "self", NULL | |
29084 | }; | |
29085 | ||
29086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
29087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29089 | { | |
29090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29091 | result = (bool)(arg1)->TransferToWindow(); | |
29092 | ||
29093 | wxPyEndAllowThreads(__tstate); | |
29094 | if (PyErr_Occurred()) SWIG_fail; | |
29095 | } | |
29096 | { | |
29097 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29098 | } | |
29099 | return resultobj; | |
29100 | fail: | |
29101 | return NULL; | |
29102 | } | |
29103 | ||
29104 | ||
c370783e | 29105 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29106 | PyObject *resultobj; |
29107 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29108 | bool result; | |
29109 | PyObject * obj0 = 0 ; | |
29110 | char *kwnames[] = { | |
29111 | (char *) "self", NULL | |
29112 | }; | |
29113 | ||
29114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
29115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29117 | { | |
29118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29119 | result = (bool)(arg1)->TransferFromWindow(); | |
29120 | ||
29121 | wxPyEndAllowThreads(__tstate); | |
29122 | if (PyErr_Occurred()) SWIG_fail; | |
29123 | } | |
29124 | { | |
29125 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29126 | } | |
29127 | return resultobj; | |
29128 | fail: | |
29129 | return NULL; | |
29130 | } | |
29131 | ||
29132 | ||
c370783e | 29133 | static PyObject *_wrap_Validator_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29134 | PyObject *resultobj; |
29135 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29136 | wxWindow *result; | |
29137 | PyObject * obj0 = 0 ; | |
29138 | char *kwnames[] = { | |
29139 | (char *) "self", NULL | |
29140 | }; | |
29141 | ||
29142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
29143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29145 | { | |
29146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29147 | result = (wxWindow *)(arg1)->GetWindow(); | |
29148 | ||
29149 | wxPyEndAllowThreads(__tstate); | |
29150 | if (PyErr_Occurred()) SWIG_fail; | |
29151 | } | |
29152 | { | |
412d302d | 29153 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29154 | } |
29155 | return resultobj; | |
29156 | fail: | |
29157 | return NULL; | |
29158 | } | |
29159 | ||
29160 | ||
c370783e | 29161 | static PyObject *_wrap_Validator_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29162 | PyObject *resultobj; |
29163 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29164 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29165 | PyObject * obj0 = 0 ; | |
29166 | PyObject * obj1 = 0 ; | |
29167 | char *kwnames[] = { | |
29168 | (char *) "self",(char *) "window", NULL | |
29169 | }; | |
29170 | ||
29171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
29172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29174 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29176 | { | |
29177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29178 | (arg1)->SetWindow(arg2); | |
29179 | ||
29180 | wxPyEndAllowThreads(__tstate); | |
29181 | if (PyErr_Occurred()) SWIG_fail; | |
29182 | } | |
29183 | Py_INCREF(Py_None); resultobj = Py_None; | |
29184 | return resultobj; | |
29185 | fail: | |
29186 | return NULL; | |
29187 | } | |
29188 | ||
29189 | ||
c370783e | 29190 | static PyObject *_wrap_Validator_IsSilent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29191 | PyObject *resultobj; |
29192 | bool result; | |
29193 | char *kwnames[] = { | |
29194 | NULL | |
29195 | }; | |
29196 | ||
29197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
29198 | { | |
29199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29200 | result = (bool)wxValidator::IsSilent(); | |
29201 | ||
29202 | wxPyEndAllowThreads(__tstate); | |
29203 | if (PyErr_Occurred()) SWIG_fail; | |
29204 | } | |
29205 | { | |
29206 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29207 | } | |
29208 | return resultobj; | |
29209 | fail: | |
29210 | return NULL; | |
29211 | } | |
29212 | ||
29213 | ||
c370783e | 29214 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 29215 | PyObject *resultobj; |
b411df4a | 29216 | int arg1 = (int) true ; |
d55e5bfc RD |
29217 | PyObject * obj0 = 0 ; |
29218 | char *kwnames[] = { | |
29219 | (char *) "doIt", NULL | |
29220 | }; | |
29221 | ||
29222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; | |
29223 | if (obj0) { | |
c370783e | 29224 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
29225 | if (PyErr_Occurred()) SWIG_fail; |
29226 | } | |
29227 | { | |
29228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29229 | wxValidator::SetBellOnError(arg1); | |
29230 | ||
29231 | wxPyEndAllowThreads(__tstate); | |
29232 | if (PyErr_Occurred()) SWIG_fail; | |
29233 | } | |
29234 | Py_INCREF(Py_None); resultobj = Py_None; | |
29235 | return resultobj; | |
29236 | fail: | |
29237 | return NULL; | |
29238 | } | |
29239 | ||
29240 | ||
c370783e | 29241 | static PyObject * Validator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29242 | PyObject *obj; |
29243 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29244 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
29245 | Py_INCREF(obj); | |
29246 | return Py_BuildValue((char *)""); | |
29247 | } | |
c370783e | 29248 | static PyObject *_wrap_new_PyValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29249 | PyObject *resultobj; |
29250 | wxPyValidator *result; | |
29251 | char *kwnames[] = { | |
29252 | NULL | |
29253 | }; | |
29254 | ||
29255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
29256 | { | |
29257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29258 | result = (wxPyValidator *)new wxPyValidator(); | |
29259 | ||
29260 | wxPyEndAllowThreads(__tstate); | |
29261 | if (PyErr_Occurred()) SWIG_fail; | |
29262 | } | |
29263 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); | |
29264 | return resultobj; | |
29265 | fail: | |
29266 | return NULL; | |
29267 | } | |
29268 | ||
29269 | ||
c370783e | 29270 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29271 | PyObject *resultobj; |
29272 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
29273 | PyObject *arg2 = (PyObject *) 0 ; | |
29274 | PyObject *arg3 = (PyObject *) 0 ; | |
b411df4a | 29275 | int arg4 = (int) true ; |
d55e5bfc RD |
29276 | PyObject * obj0 = 0 ; |
29277 | PyObject * obj1 = 0 ; | |
29278 | PyObject * obj2 = 0 ; | |
29279 | PyObject * obj3 = 0 ; | |
29280 | char *kwnames[] = { | |
29281 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
29282 | }; | |
29283 | ||
29284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator, | |
29286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29287 | arg2 = obj1; | |
29288 | arg3 = obj2; | |
29289 | if (obj3) { | |
c370783e | 29290 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
29291 | if (PyErr_Occurred()) SWIG_fail; |
29292 | } | |
29293 | { | |
29294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29295 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
29296 | ||
29297 | wxPyEndAllowThreads(__tstate); | |
29298 | if (PyErr_Occurred()) SWIG_fail; | |
29299 | } | |
29300 | Py_INCREF(Py_None); resultobj = Py_None; | |
29301 | return resultobj; | |
29302 | fail: | |
29303 | return NULL; | |
29304 | } | |
29305 | ||
29306 | ||
c370783e | 29307 | static PyObject * PyValidator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29308 | PyObject *obj; |
29309 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29310 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
29311 | Py_INCREF(obj); | |
29312 | return Py_BuildValue((char *)""); | |
29313 | } | |
c370783e | 29314 | static int _wrap_DefaultValidator_set(PyObject *) { |
d55e5bfc RD |
29315 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); |
29316 | return 1; | |
29317 | } | |
29318 | ||
29319 | ||
29320 | static PyObject *_wrap_DefaultValidator_get() { | |
29321 | PyObject *pyobj; | |
29322 | ||
29323 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); | |
29324 | return pyobj; | |
29325 | } | |
29326 | ||
29327 | ||
c370783e | 29328 | static PyObject *_wrap_new_Menu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29329 | PyObject *resultobj; |
29330 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
29331 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
29332 | long arg2 = (long) 0 ; | |
29333 | wxMenu *result; | |
b411df4a | 29334 | bool temp1 = false ; |
d55e5bfc RD |
29335 | PyObject * obj0 = 0 ; |
29336 | PyObject * obj1 = 0 ; | |
29337 | char *kwnames[] = { | |
29338 | (char *) "title",(char *) "style", NULL | |
29339 | }; | |
29340 | ||
29341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; | |
29342 | if (obj0) { | |
29343 | { | |
29344 | arg1 = wxString_in_helper(obj0); | |
29345 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 29346 | temp1 = true; |
d55e5bfc RD |
29347 | } |
29348 | } | |
29349 | if (obj1) { | |
c370783e | 29350 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
29351 | if (PyErr_Occurred()) SWIG_fail; |
29352 | } | |
29353 | { | |
0439c23b | 29354 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29356 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
29357 | ||
29358 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29359 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 29360 | } |
b0f7404b | 29361 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenu, 1); |
d55e5bfc RD |
29362 | { |
29363 | if (temp1) | |
29364 | delete arg1; | |
29365 | } | |
29366 | return resultobj; | |
29367 | fail: | |
29368 | { | |
29369 | if (temp1) | |
29370 | delete arg1; | |
29371 | } | |
29372 | return NULL; | |
29373 | } | |
29374 | ||
29375 | ||
c370783e | 29376 | static PyObject *_wrap_Menu_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29377 | PyObject *resultobj; |
29378 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29379 | int arg2 ; | |
29380 | wxString *arg3 = 0 ; | |
29381 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29382 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29383 | int arg5 = (int) wxITEM_NORMAL ; | |
29384 | wxMenuItem *result; | |
b411df4a RD |
29385 | bool temp3 = false ; |
29386 | bool temp4 = false ; | |
d55e5bfc RD |
29387 | PyObject * obj0 = 0 ; |
29388 | PyObject * obj1 = 0 ; | |
29389 | PyObject * obj2 = 0 ; | |
29390 | PyObject * obj3 = 0 ; | |
29391 | PyObject * obj4 = 0 ; | |
29392 | char *kwnames[] = { | |
29393 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
29394 | }; | |
29395 | ||
29396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29399 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29400 | if (PyErr_Occurred()) SWIG_fail; |
29401 | { | |
29402 | arg3 = wxString_in_helper(obj2); | |
29403 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 29404 | temp3 = true; |
d55e5bfc RD |
29405 | } |
29406 | if (obj3) { | |
29407 | { | |
29408 | arg4 = wxString_in_helper(obj3); | |
29409 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 29410 | temp4 = true; |
d55e5bfc RD |
29411 | } |
29412 | } | |
29413 | if (obj4) { | |
c370783e | 29414 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
29415 | if (PyErr_Occurred()) SWIG_fail; |
29416 | } | |
29417 | { | |
29418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29419 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
29420 | ||
29421 | wxPyEndAllowThreads(__tstate); | |
29422 | if (PyErr_Occurred()) SWIG_fail; | |
29423 | } | |
29424 | { | |
412d302d | 29425 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29426 | } |
29427 | { | |
29428 | if (temp3) | |
29429 | delete arg3; | |
29430 | } | |
29431 | { | |
29432 | if (temp4) | |
29433 | delete arg4; | |
29434 | } | |
29435 | return resultobj; | |
29436 | fail: | |
29437 | { | |
29438 | if (temp3) | |
29439 | delete arg3; | |
29440 | } | |
29441 | { | |
29442 | if (temp4) | |
29443 | delete arg4; | |
29444 | } | |
29445 | return NULL; | |
29446 | } | |
29447 | ||
29448 | ||
c370783e | 29449 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29450 | PyObject *resultobj; |
29451 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29452 | wxMenuItem *result; | |
29453 | PyObject * obj0 = 0 ; | |
29454 | char *kwnames[] = { | |
29455 | (char *) "self", NULL | |
29456 | }; | |
29457 | ||
29458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
29459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29461 | { | |
29462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29463 | result = (wxMenuItem *)(arg1)->AppendSeparator(); | |
29464 | ||
29465 | wxPyEndAllowThreads(__tstate); | |
29466 | if (PyErr_Occurred()) SWIG_fail; | |
29467 | } | |
29468 | { | |
412d302d | 29469 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29470 | } |
29471 | return resultobj; | |
29472 | fail: | |
29473 | return NULL; | |
29474 | } | |
29475 | ||
29476 | ||
c370783e | 29477 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29478 | PyObject *resultobj; |
29479 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29480 | int arg2 ; | |
29481 | wxString *arg3 = 0 ; | |
29482 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29483 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29484 | wxMenuItem *result; | |
b411df4a RD |
29485 | bool temp3 = false ; |
29486 | bool temp4 = false ; | |
d55e5bfc RD |
29487 | PyObject * obj0 = 0 ; |
29488 | PyObject * obj1 = 0 ; | |
29489 | PyObject * obj2 = 0 ; | |
29490 | PyObject * obj3 = 0 ; | |
29491 | char *kwnames[] = { | |
29492 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29493 | }; | |
29494 | ||
29495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29498 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29499 | if (PyErr_Occurred()) SWIG_fail; |
29500 | { | |
29501 | arg3 = wxString_in_helper(obj2); | |
29502 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 29503 | temp3 = true; |
d55e5bfc RD |
29504 | } |
29505 | if (obj3) { | |
29506 | { | |
29507 | arg4 = wxString_in_helper(obj3); | |
29508 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 29509 | temp4 = true; |
d55e5bfc RD |
29510 | } |
29511 | } | |
29512 | { | |
29513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29514 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29515 | ||
29516 | wxPyEndAllowThreads(__tstate); | |
29517 | if (PyErr_Occurred()) SWIG_fail; | |
29518 | } | |
29519 | { | |
412d302d | 29520 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29521 | } |
29522 | { | |
29523 | if (temp3) | |
29524 | delete arg3; | |
29525 | } | |
29526 | { | |
29527 | if (temp4) | |
29528 | delete arg4; | |
29529 | } | |
29530 | return resultobj; | |
29531 | fail: | |
29532 | { | |
29533 | if (temp3) | |
29534 | delete arg3; | |
29535 | } | |
29536 | { | |
29537 | if (temp4) | |
29538 | delete arg4; | |
29539 | } | |
29540 | return NULL; | |
29541 | } | |
29542 | ||
29543 | ||
c370783e | 29544 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29545 | PyObject *resultobj; |
29546 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29547 | int arg2 ; | |
29548 | wxString *arg3 = 0 ; | |
29549 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29550 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29551 | wxMenuItem *result; | |
b411df4a RD |
29552 | bool temp3 = false ; |
29553 | bool temp4 = false ; | |
d55e5bfc RD |
29554 | PyObject * obj0 = 0 ; |
29555 | PyObject * obj1 = 0 ; | |
29556 | PyObject * obj2 = 0 ; | |
29557 | PyObject * obj3 = 0 ; | |
29558 | char *kwnames[] = { | |
29559 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29560 | }; | |
29561 | ||
29562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29565 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29566 | if (PyErr_Occurred()) SWIG_fail; |
29567 | { | |
29568 | arg3 = wxString_in_helper(obj2); | |
29569 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 29570 | temp3 = true; |
d55e5bfc RD |
29571 | } |
29572 | if (obj3) { | |
29573 | { | |
29574 | arg4 = wxString_in_helper(obj3); | |
29575 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 29576 | temp4 = true; |
d55e5bfc RD |
29577 | } |
29578 | } | |
29579 | { | |
29580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29581 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29582 | ||
29583 | wxPyEndAllowThreads(__tstate); | |
29584 | if (PyErr_Occurred()) SWIG_fail; | |
29585 | } | |
29586 | { | |
412d302d | 29587 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29588 | } |
29589 | { | |
29590 | if (temp3) | |
29591 | delete arg3; | |
29592 | } | |
29593 | { | |
29594 | if (temp4) | |
29595 | delete arg4; | |
29596 | } | |
29597 | return resultobj; | |
29598 | fail: | |
29599 | { | |
29600 | if (temp3) | |
29601 | delete arg3; | |
29602 | } | |
29603 | { | |
29604 | if (temp4) | |
29605 | delete arg4; | |
29606 | } | |
29607 | return NULL; | |
29608 | } | |
29609 | ||
29610 | ||
c370783e | 29611 | static PyObject *_wrap_Menu_AppendMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29612 | PyObject *resultobj; |
29613 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29614 | int arg2 ; | |
29615 | wxString *arg3 = 0 ; | |
29616 | wxMenu *arg4 = (wxMenu *) 0 ; | |
29617 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29618 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29619 | wxMenuItem *result; | |
b411df4a RD |
29620 | bool temp3 = false ; |
29621 | bool temp5 = false ; | |
d55e5bfc RD |
29622 | PyObject * obj0 = 0 ; |
29623 | PyObject * obj1 = 0 ; | |
29624 | PyObject * obj2 = 0 ; | |
29625 | PyObject * obj3 = 0 ; | |
29626 | PyObject * obj4 = 0 ; | |
29627 | char *kwnames[] = { | |
29628 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
29629 | }; | |
29630 | ||
29631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29634 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29635 | if (PyErr_Occurred()) SWIG_fail; |
29636 | { | |
29637 | arg3 = wxString_in_helper(obj2); | |
29638 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 29639 | temp3 = true; |
d55e5bfc RD |
29640 | } |
29641 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, | |
29642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29643 | if (obj4) { | |
29644 | { | |
29645 | arg5 = wxString_in_helper(obj4); | |
29646 | if (arg5 == NULL) SWIG_fail; | |
b411df4a | 29647 | temp5 = true; |
d55e5bfc RD |
29648 | } |
29649 | } | |
29650 | { | |
29651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29652 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
29653 | ||
29654 | wxPyEndAllowThreads(__tstate); | |
29655 | if (PyErr_Occurred()) SWIG_fail; | |
29656 | } | |
29657 | { | |
412d302d | 29658 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29659 | } |
29660 | { | |
29661 | if (temp3) | |
29662 | delete arg3; | |
29663 | } | |
29664 | { | |
29665 | if (temp5) | |
29666 | delete arg5; | |
29667 | } | |
29668 | return resultobj; | |
29669 | fail: | |
29670 | { | |
29671 | if (temp3) | |
29672 | delete arg3; | |
29673 | } | |
29674 | { | |
29675 | if (temp5) | |
29676 | delete arg5; | |
29677 | } | |
29678 | return NULL; | |
29679 | } | |
29680 | ||
29681 | ||
c370783e | 29682 | static PyObject *_wrap_Menu_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29683 | PyObject *resultobj; |
29684 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29685 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29686 | wxMenuItem *result; | |
29687 | PyObject * obj0 = 0 ; | |
29688 | PyObject * obj1 = 0 ; | |
29689 | char *kwnames[] = { | |
29690 | (char *) "self",(char *) "item", NULL | |
29691 | }; | |
29692 | ||
29693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
29694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29696 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29698 | { | |
29699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29700 | result = (wxMenuItem *)(arg1)->Append(arg2); | |
29701 | ||
29702 | wxPyEndAllowThreads(__tstate); | |
29703 | if (PyErr_Occurred()) SWIG_fail; | |
29704 | } | |
29705 | { | |
412d302d | 29706 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29707 | } |
29708 | return resultobj; | |
29709 | fail: | |
29710 | return NULL; | |
29711 | } | |
29712 | ||
29713 | ||
c370783e | 29714 | static PyObject *_wrap_Menu_Break(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29715 | PyObject *resultobj; |
29716 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29717 | PyObject * obj0 = 0 ; | |
29718 | char *kwnames[] = { | |
29719 | (char *) "self", NULL | |
29720 | }; | |
29721 | ||
29722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
29723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29725 | { | |
29726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29727 | (arg1)->Break(); | |
29728 | ||
29729 | wxPyEndAllowThreads(__tstate); | |
29730 | if (PyErr_Occurred()) SWIG_fail; | |
29731 | } | |
29732 | Py_INCREF(Py_None); resultobj = Py_None; | |
29733 | return resultobj; | |
29734 | fail: | |
29735 | return NULL; | |
29736 | } | |
29737 | ||
29738 | ||
c370783e | 29739 | static PyObject *_wrap_Menu_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29740 | PyObject *resultobj; |
29741 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29742 | size_t arg2 ; | |
29743 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
29744 | wxMenuItem *result; | |
29745 | PyObject * obj0 = 0 ; | |
29746 | PyObject * obj1 = 0 ; | |
29747 | PyObject * obj2 = 0 ; | |
29748 | char *kwnames[] = { | |
29749 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
29750 | }; | |
29751 | ||
29752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29755 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
29756 | if (PyErr_Occurred()) SWIG_fail; |
29757 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem, | |
29758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29759 | { | |
29760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29761 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); | |
29762 | ||
29763 | wxPyEndAllowThreads(__tstate); | |
29764 | if (PyErr_Occurred()) SWIG_fail; | |
29765 | } | |
29766 | { | |
412d302d | 29767 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29768 | } |
29769 | return resultobj; | |
29770 | fail: | |
29771 | return NULL; | |
29772 | } | |
29773 | ||
29774 | ||
c370783e | 29775 | static PyObject *_wrap_Menu_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29776 | PyObject *resultobj; |
29777 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29778 | size_t arg2 ; | |
29779 | int arg3 ; | |
29780 | wxString *arg4 = 0 ; | |
29781 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29782 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29783 | int arg6 = (int) wxITEM_NORMAL ; | |
29784 | wxMenuItem *result; | |
b411df4a RD |
29785 | bool temp4 = false ; |
29786 | bool temp5 = false ; | |
d55e5bfc RD |
29787 | PyObject * obj0 = 0 ; |
29788 | PyObject * obj1 = 0 ; | |
29789 | PyObject * obj2 = 0 ; | |
29790 | PyObject * obj3 = 0 ; | |
29791 | PyObject * obj4 = 0 ; | |
29792 | PyObject * obj5 = 0 ; | |
29793 | char *kwnames[] = { | |
29794 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
29795 | }; | |
29796 | ||
29797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29800 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 29801 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29802 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
29803 | if (PyErr_Occurred()) SWIG_fail; |
29804 | { | |
29805 | arg4 = wxString_in_helper(obj3); | |
29806 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 29807 | temp4 = true; |
d55e5bfc RD |
29808 | } |
29809 | if (obj4) { | |
29810 | { | |
29811 | arg5 = wxString_in_helper(obj4); | |
29812 | if (arg5 == NULL) SWIG_fail; | |
b411df4a | 29813 | temp5 = true; |
d55e5bfc RD |
29814 | } |
29815 | } | |
29816 | if (obj5) { | |
c370783e | 29817 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
29818 | if (PyErr_Occurred()) SWIG_fail; |
29819 | } | |
29820 | { | |
29821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29822 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); | |
29823 | ||
29824 | wxPyEndAllowThreads(__tstate); | |
29825 | if (PyErr_Occurred()) SWIG_fail; | |
29826 | } | |
29827 | { | |
412d302d | 29828 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29829 | } |
29830 | { | |
29831 | if (temp4) | |
29832 | delete arg4; | |
29833 | } | |
29834 | { | |
29835 | if (temp5) | |
29836 | delete arg5; | |
29837 | } | |
29838 | return resultobj; | |
29839 | fail: | |
29840 | { | |
29841 | if (temp4) | |
29842 | delete arg4; | |
29843 | } | |
29844 | { | |
29845 | if (temp5) | |
29846 | delete arg5; | |
29847 | } | |
29848 | return NULL; | |
29849 | } | |
29850 | ||
29851 | ||
c370783e | 29852 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29853 | PyObject *resultobj; |
29854 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29855 | size_t arg2 ; | |
29856 | wxMenuItem *result; | |
29857 | PyObject * obj0 = 0 ; | |
29858 | PyObject * obj1 = 0 ; | |
29859 | char *kwnames[] = { | |
29860 | (char *) "self",(char *) "pos", NULL | |
29861 | }; | |
29862 | ||
29863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
29864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29866 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
29867 | if (PyErr_Occurred()) SWIG_fail; |
29868 | { | |
29869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29870 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); | |
29871 | ||
29872 | wxPyEndAllowThreads(__tstate); | |
29873 | if (PyErr_Occurred()) SWIG_fail; | |
29874 | } | |
29875 | { | |
412d302d | 29876 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29877 | } |
29878 | return resultobj; | |
29879 | fail: | |
29880 | return NULL; | |
29881 | } | |
29882 | ||
29883 | ||
c370783e | 29884 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29885 | PyObject *resultobj; |
29886 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29887 | size_t arg2 ; | |
29888 | int arg3 ; | |
29889 | wxString *arg4 = 0 ; | |
29890 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29891 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29892 | wxMenuItem *result; | |
b411df4a RD |
29893 | bool temp4 = false ; |
29894 | bool temp5 = false ; | |
d55e5bfc RD |
29895 | PyObject * obj0 = 0 ; |
29896 | PyObject * obj1 = 0 ; | |
29897 | PyObject * obj2 = 0 ; | |
29898 | PyObject * obj3 = 0 ; | |
29899 | PyObject * obj4 = 0 ; | |
29900 | char *kwnames[] = { | |
29901 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
29902 | }; | |
29903 | ||
29904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29907 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 29908 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29909 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
29910 | if (PyErr_Occurred()) SWIG_fail; |
29911 | { | |
29912 | arg4 = wxString_in_helper(obj3); | |
29913 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 29914 | temp4 = true; |
d55e5bfc RD |
29915 | } |
29916 | if (obj4) { | |
29917 | { | |
29918 | arg5 = wxString_in_helper(obj4); | |
29919 | if (arg5 == NULL) SWIG_fail; | |
b411df4a | 29920 | temp5 = true; |
d55e5bfc RD |
29921 | } |
29922 | } | |
29923 | { | |
29924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29925 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
29926 | ||
29927 | wxPyEndAllowThreads(__tstate); | |
29928 | if (PyErr_Occurred()) SWIG_fail; | |
29929 | } | |
29930 | { | |
412d302d | 29931 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29932 | } |
29933 | { | |
29934 | if (temp4) | |
29935 | delete arg4; | |
29936 | } | |
29937 | { | |
29938 | if (temp5) | |
29939 | delete arg5; | |
29940 | } | |
29941 | return resultobj; | |
29942 | fail: | |
29943 | { | |
29944 | if (temp4) | |
29945 | delete arg4; | |
29946 | } | |
29947 | { | |
29948 | if (temp5) | |
29949 | delete arg5; | |
29950 | } | |
29951 | return NULL; | |
29952 | } | |
29953 | ||
29954 | ||
c370783e | 29955 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29956 | PyObject *resultobj; |
29957 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29958 | size_t arg2 ; | |
29959 | int arg3 ; | |
29960 | wxString *arg4 = 0 ; | |
29961 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29962 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29963 | wxMenuItem *result; | |
b411df4a RD |
29964 | bool temp4 = false ; |
29965 | bool temp5 = false ; | |
d55e5bfc RD |
29966 | PyObject * obj0 = 0 ; |
29967 | PyObject * obj1 = 0 ; | |
29968 | PyObject * obj2 = 0 ; | |
29969 | PyObject * obj3 = 0 ; | |
29970 | PyObject * obj4 = 0 ; | |
29971 | char *kwnames[] = { | |
29972 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
29973 | }; | |
29974 | ||
29975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29978 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 29979 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29980 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
29981 | if (PyErr_Occurred()) SWIG_fail; |
29982 | { | |
29983 | arg4 = wxString_in_helper(obj3); | |
29984 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 29985 | temp4 = true; |
d55e5bfc RD |
29986 | } |
29987 | if (obj4) { | |
29988 | { | |
29989 | arg5 = wxString_in_helper(obj4); | |
29990 | if (arg5 == NULL) SWIG_fail; | |
b411df4a | 29991 | temp5 = true; |
d55e5bfc RD |
29992 | } |
29993 | } | |
29994 | { | |
29995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29996 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
29997 | ||
29998 | wxPyEndAllowThreads(__tstate); | |
29999 | if (PyErr_Occurred()) SWIG_fail; | |
30000 | } | |
30001 | { | |
412d302d | 30002 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30003 | } |
30004 | { | |
30005 | if (temp4) | |
30006 | delete arg4; | |
30007 | } | |
30008 | { | |
30009 | if (temp5) | |
30010 | delete arg5; | |
30011 | } | |
30012 | return resultobj; | |
30013 | fail: | |
30014 | { | |
30015 | if (temp4) | |
30016 | delete arg4; | |
30017 | } | |
30018 | { | |
30019 | if (temp5) | |
30020 | delete arg5; | |
30021 | } | |
30022 | return NULL; | |
30023 | } | |
30024 | ||
30025 | ||
c370783e | 30026 | static PyObject *_wrap_Menu_InsertMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30027 | PyObject *resultobj; |
30028 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30029 | size_t arg2 ; | |
30030 | int arg3 ; | |
30031 | wxString *arg4 = 0 ; | |
30032 | wxMenu *arg5 = (wxMenu *) 0 ; | |
30033 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
30034 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
30035 | wxMenuItem *result; | |
b411df4a RD |
30036 | bool temp4 = false ; |
30037 | bool temp6 = false ; | |
d55e5bfc RD |
30038 | PyObject * obj0 = 0 ; |
30039 | PyObject * obj1 = 0 ; | |
30040 | PyObject * obj2 = 0 ; | |
30041 | PyObject * obj3 = 0 ; | |
30042 | PyObject * obj4 = 0 ; | |
30043 | PyObject * obj5 = 0 ; | |
30044 | char *kwnames[] = { | |
30045 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
30046 | }; | |
30047 | ||
30048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
30049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30051 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 30052 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30053 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
30054 | if (PyErr_Occurred()) SWIG_fail; |
30055 | { | |
30056 | arg4 = wxString_in_helper(obj3); | |
30057 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 30058 | temp4 = true; |
d55e5bfc RD |
30059 | } |
30060 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu, | |
30061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30062 | if (obj5) { | |
30063 | { | |
30064 | arg6 = wxString_in_helper(obj5); | |
30065 | if (arg6 == NULL) SWIG_fail; | |
b411df4a | 30066 | temp6 = true; |
d55e5bfc RD |
30067 | } |
30068 | } | |
30069 | { | |
30070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30071 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); | |
30072 | ||
30073 | wxPyEndAllowThreads(__tstate); | |
30074 | if (PyErr_Occurred()) SWIG_fail; | |
30075 | } | |
30076 | { | |
412d302d | 30077 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30078 | } |
30079 | { | |
30080 | if (temp4) | |
30081 | delete arg4; | |
30082 | } | |
30083 | { | |
30084 | if (temp6) | |
30085 | delete arg6; | |
30086 | } | |
30087 | return resultobj; | |
30088 | fail: | |
30089 | { | |
30090 | if (temp4) | |
30091 | delete arg4; | |
30092 | } | |
30093 | { | |
30094 | if (temp6) | |
30095 | delete arg6; | |
30096 | } | |
30097 | return NULL; | |
30098 | } | |
30099 | ||
30100 | ||
c370783e | 30101 | static PyObject *_wrap_Menu_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30102 | PyObject *resultobj; |
30103 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30104 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30105 | wxMenuItem *result; | |
30106 | PyObject * obj0 = 0 ; | |
30107 | PyObject * obj1 = 0 ; | |
30108 | char *kwnames[] = { | |
30109 | (char *) "self",(char *) "item", NULL | |
30110 | }; | |
30111 | ||
30112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
30113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30115 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30117 | { | |
30118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30119 | result = (wxMenuItem *)(arg1)->Prepend(arg2); | |
30120 | ||
30121 | wxPyEndAllowThreads(__tstate); | |
30122 | if (PyErr_Occurred()) SWIG_fail; | |
30123 | } | |
30124 | { | |
412d302d | 30125 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30126 | } |
30127 | return resultobj; | |
30128 | fail: | |
30129 | return NULL; | |
30130 | } | |
30131 | ||
30132 | ||
c370783e | 30133 | static PyObject *_wrap_Menu_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30134 | PyObject *resultobj; |
30135 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30136 | int arg2 ; | |
30137 | wxString *arg3 = 0 ; | |
30138 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30139 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30140 | int arg5 = (int) wxITEM_NORMAL ; | |
30141 | wxMenuItem *result; | |
b411df4a RD |
30142 | bool temp3 = false ; |
30143 | bool temp4 = false ; | |
d55e5bfc RD |
30144 | PyObject * obj0 = 0 ; |
30145 | PyObject * obj1 = 0 ; | |
30146 | PyObject * obj2 = 0 ; | |
30147 | PyObject * obj3 = 0 ; | |
30148 | PyObject * obj4 = 0 ; | |
30149 | char *kwnames[] = { | |
30150 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
30151 | }; | |
30152 | ||
30153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30156 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30157 | if (PyErr_Occurred()) SWIG_fail; |
30158 | { | |
30159 | arg3 = wxString_in_helper(obj2); | |
30160 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 30161 | temp3 = true; |
d55e5bfc RD |
30162 | } |
30163 | if (obj3) { | |
30164 | { | |
30165 | arg4 = wxString_in_helper(obj3); | |
30166 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 30167 | temp4 = true; |
d55e5bfc RD |
30168 | } |
30169 | } | |
30170 | if (obj4) { | |
c370783e | 30171 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
30172 | if (PyErr_Occurred()) SWIG_fail; |
30173 | } | |
30174 | { | |
30175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30176 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
30177 | ||
30178 | wxPyEndAllowThreads(__tstate); | |
30179 | if (PyErr_Occurred()) SWIG_fail; | |
30180 | } | |
30181 | { | |
412d302d | 30182 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30183 | } |
30184 | { | |
30185 | if (temp3) | |
30186 | delete arg3; | |
30187 | } | |
30188 | { | |
30189 | if (temp4) | |
30190 | delete arg4; | |
30191 | } | |
30192 | return resultobj; | |
30193 | fail: | |
30194 | { | |
30195 | if (temp3) | |
30196 | delete arg3; | |
30197 | } | |
30198 | { | |
30199 | if (temp4) | |
30200 | delete arg4; | |
30201 | } | |
30202 | return NULL; | |
30203 | } | |
30204 | ||
30205 | ||
c370783e | 30206 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30207 | PyObject *resultobj; |
30208 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30209 | wxMenuItem *result; | |
30210 | PyObject * obj0 = 0 ; | |
30211 | char *kwnames[] = { | |
30212 | (char *) "self", NULL | |
30213 | }; | |
30214 | ||
30215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
30216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30218 | { | |
30219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30220 | result = (wxMenuItem *)(arg1)->PrependSeparator(); | |
30221 | ||
30222 | wxPyEndAllowThreads(__tstate); | |
30223 | if (PyErr_Occurred()) SWIG_fail; | |
30224 | } | |
30225 | { | |
412d302d | 30226 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30227 | } |
30228 | return resultobj; | |
30229 | fail: | |
30230 | return NULL; | |
30231 | } | |
30232 | ||
30233 | ||
c370783e | 30234 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30235 | PyObject *resultobj; |
30236 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30237 | int arg2 ; | |
30238 | wxString *arg3 = 0 ; | |
30239 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30240 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30241 | wxMenuItem *result; | |
b411df4a RD |
30242 | bool temp3 = false ; |
30243 | bool temp4 = false ; | |
d55e5bfc RD |
30244 | PyObject * obj0 = 0 ; |
30245 | PyObject * obj1 = 0 ; | |
30246 | PyObject * obj2 = 0 ; | |
30247 | PyObject * obj3 = 0 ; | |
30248 | char *kwnames[] = { | |
30249 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
30250 | }; | |
30251 | ||
30252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30255 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30256 | if (PyErr_Occurred()) SWIG_fail; |
30257 | { | |
30258 | arg3 = wxString_in_helper(obj2); | |
30259 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 30260 | temp3 = true; |
d55e5bfc RD |
30261 | } |
30262 | if (obj3) { | |
30263 | { | |
30264 | arg4 = wxString_in_helper(obj3); | |
30265 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 30266 | temp4 = true; |
d55e5bfc RD |
30267 | } |
30268 | } | |
30269 | { | |
30270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30271 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
30272 | ||
30273 | wxPyEndAllowThreads(__tstate); | |
30274 | if (PyErr_Occurred()) SWIG_fail; | |
30275 | } | |
30276 | { | |
412d302d | 30277 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30278 | } |
30279 | { | |
30280 | if (temp3) | |
30281 | delete arg3; | |
30282 | } | |
30283 | { | |
30284 | if (temp4) | |
30285 | delete arg4; | |
30286 | } | |
30287 | return resultobj; | |
30288 | fail: | |
30289 | { | |
30290 | if (temp3) | |
30291 | delete arg3; | |
30292 | } | |
30293 | { | |
30294 | if (temp4) | |
30295 | delete arg4; | |
30296 | } | |
30297 | return NULL; | |
30298 | } | |
30299 | ||
30300 | ||
c370783e | 30301 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30302 | PyObject *resultobj; |
30303 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30304 | int arg2 ; | |
30305 | wxString *arg3 = 0 ; | |
30306 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30307 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30308 | wxMenuItem *result; | |
b411df4a RD |
30309 | bool temp3 = false ; |
30310 | bool temp4 = false ; | |
d55e5bfc RD |
30311 | PyObject * obj0 = 0 ; |
30312 | PyObject * obj1 = 0 ; | |
30313 | PyObject * obj2 = 0 ; | |
30314 | PyObject * obj3 = 0 ; | |
30315 | char *kwnames[] = { | |
30316 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
30317 | }; | |
30318 | ||
30319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30322 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30323 | if (PyErr_Occurred()) SWIG_fail; |
30324 | { | |
30325 | arg3 = wxString_in_helper(obj2); | |
30326 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 30327 | temp3 = true; |
d55e5bfc RD |
30328 | } |
30329 | if (obj3) { | |
30330 | { | |
30331 | arg4 = wxString_in_helper(obj3); | |
30332 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 30333 | temp4 = true; |
d55e5bfc RD |
30334 | } |
30335 | } | |
30336 | { | |
30337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30338 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
30339 | ||
30340 | wxPyEndAllowThreads(__tstate); | |
30341 | if (PyErr_Occurred()) SWIG_fail; | |
30342 | } | |
30343 | { | |
412d302d | 30344 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30345 | } |
30346 | { | |
30347 | if (temp3) | |
30348 | delete arg3; | |
30349 | } | |
30350 | { | |
30351 | if (temp4) | |
30352 | delete arg4; | |
30353 | } | |
30354 | return resultobj; | |
30355 | fail: | |
30356 | { | |
30357 | if (temp3) | |
30358 | delete arg3; | |
30359 | } | |
30360 | { | |
30361 | if (temp4) | |
30362 | delete arg4; | |
30363 | } | |
30364 | return NULL; | |
30365 | } | |
30366 | ||
30367 | ||
c370783e | 30368 | static PyObject *_wrap_Menu_PrependMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30369 | PyObject *resultobj; |
30370 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30371 | int arg2 ; | |
30372 | wxString *arg3 = 0 ; | |
30373 | wxMenu *arg4 = (wxMenu *) 0 ; | |
30374 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
30375 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
30376 | wxMenuItem *result; | |
b411df4a RD |
30377 | bool temp3 = false ; |
30378 | bool temp5 = false ; | |
d55e5bfc RD |
30379 | PyObject * obj0 = 0 ; |
30380 | PyObject * obj1 = 0 ; | |
30381 | PyObject * obj2 = 0 ; | |
30382 | PyObject * obj3 = 0 ; | |
30383 | PyObject * obj4 = 0 ; | |
30384 | char *kwnames[] = { | |
30385 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
30386 | }; | |
30387 | ||
30388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30391 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30392 | if (PyErr_Occurred()) SWIG_fail; |
30393 | { | |
30394 | arg3 = wxString_in_helper(obj2); | |
30395 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 30396 | temp3 = true; |
d55e5bfc RD |
30397 | } |
30398 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, | |
30399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30400 | if (obj4) { | |
30401 | { | |
30402 | arg5 = wxString_in_helper(obj4); | |
30403 | if (arg5 == NULL) SWIG_fail; | |
b411df4a | 30404 | temp5 = true; |
d55e5bfc RD |
30405 | } |
30406 | } | |
30407 | { | |
30408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30409 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
30410 | ||
30411 | wxPyEndAllowThreads(__tstate); | |
30412 | if (PyErr_Occurred()) SWIG_fail; | |
30413 | } | |
30414 | { | |
412d302d | 30415 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30416 | } |
30417 | { | |
30418 | if (temp3) | |
30419 | delete arg3; | |
30420 | } | |
30421 | { | |
30422 | if (temp5) | |
30423 | delete arg5; | |
30424 | } | |
30425 | return resultobj; | |
30426 | fail: | |
30427 | { | |
30428 | if (temp3) | |
30429 | delete arg3; | |
30430 | } | |
30431 | { | |
30432 | if (temp5) | |
30433 | delete arg5; | |
30434 | } | |
30435 | return NULL; | |
30436 | } | |
30437 | ||
30438 | ||
c370783e | 30439 | static PyObject *_wrap_Menu_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30440 | PyObject *resultobj; |
30441 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30442 | int arg2 ; | |
30443 | wxMenuItem *result; | |
30444 | PyObject * obj0 = 0 ; | |
30445 | PyObject * obj1 = 0 ; | |
30446 | char *kwnames[] = { | |
30447 | (char *) "self",(char *) "id", NULL | |
30448 | }; | |
30449 | ||
30450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; | |
30451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30453 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30454 | if (PyErr_Occurred()) SWIG_fail; |
30455 | { | |
30456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30457 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
30458 | ||
30459 | wxPyEndAllowThreads(__tstate); | |
30460 | if (PyErr_Occurred()) SWIG_fail; | |
30461 | } | |
30462 | { | |
412d302d | 30463 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30464 | } |
30465 | return resultobj; | |
30466 | fail: | |
30467 | return NULL; | |
30468 | } | |
30469 | ||
30470 | ||
c370783e | 30471 | static PyObject *_wrap_Menu_RemoveItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30472 | PyObject *resultobj; |
30473 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30474 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30475 | wxMenuItem *result; | |
30476 | PyObject * obj0 = 0 ; | |
30477 | PyObject * obj1 = 0 ; | |
30478 | char *kwnames[] = { | |
30479 | (char *) "self",(char *) "item", NULL | |
30480 | }; | |
30481 | ||
30482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
30483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30485 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30487 | { | |
30488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30489 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
30490 | ||
30491 | wxPyEndAllowThreads(__tstate); | |
30492 | if (PyErr_Occurred()) SWIG_fail; | |
30493 | } | |
30494 | { | |
412d302d | 30495 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30496 | } |
30497 | return resultobj; | |
30498 | fail: | |
30499 | return NULL; | |
30500 | } | |
30501 | ||
30502 | ||
c370783e | 30503 | static PyObject *_wrap_Menu_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30504 | PyObject *resultobj; |
30505 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30506 | int arg2 ; | |
30507 | bool result; | |
30508 | PyObject * obj0 = 0 ; | |
30509 | PyObject * obj1 = 0 ; | |
30510 | char *kwnames[] = { | |
30511 | (char *) "self",(char *) "id", NULL | |
30512 | }; | |
30513 | ||
30514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; | |
30515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30517 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30518 | if (PyErr_Occurred()) SWIG_fail; |
30519 | { | |
30520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30521 | result = (bool)(arg1)->Delete(arg2); | |
30522 | ||
30523 | wxPyEndAllowThreads(__tstate); | |
30524 | if (PyErr_Occurred()) SWIG_fail; | |
30525 | } | |
30526 | { | |
30527 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30528 | } | |
30529 | return resultobj; | |
30530 | fail: | |
30531 | return NULL; | |
30532 | } | |
30533 | ||
30534 | ||
c370783e | 30535 | static PyObject *_wrap_Menu_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30536 | PyObject *resultobj; |
30537 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30538 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30539 | bool result; | |
30540 | PyObject * obj0 = 0 ; | |
30541 | PyObject * obj1 = 0 ; | |
30542 | char *kwnames[] = { | |
30543 | (char *) "self",(char *) "item", NULL | |
30544 | }; | |
30545 | ||
30546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
30547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30549 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30551 | { | |
30552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30553 | result = (bool)(arg1)->Delete(arg2); | |
30554 | ||
30555 | wxPyEndAllowThreads(__tstate); | |
30556 | if (PyErr_Occurred()) SWIG_fail; | |
30557 | } | |
30558 | { | |
30559 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30560 | } | |
30561 | return resultobj; | |
30562 | fail: | |
30563 | return NULL; | |
30564 | } | |
30565 | ||
30566 | ||
c370783e | 30567 | static PyObject *_wrap_Menu_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30568 | PyObject *resultobj; |
30569 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30570 | PyObject * obj0 = 0 ; | |
30571 | char *kwnames[] = { | |
30572 | (char *) "self", NULL | |
30573 | }; | |
30574 | ||
30575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
30576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30578 | { | |
30579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30580 | wxMenu_Destroy(arg1); | |
30581 | ||
30582 | wxPyEndAllowThreads(__tstate); | |
30583 | if (PyErr_Occurred()) SWIG_fail; | |
30584 | } | |
30585 | Py_INCREF(Py_None); resultobj = Py_None; | |
30586 | return resultobj; | |
30587 | fail: | |
30588 | return NULL; | |
30589 | } | |
30590 | ||
30591 | ||
c370783e | 30592 | static PyObject *_wrap_Menu_DestroyId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30593 | PyObject *resultobj; |
30594 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30595 | int arg2 ; | |
30596 | bool result; | |
30597 | PyObject * obj0 = 0 ; | |
30598 | PyObject * obj1 = 0 ; | |
30599 | char *kwnames[] = { | |
30600 | (char *) "self",(char *) "id", NULL | |
30601 | }; | |
30602 | ||
30603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; | |
30604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30606 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30607 | if (PyErr_Occurred()) SWIG_fail; |
30608 | { | |
30609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30610 | result = (bool)(arg1)->Destroy(arg2); | |
30611 | ||
30612 | wxPyEndAllowThreads(__tstate); | |
30613 | if (PyErr_Occurred()) SWIG_fail; | |
30614 | } | |
30615 | { | |
30616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30617 | } | |
30618 | return resultobj; | |
30619 | fail: | |
30620 | return NULL; | |
30621 | } | |
30622 | ||
30623 | ||
c370783e | 30624 | static PyObject *_wrap_Menu_DestroyItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30625 | PyObject *resultobj; |
30626 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30627 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30628 | bool result; | |
30629 | PyObject * obj0 = 0 ; | |
30630 | PyObject * obj1 = 0 ; | |
30631 | char *kwnames[] = { | |
30632 | (char *) "self",(char *) "item", NULL | |
30633 | }; | |
30634 | ||
30635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
30636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30638 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30640 | { | |
30641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30642 | result = (bool)(arg1)->Destroy(arg2); | |
30643 | ||
30644 | wxPyEndAllowThreads(__tstate); | |
30645 | if (PyErr_Occurred()) SWIG_fail; | |
30646 | } | |
30647 | { | |
30648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30649 | } | |
30650 | return resultobj; | |
30651 | fail: | |
30652 | return NULL; | |
30653 | } | |
30654 | ||
30655 | ||
c370783e | 30656 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30657 | PyObject *resultobj; |
30658 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30659 | size_t result; | |
30660 | PyObject * obj0 = 0 ; | |
30661 | char *kwnames[] = { | |
30662 | (char *) "self", NULL | |
30663 | }; | |
30664 | ||
30665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
30666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30668 | { | |
30669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30670 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
30671 | ||
30672 | wxPyEndAllowThreads(__tstate); | |
30673 | if (PyErr_Occurred()) SWIG_fail; | |
30674 | } | |
c370783e | 30675 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
30676 | return resultobj; |
30677 | fail: | |
30678 | return NULL; | |
30679 | } | |
30680 | ||
30681 | ||
c370783e | 30682 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30683 | PyObject *resultobj; |
30684 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30685 | PyObject *result; | |
30686 | PyObject * obj0 = 0 ; | |
30687 | char *kwnames[] = { | |
30688 | (char *) "self", NULL | |
30689 | }; | |
30690 | ||
30691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
30692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30694 | { | |
30695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30696 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
30697 | ||
30698 | wxPyEndAllowThreads(__tstate); | |
30699 | if (PyErr_Occurred()) SWIG_fail; | |
30700 | } | |
30701 | resultobj = result; | |
30702 | return resultobj; | |
30703 | fail: | |
30704 | return NULL; | |
30705 | } | |
30706 | ||
30707 | ||
c370783e | 30708 | static PyObject *_wrap_Menu_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30709 | PyObject *resultobj; |
30710 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30711 | wxString *arg2 = 0 ; | |
30712 | int result; | |
b411df4a | 30713 | bool temp2 = false ; |
d55e5bfc RD |
30714 | PyObject * obj0 = 0 ; |
30715 | PyObject * obj1 = 0 ; | |
30716 | char *kwnames[] = { | |
30717 | (char *) "self",(char *) "item", NULL | |
30718 | }; | |
30719 | ||
30720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
30721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30723 | { | |
30724 | arg2 = wxString_in_helper(obj1); | |
30725 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 30726 | temp2 = true; |
d55e5bfc RD |
30727 | } |
30728 | { | |
30729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30730 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
30731 | ||
30732 | wxPyEndAllowThreads(__tstate); | |
30733 | if (PyErr_Occurred()) SWIG_fail; | |
30734 | } | |
c370783e | 30735 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
30736 | { |
30737 | if (temp2) | |
30738 | delete arg2; | |
30739 | } | |
30740 | return resultobj; | |
30741 | fail: | |
30742 | { | |
30743 | if (temp2) | |
30744 | delete arg2; | |
30745 | } | |
30746 | return NULL; | |
30747 | } | |
30748 | ||
30749 | ||
c370783e | 30750 | static PyObject *_wrap_Menu_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30751 | PyObject *resultobj; |
30752 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30753 | int arg2 ; | |
30754 | wxMenuItem *result; | |
30755 | PyObject * obj0 = 0 ; | |
30756 | PyObject * obj1 = 0 ; | |
30757 | char *kwnames[] = { | |
30758 | (char *) "self",(char *) "id", NULL | |
30759 | }; | |
30760 | ||
30761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
30762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30764 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30765 | if (PyErr_Occurred()) SWIG_fail; |
30766 | { | |
30767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30768 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
30769 | ||
30770 | wxPyEndAllowThreads(__tstate); | |
30771 | if (PyErr_Occurred()) SWIG_fail; | |
30772 | } | |
30773 | { | |
412d302d | 30774 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30775 | } |
30776 | return resultobj; | |
30777 | fail: | |
30778 | return NULL; | |
30779 | } | |
30780 | ||
30781 | ||
c370783e | 30782 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30783 | PyObject *resultobj; |
30784 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30785 | size_t arg2 ; | |
30786 | wxMenuItem *result; | |
30787 | PyObject * obj0 = 0 ; | |
30788 | PyObject * obj1 = 0 ; | |
30789 | char *kwnames[] = { | |
30790 | (char *) "self",(char *) "position", NULL | |
30791 | }; | |
30792 | ||
30793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
30794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30796 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
30797 | if (PyErr_Occurred()) SWIG_fail; |
30798 | { | |
30799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30800 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
30801 | ||
30802 | wxPyEndAllowThreads(__tstate); | |
30803 | if (PyErr_Occurred()) SWIG_fail; | |
30804 | } | |
30805 | { | |
412d302d | 30806 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30807 | } |
30808 | return resultobj; | |
30809 | fail: | |
30810 | return NULL; | |
30811 | } | |
30812 | ||
30813 | ||
c370783e | 30814 | static PyObject *_wrap_Menu_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30815 | PyObject *resultobj; |
30816 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30817 | int arg2 ; | |
30818 | bool arg3 ; | |
30819 | PyObject * obj0 = 0 ; | |
30820 | PyObject * obj1 = 0 ; | |
30821 | PyObject * obj2 = 0 ; | |
30822 | char *kwnames[] = { | |
30823 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
30824 | }; | |
30825 | ||
30826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30829 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 30830 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30831 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
30832 | if (PyErr_Occurred()) SWIG_fail; |
30833 | { | |
30834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30835 | (arg1)->Enable(arg2,arg3); | |
30836 | ||
30837 | wxPyEndAllowThreads(__tstate); | |
30838 | if (PyErr_Occurred()) SWIG_fail; | |
30839 | } | |
30840 | Py_INCREF(Py_None); resultobj = Py_None; | |
30841 | return resultobj; | |
30842 | fail: | |
30843 | return NULL; | |
30844 | } | |
30845 | ||
30846 | ||
c370783e | 30847 | static PyObject *_wrap_Menu_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30848 | PyObject *resultobj; |
30849 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30850 | int arg2 ; | |
30851 | bool result; | |
30852 | PyObject * obj0 = 0 ; | |
30853 | PyObject * obj1 = 0 ; | |
30854 | char *kwnames[] = { | |
30855 | (char *) "self",(char *) "id", NULL | |
30856 | }; | |
30857 | ||
30858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
30859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30861 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30862 | if (PyErr_Occurred()) SWIG_fail; |
30863 | { | |
30864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30865 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
30866 | ||
30867 | wxPyEndAllowThreads(__tstate); | |
30868 | if (PyErr_Occurred()) SWIG_fail; | |
30869 | } | |
30870 | { | |
30871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30872 | } | |
30873 | return resultobj; | |
30874 | fail: | |
30875 | return NULL; | |
30876 | } | |
30877 | ||
30878 | ||
c370783e | 30879 | static PyObject *_wrap_Menu_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30880 | PyObject *resultobj; |
30881 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30882 | int arg2 ; | |
30883 | bool arg3 ; | |
30884 | PyObject * obj0 = 0 ; | |
30885 | PyObject * obj1 = 0 ; | |
30886 | PyObject * obj2 = 0 ; | |
30887 | char *kwnames[] = { | |
30888 | (char *) "self",(char *) "id",(char *) "check", NULL | |
30889 | }; | |
30890 | ||
30891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30894 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 30895 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30896 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
30897 | if (PyErr_Occurred()) SWIG_fail; |
30898 | { | |
30899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30900 | (arg1)->Check(arg2,arg3); | |
30901 | ||
30902 | wxPyEndAllowThreads(__tstate); | |
30903 | if (PyErr_Occurred()) SWIG_fail; | |
30904 | } | |
30905 | Py_INCREF(Py_None); resultobj = Py_None; | |
30906 | return resultobj; | |
30907 | fail: | |
30908 | return NULL; | |
30909 | } | |
30910 | ||
30911 | ||
c370783e | 30912 | static PyObject *_wrap_Menu_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30913 | PyObject *resultobj; |
30914 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30915 | int arg2 ; | |
30916 | bool result; | |
30917 | PyObject * obj0 = 0 ; | |
30918 | PyObject * obj1 = 0 ; | |
30919 | char *kwnames[] = { | |
30920 | (char *) "self",(char *) "id", NULL | |
30921 | }; | |
30922 | ||
30923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
30924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30926 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30927 | if (PyErr_Occurred()) SWIG_fail; |
30928 | { | |
30929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30930 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
30931 | ||
30932 | wxPyEndAllowThreads(__tstate); | |
30933 | if (PyErr_Occurred()) SWIG_fail; | |
30934 | } | |
30935 | { | |
30936 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30937 | } | |
30938 | return resultobj; | |
30939 | fail: | |
30940 | return NULL; | |
30941 | } | |
30942 | ||
30943 | ||
c370783e | 30944 | static PyObject *_wrap_Menu_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30945 | PyObject *resultobj; |
30946 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30947 | int arg2 ; | |
30948 | wxString *arg3 = 0 ; | |
b411df4a | 30949 | bool temp3 = false ; |
d55e5bfc RD |
30950 | PyObject * obj0 = 0 ; |
30951 | PyObject * obj1 = 0 ; | |
30952 | PyObject * obj2 = 0 ; | |
30953 | char *kwnames[] = { | |
30954 | (char *) "self",(char *) "id",(char *) "label", NULL | |
30955 | }; | |
30956 | ||
30957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30960 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30961 | if (PyErr_Occurred()) SWIG_fail; |
30962 | { | |
30963 | arg3 = wxString_in_helper(obj2); | |
30964 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 30965 | temp3 = true; |
d55e5bfc RD |
30966 | } |
30967 | { | |
30968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30969 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
30970 | ||
30971 | wxPyEndAllowThreads(__tstate); | |
30972 | if (PyErr_Occurred()) SWIG_fail; | |
30973 | } | |
30974 | Py_INCREF(Py_None); resultobj = Py_None; | |
30975 | { | |
30976 | if (temp3) | |
30977 | delete arg3; | |
30978 | } | |
30979 | return resultobj; | |
30980 | fail: | |
30981 | { | |
30982 | if (temp3) | |
30983 | delete arg3; | |
30984 | } | |
30985 | return NULL; | |
30986 | } | |
30987 | ||
30988 | ||
c370783e | 30989 | static PyObject *_wrap_Menu_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30990 | PyObject *resultobj; |
30991 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30992 | int arg2 ; | |
30993 | wxString result; | |
30994 | PyObject * obj0 = 0 ; | |
30995 | PyObject * obj1 = 0 ; | |
30996 | char *kwnames[] = { | |
30997 | (char *) "self",(char *) "id", NULL | |
30998 | }; | |
30999 | ||
31000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
31001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31003 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31004 | if (PyErr_Occurred()) SWIG_fail; |
31005 | { | |
31006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31007 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
31008 | ||
31009 | wxPyEndAllowThreads(__tstate); | |
31010 | if (PyErr_Occurred()) SWIG_fail; | |
31011 | } | |
31012 | { | |
31013 | #if wxUSE_UNICODE | |
31014 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31015 | #else | |
31016 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31017 | #endif | |
31018 | } | |
31019 | return resultobj; | |
31020 | fail: | |
31021 | return NULL; | |
31022 | } | |
31023 | ||
31024 | ||
c370783e | 31025 | static PyObject *_wrap_Menu_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31026 | PyObject *resultobj; |
31027 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31028 | int arg2 ; | |
31029 | wxString *arg3 = 0 ; | |
b411df4a | 31030 | bool temp3 = false ; |
d55e5bfc RD |
31031 | PyObject * obj0 = 0 ; |
31032 | PyObject * obj1 = 0 ; | |
31033 | PyObject * obj2 = 0 ; | |
31034 | char *kwnames[] = { | |
31035 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
31036 | }; | |
31037 | ||
31038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31041 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31042 | if (PyErr_Occurred()) SWIG_fail; |
31043 | { | |
31044 | arg3 = wxString_in_helper(obj2); | |
31045 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 31046 | temp3 = true; |
d55e5bfc RD |
31047 | } |
31048 | { | |
31049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31050 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
31051 | ||
31052 | wxPyEndAllowThreads(__tstate); | |
31053 | if (PyErr_Occurred()) SWIG_fail; | |
31054 | } | |
31055 | Py_INCREF(Py_None); resultobj = Py_None; | |
31056 | { | |
31057 | if (temp3) | |
31058 | delete arg3; | |
31059 | } | |
31060 | return resultobj; | |
31061 | fail: | |
31062 | { | |
31063 | if (temp3) | |
31064 | delete arg3; | |
31065 | } | |
31066 | return NULL; | |
31067 | } | |
31068 | ||
31069 | ||
c370783e | 31070 | static PyObject *_wrap_Menu_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31071 | PyObject *resultobj; |
31072 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31073 | int arg2 ; | |
31074 | wxString result; | |
31075 | PyObject * obj0 = 0 ; | |
31076 | PyObject * obj1 = 0 ; | |
31077 | char *kwnames[] = { | |
31078 | (char *) "self",(char *) "id", NULL | |
31079 | }; | |
31080 | ||
31081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
31082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31084 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31085 | if (PyErr_Occurred()) SWIG_fail; |
31086 | { | |
31087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31088 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
31089 | ||
31090 | wxPyEndAllowThreads(__tstate); | |
31091 | if (PyErr_Occurred()) SWIG_fail; | |
31092 | } | |
31093 | { | |
31094 | #if wxUSE_UNICODE | |
31095 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31096 | #else | |
31097 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31098 | #endif | |
31099 | } | |
31100 | return resultobj; | |
31101 | fail: | |
31102 | return NULL; | |
31103 | } | |
31104 | ||
31105 | ||
c370783e | 31106 | static PyObject *_wrap_Menu_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31107 | PyObject *resultobj; |
31108 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31109 | wxString *arg2 = 0 ; | |
b411df4a | 31110 | bool temp2 = false ; |
d55e5bfc RD |
31111 | PyObject * obj0 = 0 ; |
31112 | PyObject * obj1 = 0 ; | |
31113 | char *kwnames[] = { | |
31114 | (char *) "self",(char *) "title", NULL | |
31115 | }; | |
31116 | ||
31117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
31118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31120 | { | |
31121 | arg2 = wxString_in_helper(obj1); | |
31122 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 31123 | temp2 = true; |
d55e5bfc RD |
31124 | } |
31125 | { | |
31126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31127 | (arg1)->SetTitle((wxString const &)*arg2); | |
31128 | ||
31129 | wxPyEndAllowThreads(__tstate); | |
31130 | if (PyErr_Occurred()) SWIG_fail; | |
31131 | } | |
31132 | Py_INCREF(Py_None); resultobj = Py_None; | |
31133 | { | |
31134 | if (temp2) | |
31135 | delete arg2; | |
31136 | } | |
31137 | return resultobj; | |
31138 | fail: | |
31139 | { | |
31140 | if (temp2) | |
31141 | delete arg2; | |
31142 | } | |
31143 | return NULL; | |
31144 | } | |
31145 | ||
31146 | ||
c370783e | 31147 | static PyObject *_wrap_Menu_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31148 | PyObject *resultobj; |
31149 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31150 | wxString result; | |
31151 | PyObject * obj0 = 0 ; | |
31152 | char *kwnames[] = { | |
31153 | (char *) "self", NULL | |
31154 | }; | |
31155 | ||
31156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
31157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31159 | { | |
31160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31161 | result = ((wxMenu const *)arg1)->GetTitle(); | |
31162 | ||
31163 | wxPyEndAllowThreads(__tstate); | |
31164 | if (PyErr_Occurred()) SWIG_fail; | |
31165 | } | |
31166 | { | |
31167 | #if wxUSE_UNICODE | |
31168 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31169 | #else | |
31170 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31171 | #endif | |
31172 | } | |
31173 | return resultobj; | |
31174 | fail: | |
31175 | return NULL; | |
31176 | } | |
31177 | ||
31178 | ||
c370783e | 31179 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31180 | PyObject *resultobj; |
31181 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31182 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
31183 | PyObject * obj0 = 0 ; | |
31184 | PyObject * obj1 = 0 ; | |
31185 | char *kwnames[] = { | |
31186 | (char *) "self",(char *) "handler", NULL | |
31187 | }; | |
31188 | ||
31189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
31190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31192 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
31193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31194 | { | |
31195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31196 | (arg1)->SetEventHandler(arg2); | |
31197 | ||
31198 | wxPyEndAllowThreads(__tstate); | |
31199 | if (PyErr_Occurred()) SWIG_fail; | |
31200 | } | |
31201 | Py_INCREF(Py_None); resultobj = Py_None; | |
31202 | return resultobj; | |
31203 | fail: | |
31204 | return NULL; | |
31205 | } | |
31206 | ||
31207 | ||
c370783e | 31208 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31209 | PyObject *resultobj; |
31210 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31211 | wxEvtHandler *result; | |
31212 | PyObject * obj0 = 0 ; | |
31213 | char *kwnames[] = { | |
31214 | (char *) "self", NULL | |
31215 | }; | |
31216 | ||
31217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
31218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31220 | { | |
31221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31222 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
31223 | ||
31224 | wxPyEndAllowThreads(__tstate); | |
31225 | if (PyErr_Occurred()) SWIG_fail; | |
31226 | } | |
31227 | { | |
412d302d | 31228 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31229 | } |
31230 | return resultobj; | |
31231 | fail: | |
31232 | return NULL; | |
31233 | } | |
31234 | ||
31235 | ||
c370783e | 31236 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31237 | PyObject *resultobj; |
31238 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31239 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31240 | PyObject * obj0 = 0 ; | |
31241 | PyObject * obj1 = 0 ; | |
31242 | char *kwnames[] = { | |
31243 | (char *) "self",(char *) "win", NULL | |
31244 | }; | |
31245 | ||
31246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
31247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31249 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
31250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31251 | { | |
31252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31253 | (arg1)->SetInvokingWindow(arg2); | |
31254 | ||
31255 | wxPyEndAllowThreads(__tstate); | |
31256 | if (PyErr_Occurred()) SWIG_fail; | |
31257 | } | |
31258 | Py_INCREF(Py_None); resultobj = Py_None; | |
31259 | return resultobj; | |
31260 | fail: | |
31261 | return NULL; | |
31262 | } | |
31263 | ||
31264 | ||
c370783e | 31265 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31266 | PyObject *resultobj; |
31267 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31268 | wxWindow *result; | |
31269 | PyObject * obj0 = 0 ; | |
31270 | char *kwnames[] = { | |
31271 | (char *) "self", NULL | |
31272 | }; | |
31273 | ||
31274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
31275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31277 | { | |
31278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31279 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
31280 | ||
31281 | wxPyEndAllowThreads(__tstate); | |
31282 | if (PyErr_Occurred()) SWIG_fail; | |
31283 | } | |
31284 | { | |
412d302d | 31285 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31286 | } |
31287 | return resultobj; | |
31288 | fail: | |
31289 | return NULL; | |
31290 | } | |
31291 | ||
31292 | ||
c370783e | 31293 | static PyObject *_wrap_Menu_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31294 | PyObject *resultobj; |
31295 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31296 | long result; | |
31297 | PyObject * obj0 = 0 ; | |
31298 | char *kwnames[] = { | |
31299 | (char *) "self", NULL | |
31300 | }; | |
31301 | ||
31302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
31303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31305 | { | |
31306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31307 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
31308 | ||
31309 | wxPyEndAllowThreads(__tstate); | |
31310 | if (PyErr_Occurred()) SWIG_fail; | |
31311 | } | |
c370783e | 31312 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
31313 | return resultobj; |
31314 | fail: | |
31315 | return NULL; | |
31316 | } | |
31317 | ||
31318 | ||
c370783e | 31319 | static PyObject *_wrap_Menu_UpdateUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31320 | PyObject *resultobj; |
31321 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31322 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
31323 | PyObject * obj0 = 0 ; | |
31324 | PyObject * obj1 = 0 ; | |
31325 | char *kwnames[] = { | |
31326 | (char *) "self",(char *) "source", NULL | |
31327 | }; | |
31328 | ||
31329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
31330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31332 | if (obj1) { | |
31333 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
31334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31335 | } | |
31336 | { | |
31337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31338 | (arg1)->UpdateUI(arg2); | |
31339 | ||
31340 | wxPyEndAllowThreads(__tstate); | |
31341 | if (PyErr_Occurred()) SWIG_fail; | |
31342 | } | |
31343 | Py_INCREF(Py_None); resultobj = Py_None; | |
31344 | return resultobj; | |
31345 | fail: | |
31346 | return NULL; | |
31347 | } | |
31348 | ||
31349 | ||
c370783e | 31350 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31351 | PyObject *resultobj; |
31352 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31353 | wxMenuBar *result; | |
31354 | PyObject * obj0 = 0 ; | |
31355 | char *kwnames[] = { | |
31356 | (char *) "self", NULL | |
31357 | }; | |
31358 | ||
31359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
31360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31362 | { | |
31363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31364 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
31365 | ||
31366 | wxPyEndAllowThreads(__tstate); | |
31367 | if (PyErr_Occurred()) SWIG_fail; | |
31368 | } | |
31369 | { | |
412d302d | 31370 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31371 | } |
31372 | return resultobj; | |
31373 | fail: | |
31374 | return NULL; | |
31375 | } | |
31376 | ||
31377 | ||
c370783e | 31378 | static PyObject *_wrap_Menu_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31379 | PyObject *resultobj; |
31380 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31381 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
31382 | PyObject * obj0 = 0 ; | |
31383 | PyObject * obj1 = 0 ; | |
31384 | char *kwnames[] = { | |
31385 | (char *) "self",(char *) "menubar", NULL | |
31386 | }; | |
31387 | ||
31388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
31389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31391 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase, | |
31392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31393 | { | |
31394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31395 | (arg1)->Attach(arg2); | |
31396 | ||
31397 | wxPyEndAllowThreads(__tstate); | |
31398 | if (PyErr_Occurred()) SWIG_fail; | |
31399 | } | |
31400 | Py_INCREF(Py_None); resultobj = Py_None; | |
31401 | return resultobj; | |
31402 | fail: | |
31403 | return NULL; | |
31404 | } | |
31405 | ||
31406 | ||
c370783e | 31407 | static PyObject *_wrap_Menu_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31408 | PyObject *resultobj; |
31409 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31410 | PyObject * obj0 = 0 ; | |
31411 | char *kwnames[] = { | |
31412 | (char *) "self", NULL | |
31413 | }; | |
31414 | ||
31415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
31416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31418 | { | |
31419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31420 | (arg1)->Detach(); | |
31421 | ||
31422 | wxPyEndAllowThreads(__tstate); | |
31423 | if (PyErr_Occurred()) SWIG_fail; | |
31424 | } | |
31425 | Py_INCREF(Py_None); resultobj = Py_None; | |
31426 | return resultobj; | |
31427 | fail: | |
31428 | return NULL; | |
31429 | } | |
31430 | ||
31431 | ||
c370783e | 31432 | static PyObject *_wrap_Menu_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31433 | PyObject *resultobj; |
31434 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31435 | bool result; | |
31436 | PyObject * obj0 = 0 ; | |
31437 | char *kwnames[] = { | |
31438 | (char *) "self", NULL | |
31439 | }; | |
31440 | ||
31441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
31442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31444 | { | |
31445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31446 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
31447 | ||
31448 | wxPyEndAllowThreads(__tstate); | |
31449 | if (PyErr_Occurred()) SWIG_fail; | |
31450 | } | |
31451 | { | |
31452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31453 | } | |
31454 | return resultobj; | |
31455 | fail: | |
31456 | return NULL; | |
31457 | } | |
31458 | ||
31459 | ||
c370783e | 31460 | static PyObject *_wrap_Menu_SetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31461 | PyObject *resultobj; |
31462 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31463 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31464 | PyObject * obj0 = 0 ; | |
31465 | PyObject * obj1 = 0 ; | |
31466 | char *kwnames[] = { | |
31467 | (char *) "self",(char *) "parent", NULL | |
31468 | }; | |
31469 | ||
31470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
31471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31473 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31475 | { | |
31476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31477 | (arg1)->SetParent(arg2); | |
31478 | ||
31479 | wxPyEndAllowThreads(__tstate); | |
31480 | if (PyErr_Occurred()) SWIG_fail; | |
31481 | } | |
31482 | Py_INCREF(Py_None); resultobj = Py_None; | |
31483 | return resultobj; | |
31484 | fail: | |
31485 | return NULL; | |
31486 | } | |
31487 | ||
31488 | ||
c370783e | 31489 | static PyObject *_wrap_Menu_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31490 | PyObject *resultobj; |
31491 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31492 | wxMenu *result; | |
31493 | PyObject * obj0 = 0 ; | |
31494 | char *kwnames[] = { | |
31495 | (char *) "self", NULL | |
31496 | }; | |
31497 | ||
31498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
31499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31501 | { | |
31502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31503 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
31504 | ||
31505 | wxPyEndAllowThreads(__tstate); | |
31506 | if (PyErr_Occurred()) SWIG_fail; | |
31507 | } | |
31508 | { | |
412d302d | 31509 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31510 | } |
31511 | return resultobj; | |
31512 | fail: | |
31513 | return NULL; | |
31514 | } | |
31515 | ||
31516 | ||
c370783e | 31517 | static PyObject * Menu_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31518 | PyObject *obj; |
31519 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31520 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
31521 | Py_INCREF(obj); | |
31522 | return Py_BuildValue((char *)""); | |
31523 | } | |
c370783e | 31524 | static PyObject *_wrap_new_MenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31525 | PyObject *resultobj; |
31526 | long arg1 = (long) 0 ; | |
31527 | wxMenuBar *result; | |
31528 | PyObject * obj0 = 0 ; | |
31529 | char *kwnames[] = { | |
31530 | (char *) "style", NULL | |
31531 | }; | |
31532 | ||
31533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; | |
31534 | if (obj0) { | |
c370783e | 31535 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
31536 | if (PyErr_Occurred()) SWIG_fail; |
31537 | } | |
31538 | { | |
0439c23b | 31539 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31541 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
31542 | ||
31543 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31544 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 31545 | } |
b0f7404b | 31546 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuBar, 1); |
d55e5bfc RD |
31547 | return resultobj; |
31548 | fail: | |
31549 | return NULL; | |
31550 | } | |
31551 | ||
31552 | ||
c370783e | 31553 | static PyObject *_wrap_MenuBar_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31554 | PyObject *resultobj; |
31555 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31556 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31557 | wxString *arg3 = 0 ; | |
31558 | bool result; | |
b411df4a | 31559 | bool temp3 = false ; |
d55e5bfc RD |
31560 | PyObject * obj0 = 0 ; |
31561 | PyObject * obj1 = 0 ; | |
31562 | PyObject * obj2 = 0 ; | |
31563 | char *kwnames[] = { | |
31564 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
31565 | }; | |
31566 | ||
31567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31570 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31572 | { | |
31573 | arg3 = wxString_in_helper(obj2); | |
31574 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 31575 | temp3 = true; |
d55e5bfc RD |
31576 | } |
31577 | { | |
31578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31579 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
31580 | ||
31581 | wxPyEndAllowThreads(__tstate); | |
31582 | if (PyErr_Occurred()) SWIG_fail; | |
31583 | } | |
31584 | { | |
31585 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31586 | } | |
31587 | { | |
31588 | if (temp3) | |
31589 | delete arg3; | |
31590 | } | |
31591 | return resultobj; | |
31592 | fail: | |
31593 | { | |
31594 | if (temp3) | |
31595 | delete arg3; | |
31596 | } | |
31597 | return NULL; | |
31598 | } | |
31599 | ||
31600 | ||
c370783e | 31601 | static PyObject *_wrap_MenuBar_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31602 | PyObject *resultobj; |
31603 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31604 | size_t arg2 ; | |
31605 | wxMenu *arg3 = (wxMenu *) 0 ; | |
31606 | wxString *arg4 = 0 ; | |
31607 | bool result; | |
b411df4a | 31608 | bool temp4 = false ; |
d55e5bfc RD |
31609 | PyObject * obj0 = 0 ; |
31610 | PyObject * obj1 = 0 ; | |
31611 | PyObject * obj2 = 0 ; | |
31612 | PyObject * obj3 = 0 ; | |
31613 | char *kwnames[] = { | |
31614 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
31615 | }; | |
31616 | ||
31617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
31618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31620 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31621 | if (PyErr_Occurred()) SWIG_fail; |
31622 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
31623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31624 | { | |
31625 | arg4 = wxString_in_helper(obj3); | |
31626 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 31627 | temp4 = true; |
d55e5bfc RD |
31628 | } |
31629 | { | |
31630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31631 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
31632 | ||
31633 | wxPyEndAllowThreads(__tstate); | |
31634 | if (PyErr_Occurred()) SWIG_fail; | |
31635 | } | |
31636 | { | |
31637 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31638 | } | |
31639 | { | |
31640 | if (temp4) | |
31641 | delete arg4; | |
31642 | } | |
31643 | return resultobj; | |
31644 | fail: | |
31645 | { | |
31646 | if (temp4) | |
31647 | delete arg4; | |
31648 | } | |
31649 | return NULL; | |
31650 | } | |
31651 | ||
31652 | ||
c370783e | 31653 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31654 | PyObject *resultobj; |
31655 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31656 | size_t result; | |
31657 | PyObject * obj0 = 0 ; | |
31658 | char *kwnames[] = { | |
31659 | (char *) "self", NULL | |
31660 | }; | |
31661 | ||
31662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
31663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31665 | { | |
31666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31667 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
31668 | ||
31669 | wxPyEndAllowThreads(__tstate); | |
31670 | if (PyErr_Occurred()) SWIG_fail; | |
31671 | } | |
c370783e | 31672 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
31673 | return resultobj; |
31674 | fail: | |
31675 | return NULL; | |
31676 | } | |
31677 | ||
31678 | ||
c370783e | 31679 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31680 | PyObject *resultobj; |
31681 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31682 | size_t arg2 ; | |
31683 | wxMenu *result; | |
31684 | PyObject * obj0 = 0 ; | |
31685 | PyObject * obj1 = 0 ; | |
31686 | char *kwnames[] = { | |
31687 | (char *) "self",(char *) "pos", NULL | |
31688 | }; | |
31689 | ||
31690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
31691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31693 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31694 | if (PyErr_Occurred()) SWIG_fail; |
31695 | { | |
31696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31697 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
31698 | ||
31699 | wxPyEndAllowThreads(__tstate); | |
31700 | if (PyErr_Occurred()) SWIG_fail; | |
31701 | } | |
31702 | { | |
412d302d | 31703 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31704 | } |
31705 | return resultobj; | |
31706 | fail: | |
31707 | return NULL; | |
31708 | } | |
31709 | ||
31710 | ||
c370783e | 31711 | static PyObject *_wrap_MenuBar_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31712 | PyObject *resultobj; |
31713 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31714 | size_t arg2 ; | |
31715 | wxMenu *arg3 = (wxMenu *) 0 ; | |
31716 | wxString *arg4 = 0 ; | |
31717 | wxMenu *result; | |
b411df4a | 31718 | bool temp4 = false ; |
d55e5bfc RD |
31719 | PyObject * obj0 = 0 ; |
31720 | PyObject * obj1 = 0 ; | |
31721 | PyObject * obj2 = 0 ; | |
31722 | PyObject * obj3 = 0 ; | |
31723 | char *kwnames[] = { | |
31724 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
31725 | }; | |
31726 | ||
31727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
31728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31730 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31731 | if (PyErr_Occurred()) SWIG_fail; |
31732 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
31733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31734 | { | |
31735 | arg4 = wxString_in_helper(obj3); | |
31736 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 31737 | temp4 = true; |
d55e5bfc RD |
31738 | } |
31739 | { | |
31740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31741 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
31742 | ||
31743 | wxPyEndAllowThreads(__tstate); | |
31744 | if (PyErr_Occurred()) SWIG_fail; | |
31745 | } | |
31746 | { | |
412d302d | 31747 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31748 | } |
31749 | { | |
31750 | if (temp4) | |
31751 | delete arg4; | |
31752 | } | |
31753 | return resultobj; | |
31754 | fail: | |
31755 | { | |
31756 | if (temp4) | |
31757 | delete arg4; | |
31758 | } | |
31759 | return NULL; | |
31760 | } | |
31761 | ||
31762 | ||
c370783e | 31763 | static PyObject *_wrap_MenuBar_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31764 | PyObject *resultobj; |
31765 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31766 | size_t arg2 ; | |
31767 | wxMenu *result; | |
31768 | PyObject * obj0 = 0 ; | |
31769 | PyObject * obj1 = 0 ; | |
31770 | char *kwnames[] = { | |
31771 | (char *) "self",(char *) "pos", NULL | |
31772 | }; | |
31773 | ||
31774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
31775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31777 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31778 | if (PyErr_Occurred()) SWIG_fail; |
31779 | { | |
31780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31781 | result = (wxMenu *)(arg1)->Remove(arg2); | |
31782 | ||
31783 | wxPyEndAllowThreads(__tstate); | |
31784 | if (PyErr_Occurred()) SWIG_fail; | |
31785 | } | |
31786 | { | |
412d302d | 31787 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31788 | } |
31789 | return resultobj; | |
31790 | fail: | |
31791 | return NULL; | |
31792 | } | |
31793 | ||
31794 | ||
c370783e | 31795 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31796 | PyObject *resultobj; |
31797 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31798 | size_t arg2 ; | |
31799 | bool arg3 ; | |
31800 | PyObject * obj0 = 0 ; | |
31801 | PyObject * obj1 = 0 ; | |
31802 | PyObject * obj2 = 0 ; | |
31803 | char *kwnames[] = { | |
31804 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
31805 | }; | |
31806 | ||
31807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31810 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 31811 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 31812 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
31813 | if (PyErr_Occurred()) SWIG_fail; |
31814 | { | |
31815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31816 | (arg1)->EnableTop(arg2,arg3); | |
31817 | ||
31818 | wxPyEndAllowThreads(__tstate); | |
31819 | if (PyErr_Occurred()) SWIG_fail; | |
31820 | } | |
31821 | Py_INCREF(Py_None); resultobj = Py_None; | |
31822 | return resultobj; | |
31823 | fail: | |
31824 | return NULL; | |
31825 | } | |
31826 | ||
31827 | ||
c370783e | 31828 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31829 | PyObject *resultobj; |
31830 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31831 | size_t arg2 ; | |
31832 | bool result; | |
31833 | PyObject * obj0 = 0 ; | |
31834 | PyObject * obj1 = 0 ; | |
31835 | char *kwnames[] = { | |
31836 | (char *) "self",(char *) "pos", NULL | |
31837 | }; | |
31838 | ||
31839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
31840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31842 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31843 | if (PyErr_Occurred()) SWIG_fail; |
31844 | { | |
31845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31846 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
31847 | ||
31848 | wxPyEndAllowThreads(__tstate); | |
31849 | if (PyErr_Occurred()) SWIG_fail; | |
31850 | } | |
31851 | { | |
31852 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31853 | } | |
31854 | return resultobj; | |
31855 | fail: | |
31856 | return NULL; | |
31857 | } | |
31858 | ||
31859 | ||
c370783e | 31860 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31861 | PyObject *resultobj; |
31862 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31863 | size_t arg2 ; | |
31864 | wxString *arg3 = 0 ; | |
b411df4a | 31865 | bool temp3 = false ; |
d55e5bfc RD |
31866 | PyObject * obj0 = 0 ; |
31867 | PyObject * obj1 = 0 ; | |
31868 | PyObject * obj2 = 0 ; | |
31869 | char *kwnames[] = { | |
31870 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
31871 | }; | |
31872 | ||
31873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31876 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31877 | if (PyErr_Occurred()) SWIG_fail; |
31878 | { | |
31879 | arg3 = wxString_in_helper(obj2); | |
31880 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 31881 | temp3 = true; |
d55e5bfc RD |
31882 | } |
31883 | { | |
31884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31885 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
31886 | ||
31887 | wxPyEndAllowThreads(__tstate); | |
31888 | if (PyErr_Occurred()) SWIG_fail; | |
31889 | } | |
31890 | Py_INCREF(Py_None); resultobj = Py_None; | |
31891 | { | |
31892 | if (temp3) | |
31893 | delete arg3; | |
31894 | } | |
31895 | return resultobj; | |
31896 | fail: | |
31897 | { | |
31898 | if (temp3) | |
31899 | delete arg3; | |
31900 | } | |
31901 | return NULL; | |
31902 | } | |
31903 | ||
31904 | ||
c370783e | 31905 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31906 | PyObject *resultobj; |
31907 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31908 | size_t arg2 ; | |
31909 | wxString result; | |
31910 | PyObject * obj0 = 0 ; | |
31911 | PyObject * obj1 = 0 ; | |
31912 | char *kwnames[] = { | |
31913 | (char *) "self",(char *) "pos", NULL | |
31914 | }; | |
31915 | ||
31916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
31917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31919 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31920 | if (PyErr_Occurred()) SWIG_fail; |
31921 | { | |
31922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31923 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
31924 | ||
31925 | wxPyEndAllowThreads(__tstate); | |
31926 | if (PyErr_Occurred()) SWIG_fail; | |
31927 | } | |
31928 | { | |
31929 | #if wxUSE_UNICODE | |
31930 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31931 | #else | |
31932 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31933 | #endif | |
31934 | } | |
31935 | return resultobj; | |
31936 | fail: | |
31937 | return NULL; | |
31938 | } | |
31939 | ||
31940 | ||
c370783e | 31941 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31942 | PyObject *resultobj; |
31943 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31944 | wxString *arg2 = 0 ; | |
31945 | wxString *arg3 = 0 ; | |
31946 | int result; | |
b411df4a RD |
31947 | bool temp2 = false ; |
31948 | bool temp3 = false ; | |
d55e5bfc RD |
31949 | PyObject * obj0 = 0 ; |
31950 | PyObject * obj1 = 0 ; | |
31951 | PyObject * obj2 = 0 ; | |
31952 | char *kwnames[] = { | |
31953 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
31954 | }; | |
31955 | ||
31956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31959 | { | |
31960 | arg2 = wxString_in_helper(obj1); | |
31961 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 31962 | temp2 = true; |
d55e5bfc RD |
31963 | } |
31964 | { | |
31965 | arg3 = wxString_in_helper(obj2); | |
31966 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 31967 | temp3 = true; |
d55e5bfc RD |
31968 | } |
31969 | { | |
31970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31971 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
31972 | ||
31973 | wxPyEndAllowThreads(__tstate); | |
31974 | if (PyErr_Occurred()) SWIG_fail; | |
31975 | } | |
c370783e | 31976 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
31977 | { |
31978 | if (temp2) | |
31979 | delete arg2; | |
31980 | } | |
31981 | { | |
31982 | if (temp3) | |
31983 | delete arg3; | |
31984 | } | |
31985 | return resultobj; | |
31986 | fail: | |
31987 | { | |
31988 | if (temp2) | |
31989 | delete arg2; | |
31990 | } | |
31991 | { | |
31992 | if (temp3) | |
31993 | delete arg3; | |
31994 | } | |
31995 | return NULL; | |
31996 | } | |
31997 | ||
31998 | ||
c370783e | 31999 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32000 | PyObject *resultobj; |
32001 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32002 | int arg2 ; | |
32003 | wxMenuItem *result; | |
32004 | PyObject * obj0 = 0 ; | |
32005 | PyObject * obj1 = 0 ; | |
32006 | char *kwnames[] = { | |
32007 | (char *) "self",(char *) "id", NULL | |
32008 | }; | |
32009 | ||
32010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
32011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32013 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32014 | if (PyErr_Occurred()) SWIG_fail; |
32015 | { | |
32016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32017 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
32018 | ||
32019 | wxPyEndAllowThreads(__tstate); | |
32020 | if (PyErr_Occurred()) SWIG_fail; | |
32021 | } | |
32022 | { | |
412d302d | 32023 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32024 | } |
32025 | return resultobj; | |
32026 | fail: | |
32027 | return NULL; | |
32028 | } | |
32029 | ||
32030 | ||
c370783e | 32031 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32032 | PyObject *resultobj; |
32033 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32034 | wxString *arg2 = 0 ; | |
32035 | int result; | |
b411df4a | 32036 | bool temp2 = false ; |
d55e5bfc RD |
32037 | PyObject * obj0 = 0 ; |
32038 | PyObject * obj1 = 0 ; | |
32039 | char *kwnames[] = { | |
32040 | (char *) "self",(char *) "title", NULL | |
32041 | }; | |
32042 | ||
32043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
32044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32046 | { | |
32047 | arg2 = wxString_in_helper(obj1); | |
32048 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 32049 | temp2 = true; |
d55e5bfc RD |
32050 | } |
32051 | { | |
32052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32053 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
32054 | ||
32055 | wxPyEndAllowThreads(__tstate); | |
32056 | if (PyErr_Occurred()) SWIG_fail; | |
32057 | } | |
c370783e | 32058 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
32059 | { |
32060 | if (temp2) | |
32061 | delete arg2; | |
32062 | } | |
32063 | return resultobj; | |
32064 | fail: | |
32065 | { | |
32066 | if (temp2) | |
32067 | delete arg2; | |
32068 | } | |
32069 | return NULL; | |
32070 | } | |
32071 | ||
32072 | ||
c370783e | 32073 | static PyObject *_wrap_MenuBar_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32074 | PyObject *resultobj; |
32075 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32076 | int arg2 ; | |
32077 | bool arg3 ; | |
32078 | PyObject * obj0 = 0 ; | |
32079 | PyObject * obj1 = 0 ; | |
32080 | PyObject * obj2 = 0 ; | |
32081 | char *kwnames[] = { | |
32082 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
32083 | }; | |
32084 | ||
32085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32088 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 32089 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 32090 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
32091 | if (PyErr_Occurred()) SWIG_fail; |
32092 | { | |
32093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32094 | (arg1)->Enable(arg2,arg3); | |
32095 | ||
32096 | wxPyEndAllowThreads(__tstate); | |
32097 | if (PyErr_Occurred()) SWIG_fail; | |
32098 | } | |
32099 | Py_INCREF(Py_None); resultobj = Py_None; | |
32100 | return resultobj; | |
32101 | fail: | |
32102 | return NULL; | |
32103 | } | |
32104 | ||
32105 | ||
c370783e | 32106 | static PyObject *_wrap_MenuBar_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32107 | PyObject *resultobj; |
32108 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32109 | int arg2 ; | |
32110 | bool arg3 ; | |
32111 | PyObject * obj0 = 0 ; | |
32112 | PyObject * obj1 = 0 ; | |
32113 | PyObject * obj2 = 0 ; | |
32114 | char *kwnames[] = { | |
32115 | (char *) "self",(char *) "id",(char *) "check", NULL | |
32116 | }; | |
32117 | ||
32118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32121 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 32122 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 32123 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
32124 | if (PyErr_Occurred()) SWIG_fail; |
32125 | { | |
32126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32127 | (arg1)->Check(arg2,arg3); | |
32128 | ||
32129 | wxPyEndAllowThreads(__tstate); | |
32130 | if (PyErr_Occurred()) SWIG_fail; | |
32131 | } | |
32132 | Py_INCREF(Py_None); resultobj = Py_None; | |
32133 | return resultobj; | |
32134 | fail: | |
32135 | return NULL; | |
32136 | } | |
32137 | ||
32138 | ||
c370783e | 32139 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32140 | PyObject *resultobj; |
32141 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32142 | int arg2 ; | |
32143 | bool result; | |
32144 | PyObject * obj0 = 0 ; | |
32145 | PyObject * obj1 = 0 ; | |
32146 | char *kwnames[] = { | |
32147 | (char *) "self",(char *) "id", NULL | |
32148 | }; | |
32149 | ||
32150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
32151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32153 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32154 | if (PyErr_Occurred()) SWIG_fail; |
32155 | { | |
32156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32157 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
32158 | ||
32159 | wxPyEndAllowThreads(__tstate); | |
32160 | if (PyErr_Occurred()) SWIG_fail; | |
32161 | } | |
32162 | { | |
32163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32164 | } | |
32165 | return resultobj; | |
32166 | fail: | |
32167 | return NULL; | |
32168 | } | |
32169 | ||
32170 | ||
c370783e | 32171 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32172 | PyObject *resultobj; |
32173 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32174 | int arg2 ; | |
32175 | bool result; | |
32176 | PyObject * obj0 = 0 ; | |
32177 | PyObject * obj1 = 0 ; | |
32178 | char *kwnames[] = { | |
32179 | (char *) "self",(char *) "id", NULL | |
32180 | }; | |
32181 | ||
32182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
32183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32185 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32186 | if (PyErr_Occurred()) SWIG_fail; |
32187 | { | |
32188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32189 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
32190 | ||
32191 | wxPyEndAllowThreads(__tstate); | |
32192 | if (PyErr_Occurred()) SWIG_fail; | |
32193 | } | |
32194 | { | |
32195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32196 | } | |
32197 | return resultobj; | |
32198 | fail: | |
32199 | return NULL; | |
32200 | } | |
32201 | ||
32202 | ||
c370783e | 32203 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32204 | PyObject *resultobj; |
32205 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32206 | int arg2 ; | |
32207 | wxString *arg3 = 0 ; | |
b411df4a | 32208 | bool temp3 = false ; |
d55e5bfc RD |
32209 | PyObject * obj0 = 0 ; |
32210 | PyObject * obj1 = 0 ; | |
32211 | PyObject * obj2 = 0 ; | |
32212 | char *kwnames[] = { | |
32213 | (char *) "self",(char *) "id",(char *) "label", NULL | |
32214 | }; | |
32215 | ||
32216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32219 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32220 | if (PyErr_Occurred()) SWIG_fail; |
32221 | { | |
32222 | arg3 = wxString_in_helper(obj2); | |
32223 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 32224 | temp3 = true; |
d55e5bfc RD |
32225 | } |
32226 | { | |
32227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32228 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
32229 | ||
32230 | wxPyEndAllowThreads(__tstate); | |
32231 | if (PyErr_Occurred()) SWIG_fail; | |
32232 | } | |
32233 | Py_INCREF(Py_None); resultobj = Py_None; | |
32234 | { | |
32235 | if (temp3) | |
32236 | delete arg3; | |
32237 | } | |
32238 | return resultobj; | |
32239 | fail: | |
32240 | { | |
32241 | if (temp3) | |
32242 | delete arg3; | |
32243 | } | |
32244 | return NULL; | |
32245 | } | |
32246 | ||
32247 | ||
c370783e | 32248 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32249 | PyObject *resultobj; |
32250 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32251 | int arg2 ; | |
32252 | wxString result; | |
32253 | PyObject * obj0 = 0 ; | |
32254 | PyObject * obj1 = 0 ; | |
32255 | char *kwnames[] = { | |
32256 | (char *) "self",(char *) "id", NULL | |
32257 | }; | |
32258 | ||
32259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
32260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32262 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32263 | if (PyErr_Occurred()) SWIG_fail; |
32264 | { | |
32265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32266 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
32267 | ||
32268 | wxPyEndAllowThreads(__tstate); | |
32269 | if (PyErr_Occurred()) SWIG_fail; | |
32270 | } | |
32271 | { | |
32272 | #if wxUSE_UNICODE | |
32273 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32274 | #else | |
32275 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32276 | #endif | |
32277 | } | |
32278 | return resultobj; | |
32279 | fail: | |
32280 | return NULL; | |
32281 | } | |
32282 | ||
32283 | ||
c370783e | 32284 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32285 | PyObject *resultobj; |
32286 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32287 | int arg2 ; | |
32288 | wxString *arg3 = 0 ; | |
b411df4a | 32289 | bool temp3 = false ; |
d55e5bfc RD |
32290 | PyObject * obj0 = 0 ; |
32291 | PyObject * obj1 = 0 ; | |
32292 | PyObject * obj2 = 0 ; | |
32293 | char *kwnames[] = { | |
32294 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
32295 | }; | |
32296 | ||
32297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32300 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32301 | if (PyErr_Occurred()) SWIG_fail; |
32302 | { | |
32303 | arg3 = wxString_in_helper(obj2); | |
32304 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 32305 | temp3 = true; |
d55e5bfc RD |
32306 | } |
32307 | { | |
32308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32309 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
32310 | ||
32311 | wxPyEndAllowThreads(__tstate); | |
32312 | if (PyErr_Occurred()) SWIG_fail; | |
32313 | } | |
32314 | Py_INCREF(Py_None); resultobj = Py_None; | |
32315 | { | |
32316 | if (temp3) | |
32317 | delete arg3; | |
32318 | } | |
32319 | return resultobj; | |
32320 | fail: | |
32321 | { | |
32322 | if (temp3) | |
32323 | delete arg3; | |
32324 | } | |
32325 | return NULL; | |
32326 | } | |
32327 | ||
32328 | ||
c370783e | 32329 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32330 | PyObject *resultobj; |
32331 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32332 | int arg2 ; | |
32333 | wxString result; | |
32334 | PyObject * obj0 = 0 ; | |
32335 | PyObject * obj1 = 0 ; | |
32336 | char *kwnames[] = { | |
32337 | (char *) "self",(char *) "id", NULL | |
32338 | }; | |
32339 | ||
32340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
32341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32343 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32344 | if (PyErr_Occurred()) SWIG_fail; |
32345 | { | |
32346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32347 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
32348 | ||
32349 | wxPyEndAllowThreads(__tstate); | |
32350 | if (PyErr_Occurred()) SWIG_fail; | |
32351 | } | |
32352 | { | |
32353 | #if wxUSE_UNICODE | |
32354 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32355 | #else | |
32356 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32357 | #endif | |
32358 | } | |
32359 | return resultobj; | |
32360 | fail: | |
32361 | return NULL; | |
32362 | } | |
32363 | ||
32364 | ||
c370783e | 32365 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32366 | PyObject *resultobj; |
32367 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32368 | wxFrame *result; | |
32369 | PyObject * obj0 = 0 ; | |
32370 | char *kwnames[] = { | |
32371 | (char *) "self", NULL | |
32372 | }; | |
32373 | ||
32374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
32375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32377 | { | |
32378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32379 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
32380 | ||
32381 | wxPyEndAllowThreads(__tstate); | |
32382 | if (PyErr_Occurred()) SWIG_fail; | |
32383 | } | |
32384 | { | |
412d302d | 32385 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32386 | } |
32387 | return resultobj; | |
32388 | fail: | |
32389 | return NULL; | |
32390 | } | |
32391 | ||
32392 | ||
c370783e | 32393 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32394 | PyObject *resultobj; |
32395 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32396 | bool result; | |
32397 | PyObject * obj0 = 0 ; | |
32398 | char *kwnames[] = { | |
32399 | (char *) "self", NULL | |
32400 | }; | |
32401 | ||
32402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
32403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32405 | { | |
32406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32407 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
32408 | ||
32409 | wxPyEndAllowThreads(__tstate); | |
32410 | if (PyErr_Occurred()) SWIG_fail; | |
32411 | } | |
32412 | { | |
32413 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32414 | } | |
32415 | return resultobj; | |
32416 | fail: | |
32417 | return NULL; | |
32418 | } | |
32419 | ||
32420 | ||
c370783e | 32421 | static PyObject *_wrap_MenuBar_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32422 | PyObject *resultobj; |
32423 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32424 | wxFrame *arg2 = (wxFrame *) 0 ; | |
32425 | PyObject * obj0 = 0 ; | |
32426 | PyObject * obj1 = 0 ; | |
32427 | char *kwnames[] = { | |
32428 | (char *) "self",(char *) "frame", NULL | |
32429 | }; | |
32430 | ||
32431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
32432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32434 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
32435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32436 | { | |
32437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32438 | (arg1)->Attach(arg2); | |
32439 | ||
32440 | wxPyEndAllowThreads(__tstate); | |
32441 | if (PyErr_Occurred()) SWIG_fail; | |
32442 | } | |
32443 | Py_INCREF(Py_None); resultobj = Py_None; | |
32444 | return resultobj; | |
32445 | fail: | |
32446 | return NULL; | |
32447 | } | |
32448 | ||
32449 | ||
c370783e | 32450 | static PyObject *_wrap_MenuBar_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32451 | PyObject *resultobj; |
32452 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32453 | PyObject * obj0 = 0 ; | |
32454 | char *kwnames[] = { | |
32455 | (char *) "self", NULL | |
32456 | }; | |
32457 | ||
32458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
32459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32461 | { | |
32462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32463 | (arg1)->Detach(); | |
32464 | ||
32465 | wxPyEndAllowThreads(__tstate); | |
32466 | if (PyErr_Occurred()) SWIG_fail; | |
32467 | } | |
32468 | Py_INCREF(Py_None); resultobj = Py_None; | |
32469 | return resultobj; | |
32470 | fail: | |
32471 | return NULL; | |
32472 | } | |
32473 | ||
32474 | ||
c370783e | 32475 | static PyObject * MenuBar_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
32476 | PyObject *obj; |
32477 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32478 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
32479 | Py_INCREF(obj); | |
32480 | return Py_BuildValue((char *)""); | |
32481 | } | |
c370783e | 32482 | static PyObject *_wrap_new_MenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32483 | PyObject *resultobj; |
32484 | wxMenu *arg1 = (wxMenu *) NULL ; | |
32485 | int arg2 = (int) wxID_ANY ; | |
32486 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
32487 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
32488 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
32489 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
32490 | int arg5 = (int) wxITEM_NORMAL ; | |
32491 | wxMenu *arg6 = (wxMenu *) NULL ; | |
32492 | wxMenuItem *result; | |
b411df4a RD |
32493 | bool temp3 = false ; |
32494 | bool temp4 = false ; | |
d55e5bfc RD |
32495 | PyObject * obj0 = 0 ; |
32496 | PyObject * obj1 = 0 ; | |
32497 | PyObject * obj2 = 0 ; | |
32498 | PyObject * obj3 = 0 ; | |
32499 | PyObject * obj4 = 0 ; | |
32500 | PyObject * obj5 = 0 ; | |
32501 | char *kwnames[] = { | |
32502 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
32503 | }; | |
32504 | ||
32505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
32506 | if (obj0) { | |
32507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
32508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32509 | } | |
32510 | if (obj1) { | |
c370783e | 32511 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32512 | if (PyErr_Occurred()) SWIG_fail; |
32513 | } | |
32514 | if (obj2) { | |
32515 | { | |
32516 | arg3 = wxString_in_helper(obj2); | |
32517 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 32518 | temp3 = true; |
d55e5bfc RD |
32519 | } |
32520 | } | |
32521 | if (obj3) { | |
32522 | { | |
32523 | arg4 = wxString_in_helper(obj3); | |
32524 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 32525 | temp4 = true; |
d55e5bfc RD |
32526 | } |
32527 | } | |
32528 | if (obj4) { | |
c370783e | 32529 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
32530 | if (PyErr_Occurred()) SWIG_fail; |
32531 | } | |
32532 | if (obj5) { | |
32533 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu, | |
32534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32535 | } | |
32536 | { | |
32537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32538 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
32539 | ||
32540 | wxPyEndAllowThreads(__tstate); | |
32541 | if (PyErr_Occurred()) SWIG_fail; | |
32542 | } | |
32543 | { | |
412d302d | 32544 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
32545 | } |
32546 | { | |
32547 | if (temp3) | |
32548 | delete arg3; | |
32549 | } | |
32550 | { | |
32551 | if (temp4) | |
32552 | delete arg4; | |
32553 | } | |
32554 | return resultobj; | |
32555 | fail: | |
32556 | { | |
32557 | if (temp3) | |
32558 | delete arg3; | |
32559 | } | |
32560 | { | |
32561 | if (temp4) | |
32562 | delete arg4; | |
32563 | } | |
32564 | return NULL; | |
32565 | } | |
32566 | ||
32567 | ||
c370783e | 32568 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32569 | PyObject *resultobj; |
32570 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32571 | wxMenu *result; | |
32572 | PyObject * obj0 = 0 ; | |
32573 | char *kwnames[] = { | |
32574 | (char *) "self", NULL | |
32575 | }; | |
32576 | ||
32577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
32578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32580 | { | |
32581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32582 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
32583 | ||
32584 | wxPyEndAllowThreads(__tstate); | |
32585 | if (PyErr_Occurred()) SWIG_fail; | |
32586 | } | |
32587 | { | |
412d302d | 32588 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32589 | } |
32590 | return resultobj; | |
32591 | fail: | |
32592 | return NULL; | |
32593 | } | |
32594 | ||
32595 | ||
c370783e | 32596 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32597 | PyObject *resultobj; |
32598 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32599 | wxMenu *arg2 = (wxMenu *) 0 ; | |
32600 | PyObject * obj0 = 0 ; | |
32601 | PyObject * obj1 = 0 ; | |
32602 | char *kwnames[] = { | |
32603 | (char *) "self",(char *) "menu", NULL | |
32604 | }; | |
32605 | ||
32606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
32607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32609 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
32610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32611 | { | |
32612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32613 | (arg1)->SetMenu(arg2); | |
32614 | ||
32615 | wxPyEndAllowThreads(__tstate); | |
32616 | if (PyErr_Occurred()) SWIG_fail; | |
32617 | } | |
32618 | Py_INCREF(Py_None); resultobj = Py_None; | |
32619 | return resultobj; | |
32620 | fail: | |
32621 | return NULL; | |
32622 | } | |
32623 | ||
32624 | ||
c370783e | 32625 | static PyObject *_wrap_MenuItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32626 | PyObject *resultobj; |
32627 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32628 | int arg2 ; | |
32629 | PyObject * obj0 = 0 ; | |
32630 | PyObject * obj1 = 0 ; | |
32631 | char *kwnames[] = { | |
32632 | (char *) "self",(char *) "id", NULL | |
32633 | }; | |
32634 | ||
32635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
32636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32638 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32639 | if (PyErr_Occurred()) SWIG_fail; |
32640 | { | |
32641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32642 | (arg1)->SetId(arg2); | |
32643 | ||
32644 | wxPyEndAllowThreads(__tstate); | |
32645 | if (PyErr_Occurred()) SWIG_fail; | |
32646 | } | |
32647 | Py_INCREF(Py_None); resultobj = Py_None; | |
32648 | return resultobj; | |
32649 | fail: | |
32650 | return NULL; | |
32651 | } | |
32652 | ||
32653 | ||
c370783e | 32654 | static PyObject *_wrap_MenuItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32655 | PyObject *resultobj; |
32656 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32657 | int result; | |
32658 | PyObject * obj0 = 0 ; | |
32659 | char *kwnames[] = { | |
32660 | (char *) "self", NULL | |
32661 | }; | |
32662 | ||
32663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
32664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32666 | { | |
32667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32668 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
32669 | ||
32670 | wxPyEndAllowThreads(__tstate); | |
32671 | if (PyErr_Occurred()) SWIG_fail; | |
32672 | } | |
c370783e | 32673 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
32674 | return resultobj; |
32675 | fail: | |
32676 | return NULL; | |
32677 | } | |
32678 | ||
32679 | ||
c370783e | 32680 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32681 | PyObject *resultobj; |
32682 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32683 | bool result; | |
32684 | PyObject * obj0 = 0 ; | |
32685 | char *kwnames[] = { | |
32686 | (char *) "self", NULL | |
32687 | }; | |
32688 | ||
32689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
32690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32692 | { | |
32693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32694 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
32695 | ||
32696 | wxPyEndAllowThreads(__tstate); | |
32697 | if (PyErr_Occurred()) SWIG_fail; | |
32698 | } | |
32699 | { | |
32700 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32701 | } | |
32702 | return resultobj; | |
32703 | fail: | |
32704 | return NULL; | |
32705 | } | |
32706 | ||
32707 | ||
c370783e | 32708 | static PyObject *_wrap_MenuItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32709 | PyObject *resultobj; |
32710 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32711 | wxString *arg2 = 0 ; | |
b411df4a | 32712 | bool temp2 = false ; |
d55e5bfc RD |
32713 | PyObject * obj0 = 0 ; |
32714 | PyObject * obj1 = 0 ; | |
32715 | char *kwnames[] = { | |
32716 | (char *) "self",(char *) "str", NULL | |
32717 | }; | |
32718 | ||
32719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
32720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32722 | { | |
32723 | arg2 = wxString_in_helper(obj1); | |
32724 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 32725 | temp2 = true; |
d55e5bfc RD |
32726 | } |
32727 | { | |
32728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32729 | (arg1)->SetText((wxString const &)*arg2); | |
32730 | ||
32731 | wxPyEndAllowThreads(__tstate); | |
32732 | if (PyErr_Occurred()) SWIG_fail; | |
32733 | } | |
32734 | Py_INCREF(Py_None); resultobj = Py_None; | |
32735 | { | |
32736 | if (temp2) | |
32737 | delete arg2; | |
32738 | } | |
32739 | return resultobj; | |
32740 | fail: | |
32741 | { | |
32742 | if (temp2) | |
32743 | delete arg2; | |
32744 | } | |
32745 | return NULL; | |
32746 | } | |
32747 | ||
32748 | ||
c370783e | 32749 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32750 | PyObject *resultobj; |
32751 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32752 | wxString result; | |
32753 | PyObject * obj0 = 0 ; | |
32754 | char *kwnames[] = { | |
32755 | (char *) "self", NULL | |
32756 | }; | |
32757 | ||
32758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
32759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32761 | { | |
32762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32763 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
32764 | ||
32765 | wxPyEndAllowThreads(__tstate); | |
32766 | if (PyErr_Occurred()) SWIG_fail; | |
32767 | } | |
32768 | { | |
32769 | #if wxUSE_UNICODE | |
32770 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32771 | #else | |
32772 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32773 | #endif | |
32774 | } | |
32775 | return resultobj; | |
32776 | fail: | |
32777 | return NULL; | |
32778 | } | |
32779 | ||
32780 | ||
c370783e | 32781 | static PyObject *_wrap_MenuItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32782 | PyObject *resultobj; |
32783 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32784 | wxString *result; | |
32785 | PyObject * obj0 = 0 ; | |
32786 | char *kwnames[] = { | |
32787 | (char *) "self", NULL | |
32788 | }; | |
32789 | ||
32790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
32791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32793 | { | |
32794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32795 | { | |
32796 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
32797 | result = (wxString *) &_result_ref; | |
32798 | } | |
32799 | ||
32800 | wxPyEndAllowThreads(__tstate); | |
32801 | if (PyErr_Occurred()) SWIG_fail; | |
32802 | } | |
32803 | { | |
32804 | #if wxUSE_UNICODE | |
32805 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
32806 | #else | |
32807 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
32808 | #endif | |
32809 | } | |
32810 | return resultobj; | |
32811 | fail: | |
32812 | return NULL; | |
32813 | } | |
32814 | ||
32815 | ||
c370783e | 32816 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32817 | PyObject *resultobj; |
32818 | wxString *arg1 = 0 ; | |
32819 | wxString result; | |
b411df4a | 32820 | bool temp1 = false ; |
d55e5bfc RD |
32821 | PyObject * obj0 = 0 ; |
32822 | char *kwnames[] = { | |
32823 | (char *) "text", NULL | |
32824 | }; | |
32825 | ||
32826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
32827 | { | |
32828 | arg1 = wxString_in_helper(obj0); | |
32829 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 32830 | temp1 = true; |
d55e5bfc RD |
32831 | } |
32832 | { | |
32833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32834 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
32835 | ||
32836 | wxPyEndAllowThreads(__tstate); | |
32837 | if (PyErr_Occurred()) SWIG_fail; | |
32838 | } | |
32839 | { | |
32840 | #if wxUSE_UNICODE | |
32841 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32842 | #else | |
32843 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32844 | #endif | |
32845 | } | |
32846 | { | |
32847 | if (temp1) | |
32848 | delete arg1; | |
32849 | } | |
32850 | return resultobj; | |
32851 | fail: | |
32852 | { | |
32853 | if (temp1) | |
32854 | delete arg1; | |
32855 | } | |
32856 | return NULL; | |
32857 | } | |
32858 | ||
32859 | ||
c370783e | 32860 | static PyObject *_wrap_MenuItem_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32861 | PyObject *resultobj; |
32862 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32863 | int result; | |
32864 | PyObject * obj0 = 0 ; | |
32865 | char *kwnames[] = { | |
32866 | (char *) "self", NULL | |
32867 | }; | |
32868 | ||
32869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
32870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32872 | { | |
32873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32874 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
32875 | ||
32876 | wxPyEndAllowThreads(__tstate); | |
32877 | if (PyErr_Occurred()) SWIG_fail; | |
32878 | } | |
c370783e | 32879 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
32880 | return resultobj; |
32881 | fail: | |
32882 | return NULL; | |
32883 | } | |
32884 | ||
32885 | ||
c370783e | 32886 | static PyObject *_wrap_MenuItem_SetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32887 | PyObject *resultobj; |
32888 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32889 | int arg2 ; | |
32890 | PyObject * obj0 = 0 ; | |
32891 | PyObject * obj1 = 0 ; | |
32892 | char *kwnames[] = { | |
32893 | (char *) "self",(char *) "kind", NULL | |
32894 | }; | |
32895 | ||
32896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail; | |
32897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32899 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32900 | if (PyErr_Occurred()) SWIG_fail; |
32901 | { | |
32902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32903 | (arg1)->SetKind((wxItemKind )arg2); | |
32904 | ||
32905 | wxPyEndAllowThreads(__tstate); | |
32906 | if (PyErr_Occurred()) SWIG_fail; | |
32907 | } | |
32908 | Py_INCREF(Py_None); resultobj = Py_None; | |
32909 | return resultobj; | |
32910 | fail: | |
32911 | return NULL; | |
32912 | } | |
32913 | ||
32914 | ||
c370783e | 32915 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32916 | PyObject *resultobj; |
32917 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32918 | bool arg2 ; | |
32919 | PyObject * obj0 = 0 ; | |
32920 | PyObject * obj1 = 0 ; | |
32921 | char *kwnames[] = { | |
32922 | (char *) "self",(char *) "checkable", NULL | |
32923 | }; | |
32924 | ||
32925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
32926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32928 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
32929 | if (PyErr_Occurred()) SWIG_fail; |
32930 | { | |
32931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32932 | (arg1)->SetCheckable(arg2); | |
32933 | ||
32934 | wxPyEndAllowThreads(__tstate); | |
32935 | if (PyErr_Occurred()) SWIG_fail; | |
32936 | } | |
32937 | Py_INCREF(Py_None); resultobj = Py_None; | |
32938 | return resultobj; | |
32939 | fail: | |
32940 | return NULL; | |
32941 | } | |
32942 | ||
32943 | ||
c370783e | 32944 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32945 | PyObject *resultobj; |
32946 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32947 | bool result; | |
32948 | PyObject * obj0 = 0 ; | |
32949 | char *kwnames[] = { | |
32950 | (char *) "self", NULL | |
32951 | }; | |
32952 | ||
32953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
32954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32956 | { | |
32957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32958 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
32959 | ||
32960 | wxPyEndAllowThreads(__tstate); | |
32961 | if (PyErr_Occurred()) SWIG_fail; | |
32962 | } | |
32963 | { | |
32964 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32965 | } | |
32966 | return resultobj; | |
32967 | fail: | |
32968 | return NULL; | |
32969 | } | |
32970 | ||
32971 | ||
c370783e | 32972 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32973 | PyObject *resultobj; |
32974 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32975 | bool result; | |
32976 | PyObject * obj0 = 0 ; | |
32977 | char *kwnames[] = { | |
32978 | (char *) "self", NULL | |
32979 | }; | |
32980 | ||
32981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
32982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32984 | { | |
32985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32986 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
32987 | ||
32988 | wxPyEndAllowThreads(__tstate); | |
32989 | if (PyErr_Occurred()) SWIG_fail; | |
32990 | } | |
32991 | { | |
32992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32993 | } | |
32994 | return resultobj; | |
32995 | fail: | |
32996 | return NULL; | |
32997 | } | |
32998 | ||
32999 | ||
c370783e | 33000 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33001 | PyObject *resultobj; |
33002 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33003 | wxMenu *arg2 = (wxMenu *) 0 ; | |
33004 | PyObject * obj0 = 0 ; | |
33005 | PyObject * obj1 = 0 ; | |
33006 | char *kwnames[] = { | |
33007 | (char *) "self",(char *) "menu", NULL | |
33008 | }; | |
33009 | ||
33010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
33011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33013 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
33014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33015 | { | |
33016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33017 | (arg1)->SetSubMenu(arg2); | |
33018 | ||
33019 | wxPyEndAllowThreads(__tstate); | |
33020 | if (PyErr_Occurred()) SWIG_fail; | |
33021 | } | |
33022 | Py_INCREF(Py_None); resultobj = Py_None; | |
33023 | return resultobj; | |
33024 | fail: | |
33025 | return NULL; | |
33026 | } | |
33027 | ||
33028 | ||
c370783e | 33029 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33030 | PyObject *resultobj; |
33031 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33032 | wxMenu *result; | |
33033 | PyObject * obj0 = 0 ; | |
33034 | char *kwnames[] = { | |
33035 | (char *) "self", NULL | |
33036 | }; | |
33037 | ||
33038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
33039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33041 | { | |
33042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33043 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
33044 | ||
33045 | wxPyEndAllowThreads(__tstate); | |
33046 | if (PyErr_Occurred()) SWIG_fail; | |
33047 | } | |
33048 | { | |
412d302d | 33049 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33050 | } |
33051 | return resultobj; | |
33052 | fail: | |
33053 | return NULL; | |
33054 | } | |
33055 | ||
33056 | ||
c370783e | 33057 | static PyObject *_wrap_MenuItem_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33058 | PyObject *resultobj; |
33059 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
b411df4a | 33060 | bool arg2 = (bool) true ; |
d55e5bfc RD |
33061 | PyObject * obj0 = 0 ; |
33062 | PyObject * obj1 = 0 ; | |
33063 | char *kwnames[] = { | |
33064 | (char *) "self",(char *) "enable", NULL | |
33065 | }; | |
33066 | ||
33067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
33068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33070 | if (obj1) { | |
c370783e | 33071 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
33072 | if (PyErr_Occurred()) SWIG_fail; |
33073 | } | |
33074 | { | |
33075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33076 | (arg1)->Enable(arg2); | |
33077 | ||
33078 | wxPyEndAllowThreads(__tstate); | |
33079 | if (PyErr_Occurred()) SWIG_fail; | |
33080 | } | |
33081 | Py_INCREF(Py_None); resultobj = Py_None; | |
33082 | return resultobj; | |
33083 | fail: | |
33084 | return NULL; | |
33085 | } | |
33086 | ||
33087 | ||
c370783e | 33088 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33089 | PyObject *resultobj; |
33090 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33091 | bool result; | |
33092 | PyObject * obj0 = 0 ; | |
33093 | char *kwnames[] = { | |
33094 | (char *) "self", NULL | |
33095 | }; | |
33096 | ||
33097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
33098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33100 | { | |
33101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33102 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
33103 | ||
33104 | wxPyEndAllowThreads(__tstate); | |
33105 | if (PyErr_Occurred()) SWIG_fail; | |
33106 | } | |
33107 | { | |
33108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33109 | } | |
33110 | return resultobj; | |
33111 | fail: | |
33112 | return NULL; | |
33113 | } | |
33114 | ||
33115 | ||
c370783e | 33116 | static PyObject *_wrap_MenuItem_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33117 | PyObject *resultobj; |
33118 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
b411df4a | 33119 | bool arg2 = (bool) true ; |
d55e5bfc RD |
33120 | PyObject * obj0 = 0 ; |
33121 | PyObject * obj1 = 0 ; | |
33122 | char *kwnames[] = { | |
33123 | (char *) "self",(char *) "check", NULL | |
33124 | }; | |
33125 | ||
33126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
33127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33129 | if (obj1) { | |
c370783e | 33130 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
33131 | if (PyErr_Occurred()) SWIG_fail; |
33132 | } | |
33133 | { | |
33134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33135 | (arg1)->Check(arg2); | |
33136 | ||
33137 | wxPyEndAllowThreads(__tstate); | |
33138 | if (PyErr_Occurred()) SWIG_fail; | |
33139 | } | |
33140 | Py_INCREF(Py_None); resultobj = Py_None; | |
33141 | return resultobj; | |
33142 | fail: | |
33143 | return NULL; | |
33144 | } | |
33145 | ||
33146 | ||
c370783e | 33147 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33148 | PyObject *resultobj; |
33149 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33150 | bool result; | |
33151 | PyObject * obj0 = 0 ; | |
33152 | char *kwnames[] = { | |
33153 | (char *) "self", NULL | |
33154 | }; | |
33155 | ||
33156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
33157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33159 | { | |
33160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33161 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
33162 | ||
33163 | wxPyEndAllowThreads(__tstate); | |
33164 | if (PyErr_Occurred()) SWIG_fail; | |
33165 | } | |
33166 | { | |
33167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33168 | } | |
33169 | return resultobj; | |
33170 | fail: | |
33171 | return NULL; | |
33172 | } | |
33173 | ||
33174 | ||
c370783e | 33175 | static PyObject *_wrap_MenuItem_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33176 | PyObject *resultobj; |
33177 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33178 | PyObject * obj0 = 0 ; | |
33179 | char *kwnames[] = { | |
33180 | (char *) "self", NULL | |
33181 | }; | |
33182 | ||
33183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
33184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33186 | { | |
33187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33188 | (arg1)->Toggle(); | |
33189 | ||
33190 | wxPyEndAllowThreads(__tstate); | |
33191 | if (PyErr_Occurred()) SWIG_fail; | |
33192 | } | |
33193 | Py_INCREF(Py_None); resultobj = Py_None; | |
33194 | return resultobj; | |
33195 | fail: | |
33196 | return NULL; | |
33197 | } | |
33198 | ||
33199 | ||
c370783e | 33200 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33201 | PyObject *resultobj; |
33202 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33203 | wxString *arg2 = 0 ; | |
b411df4a | 33204 | bool temp2 = false ; |
d55e5bfc RD |
33205 | PyObject * obj0 = 0 ; |
33206 | PyObject * obj1 = 0 ; | |
33207 | char *kwnames[] = { | |
33208 | (char *) "self",(char *) "str", NULL | |
33209 | }; | |
33210 | ||
33211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
33212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33214 | { | |
33215 | arg2 = wxString_in_helper(obj1); | |
33216 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 33217 | temp2 = true; |
d55e5bfc RD |
33218 | } |
33219 | { | |
33220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33221 | (arg1)->SetHelp((wxString const &)*arg2); | |
33222 | ||
33223 | wxPyEndAllowThreads(__tstate); | |
33224 | if (PyErr_Occurred()) SWIG_fail; | |
33225 | } | |
33226 | Py_INCREF(Py_None); resultobj = Py_None; | |
33227 | { | |
33228 | if (temp2) | |
33229 | delete arg2; | |
33230 | } | |
33231 | return resultobj; | |
33232 | fail: | |
33233 | { | |
33234 | if (temp2) | |
33235 | delete arg2; | |
33236 | } | |
33237 | return NULL; | |
33238 | } | |
33239 | ||
33240 | ||
c370783e | 33241 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33242 | PyObject *resultobj; |
33243 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33244 | wxString *result; | |
33245 | PyObject * obj0 = 0 ; | |
33246 | char *kwnames[] = { | |
33247 | (char *) "self", NULL | |
33248 | }; | |
33249 | ||
33250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
33251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33253 | { | |
33254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33255 | { | |
33256 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
33257 | result = (wxString *) &_result_ref; | |
33258 | } | |
33259 | ||
33260 | wxPyEndAllowThreads(__tstate); | |
33261 | if (PyErr_Occurred()) SWIG_fail; | |
33262 | } | |
33263 | { | |
33264 | #if wxUSE_UNICODE | |
33265 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33266 | #else | |
33267 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33268 | #endif | |
33269 | } | |
33270 | return resultobj; | |
33271 | fail: | |
33272 | return NULL; | |
33273 | } | |
33274 | ||
33275 | ||
c370783e | 33276 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33277 | PyObject *resultobj; |
33278 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33279 | wxAcceleratorEntry *result; | |
33280 | PyObject * obj0 = 0 ; | |
33281 | char *kwnames[] = { | |
33282 | (char *) "self", NULL | |
33283 | }; | |
33284 | ||
33285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
33286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33288 | { | |
33289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33290 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
33291 | ||
33292 | wxPyEndAllowThreads(__tstate); | |
33293 | if (PyErr_Occurred()) SWIG_fail; | |
33294 | } | |
33295 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
33296 | return resultobj; | |
33297 | fail: | |
33298 | return NULL; | |
33299 | } | |
33300 | ||
33301 | ||
c370783e | 33302 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33303 | PyObject *resultobj; |
33304 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33305 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
33306 | PyObject * obj0 = 0 ; | |
33307 | PyObject * obj1 = 0 ; | |
33308 | char *kwnames[] = { | |
33309 | (char *) "self",(char *) "accel", NULL | |
33310 | }; | |
33311 | ||
33312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
33313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33315 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry, | |
33316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33317 | { | |
33318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33319 | (arg1)->SetAccel(arg2); | |
33320 | ||
33321 | wxPyEndAllowThreads(__tstate); | |
33322 | if (PyErr_Occurred()) SWIG_fail; | |
33323 | } | |
33324 | Py_INCREF(Py_None); resultobj = Py_None; | |
33325 | return resultobj; | |
33326 | fail: | |
33327 | return NULL; | |
33328 | } | |
33329 | ||
33330 | ||
c370783e | 33331 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33332 | PyObject *resultobj; |
33333 | int result; | |
33334 | char *kwnames[] = { | |
33335 | NULL | |
33336 | }; | |
33337 | ||
33338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
33339 | { | |
33340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33341 | result = (int)MenuItem_GetDefaultMarginWidth(); | |
33342 | ||
33343 | wxPyEndAllowThreads(__tstate); | |
33344 | if (PyErr_Occurred()) SWIG_fail; | |
33345 | } | |
c370783e | 33346 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
33347 | return resultobj; |
33348 | fail: | |
33349 | return NULL; | |
33350 | } | |
33351 | ||
33352 | ||
c370783e | 33353 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33354 | PyObject *resultobj; |
33355 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33356 | wxBitmap *arg2 = 0 ; | |
33357 | PyObject * obj0 = 0 ; | |
33358 | PyObject * obj1 = 0 ; | |
33359 | char *kwnames[] = { | |
33360 | (char *) "self",(char *) "bitmap", NULL | |
33361 | }; | |
33362 | ||
33363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
33364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33366 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
33367 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33368 | SWIG_fail; | |
33369 | if (arg2 == NULL) { | |
33370 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33371 | SWIG_fail; | |
33372 | } | |
33373 | { | |
33374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33375 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
33376 | ||
33377 | wxPyEndAllowThreads(__tstate); | |
33378 | if (PyErr_Occurred()) SWIG_fail; | |
33379 | } | |
33380 | Py_INCREF(Py_None); resultobj = Py_None; | |
33381 | return resultobj; | |
33382 | fail: | |
33383 | return NULL; | |
33384 | } | |
33385 | ||
33386 | ||
c370783e | 33387 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33388 | PyObject *resultobj; |
33389 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33390 | wxBitmap *result; | |
33391 | PyObject * obj0 = 0 ; | |
33392 | char *kwnames[] = { | |
33393 | (char *) "self", NULL | |
33394 | }; | |
33395 | ||
33396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
33397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33399 | { | |
33400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33401 | { | |
33402 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
33403 | result = (wxBitmap *) &_result_ref; | |
33404 | } | |
33405 | ||
33406 | wxPyEndAllowThreads(__tstate); | |
33407 | if (PyErr_Occurred()) SWIG_fail; | |
33408 | } | |
33409 | { | |
33410 | wxBitmap* resultptr = new wxBitmap(*result); | |
33411 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
33412 | } | |
33413 | return resultobj; | |
33414 | fail: | |
33415 | return NULL; | |
33416 | } | |
33417 | ||
33418 | ||
c370783e | 33419 | static PyObject * MenuItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
33420 | PyObject *obj; |
33421 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33422 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
33423 | Py_INCREF(obj); | |
33424 | return Py_BuildValue((char *)""); | |
33425 | } | |
c370783e | 33426 | static int _wrap_ControlNameStr_set(PyObject *) { |
d55e5bfc RD |
33427 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); |
33428 | return 1; | |
33429 | } | |
33430 | ||
33431 | ||
33432 | static PyObject *_wrap_ControlNameStr_get() { | |
33433 | PyObject *pyobj; | |
33434 | ||
33435 | { | |
33436 | #if wxUSE_UNICODE | |
33437 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
33438 | #else | |
33439 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
33440 | #endif | |
33441 | } | |
33442 | return pyobj; | |
33443 | } | |
33444 | ||
33445 | ||
c370783e | 33446 | static PyObject *_wrap_new_Control(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33447 | PyObject *resultobj; |
33448 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 | 33449 | int arg2 = (int) -1 ; |
d55e5bfc RD |
33450 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
33451 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33452 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
33453 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
33454 | long arg5 = (long) 0 ; | |
33455 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
33456 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
33457 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
33458 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
33459 | wxControl *result; | |
33460 | wxPoint temp3 ; | |
33461 | wxSize temp4 ; | |
b411df4a | 33462 | bool temp7 = false ; |
d55e5bfc RD |
33463 | PyObject * obj0 = 0 ; |
33464 | PyObject * obj1 = 0 ; | |
33465 | PyObject * obj2 = 0 ; | |
33466 | PyObject * obj3 = 0 ; | |
33467 | PyObject * obj4 = 0 ; | |
33468 | PyObject * obj5 = 0 ; | |
33469 | PyObject * obj6 = 0 ; | |
33470 | char *kwnames[] = { | |
33471 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33472 | }; | |
33473 | ||
bfddbb17 | 33474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
33475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
33476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 33477 | if (obj1) { |
c370783e | 33478 | arg2 = (int)SWIG_As_int(obj1); |
bfddbb17 RD |
33479 | if (PyErr_Occurred()) SWIG_fail; |
33480 | } | |
d55e5bfc RD |
33481 | if (obj2) { |
33482 | { | |
33483 | arg3 = &temp3; | |
33484 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
33485 | } | |
33486 | } | |
33487 | if (obj3) { | |
33488 | { | |
33489 | arg4 = &temp4; | |
33490 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
33491 | } | |
33492 | } | |
33493 | if (obj4) { | |
c370783e | 33494 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
33495 | if (PyErr_Occurred()) SWIG_fail; |
33496 | } | |
33497 | if (obj5) { | |
33498 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
33499 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33500 | SWIG_fail; | |
33501 | if (arg6 == NULL) { | |
33502 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33503 | SWIG_fail; | |
33504 | } | |
33505 | } | |
33506 | if (obj6) { | |
33507 | { | |
33508 | arg7 = wxString_in_helper(obj6); | |
33509 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 33510 | temp7 = true; |
d55e5bfc RD |
33511 | } |
33512 | } | |
33513 | { | |
0439c23b | 33514 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
33515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33516 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
33517 | ||
33518 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33519 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 33520 | } |
b0f7404b | 33521 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d55e5bfc RD |
33522 | { |
33523 | if (temp7) | |
33524 | delete arg7; | |
33525 | } | |
33526 | return resultobj; | |
33527 | fail: | |
33528 | { | |
33529 | if (temp7) | |
33530 | delete arg7; | |
33531 | } | |
33532 | return NULL; | |
33533 | } | |
33534 | ||
33535 | ||
c370783e | 33536 | static PyObject *_wrap_new_PreControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33537 | PyObject *resultobj; |
33538 | wxControl *result; | |
33539 | char *kwnames[] = { | |
33540 | NULL | |
33541 | }; | |
33542 | ||
33543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
33544 | { | |
0439c23b | 33545 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
33546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33547 | result = (wxControl *)new wxControl(); | |
33548 | ||
33549 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33550 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 33551 | } |
b0f7404b | 33552 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d55e5bfc RD |
33553 | return resultobj; |
33554 | fail: | |
33555 | return NULL; | |
33556 | } | |
33557 | ||
33558 | ||
c370783e | 33559 | static PyObject *_wrap_Control_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33560 | PyObject *resultobj; |
33561 | wxControl *arg1 = (wxControl *) 0 ; | |
33562 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 33563 | int arg3 = (int) -1 ; |
d55e5bfc RD |
33564 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
33565 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
33566 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
33567 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
33568 | long arg6 = (long) 0 ; | |
33569 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
33570 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
33571 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
33572 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
33573 | bool result; | |
33574 | wxPoint temp4 ; | |
33575 | wxSize temp5 ; | |
b411df4a | 33576 | bool temp8 = false ; |
d55e5bfc RD |
33577 | PyObject * obj0 = 0 ; |
33578 | PyObject * obj1 = 0 ; | |
33579 | PyObject * obj2 = 0 ; | |
33580 | PyObject * obj3 = 0 ; | |
33581 | PyObject * obj4 = 0 ; | |
33582 | PyObject * obj5 = 0 ; | |
33583 | PyObject * obj6 = 0 ; | |
33584 | PyObject * obj7 = 0 ; | |
33585 | char *kwnames[] = { | |
33586 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33587 | }; | |
33588 | ||
bfddbb17 | 33589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
33590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
33591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33592 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
33593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 33594 | if (obj2) { |
c370783e | 33595 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
33596 | if (PyErr_Occurred()) SWIG_fail; |
33597 | } | |
d55e5bfc RD |
33598 | if (obj3) { |
33599 | { | |
33600 | arg4 = &temp4; | |
33601 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
33602 | } | |
33603 | } | |
33604 | if (obj4) { | |
33605 | { | |
33606 | arg5 = &temp5; | |
33607 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
33608 | } | |
33609 | } | |
33610 | if (obj5) { | |
c370783e | 33611 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
33612 | if (PyErr_Occurred()) SWIG_fail; |
33613 | } | |
33614 | if (obj6) { | |
33615 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
33616 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33617 | SWIG_fail; | |
33618 | if (arg7 == NULL) { | |
33619 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33620 | SWIG_fail; | |
33621 | } | |
33622 | } | |
33623 | if (obj7) { | |
33624 | { | |
33625 | arg8 = wxString_in_helper(obj7); | |
33626 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 33627 | temp8 = true; |
d55e5bfc RD |
33628 | } |
33629 | } | |
33630 | { | |
33631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33632 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
33633 | ||
33634 | wxPyEndAllowThreads(__tstate); | |
33635 | if (PyErr_Occurred()) SWIG_fail; | |
33636 | } | |
33637 | { | |
33638 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33639 | } | |
33640 | { | |
33641 | if (temp8) | |
33642 | delete arg8; | |
33643 | } | |
33644 | return resultobj; | |
33645 | fail: | |
33646 | { | |
33647 | if (temp8) | |
33648 | delete arg8; | |
33649 | } | |
33650 | return NULL; | |
33651 | } | |
33652 | ||
33653 | ||
c370783e | 33654 | static PyObject *_wrap_Control_Command(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33655 | PyObject *resultobj; |
33656 | wxControl *arg1 = (wxControl *) 0 ; | |
33657 | wxCommandEvent *arg2 = 0 ; | |
33658 | PyObject * obj0 = 0 ; | |
33659 | PyObject * obj1 = 0 ; | |
33660 | char *kwnames[] = { | |
33661 | (char *) "self",(char *) "event", NULL | |
33662 | }; | |
33663 | ||
33664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
33665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
33666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33667 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent, | |
33668 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33669 | SWIG_fail; | |
33670 | if (arg2 == NULL) { | |
33671 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33672 | SWIG_fail; | |
33673 | } | |
33674 | { | |
33675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33676 | (arg1)->Command(*arg2); | |
33677 | ||
33678 | wxPyEndAllowThreads(__tstate); | |
33679 | if (PyErr_Occurred()) SWIG_fail; | |
33680 | } | |
33681 | Py_INCREF(Py_None); resultobj = Py_None; | |
33682 | return resultobj; | |
33683 | fail: | |
33684 | return NULL; | |
33685 | } | |
33686 | ||
33687 | ||
c370783e | 33688 | static PyObject *_wrap_Control_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33689 | PyObject *resultobj; |
33690 | wxControl *arg1 = (wxControl *) 0 ; | |
33691 | wxString result; | |
33692 | PyObject * obj0 = 0 ; | |
33693 | char *kwnames[] = { | |
33694 | (char *) "self", NULL | |
33695 | }; | |
33696 | ||
33697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
33698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
33699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33700 | { | |
33701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33702 | result = (arg1)->GetLabel(); | |
33703 | ||
33704 | wxPyEndAllowThreads(__tstate); | |
33705 | if (PyErr_Occurred()) SWIG_fail; | |
33706 | } | |
33707 | { | |
33708 | #if wxUSE_UNICODE | |
33709 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33710 | #else | |
33711 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33712 | #endif | |
33713 | } | |
33714 | return resultobj; | |
33715 | fail: | |
33716 | return NULL; | |
33717 | } | |
33718 | ||
33719 | ||
c370783e | 33720 | static PyObject *_wrap_Control_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33721 | PyObject *resultobj; |
33722 | wxControl *arg1 = (wxControl *) 0 ; | |
33723 | wxString *arg2 = 0 ; | |
b411df4a | 33724 | bool temp2 = false ; |
d55e5bfc RD |
33725 | PyObject * obj0 = 0 ; |
33726 | PyObject * obj1 = 0 ; | |
33727 | char *kwnames[] = { | |
33728 | (char *) "self",(char *) "label", NULL | |
33729 | }; | |
33730 | ||
33731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
33732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
33733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33734 | { | |
33735 | arg2 = wxString_in_helper(obj1); | |
33736 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 33737 | temp2 = true; |
d55e5bfc RD |
33738 | } |
33739 | { | |
33740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33741 | (arg1)->SetLabel((wxString const &)*arg2); | |
33742 | ||
33743 | wxPyEndAllowThreads(__tstate); | |
33744 | if (PyErr_Occurred()) SWIG_fail; | |
33745 | } | |
33746 | Py_INCREF(Py_None); resultobj = Py_None; | |
33747 | { | |
33748 | if (temp2) | |
33749 | delete arg2; | |
33750 | } | |
33751 | return resultobj; | |
33752 | fail: | |
33753 | { | |
33754 | if (temp2) | |
33755 | delete arg2; | |
33756 | } | |
33757 | return NULL; | |
33758 | } | |
33759 | ||
33760 | ||
c370783e | 33761 | static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33762 | PyObject *resultobj; |
33763 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
33764 | wxVisualAttributes result; | |
33765 | PyObject * obj0 = 0 ; | |
33766 | char *kwnames[] = { | |
33767 | (char *) "variant", NULL | |
33768 | }; | |
33769 | ||
33770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
33771 | if (obj0) { | |
c370783e | 33772 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
33773 | if (PyErr_Occurred()) SWIG_fail; |
33774 | } | |
33775 | { | |
110da5b0 | 33776 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
33777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33778 | result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
33779 | ||
33780 | wxPyEndAllowThreads(__tstate); | |
a001823c | 33781 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
33782 | } |
33783 | { | |
33784 | wxVisualAttributes * resultptr; | |
33785 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
33786 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
33787 | } | |
33788 | return resultobj; | |
33789 | fail: | |
33790 | return NULL; | |
33791 | } | |
33792 | ||
33793 | ||
c370783e | 33794 | static PyObject * Control_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
33795 | PyObject *obj; |
33796 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33797 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
33798 | Py_INCREF(obj); | |
33799 | return Py_BuildValue((char *)""); | |
33800 | } | |
c370783e | 33801 | static PyObject *_wrap_ItemContainer_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33802 | PyObject *resultobj; |
33803 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33804 | wxString *arg2 = 0 ; | |
33805 | PyObject *arg3 = (PyObject *) NULL ; | |
33806 | int result; | |
b411df4a | 33807 | bool temp2 = false ; |
d55e5bfc RD |
33808 | PyObject * obj0 = 0 ; |
33809 | PyObject * obj1 = 0 ; | |
33810 | PyObject * obj2 = 0 ; | |
33811 | char *kwnames[] = { | |
33812 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
33813 | }; | |
33814 | ||
33815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33818 | { | |
33819 | arg2 = wxString_in_helper(obj1); | |
33820 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 33821 | temp2 = true; |
d55e5bfc RD |
33822 | } |
33823 | if (obj2) { | |
33824 | arg3 = obj2; | |
33825 | } | |
33826 | { | |
33827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33828 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
33829 | ||
33830 | wxPyEndAllowThreads(__tstate); | |
33831 | if (PyErr_Occurred()) SWIG_fail; | |
33832 | } | |
c370783e | 33833 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
33834 | { |
33835 | if (temp2) | |
33836 | delete arg2; | |
33837 | } | |
33838 | return resultobj; | |
33839 | fail: | |
33840 | { | |
33841 | if (temp2) | |
33842 | delete arg2; | |
33843 | } | |
33844 | return NULL; | |
33845 | } | |
33846 | ||
33847 | ||
c370783e | 33848 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33849 | PyObject *resultobj; |
33850 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33851 | wxArrayString *arg2 = 0 ; | |
b411df4a | 33852 | bool temp2 = false ; |
d55e5bfc RD |
33853 | PyObject * obj0 = 0 ; |
33854 | PyObject * obj1 = 0 ; | |
33855 | char *kwnames[] = { | |
33856 | (char *) "self",(char *) "strings", NULL | |
33857 | }; | |
33858 | ||
33859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
33860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33862 | { | |
33863 | if (! PySequence_Check(obj1)) { | |
33864 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
33865 | SWIG_fail; | |
33866 | } | |
33867 | arg2 = new wxArrayString; | |
b411df4a | 33868 | temp2 = true; |
d55e5bfc RD |
33869 | int i, len=PySequence_Length(obj1); |
33870 | for (i=0; i<len; i++) { | |
33871 | PyObject* item = PySequence_GetItem(obj1, i); | |
33872 | #if wxUSE_UNICODE | |
33873 | PyObject* str = PyObject_Unicode(item); | |
33874 | #else | |
33875 | PyObject* str = PyObject_Str(item); | |
33876 | #endif | |
33877 | if (PyErr_Occurred()) SWIG_fail; | |
33878 | arg2->Add(Py2wxString(str)); | |
33879 | Py_DECREF(item); | |
33880 | Py_DECREF(str); | |
33881 | } | |
33882 | } | |
33883 | { | |
33884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33885 | (arg1)->Append((wxArrayString const &)*arg2); | |
33886 | ||
33887 | wxPyEndAllowThreads(__tstate); | |
33888 | if (PyErr_Occurred()) SWIG_fail; | |
33889 | } | |
33890 | Py_INCREF(Py_None); resultobj = Py_None; | |
33891 | { | |
33892 | if (temp2) delete arg2; | |
33893 | } | |
33894 | return resultobj; | |
33895 | fail: | |
33896 | { | |
33897 | if (temp2) delete arg2; | |
33898 | } | |
33899 | return NULL; | |
33900 | } | |
33901 | ||
33902 | ||
c370783e | 33903 | static PyObject *_wrap_ItemContainer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33904 | PyObject *resultobj; |
33905 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33906 | wxString *arg2 = 0 ; | |
33907 | int arg3 ; | |
33908 | PyObject *arg4 = (PyObject *) NULL ; | |
33909 | int result; | |
b411df4a | 33910 | bool temp2 = false ; |
d55e5bfc RD |
33911 | PyObject * obj0 = 0 ; |
33912 | PyObject * obj1 = 0 ; | |
33913 | PyObject * obj2 = 0 ; | |
33914 | PyObject * obj3 = 0 ; | |
33915 | char *kwnames[] = { | |
33916 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
33917 | }; | |
33918 | ||
33919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
33920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33922 | { | |
33923 | arg2 = wxString_in_helper(obj1); | |
33924 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 33925 | temp2 = true; |
d55e5bfc | 33926 | } |
c370783e | 33927 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
33928 | if (PyErr_Occurred()) SWIG_fail; |
33929 | if (obj3) { | |
33930 | arg4 = obj3; | |
33931 | } | |
33932 | { | |
33933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33934 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
33935 | ||
33936 | wxPyEndAllowThreads(__tstate); | |
33937 | if (PyErr_Occurred()) SWIG_fail; | |
33938 | } | |
c370783e | 33939 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
33940 | { |
33941 | if (temp2) | |
33942 | delete arg2; | |
33943 | } | |
33944 | return resultobj; | |
33945 | fail: | |
33946 | { | |
33947 | if (temp2) | |
33948 | delete arg2; | |
33949 | } | |
33950 | return NULL; | |
33951 | } | |
33952 | ||
33953 | ||
c370783e | 33954 | static PyObject *_wrap_ItemContainer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33955 | PyObject *resultobj; |
33956 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33957 | PyObject * obj0 = 0 ; | |
33958 | char *kwnames[] = { | |
33959 | (char *) "self", NULL | |
33960 | }; | |
33961 | ||
33962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
33963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33965 | { | |
33966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33967 | (arg1)->Clear(); | |
33968 | ||
33969 | wxPyEndAllowThreads(__tstate); | |
33970 | if (PyErr_Occurred()) SWIG_fail; | |
33971 | } | |
33972 | Py_INCREF(Py_None); resultobj = Py_None; | |
33973 | return resultobj; | |
33974 | fail: | |
33975 | return NULL; | |
33976 | } | |
33977 | ||
33978 | ||
c370783e | 33979 | static PyObject *_wrap_ItemContainer_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33980 | PyObject *resultobj; |
33981 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33982 | int arg2 ; | |
33983 | PyObject * obj0 = 0 ; | |
33984 | PyObject * obj1 = 0 ; | |
33985 | char *kwnames[] = { | |
33986 | (char *) "self",(char *) "n", NULL | |
33987 | }; | |
33988 | ||
33989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; | |
33990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 33992 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
33993 | if (PyErr_Occurred()) SWIG_fail; |
33994 | { | |
33995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33996 | (arg1)->Delete(arg2); | |
33997 | ||
33998 | wxPyEndAllowThreads(__tstate); | |
33999 | if (PyErr_Occurred()) SWIG_fail; | |
34000 | } | |
34001 | Py_INCREF(Py_None); resultobj = Py_None; | |
34002 | return resultobj; | |
34003 | fail: | |
34004 | return NULL; | |
34005 | } | |
34006 | ||
34007 | ||
c370783e | 34008 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34009 | PyObject *resultobj; |
34010 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34011 | int result; | |
34012 | PyObject * obj0 = 0 ; | |
34013 | char *kwnames[] = { | |
34014 | (char *) "self", NULL | |
34015 | }; | |
34016 | ||
34017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
34018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34020 | { | |
34021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34022 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
34023 | ||
34024 | wxPyEndAllowThreads(__tstate); | |
34025 | if (PyErr_Occurred()) SWIG_fail; | |
34026 | } | |
c370783e | 34027 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34028 | return resultobj; |
34029 | fail: | |
34030 | return NULL; | |
34031 | } | |
34032 | ||
34033 | ||
c370783e | 34034 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34035 | PyObject *resultobj; |
34036 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34037 | bool result; | |
34038 | PyObject * obj0 = 0 ; | |
34039 | char *kwnames[] = { | |
34040 | (char *) "self", NULL | |
34041 | }; | |
34042 | ||
34043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
34044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34046 | { | |
34047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34048 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
34049 | ||
34050 | wxPyEndAllowThreads(__tstate); | |
34051 | if (PyErr_Occurred()) SWIG_fail; | |
34052 | } | |
34053 | { | |
34054 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34055 | } | |
34056 | return resultobj; | |
34057 | fail: | |
34058 | return NULL; | |
34059 | } | |
34060 | ||
34061 | ||
c370783e | 34062 | static PyObject *_wrap_ItemContainer_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34063 | PyObject *resultobj; |
34064 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34065 | int arg2 ; | |
34066 | wxString result; | |
34067 | PyObject * obj0 = 0 ; | |
34068 | PyObject * obj1 = 0 ; | |
34069 | char *kwnames[] = { | |
34070 | (char *) "self",(char *) "n", NULL | |
34071 | }; | |
34072 | ||
34073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; | |
34074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34076 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34077 | if (PyErr_Occurred()) SWIG_fail; |
34078 | { | |
34079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34080 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
34081 | ||
34082 | wxPyEndAllowThreads(__tstate); | |
34083 | if (PyErr_Occurred()) SWIG_fail; | |
34084 | } | |
34085 | { | |
34086 | #if wxUSE_UNICODE | |
34087 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34088 | #else | |
34089 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34090 | #endif | |
34091 | } | |
34092 | return resultobj; | |
34093 | fail: | |
34094 | return NULL; | |
34095 | } | |
34096 | ||
34097 | ||
c370783e | 34098 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34099 | PyObject *resultobj; |
34100 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34101 | wxArrayString result; | |
34102 | PyObject * obj0 = 0 ; | |
34103 | char *kwnames[] = { | |
34104 | (char *) "self", NULL | |
34105 | }; | |
34106 | ||
34107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
34108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34110 | { | |
34111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34112 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
34113 | ||
34114 | wxPyEndAllowThreads(__tstate); | |
34115 | if (PyErr_Occurred()) SWIG_fail; | |
34116 | } | |
34117 | { | |
34118 | resultobj = wxArrayString2PyList_helper(result); | |
34119 | } | |
34120 | return resultobj; | |
34121 | fail: | |
34122 | return NULL; | |
34123 | } | |
34124 | ||
34125 | ||
c370783e | 34126 | static PyObject *_wrap_ItemContainer_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34127 | PyObject *resultobj; |
34128 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34129 | int arg2 ; | |
34130 | wxString *arg3 = 0 ; | |
b411df4a | 34131 | bool temp3 = false ; |
d55e5bfc RD |
34132 | PyObject * obj0 = 0 ; |
34133 | PyObject * obj1 = 0 ; | |
34134 | PyObject * obj2 = 0 ; | |
34135 | char *kwnames[] = { | |
34136 | (char *) "self",(char *) "n",(char *) "s", NULL | |
34137 | }; | |
34138 | ||
34139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34142 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34143 | if (PyErr_Occurred()) SWIG_fail; |
34144 | { | |
34145 | arg3 = wxString_in_helper(obj2); | |
34146 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 34147 | temp3 = true; |
d55e5bfc RD |
34148 | } |
34149 | { | |
34150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34151 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
34152 | ||
34153 | wxPyEndAllowThreads(__tstate); | |
34154 | if (PyErr_Occurred()) SWIG_fail; | |
34155 | } | |
34156 | Py_INCREF(Py_None); resultobj = Py_None; | |
34157 | { | |
34158 | if (temp3) | |
34159 | delete arg3; | |
34160 | } | |
34161 | return resultobj; | |
34162 | fail: | |
34163 | { | |
34164 | if (temp3) | |
34165 | delete arg3; | |
34166 | } | |
34167 | return NULL; | |
34168 | } | |
34169 | ||
34170 | ||
c370783e | 34171 | static PyObject *_wrap_ItemContainer_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34172 | PyObject *resultobj; |
34173 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34174 | wxString *arg2 = 0 ; | |
34175 | int result; | |
b411df4a | 34176 | bool temp2 = false ; |
d55e5bfc RD |
34177 | PyObject * obj0 = 0 ; |
34178 | PyObject * obj1 = 0 ; | |
34179 | char *kwnames[] = { | |
34180 | (char *) "self",(char *) "s", NULL | |
34181 | }; | |
34182 | ||
34183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
34184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34186 | { | |
34187 | arg2 = wxString_in_helper(obj1); | |
34188 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 34189 | temp2 = true; |
d55e5bfc RD |
34190 | } |
34191 | { | |
34192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34193 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
34194 | ||
34195 | wxPyEndAllowThreads(__tstate); | |
34196 | if (PyErr_Occurred()) SWIG_fail; | |
34197 | } | |
c370783e | 34198 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34199 | { |
34200 | if (temp2) | |
34201 | delete arg2; | |
34202 | } | |
34203 | return resultobj; | |
34204 | fail: | |
34205 | { | |
34206 | if (temp2) | |
34207 | delete arg2; | |
34208 | } | |
34209 | return NULL; | |
34210 | } | |
34211 | ||
34212 | ||
c370783e | 34213 | static PyObject *_wrap_ItemContainer_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34214 | PyObject *resultobj; |
34215 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34216 | int arg2 ; | |
34217 | PyObject * obj0 = 0 ; | |
34218 | PyObject * obj1 = 0 ; | |
34219 | char *kwnames[] = { | |
34220 | (char *) "self",(char *) "n", NULL | |
34221 | }; | |
34222 | ||
34223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; | |
34224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34226 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34227 | if (PyErr_Occurred()) SWIG_fail; |
34228 | { | |
34229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34230 | (arg1)->Select(arg2); | |
34231 | ||
34232 | wxPyEndAllowThreads(__tstate); | |
34233 | if (PyErr_Occurred()) SWIG_fail; | |
34234 | } | |
34235 | Py_INCREF(Py_None); resultobj = Py_None; | |
34236 | return resultobj; | |
34237 | fail: | |
34238 | return NULL; | |
34239 | } | |
34240 | ||
34241 | ||
c370783e | 34242 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34243 | PyObject *resultobj; |
34244 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34245 | int result; | |
34246 | PyObject * obj0 = 0 ; | |
34247 | char *kwnames[] = { | |
34248 | (char *) "self", NULL | |
34249 | }; | |
34250 | ||
34251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
34252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34254 | { | |
34255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34256 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
34257 | ||
34258 | wxPyEndAllowThreads(__tstate); | |
34259 | if (PyErr_Occurred()) SWIG_fail; | |
34260 | } | |
c370783e | 34261 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34262 | return resultobj; |
34263 | fail: | |
34264 | return NULL; | |
34265 | } | |
34266 | ||
34267 | ||
c370783e | 34268 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34269 | PyObject *resultobj; |
34270 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34271 | wxString result; | |
34272 | PyObject * obj0 = 0 ; | |
34273 | char *kwnames[] = { | |
34274 | (char *) "self", NULL | |
34275 | }; | |
34276 | ||
34277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
34278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34280 | { | |
34281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34282 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
34283 | ||
34284 | wxPyEndAllowThreads(__tstate); | |
34285 | if (PyErr_Occurred()) SWIG_fail; | |
34286 | } | |
34287 | { | |
34288 | #if wxUSE_UNICODE | |
34289 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34290 | #else | |
34291 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34292 | #endif | |
34293 | } | |
34294 | return resultobj; | |
34295 | fail: | |
34296 | return NULL; | |
34297 | } | |
34298 | ||
34299 | ||
c370783e | 34300 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34301 | PyObject *resultobj; |
34302 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34303 | int arg2 ; | |
34304 | PyObject *result; | |
34305 | PyObject * obj0 = 0 ; | |
34306 | PyObject * obj1 = 0 ; | |
34307 | char *kwnames[] = { | |
34308 | (char *) "self",(char *) "n", NULL | |
34309 | }; | |
34310 | ||
34311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; | |
34312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34314 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34315 | if (PyErr_Occurred()) SWIG_fail; |
34316 | { | |
34317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34318 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
34319 | ||
34320 | wxPyEndAllowThreads(__tstate); | |
34321 | if (PyErr_Occurred()) SWIG_fail; | |
34322 | } | |
34323 | resultobj = result; | |
34324 | return resultobj; | |
34325 | fail: | |
34326 | return NULL; | |
34327 | } | |
34328 | ||
34329 | ||
c370783e | 34330 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34331 | PyObject *resultobj; |
34332 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34333 | int arg2 ; | |
34334 | PyObject *arg3 = (PyObject *) 0 ; | |
34335 | PyObject * obj0 = 0 ; | |
34336 | PyObject * obj1 = 0 ; | |
34337 | PyObject * obj2 = 0 ; | |
34338 | char *kwnames[] = { | |
34339 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
34340 | }; | |
34341 | ||
34342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34345 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34346 | if (PyErr_Occurred()) SWIG_fail; |
34347 | arg3 = obj2; | |
34348 | { | |
34349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34350 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
34351 | ||
34352 | wxPyEndAllowThreads(__tstate); | |
34353 | if (PyErr_Occurred()) SWIG_fail; | |
34354 | } | |
34355 | Py_INCREF(Py_None); resultobj = Py_None; | |
34356 | return resultobj; | |
34357 | fail: | |
34358 | return NULL; | |
34359 | } | |
34360 | ||
34361 | ||
c370783e | 34362 | static PyObject * ItemContainer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
34363 | PyObject *obj; |
34364 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34365 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
34366 | Py_INCREF(obj); | |
34367 | return Py_BuildValue((char *)""); | |
34368 | } | |
c370783e | 34369 | static PyObject * ControlWithItems_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
34370 | PyObject *obj; |
34371 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34372 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
34373 | Py_INCREF(obj); | |
34374 | return Py_BuildValue((char *)""); | |
34375 | } | |
c370783e | 34376 | static PyObject *_wrap_new_SizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34377 | PyObject *resultobj; |
34378 | wxSizerItem *result; | |
34379 | char *kwnames[] = { | |
34380 | NULL | |
34381 | }; | |
34382 | ||
34383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
34384 | { | |
34385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34386 | result = (wxSizerItem *)new wxSizerItem(); | |
34387 | ||
34388 | wxPyEndAllowThreads(__tstate); | |
34389 | if (PyErr_Occurred()) SWIG_fail; | |
34390 | } | |
34391 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34392 | return resultobj; | |
34393 | fail: | |
34394 | return NULL; | |
34395 | } | |
34396 | ||
34397 | ||
c370783e | 34398 | static PyObject *_wrap_new_SizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 34399 | PyObject *resultobj; |
bfddbb17 | 34400 | wxWindow *arg1 = (wxWindow *) 0 ; |
d55e5bfc RD |
34401 | int arg2 ; |
34402 | int arg3 ; | |
34403 | int arg4 ; | |
bfddbb17 | 34404 | PyObject *arg5 = (PyObject *) NULL ; |
d55e5bfc RD |
34405 | wxSizerItem *result; |
34406 | PyObject * obj0 = 0 ; | |
34407 | PyObject * obj1 = 0 ; | |
34408 | PyObject * obj2 = 0 ; | |
34409 | PyObject * obj3 = 0 ; | |
34410 | PyObject * obj4 = 0 ; | |
d55e5bfc | 34411 | char *kwnames[] = { |
bfddbb17 | 34412 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d55e5bfc RD |
34413 | }; |
34414 | ||
bfddbb17 RD |
34415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
34416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
34417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34418 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 34419 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34420 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 34421 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34422 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 34423 | if (PyErr_Occurred()) SWIG_fail; |
bfddbb17 RD |
34424 | if (obj4) { |
34425 | arg5 = obj4; | |
34426 | } | |
d55e5bfc RD |
34427 | { |
34428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bfddbb17 | 34429 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d55e5bfc RD |
34430 | |
34431 | wxPyEndAllowThreads(__tstate); | |
34432 | if (PyErr_Occurred()) SWIG_fail; | |
34433 | } | |
34434 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34435 | return resultobj; | |
34436 | fail: | |
34437 | return NULL; | |
34438 | } | |
34439 | ||
34440 | ||
c370783e | 34441 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 34442 | PyObject *resultobj; |
bfddbb17 | 34443 | int arg1 ; |
d55e5bfc RD |
34444 | int arg2 ; |
34445 | int arg3 ; | |
34446 | int arg4 ; | |
bfddbb17 RD |
34447 | int arg5 ; |
34448 | PyObject *arg6 = (PyObject *) NULL ; | |
d55e5bfc RD |
34449 | wxSizerItem *result; |
34450 | PyObject * obj0 = 0 ; | |
34451 | PyObject * obj1 = 0 ; | |
34452 | PyObject * obj2 = 0 ; | |
34453 | PyObject * obj3 = 0 ; | |
34454 | PyObject * obj4 = 0 ; | |
bfddbb17 | 34455 | PyObject * obj5 = 0 ; |
d55e5bfc | 34456 | char *kwnames[] = { |
bfddbb17 | 34457 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d55e5bfc RD |
34458 | }; |
34459 | ||
bfddbb17 | 34460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
c370783e | 34461 | arg1 = (int)SWIG_As_int(obj0); |
bfddbb17 | 34462 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34463 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 34464 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34465 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 34466 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34467 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 34468 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34469 | arg5 = (int)SWIG_As_int(obj4); |
bfddbb17 RD |
34470 | if (PyErr_Occurred()) SWIG_fail; |
34471 | if (obj5) { | |
34472 | arg6 = obj5; | |
34473 | } | |
d55e5bfc RD |
34474 | { |
34475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bfddbb17 | 34476 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
34477 | |
34478 | wxPyEndAllowThreads(__tstate); | |
34479 | if (PyErr_Occurred()) SWIG_fail; | |
34480 | } | |
34481 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34482 | return resultobj; | |
34483 | fail: | |
34484 | return NULL; | |
34485 | } | |
34486 | ||
34487 | ||
c370783e | 34488 | static PyObject *_wrap_new_SizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34489 | PyObject *resultobj; |
34490 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34491 | int arg2 ; | |
34492 | int arg3 ; | |
34493 | int arg4 ; | |
bfddbb17 | 34494 | PyObject *arg5 = (PyObject *) NULL ; |
d55e5bfc RD |
34495 | wxSizerItem *result; |
34496 | PyObject * obj0 = 0 ; | |
34497 | PyObject * obj1 = 0 ; | |
34498 | PyObject * obj2 = 0 ; | |
34499 | PyObject * obj3 = 0 ; | |
34500 | PyObject * obj4 = 0 ; | |
34501 | char *kwnames[] = { | |
34502 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34503 | }; | |
34504 | ||
bfddbb17 | 34505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
34506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34508 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 34509 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34510 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 34511 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34512 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 34513 | if (PyErr_Occurred()) SWIG_fail; |
bfddbb17 RD |
34514 | if (obj4) { |
34515 | arg5 = obj4; | |
34516 | } | |
d55e5bfc RD |
34517 | { |
34518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bfddbb17 | 34519 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d55e5bfc RD |
34520 | |
34521 | wxPyEndAllowThreads(__tstate); | |
34522 | if (PyErr_Occurred()) SWIG_fail; | |
34523 | } | |
34524 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34525 | return resultobj; | |
34526 | fail: | |
34527 | return NULL; | |
34528 | } | |
34529 | ||
34530 | ||
c370783e | 34531 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34532 | PyObject *resultobj; |
34533 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34534 | PyObject * obj0 = 0 ; | |
34535 | char *kwnames[] = { | |
34536 | (char *) "self", NULL | |
34537 | }; | |
34538 | ||
34539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
34540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34542 | { | |
34543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34544 | (arg1)->DeleteWindows(); | |
34545 | ||
34546 | wxPyEndAllowThreads(__tstate); | |
34547 | if (PyErr_Occurred()) SWIG_fail; | |
34548 | } | |
34549 | Py_INCREF(Py_None); resultobj = Py_None; | |
34550 | return resultobj; | |
34551 | fail: | |
34552 | return NULL; | |
34553 | } | |
34554 | ||
34555 | ||
c370783e | 34556 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34557 | PyObject *resultobj; |
34558 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34559 | PyObject * obj0 = 0 ; | |
34560 | char *kwnames[] = { | |
34561 | (char *) "self", NULL | |
34562 | }; | |
34563 | ||
34564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
34565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34567 | { | |
34568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34569 | (arg1)->DetachSizer(); | |
34570 | ||
34571 | wxPyEndAllowThreads(__tstate); | |
34572 | if (PyErr_Occurred()) SWIG_fail; | |
34573 | } | |
34574 | Py_INCREF(Py_None); resultobj = Py_None; | |
34575 | return resultobj; | |
34576 | fail: | |
34577 | return NULL; | |
34578 | } | |
34579 | ||
34580 | ||
c370783e | 34581 | static PyObject *_wrap_SizerItem_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34582 | PyObject *resultobj; |
34583 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34584 | wxSize result; | |
34585 | PyObject * obj0 = 0 ; | |
34586 | char *kwnames[] = { | |
34587 | (char *) "self", NULL | |
34588 | }; | |
34589 | ||
34590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
34591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34593 | { | |
34594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34595 | result = (arg1)->GetSize(); | |
34596 | ||
34597 | wxPyEndAllowThreads(__tstate); | |
34598 | if (PyErr_Occurred()) SWIG_fail; | |
34599 | } | |
34600 | { | |
34601 | wxSize * resultptr; | |
34602 | resultptr = new wxSize((wxSize &) result); | |
34603 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34604 | } | |
34605 | return resultobj; | |
34606 | fail: | |
34607 | return NULL; | |
34608 | } | |
34609 | ||
34610 | ||
c370783e | 34611 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34612 | PyObject *resultobj; |
34613 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34614 | wxSize result; | |
34615 | PyObject * obj0 = 0 ; | |
34616 | char *kwnames[] = { | |
34617 | (char *) "self", NULL | |
34618 | }; | |
34619 | ||
34620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
34621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34623 | { | |
34624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34625 | result = (arg1)->CalcMin(); | |
34626 | ||
34627 | wxPyEndAllowThreads(__tstate); | |
34628 | if (PyErr_Occurred()) SWIG_fail; | |
34629 | } | |
34630 | { | |
34631 | wxSize * resultptr; | |
34632 | resultptr = new wxSize((wxSize &) result); | |
34633 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34634 | } | |
34635 | return resultobj; | |
34636 | fail: | |
34637 | return NULL; | |
34638 | } | |
34639 | ||
34640 | ||
c370783e | 34641 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34642 | PyObject *resultobj; |
34643 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34644 | wxPoint arg2 ; | |
34645 | wxSize arg3 ; | |
34646 | wxPoint *argp2 ; | |
34647 | wxSize *argp3 ; | |
34648 | PyObject * obj0 = 0 ; | |
34649 | PyObject * obj1 = 0 ; | |
34650 | PyObject * obj2 = 0 ; | |
34651 | char *kwnames[] = { | |
34652 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
34653 | }; | |
34654 | ||
34655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34658 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
34659 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34660 | arg2 = *argp2; | |
34661 | if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize, | |
34662 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34663 | arg3 = *argp3; | |
34664 | { | |
34665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34666 | (arg1)->SetDimension(arg2,arg3); | |
34667 | ||
34668 | wxPyEndAllowThreads(__tstate); | |
34669 | if (PyErr_Occurred()) SWIG_fail; | |
34670 | } | |
34671 | Py_INCREF(Py_None); resultobj = Py_None; | |
34672 | return resultobj; | |
34673 | fail: | |
34674 | return NULL; | |
34675 | } | |
34676 | ||
34677 | ||
c370783e | 34678 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34679 | PyObject *resultobj; |
34680 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34681 | wxSize result; | |
34682 | PyObject * obj0 = 0 ; | |
34683 | char *kwnames[] = { | |
34684 | (char *) "self", NULL | |
34685 | }; | |
34686 | ||
34687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
34688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34690 | { | |
34691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34692 | result = (arg1)->GetMinSize(); | |
34693 | ||
34694 | wxPyEndAllowThreads(__tstate); | |
34695 | if (PyErr_Occurred()) SWIG_fail; | |
34696 | } | |
34697 | { | |
34698 | wxSize * resultptr; | |
34699 | resultptr = new wxSize((wxSize &) result); | |
34700 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34701 | } | |
34702 | return resultobj; | |
34703 | fail: | |
34704 | return NULL; | |
34705 | } | |
34706 | ||
34707 | ||
c370783e | 34708 | static PyObject *_wrap_SizerItem_GetMinSizeWithBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
34709 | PyObject *resultobj; |
34710 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34711 | wxSize result; | |
34712 | PyObject * obj0 = 0 ; | |
34713 | char *kwnames[] = { | |
34714 | (char *) "self", NULL | |
34715 | }; | |
34716 | ||
34717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSizeWithBorder",kwnames,&obj0)) goto fail; | |
34718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34720 | { | |
34721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34722 | result = ((wxSizerItem const *)arg1)->GetMinSizeWithBorder(); | |
34723 | ||
34724 | wxPyEndAllowThreads(__tstate); | |
34725 | if (PyErr_Occurred()) SWIG_fail; | |
34726 | } | |
34727 | { | |
34728 | wxSize * resultptr; | |
34729 | resultptr = new wxSize((wxSize &) result); | |
34730 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34731 | } | |
34732 | return resultobj; | |
34733 | fail: | |
34734 | return NULL; | |
34735 | } | |
34736 | ||
34737 | ||
c370783e | 34738 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34739 | PyObject *resultobj; |
34740 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34741 | int arg2 ; | |
34742 | int arg3 ; | |
34743 | PyObject * obj0 = 0 ; | |
34744 | PyObject * obj1 = 0 ; | |
34745 | PyObject * obj2 = 0 ; | |
34746 | char *kwnames[] = { | |
34747 | (char *) "self",(char *) "x",(char *) "y", NULL | |
34748 | }; | |
34749 | ||
34750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34753 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 34754 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34755 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
34756 | if (PyErr_Occurred()) SWIG_fail; |
34757 | { | |
34758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34759 | (arg1)->SetInitSize(arg2,arg3); | |
34760 | ||
34761 | wxPyEndAllowThreads(__tstate); | |
34762 | if (PyErr_Occurred()) SWIG_fail; | |
34763 | } | |
34764 | Py_INCREF(Py_None); resultobj = Py_None; | |
34765 | return resultobj; | |
34766 | fail: | |
34767 | return NULL; | |
34768 | } | |
34769 | ||
34770 | ||
c370783e | 34771 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34772 | PyObject *resultobj; |
34773 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34774 | int arg2 ; | |
34775 | int arg3 ; | |
34776 | PyObject * obj0 = 0 ; | |
34777 | PyObject * obj1 = 0 ; | |
34778 | PyObject * obj2 = 0 ; | |
34779 | char *kwnames[] = { | |
34780 | (char *) "self",(char *) "width",(char *) "height", NULL | |
34781 | }; | |
34782 | ||
34783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34786 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 34787 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34788 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
34789 | if (PyErr_Occurred()) SWIG_fail; |
34790 | { | |
34791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34792 | (arg1)->SetRatio(arg2,arg3); | |
34793 | ||
34794 | wxPyEndAllowThreads(__tstate); | |
34795 | if (PyErr_Occurred()) SWIG_fail; | |
34796 | } | |
34797 | Py_INCREF(Py_None); resultobj = Py_None; | |
34798 | return resultobj; | |
34799 | fail: | |
34800 | return NULL; | |
34801 | } | |
34802 | ||
34803 | ||
c370783e | 34804 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34805 | PyObject *resultobj; |
34806 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34807 | wxSize arg2 ; | |
34808 | wxSize *argp2 ; | |
34809 | PyObject * obj0 = 0 ; | |
34810 | PyObject * obj1 = 0 ; | |
34811 | char *kwnames[] = { | |
34812 | (char *) "self",(char *) "size", NULL | |
34813 | }; | |
34814 | ||
34815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
34816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34818 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
34819 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34820 | arg2 = *argp2; | |
34821 | { | |
34822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34823 | (arg1)->SetRatio(arg2); | |
34824 | ||
34825 | wxPyEndAllowThreads(__tstate); | |
34826 | if (PyErr_Occurred()) SWIG_fail; | |
34827 | } | |
34828 | Py_INCREF(Py_None); resultobj = Py_None; | |
34829 | return resultobj; | |
34830 | fail: | |
34831 | return NULL; | |
34832 | } | |
34833 | ||
34834 | ||
c370783e | 34835 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34836 | PyObject *resultobj; |
34837 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34838 | float arg2 ; | |
34839 | PyObject * obj0 = 0 ; | |
34840 | PyObject * obj1 = 0 ; | |
34841 | char *kwnames[] = { | |
34842 | (char *) "self",(char *) "ratio", NULL | |
34843 | }; | |
34844 | ||
34845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; | |
34846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34848 | arg2 = (float)SWIG_As_float(obj1); |
d55e5bfc RD |
34849 | if (PyErr_Occurred()) SWIG_fail; |
34850 | { | |
34851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34852 | (arg1)->SetRatio(arg2); | |
34853 | ||
34854 | wxPyEndAllowThreads(__tstate); | |
34855 | if (PyErr_Occurred()) SWIG_fail; | |
34856 | } | |
34857 | Py_INCREF(Py_None); resultobj = Py_None; | |
34858 | return resultobj; | |
34859 | fail: | |
34860 | return NULL; | |
34861 | } | |
34862 | ||
34863 | ||
c370783e | 34864 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34865 | PyObject *resultobj; |
34866 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34867 | float result; | |
34868 | PyObject * obj0 = 0 ; | |
34869 | char *kwnames[] = { | |
34870 | (char *) "self", NULL | |
34871 | }; | |
34872 | ||
34873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
34874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34876 | { | |
34877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34878 | result = (float)(arg1)->GetRatio(); | |
34879 | ||
34880 | wxPyEndAllowThreads(__tstate); | |
34881 | if (PyErr_Occurred()) SWIG_fail; | |
34882 | } | |
c370783e | 34883 | resultobj = SWIG_From_float((float)result); |
d55e5bfc RD |
34884 | return resultobj; |
34885 | fail: | |
34886 | return NULL; | |
34887 | } | |
34888 | ||
34889 | ||
c370783e | 34890 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34891 | PyObject *resultobj; |
34892 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34893 | bool result; | |
34894 | PyObject * obj0 = 0 ; | |
34895 | char *kwnames[] = { | |
34896 | (char *) "self", NULL | |
34897 | }; | |
34898 | ||
34899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
34900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34902 | { | |
34903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34904 | result = (bool)(arg1)->IsWindow(); | |
34905 | ||
34906 | wxPyEndAllowThreads(__tstate); | |
34907 | if (PyErr_Occurred()) SWIG_fail; | |
34908 | } | |
34909 | { | |
34910 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34911 | } | |
34912 | return resultobj; | |
34913 | fail: | |
34914 | return NULL; | |
34915 | } | |
34916 | ||
34917 | ||
c370783e | 34918 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34919 | PyObject *resultobj; |
34920 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34921 | bool result; | |
34922 | PyObject * obj0 = 0 ; | |
34923 | char *kwnames[] = { | |
34924 | (char *) "self", NULL | |
34925 | }; | |
34926 | ||
34927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
34928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34930 | { | |
34931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34932 | result = (bool)(arg1)->IsSizer(); | |
34933 | ||
34934 | wxPyEndAllowThreads(__tstate); | |
34935 | if (PyErr_Occurred()) SWIG_fail; | |
34936 | } | |
34937 | { | |
34938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34939 | } | |
34940 | return resultobj; | |
34941 | fail: | |
34942 | return NULL; | |
34943 | } | |
34944 | ||
34945 | ||
c370783e | 34946 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34947 | PyObject *resultobj; |
34948 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34949 | bool result; | |
34950 | PyObject * obj0 = 0 ; | |
34951 | char *kwnames[] = { | |
34952 | (char *) "self", NULL | |
34953 | }; | |
34954 | ||
34955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
34956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34958 | { | |
34959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34960 | result = (bool)(arg1)->IsSpacer(); | |
34961 | ||
34962 | wxPyEndAllowThreads(__tstate); | |
34963 | if (PyErr_Occurred()) SWIG_fail; | |
34964 | } | |
34965 | { | |
34966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34967 | } | |
34968 | return resultobj; | |
34969 | fail: | |
34970 | return NULL; | |
34971 | } | |
34972 | ||
34973 | ||
c370783e | 34974 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34975 | PyObject *resultobj; |
34976 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34977 | int arg2 ; | |
34978 | PyObject * obj0 = 0 ; | |
34979 | PyObject * obj1 = 0 ; | |
34980 | char *kwnames[] = { | |
34981 | (char *) "self",(char *) "proportion", NULL | |
34982 | }; | |
34983 | ||
34984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; | |
34985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34987 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34988 | if (PyErr_Occurred()) SWIG_fail; |
34989 | { | |
34990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34991 | (arg1)->SetProportion(arg2); | |
34992 | ||
34993 | wxPyEndAllowThreads(__tstate); | |
34994 | if (PyErr_Occurred()) SWIG_fail; | |
34995 | } | |
34996 | Py_INCREF(Py_None); resultobj = Py_None; | |
34997 | return resultobj; | |
34998 | fail: | |
34999 | return NULL; | |
35000 | } | |
35001 | ||
35002 | ||
c370783e | 35003 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35004 | PyObject *resultobj; |
35005 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35006 | int result; | |
35007 | PyObject * obj0 = 0 ; | |
35008 | char *kwnames[] = { | |
35009 | (char *) "self", NULL | |
35010 | }; | |
35011 | ||
35012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
35013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35015 | { | |
35016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35017 | result = (int)(arg1)->GetProportion(); | |
35018 | ||
35019 | wxPyEndAllowThreads(__tstate); | |
35020 | if (PyErr_Occurred()) SWIG_fail; | |
35021 | } | |
c370783e | 35022 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35023 | return resultobj; |
35024 | fail: | |
35025 | return NULL; | |
35026 | } | |
35027 | ||
35028 | ||
c370783e | 35029 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35030 | PyObject *resultobj; |
35031 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35032 | int arg2 ; | |
35033 | PyObject * obj0 = 0 ; | |
35034 | PyObject * obj1 = 0 ; | |
35035 | char *kwnames[] = { | |
35036 | (char *) "self",(char *) "flag", NULL | |
35037 | }; | |
35038 | ||
35039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; | |
35040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 35042 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35043 | if (PyErr_Occurred()) SWIG_fail; |
35044 | { | |
35045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35046 | (arg1)->SetFlag(arg2); | |
35047 | ||
35048 | wxPyEndAllowThreads(__tstate); | |
35049 | if (PyErr_Occurred()) SWIG_fail; | |
35050 | } | |
35051 | Py_INCREF(Py_None); resultobj = Py_None; | |
35052 | return resultobj; | |
35053 | fail: | |
35054 | return NULL; | |
35055 | } | |
35056 | ||
35057 | ||
c370783e | 35058 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35059 | PyObject *resultobj; |
35060 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35061 | int result; | |
35062 | PyObject * obj0 = 0 ; | |
35063 | char *kwnames[] = { | |
35064 | (char *) "self", NULL | |
35065 | }; | |
35066 | ||
35067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
35068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35070 | { | |
35071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35072 | result = (int)(arg1)->GetFlag(); | |
35073 | ||
35074 | wxPyEndAllowThreads(__tstate); | |
35075 | if (PyErr_Occurred()) SWIG_fail; | |
35076 | } | |
c370783e | 35077 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35078 | return resultobj; |
35079 | fail: | |
35080 | return NULL; | |
35081 | } | |
35082 | ||
35083 | ||
c370783e | 35084 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35085 | PyObject *resultobj; |
35086 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35087 | int arg2 ; | |
35088 | PyObject * obj0 = 0 ; | |
35089 | PyObject * obj1 = 0 ; | |
35090 | char *kwnames[] = { | |
35091 | (char *) "self",(char *) "border", NULL | |
35092 | }; | |
35093 | ||
35094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; | |
35095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 35097 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35098 | if (PyErr_Occurred()) SWIG_fail; |
35099 | { | |
35100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35101 | (arg1)->SetBorder(arg2); | |
35102 | ||
35103 | wxPyEndAllowThreads(__tstate); | |
35104 | if (PyErr_Occurred()) SWIG_fail; | |
35105 | } | |
35106 | Py_INCREF(Py_None); resultobj = Py_None; | |
35107 | return resultobj; | |
35108 | fail: | |
35109 | return NULL; | |
35110 | } | |
35111 | ||
35112 | ||
c370783e | 35113 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35114 | PyObject *resultobj; |
35115 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35116 | int result; | |
35117 | PyObject * obj0 = 0 ; | |
35118 | char *kwnames[] = { | |
35119 | (char *) "self", NULL | |
35120 | }; | |
35121 | ||
35122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
35123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35125 | { | |
35126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35127 | result = (int)(arg1)->GetBorder(); | |
35128 | ||
35129 | wxPyEndAllowThreads(__tstate); | |
35130 | if (PyErr_Occurred()) SWIG_fail; | |
35131 | } | |
c370783e | 35132 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35133 | return resultobj; |
35134 | fail: | |
35135 | return NULL; | |
35136 | } | |
35137 | ||
35138 | ||
c370783e | 35139 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35140 | PyObject *resultobj; |
35141 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35142 | wxWindow *result; | |
35143 | PyObject * obj0 = 0 ; | |
35144 | char *kwnames[] = { | |
35145 | (char *) "self", NULL | |
35146 | }; | |
35147 | ||
35148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
35149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35151 | { | |
35152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35153 | result = (wxWindow *)(arg1)->GetWindow(); | |
35154 | ||
35155 | wxPyEndAllowThreads(__tstate); | |
35156 | if (PyErr_Occurred()) SWIG_fail; | |
35157 | } | |
35158 | { | |
412d302d | 35159 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
35160 | } |
35161 | return resultobj; | |
35162 | fail: | |
35163 | return NULL; | |
35164 | } | |
35165 | ||
35166 | ||
c370783e | 35167 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35168 | PyObject *resultobj; |
35169 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35170 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35171 | PyObject * obj0 = 0 ; | |
35172 | PyObject * obj1 = 0 ; | |
35173 | char *kwnames[] = { | |
35174 | (char *) "self",(char *) "window", NULL | |
35175 | }; | |
35176 | ||
35177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
35178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35180 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35182 | { | |
35183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35184 | (arg1)->SetWindow(arg2); | |
35185 | ||
35186 | wxPyEndAllowThreads(__tstate); | |
35187 | if (PyErr_Occurred()) SWIG_fail; | |
35188 | } | |
35189 | Py_INCREF(Py_None); resultobj = Py_None; | |
35190 | return resultobj; | |
35191 | fail: | |
35192 | return NULL; | |
35193 | } | |
35194 | ||
35195 | ||
c370783e | 35196 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35197 | PyObject *resultobj; |
35198 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35199 | wxSizer *result; | |
35200 | PyObject * obj0 = 0 ; | |
35201 | char *kwnames[] = { | |
35202 | (char *) "self", NULL | |
35203 | }; | |
35204 | ||
35205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
35206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35208 | { | |
35209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35210 | result = (wxSizer *)(arg1)->GetSizer(); | |
35211 | ||
35212 | wxPyEndAllowThreads(__tstate); | |
35213 | if (PyErr_Occurred()) SWIG_fail; | |
35214 | } | |
35215 | { | |
412d302d | 35216 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
35217 | } |
35218 | return resultobj; | |
35219 | fail: | |
35220 | return NULL; | |
35221 | } | |
35222 | ||
35223 | ||
c370783e | 35224 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35225 | PyObject *resultobj; |
35226 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35227 | wxSizer *arg2 = (wxSizer *) 0 ; | |
35228 | PyObject * obj0 = 0 ; | |
35229 | PyObject * obj1 = 0 ; | |
35230 | char *kwnames[] = { | |
35231 | (char *) "self",(char *) "sizer", NULL | |
35232 | }; | |
35233 | ||
35234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
35235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35237 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
35238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35239 | { | |
35240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35241 | (arg1)->SetSizer(arg2); | |
35242 | ||
35243 | wxPyEndAllowThreads(__tstate); | |
35244 | if (PyErr_Occurred()) SWIG_fail; | |
35245 | } | |
35246 | Py_INCREF(Py_None); resultobj = Py_None; | |
35247 | return resultobj; | |
35248 | fail: | |
35249 | return NULL; | |
35250 | } | |
35251 | ||
35252 | ||
c370783e | 35253 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35254 | PyObject *resultobj; |
35255 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35256 | wxSize *result; | |
35257 | PyObject * obj0 = 0 ; | |
35258 | char *kwnames[] = { | |
35259 | (char *) "self", NULL | |
35260 | }; | |
35261 | ||
35262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
35263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35265 | { | |
35266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35267 | { | |
35268 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
35269 | result = (wxSize *) &_result_ref; | |
35270 | } | |
35271 | ||
35272 | wxPyEndAllowThreads(__tstate); | |
35273 | if (PyErr_Occurred()) SWIG_fail; | |
35274 | } | |
35275 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
35276 | return resultobj; | |
35277 | fail: | |
35278 | return NULL; | |
35279 | } | |
35280 | ||
35281 | ||
c370783e | 35282 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35283 | PyObject *resultobj; |
35284 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35285 | wxSize *arg2 = 0 ; | |
35286 | wxSize temp2 ; | |
35287 | PyObject * obj0 = 0 ; | |
35288 | PyObject * obj1 = 0 ; | |
35289 | char *kwnames[] = { | |
35290 | (char *) "self",(char *) "size", NULL | |
35291 | }; | |
35292 | ||
35293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
35294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35296 | { | |
35297 | arg2 = &temp2; | |
35298 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
35299 | } | |
35300 | { | |
35301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35302 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
35303 | ||
35304 | wxPyEndAllowThreads(__tstate); | |
35305 | if (PyErr_Occurred()) SWIG_fail; | |
35306 | } | |
35307 | Py_INCREF(Py_None); resultobj = Py_None; | |
35308 | return resultobj; | |
35309 | fail: | |
35310 | return NULL; | |
35311 | } | |
35312 | ||
35313 | ||
c370783e | 35314 | static PyObject *_wrap_SizerItem_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35315 | PyObject *resultobj; |
35316 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35317 | bool arg2 ; | |
35318 | PyObject * obj0 = 0 ; | |
35319 | PyObject * obj1 = 0 ; | |
35320 | char *kwnames[] = { | |
35321 | (char *) "self",(char *) "show", NULL | |
35322 | }; | |
35323 | ||
35324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
35325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 35327 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
35328 | if (PyErr_Occurred()) SWIG_fail; |
35329 | { | |
35330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35331 | (arg1)->Show(arg2); | |
35332 | ||
35333 | wxPyEndAllowThreads(__tstate); | |
35334 | if (PyErr_Occurred()) SWIG_fail; | |
35335 | } | |
35336 | Py_INCREF(Py_None); resultobj = Py_None; | |
35337 | return resultobj; | |
35338 | fail: | |
35339 | return NULL; | |
35340 | } | |
35341 | ||
35342 | ||
c370783e | 35343 | static PyObject *_wrap_SizerItem_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35344 | PyObject *resultobj; |
35345 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35346 | bool result; | |
35347 | PyObject * obj0 = 0 ; | |
35348 | char *kwnames[] = { | |
35349 | (char *) "self", NULL | |
35350 | }; | |
35351 | ||
35352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
35353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35355 | { | |
35356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35357 | result = (bool)(arg1)->IsShown(); | |
35358 | ||
35359 | wxPyEndAllowThreads(__tstate); | |
35360 | if (PyErr_Occurred()) SWIG_fail; | |
35361 | } | |
35362 | { | |
35363 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35364 | } | |
35365 | return resultobj; | |
35366 | fail: | |
35367 | return NULL; | |
35368 | } | |
35369 | ||
35370 | ||
c370783e | 35371 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35372 | PyObject *resultobj; |
35373 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35374 | wxPoint result; | |
35375 | PyObject * obj0 = 0 ; | |
35376 | char *kwnames[] = { | |
35377 | (char *) "self", NULL | |
35378 | }; | |
35379 | ||
35380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
35381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35383 | { | |
35384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35385 | result = (arg1)->GetPosition(); | |
35386 | ||
35387 | wxPyEndAllowThreads(__tstate); | |
35388 | if (PyErr_Occurred()) SWIG_fail; | |
35389 | } | |
35390 | { | |
35391 | wxPoint * resultptr; | |
35392 | resultptr = new wxPoint((wxPoint &) result); | |
35393 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
35394 | } | |
35395 | return resultobj; | |
35396 | fail: | |
35397 | return NULL; | |
35398 | } | |
35399 | ||
35400 | ||
c370783e | 35401 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35402 | PyObject *resultobj; |
35403 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35404 | PyObject *result; | |
35405 | PyObject * obj0 = 0 ; | |
35406 | char *kwnames[] = { | |
35407 | (char *) "self", NULL | |
35408 | }; | |
35409 | ||
35410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
35411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35413 | { | |
35414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35415 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
35416 | ||
35417 | wxPyEndAllowThreads(__tstate); | |
35418 | if (PyErr_Occurred()) SWIG_fail; | |
35419 | } | |
35420 | resultobj = result; | |
35421 | return resultobj; | |
35422 | fail: | |
35423 | return NULL; | |
35424 | } | |
35425 | ||
35426 | ||
c370783e | 35427 | static PyObject * SizerItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
35428 | PyObject *obj; |
35429 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35430 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
35431 | Py_INCREF(obj); | |
35432 | return Py_BuildValue((char *)""); | |
35433 | } | |
c370783e | 35434 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35435 | PyObject *resultobj; |
35436 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35437 | PyObject *arg2 = (PyObject *) 0 ; | |
35438 | PyObject * obj0 = 0 ; | |
35439 | PyObject * obj1 = 0 ; | |
35440 | char *kwnames[] = { | |
35441 | (char *) "self",(char *) "_self", NULL | |
35442 | }; | |
35443 | ||
35444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
35445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35447 | arg2 = obj1; | |
35448 | { | |
35449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35450 | wxSizer__setOORInfo(arg1,arg2); | |
35451 | ||
35452 | wxPyEndAllowThreads(__tstate); | |
35453 | if (PyErr_Occurred()) SWIG_fail; | |
35454 | } | |
35455 | Py_INCREF(Py_None); resultobj = Py_None; | |
35456 | return resultobj; | |
35457 | fail: | |
35458 | return NULL; | |
35459 | } | |
35460 | ||
35461 | ||
c370783e | 35462 | static PyObject *_wrap_Sizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35463 | PyObject *resultobj; |
35464 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35465 | PyObject *arg2 = (PyObject *) 0 ; | |
35466 | int arg3 = (int) 0 ; | |
35467 | int arg4 = (int) 0 ; | |
35468 | int arg5 = (int) 0 ; | |
35469 | PyObject *arg6 = (PyObject *) NULL ; | |
35470 | PyObject * obj0 = 0 ; | |
35471 | PyObject * obj1 = 0 ; | |
35472 | PyObject * obj2 = 0 ; | |
35473 | PyObject * obj3 = 0 ; | |
35474 | PyObject * obj4 = 0 ; | |
35475 | PyObject * obj5 = 0 ; | |
35476 | char *kwnames[] = { | |
35477 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35478 | }; | |
35479 | ||
35480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
35481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35483 | arg2 = obj1; | |
35484 | if (obj2) { | |
c370783e | 35485 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
35486 | if (PyErr_Occurred()) SWIG_fail; |
35487 | } | |
35488 | if (obj3) { | |
c370783e | 35489 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
35490 | if (PyErr_Occurred()) SWIG_fail; |
35491 | } | |
35492 | if (obj4) { | |
c370783e | 35493 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
35494 | if (PyErr_Occurred()) SWIG_fail; |
35495 | } | |
35496 | if (obj5) { | |
35497 | arg6 = obj5; | |
35498 | } | |
35499 | { | |
35500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35501 | wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); | |
35502 | ||
35503 | wxPyEndAllowThreads(__tstate); | |
35504 | if (PyErr_Occurred()) SWIG_fail; | |
35505 | } | |
35506 | Py_INCREF(Py_None); resultobj = Py_None; | |
35507 | return resultobj; | |
35508 | fail: | |
35509 | return NULL; | |
35510 | } | |
35511 | ||
35512 | ||
c370783e | 35513 | static PyObject *_wrap_Sizer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35514 | PyObject *resultobj; |
35515 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35516 | int arg2 ; | |
35517 | PyObject *arg3 = (PyObject *) 0 ; | |
35518 | int arg4 = (int) 0 ; | |
35519 | int arg5 = (int) 0 ; | |
35520 | int arg6 = (int) 0 ; | |
35521 | PyObject *arg7 = (PyObject *) NULL ; | |
35522 | PyObject * obj0 = 0 ; | |
35523 | PyObject * obj1 = 0 ; | |
35524 | PyObject * obj2 = 0 ; | |
35525 | PyObject * obj3 = 0 ; | |
35526 | PyObject * obj4 = 0 ; | |
35527 | PyObject * obj5 = 0 ; | |
35528 | PyObject * obj6 = 0 ; | |
35529 | char *kwnames[] = { | |
35530 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35531 | }; | |
35532 | ||
35533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
35534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 35536 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35537 | if (PyErr_Occurred()) SWIG_fail; |
35538 | arg3 = obj2; | |
35539 | if (obj3) { | |
c370783e | 35540 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
35541 | if (PyErr_Occurred()) SWIG_fail; |
35542 | } | |
35543 | if (obj4) { | |
c370783e | 35544 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
35545 | if (PyErr_Occurred()) SWIG_fail; |
35546 | } | |
35547 | if (obj5) { | |
c370783e | 35548 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
35549 | if (PyErr_Occurred()) SWIG_fail; |
35550 | } | |
35551 | if (obj6) { | |
35552 | arg7 = obj6; | |
35553 | } | |
35554 | { | |
35555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35556 | wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); | |
35557 | ||
35558 | wxPyEndAllowThreads(__tstate); | |
35559 | if (PyErr_Occurred()) SWIG_fail; | |
35560 | } | |
35561 | Py_INCREF(Py_None); resultobj = Py_None; | |
35562 | return resultobj; | |
35563 | fail: | |
35564 | return NULL; | |
35565 | } | |
35566 | ||
35567 | ||
c370783e | 35568 | static PyObject *_wrap_Sizer_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35569 | PyObject *resultobj; |
35570 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35571 | PyObject *arg2 = (PyObject *) 0 ; | |
35572 | int arg3 = (int) 0 ; | |
35573 | int arg4 = (int) 0 ; | |
35574 | int arg5 = (int) 0 ; | |
35575 | PyObject *arg6 = (PyObject *) NULL ; | |
35576 | PyObject * obj0 = 0 ; | |
35577 | PyObject * obj1 = 0 ; | |
35578 | PyObject * obj2 = 0 ; | |
35579 | PyObject * obj3 = 0 ; | |
35580 | PyObject * obj4 = 0 ; | |
35581 | PyObject * obj5 = 0 ; | |
35582 | char *kwnames[] = { | |
35583 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35584 | }; | |
35585 | ||
35586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
35587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35589 | arg2 = obj1; | |
35590 | if (obj2) { | |
c370783e | 35591 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
35592 | if (PyErr_Occurred()) SWIG_fail; |
35593 | } | |
35594 | if (obj3) { | |
c370783e | 35595 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
35596 | if (PyErr_Occurred()) SWIG_fail; |
35597 | } | |
35598 | if (obj4) { | |
c370783e | 35599 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
35600 | if (PyErr_Occurred()) SWIG_fail; |
35601 | } | |
35602 | if (obj5) { | |
35603 | arg6 = obj5; | |
35604 | } | |
35605 | { | |
35606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35607 | wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); | |
35608 | ||
35609 | wxPyEndAllowThreads(__tstate); | |
35610 | if (PyErr_Occurred()) SWIG_fail; | |
35611 | } | |
35612 | Py_INCREF(Py_None); resultobj = Py_None; | |
35613 | return resultobj; | |
35614 | fail: | |
35615 | return NULL; | |
35616 | } | |
35617 | ||
35618 | ||
c370783e | 35619 | static PyObject *_wrap_Sizer_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35620 | PyObject *resultobj; |
35621 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35622 | PyObject *arg2 = (PyObject *) 0 ; | |
35623 | bool result; | |
35624 | PyObject * obj0 = 0 ; | |
35625 | PyObject * obj1 = 0 ; | |
35626 | char *kwnames[] = { | |
35627 | (char *) "self",(char *) "item", NULL | |
35628 | }; | |
35629 | ||
35630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
35631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35633 | arg2 = obj1; | |
35634 | { | |
35635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35636 | result = (bool)wxSizer_Remove(arg1,arg2); | |
35637 | ||
35638 | wxPyEndAllowThreads(__tstate); | |
35639 | if (PyErr_Occurred()) SWIG_fail; | |
35640 | } | |
35641 | { | |
35642 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35643 | } | |
35644 | return resultobj; | |
35645 | fail: | |
35646 | return NULL; | |
35647 | } | |
35648 | ||
35649 | ||
c370783e | 35650 | static PyObject *_wrap_Sizer_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
1a6bba1e RD |
35651 | PyObject *resultobj; |
35652 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35653 | PyObject *arg2 = (PyObject *) 0 ; | |
35654 | bool result; | |
35655 | PyObject * obj0 = 0 ; | |
35656 | PyObject * obj1 = 0 ; | |
35657 | char *kwnames[] = { | |
35658 | (char *) "self",(char *) "item", NULL | |
35659 | }; | |
35660 | ||
35661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail; | |
35662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35664 | arg2 = obj1; | |
35665 | { | |
35666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35667 | result = (bool)wxSizer_Detach(arg1,arg2); | |
35668 | ||
35669 | wxPyEndAllowThreads(__tstate); | |
35670 | if (PyErr_Occurred()) SWIG_fail; | |
35671 | } | |
35672 | { | |
35673 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35674 | } | |
35675 | return resultobj; | |
35676 | fail: | |
35677 | return NULL; | |
35678 | } | |
35679 | ||
35680 | ||
c370783e | 35681 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35682 | PyObject *resultobj; |
35683 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35684 | PyObject *arg2 = (PyObject *) 0 ; | |
35685 | wxSize *arg3 = 0 ; | |
35686 | wxSize temp3 ; | |
35687 | PyObject * obj0 = 0 ; | |
35688 | PyObject * obj1 = 0 ; | |
35689 | PyObject * obj2 = 0 ; | |
35690 | char *kwnames[] = { | |
35691 | (char *) "self",(char *) "item",(char *) "size", NULL | |
35692 | }; | |
35693 | ||
35694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35697 | arg2 = obj1; | |
35698 | { | |
35699 | arg3 = &temp3; | |
35700 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
35701 | } | |
35702 | { | |
35703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35704 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); | |
35705 | ||
35706 | wxPyEndAllowThreads(__tstate); | |
35707 | if (PyErr_Occurred()) SWIG_fail; | |
35708 | } | |
35709 | Py_INCREF(Py_None); resultobj = Py_None; | |
35710 | return resultobj; | |
35711 | fail: | |
35712 | return NULL; | |
35713 | } | |
35714 | ||
35715 | ||
c370783e | 35716 | static PyObject *_wrap_Sizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35717 | PyObject *resultobj; |
35718 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35719 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
35720 | PyObject * obj0 = 0 ; | |
35721 | PyObject * obj1 = 0 ; | |
35722 | char *kwnames[] = { | |
35723 | (char *) "self",(char *) "item", NULL | |
35724 | }; | |
35725 | ||
35726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
35727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35729 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
35730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35731 | { | |
35732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35733 | (arg1)->Add(arg2); | |
35734 | ||
35735 | wxPyEndAllowThreads(__tstate); | |
35736 | if (PyErr_Occurred()) SWIG_fail; | |
35737 | } | |
35738 | Py_INCREF(Py_None); resultobj = Py_None; | |
35739 | return resultobj; | |
35740 | fail: | |
35741 | return NULL; | |
35742 | } | |
35743 | ||
35744 | ||
c370783e | 35745 | static PyObject *_wrap_Sizer_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35746 | PyObject *resultobj; |
35747 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35748 | size_t arg2 ; | |
35749 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
35750 | PyObject * obj0 = 0 ; | |
35751 | PyObject * obj1 = 0 ; | |
35752 | PyObject * obj2 = 0 ; | |
35753 | char *kwnames[] = { | |
35754 | (char *) "self",(char *) "index",(char *) "item", NULL | |
35755 | }; | |
35756 | ||
35757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 35760 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
35761 | if (PyErr_Occurred()) SWIG_fail; |
35762 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem, | |
35763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35764 | { | |
35765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35766 | (arg1)->Insert(arg2,arg3); | |
35767 | ||
35768 | wxPyEndAllowThreads(__tstate); | |
35769 | if (PyErr_Occurred()) SWIG_fail; | |
35770 | } | |
35771 | Py_INCREF(Py_None); resultobj = Py_None; | |
35772 | return resultobj; | |
35773 | fail: | |
35774 | return NULL; | |
35775 | } | |
35776 | ||
35777 | ||
c370783e | 35778 | static PyObject *_wrap_Sizer_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35779 | PyObject *resultobj; |
35780 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35781 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
35782 | PyObject * obj0 = 0 ; | |
35783 | PyObject * obj1 = 0 ; | |
35784 | char *kwnames[] = { | |
35785 | (char *) "self",(char *) "item", NULL | |
35786 | }; | |
35787 | ||
35788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
35789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35791 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
35792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35793 | { | |
35794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35795 | (arg1)->Prepend(arg2); | |
35796 | ||
35797 | wxPyEndAllowThreads(__tstate); | |
35798 | if (PyErr_Occurred()) SWIG_fail; | |
35799 | } | |
35800 | Py_INCREF(Py_None); resultobj = Py_None; | |
35801 | return resultobj; | |
35802 | fail: | |
35803 | return NULL; | |
35804 | } | |
35805 | ||
35806 | ||
c370783e | 35807 | static PyObject *_wrap_Sizer_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35808 | PyObject *resultobj; |
35809 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35810 | int arg2 ; | |
35811 | int arg3 ; | |
35812 | int arg4 ; | |
35813 | int arg5 ; | |
35814 | PyObject * obj0 = 0 ; | |
35815 | PyObject * obj1 = 0 ; | |
35816 | PyObject * obj2 = 0 ; | |
35817 | PyObject * obj3 = 0 ; | |
35818 | PyObject * obj4 = 0 ; | |
35819 | char *kwnames[] = { | |
35820 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
35821 | }; | |
35822 | ||
35823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
35824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 35826 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 35827 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 35828 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 35829 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 35830 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 35831 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 35832 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
35833 | if (PyErr_Occurred()) SWIG_fail; |
35834 | { | |
35835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35836 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
35837 | ||
35838 | wxPyEndAllowThreads(__tstate); | |
35839 | if (PyErr_Occurred()) SWIG_fail; | |
35840 | } | |
35841 | Py_INCREF(Py_None); resultobj = Py_None; | |
35842 | return resultobj; | |
35843 | fail: | |
35844 | return NULL; | |
35845 | } | |
35846 | ||
35847 | ||
c370783e | 35848 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35849 | PyObject *resultobj; |
35850 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35851 | wxSize *arg2 = 0 ; | |
35852 | wxSize temp2 ; | |
35853 | PyObject * obj0 = 0 ; | |
35854 | PyObject * obj1 = 0 ; | |
35855 | char *kwnames[] = { | |
35856 | (char *) "self",(char *) "size", NULL | |
35857 | }; | |
35858 | ||
35859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
35860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35862 | { | |
35863 | arg2 = &temp2; | |
35864 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
35865 | } | |
35866 | { | |
35867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35868 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
35869 | ||
35870 | wxPyEndAllowThreads(__tstate); | |
35871 | if (PyErr_Occurred()) SWIG_fail; | |
35872 | } | |
35873 | Py_INCREF(Py_None); resultobj = Py_None; | |
35874 | return resultobj; | |
35875 | fail: | |
35876 | return NULL; | |
35877 | } | |
35878 | ||
35879 | ||
c370783e | 35880 | static PyObject *_wrap_Sizer_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35881 | PyObject *resultobj; |
35882 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35883 | wxSize result; | |
35884 | PyObject * obj0 = 0 ; | |
35885 | char *kwnames[] = { | |
35886 | (char *) "self", NULL | |
35887 | }; | |
35888 | ||
35889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
35890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35892 | { | |
35893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35894 | result = (arg1)->GetSize(); | |
35895 | ||
35896 | wxPyEndAllowThreads(__tstate); | |
35897 | if (PyErr_Occurred()) SWIG_fail; | |
35898 | } | |
35899 | { | |
35900 | wxSize * resultptr; | |
35901 | resultptr = new wxSize((wxSize &) result); | |
35902 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35903 | } | |
35904 | return resultobj; | |
35905 | fail: | |
35906 | return NULL; | |
35907 | } | |
35908 | ||
35909 | ||
c370783e | 35910 | static PyObject *_wrap_Sizer_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35911 | PyObject *resultobj; |
35912 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35913 | wxPoint result; | |
35914 | PyObject * obj0 = 0 ; | |
35915 | char *kwnames[] = { | |
35916 | (char *) "self", NULL | |
35917 | }; | |
35918 | ||
35919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
35920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35922 | { | |
35923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35924 | result = (arg1)->GetPosition(); | |
35925 | ||
35926 | wxPyEndAllowThreads(__tstate); | |
35927 | if (PyErr_Occurred()) SWIG_fail; | |
35928 | } | |
35929 | { | |
35930 | wxPoint * resultptr; | |
35931 | resultptr = new wxPoint((wxPoint &) result); | |
35932 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
35933 | } | |
35934 | return resultobj; | |
35935 | fail: | |
35936 | return NULL; | |
35937 | } | |
35938 | ||
35939 | ||
c370783e | 35940 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35941 | PyObject *resultobj; |
35942 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35943 | wxSize result; | |
35944 | PyObject * obj0 = 0 ; | |
35945 | char *kwnames[] = { | |
35946 | (char *) "self", NULL | |
35947 | }; | |
35948 | ||
35949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
35950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35952 | { | |
35953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35954 | result = (arg1)->GetMinSize(); | |
35955 | ||
35956 | wxPyEndAllowThreads(__tstate); | |
35957 | if (PyErr_Occurred()) SWIG_fail; | |
35958 | } | |
35959 | { | |
35960 | wxSize * resultptr; | |
35961 | resultptr = new wxSize((wxSize &) result); | |
35962 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35963 | } | |
35964 | return resultobj; | |
35965 | fail: | |
35966 | return NULL; | |
35967 | } | |
35968 | ||
35969 | ||
c370783e | 35970 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35971 | PyObject *resultobj; |
35972 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35973 | PyObject * obj0 = 0 ; | |
35974 | char *kwnames[] = { | |
35975 | (char *) "self", NULL | |
35976 | }; | |
35977 | ||
35978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
35979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35981 | { | |
35982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35983 | (arg1)->RecalcSizes(); | |
35984 | ||
35985 | wxPyEndAllowThreads(__tstate); | |
35986 | if (PyErr_Occurred()) SWIG_fail; | |
35987 | } | |
35988 | Py_INCREF(Py_None); resultobj = Py_None; | |
35989 | return resultobj; | |
35990 | fail: | |
35991 | return NULL; | |
35992 | } | |
35993 | ||
35994 | ||
c370783e | 35995 | static PyObject *_wrap_Sizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35996 | PyObject *resultobj; |
35997 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35998 | wxSize result; | |
35999 | PyObject * obj0 = 0 ; | |
36000 | char *kwnames[] = { | |
36001 | (char *) "self", NULL | |
36002 | }; | |
36003 | ||
36004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
36005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36007 | { | |
36008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36009 | result = (arg1)->CalcMin(); | |
36010 | ||
36011 | wxPyEndAllowThreads(__tstate); | |
36012 | if (PyErr_Occurred()) SWIG_fail; | |
36013 | } | |
36014 | { | |
36015 | wxSize * resultptr; | |
36016 | resultptr = new wxSize((wxSize &) result); | |
36017 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36018 | } | |
36019 | return resultobj; | |
36020 | fail: | |
36021 | return NULL; | |
36022 | } | |
36023 | ||
36024 | ||
c370783e | 36025 | static PyObject *_wrap_Sizer_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36026 | PyObject *resultobj; |
36027 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36028 | PyObject * obj0 = 0 ; | |
36029 | char *kwnames[] = { | |
36030 | (char *) "self", NULL | |
36031 | }; | |
36032 | ||
36033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
36034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36036 | { | |
36037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36038 | (arg1)->Layout(); | |
36039 | ||
36040 | wxPyEndAllowThreads(__tstate); | |
36041 | if (PyErr_Occurred()) SWIG_fail; | |
36042 | } | |
36043 | Py_INCREF(Py_None); resultobj = Py_None; | |
36044 | return resultobj; | |
36045 | fail: | |
36046 | return NULL; | |
36047 | } | |
36048 | ||
36049 | ||
c370783e | 36050 | static PyObject *_wrap_Sizer_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36051 | PyObject *resultobj; |
36052 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36053 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36054 | wxSize result; | |
36055 | PyObject * obj0 = 0 ; | |
36056 | PyObject * obj1 = 0 ; | |
36057 | char *kwnames[] = { | |
36058 | (char *) "self",(char *) "window", NULL | |
36059 | }; | |
36060 | ||
36061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
36062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36064 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36066 | { | |
36067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36068 | result = (arg1)->Fit(arg2); | |
36069 | ||
36070 | wxPyEndAllowThreads(__tstate); | |
36071 | if (PyErr_Occurred()) SWIG_fail; | |
36072 | } | |
36073 | { | |
36074 | wxSize * resultptr; | |
36075 | resultptr = new wxSize((wxSize &) result); | |
36076 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36077 | } | |
36078 | return resultobj; | |
36079 | fail: | |
36080 | return NULL; | |
36081 | } | |
36082 | ||
36083 | ||
c370783e | 36084 | static PyObject *_wrap_Sizer_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36085 | PyObject *resultobj; |
36086 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36087 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36088 | PyObject * obj0 = 0 ; | |
36089 | PyObject * obj1 = 0 ; | |
36090 | char *kwnames[] = { | |
36091 | (char *) "self",(char *) "window", NULL | |
36092 | }; | |
36093 | ||
36094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
36095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36097 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36099 | { | |
36100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36101 | (arg1)->FitInside(arg2); | |
36102 | ||
36103 | wxPyEndAllowThreads(__tstate); | |
36104 | if (PyErr_Occurred()) SWIG_fail; | |
36105 | } | |
36106 | Py_INCREF(Py_None); resultobj = Py_None; | |
36107 | return resultobj; | |
36108 | fail: | |
36109 | return NULL; | |
36110 | } | |
36111 | ||
36112 | ||
c370783e | 36113 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36114 | PyObject *resultobj; |
36115 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36116 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36117 | PyObject * obj0 = 0 ; | |
36118 | PyObject * obj1 = 0 ; | |
36119 | char *kwnames[] = { | |
36120 | (char *) "self",(char *) "window", NULL | |
36121 | }; | |
36122 | ||
36123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
36124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36126 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36128 | { | |
36129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36130 | (arg1)->SetSizeHints(arg2); | |
36131 | ||
36132 | wxPyEndAllowThreads(__tstate); | |
36133 | if (PyErr_Occurred()) SWIG_fail; | |
36134 | } | |
36135 | Py_INCREF(Py_None); resultobj = Py_None; | |
36136 | return resultobj; | |
36137 | fail: | |
36138 | return NULL; | |
36139 | } | |
36140 | ||
36141 | ||
c370783e | 36142 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36143 | PyObject *resultobj; |
36144 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36145 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36146 | PyObject * obj0 = 0 ; | |
36147 | PyObject * obj1 = 0 ; | |
36148 | char *kwnames[] = { | |
36149 | (char *) "self",(char *) "window", NULL | |
36150 | }; | |
36151 | ||
36152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
36153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36155 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36157 | { | |
36158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36159 | (arg1)->SetVirtualSizeHints(arg2); | |
36160 | ||
36161 | wxPyEndAllowThreads(__tstate); | |
36162 | if (PyErr_Occurred()) SWIG_fail; | |
36163 | } | |
36164 | Py_INCREF(Py_None); resultobj = Py_None; | |
36165 | return resultobj; | |
36166 | fail: | |
36167 | return NULL; | |
36168 | } | |
36169 | ||
36170 | ||
c370783e | 36171 | static PyObject *_wrap_Sizer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36172 | PyObject *resultobj; |
36173 | wxSizer *arg1 = (wxSizer *) 0 ; | |
b411df4a | 36174 | bool arg2 = (bool) false ; |
d55e5bfc RD |
36175 | PyObject * obj0 = 0 ; |
36176 | PyObject * obj1 = 0 ; | |
36177 | char *kwnames[] = { | |
bfddbb17 | 36178 | (char *) "self",(char *) "deleteWindows", NULL |
d55e5bfc RD |
36179 | }; |
36180 | ||
36181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
36182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36184 | if (obj1) { | |
c370783e | 36185 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
36186 | if (PyErr_Occurred()) SWIG_fail; |
36187 | } | |
36188 | { | |
36189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36190 | (arg1)->Clear(arg2); | |
36191 | ||
36192 | wxPyEndAllowThreads(__tstate); | |
36193 | if (PyErr_Occurred()) SWIG_fail; | |
36194 | } | |
36195 | Py_INCREF(Py_None); resultobj = Py_None; | |
36196 | return resultobj; | |
36197 | fail: | |
36198 | return NULL; | |
36199 | } | |
36200 | ||
36201 | ||
c370783e | 36202 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36203 | PyObject *resultobj; |
36204 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36205 | PyObject * obj0 = 0 ; | |
36206 | char *kwnames[] = { | |
36207 | (char *) "self", NULL | |
36208 | }; | |
36209 | ||
36210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
36211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36213 | { | |
36214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36215 | (arg1)->DeleteWindows(); | |
36216 | ||
36217 | wxPyEndAllowThreads(__tstate); | |
36218 | if (PyErr_Occurred()) SWIG_fail; | |
36219 | } | |
36220 | Py_INCREF(Py_None); resultobj = Py_None; | |
36221 | return resultobj; | |
36222 | fail: | |
36223 | return NULL; | |
36224 | } | |
36225 | ||
36226 | ||
c370783e | 36227 | static PyObject *_wrap_Sizer_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36228 | PyObject *resultobj; |
36229 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36230 | PyObject *result; | |
36231 | PyObject * obj0 = 0 ; | |
36232 | char *kwnames[] = { | |
36233 | (char *) "self", NULL | |
36234 | }; | |
36235 | ||
36236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
36237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36239 | { | |
36240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36241 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
36242 | ||
36243 | wxPyEndAllowThreads(__tstate); | |
36244 | if (PyErr_Occurred()) SWIG_fail; | |
36245 | } | |
36246 | resultobj = result; | |
36247 | return resultobj; | |
36248 | fail: | |
36249 | return NULL; | |
36250 | } | |
36251 | ||
36252 | ||
c370783e | 36253 | static PyObject *_wrap_Sizer_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36254 | PyObject *resultobj; |
36255 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36256 | PyObject *arg2 = (PyObject *) 0 ; | |
b411df4a RD |
36257 | bool arg3 = (bool) true ; |
36258 | bool arg4 = (bool) false ; | |
629e65c2 | 36259 | bool result; |
d55e5bfc RD |
36260 | PyObject * obj0 = 0 ; |
36261 | PyObject * obj1 = 0 ; | |
36262 | PyObject * obj2 = 0 ; | |
629e65c2 | 36263 | PyObject * obj3 = 0 ; |
d55e5bfc | 36264 | char *kwnames[] = { |
629e65c2 | 36265 | (char *) "self",(char *) "item",(char *) "show",(char *) "recursive", NULL |
d55e5bfc RD |
36266 | }; |
36267 | ||
629e65c2 | 36268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Sizer_Show",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
36269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36271 | arg2 = obj1; | |
36272 | if (obj2) { | |
c370783e | 36273 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
36274 | if (PyErr_Occurred()) SWIG_fail; |
36275 | } | |
629e65c2 RD |
36276 | if (obj3) { |
36277 | arg4 = (bool)SWIG_As_bool(obj3); | |
36278 | if (PyErr_Occurred()) SWIG_fail; | |
36279 | } | |
d55e5bfc RD |
36280 | { |
36281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
629e65c2 | 36282 | result = (bool)wxSizer_Show(arg1,arg2,arg3,arg4); |
d55e5bfc RD |
36283 | |
36284 | wxPyEndAllowThreads(__tstate); | |
36285 | if (PyErr_Occurred()) SWIG_fail; | |
36286 | } | |
629e65c2 RD |
36287 | { |
36288 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36289 | } | |
d55e5bfc RD |
36290 | return resultobj; |
36291 | fail: | |
36292 | return NULL; | |
36293 | } | |
36294 | ||
36295 | ||
c370783e | 36296 | static PyObject *_wrap_Sizer_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36297 | PyObject *resultobj; |
36298 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36299 | PyObject *arg2 = (PyObject *) 0 ; | |
36300 | bool result; | |
36301 | PyObject * obj0 = 0 ; | |
36302 | PyObject * obj1 = 0 ; | |
36303 | char *kwnames[] = { | |
36304 | (char *) "self",(char *) "item", NULL | |
36305 | }; | |
36306 | ||
36307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
36308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36310 | arg2 = obj1; | |
36311 | { | |
36312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36313 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
36314 | ||
36315 | wxPyEndAllowThreads(__tstate); | |
36316 | if (PyErr_Occurred()) SWIG_fail; | |
36317 | } | |
36318 | { | |
36319 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36320 | } | |
36321 | return resultobj; | |
36322 | fail: | |
36323 | return NULL; | |
36324 | } | |
36325 | ||
36326 | ||
c370783e | 36327 | static PyObject *_wrap_Sizer_ShowItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36328 | PyObject *resultobj; |
36329 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36330 | bool arg2 ; | |
36331 | PyObject * obj0 = 0 ; | |
36332 | PyObject * obj1 = 0 ; | |
36333 | char *kwnames[] = { | |
36334 | (char *) "self",(char *) "show", NULL | |
36335 | }; | |
36336 | ||
36337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
36338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 36340 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
36341 | if (PyErr_Occurred()) SWIG_fail; |
36342 | { | |
36343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36344 | (arg1)->ShowItems(arg2); | |
36345 | ||
36346 | wxPyEndAllowThreads(__tstate); | |
36347 | if (PyErr_Occurred()) SWIG_fail; | |
36348 | } | |
36349 | Py_INCREF(Py_None); resultobj = Py_None; | |
36350 | return resultobj; | |
36351 | fail: | |
36352 | return NULL; | |
36353 | } | |
36354 | ||
36355 | ||
c370783e | 36356 | static PyObject * Sizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
36357 | PyObject *obj; |
36358 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36359 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
36360 | Py_INCREF(obj); | |
36361 | return Py_BuildValue((char *)""); | |
36362 | } | |
c370783e | 36363 | static PyObject *_wrap_new_PySizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36364 | PyObject *resultobj; |
36365 | wxPySizer *result; | |
36366 | char *kwnames[] = { | |
36367 | NULL | |
36368 | }; | |
36369 | ||
36370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
36371 | { | |
36372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36373 | result = (wxPySizer *)new wxPySizer(); | |
36374 | ||
36375 | wxPyEndAllowThreads(__tstate); | |
36376 | if (PyErr_Occurred()) SWIG_fail; | |
36377 | } | |
36378 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); | |
36379 | return resultobj; | |
36380 | fail: | |
36381 | return NULL; | |
36382 | } | |
36383 | ||
36384 | ||
c370783e | 36385 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36386 | PyObject *resultobj; |
36387 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
36388 | PyObject *arg2 = (PyObject *) 0 ; | |
36389 | PyObject *arg3 = (PyObject *) 0 ; | |
36390 | PyObject * obj0 = 0 ; | |
36391 | PyObject * obj1 = 0 ; | |
36392 | PyObject * obj2 = 0 ; | |
36393 | char *kwnames[] = { | |
36394 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
36395 | }; | |
36396 | ||
36397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer, | |
36399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36400 | arg2 = obj1; | |
36401 | arg3 = obj2; | |
36402 | { | |
36403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36404 | (arg1)->_setCallbackInfo(arg2,arg3); | |
36405 | ||
36406 | wxPyEndAllowThreads(__tstate); | |
36407 | if (PyErr_Occurred()) SWIG_fail; | |
36408 | } | |
36409 | Py_INCREF(Py_None); resultobj = Py_None; | |
36410 | return resultobj; | |
36411 | fail: | |
36412 | return NULL; | |
36413 | } | |
36414 | ||
36415 | ||
c370783e | 36416 | static PyObject * PySizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
36417 | PyObject *obj; |
36418 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36419 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
36420 | Py_INCREF(obj); | |
36421 | return Py_BuildValue((char *)""); | |
36422 | } | |
c370783e | 36423 | static PyObject *_wrap_new_BoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36424 | PyObject *resultobj; |
36425 | int arg1 = (int) wxHORIZONTAL ; | |
36426 | wxBoxSizer *result; | |
36427 | PyObject * obj0 = 0 ; | |
36428 | char *kwnames[] = { | |
36429 | (char *) "orient", NULL | |
36430 | }; | |
36431 | ||
36432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; | |
36433 | if (obj0) { | |
c370783e | 36434 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
36435 | if (PyErr_Occurred()) SWIG_fail; |
36436 | } | |
36437 | { | |
36438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36439 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
36440 | ||
36441 | wxPyEndAllowThreads(__tstate); | |
36442 | if (PyErr_Occurred()) SWIG_fail; | |
36443 | } | |
36444 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); | |
36445 | return resultobj; | |
36446 | fail: | |
36447 | return NULL; | |
36448 | } | |
36449 | ||
36450 | ||
c370783e | 36451 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36452 | PyObject *resultobj; |
36453 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
36454 | int result; | |
36455 | PyObject * obj0 = 0 ; | |
36456 | char *kwnames[] = { | |
36457 | (char *) "self", NULL | |
36458 | }; | |
36459 | ||
36460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
36461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
36462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36463 | { | |
36464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36465 | result = (int)(arg1)->GetOrientation(); | |
36466 | ||
36467 | wxPyEndAllowThreads(__tstate); | |
36468 | if (PyErr_Occurred()) SWIG_fail; | |
36469 | } | |
c370783e | 36470 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
36471 | return resultobj; |
36472 | fail: | |
36473 | return NULL; | |
36474 | } | |
36475 | ||
36476 | ||
c370783e | 36477 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36478 | PyObject *resultobj; |
36479 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
36480 | int arg2 ; | |
36481 | PyObject * obj0 = 0 ; | |
36482 | PyObject * obj1 = 0 ; | |
36483 | char *kwnames[] = { | |
36484 | (char *) "self",(char *) "orient", NULL | |
36485 | }; | |
36486 | ||
36487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
36488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
36489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 36490 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36491 | if (PyErr_Occurred()) SWIG_fail; |
36492 | { | |
36493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36494 | (arg1)->SetOrientation(arg2); | |
36495 | ||
36496 | wxPyEndAllowThreads(__tstate); | |
36497 | if (PyErr_Occurred()) SWIG_fail; | |
36498 | } | |
36499 | Py_INCREF(Py_None); resultobj = Py_None; | |
36500 | return resultobj; | |
36501 | fail: | |
36502 | return NULL; | |
36503 | } | |
36504 | ||
36505 | ||
c370783e | 36506 | static PyObject * BoxSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
36507 | PyObject *obj; |
36508 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36509 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
36510 | Py_INCREF(obj); | |
36511 | return Py_BuildValue((char *)""); | |
36512 | } | |
c370783e | 36513 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36514 | PyObject *resultobj; |
36515 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
36516 | int arg2 = (int) wxHORIZONTAL ; | |
36517 | wxStaticBoxSizer *result; | |
36518 | PyObject * obj0 = 0 ; | |
36519 | PyObject * obj1 = 0 ; | |
36520 | char *kwnames[] = { | |
36521 | (char *) "box",(char *) "orient", NULL | |
36522 | }; | |
36523 | ||
36524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; | |
36525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, | |
36526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36527 | if (obj1) { | |
c370783e | 36528 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36529 | if (PyErr_Occurred()) SWIG_fail; |
36530 | } | |
36531 | { | |
36532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36533 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
36534 | ||
36535 | wxPyEndAllowThreads(__tstate); | |
36536 | if (PyErr_Occurred()) SWIG_fail; | |
36537 | } | |
36538 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); | |
36539 | return resultobj; | |
36540 | fail: | |
36541 | return NULL; | |
36542 | } | |
36543 | ||
36544 | ||
c370783e | 36545 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36546 | PyObject *resultobj; |
36547 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
36548 | wxStaticBox *result; | |
36549 | PyObject * obj0 = 0 ; | |
36550 | char *kwnames[] = { | |
36551 | (char *) "self", NULL | |
36552 | }; | |
36553 | ||
36554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
36555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, | |
36556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36557 | { | |
36558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36559 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
36560 | ||
36561 | wxPyEndAllowThreads(__tstate); | |
36562 | if (PyErr_Occurred()) SWIG_fail; | |
36563 | } | |
36564 | { | |
412d302d | 36565 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
36566 | } |
36567 | return resultobj; | |
36568 | fail: | |
36569 | return NULL; | |
36570 | } | |
36571 | ||
36572 | ||
c370783e | 36573 | static PyObject * StaticBoxSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
36574 | PyObject *obj; |
36575 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36576 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
36577 | Py_INCREF(obj); | |
36578 | return Py_BuildValue((char *)""); | |
36579 | } | |
c370783e | 36580 | static PyObject *_wrap_new_GridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36581 | PyObject *resultobj; |
36582 | int arg1 = (int) 1 ; | |
36583 | int arg2 = (int) 0 ; | |
36584 | int arg3 = (int) 0 ; | |
36585 | int arg4 = (int) 0 ; | |
36586 | wxGridSizer *result; | |
36587 | PyObject * obj0 = 0 ; | |
36588 | PyObject * obj1 = 0 ; | |
36589 | PyObject * obj2 = 0 ; | |
36590 | PyObject * obj3 = 0 ; | |
36591 | char *kwnames[] = { | |
36592 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
36593 | }; | |
36594 | ||
36595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36596 | if (obj0) { | |
c370783e | 36597 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
36598 | if (PyErr_Occurred()) SWIG_fail; |
36599 | } | |
36600 | if (obj1) { | |
c370783e | 36601 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36602 | if (PyErr_Occurred()) SWIG_fail; |
36603 | } | |
36604 | if (obj2) { | |
c370783e | 36605 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
36606 | if (PyErr_Occurred()) SWIG_fail; |
36607 | } | |
36608 | if (obj3) { | |
c370783e | 36609 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
36610 | if (PyErr_Occurred()) SWIG_fail; |
36611 | } | |
36612 | { | |
36613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36614 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
36615 | ||
36616 | wxPyEndAllowThreads(__tstate); | |
36617 | if (PyErr_Occurred()) SWIG_fail; | |
36618 | } | |
36619 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); | |
36620 | return resultobj; | |
36621 | fail: | |
36622 | return NULL; | |
36623 | } | |
36624 | ||
36625 | ||
c370783e | 36626 | static PyObject *_wrap_GridSizer_SetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36627 | PyObject *resultobj; |
36628 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36629 | int arg2 ; | |
36630 | PyObject * obj0 = 0 ; | |
36631 | PyObject * obj1 = 0 ; | |
36632 | char *kwnames[] = { | |
36633 | (char *) "self",(char *) "cols", NULL | |
36634 | }; | |
36635 | ||
36636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; | |
36637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 36639 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36640 | if (PyErr_Occurred()) SWIG_fail; |
36641 | { | |
36642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36643 | (arg1)->SetCols(arg2); | |
36644 | ||
36645 | wxPyEndAllowThreads(__tstate); | |
36646 | if (PyErr_Occurred()) SWIG_fail; | |
36647 | } | |
36648 | Py_INCREF(Py_None); resultobj = Py_None; | |
36649 | return resultobj; | |
36650 | fail: | |
36651 | return NULL; | |
36652 | } | |
36653 | ||
36654 | ||
c370783e | 36655 | static PyObject *_wrap_GridSizer_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36656 | PyObject *resultobj; |
36657 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36658 | int arg2 ; | |
36659 | PyObject * obj0 = 0 ; | |
36660 | PyObject * obj1 = 0 ; | |
36661 | char *kwnames[] = { | |
36662 | (char *) "self",(char *) "rows", NULL | |
36663 | }; | |
36664 | ||
36665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
36666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 36668 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36669 | if (PyErr_Occurred()) SWIG_fail; |
36670 | { | |
36671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36672 | (arg1)->SetRows(arg2); | |
36673 | ||
36674 | wxPyEndAllowThreads(__tstate); | |
36675 | if (PyErr_Occurred()) SWIG_fail; | |
36676 | } | |
36677 | Py_INCREF(Py_None); resultobj = Py_None; | |
36678 | return resultobj; | |
36679 | fail: | |
36680 | return NULL; | |
36681 | } | |
36682 | ||
36683 | ||
c370783e | 36684 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36685 | PyObject *resultobj; |
36686 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36687 | int arg2 ; | |
36688 | PyObject * obj0 = 0 ; | |
36689 | PyObject * obj1 = 0 ; | |
36690 | char *kwnames[] = { | |
36691 | (char *) "self",(char *) "gap", NULL | |
36692 | }; | |
36693 | ||
36694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; | |
36695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 36697 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36698 | if (PyErr_Occurred()) SWIG_fail; |
36699 | { | |
36700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36701 | (arg1)->SetVGap(arg2); | |
36702 | ||
36703 | wxPyEndAllowThreads(__tstate); | |
36704 | if (PyErr_Occurred()) SWIG_fail; | |
36705 | } | |
36706 | Py_INCREF(Py_None); resultobj = Py_None; | |
36707 | return resultobj; | |
36708 | fail: | |
36709 | return NULL; | |
36710 | } | |
36711 | ||
36712 | ||
c370783e | 36713 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36714 | PyObject *resultobj; |
36715 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36716 | int arg2 ; | |
36717 | PyObject * obj0 = 0 ; | |
36718 | PyObject * obj1 = 0 ; | |
36719 | char *kwnames[] = { | |
36720 | (char *) "self",(char *) "gap", NULL | |
36721 | }; | |
36722 | ||
36723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; | |
36724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 36726 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36727 | if (PyErr_Occurred()) SWIG_fail; |
36728 | { | |
36729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36730 | (arg1)->SetHGap(arg2); | |
36731 | ||
36732 | wxPyEndAllowThreads(__tstate); | |
36733 | if (PyErr_Occurred()) SWIG_fail; | |
36734 | } | |
36735 | Py_INCREF(Py_None); resultobj = Py_None; | |
36736 | return resultobj; | |
36737 | fail: | |
36738 | return NULL; | |
36739 | } | |
36740 | ||
36741 | ||
c370783e | 36742 | static PyObject *_wrap_GridSizer_GetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36743 | PyObject *resultobj; |
36744 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36745 | int result; | |
36746 | PyObject * obj0 = 0 ; | |
36747 | char *kwnames[] = { | |
36748 | (char *) "self", NULL | |
36749 | }; | |
36750 | ||
36751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
36752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36754 | { | |
36755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36756 | result = (int)(arg1)->GetCols(); | |
36757 | ||
36758 | wxPyEndAllowThreads(__tstate); | |
36759 | if (PyErr_Occurred()) SWIG_fail; | |
36760 | } | |
c370783e | 36761 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
36762 | return resultobj; |
36763 | fail: | |
36764 | return NULL; | |
36765 | } | |
36766 | ||
36767 | ||
c370783e | 36768 | static PyObject *_wrap_GridSizer_GetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36769 | PyObject *resultobj; |
36770 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36771 | int result; | |
36772 | PyObject * obj0 = 0 ; | |
36773 | char *kwnames[] = { | |
36774 | (char *) "self", NULL | |
36775 | }; | |
36776 | ||
36777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
36778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36780 | { | |
36781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36782 | result = (int)(arg1)->GetRows(); | |
36783 | ||
36784 | wxPyEndAllowThreads(__tstate); | |
36785 | if (PyErr_Occurred()) SWIG_fail; | |
36786 | } | |
c370783e | 36787 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
36788 | return resultobj; |
36789 | fail: | |
36790 | return NULL; | |
36791 | } | |
36792 | ||
36793 | ||
c370783e | 36794 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36795 | PyObject *resultobj; |
36796 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36797 | int result; | |
36798 | PyObject * obj0 = 0 ; | |
36799 | char *kwnames[] = { | |
36800 | (char *) "self", NULL | |
36801 | }; | |
36802 | ||
36803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
36804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36806 | { | |
36807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36808 | result = (int)(arg1)->GetVGap(); | |
36809 | ||
36810 | wxPyEndAllowThreads(__tstate); | |
36811 | if (PyErr_Occurred()) SWIG_fail; | |
36812 | } | |
c370783e | 36813 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
36814 | return resultobj; |
36815 | fail: | |
36816 | return NULL; | |
36817 | } | |
36818 | ||
36819 | ||
c370783e | 36820 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36821 | PyObject *resultobj; |
36822 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36823 | int result; | |
36824 | PyObject * obj0 = 0 ; | |
36825 | char *kwnames[] = { | |
36826 | (char *) "self", NULL | |
36827 | }; | |
36828 | ||
36829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
36830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36832 | { | |
36833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36834 | result = (int)(arg1)->GetHGap(); | |
36835 | ||
36836 | wxPyEndAllowThreads(__tstate); | |
36837 | if (PyErr_Occurred()) SWIG_fail; | |
36838 | } | |
c370783e | 36839 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
36840 | return resultobj; |
36841 | fail: | |
36842 | return NULL; | |
36843 | } | |
36844 | ||
36845 | ||
c370783e | 36846 | static PyObject * GridSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
36847 | PyObject *obj; |
36848 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36849 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
36850 | Py_INCREF(obj); | |
36851 | return Py_BuildValue((char *)""); | |
36852 | } | |
c370783e | 36853 | static PyObject *_wrap_new_FlexGridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36854 | PyObject *resultobj; |
36855 | int arg1 = (int) 1 ; | |
36856 | int arg2 = (int) 0 ; | |
36857 | int arg3 = (int) 0 ; | |
36858 | int arg4 = (int) 0 ; | |
36859 | wxFlexGridSizer *result; | |
36860 | PyObject * obj0 = 0 ; | |
36861 | PyObject * obj1 = 0 ; | |
36862 | PyObject * obj2 = 0 ; | |
36863 | PyObject * obj3 = 0 ; | |
36864 | char *kwnames[] = { | |
36865 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
36866 | }; | |
36867 | ||
36868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36869 | if (obj0) { | |
c370783e | 36870 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
36871 | if (PyErr_Occurred()) SWIG_fail; |
36872 | } | |
36873 | if (obj1) { | |
c370783e | 36874 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36875 | if (PyErr_Occurred()) SWIG_fail; |
36876 | } | |
36877 | if (obj2) { | |
c370783e | 36878 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
36879 | if (PyErr_Occurred()) SWIG_fail; |
36880 | } | |
36881 | if (obj3) { | |
c370783e | 36882 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
36883 | if (PyErr_Occurred()) SWIG_fail; |
36884 | } | |
36885 | { | |
36886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36887 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
36888 | ||
36889 | wxPyEndAllowThreads(__tstate); | |
36890 | if (PyErr_Occurred()) SWIG_fail; | |
36891 | } | |
36892 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); | |
36893 | return resultobj; | |
36894 | fail: | |
36895 | return NULL; | |
36896 | } | |
36897 | ||
36898 | ||
c370783e | 36899 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36900 | PyObject *resultobj; |
36901 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36902 | size_t arg2 ; | |
36903 | int arg3 = (int) 0 ; | |
36904 | PyObject * obj0 = 0 ; | |
36905 | PyObject * obj1 = 0 ; | |
36906 | PyObject * obj2 = 0 ; | |
36907 | char *kwnames[] = { | |
36908 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
36909 | }; | |
36910 | ||
36911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 36914 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
36915 | if (PyErr_Occurred()) SWIG_fail; |
36916 | if (obj2) { | |
c370783e | 36917 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
36918 | if (PyErr_Occurred()) SWIG_fail; |
36919 | } | |
36920 | { | |
36921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36922 | (arg1)->AddGrowableRow(arg2,arg3); | |
36923 | ||
36924 | wxPyEndAllowThreads(__tstate); | |
36925 | if (PyErr_Occurred()) SWIG_fail; | |
36926 | } | |
36927 | Py_INCREF(Py_None); resultobj = Py_None; | |
36928 | return resultobj; | |
36929 | fail: | |
36930 | return NULL; | |
36931 | } | |
36932 | ||
36933 | ||
c370783e | 36934 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36935 | PyObject *resultobj; |
36936 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36937 | size_t arg2 ; | |
36938 | PyObject * obj0 = 0 ; | |
36939 | PyObject * obj1 = 0 ; | |
36940 | char *kwnames[] = { | |
36941 | (char *) "self",(char *) "idx", NULL | |
36942 | }; | |
36943 | ||
36944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
36945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 36947 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
36948 | if (PyErr_Occurred()) SWIG_fail; |
36949 | { | |
36950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36951 | (arg1)->RemoveGrowableRow(arg2); | |
36952 | ||
36953 | wxPyEndAllowThreads(__tstate); | |
36954 | if (PyErr_Occurred()) SWIG_fail; | |
36955 | } | |
36956 | Py_INCREF(Py_None); resultobj = Py_None; | |
36957 | return resultobj; | |
36958 | fail: | |
36959 | return NULL; | |
36960 | } | |
36961 | ||
36962 | ||
c370783e | 36963 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36964 | PyObject *resultobj; |
36965 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36966 | size_t arg2 ; | |
36967 | int arg3 = (int) 0 ; | |
36968 | PyObject * obj0 = 0 ; | |
36969 | PyObject * obj1 = 0 ; | |
36970 | PyObject * obj2 = 0 ; | |
36971 | char *kwnames[] = { | |
36972 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
36973 | }; | |
36974 | ||
36975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 36978 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
36979 | if (PyErr_Occurred()) SWIG_fail; |
36980 | if (obj2) { | |
c370783e | 36981 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
36982 | if (PyErr_Occurred()) SWIG_fail; |
36983 | } | |
36984 | { | |
36985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36986 | (arg1)->AddGrowableCol(arg2,arg3); | |
36987 | ||
36988 | wxPyEndAllowThreads(__tstate); | |
36989 | if (PyErr_Occurred()) SWIG_fail; | |
36990 | } | |
36991 | Py_INCREF(Py_None); resultobj = Py_None; | |
36992 | return resultobj; | |
36993 | fail: | |
36994 | return NULL; | |
36995 | } | |
36996 | ||
36997 | ||
c370783e | 36998 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36999 | PyObject *resultobj; |
37000 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37001 | size_t arg2 ; | |
37002 | PyObject * obj0 = 0 ; | |
37003 | PyObject * obj1 = 0 ; | |
37004 | char *kwnames[] = { | |
37005 | (char *) "self",(char *) "idx", NULL | |
37006 | }; | |
37007 | ||
37008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
37009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37011 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37012 | if (PyErr_Occurred()) SWIG_fail; |
37013 | { | |
37014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37015 | (arg1)->RemoveGrowableCol(arg2); | |
37016 | ||
37017 | wxPyEndAllowThreads(__tstate); | |
37018 | if (PyErr_Occurred()) SWIG_fail; | |
37019 | } | |
37020 | Py_INCREF(Py_None); resultobj = Py_None; | |
37021 | return resultobj; | |
37022 | fail: | |
37023 | return NULL; | |
37024 | } | |
37025 | ||
37026 | ||
c370783e | 37027 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37028 | PyObject *resultobj; |
37029 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37030 | int arg2 ; | |
37031 | PyObject * obj0 = 0 ; | |
37032 | PyObject * obj1 = 0 ; | |
37033 | char *kwnames[] = { | |
37034 | (char *) "self",(char *) "direction", NULL | |
37035 | }; | |
37036 | ||
37037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; | |
37038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37040 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37041 | if (PyErr_Occurred()) SWIG_fail; |
37042 | { | |
37043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37044 | (arg1)->SetFlexibleDirection(arg2); | |
37045 | ||
37046 | wxPyEndAllowThreads(__tstate); | |
37047 | if (PyErr_Occurred()) SWIG_fail; | |
37048 | } | |
37049 | Py_INCREF(Py_None); resultobj = Py_None; | |
37050 | return resultobj; | |
37051 | fail: | |
37052 | return NULL; | |
37053 | } | |
37054 | ||
37055 | ||
c370783e | 37056 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37057 | PyObject *resultobj; |
37058 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37059 | int result; | |
37060 | PyObject * obj0 = 0 ; | |
37061 | char *kwnames[] = { | |
37062 | (char *) "self", NULL | |
37063 | }; | |
37064 | ||
37065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
37066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37068 | { | |
37069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37070 | result = (int)(arg1)->GetFlexibleDirection(); | |
37071 | ||
37072 | wxPyEndAllowThreads(__tstate); | |
37073 | if (PyErr_Occurred()) SWIG_fail; | |
37074 | } | |
c370783e | 37075 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37076 | return resultobj; |
37077 | fail: | |
37078 | return NULL; | |
37079 | } | |
37080 | ||
37081 | ||
c370783e | 37082 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37083 | PyObject *resultobj; |
37084 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37085 | int arg2 ; | |
37086 | PyObject * obj0 = 0 ; | |
37087 | PyObject * obj1 = 0 ; | |
37088 | char *kwnames[] = { | |
37089 | (char *) "self",(char *) "mode", NULL | |
37090 | }; | |
37091 | ||
37092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; | |
37093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37095 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37096 | if (PyErr_Occurred()) SWIG_fail; |
37097 | { | |
37098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37099 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
37100 | ||
37101 | wxPyEndAllowThreads(__tstate); | |
37102 | if (PyErr_Occurred()) SWIG_fail; | |
37103 | } | |
37104 | Py_INCREF(Py_None); resultobj = Py_None; | |
37105 | return resultobj; | |
37106 | fail: | |
37107 | return NULL; | |
37108 | } | |
37109 | ||
37110 | ||
c370783e | 37111 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37112 | PyObject *resultobj; |
37113 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37114 | int result; | |
37115 | PyObject * obj0 = 0 ; | |
37116 | char *kwnames[] = { | |
37117 | (char *) "self", NULL | |
37118 | }; | |
37119 | ||
37120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
37121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37123 | { | |
37124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37125 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
37126 | ||
37127 | wxPyEndAllowThreads(__tstate); | |
37128 | if (PyErr_Occurred()) SWIG_fail; | |
37129 | } | |
c370783e | 37130 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37131 | return resultobj; |
37132 | fail: | |
37133 | return NULL; | |
37134 | } | |
37135 | ||
37136 | ||
c370783e | 37137 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37138 | PyObject *resultobj; |
37139 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37140 | wxArrayInt *result; | |
37141 | PyObject * obj0 = 0 ; | |
37142 | char *kwnames[] = { | |
37143 | (char *) "self", NULL | |
37144 | }; | |
37145 | ||
37146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
37147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37149 | { | |
37150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37151 | { | |
37152 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
37153 | result = (wxArrayInt *) &_result_ref; | |
37154 | } | |
37155 | ||
37156 | wxPyEndAllowThreads(__tstate); | |
37157 | if (PyErr_Occurred()) SWIG_fail; | |
37158 | } | |
37159 | { | |
37160 | resultobj = PyList_New(0); | |
37161 | size_t idx; | |
37162 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
37163 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
37164 | PyList_Append(resultobj, val); | |
37165 | Py_DECREF(val); | |
37166 | } | |
37167 | } | |
37168 | return resultobj; | |
37169 | fail: | |
37170 | return NULL; | |
37171 | } | |
37172 | ||
37173 | ||
c370783e | 37174 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37175 | PyObject *resultobj; |
37176 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37177 | wxArrayInt *result; | |
37178 | PyObject * obj0 = 0 ; | |
37179 | char *kwnames[] = { | |
37180 | (char *) "self", NULL | |
37181 | }; | |
37182 | ||
37183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
37184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37186 | { | |
37187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37188 | { | |
37189 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
37190 | result = (wxArrayInt *) &_result_ref; | |
37191 | } | |
37192 | ||
37193 | wxPyEndAllowThreads(__tstate); | |
37194 | if (PyErr_Occurred()) SWIG_fail; | |
37195 | } | |
37196 | { | |
37197 | resultobj = PyList_New(0); | |
37198 | size_t idx; | |
37199 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
37200 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
37201 | PyList_Append(resultobj, val); | |
37202 | Py_DECREF(val); | |
37203 | } | |
37204 | } | |
37205 | return resultobj; | |
37206 | fail: | |
37207 | return NULL; | |
37208 | } | |
37209 | ||
37210 | ||
c370783e | 37211 | static PyObject * FlexGridSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37212 | PyObject *obj; |
37213 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37214 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
37215 | Py_INCREF(obj); | |
37216 | return Py_BuildValue((char *)""); | |
37217 | } | |
c370783e | 37218 | static PyObject *_wrap_new_GBPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37219 | PyObject *resultobj; |
37220 | int arg1 = (int) 0 ; | |
37221 | int arg2 = (int) 0 ; | |
37222 | wxGBPosition *result; | |
37223 | PyObject * obj0 = 0 ; | |
37224 | PyObject * obj1 = 0 ; | |
37225 | char *kwnames[] = { | |
37226 | (char *) "row",(char *) "col", NULL | |
37227 | }; | |
37228 | ||
37229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; | |
37230 | if (obj0) { | |
c370783e | 37231 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
37232 | if (PyErr_Occurred()) SWIG_fail; |
37233 | } | |
37234 | if (obj1) { | |
c370783e | 37235 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37236 | if (PyErr_Occurred()) SWIG_fail; |
37237 | } | |
37238 | { | |
37239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37240 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
37241 | ||
37242 | wxPyEndAllowThreads(__tstate); | |
37243 | if (PyErr_Occurred()) SWIG_fail; | |
37244 | } | |
37245 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); | |
37246 | return resultobj; | |
37247 | fail: | |
37248 | return NULL; | |
37249 | } | |
37250 | ||
37251 | ||
c370783e | 37252 | static PyObject *_wrap_GBPosition_GetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37253 | PyObject *resultobj; |
37254 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37255 | int result; | |
37256 | PyObject * obj0 = 0 ; | |
37257 | char *kwnames[] = { | |
37258 | (char *) "self", NULL | |
37259 | }; | |
37260 | ||
37261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
37262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37264 | { | |
37265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37266 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
37267 | ||
37268 | wxPyEndAllowThreads(__tstate); | |
37269 | if (PyErr_Occurred()) SWIG_fail; | |
37270 | } | |
c370783e | 37271 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37272 | return resultobj; |
37273 | fail: | |
37274 | return NULL; | |
37275 | } | |
37276 | ||
37277 | ||
c370783e | 37278 | static PyObject *_wrap_GBPosition_GetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37279 | PyObject *resultobj; |
37280 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37281 | int result; | |
37282 | PyObject * obj0 = 0 ; | |
37283 | char *kwnames[] = { | |
37284 | (char *) "self", NULL | |
37285 | }; | |
37286 | ||
37287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
37288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37290 | { | |
37291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37292 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
37293 | ||
37294 | wxPyEndAllowThreads(__tstate); | |
37295 | if (PyErr_Occurred()) SWIG_fail; | |
37296 | } | |
c370783e | 37297 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37298 | return resultobj; |
37299 | fail: | |
37300 | return NULL; | |
37301 | } | |
37302 | ||
37303 | ||
c370783e | 37304 | static PyObject *_wrap_GBPosition_SetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37305 | PyObject *resultobj; |
37306 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37307 | int arg2 ; | |
37308 | PyObject * obj0 = 0 ; | |
37309 | PyObject * obj1 = 0 ; | |
37310 | char *kwnames[] = { | |
37311 | (char *) "self",(char *) "row", NULL | |
37312 | }; | |
37313 | ||
37314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; | |
37315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37317 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37318 | if (PyErr_Occurred()) SWIG_fail; |
37319 | { | |
37320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37321 | (arg1)->SetRow(arg2); | |
37322 | ||
37323 | wxPyEndAllowThreads(__tstate); | |
37324 | if (PyErr_Occurred()) SWIG_fail; | |
37325 | } | |
37326 | Py_INCREF(Py_None); resultobj = Py_None; | |
37327 | return resultobj; | |
37328 | fail: | |
37329 | return NULL; | |
37330 | } | |
37331 | ||
37332 | ||
c370783e | 37333 | static PyObject *_wrap_GBPosition_SetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37334 | PyObject *resultobj; |
37335 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37336 | int arg2 ; | |
37337 | PyObject * obj0 = 0 ; | |
37338 | PyObject * obj1 = 0 ; | |
37339 | char *kwnames[] = { | |
37340 | (char *) "self",(char *) "col", NULL | |
37341 | }; | |
37342 | ||
37343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; | |
37344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37346 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37347 | if (PyErr_Occurred()) SWIG_fail; |
37348 | { | |
37349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37350 | (arg1)->SetCol(arg2); | |
37351 | ||
37352 | wxPyEndAllowThreads(__tstate); | |
37353 | if (PyErr_Occurred()) SWIG_fail; | |
37354 | } | |
37355 | Py_INCREF(Py_None); resultobj = Py_None; | |
37356 | return resultobj; | |
37357 | fail: | |
37358 | return NULL; | |
37359 | } | |
37360 | ||
37361 | ||
c370783e | 37362 | static PyObject *_wrap_GBPosition___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37363 | PyObject *resultobj; |
37364 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37365 | wxGBPosition *arg2 = 0 ; | |
37366 | bool result; | |
37367 | wxGBPosition temp2 ; | |
37368 | PyObject * obj0 = 0 ; | |
37369 | PyObject * obj1 = 0 ; | |
37370 | char *kwnames[] = { | |
37371 | (char *) "self",(char *) "other", NULL | |
37372 | }; | |
37373 | ||
37374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
37375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37377 | { | |
37378 | arg2 = &temp2; | |
37379 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37380 | } | |
37381 | { | |
37382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37383 | result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); | |
37384 | ||
37385 | wxPyEndAllowThreads(__tstate); | |
37386 | if (PyErr_Occurred()) SWIG_fail; | |
37387 | } | |
37388 | { | |
37389 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37390 | } | |
37391 | return resultobj; | |
37392 | fail: | |
37393 | return NULL; | |
37394 | } | |
37395 | ||
37396 | ||
c370783e | 37397 | static PyObject *_wrap_GBPosition___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37398 | PyObject *resultobj; |
37399 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37400 | wxGBPosition *arg2 = 0 ; | |
37401 | bool result; | |
37402 | wxGBPosition temp2 ; | |
37403 | PyObject * obj0 = 0 ; | |
37404 | PyObject * obj1 = 0 ; | |
37405 | char *kwnames[] = { | |
37406 | (char *) "self",(char *) "other", NULL | |
37407 | }; | |
37408 | ||
37409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
37410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37412 | { | |
37413 | arg2 = &temp2; | |
37414 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37415 | } | |
37416 | { | |
37417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37418 | result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); | |
37419 | ||
37420 | wxPyEndAllowThreads(__tstate); | |
37421 | if (PyErr_Occurred()) SWIG_fail; | |
37422 | } | |
37423 | { | |
37424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37425 | } | |
37426 | return resultobj; | |
37427 | fail: | |
37428 | return NULL; | |
37429 | } | |
37430 | ||
37431 | ||
c370783e | 37432 | static PyObject *_wrap_GBPosition_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37433 | PyObject *resultobj; |
37434 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37435 | int arg2 = (int) 0 ; | |
37436 | int arg3 = (int) 0 ; | |
37437 | PyObject * obj0 = 0 ; | |
37438 | PyObject * obj1 = 0 ; | |
37439 | PyObject * obj2 = 0 ; | |
37440 | char *kwnames[] = { | |
37441 | (char *) "self",(char *) "row",(char *) "col", NULL | |
37442 | }; | |
37443 | ||
37444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37447 | if (obj1) { | |
c370783e | 37448 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37449 | if (PyErr_Occurred()) SWIG_fail; |
37450 | } | |
37451 | if (obj2) { | |
c370783e | 37452 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37453 | if (PyErr_Occurred()) SWIG_fail; |
37454 | } | |
37455 | { | |
37456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37457 | wxGBPosition_Set(arg1,arg2,arg3); | |
37458 | ||
37459 | wxPyEndAllowThreads(__tstate); | |
37460 | if (PyErr_Occurred()) SWIG_fail; | |
37461 | } | |
37462 | Py_INCREF(Py_None); resultobj = Py_None; | |
37463 | return resultobj; | |
37464 | fail: | |
37465 | return NULL; | |
37466 | } | |
37467 | ||
37468 | ||
c370783e | 37469 | static PyObject *_wrap_GBPosition_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37470 | PyObject *resultobj; |
37471 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37472 | PyObject *result; | |
37473 | PyObject * obj0 = 0 ; | |
37474 | char *kwnames[] = { | |
37475 | (char *) "self", NULL | |
37476 | }; | |
37477 | ||
37478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; | |
37479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37481 | { | |
37482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37483 | result = (PyObject *)wxGBPosition_Get(arg1); | |
37484 | ||
37485 | wxPyEndAllowThreads(__tstate); | |
37486 | if (PyErr_Occurred()) SWIG_fail; | |
37487 | } | |
37488 | resultobj = result; | |
37489 | return resultobj; | |
37490 | fail: | |
37491 | return NULL; | |
37492 | } | |
37493 | ||
37494 | ||
c370783e | 37495 | static PyObject * GBPosition_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37496 | PyObject *obj; |
37497 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37498 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
37499 | Py_INCREF(obj); | |
37500 | return Py_BuildValue((char *)""); | |
37501 | } | |
c370783e | 37502 | static PyObject *_wrap_new_GBSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37503 | PyObject *resultobj; |
37504 | int arg1 = (int) 1 ; | |
37505 | int arg2 = (int) 1 ; | |
37506 | wxGBSpan *result; | |
37507 | PyObject * obj0 = 0 ; | |
37508 | PyObject * obj1 = 0 ; | |
37509 | char *kwnames[] = { | |
37510 | (char *) "rowspan",(char *) "colspan", NULL | |
37511 | }; | |
37512 | ||
37513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; | |
37514 | if (obj0) { | |
c370783e | 37515 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
37516 | if (PyErr_Occurred()) SWIG_fail; |
37517 | } | |
37518 | if (obj1) { | |
c370783e | 37519 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37520 | if (PyErr_Occurred()) SWIG_fail; |
37521 | } | |
37522 | { | |
37523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37524 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
37525 | ||
37526 | wxPyEndAllowThreads(__tstate); | |
37527 | if (PyErr_Occurred()) SWIG_fail; | |
37528 | } | |
37529 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); | |
37530 | return resultobj; | |
37531 | fail: | |
37532 | return NULL; | |
37533 | } | |
37534 | ||
37535 | ||
c370783e | 37536 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37537 | PyObject *resultobj; |
37538 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37539 | int result; | |
37540 | PyObject * obj0 = 0 ; | |
37541 | char *kwnames[] = { | |
37542 | (char *) "self", NULL | |
37543 | }; | |
37544 | ||
37545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
37546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37548 | { | |
37549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37550 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
37551 | ||
37552 | wxPyEndAllowThreads(__tstate); | |
37553 | if (PyErr_Occurred()) SWIG_fail; | |
37554 | } | |
c370783e | 37555 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37556 | return resultobj; |
37557 | fail: | |
37558 | return NULL; | |
37559 | } | |
37560 | ||
37561 | ||
c370783e | 37562 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37563 | PyObject *resultobj; |
37564 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37565 | int result; | |
37566 | PyObject * obj0 = 0 ; | |
37567 | char *kwnames[] = { | |
37568 | (char *) "self", NULL | |
37569 | }; | |
37570 | ||
37571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
37572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37574 | { | |
37575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37576 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
37577 | ||
37578 | wxPyEndAllowThreads(__tstate); | |
37579 | if (PyErr_Occurred()) SWIG_fail; | |
37580 | } | |
c370783e | 37581 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37582 | return resultobj; |
37583 | fail: | |
37584 | return NULL; | |
37585 | } | |
37586 | ||
37587 | ||
c370783e | 37588 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37589 | PyObject *resultobj; |
37590 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37591 | int arg2 ; | |
37592 | PyObject * obj0 = 0 ; | |
37593 | PyObject * obj1 = 0 ; | |
37594 | char *kwnames[] = { | |
37595 | (char *) "self",(char *) "rowspan", NULL | |
37596 | }; | |
37597 | ||
37598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; | |
37599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37601 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37602 | if (PyErr_Occurred()) SWIG_fail; |
37603 | { | |
37604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37605 | (arg1)->SetRowspan(arg2); | |
37606 | ||
37607 | wxPyEndAllowThreads(__tstate); | |
37608 | if (PyErr_Occurred()) SWIG_fail; | |
37609 | } | |
37610 | Py_INCREF(Py_None); resultobj = Py_None; | |
37611 | return resultobj; | |
37612 | fail: | |
37613 | return NULL; | |
37614 | } | |
37615 | ||
37616 | ||
c370783e | 37617 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37618 | PyObject *resultobj; |
37619 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37620 | int arg2 ; | |
37621 | PyObject * obj0 = 0 ; | |
37622 | PyObject * obj1 = 0 ; | |
37623 | char *kwnames[] = { | |
37624 | (char *) "self",(char *) "colspan", NULL | |
37625 | }; | |
37626 | ||
37627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; | |
37628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37630 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37631 | if (PyErr_Occurred()) SWIG_fail; |
37632 | { | |
37633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37634 | (arg1)->SetColspan(arg2); | |
37635 | ||
37636 | wxPyEndAllowThreads(__tstate); | |
37637 | if (PyErr_Occurred()) SWIG_fail; | |
37638 | } | |
37639 | Py_INCREF(Py_None); resultobj = Py_None; | |
37640 | return resultobj; | |
37641 | fail: | |
37642 | return NULL; | |
37643 | } | |
37644 | ||
37645 | ||
c370783e | 37646 | static PyObject *_wrap_GBSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37647 | PyObject *resultobj; |
37648 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37649 | wxGBSpan *arg2 = 0 ; | |
37650 | bool result; | |
37651 | wxGBSpan temp2 ; | |
37652 | PyObject * obj0 = 0 ; | |
37653 | PyObject * obj1 = 0 ; | |
37654 | char *kwnames[] = { | |
37655 | (char *) "self",(char *) "other", NULL | |
37656 | }; | |
37657 | ||
37658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
37659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37661 | { | |
37662 | arg2 = &temp2; | |
37663 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37664 | } | |
37665 | { | |
37666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37667 | result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); | |
37668 | ||
37669 | wxPyEndAllowThreads(__tstate); | |
37670 | if (PyErr_Occurred()) SWIG_fail; | |
37671 | } | |
37672 | { | |
37673 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37674 | } | |
37675 | return resultobj; | |
37676 | fail: | |
37677 | return NULL; | |
37678 | } | |
37679 | ||
37680 | ||
c370783e | 37681 | static PyObject *_wrap_GBSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37682 | PyObject *resultobj; |
37683 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37684 | wxGBSpan *arg2 = 0 ; | |
37685 | bool result; | |
37686 | wxGBSpan temp2 ; | |
37687 | PyObject * obj0 = 0 ; | |
37688 | PyObject * obj1 = 0 ; | |
37689 | char *kwnames[] = { | |
37690 | (char *) "self",(char *) "other", NULL | |
37691 | }; | |
37692 | ||
37693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
37694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37696 | { | |
37697 | arg2 = &temp2; | |
37698 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37699 | } | |
37700 | { | |
37701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37702 | result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); | |
37703 | ||
37704 | wxPyEndAllowThreads(__tstate); | |
37705 | if (PyErr_Occurred()) SWIG_fail; | |
37706 | } | |
37707 | { | |
37708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37709 | } | |
37710 | return resultobj; | |
37711 | fail: | |
37712 | return NULL; | |
37713 | } | |
37714 | ||
37715 | ||
c370783e | 37716 | static PyObject *_wrap_GBSpan_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37717 | PyObject *resultobj; |
37718 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37719 | int arg2 = (int) 1 ; | |
37720 | int arg3 = (int) 1 ; | |
37721 | PyObject * obj0 = 0 ; | |
37722 | PyObject * obj1 = 0 ; | |
37723 | PyObject * obj2 = 0 ; | |
37724 | char *kwnames[] = { | |
37725 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
37726 | }; | |
37727 | ||
37728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37731 | if (obj1) { | |
c370783e | 37732 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37733 | if (PyErr_Occurred()) SWIG_fail; |
37734 | } | |
37735 | if (obj2) { | |
c370783e | 37736 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37737 | if (PyErr_Occurred()) SWIG_fail; |
37738 | } | |
37739 | { | |
37740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37741 | wxGBSpan_Set(arg1,arg2,arg3); | |
37742 | ||
37743 | wxPyEndAllowThreads(__tstate); | |
37744 | if (PyErr_Occurred()) SWIG_fail; | |
37745 | } | |
37746 | Py_INCREF(Py_None); resultobj = Py_None; | |
37747 | return resultobj; | |
37748 | fail: | |
37749 | return NULL; | |
37750 | } | |
37751 | ||
37752 | ||
c370783e | 37753 | static PyObject *_wrap_GBSpan_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37754 | PyObject *resultobj; |
37755 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37756 | PyObject *result; | |
37757 | PyObject * obj0 = 0 ; | |
37758 | char *kwnames[] = { | |
37759 | (char *) "self", NULL | |
37760 | }; | |
37761 | ||
37762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; | |
37763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37765 | { | |
37766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37767 | result = (PyObject *)wxGBSpan_Get(arg1); | |
37768 | ||
37769 | wxPyEndAllowThreads(__tstate); | |
37770 | if (PyErr_Occurred()) SWIG_fail; | |
37771 | } | |
37772 | resultobj = result; | |
37773 | return resultobj; | |
37774 | fail: | |
37775 | return NULL; | |
37776 | } | |
37777 | ||
37778 | ||
c370783e | 37779 | static PyObject * GBSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37780 | PyObject *obj; |
37781 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37782 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
37783 | Py_INCREF(obj); | |
37784 | return Py_BuildValue((char *)""); | |
37785 | } | |
c370783e | 37786 | static int _wrap_DefaultSpan_set(PyObject *) { |
d55e5bfc RD |
37787 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); |
37788 | return 1; | |
37789 | } | |
37790 | ||
37791 | ||
37792 | static PyObject *_wrap_DefaultSpan_get() { | |
37793 | PyObject *pyobj; | |
37794 | ||
37795 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); | |
37796 | return pyobj; | |
37797 | } | |
37798 | ||
37799 | ||
c370783e | 37800 | static PyObject *_wrap_new_GBSizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37801 | PyObject *resultobj; |
37802 | wxGBSizerItem *result; | |
37803 | char *kwnames[] = { | |
37804 | NULL | |
37805 | }; | |
37806 | ||
37807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
37808 | { | |
37809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37810 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
37811 | ||
37812 | wxPyEndAllowThreads(__tstate); | |
37813 | if (PyErr_Occurred()) SWIG_fail; | |
37814 | } | |
37815 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37816 | return resultobj; | |
37817 | fail: | |
37818 | return NULL; | |
37819 | } | |
37820 | ||
37821 | ||
c370783e | 37822 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37823 | PyObject *resultobj; |
37824 | wxWindow *arg1 = (wxWindow *) 0 ; | |
37825 | wxGBPosition *arg2 = 0 ; | |
37826 | wxGBSpan *arg3 = 0 ; | |
37827 | int arg4 ; | |
37828 | int arg5 ; | |
bfddbb17 | 37829 | PyObject *arg6 = (PyObject *) NULL ; |
d55e5bfc RD |
37830 | wxGBSizerItem *result; |
37831 | wxGBPosition temp2 ; | |
37832 | wxGBSpan temp3 ; | |
37833 | PyObject * obj0 = 0 ; | |
37834 | PyObject * obj1 = 0 ; | |
37835 | PyObject * obj2 = 0 ; | |
37836 | PyObject * obj3 = 0 ; | |
37837 | PyObject * obj4 = 0 ; | |
37838 | PyObject * obj5 = 0 ; | |
37839 | char *kwnames[] = { | |
37840 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37841 | }; | |
37842 | ||
bfddbb17 | 37843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
37844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
37845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37846 | { | |
37847 | arg2 = &temp2; | |
37848 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37849 | } | |
37850 | { | |
37851 | arg3 = &temp3; | |
37852 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37853 | } | |
c370783e | 37854 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 37855 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 37856 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 37857 | if (PyErr_Occurred()) SWIG_fail; |
bfddbb17 RD |
37858 | if (obj5) { |
37859 | arg6 = obj5; | |
37860 | } | |
d55e5bfc RD |
37861 | { |
37862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bfddbb17 | 37863 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d55e5bfc RD |
37864 | |
37865 | wxPyEndAllowThreads(__tstate); | |
37866 | if (PyErr_Occurred()) SWIG_fail; | |
37867 | } | |
37868 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37869 | return resultobj; | |
37870 | fail: | |
37871 | return NULL; | |
37872 | } | |
37873 | ||
37874 | ||
c370783e | 37875 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37876 | PyObject *resultobj; |
37877 | wxSizer *arg1 = (wxSizer *) 0 ; | |
37878 | wxGBPosition *arg2 = 0 ; | |
37879 | wxGBSpan *arg3 = 0 ; | |
37880 | int arg4 ; | |
37881 | int arg5 ; | |
bfddbb17 | 37882 | PyObject *arg6 = (PyObject *) NULL ; |
d55e5bfc RD |
37883 | wxGBSizerItem *result; |
37884 | wxGBPosition temp2 ; | |
37885 | wxGBSpan temp3 ; | |
37886 | PyObject * obj0 = 0 ; | |
37887 | PyObject * obj1 = 0 ; | |
37888 | PyObject * obj2 = 0 ; | |
37889 | PyObject * obj3 = 0 ; | |
37890 | PyObject * obj4 = 0 ; | |
37891 | PyObject * obj5 = 0 ; | |
37892 | char *kwnames[] = { | |
37893 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37894 | }; | |
37895 | ||
bfddbb17 | 37896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
37897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
37898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37899 | { | |
37900 | arg2 = &temp2; | |
37901 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37902 | } | |
37903 | { | |
37904 | arg3 = &temp3; | |
37905 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37906 | } | |
c370783e | 37907 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 37908 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 37909 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 37910 | if (PyErr_Occurred()) SWIG_fail; |
bfddbb17 RD |
37911 | if (obj5) { |
37912 | arg6 = obj5; | |
37913 | } | |
d55e5bfc RD |
37914 | { |
37915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bfddbb17 | 37916 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d55e5bfc RD |
37917 | |
37918 | wxPyEndAllowThreads(__tstate); | |
37919 | if (PyErr_Occurred()) SWIG_fail; | |
37920 | } | |
37921 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37922 | return resultobj; | |
37923 | fail: | |
37924 | return NULL; | |
37925 | } | |
37926 | ||
37927 | ||
c370783e | 37928 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37929 | PyObject *resultobj; |
37930 | int arg1 ; | |
37931 | int arg2 ; | |
37932 | wxGBPosition *arg3 = 0 ; | |
37933 | wxGBSpan *arg4 = 0 ; | |
37934 | int arg5 ; | |
37935 | int arg6 ; | |
bfddbb17 | 37936 | PyObject *arg7 = (PyObject *) NULL ; |
d55e5bfc RD |
37937 | wxGBSizerItem *result; |
37938 | wxGBPosition temp3 ; | |
37939 | wxGBSpan temp4 ; | |
37940 | PyObject * obj0 = 0 ; | |
37941 | PyObject * obj1 = 0 ; | |
37942 | PyObject * obj2 = 0 ; | |
37943 | PyObject * obj3 = 0 ; | |
37944 | PyObject * obj4 = 0 ; | |
37945 | PyObject * obj5 = 0 ; | |
37946 | PyObject * obj6 = 0 ; | |
37947 | char *kwnames[] = { | |
37948 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37949 | }; | |
37950 | ||
bfddbb17 | 37951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
c370783e | 37952 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 37953 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 37954 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37955 | if (PyErr_Occurred()) SWIG_fail; |
37956 | { | |
37957 | arg3 = &temp3; | |
37958 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37959 | } | |
37960 | { | |
37961 | arg4 = &temp4; | |
37962 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
37963 | } | |
c370783e | 37964 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 37965 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 37966 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc | 37967 | if (PyErr_Occurred()) SWIG_fail; |
bfddbb17 RD |
37968 | if (obj6) { |
37969 | arg7 = obj6; | |
37970 | } | |
d55e5bfc RD |
37971 | { |
37972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bfddbb17 | 37973 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); |
d55e5bfc RD |
37974 | |
37975 | wxPyEndAllowThreads(__tstate); | |
37976 | if (PyErr_Occurred()) SWIG_fail; | |
37977 | } | |
37978 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37979 | return resultobj; | |
37980 | fail: | |
37981 | return NULL; | |
37982 | } | |
37983 | ||
37984 | ||
c370783e | 37985 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37986 | PyObject *resultobj; |
37987 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
37988 | wxGBPosition result; | |
37989 | PyObject * obj0 = 0 ; | |
37990 | char *kwnames[] = { | |
37991 | (char *) "self", NULL | |
37992 | }; | |
37993 | ||
37994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
37995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
37996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37997 | { | |
37998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37999 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
38000 | ||
38001 | wxPyEndAllowThreads(__tstate); | |
38002 | if (PyErr_Occurred()) SWIG_fail; | |
38003 | } | |
38004 | { | |
38005 | wxGBPosition * resultptr; | |
38006 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38007 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38008 | } | |
38009 | return resultobj; | |
38010 | fail: | |
38011 | return NULL; | |
38012 | } | |
38013 | ||
38014 | ||
c370783e | 38015 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38016 | PyObject *resultobj; |
38017 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38018 | wxGBSpan result; | |
38019 | PyObject * obj0 = 0 ; | |
38020 | char *kwnames[] = { | |
38021 | (char *) "self", NULL | |
38022 | }; | |
38023 | ||
38024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
38025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38027 | { | |
38028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38029 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
38030 | ||
38031 | wxPyEndAllowThreads(__tstate); | |
38032 | if (PyErr_Occurred()) SWIG_fail; | |
38033 | } | |
38034 | { | |
38035 | wxGBSpan * resultptr; | |
38036 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38037 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38038 | } | |
38039 | return resultobj; | |
38040 | fail: | |
38041 | return NULL; | |
38042 | } | |
38043 | ||
38044 | ||
c370783e | 38045 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38046 | PyObject *resultobj; |
38047 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38048 | wxGBPosition *arg2 = 0 ; | |
38049 | bool result; | |
38050 | wxGBPosition temp2 ; | |
38051 | PyObject * obj0 = 0 ; | |
38052 | PyObject * obj1 = 0 ; | |
38053 | char *kwnames[] = { | |
38054 | (char *) "self",(char *) "pos", NULL | |
38055 | }; | |
38056 | ||
38057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
38058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38060 | { | |
38061 | arg2 = &temp2; | |
38062 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38063 | } | |
38064 | { | |
38065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38066 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
38067 | ||
38068 | wxPyEndAllowThreads(__tstate); | |
38069 | if (PyErr_Occurred()) SWIG_fail; | |
38070 | } | |
38071 | { | |
38072 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38073 | } | |
38074 | return resultobj; | |
38075 | fail: | |
38076 | return NULL; | |
38077 | } | |
38078 | ||
38079 | ||
c370783e | 38080 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38081 | PyObject *resultobj; |
38082 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38083 | wxGBSpan *arg2 = 0 ; | |
38084 | bool result; | |
38085 | wxGBSpan temp2 ; | |
38086 | PyObject * obj0 = 0 ; | |
38087 | PyObject * obj1 = 0 ; | |
38088 | char *kwnames[] = { | |
38089 | (char *) "self",(char *) "span", NULL | |
38090 | }; | |
38091 | ||
38092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
38093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38095 | { | |
38096 | arg2 = &temp2; | |
38097 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
38098 | } | |
38099 | { | |
38100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38101 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
38102 | ||
38103 | wxPyEndAllowThreads(__tstate); | |
38104 | if (PyErr_Occurred()) SWIG_fail; | |
38105 | } | |
38106 | { | |
38107 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38108 | } | |
38109 | return resultobj; | |
38110 | fail: | |
38111 | return NULL; | |
38112 | } | |
38113 | ||
38114 | ||
c370783e | 38115 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38116 | PyObject *resultobj; |
38117 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38118 | wxGBSizerItem *arg2 = 0 ; | |
38119 | bool result; | |
38120 | PyObject * obj0 = 0 ; | |
38121 | PyObject * obj1 = 0 ; | |
bfddbb17 RD |
38122 | char *kwnames[] = { |
38123 | (char *) "self",(char *) "other", NULL | |
38124 | }; | |
d55e5bfc | 38125 | |
bfddbb17 | 38126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
38127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38129 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
38130 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
38131 | SWIG_fail; | |
38132 | if (arg2 == NULL) { | |
38133 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
38134 | SWIG_fail; | |
38135 | } | |
38136 | { | |
38137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38138 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
38139 | ||
38140 | wxPyEndAllowThreads(__tstate); | |
38141 | if (PyErr_Occurred()) SWIG_fail; | |
38142 | } | |
38143 | { | |
38144 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38145 | } | |
38146 | return resultobj; | |
38147 | fail: | |
38148 | return NULL; | |
38149 | } | |
38150 | ||
38151 | ||
c370783e | 38152 | static PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38153 | PyObject *resultobj; |
38154 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38155 | wxGBPosition *arg2 = 0 ; | |
38156 | wxGBSpan *arg3 = 0 ; | |
38157 | bool result; | |
38158 | wxGBPosition temp2 ; | |
38159 | wxGBSpan temp3 ; | |
38160 | PyObject * obj0 = 0 ; | |
38161 | PyObject * obj1 = 0 ; | |
38162 | PyObject * obj2 = 0 ; | |
bfddbb17 RD |
38163 | char *kwnames[] = { |
38164 | (char *) "self",(char *) "pos",(char *) "span", NULL | |
38165 | }; | |
d55e5bfc | 38166 | |
bfddbb17 | 38167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
38168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38170 | { | |
38171 | arg2 = &temp2; | |
38172 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38173 | } | |
38174 | { | |
38175 | arg3 = &temp3; | |
38176 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38177 | } | |
38178 | { | |
38179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38180 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
38181 | ||
38182 | wxPyEndAllowThreads(__tstate); | |
38183 | if (PyErr_Occurred()) SWIG_fail; | |
38184 | } | |
38185 | { | |
38186 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38187 | } | |
38188 | return resultobj; | |
38189 | fail: | |
38190 | return NULL; | |
38191 | } | |
38192 | ||
38193 | ||
c370783e | 38194 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38195 | PyObject *resultobj; |
38196 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
bfddbb17 | 38197 | wxGBPosition result; |
d55e5bfc | 38198 | PyObject * obj0 = 0 ; |
d55e5bfc | 38199 | char *kwnames[] = { |
bfddbb17 | 38200 | (char *) "self", NULL |
d55e5bfc RD |
38201 | }; |
38202 | ||
bfddbb17 | 38203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetEndPos",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
38204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d55e5bfc RD |
38206 | { |
38207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bfddbb17 | 38208 | result = wxGBSizerItem_GetEndPos(arg1); |
d55e5bfc RD |
38209 | |
38210 | wxPyEndAllowThreads(__tstate); | |
38211 | if (PyErr_Occurred()) SWIG_fail; | |
38212 | } | |
bfddbb17 RD |
38213 | { |
38214 | wxGBPosition * resultptr; | |
38215 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38216 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38217 | } | |
d55e5bfc RD |
38218 | return resultobj; |
38219 | fail: | |
38220 | return NULL; | |
38221 | } | |
38222 | ||
38223 | ||
c370783e | 38224 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38225 | PyObject *resultobj; |
38226 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38227 | wxGridBagSizer *result; | |
38228 | PyObject * obj0 = 0 ; | |
38229 | char *kwnames[] = { | |
38230 | (char *) "self", NULL | |
38231 | }; | |
38232 | ||
38233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
38234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38236 | { | |
38237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38238 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
38239 | ||
38240 | wxPyEndAllowThreads(__tstate); | |
38241 | if (PyErr_Occurred()) SWIG_fail; | |
38242 | } | |
38243 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); | |
38244 | return resultobj; | |
38245 | fail: | |
38246 | return NULL; | |
38247 | } | |
38248 | ||
38249 | ||
c370783e | 38250 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38251 | PyObject *resultobj; |
38252 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38253 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
38254 | PyObject * obj0 = 0 ; | |
38255 | PyObject * obj1 = 0 ; | |
38256 | char *kwnames[] = { | |
38257 | (char *) "self",(char *) "sizer", NULL | |
38258 | }; | |
38259 | ||
38260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
38261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38263 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer, | |
38264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38265 | { | |
38266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38267 | (arg1)->SetGBSizer(arg2); | |
38268 | ||
38269 | wxPyEndAllowThreads(__tstate); | |
38270 | if (PyErr_Occurred()) SWIG_fail; | |
38271 | } | |
38272 | Py_INCREF(Py_None); resultobj = Py_None; | |
38273 | return resultobj; | |
38274 | fail: | |
38275 | return NULL; | |
38276 | } | |
38277 | ||
38278 | ||
c370783e | 38279 | static PyObject * GBSizerItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
38280 | PyObject *obj; |
38281 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38282 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
38283 | Py_INCREF(obj); | |
38284 | return Py_BuildValue((char *)""); | |
38285 | } | |
c370783e | 38286 | static PyObject *_wrap_new_GridBagSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38287 | PyObject *resultobj; |
38288 | int arg1 = (int) 0 ; | |
38289 | int arg2 = (int) 0 ; | |
38290 | wxGridBagSizer *result; | |
38291 | PyObject * obj0 = 0 ; | |
38292 | PyObject * obj1 = 0 ; | |
38293 | char *kwnames[] = { | |
38294 | (char *) "vgap",(char *) "hgap", NULL | |
38295 | }; | |
38296 | ||
38297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; | |
38298 | if (obj0) { | |
c370783e | 38299 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
38300 | if (PyErr_Occurred()) SWIG_fail; |
38301 | } | |
38302 | if (obj1) { | |
c370783e | 38303 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38304 | if (PyErr_Occurred()) SWIG_fail; |
38305 | } | |
38306 | { | |
38307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38308 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
38309 | ||
38310 | wxPyEndAllowThreads(__tstate); | |
38311 | if (PyErr_Occurred()) SWIG_fail; | |
38312 | } | |
38313 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); | |
38314 | return resultobj; | |
38315 | fail: | |
38316 | return NULL; | |
38317 | } | |
38318 | ||
38319 | ||
c370783e | 38320 | static PyObject *_wrap_GridBagSizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38321 | PyObject *resultobj; |
38322 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38323 | PyObject *arg2 = (PyObject *) 0 ; | |
38324 | wxGBPosition *arg3 = 0 ; | |
38325 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
38326 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
38327 | int arg5 = (int) 0 ; | |
38328 | int arg6 = (int) 0 ; | |
38329 | PyObject *arg7 = (PyObject *) NULL ; | |
38330 | bool result; | |
38331 | wxGBPosition temp3 ; | |
38332 | wxGBSpan temp4 ; | |
38333 | PyObject * obj0 = 0 ; | |
38334 | PyObject * obj1 = 0 ; | |
38335 | PyObject * obj2 = 0 ; | |
38336 | PyObject * obj3 = 0 ; | |
38337 | PyObject * obj4 = 0 ; | |
38338 | PyObject * obj5 = 0 ; | |
38339 | PyObject * obj6 = 0 ; | |
38340 | char *kwnames[] = { | |
38341 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38342 | }; | |
38343 | ||
38344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
38345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38347 | arg2 = obj1; | |
38348 | { | |
38349 | arg3 = &temp3; | |
38350 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38351 | } | |
38352 | if (obj3) { | |
38353 | { | |
38354 | arg4 = &temp4; | |
38355 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
38356 | } | |
38357 | } | |
38358 | if (obj4) { | |
c370783e | 38359 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
38360 | if (PyErr_Occurred()) SWIG_fail; |
38361 | } | |
38362 | if (obj5) { | |
c370783e | 38363 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
38364 | if (PyErr_Occurred()) SWIG_fail; |
38365 | } | |
38366 | if (obj6) { | |
38367 | arg7 = obj6; | |
38368 | } | |
38369 | { | |
38370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38371 | result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
38372 | ||
38373 | wxPyEndAllowThreads(__tstate); | |
38374 | if (PyErr_Occurred()) SWIG_fail; | |
38375 | } | |
38376 | { | |
38377 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38378 | } | |
38379 | return resultobj; | |
38380 | fail: | |
38381 | return NULL; | |
38382 | } | |
38383 | ||
38384 | ||
c370783e | 38385 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38386 | PyObject *resultobj; |
38387 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38388 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
38389 | bool result; | |
38390 | PyObject * obj0 = 0 ; | |
38391 | PyObject * obj1 = 0 ; | |
38392 | char *kwnames[] = { | |
38393 | (char *) "self",(char *) "item", NULL | |
38394 | }; | |
38395 | ||
38396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
38397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38399 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
38400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38401 | { | |
38402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38403 | result = (bool)(arg1)->Add(arg2); | |
38404 | ||
38405 | wxPyEndAllowThreads(__tstate); | |
38406 | if (PyErr_Occurred()) SWIG_fail; | |
38407 | } | |
38408 | { | |
38409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38410 | } | |
38411 | return resultobj; | |
38412 | fail: | |
38413 | return NULL; | |
38414 | } | |
38415 | ||
38416 | ||
c370783e | 38417 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38418 | PyObject *resultobj; |
38419 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38420 | wxSize result; | |
38421 | PyObject * obj0 = 0 ; | |
38422 | char *kwnames[] = { | |
38423 | (char *) "self", NULL | |
38424 | }; | |
38425 | ||
38426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
38427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38429 | { | |
38430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38431 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
38432 | ||
38433 | wxPyEndAllowThreads(__tstate); | |
38434 | if (PyErr_Occurred()) SWIG_fail; | |
38435 | } | |
38436 | { | |
38437 | wxSize * resultptr; | |
38438 | resultptr = new wxSize((wxSize &) result); | |
38439 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
38440 | } | |
38441 | return resultobj; | |
38442 | fail: | |
38443 | return NULL; | |
38444 | } | |
38445 | ||
38446 | ||
c370783e | 38447 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38448 | PyObject *resultobj; |
38449 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38450 | wxSize *arg2 = 0 ; | |
38451 | wxSize temp2 ; | |
38452 | PyObject * obj0 = 0 ; | |
38453 | PyObject * obj1 = 0 ; | |
38454 | char *kwnames[] = { | |
38455 | (char *) "self",(char *) "sz", NULL | |
38456 | }; | |
38457 | ||
38458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
38459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38461 | { | |
38462 | arg2 = &temp2; | |
38463 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
38464 | } | |
38465 | { | |
38466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38467 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
38468 | ||
38469 | wxPyEndAllowThreads(__tstate); | |
38470 | if (PyErr_Occurred()) SWIG_fail; | |
38471 | } | |
38472 | Py_INCREF(Py_None); resultobj = Py_None; | |
38473 | return resultobj; | |
38474 | fail: | |
38475 | return NULL; | |
38476 | } | |
38477 | ||
38478 | ||
c370783e | 38479 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
38480 | PyObject *resultobj; |
38481 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38482 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38483 | wxGBPosition result; | |
38484 | PyObject * obj0 = 0 ; | |
38485 | PyObject * obj1 = 0 ; | |
38486 | ||
38487 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
38488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38490 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38492 | { | |
38493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38494 | result = (arg1)->GetItemPosition(arg2); | |
38495 | ||
38496 | wxPyEndAllowThreads(__tstate); | |
38497 | if (PyErr_Occurred()) SWIG_fail; | |
38498 | } | |
38499 | { | |
38500 | wxGBPosition * resultptr; | |
38501 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38502 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38503 | } | |
38504 | return resultobj; | |
38505 | fail: | |
38506 | return NULL; | |
38507 | } | |
38508 | ||
38509 | ||
c370783e | 38510 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
38511 | PyObject *resultobj; |
38512 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38513 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38514 | wxGBPosition result; | |
38515 | PyObject * obj0 = 0 ; | |
38516 | PyObject * obj1 = 0 ; | |
38517 | ||
38518 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
38519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38521 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38523 | { | |
38524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38525 | result = (arg1)->GetItemPosition(arg2); | |
38526 | ||
38527 | wxPyEndAllowThreads(__tstate); | |
38528 | if (PyErr_Occurred()) SWIG_fail; | |
38529 | } | |
38530 | { | |
38531 | wxGBPosition * resultptr; | |
38532 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38533 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38534 | } | |
38535 | return resultobj; | |
38536 | fail: | |
38537 | return NULL; | |
38538 | } | |
38539 | ||
38540 | ||
c370783e | 38541 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
38542 | PyObject *resultobj; |
38543 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38544 | size_t arg2 ; | |
38545 | wxGBPosition result; | |
38546 | PyObject * obj0 = 0 ; | |
38547 | PyObject * obj1 = 0 ; | |
38548 | ||
38549 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
38550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 38552 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
38553 | if (PyErr_Occurred()) SWIG_fail; |
38554 | { | |
38555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38556 | result = (arg1)->GetItemPosition(arg2); | |
38557 | ||
38558 | wxPyEndAllowThreads(__tstate); | |
38559 | if (PyErr_Occurred()) SWIG_fail; | |
38560 | } | |
38561 | { | |
38562 | wxGBPosition * resultptr; | |
38563 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38564 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38565 | } | |
38566 | return resultobj; | |
38567 | fail: | |
38568 | return NULL; | |
38569 | } | |
38570 | ||
38571 | ||
38572 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
38573 | int argc; | |
38574 | PyObject *argv[3]; | |
38575 | int ii; | |
38576 | ||
38577 | argc = PyObject_Length(args); | |
38578 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38579 | argv[ii] = PyTuple_GetItem(args,ii); | |
38580 | } | |
38581 | if (argc == 2) { | |
38582 | int _v; | |
38583 | { | |
38584 | void *ptr; | |
38585 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38586 | _v = 0; | |
38587 | PyErr_Clear(); | |
38588 | } else { | |
38589 | _v = 1; | |
38590 | } | |
38591 | } | |
38592 | if (_v) { | |
38593 | { | |
38594 | void *ptr; | |
38595 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
38596 | _v = 0; | |
38597 | PyErr_Clear(); | |
38598 | } else { | |
38599 | _v = 1; | |
38600 | } | |
38601 | } | |
38602 | if (_v) { | |
38603 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
38604 | } | |
38605 | } | |
38606 | } | |
38607 | if (argc == 2) { | |
38608 | int _v; | |
38609 | { | |
38610 | void *ptr; | |
38611 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38612 | _v = 0; | |
38613 | PyErr_Clear(); | |
38614 | } else { | |
38615 | _v = 1; | |
38616 | } | |
38617 | } | |
38618 | if (_v) { | |
38619 | { | |
38620 | void *ptr; | |
38621 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
38622 | _v = 0; | |
38623 | PyErr_Clear(); | |
38624 | } else { | |
38625 | _v = 1; | |
38626 | } | |
38627 | } | |
38628 | if (_v) { | |
38629 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
38630 | } | |
38631 | } | |
38632 | } | |
38633 | if (argc == 2) { | |
38634 | int _v; | |
38635 | { | |
38636 | void *ptr; | |
38637 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38638 | _v = 0; | |
38639 | PyErr_Clear(); | |
38640 | } else { | |
38641 | _v = 1; | |
38642 | } | |
38643 | } | |
38644 | if (_v) { | |
c370783e | 38645 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
38646 | if (_v) { |
38647 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
38648 | } | |
38649 | } | |
38650 | } | |
38651 | ||
38652 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
38653 | return NULL; | |
38654 | } | |
38655 | ||
38656 | ||
c370783e | 38657 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
38658 | PyObject *resultobj; |
38659 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38660 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38661 | wxGBPosition *arg3 = 0 ; | |
38662 | bool result; | |
38663 | wxGBPosition temp3 ; | |
38664 | PyObject * obj0 = 0 ; | |
38665 | PyObject * obj1 = 0 ; | |
38666 | PyObject * obj2 = 0 ; | |
38667 | ||
38668 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
38669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38671 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38673 | { | |
38674 | arg3 = &temp3; | |
38675 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38676 | } | |
38677 | { | |
38678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38679 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38680 | ||
38681 | wxPyEndAllowThreads(__tstate); | |
38682 | if (PyErr_Occurred()) SWIG_fail; | |
38683 | } | |
38684 | { | |
38685 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38686 | } | |
38687 | return resultobj; | |
38688 | fail: | |
38689 | return NULL; | |
38690 | } | |
38691 | ||
38692 | ||
c370783e | 38693 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
38694 | PyObject *resultobj; |
38695 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38696 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38697 | wxGBPosition *arg3 = 0 ; | |
38698 | bool result; | |
38699 | wxGBPosition temp3 ; | |
38700 | PyObject * obj0 = 0 ; | |
38701 | PyObject * obj1 = 0 ; | |
38702 | PyObject * obj2 = 0 ; | |
38703 | ||
38704 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
38705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38707 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38709 | { | |
38710 | arg3 = &temp3; | |
38711 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38712 | } | |
38713 | { | |
38714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38715 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38716 | ||
38717 | wxPyEndAllowThreads(__tstate); | |
38718 | if (PyErr_Occurred()) SWIG_fail; | |
38719 | } | |
38720 | { | |
38721 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38722 | } | |
38723 | return resultobj; | |
38724 | fail: | |
38725 | return NULL; | |
38726 | } | |
38727 | ||
38728 | ||
c370783e | 38729 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
38730 | PyObject *resultobj; |
38731 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38732 | size_t arg2 ; | |
38733 | wxGBPosition *arg3 = 0 ; | |
38734 | bool result; | |
38735 | wxGBPosition temp3 ; | |
38736 | PyObject * obj0 = 0 ; | |
38737 | PyObject * obj1 = 0 ; | |
38738 | PyObject * obj2 = 0 ; | |
38739 | ||
38740 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
38741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 38743 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
38744 | if (PyErr_Occurred()) SWIG_fail; |
38745 | { | |
38746 | arg3 = &temp3; | |
38747 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38748 | } | |
38749 | { | |
38750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38751 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38752 | ||
38753 | wxPyEndAllowThreads(__tstate); | |
38754 | if (PyErr_Occurred()) SWIG_fail; | |
38755 | } | |
38756 | { | |
38757 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38758 | } | |
38759 | return resultobj; | |
38760 | fail: | |
38761 | return NULL; | |
38762 | } | |
38763 | ||
38764 | ||
38765 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
38766 | int argc; | |
38767 | PyObject *argv[4]; | |
38768 | int ii; | |
38769 | ||
38770 | argc = PyObject_Length(args); | |
38771 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
38772 | argv[ii] = PyTuple_GetItem(args,ii); | |
38773 | } | |
38774 | if (argc == 3) { | |
38775 | int _v; | |
38776 | { | |
38777 | void *ptr; | |
38778 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38779 | _v = 0; | |
38780 | PyErr_Clear(); | |
38781 | } else { | |
38782 | _v = 1; | |
38783 | } | |
38784 | } | |
38785 | if (_v) { | |
38786 | { | |
38787 | void *ptr; | |
38788 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
38789 | _v = 0; | |
38790 | PyErr_Clear(); | |
38791 | } else { | |
38792 | _v = 1; | |
38793 | } | |
38794 | } | |
38795 | if (_v) { | |
38796 | { | |
38797 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38798 | } | |
38799 | if (_v) { | |
38800 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
38801 | } | |
38802 | } | |
38803 | } | |
38804 | } | |
38805 | if (argc == 3) { | |
38806 | int _v; | |
38807 | { | |
38808 | void *ptr; | |
38809 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38810 | _v = 0; | |
38811 | PyErr_Clear(); | |
38812 | } else { | |
38813 | _v = 1; | |
38814 | } | |
38815 | } | |
38816 | if (_v) { | |
38817 | { | |
38818 | void *ptr; | |
38819 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
38820 | _v = 0; | |
38821 | PyErr_Clear(); | |
38822 | } else { | |
38823 | _v = 1; | |
38824 | } | |
38825 | } | |
38826 | if (_v) { | |
38827 | { | |
38828 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38829 | } | |
38830 | if (_v) { | |
38831 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
38832 | } | |
38833 | } | |
38834 | } | |
38835 | } | |
38836 | if (argc == 3) { | |
38837 | int _v; | |
38838 | { | |
38839 | void *ptr; | |
38840 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38841 | _v = 0; | |
38842 | PyErr_Clear(); | |
38843 | } else { | |
38844 | _v = 1; | |
38845 | } | |
38846 | } | |
38847 | if (_v) { | |
c370783e | 38848 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
38849 | if (_v) { |
38850 | { | |
38851 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38852 | } | |
38853 | if (_v) { | |
38854 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
38855 | } | |
38856 | } | |
38857 | } | |
38858 | } | |
38859 | ||
38860 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
38861 | return NULL; | |
38862 | } | |
38863 | ||
38864 | ||
c370783e | 38865 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
38866 | PyObject *resultobj; |
38867 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38868 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38869 | wxGBSpan result; | |
38870 | PyObject * obj0 = 0 ; | |
38871 | PyObject * obj1 = 0 ; | |
38872 | ||
38873 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
38874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38876 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38878 | { | |
38879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38880 | result = (arg1)->GetItemSpan(arg2); | |
38881 | ||
38882 | wxPyEndAllowThreads(__tstate); | |
38883 | if (PyErr_Occurred()) SWIG_fail; | |
38884 | } | |
38885 | { | |
38886 | wxGBSpan * resultptr; | |
38887 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38888 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38889 | } | |
38890 | return resultobj; | |
38891 | fail: | |
38892 | return NULL; | |
38893 | } | |
38894 | ||
38895 | ||
c370783e | 38896 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
38897 | PyObject *resultobj; |
38898 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38899 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38900 | wxGBSpan result; | |
38901 | PyObject * obj0 = 0 ; | |
38902 | PyObject * obj1 = 0 ; | |
38903 | ||
38904 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
38905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38907 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38909 | { | |
38910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38911 | result = (arg1)->GetItemSpan(arg2); | |
38912 | ||
38913 | wxPyEndAllowThreads(__tstate); | |
38914 | if (PyErr_Occurred()) SWIG_fail; | |
38915 | } | |
38916 | { | |
38917 | wxGBSpan * resultptr; | |
38918 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38919 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38920 | } | |
38921 | return resultobj; | |
38922 | fail: | |
38923 | return NULL; | |
38924 | } | |
38925 | ||
38926 | ||
c370783e | 38927 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
38928 | PyObject *resultobj; |
38929 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38930 | size_t arg2 ; | |
38931 | wxGBSpan result; | |
38932 | PyObject * obj0 = 0 ; | |
38933 | PyObject * obj1 = 0 ; | |
38934 | ||
38935 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
38936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 38938 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
38939 | if (PyErr_Occurred()) SWIG_fail; |
38940 | { | |
38941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38942 | result = (arg1)->GetItemSpan(arg2); | |
38943 | ||
38944 | wxPyEndAllowThreads(__tstate); | |
38945 | if (PyErr_Occurred()) SWIG_fail; | |
38946 | } | |
38947 | { | |
38948 | wxGBSpan * resultptr; | |
38949 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38950 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38951 | } | |
38952 | return resultobj; | |
38953 | fail: | |
38954 | return NULL; | |
38955 | } | |
38956 | ||
38957 | ||
38958 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
38959 | int argc; | |
38960 | PyObject *argv[3]; | |
38961 | int ii; | |
38962 | ||
38963 | argc = PyObject_Length(args); | |
38964 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38965 | argv[ii] = PyTuple_GetItem(args,ii); | |
38966 | } | |
38967 | if (argc == 2) { | |
38968 | int _v; | |
38969 | { | |
38970 | void *ptr; | |
38971 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38972 | _v = 0; | |
38973 | PyErr_Clear(); | |
38974 | } else { | |
38975 | _v = 1; | |
38976 | } | |
38977 | } | |
38978 | if (_v) { | |
38979 | { | |
38980 | void *ptr; | |
38981 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
38982 | _v = 0; | |
38983 | PyErr_Clear(); | |
38984 | } else { | |
38985 | _v = 1; | |
38986 | } | |
38987 | } | |
38988 | if (_v) { | |
38989 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
38990 | } | |
38991 | } | |
38992 | } | |
38993 | if (argc == 2) { | |
38994 | int _v; | |
38995 | { | |
38996 | void *ptr; | |
38997 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38998 | _v = 0; | |
38999 | PyErr_Clear(); | |
39000 | } else { | |
39001 | _v = 1; | |
39002 | } | |
39003 | } | |
39004 | if (_v) { | |
39005 | { | |
39006 | void *ptr; | |
39007 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39008 | _v = 0; | |
39009 | PyErr_Clear(); | |
39010 | } else { | |
39011 | _v = 1; | |
39012 | } | |
39013 | } | |
39014 | if (_v) { | |
39015 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
39016 | } | |
39017 | } | |
39018 | } | |
39019 | if (argc == 2) { | |
39020 | int _v; | |
39021 | { | |
39022 | void *ptr; | |
39023 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39024 | _v = 0; | |
39025 | PyErr_Clear(); | |
39026 | } else { | |
39027 | _v = 1; | |
39028 | } | |
39029 | } | |
39030 | if (_v) { | |
c370783e | 39031 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39032 | if (_v) { |
39033 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
39034 | } | |
39035 | } | |
39036 | } | |
39037 | ||
39038 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
39039 | return NULL; | |
39040 | } | |
39041 | ||
39042 | ||
c370783e | 39043 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39044 | PyObject *resultobj; |
39045 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39046 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39047 | wxGBSpan *arg3 = 0 ; | |
39048 | bool result; | |
39049 | wxGBSpan temp3 ; | |
39050 | PyObject * obj0 = 0 ; | |
39051 | PyObject * obj1 = 0 ; | |
39052 | PyObject * obj2 = 0 ; | |
39053 | ||
39054 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
39055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39057 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39059 | { | |
39060 | arg3 = &temp3; | |
39061 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39062 | } | |
39063 | { | |
39064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39065 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39066 | ||
39067 | wxPyEndAllowThreads(__tstate); | |
39068 | if (PyErr_Occurred()) SWIG_fail; | |
39069 | } | |
39070 | { | |
39071 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39072 | } | |
39073 | return resultobj; | |
39074 | fail: | |
39075 | return NULL; | |
39076 | } | |
39077 | ||
39078 | ||
c370783e | 39079 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39080 | PyObject *resultobj; |
39081 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39082 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39083 | wxGBSpan *arg3 = 0 ; | |
39084 | bool result; | |
39085 | wxGBSpan temp3 ; | |
39086 | PyObject * obj0 = 0 ; | |
39087 | PyObject * obj1 = 0 ; | |
39088 | PyObject * obj2 = 0 ; | |
39089 | ||
39090 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
39091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39093 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39095 | { | |
39096 | arg3 = &temp3; | |
39097 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39098 | } | |
39099 | { | |
39100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39101 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39102 | ||
39103 | wxPyEndAllowThreads(__tstate); | |
39104 | if (PyErr_Occurred()) SWIG_fail; | |
39105 | } | |
39106 | { | |
39107 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39108 | } | |
39109 | return resultobj; | |
39110 | fail: | |
39111 | return NULL; | |
39112 | } | |
39113 | ||
39114 | ||
c370783e | 39115 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
39116 | PyObject *resultobj; |
39117 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39118 | size_t arg2 ; | |
39119 | wxGBSpan *arg3 = 0 ; | |
39120 | bool result; | |
39121 | wxGBSpan temp3 ; | |
39122 | PyObject * obj0 = 0 ; | |
39123 | PyObject * obj1 = 0 ; | |
39124 | PyObject * obj2 = 0 ; | |
39125 | ||
39126 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
39127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 39129 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
39130 | if (PyErr_Occurred()) SWIG_fail; |
39131 | { | |
39132 | arg3 = &temp3; | |
39133 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39134 | } | |
39135 | { | |
39136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39137 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39138 | ||
39139 | wxPyEndAllowThreads(__tstate); | |
39140 | if (PyErr_Occurred()) SWIG_fail; | |
39141 | } | |
39142 | { | |
39143 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39144 | } | |
39145 | return resultobj; | |
39146 | fail: | |
39147 | return NULL; | |
39148 | } | |
39149 | ||
39150 | ||
39151 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
39152 | int argc; | |
39153 | PyObject *argv[4]; | |
39154 | int ii; | |
39155 | ||
39156 | argc = PyObject_Length(args); | |
39157 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
39158 | argv[ii] = PyTuple_GetItem(args,ii); | |
39159 | } | |
39160 | if (argc == 3) { | |
39161 | int _v; | |
39162 | { | |
39163 | void *ptr; | |
39164 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39165 | _v = 0; | |
39166 | PyErr_Clear(); | |
39167 | } else { | |
39168 | _v = 1; | |
39169 | } | |
39170 | } | |
39171 | if (_v) { | |
39172 | { | |
39173 | void *ptr; | |
39174 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39175 | _v = 0; | |
39176 | PyErr_Clear(); | |
39177 | } else { | |
39178 | _v = 1; | |
39179 | } | |
39180 | } | |
39181 | if (_v) { | |
39182 | { | |
39183 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39184 | } | |
39185 | if (_v) { | |
39186 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
39187 | } | |
39188 | } | |
39189 | } | |
39190 | } | |
39191 | if (argc == 3) { | |
39192 | int _v; | |
39193 | { | |
39194 | void *ptr; | |
39195 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39196 | _v = 0; | |
39197 | PyErr_Clear(); | |
39198 | } else { | |
39199 | _v = 1; | |
39200 | } | |
39201 | } | |
39202 | if (_v) { | |
39203 | { | |
39204 | void *ptr; | |
39205 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39206 | _v = 0; | |
39207 | PyErr_Clear(); | |
39208 | } else { | |
39209 | _v = 1; | |
39210 | } | |
39211 | } | |
39212 | if (_v) { | |
39213 | { | |
39214 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39215 | } | |
39216 | if (_v) { | |
39217 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
39218 | } | |
39219 | } | |
39220 | } | |
39221 | } | |
39222 | if (argc == 3) { | |
39223 | int _v; | |
39224 | { | |
39225 | void *ptr; | |
39226 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39227 | _v = 0; | |
39228 | PyErr_Clear(); | |
39229 | } else { | |
39230 | _v = 1; | |
39231 | } | |
39232 | } | |
39233 | if (_v) { | |
c370783e | 39234 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39235 | if (_v) { |
39236 | { | |
39237 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39238 | } | |
39239 | if (_v) { | |
39240 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
39241 | } | |
39242 | } | |
39243 | } | |
39244 | } | |
39245 | ||
39246 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
39247 | return NULL; | |
39248 | } | |
39249 | ||
39250 | ||
c370783e | 39251 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39252 | PyObject *resultobj; |
39253 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39254 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39255 | wxGBSizerItem *result; | |
39256 | PyObject * obj0 = 0 ; | |
39257 | PyObject * obj1 = 0 ; | |
39258 | ||
39259 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
39260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39262 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39264 | { | |
39265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39266 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
39267 | ||
39268 | wxPyEndAllowThreads(__tstate); | |
39269 | if (PyErr_Occurred()) SWIG_fail; | |
39270 | } | |
39271 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39272 | return resultobj; | |
39273 | fail: | |
39274 | return NULL; | |
39275 | } | |
39276 | ||
39277 | ||
c370783e | 39278 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39279 | PyObject *resultobj; |
39280 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39281 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39282 | wxGBSizerItem *result; | |
39283 | PyObject * obj0 = 0 ; | |
39284 | PyObject * obj1 = 0 ; | |
39285 | ||
39286 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
39287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39289 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39291 | { | |
39292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39293 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
39294 | ||
39295 | wxPyEndAllowThreads(__tstate); | |
39296 | if (PyErr_Occurred()) SWIG_fail; | |
39297 | } | |
39298 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39299 | return resultobj; | |
39300 | fail: | |
39301 | return NULL; | |
39302 | } | |
39303 | ||
39304 | ||
39305 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
39306 | int argc; | |
39307 | PyObject *argv[3]; | |
39308 | int ii; | |
39309 | ||
39310 | argc = PyObject_Length(args); | |
39311 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
39312 | argv[ii] = PyTuple_GetItem(args,ii); | |
39313 | } | |
39314 | if (argc == 2) { | |
39315 | int _v; | |
39316 | { | |
39317 | void *ptr; | |
39318 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39319 | _v = 0; | |
39320 | PyErr_Clear(); | |
39321 | } else { | |
39322 | _v = 1; | |
39323 | } | |
39324 | } | |
39325 | if (_v) { | |
39326 | { | |
39327 | void *ptr; | |
39328 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39329 | _v = 0; | |
39330 | PyErr_Clear(); | |
39331 | } else { | |
39332 | _v = 1; | |
39333 | } | |
39334 | } | |
39335 | if (_v) { | |
39336 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
39337 | } | |
39338 | } | |
39339 | } | |
39340 | if (argc == 2) { | |
39341 | int _v; | |
39342 | { | |
39343 | void *ptr; | |
39344 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39345 | _v = 0; | |
39346 | PyErr_Clear(); | |
39347 | } else { | |
39348 | _v = 1; | |
39349 | } | |
39350 | } | |
39351 | if (_v) { | |
39352 | { | |
39353 | void *ptr; | |
39354 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39355 | _v = 0; | |
39356 | PyErr_Clear(); | |
39357 | } else { | |
39358 | _v = 1; | |
39359 | } | |
39360 | } | |
39361 | if (_v) { | |
39362 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
39363 | } | |
39364 | } | |
39365 | } | |
39366 | ||
39367 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
39368 | return NULL; | |
39369 | } | |
39370 | ||
39371 | ||
c370783e | 39372 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39373 | PyObject *resultobj; |
39374 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39375 | wxGBPosition *arg2 = 0 ; | |
39376 | wxGBSizerItem *result; | |
39377 | wxGBPosition temp2 ; | |
39378 | PyObject * obj0 = 0 ; | |
39379 | PyObject * obj1 = 0 ; | |
39380 | char *kwnames[] = { | |
39381 | (char *) "self",(char *) "pos", NULL | |
39382 | }; | |
39383 | ||
39384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
39385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39387 | { | |
39388 | arg2 = &temp2; | |
39389 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
39390 | } | |
39391 | { | |
39392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39393 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
39394 | ||
39395 | wxPyEndAllowThreads(__tstate); | |
39396 | if (PyErr_Occurred()) SWIG_fail; | |
39397 | } | |
39398 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39399 | return resultobj; | |
39400 | fail: | |
39401 | return NULL; | |
39402 | } | |
39403 | ||
39404 | ||
c370783e | 39405 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39406 | PyObject *resultobj; |
39407 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39408 | wxPoint *arg2 = 0 ; | |
39409 | wxGBSizerItem *result; | |
39410 | wxPoint temp2 ; | |
39411 | PyObject * obj0 = 0 ; | |
39412 | PyObject * obj1 = 0 ; | |
39413 | char *kwnames[] = { | |
39414 | (char *) "self",(char *) "pt", NULL | |
39415 | }; | |
39416 | ||
39417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
39418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39420 | { | |
39421 | arg2 = &temp2; | |
39422 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
39423 | } | |
39424 | { | |
39425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39426 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
39427 | ||
39428 | wxPyEndAllowThreads(__tstate); | |
39429 | if (PyErr_Occurred()) SWIG_fail; | |
39430 | } | |
39431 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39432 | return resultobj; | |
39433 | fail: | |
39434 | return NULL; | |
39435 | } | |
39436 | ||
39437 | ||
c370783e | 39438 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39439 | PyObject *resultobj; |
39440 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39441 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
39442 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
39443 | bool result; | |
39444 | PyObject * obj0 = 0 ; | |
39445 | PyObject * obj1 = 0 ; | |
39446 | PyObject * obj2 = 0 ; | |
bfddbb17 RD |
39447 | char *kwnames[] = { |
39448 | (char *) "self",(char *) "item",(char *) "excludeItem", NULL | |
39449 | }; | |
d55e5bfc | 39450 | |
bfddbb17 | 39451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
39452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39454 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
39455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39456 | if (obj2) { | |
39457 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem, | |
39458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39459 | } | |
39460 | { | |
39461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39462 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
39463 | ||
39464 | wxPyEndAllowThreads(__tstate); | |
39465 | if (PyErr_Occurred()) SWIG_fail; | |
39466 | } | |
39467 | { | |
39468 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39469 | } | |
39470 | return resultobj; | |
39471 | fail: | |
39472 | return NULL; | |
39473 | } | |
39474 | ||
39475 | ||
c370783e | 39476 | static PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39477 | PyObject *resultobj; |
39478 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39479 | wxGBPosition *arg2 = 0 ; | |
39480 | wxGBSpan *arg3 = 0 ; | |
39481 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
39482 | bool result; | |
39483 | wxGBPosition temp2 ; | |
39484 | wxGBSpan temp3 ; | |
39485 | PyObject * obj0 = 0 ; | |
39486 | PyObject * obj1 = 0 ; | |
39487 | PyObject * obj2 = 0 ; | |
39488 | PyObject * obj3 = 0 ; | |
bfddbb17 RD |
39489 | char *kwnames[] = { |
39490 | (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL | |
39491 | }; | |
d55e5bfc | 39492 | |
bfddbb17 | 39493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
39494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39496 | { | |
39497 | arg2 = &temp2; | |
39498 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
39499 | } | |
39500 | { | |
39501 | arg3 = &temp3; | |
39502 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39503 | } | |
39504 | if (obj3) { | |
39505 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem, | |
39506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39507 | } | |
39508 | { | |
39509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39510 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
39511 | ||
39512 | wxPyEndAllowThreads(__tstate); | |
39513 | if (PyErr_Occurred()) SWIG_fail; | |
39514 | } | |
39515 | { | |
39516 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39517 | } | |
39518 | return resultobj; | |
39519 | fail: | |
39520 | return NULL; | |
39521 | } | |
39522 | ||
39523 | ||
c370783e | 39524 | static PyObject * GridBagSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
39525 | PyObject *obj; |
39526 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39527 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
39528 | Py_INCREF(obj); | |
39529 | return Py_BuildValue((char *)""); | |
39530 | } | |
c370783e | 39531 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39532 | PyObject *resultobj; |
39533 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39534 | int arg2 ; | |
39535 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39536 | int arg4 ; | |
39537 | int arg5 = (int) 0 ; | |
39538 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
39539 | PyObject * obj0 = 0 ; | |
39540 | PyObject * obj1 = 0 ; | |
39541 | PyObject * obj2 = 0 ; | |
39542 | PyObject * obj3 = 0 ; | |
39543 | PyObject * obj4 = 0 ; | |
39544 | PyObject * obj5 = 0 ; | |
39545 | char *kwnames[] = { | |
39546 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
39547 | }; | |
39548 | ||
39549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
39550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 39552 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
39553 | if (PyErr_Occurred()) SWIG_fail; |
39554 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 39556 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
39557 | if (PyErr_Occurred()) SWIG_fail; |
39558 | if (obj4) { | |
c370783e | 39559 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
39560 | if (PyErr_Occurred()) SWIG_fail; |
39561 | } | |
39562 | if (obj5) { | |
c370783e | 39563 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
39564 | if (PyErr_Occurred()) SWIG_fail; |
39565 | } | |
39566 | { | |
39567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39568 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
39569 | ||
39570 | wxPyEndAllowThreads(__tstate); | |
39571 | if (PyErr_Occurred()) SWIG_fail; | |
39572 | } | |
39573 | Py_INCREF(Py_None); resultobj = Py_None; | |
39574 | return resultobj; | |
39575 | fail: | |
39576 | return NULL; | |
39577 | } | |
39578 | ||
39579 | ||
c370783e | 39580 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39581 | PyObject *resultobj; |
39582 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39583 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39584 | int arg3 = (int) 0 ; | |
39585 | PyObject * obj0 = 0 ; | |
39586 | PyObject * obj1 = 0 ; | |
39587 | PyObject * obj2 = 0 ; | |
39588 | char *kwnames[] = { | |
39589 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39590 | }; | |
39591 | ||
39592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39595 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39597 | if (obj2) { | |
c370783e | 39598 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
39599 | if (PyErr_Occurred()) SWIG_fail; |
39600 | } | |
39601 | { | |
39602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39603 | (arg1)->LeftOf(arg2,arg3); | |
39604 | ||
39605 | wxPyEndAllowThreads(__tstate); | |
39606 | if (PyErr_Occurred()) SWIG_fail; | |
39607 | } | |
39608 | Py_INCREF(Py_None); resultobj = Py_None; | |
39609 | return resultobj; | |
39610 | fail: | |
39611 | return NULL; | |
39612 | } | |
39613 | ||
39614 | ||
c370783e | 39615 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39616 | PyObject *resultobj; |
39617 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39618 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39619 | int arg3 = (int) 0 ; | |
39620 | PyObject * obj0 = 0 ; | |
39621 | PyObject * obj1 = 0 ; | |
39622 | PyObject * obj2 = 0 ; | |
39623 | char *kwnames[] = { | |
39624 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39625 | }; | |
39626 | ||
39627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39630 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39632 | if (obj2) { | |
c370783e | 39633 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
39634 | if (PyErr_Occurred()) SWIG_fail; |
39635 | } | |
39636 | { | |
39637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39638 | (arg1)->RightOf(arg2,arg3); | |
39639 | ||
39640 | wxPyEndAllowThreads(__tstate); | |
39641 | if (PyErr_Occurred()) SWIG_fail; | |
39642 | } | |
39643 | Py_INCREF(Py_None); resultobj = Py_None; | |
39644 | return resultobj; | |
39645 | fail: | |
39646 | return NULL; | |
39647 | } | |
39648 | ||
39649 | ||
c370783e | 39650 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39651 | PyObject *resultobj; |
39652 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39653 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39654 | int arg3 = (int) 0 ; | |
39655 | PyObject * obj0 = 0 ; | |
39656 | PyObject * obj1 = 0 ; | |
39657 | PyObject * obj2 = 0 ; | |
39658 | char *kwnames[] = { | |
39659 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39660 | }; | |
39661 | ||
39662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39665 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39667 | if (obj2) { | |
c370783e | 39668 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
39669 | if (PyErr_Occurred()) SWIG_fail; |
39670 | } | |
39671 | { | |
39672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39673 | (arg1)->Above(arg2,arg3); | |
39674 | ||
39675 | wxPyEndAllowThreads(__tstate); | |
39676 | if (PyErr_Occurred()) SWIG_fail; | |
39677 | } | |
39678 | Py_INCREF(Py_None); resultobj = Py_None; | |
39679 | return resultobj; | |
39680 | fail: | |
39681 | return NULL; | |
39682 | } | |
39683 | ||
39684 | ||
c370783e | 39685 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39686 | PyObject *resultobj; |
39687 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39688 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39689 | int arg3 = (int) 0 ; | |
39690 | PyObject * obj0 = 0 ; | |
39691 | PyObject * obj1 = 0 ; | |
39692 | PyObject * obj2 = 0 ; | |
39693 | char *kwnames[] = { | |
39694 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39695 | }; | |
39696 | ||
39697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39700 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39702 | if (obj2) { | |
c370783e | 39703 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
39704 | if (PyErr_Occurred()) SWIG_fail; |
39705 | } | |
39706 | { | |
39707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39708 | (arg1)->Below(arg2,arg3); | |
39709 | ||
39710 | wxPyEndAllowThreads(__tstate); | |
39711 | if (PyErr_Occurred()) SWIG_fail; | |
39712 | } | |
39713 | Py_INCREF(Py_None); resultobj = Py_None; | |
39714 | return resultobj; | |
39715 | fail: | |
39716 | return NULL; | |
39717 | } | |
39718 | ||
39719 | ||
c370783e | 39720 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39721 | PyObject *resultobj; |
39722 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39723 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39724 | int arg3 ; | |
39725 | int arg4 = (int) 0 ; | |
39726 | PyObject * obj0 = 0 ; | |
39727 | PyObject * obj1 = 0 ; | |
39728 | PyObject * obj2 = 0 ; | |
39729 | PyObject * obj3 = 0 ; | |
39730 | char *kwnames[] = { | |
39731 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
39732 | }; | |
39733 | ||
39734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
39735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39737 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 39739 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
39740 | if (PyErr_Occurred()) SWIG_fail; |
39741 | if (obj3) { | |
c370783e | 39742 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
39743 | if (PyErr_Occurred()) SWIG_fail; |
39744 | } | |
39745 | { | |
39746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39747 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
39748 | ||
39749 | wxPyEndAllowThreads(__tstate); | |
39750 | if (PyErr_Occurred()) SWIG_fail; | |
39751 | } | |
39752 | Py_INCREF(Py_None); resultobj = Py_None; | |
39753 | return resultobj; | |
39754 | fail: | |
39755 | return NULL; | |
39756 | } | |
39757 | ||
39758 | ||
c370783e | 39759 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39760 | PyObject *resultobj; |
39761 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39762 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39763 | int arg3 ; | |
39764 | int arg4 ; | |
39765 | PyObject * obj0 = 0 ; | |
39766 | PyObject * obj1 = 0 ; | |
39767 | PyObject * obj2 = 0 ; | |
39768 | PyObject * obj3 = 0 ; | |
39769 | char *kwnames[] = { | |
39770 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
39771 | }; | |
39772 | ||
39773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
39774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39776 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 39778 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 39779 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 39780 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
39781 | if (PyErr_Occurred()) SWIG_fail; |
39782 | { | |
39783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39784 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
39785 | ||
39786 | wxPyEndAllowThreads(__tstate); | |
39787 | if (PyErr_Occurred()) SWIG_fail; | |
39788 | } | |
39789 | Py_INCREF(Py_None); resultobj = Py_None; | |
39790 | return resultobj; | |
39791 | fail: | |
39792 | return NULL; | |
39793 | } | |
39794 | ||
39795 | ||
c370783e | 39796 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39797 | PyObject *resultobj; |
39798 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39799 | int arg2 ; | |
39800 | PyObject * obj0 = 0 ; | |
39801 | PyObject * obj1 = 0 ; | |
39802 | char *kwnames[] = { | |
39803 | (char *) "self",(char *) "val", NULL | |
39804 | }; | |
39805 | ||
39806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; | |
39807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 39809 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
39810 | if (PyErr_Occurred()) SWIG_fail; |
39811 | { | |
39812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39813 | (arg1)->Absolute(arg2); | |
39814 | ||
39815 | wxPyEndAllowThreads(__tstate); | |
39816 | if (PyErr_Occurred()) SWIG_fail; | |
39817 | } | |
39818 | Py_INCREF(Py_None); resultobj = Py_None; | |
39819 | return resultobj; | |
39820 | fail: | |
39821 | return NULL; | |
39822 | } | |
39823 | ||
39824 | ||
c370783e | 39825 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39826 | PyObject *resultobj; |
39827 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39828 | PyObject * obj0 = 0 ; | |
39829 | char *kwnames[] = { | |
39830 | (char *) "self", NULL | |
39831 | }; | |
39832 | ||
39833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
39834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39836 | { | |
39837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39838 | (arg1)->Unconstrained(); | |
39839 | ||
39840 | wxPyEndAllowThreads(__tstate); | |
39841 | if (PyErr_Occurred()) SWIG_fail; | |
39842 | } | |
39843 | Py_INCREF(Py_None); resultobj = Py_None; | |
39844 | return resultobj; | |
39845 | fail: | |
39846 | return NULL; | |
39847 | } | |
39848 | ||
39849 | ||
c370783e | 39850 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39851 | PyObject *resultobj; |
39852 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39853 | PyObject * obj0 = 0 ; | |
39854 | char *kwnames[] = { | |
39855 | (char *) "self", NULL | |
39856 | }; | |
39857 | ||
39858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
39859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39861 | { | |
39862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39863 | (arg1)->AsIs(); | |
39864 | ||
39865 | wxPyEndAllowThreads(__tstate); | |
39866 | if (PyErr_Occurred()) SWIG_fail; | |
39867 | } | |
39868 | Py_INCREF(Py_None); resultobj = Py_None; | |
39869 | return resultobj; | |
39870 | fail: | |
39871 | return NULL; | |
39872 | } | |
39873 | ||
39874 | ||
c370783e | 39875 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39876 | PyObject *resultobj; |
39877 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39878 | wxWindow *result; | |
39879 | PyObject * obj0 = 0 ; | |
39880 | char *kwnames[] = { | |
39881 | (char *) "self", NULL | |
39882 | }; | |
39883 | ||
39884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
39885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39887 | { | |
39888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39889 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
39890 | ||
39891 | wxPyEndAllowThreads(__tstate); | |
39892 | if (PyErr_Occurred()) SWIG_fail; | |
39893 | } | |
39894 | { | |
412d302d | 39895 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
39896 | } |
39897 | return resultobj; | |
39898 | fail: | |
39899 | return NULL; | |
39900 | } | |
39901 | ||
39902 | ||
c370783e | 39903 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39904 | PyObject *resultobj; |
39905 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39906 | int result; | |
39907 | PyObject * obj0 = 0 ; | |
39908 | char *kwnames[] = { | |
39909 | (char *) "self", NULL | |
39910 | }; | |
39911 | ||
39912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
39913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39915 | { | |
39916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39917 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
39918 | ||
39919 | wxPyEndAllowThreads(__tstate); | |
39920 | if (PyErr_Occurred()) SWIG_fail; | |
39921 | } | |
c370783e | 39922 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
39923 | return resultobj; |
39924 | fail: | |
39925 | return NULL; | |
39926 | } | |
39927 | ||
39928 | ||
c370783e | 39929 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39930 | PyObject *resultobj; |
39931 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39932 | int arg2 ; | |
39933 | PyObject * obj0 = 0 ; | |
39934 | PyObject * obj1 = 0 ; | |
39935 | char *kwnames[] = { | |
39936 | (char *) "self",(char *) "which", NULL | |
39937 | }; | |
39938 | ||
39939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; | |
39940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 39942 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
39943 | if (PyErr_Occurred()) SWIG_fail; |
39944 | { | |
39945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39946 | (arg1)->SetEdge((wxEdge )arg2); | |
39947 | ||
39948 | wxPyEndAllowThreads(__tstate); | |
39949 | if (PyErr_Occurred()) SWIG_fail; | |
39950 | } | |
39951 | Py_INCREF(Py_None); resultobj = Py_None; | |
39952 | return resultobj; | |
39953 | fail: | |
39954 | return NULL; | |
39955 | } | |
39956 | ||
39957 | ||
c370783e | 39958 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39959 | PyObject *resultobj; |
39960 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39961 | int arg2 ; | |
39962 | PyObject * obj0 = 0 ; | |
39963 | PyObject * obj1 = 0 ; | |
39964 | char *kwnames[] = { | |
39965 | (char *) "self",(char *) "v", NULL | |
39966 | }; | |
39967 | ||
39968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
39969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 39971 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
39972 | if (PyErr_Occurred()) SWIG_fail; |
39973 | { | |
39974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39975 | (arg1)->SetValue(arg2); | |
39976 | ||
39977 | wxPyEndAllowThreads(__tstate); | |
39978 | if (PyErr_Occurred()) SWIG_fail; | |
39979 | } | |
39980 | Py_INCREF(Py_None); resultobj = Py_None; | |
39981 | return resultobj; | |
39982 | fail: | |
39983 | return NULL; | |
39984 | } | |
39985 | ||
39986 | ||
c370783e | 39987 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39988 | PyObject *resultobj; |
39989 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39990 | int result; | |
39991 | PyObject * obj0 = 0 ; | |
39992 | char *kwnames[] = { | |
39993 | (char *) "self", NULL | |
39994 | }; | |
39995 | ||
39996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
39997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39999 | { | |
40000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40001 | result = (int)(arg1)->GetMargin(); | |
40002 | ||
40003 | wxPyEndAllowThreads(__tstate); | |
40004 | if (PyErr_Occurred()) SWIG_fail; | |
40005 | } | |
c370783e | 40006 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40007 | return resultobj; |
40008 | fail: | |
40009 | return NULL; | |
40010 | } | |
40011 | ||
40012 | ||
c370783e | 40013 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40014 | PyObject *resultobj; |
40015 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40016 | int arg2 ; | |
40017 | PyObject * obj0 = 0 ; | |
40018 | PyObject * obj1 = 0 ; | |
40019 | char *kwnames[] = { | |
40020 | (char *) "self",(char *) "m", NULL | |
40021 | }; | |
40022 | ||
40023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; | |
40024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 40026 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40027 | if (PyErr_Occurred()) SWIG_fail; |
40028 | { | |
40029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40030 | (arg1)->SetMargin(arg2); | |
40031 | ||
40032 | wxPyEndAllowThreads(__tstate); | |
40033 | if (PyErr_Occurred()) SWIG_fail; | |
40034 | } | |
40035 | Py_INCREF(Py_None); resultobj = Py_None; | |
40036 | return resultobj; | |
40037 | fail: | |
40038 | return NULL; | |
40039 | } | |
40040 | ||
40041 | ||
c370783e | 40042 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40043 | PyObject *resultobj; |
40044 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40045 | int result; | |
40046 | PyObject * obj0 = 0 ; | |
40047 | char *kwnames[] = { | |
40048 | (char *) "self", NULL | |
40049 | }; | |
40050 | ||
40051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
40052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40054 | { | |
40055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40056 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
40057 | ||
40058 | wxPyEndAllowThreads(__tstate); | |
40059 | if (PyErr_Occurred()) SWIG_fail; | |
40060 | } | |
c370783e | 40061 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40062 | return resultobj; |
40063 | fail: | |
40064 | return NULL; | |
40065 | } | |
40066 | ||
40067 | ||
c370783e | 40068 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40069 | PyObject *resultobj; |
40070 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40071 | int result; | |
40072 | PyObject * obj0 = 0 ; | |
40073 | char *kwnames[] = { | |
40074 | (char *) "self", NULL | |
40075 | }; | |
40076 | ||
40077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
40078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40080 | { | |
40081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40082 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
40083 | ||
40084 | wxPyEndAllowThreads(__tstate); | |
40085 | if (PyErr_Occurred()) SWIG_fail; | |
40086 | } | |
c370783e | 40087 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40088 | return resultobj; |
40089 | fail: | |
40090 | return NULL; | |
40091 | } | |
40092 | ||
40093 | ||
c370783e | 40094 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40095 | PyObject *resultobj; |
40096 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40097 | int result; | |
40098 | PyObject * obj0 = 0 ; | |
40099 | char *kwnames[] = { | |
40100 | (char *) "self", NULL | |
40101 | }; | |
40102 | ||
40103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
40104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40106 | { | |
40107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40108 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
40109 | ||
40110 | wxPyEndAllowThreads(__tstate); | |
40111 | if (PyErr_Occurred()) SWIG_fail; | |
40112 | } | |
c370783e | 40113 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40114 | return resultobj; |
40115 | fail: | |
40116 | return NULL; | |
40117 | } | |
40118 | ||
40119 | ||
c370783e | 40120 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40121 | PyObject *resultobj; |
40122 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40123 | bool result; | |
40124 | PyObject * obj0 = 0 ; | |
40125 | char *kwnames[] = { | |
40126 | (char *) "self", NULL | |
40127 | }; | |
40128 | ||
40129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
40130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40132 | { | |
40133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40134 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
40135 | ||
40136 | wxPyEndAllowThreads(__tstate); | |
40137 | if (PyErr_Occurred()) SWIG_fail; | |
40138 | } | |
40139 | { | |
40140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40141 | } | |
40142 | return resultobj; | |
40143 | fail: | |
40144 | return NULL; | |
40145 | } | |
40146 | ||
40147 | ||
c370783e | 40148 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40149 | PyObject *resultobj; |
40150 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40151 | bool arg2 ; | |
40152 | PyObject * obj0 = 0 ; | |
40153 | PyObject * obj1 = 0 ; | |
40154 | char *kwnames[] = { | |
40155 | (char *) "self",(char *) "d", NULL | |
40156 | }; | |
40157 | ||
40158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
40159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 40161 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
40162 | if (PyErr_Occurred()) SWIG_fail; |
40163 | { | |
40164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40165 | (arg1)->SetDone(arg2); | |
40166 | ||
40167 | wxPyEndAllowThreads(__tstate); | |
40168 | if (PyErr_Occurred()) SWIG_fail; | |
40169 | } | |
40170 | Py_INCREF(Py_None); resultobj = Py_None; | |
40171 | return resultobj; | |
40172 | fail: | |
40173 | return NULL; | |
40174 | } | |
40175 | ||
40176 | ||
c370783e | 40177 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40178 | PyObject *resultobj; |
40179 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40180 | int result; | |
40181 | PyObject * obj0 = 0 ; | |
40182 | char *kwnames[] = { | |
40183 | (char *) "self", NULL | |
40184 | }; | |
40185 | ||
40186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
40187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40189 | { | |
40190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40191 | result = (int)(arg1)->GetRelationship(); | |
40192 | ||
40193 | wxPyEndAllowThreads(__tstate); | |
40194 | if (PyErr_Occurred()) SWIG_fail; | |
40195 | } | |
c370783e | 40196 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40197 | return resultobj; |
40198 | fail: | |
40199 | return NULL; | |
40200 | } | |
40201 | ||
40202 | ||
c370783e | 40203 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40204 | PyObject *resultobj; |
40205 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40206 | int arg2 ; | |
40207 | PyObject * obj0 = 0 ; | |
40208 | PyObject * obj1 = 0 ; | |
40209 | char *kwnames[] = { | |
40210 | (char *) "self",(char *) "r", NULL | |
40211 | }; | |
40212 | ||
40213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; | |
40214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 40216 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40217 | if (PyErr_Occurred()) SWIG_fail; |
40218 | { | |
40219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40220 | (arg1)->SetRelationship((wxRelationship )arg2); | |
40221 | ||
40222 | wxPyEndAllowThreads(__tstate); | |
40223 | if (PyErr_Occurred()) SWIG_fail; | |
40224 | } | |
40225 | Py_INCREF(Py_None); resultobj = Py_None; | |
40226 | return resultobj; | |
40227 | fail: | |
40228 | return NULL; | |
40229 | } | |
40230 | ||
40231 | ||
c370783e | 40232 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40233 | PyObject *resultobj; |
40234 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40235 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40236 | bool result; | |
40237 | PyObject * obj0 = 0 ; | |
40238 | PyObject * obj1 = 0 ; | |
40239 | char *kwnames[] = { | |
40240 | (char *) "self",(char *) "otherW", NULL | |
40241 | }; | |
40242 | ||
40243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
40244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40246 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40248 | { | |
40249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40250 | result = (bool)(arg1)->ResetIfWin(arg2); | |
40251 | ||
40252 | wxPyEndAllowThreads(__tstate); | |
40253 | if (PyErr_Occurred()) SWIG_fail; | |
40254 | } | |
40255 | { | |
40256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40257 | } | |
40258 | return resultobj; | |
40259 | fail: | |
40260 | return NULL; | |
40261 | } | |
40262 | ||
40263 | ||
c370783e | 40264 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40265 | PyObject *resultobj; |
40266 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40267 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
40268 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40269 | bool result; | |
40270 | PyObject * obj0 = 0 ; | |
40271 | PyObject * obj1 = 0 ; | |
40272 | PyObject * obj2 = 0 ; | |
40273 | char *kwnames[] = { | |
40274 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
40275 | }; | |
40276 | ||
40277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40280 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
40281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40282 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
40283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40284 | { | |
40285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40286 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
40287 | ||
40288 | wxPyEndAllowThreads(__tstate); | |
40289 | if (PyErr_Occurred()) SWIG_fail; | |
40290 | } | |
40291 | { | |
40292 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40293 | } | |
40294 | return resultobj; | |
40295 | fail: | |
40296 | return NULL; | |
40297 | } | |
40298 | ||
40299 | ||
c370783e | 40300 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40301 | PyObject *resultobj; |
40302 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40303 | int arg2 ; | |
40304 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40305 | wxWindow *arg4 = (wxWindow *) 0 ; | |
40306 | int result; | |
40307 | PyObject * obj0 = 0 ; | |
40308 | PyObject * obj1 = 0 ; | |
40309 | PyObject * obj2 = 0 ; | |
40310 | PyObject * obj3 = 0 ; | |
40311 | char *kwnames[] = { | |
40312 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
40313 | }; | |
40314 | ||
40315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
40316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 40318 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40319 | if (PyErr_Occurred()) SWIG_fail; |
40320 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
40321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40322 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
40323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40324 | { | |
40325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40326 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
40327 | ||
40328 | wxPyEndAllowThreads(__tstate); | |
40329 | if (PyErr_Occurred()) SWIG_fail; | |
40330 | } | |
c370783e | 40331 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40332 | return resultobj; |
40333 | fail: | |
40334 | return NULL; | |
40335 | } | |
40336 | ||
40337 | ||
c370783e | 40338 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
40339 | PyObject *obj; |
40340 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40341 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
40342 | Py_INCREF(obj); | |
40343 | return Py_BuildValue((char *)""); | |
40344 | } | |
c370783e | 40345 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40346 | PyObject *resultobj; |
40347 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40348 | wxIndividualLayoutConstraint *result; | |
40349 | PyObject * obj0 = 0 ; | |
40350 | char *kwnames[] = { | |
40351 | (char *) "self", NULL | |
40352 | }; | |
40353 | ||
40354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
40355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40357 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); | |
40358 | ||
40359 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40360 | return resultobj; | |
40361 | fail: | |
40362 | return NULL; | |
40363 | } | |
40364 | ||
40365 | ||
c370783e | 40366 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40367 | PyObject *resultobj; |
40368 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40369 | wxIndividualLayoutConstraint *result; | |
40370 | PyObject * obj0 = 0 ; | |
40371 | char *kwnames[] = { | |
40372 | (char *) "self", NULL | |
40373 | }; | |
40374 | ||
40375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
40376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40378 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); | |
40379 | ||
40380 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40381 | return resultobj; | |
40382 | fail: | |
40383 | return NULL; | |
40384 | } | |
40385 | ||
40386 | ||
c370783e | 40387 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40388 | PyObject *resultobj; |
40389 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40390 | wxIndividualLayoutConstraint *result; | |
40391 | PyObject * obj0 = 0 ; | |
40392 | char *kwnames[] = { | |
40393 | (char *) "self", NULL | |
40394 | }; | |
40395 | ||
40396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
40397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40399 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); | |
40400 | ||
40401 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40402 | return resultobj; | |
40403 | fail: | |
40404 | return NULL; | |
40405 | } | |
40406 | ||
40407 | ||
c370783e | 40408 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40409 | PyObject *resultobj; |
40410 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40411 | wxIndividualLayoutConstraint *result; | |
40412 | PyObject * obj0 = 0 ; | |
40413 | char *kwnames[] = { | |
40414 | (char *) "self", NULL | |
40415 | }; | |
40416 | ||
40417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
40418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40420 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); | |
40421 | ||
40422 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40423 | return resultobj; | |
40424 | fail: | |
40425 | return NULL; | |
40426 | } | |
40427 | ||
40428 | ||
c370783e | 40429 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40430 | PyObject *resultobj; |
40431 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40432 | wxIndividualLayoutConstraint *result; | |
40433 | PyObject * obj0 = 0 ; | |
40434 | char *kwnames[] = { | |
40435 | (char *) "self", NULL | |
40436 | }; | |
40437 | ||
40438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
40439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40441 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); | |
40442 | ||
40443 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40444 | return resultobj; | |
40445 | fail: | |
40446 | return NULL; | |
40447 | } | |
40448 | ||
40449 | ||
c370783e | 40450 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40451 | PyObject *resultobj; |
40452 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40453 | wxIndividualLayoutConstraint *result; | |
40454 | PyObject * obj0 = 0 ; | |
40455 | char *kwnames[] = { | |
40456 | (char *) "self", NULL | |
40457 | }; | |
40458 | ||
40459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
40460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40462 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); | |
40463 | ||
40464 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40465 | return resultobj; | |
40466 | fail: | |
40467 | return NULL; | |
40468 | } | |
40469 | ||
40470 | ||
c370783e | 40471 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40472 | PyObject *resultobj; |
40473 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40474 | wxIndividualLayoutConstraint *result; | |
40475 | PyObject * obj0 = 0 ; | |
40476 | char *kwnames[] = { | |
40477 | (char *) "self", NULL | |
40478 | }; | |
40479 | ||
40480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
40481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40483 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); | |
40484 | ||
40485 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40486 | return resultobj; | |
40487 | fail: | |
40488 | return NULL; | |
40489 | } | |
40490 | ||
40491 | ||
c370783e | 40492 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40493 | PyObject *resultobj; |
40494 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40495 | wxIndividualLayoutConstraint *result; | |
40496 | PyObject * obj0 = 0 ; | |
40497 | char *kwnames[] = { | |
40498 | (char *) "self", NULL | |
40499 | }; | |
40500 | ||
40501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
40502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40504 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); | |
40505 | ||
40506 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40507 | return resultobj; | |
40508 | fail: | |
40509 | return NULL; | |
40510 | } | |
40511 | ||
40512 | ||
c370783e | 40513 | static PyObject *_wrap_new_LayoutConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40514 | PyObject *resultobj; |
40515 | wxLayoutConstraints *result; | |
40516 | char *kwnames[] = { | |
40517 | NULL | |
40518 | }; | |
40519 | ||
40520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
40521 | { | |
40522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40523 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
40524 | ||
40525 | wxPyEndAllowThreads(__tstate); | |
40526 | if (PyErr_Occurred()) SWIG_fail; | |
40527 | } | |
40528 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); | |
40529 | return resultobj; | |
40530 | fail: | |
40531 | return NULL; | |
40532 | } | |
40533 | ||
40534 | ||
c370783e | 40535 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40536 | PyObject *resultobj; |
40537 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40538 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40539 | int *arg3 = (int *) 0 ; | |
40540 | bool result; | |
40541 | int temp3 ; | |
c370783e | 40542 | int res3 = 0 ; |
d55e5bfc RD |
40543 | PyObject * obj0 = 0 ; |
40544 | PyObject * obj1 = 0 ; | |
40545 | char *kwnames[] = { | |
40546 | (char *) "self",(char *) "win", NULL | |
40547 | }; | |
40548 | ||
c370783e | 40549 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d55e5bfc RD |
40550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; |
40551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40553 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40555 | { | |
40556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40557 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
40558 | ||
40559 | wxPyEndAllowThreads(__tstate); | |
40560 | if (PyErr_Occurred()) SWIG_fail; | |
40561 | } | |
40562 | { | |
40563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40564 | } | |
c370783e RD |
40565 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
40566 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
40567 | return resultobj; |
40568 | fail: | |
40569 | return NULL; | |
40570 | } | |
40571 | ||
40572 | ||
c370783e | 40573 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40574 | PyObject *resultobj; |
40575 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40576 | bool result; | |
40577 | PyObject * obj0 = 0 ; | |
40578 | char *kwnames[] = { | |
40579 | (char *) "self", NULL | |
40580 | }; | |
40581 | ||
40582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
40583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40585 | { | |
40586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40587 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
40588 | ||
40589 | wxPyEndAllowThreads(__tstate); | |
40590 | if (PyErr_Occurred()) SWIG_fail; | |
40591 | } | |
40592 | { | |
40593 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40594 | } | |
40595 | return resultobj; | |
40596 | fail: | |
40597 | return NULL; | |
40598 | } | |
40599 | ||
40600 | ||
c370783e | 40601 | static PyObject * LayoutConstraints_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
40602 | PyObject *obj; |
40603 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40604 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
40605 | Py_INCREF(obj); | |
40606 | return Py_BuildValue((char *)""); | |
40607 | } | |
40608 | static PyMethodDef SwigMethods[] = { | |
c370783e RD |
40609 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS, NULL }, |
40610 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS, NULL }, | |
40611 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40612 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40613 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS, NULL }, | |
40614 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40615 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40616 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40617 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40618 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40619 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40620 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40621 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40622 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40623 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40624 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40625 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40626 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40627 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40628 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40629 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40630 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40631 | { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40632 | { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40633 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40634 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS, NULL }, | |
40635 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40636 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40637 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40638 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40639 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40640 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40641 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40642 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40643 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40644 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40645 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40646 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40647 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS, NULL }, | |
40648 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40649 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40650 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40651 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40652 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40653 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40654 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40655 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40656 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40657 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40658 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40659 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40660 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40661 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40662 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS, NULL }, | |
40663 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40664 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40665 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40666 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40667 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40668 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40669 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40670 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40671 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40672 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40673 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40674 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40675 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40676 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40677 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40678 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40679 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40680 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40681 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40682 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40683 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40684 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40685 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40686 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40687 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40688 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40689 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40690 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40691 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40692 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40693 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40694 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40695 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40696 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40697 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40698 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40699 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40700 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40701 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40702 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40703 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40704 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40705 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40706 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40707 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40708 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40709 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40710 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40711 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40712 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40713 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS, NULL }, | |
40714 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40715 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40716 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40717 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40718 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40719 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40720 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40721 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40722 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40723 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40724 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40725 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40726 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40727 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40728 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40729 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40730 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40731 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40732 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40733 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40734 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40735 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40736 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40737 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40738 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40739 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40740 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40741 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS, NULL }, | |
40742 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40743 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40744 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40745 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40746 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40747 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40748 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40749 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40750 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40751 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40752 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40753 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40754 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40755 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40756 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40757 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40758 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40759 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS, NULL }, | |
40760 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40761 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS, NULL }, | |
40762 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40763 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40764 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40765 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40766 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40767 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40768 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40769 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS, NULL }, | |
40770 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS, NULL }, | |
40771 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40772 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40773 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40774 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40775 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40776 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40777 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40778 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40779 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40780 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40781 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40782 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS, NULL }, | |
40783 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40784 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40785 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40786 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40787 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40788 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40789 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40790 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40791 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40792 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c370783e | 40793 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS, NULL }, |
b411df4a | 40794 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS, NULL }, |
c370783e RD |
40795 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, |
40796 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40797 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40798 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS, NULL }, | |
40799 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40800 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40801 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40802 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40803 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40804 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS, NULL }, | |
40805 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40806 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40807 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40808 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40809 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40810 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40811 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40812 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40813 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40814 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS, NULL }, | |
40815 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40816 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40817 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40818 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40819 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40820 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40821 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40822 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40823 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40824 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS, NULL }, | |
40825 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40826 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40827 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40828 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS, NULL }, | |
40829 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40830 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40831 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40832 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40833 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40834 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40835 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40836 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40837 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40838 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40839 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40840 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40841 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40842 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40843 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40844 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40845 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40846 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40847 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40848 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40849 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40850 | { (char *)"Image_ConvertAlphaToMask", (PyCFunction) _wrap_Image_ConvertAlphaToMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40851 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40852 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40853 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40854 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40855 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40856 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40857 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40858 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40859 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40860 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40861 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40862 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40863 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40864 | { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40865 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40866 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40867 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40868 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40869 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40870 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40871 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40872 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40873 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40874 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40875 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40876 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40877 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40878 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40879 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40880 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40881 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40882 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40883 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40884 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40885 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40886 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40887 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40888 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40889 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40890 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40891 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40892 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40893 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40894 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40895 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40896 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40897 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40898 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40899 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40900 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS, NULL }, | |
40901 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40902 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS, NULL }, | |
40903 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40904 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS, NULL }, | |
40905 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40906 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS, NULL }, | |
40907 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40908 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS, NULL }, | |
40909 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40910 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS, NULL }, | |
40911 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40912 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS, NULL }, | |
40913 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40914 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS, NULL }, | |
40915 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40916 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS, NULL }, | |
40917 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40918 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS, NULL }, | |
40919 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40920 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS, NULL }, | |
40921 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40922 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS, NULL }, | |
40923 | { (char *)"Quantize_Quantize", (PyCFunction) _wrap_Quantize_Quantize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40924 | { (char *)"Quantize_swigregister", Quantize_swigregister, METH_VARARGS, NULL }, | |
40925 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40926 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40927 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40928 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40929 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40930 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40931 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40932 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40933 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40934 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40935 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40936 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40937 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40938 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS, NULL }, | |
40939 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40940 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40941 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40942 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40943 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40944 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40945 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40946 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40947 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40948 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40949 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40950 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40951 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40952 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40953 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40954 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40955 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40956 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS, NULL }, | |
40957 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40958 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40959 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS, NULL }, | |
40960 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40961 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40962 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS, NULL }, | |
40963 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40964 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40965 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40966 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40967 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40968 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40969 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40970 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40971 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40972 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40973 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40974 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS, NULL }, | |
40975 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40976 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40977 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40978 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40979 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS, NULL }, | |
40980 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40981 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40982 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40983 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40984 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40985 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS, NULL }, | |
40986 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40987 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40988 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40989 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40990 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40991 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS, NULL }, | |
40992 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40993 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40994 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40995 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40996 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40997 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40998 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40999 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41000 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41001 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41002 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41003 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41004 | { (char *)"MouseEvent_CmdDown", (PyCFunction) _wrap_MouseEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41005 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41006 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41007 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41008 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41009 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41010 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41011 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41012 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41013 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41014 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41015 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41016 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41017 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41018 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41019 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41020 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41021 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41022 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41023 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41024 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41025 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41026 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41027 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41028 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41029 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41030 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41031 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41032 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41033 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41034 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41035 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41036 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41037 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41038 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41039 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41040 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41041 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41042 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41043 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41044 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41045 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41046 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41047 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41048 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41049 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41050 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41051 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41052 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41053 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41054 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS, NULL }, | |
41055 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41056 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41057 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41058 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41059 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41060 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41061 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS, NULL }, | |
41062 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41063 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41064 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41065 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41066 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41067 | { (char *)"KeyEvent_CmdDown", (PyCFunction) _wrap_KeyEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41068 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41069 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41070 | { (char *)"KeyEvent_GetUnicodeKey", (PyCFunction) _wrap_KeyEvent_GetUnicodeKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41071 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41072 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41073 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41074 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41075 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41076 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41077 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41078 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41079 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41080 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41081 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41082 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41083 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41084 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41085 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41086 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41087 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41088 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41089 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41090 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41091 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41092 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41093 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41094 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41095 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41096 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41097 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS, NULL }, | |
41098 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41099 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41100 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41101 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41102 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41103 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41104 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41105 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41106 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41107 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS, NULL }, | |
41108 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41109 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41110 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41111 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41112 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41113 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41114 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41115 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41116 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41117 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS, NULL }, | |
41118 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41119 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS, NULL }, | |
41120 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41121 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS, NULL }, | |
41122 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41123 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41124 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS, NULL }, | |
41125 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41126 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41127 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41128 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS, NULL }, | |
41129 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41130 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41131 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS, NULL }, | |
41132 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41133 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41134 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS, NULL }, | |
41135 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41136 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS, NULL }, | |
41137 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41138 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41139 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41140 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41141 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS, NULL }, | |
41142 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41143 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41144 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41145 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41146 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41147 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41148 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41149 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS, NULL }, | |
41150 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41151 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41152 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41153 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS, NULL }, | |
41154 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41155 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41156 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS, NULL }, | |
41157 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41158 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS, NULL }, | |
41159 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41160 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41161 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41162 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS, NULL }, | |
41163 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41164 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41165 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41166 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41167 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41168 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41169 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41170 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41171 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41172 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41173 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41174 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41175 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41176 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41177 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41178 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41179 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS, NULL }, | |
41180 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41181 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41182 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41183 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41184 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41185 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41186 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41187 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41188 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41189 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41190 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41191 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41192 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41193 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41194 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS, NULL }, | |
41195 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41196 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41197 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41198 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41199 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41200 | { (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41201 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41202 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41203 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS, NULL }, | |
41204 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41205 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41206 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS, NULL }, | |
41207 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41208 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41209 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS, NULL }, | |
41210 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41211 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41212 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41213 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS, NULL }, | |
41214 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41215 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41216 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41217 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41218 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41219 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41220 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS, NULL }, | |
41221 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41222 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41223 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41224 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41225 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS, NULL }, | |
41226 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41227 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41228 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41229 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41230 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS, NULL }, | |
41231 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41232 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41233 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41234 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41235 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41236 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41237 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41238 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41239 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41240 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41241 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41242 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41243 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41244 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41245 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41246 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41247 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41248 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41249 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41250 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41251 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41252 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41253 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41254 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41255 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41256 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41257 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41258 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41259 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41260 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41261 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41262 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41263 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41264 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41265 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41266 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41267 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41268 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41269 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41270 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41271 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41272 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41273 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41274 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS, NULL }, | |
41275 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41276 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41277 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41278 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41279 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41280 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41281 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41282 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
b411df4a RD |
41283 | { (char *)"new_EventLoop", (PyCFunction) _wrap_new_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL }, |
41284 | { (char *)"delete_EventLoop", (PyCFunction) _wrap_delete_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41285 | { (char *)"EventLoop_Run", (PyCFunction) _wrap_EventLoop_Run, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41286 | { (char *)"EventLoop_Exit", (PyCFunction) _wrap_EventLoop_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41287 | { (char *)"EventLoop_Pending", (PyCFunction) _wrap_EventLoop_Pending, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41288 | { (char *)"EventLoop_Dispatch", (PyCFunction) _wrap_EventLoop_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41289 | { (char *)"EventLoop_IsRunning", (PyCFunction) _wrap_EventLoop_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41290 | { (char *)"EventLoop_GetActive", (PyCFunction) _wrap_EventLoop_GetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41291 | { (char *)"EventLoop_SetActive", (PyCFunction) _wrap_EventLoop_SetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41292 | { (char *)"EventLoop_swigregister", EventLoop_swigregister, METH_VARARGS, NULL }, | |
c370783e RD |
41293 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL }, |
41294 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41295 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41296 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41297 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41298 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41299 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS, NULL }, | |
41300 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41301 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41302 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41303 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS, NULL }, | |
41304 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41305 | { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41306 | { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41307 | { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41308 | { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41309 | { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41310 | { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41311 | { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41312 | { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41313 | { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS, NULL }, | |
41314 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41315 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41316 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41317 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41318 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41319 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41320 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41321 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41322 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41323 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41324 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41325 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41326 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41327 | { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41328 | { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41329 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41330 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41331 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41332 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41333 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41334 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41335 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41336 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41337 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41338 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41339 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41340 | { (char *)"Window_SetBestFittingSize", (PyCFunction) _wrap_Window_SetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41341 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41342 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41343 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41344 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41345 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41346 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41347 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41348 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41349 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41350 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41351 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41352 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41353 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41354 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41355 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41356 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41357 | { (char *)"Window_InvalidateBestSize", (PyCFunction) _wrap_Window_InvalidateBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41358 | { (char *)"Window_GetBestFittingSize", (PyCFunction) _wrap_Window_GetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41359 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41360 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41361 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41362 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41363 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41364 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41365 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41366 | { (char *)"Window_SetSizeHintsSz", (PyCFunction) _wrap_Window_SetSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41367 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41368 | { (char *)"Window_SetVirtualSizeHintsSz", (PyCFunction) _wrap_Window_SetVirtualSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41369 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41370 | { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41371 | { (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41372 | { (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41373 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41374 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41375 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41376 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41377 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41378 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41379 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41380 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41381 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41382 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41383 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41384 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41385 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41386 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41387 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41388 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41389 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41390 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41391 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41392 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41393 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41394 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41395 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41396 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41397 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41398 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41399 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41400 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41401 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41402 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41403 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41404 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41405 | { (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41406 | { (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41407 | { (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41408 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41409 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41410 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41411 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41412 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41413 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41414 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41415 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41416 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41417 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41418 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41419 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41420 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41421 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41422 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41423 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41424 | { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41425 | { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41426 | { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41427 | { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41428 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41429 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41430 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41431 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41432 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41433 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41434 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41435 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41436 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41437 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41438 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41439 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41440 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41441 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41442 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41443 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41444 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41445 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41446 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41447 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41448 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41449 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41450 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41451 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41452 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41453 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41454 | { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41455 | { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41456 | { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41457 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41458 | { (char *)"Window_SetOwnBackgroundColour", (PyCFunction) _wrap_Window_SetOwnBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41459 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41460 | { (char *)"Window_SetOwnForegroundColour", (PyCFunction) _wrap_Window_SetOwnForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41461 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41462 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41463 | { (char *)"Window_SetBackgroundStyle", (PyCFunction) _wrap_Window_SetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41464 | { (char *)"Window_GetBackgroundStyle", (PyCFunction) _wrap_Window_GetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41465 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41466 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41467 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41468 | { (char *)"Window_SetOwnFont", (PyCFunction) _wrap_Window_SetOwnFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41469 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41470 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41471 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41472 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41473 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41474 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41475 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41476 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41477 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41478 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41479 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41480 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41481 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41482 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS, NULL }, | |
41483 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41484 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41485 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41486 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
629e65c2 RD |
41487 | { (char *)"Window_AssociateHandle", (PyCFunction) _wrap_Window_AssociateHandle, METH_VARARGS | METH_KEYWORDS, NULL }, |
41488 | { (char *)"Window_DissociateHandle", (PyCFunction) _wrap_Window_DissociateHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c370783e RD |
41489 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, |
41490 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41491 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41492 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41493 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41494 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41495 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41496 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41497 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41498 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41499 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41500 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41501 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41502 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41503 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41504 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41505 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41506 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41507 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41508 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41509 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41510 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41511 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41512 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41513 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41514 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41515 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41516 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41517 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41518 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41519 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41520 | { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41521 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41522 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS, NULL }, | |
41523 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41524 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41525 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41526 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41527 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41528 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41529 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41530 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41531 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41532 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41533 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41534 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41535 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41536 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS, NULL }, | |
41537 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41538 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41539 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS, NULL }, | |
41540 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41541 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41542 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41543 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41544 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41545 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41546 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41547 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41548 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41549 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41550 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41551 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41552 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41553 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41554 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41555 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41556 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41557 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41558 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41559 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41560 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41561 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41562 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41563 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41564 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41565 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41566 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41567 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41568 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41569 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41570 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41571 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41572 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41573 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41574 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41575 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41576 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41577 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41578 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41579 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41580 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41581 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41582 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41583 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41584 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41585 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41586 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41587 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41588 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41589 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41590 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41591 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41592 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41593 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41594 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS, NULL }, | |
41595 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41596 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41597 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41598 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41599 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41600 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41601 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41602 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41603 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41604 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41605 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41606 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41607 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41608 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41609 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41610 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41611 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41612 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41613 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41614 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41615 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41616 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41617 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41618 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41619 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41620 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41621 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS, NULL }, | |
41622 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41623 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41624 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41625 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41626 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41627 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41628 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41629 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41630 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41631 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41632 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41633 | { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41634 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41635 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41636 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41637 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41638 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41639 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41640 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41641 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41642 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41643 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41644 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41645 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41646 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41647 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41648 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41649 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41650 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41651 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS, NULL }, | |
41652 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41653 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41654 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41655 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41656 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41657 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41658 | { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41659 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS, NULL }, | |
41660 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41661 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41662 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41663 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41664 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41665 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41666 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41667 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41668 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41669 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41670 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41671 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41672 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41673 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41674 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41675 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41676 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS, NULL }, | |
41677 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS, NULL }, | |
41678 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41679 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41680 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41681 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41682 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41683 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41684 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41685 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41686 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41687 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41688 | { (char *)"SizerItem_GetMinSizeWithBorder", (PyCFunction) _wrap_SizerItem_GetMinSizeWithBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41689 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41690 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41691 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41692 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41693 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41694 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41695 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41696 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41697 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41698 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41699 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41700 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41701 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41702 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41703 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41704 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41705 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41706 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41707 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41708 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41709 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41710 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41711 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41712 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41713 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS, NULL }, | |
41714 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41715 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41716 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41717 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41718 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41719 | { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41720 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41721 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41722 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41723 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41724 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41725 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41726 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41727 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41728 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41729 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41730 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41731 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41732 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41733 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41734 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41735 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41736 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41737 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41738 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41739 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41740 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41741 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41742 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS, NULL }, | |
41743 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41744 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41745 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS, NULL }, | |
41746 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41747 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41748 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41749 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS, NULL }, | |
41750 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41751 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41752 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS, NULL }, | |
41753 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41754 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41755 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41756 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41757 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41758 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41759 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41760 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41761 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41762 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS, NULL }, | |
41763 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41764 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41765 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41766 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41767 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41768 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41769 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41770 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41771 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41772 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41773 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41774 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS, NULL }, | |
41775 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41776 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41777 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41778 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41779 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41780 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41781 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41782 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41783 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41784 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS, NULL }, | |
41785 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41786 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41787 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41788 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41789 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41790 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41791 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41792 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41793 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41794 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS, NULL }, | |
41795 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41796 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41797 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41798 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41799 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41800 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41801 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41802 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41803 | { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41804 | { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41805 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41806 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41807 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41808 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS, NULL }, | |
41809 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41810 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41811 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41812 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41813 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41814 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS, NULL }, | |
41815 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS, NULL }, | |
41816 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS, NULL }, | |
41817 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS, NULL }, | |
41818 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS, NULL }, | |
41819 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41820 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41821 | { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41822 | { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41823 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS, NULL }, | |
41824 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41825 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41826 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41827 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41828 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41829 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41830 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41831 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41832 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41833 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41834 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41835 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41836 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41837 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41838 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41839 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41840 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41841 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41842 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41843 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41844 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41845 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41846 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41847 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41848 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41849 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41850 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS, NULL }, | |
41851 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41852 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41853 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41854 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41855 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41856 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41857 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41858 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41859 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41860 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41861 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41862 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS, NULL }, | |
41863 | { NULL, NULL, 0, NULL } | |
d55e5bfc RD |
41864 | }; |
41865 | ||
41866 | ||
41867 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
41868 | ||
41869 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
41870 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
41871 | } | |
41872 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
41873 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
41874 | } | |
41875 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
41876 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41877 | } | |
41878 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
41879 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41880 | } | |
41881 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
41882 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
41883 | } | |
41884 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
41885 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41886 | } | |
41887 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
41888 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
41889 | } | |
41890 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
41891 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41892 | } | |
41893 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
41894 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41895 | } | |
41896 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
41897 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
41898 | } | |
41899 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
41900 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
41901 | } | |
41902 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
41903 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
41904 | } | |
41905 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
41906 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
41907 | } | |
41908 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
41909 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
41910 | } | |
41911 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
41912 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
41913 | } | |
41914 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
41915 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
41916 | } | |
41917 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
41918 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
41919 | } | |
41920 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
41921 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41922 | } | |
41923 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
41924 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
41925 | } | |
41926 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
41927 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41928 | } | |
41929 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
41930 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
41931 | } | |
41932 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
41933 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
41934 | } | |
41935 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
41936 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
41937 | } | |
41938 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
41939 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
41940 | } | |
41941 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
41942 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
41943 | } | |
41944 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
41945 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
41946 | } | |
41947 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
41948 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
41949 | } | |
41950 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
41951 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
41952 | } | |
41953 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
41954 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
41955 | } | |
41956 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
41957 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
41958 | } | |
41959 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
41960 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
41961 | } | |
41962 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
41963 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
41964 | } | |
41965 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
41966 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
41967 | } | |
41968 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
41969 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
41970 | } | |
41971 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
41972 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
41973 | } | |
41974 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
41975 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
41976 | } | |
41977 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
41978 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
41979 | } | |
41980 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
41981 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
41982 | } | |
41983 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
41984 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
41985 | } | |
41986 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
41987 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
41988 | } | |
41989 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
41990 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
41991 | } | |
41992 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
41993 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
41994 | } | |
41995 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
41996 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
41997 | } | |
41998 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
41999 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42000 | } | |
42001 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
42002 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42003 | } | |
42004 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
42005 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42006 | } | |
42007 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
42008 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
42009 | } | |
42010 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
42011 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
42012 | } | |
42013 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
42014 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
42015 | } | |
42016 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
42017 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
42018 | } | |
42019 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
42020 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42021 | } | |
42022 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
42023 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
42024 | } | |
42025 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
42026 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
42027 | } | |
42028 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
42029 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
42030 | } | |
42031 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
42032 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
42033 | } | |
42034 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
42035 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
42036 | } | |
42037 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
42038 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
42039 | } | |
42040 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
42041 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
42042 | } | |
42043 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
42044 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
42045 | } | |
42046 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
42047 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
42048 | } | |
42049 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
42050 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
42051 | } | |
42052 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
42053 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42054 | } | |
42055 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
42056 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
42057 | } | |
42058 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
42059 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
42060 | } | |
42061 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
42062 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
42063 | } | |
42064 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
42065 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42066 | } | |
42067 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
42068 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
42069 | } | |
42070 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
42071 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
42072 | } | |
42073 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
42074 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
42075 | } | |
42076 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
42077 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
42078 | } | |
42079 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
42080 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
42081 | } | |
42082 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
42083 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
42084 | } | |
42085 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
42086 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
42087 | } | |
42088 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
42089 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
42090 | } | |
42091 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42092 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
42093 | } | |
42094 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42095 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
42096 | } | |
42097 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42098 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
42099 | } | |
42100 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
42101 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
42102 | } | |
42103 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
42104 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
42105 | } | |
42106 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
42107 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42108 | } | |
42109 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
42110 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
42111 | } | |
42112 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
42113 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
42114 | } | |
42115 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
42116 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
42117 | } | |
42118 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
42119 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
42120 | } | |
42121 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
42122 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
42123 | } | |
42124 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
42125 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
42126 | } | |
42127 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
42128 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
42129 | } | |
42130 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
42131 | return (void *)((wxObject *) ((wxSizer *) x)); | |
42132 | } | |
42133 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
42134 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
42135 | } | |
42136 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
42137 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42138 | } | |
42139 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
42140 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
42141 | } | |
42142 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
42143 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
42144 | } | |
42145 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
42146 | return (void *)((wxObject *) ((wxImage *) x)); | |
42147 | } | |
42148 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
42149 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
42150 | } | |
42151 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
42152 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42153 | } | |
42154 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
42155 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
42156 | } | |
42157 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
42158 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
42159 | } | |
42160 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
42161 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
42162 | } | |
42163 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
42164 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
42165 | } | |
42166 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
42167 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
42168 | } | |
42169 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
42170 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42171 | } | |
42172 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
42173 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
42174 | } | |
42175 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
42176 | return (void *)((wxObject *) ((wxEvent *) x)); | |
42177 | } | |
42178 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
42179 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
42180 | } | |
42181 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
42182 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
42183 | } | |
42184 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
42185 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
42186 | } | |
42187 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
42188 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
42189 | } | |
42190 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
42191 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
42192 | } | |
42193 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
42194 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
42195 | } | |
42196 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
42197 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42198 | } | |
42199 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
42200 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
42201 | } | |
42202 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
42203 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42204 | } | |
42205 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
42206 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
42207 | } | |
42208 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
42209 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
42210 | } | |
42211 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
42212 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
42213 | } | |
42214 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
42215 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
42216 | } | |
42217 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
42218 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
42219 | } | |
42220 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
42221 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
42222 | } | |
42223 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
42224 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42225 | } | |
42226 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
42227 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
42228 | } | |
42229 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
42230 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
42231 | } | |
42232 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
42233 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
42234 | } | |
42235 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
42236 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
42237 | } | |
42238 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
42239 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
42240 | } | |
42241 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
42242 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
42243 | } | |
42244 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
42245 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
42246 | } | |
42247 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
42248 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
42249 | } | |
42250 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
42251 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42252 | } | |
42253 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
42254 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
42255 | } | |
42256 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
42257 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
42258 | } | |
42259 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
42260 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
42261 | } | |
42262 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
42263 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
42264 | } | |
42265 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
42266 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
42267 | } | |
42268 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
42269 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
42270 | } | |
42271 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
42272 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42273 | } | |
42274 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
42275 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
42276 | } | |
42277 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
42278 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
42279 | } | |
42280 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
42281 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
42282 | } | |
42283 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
42284 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
42285 | } | |
42286 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
42287 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
42288 | } | |
42289 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
42290 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
42291 | } | |
42292 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
42293 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
42294 | } | |
42295 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
42296 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42297 | } | |
42298 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
42299 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
42300 | } | |
42301 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
42302 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
42303 | } | |
42304 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
42305 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42306 | } | |
42307 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
42308 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42309 | } | |
42310 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
42311 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
42312 | } | |
42313 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
42314 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
42315 | } | |
42316 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
42317 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
42318 | } | |
42319 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
42320 | return (void *)((wxWindow *) ((wxControl *) x)); | |
42321 | } | |
42322 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
42323 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
42324 | } | |
42325 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
42326 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
42327 | } | |
42328 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
42329 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42330 | } | |
42331 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
42332 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
42333 | } | |
42334 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
42335 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42336 | } | |
42337 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
42338 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42339 | } | |
42340 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
42341 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42342 | } | |
42343 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
42344 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42345 | } | |
42346 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
42347 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42348 | } | |
42349 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
42350 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42351 | } | |
42352 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
42353 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
42354 | } | |
42355 | static swig_type_info _swigt__p_wxLayoutConstraints[] = {{"_p_wxLayoutConstraints", 0, "wxLayoutConstraints *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42356 | static swig_type_info _swigt__p_wxRealPoint[] = {{"_p_wxRealPoint", 0, "wxRealPoint *", 0, 0, 0, 0},{"_p_wxRealPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42357 | static swig_type_info _swigt__p_wxSizerItem[] = {{"_p_wxSizerItem", 0, "wxSizerItem *", 0, 0, 0, 0},{"_p_wxSizerItem", 0, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxSizerItem, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42358 | static swig_type_info _swigt__p_wxGBSizerItem[] = {{"_p_wxGBSizerItem", 0, "wxGBSizerItem *", 0, 0, 0, 0},{"_p_wxGBSizerItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42359 | static swig_type_info _swigt__p_wxScrollEvent[] = {{"_p_wxScrollEvent", 0, "wxScrollEvent *", 0, 0, 0, 0},{"_p_wxScrollEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
b411df4a | 42360 | static swig_type_info _swigt__p_wxEventLoop[] = {{"_p_wxEventLoop", 0, "wxEventLoop *", 0, 0, 0, 0},{"_p_wxEventLoop", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
42361 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint[] = {{"_p_wxIndividualLayoutConstraint", 0, "wxIndividualLayoutConstraint *", 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
42362 | static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0, 0, 0, 0},{"_p_wxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42363 | static swig_type_info _swigt__p_wxBoxSizer[] = {{"_p_wxBoxSizer", 0, "wxBoxSizer *", 0, 0, 0, 0},{"_p_wxBoxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxBoxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42364 | static swig_type_info _swigt__p_wxStaticBoxSizer[] = {{"_p_wxStaticBoxSizer", 0, "wxStaticBoxSizer *", 0, 0, 0, 0},{"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42365 | static swig_type_info _swigt__p_wxGridBagSizer[] = {{"_p_wxGridBagSizer", 0, "wxGridBagSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42366 | static swig_type_info _swigt__p_wxAcceleratorEntry[] = {{"_p_wxAcceleratorEntry", 0, "wxAcceleratorEntry *", 0, 0, 0, 0},{"_p_wxAcceleratorEntry", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42367 | static swig_type_info _swigt__p_wxUpdateUIEvent[] = {{"_p_wxUpdateUIEvent", 0, "wxUpdateUIEvent *", 0, 0, 0, 0},{"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42368 | static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0, 0, 0, 0},{"_p_wxMenu", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42369 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42370 | static swig_type_info _swigt__p_wxGridSizer[] = {{"_p_wxGridSizer", 0, "wxGridSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxGridSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", 0, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxGridSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42371 | static swig_type_info _swigt__p_wxFlexGridSizer[] = {{"_p_wxFlexGridSizer", 0, "wxFlexGridSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxFlexGridSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42372 | static swig_type_info _swigt__p_wxInitDialogEvent[] = {{"_p_wxInitDialogEvent", 0, "wxInitDialogEvent *", 0, 0, 0, 0},{"_p_wxInitDialogEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42373 | static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxItemContainer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42374 | static swig_type_info _swigt__p_wxNcPaintEvent[] = {{"_p_wxNcPaintEvent", 0, "wxNcPaintEvent *", 0, 0, 0, 0},{"_p_wxNcPaintEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42375 | static swig_type_info _swigt__p_wxPaintEvent[] = {{"_p_wxPaintEvent", 0, "wxPaintEvent *", 0, 0, 0, 0},{"_p_wxPaintEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42376 | static swig_type_info _swigt__p_wxSysColourChangedEvent[] = {{"_p_wxSysColourChangedEvent", 0, "wxSysColourChangedEvent *", 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42377 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent[] = {{"_p_wxMouseCaptureChangedEvent", 0, "wxMouseCaptureChangedEvent *", 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42378 | static swig_type_info _swigt__p_wxDisplayChangedEvent[] = {{"_p_wxDisplayChangedEvent", 0, "wxDisplayChangedEvent *", 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42379 | static swig_type_info _swigt__p_wxPaletteChangedEvent[] = {{"_p_wxPaletteChangedEvent", 0, "wxPaletteChangedEvent *", 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42380 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42381 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42382 | static swig_type_info _swigt__p_wxMenuBarBase[] = {{"_p_wxMenuBarBase", 0, "wxMenuBarBase *", 0, 0, 0, 0},{"_p_wxMenuBarBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42383 | static swig_type_info _swigt__p_wxSetCursorEvent[] = {{"_p_wxSetCursorEvent", 0, "wxSetCursorEvent *", 0, 0, 0, 0},{"_p_wxSetCursorEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42384 | static swig_type_info _swigt__p_wxFSFile[] = {{"_p_wxFSFile", 0, "wxFSFile *", 0, 0, 0, 0},{"_p_wxFSFile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42385 | static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0, 0, 0, 0},{"_p_wxCaret", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42386 | static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0, 0, 0, 0},{"_p_wxRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42387 | static swig_type_info _swigt__p_wxPoint2D[] = {{"_p_wxPoint2D", 0, "wxPoint2D *", 0, 0, 0, 0},{"_p_wxPoint2D", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42388 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42389 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42390 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42391 | static swig_type_info _swigt__p_wxPySizer[] = {{"_p_wxPySizer", 0, "wxPySizer *", 0, 0, 0, 0},{"_p_wxPySizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42392 | static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42393 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42394 | static swig_type_info _swigt__p_wxPyEvent[] = {{"_p_wxPyEvent", 0, "wxPyEvent *", 0, 0, 0, 0},{"_p_wxPyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42395 | static swig_type_info _swigt__p_wxPropagationDisabler[] = {{"_p_wxPropagationDisabler", 0, "wxPropagationDisabler *", 0, 0, 0, 0},{"_p_wxPropagationDisabler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42396 | static swig_type_info _swigt__p_wxAppTraits[] = {{"_p_wxAppTraits", 0, "wxAppTraits *", 0, 0, 0, 0},{"_p_wxAppTraits", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42397 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42398 | static swig_type_info _swigt__p_wxShowEvent[] = {{"_p_wxShowEvent", 0, "wxShowEvent *", 0, 0, 0, 0},{"_p_wxShowEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42399 | static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0, 0, 0, 0},{"_p_wxToolTip", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
d55e5bfc RD |
42400 | static swig_type_info _swigt__p_wxIconizeEvent[] = {{"_p_wxIconizeEvent", 0, "wxIconizeEvent *", 0, 0, 0, 0},{"_p_wxIconizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
42401 | static swig_type_info _swigt__p_wxActivateEvent[] = {{"_p_wxActivateEvent", 0, "wxActivateEvent *", 0, 0, 0, 0},{"_p_wxActivateEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42402 | static swig_type_info _swigt__p_wxMoveEvent[] = {{"_p_wxMoveEvent", 0, "wxMoveEvent *", 0, 0, 0, 0},{"_p_wxMoveEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42403 | static swig_type_info _swigt__p_wxSizeEvent[] = {{"_p_wxSizeEvent", 0, "wxSizeEvent *", 0, 0, 0, 0},{"_p_wxSizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
c0de73ae | 42404 | static swig_type_info _swigt__p_wxMaximizeEvent[] = {{"_p_wxMaximizeEvent", 0, "wxMaximizeEvent *", 0, 0, 0, 0},{"_p_wxMaximizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
42405 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent[] = {{"_p_wxQueryNewPaletteEvent", 0, "wxQueryNewPaletteEvent *", 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
42406 | static swig_type_info _swigt__p_wxWindowCreateEvent[] = {{"_p_wxWindowCreateEvent", 0, "wxWindowCreateEvent *", 0, 0, 0, 0},{"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42407 | static swig_type_info _swigt__p_wxIdleEvent[] = {{"_p_wxIdleEvent", 0, "wxIdleEvent *", 0, 0, 0, 0},{"_p_wxIdleEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42408 | static swig_type_info _swigt__p_wxMenuItem[] = {{"_p_wxMenuItem", 0, "wxMenuItem *", 0, 0, 0, 0},{"_p_wxMenuItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42409 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0, 0, 0, 0},{"_p_wxStaticBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42410 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42411 | static swig_type_info _swigt__p_wxTIFFHandler[] = {{"_p_wxTIFFHandler", 0, "wxTIFFHandler *", 0, 0, 0, 0},{"_p_wxTIFFHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42412 | static swig_type_info _swigt__p_wxXPMHandler[] = {{"_p_wxXPMHandler", 0, "wxXPMHandler *", 0, 0, 0, 0},{"_p_wxXPMHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42413 | static swig_type_info _swigt__p_wxPNMHandler[] = {{"_p_wxPNMHandler", 0, "wxPNMHandler *", 0, 0, 0, 0},{"_p_wxPNMHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42414 | static swig_type_info _swigt__p_wxJPEGHandler[] = {{"_p_wxJPEGHandler", 0, "wxJPEGHandler *", 0, 0, 0, 0},{"_p_wxJPEGHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42415 | static swig_type_info _swigt__p_wxPCXHandler[] = {{"_p_wxPCXHandler", 0, "wxPCXHandler *", 0, 0, 0, 0},{"_p_wxPCXHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42416 | static swig_type_info _swigt__p_wxGIFHandler[] = {{"_p_wxGIFHandler", 0, "wxGIFHandler *", 0, 0, 0, 0},{"_p_wxGIFHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42417 | static swig_type_info _swigt__p_wxPNGHandler[] = {{"_p_wxPNGHandler", 0, "wxPNGHandler *", 0, 0, 0, 0},{"_p_wxPNGHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42418 | static swig_type_info _swigt__p_wxANIHandler[] = {{"_p_wxANIHandler", 0, "wxANIHandler *", 0, 0, 0, 0},{"_p_wxANIHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42419 | static swig_type_info _swigt__p_wxMemoryFSHandler[] = {{"_p_wxMemoryFSHandler", 0, "wxMemoryFSHandler *", 0, 0, 0, 0},{"_p_wxMemoryFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42420 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42421 | static swig_type_info _swigt__p_wxCURHandler[] = {{"_p_wxCURHandler", 0, "wxCURHandler *", 0, 0, 0, 0},{"_p_wxCURHandler", 0, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxCURHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42422 | static swig_type_info _swigt__p_wxICOHandler[] = {{"_p_wxICOHandler", 0, "wxICOHandler *", 0, 0, 0, 0},{"_p_wxICOHandler", 0, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxICOHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxICOHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42423 | static swig_type_info _swigt__p_wxBMPHandler[] = {{"_p_wxBMPHandler", 0, "wxBMPHandler *", 0, 0, 0, 0},{"_p_wxBMPHandler", 0, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42424 | static swig_type_info _swigt__p_wxImageHandler[] = {{"_p_wxImageHandler", 0, "wxImageHandler *", 0, 0, 0, 0},{"_p_wxImageHandler", 0, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42425 | static swig_type_info _swigt__p_wxFileSystemHandler[] = {{"_p_wxFileSystemHandler", 0, "wxFileSystemHandler *", 0, 0, 0, 0},{"_p_wxFileSystemHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyFileSystemHandler", _p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxInternetFSHandler", _p_wxInternetFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxZipFSHandler", _p_wxZipFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxMemoryFSHandler", _p_wxMemoryFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42426 | static swig_type_info _swigt__p_wxPyFileSystemHandler[] = {{"_p_wxPyFileSystemHandler", 0, "wxPyFileSystemHandler *", 0, 0, 0, 0},{"_p_wxPyFileSystemHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42427 | static swig_type_info _swigt__p_wxInternetFSHandler[] = {{"_p_wxInternetFSHandler", 0, "wxInternetFSHandler *", 0, 0, 0, 0},{"_p_wxInternetFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42428 | static swig_type_info _swigt__p_wxZipFSHandler[] = {{"_p_wxZipFSHandler", 0, "wxZipFSHandler *", 0, 0, 0, 0},{"_p_wxZipFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42429 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42430 | static swig_type_info _swigt__p_wxGBSpan[] = {{"_p_wxGBSpan", 0, "wxGBSpan *", 0, 0, 0, 0},{"_p_wxGBSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42431 | static swig_type_info _swigt__p_wxPropagateOnce[] = {{"_p_wxPropagateOnce", 0, "wxPropagateOnce *", 0, 0, 0, 0},{"_p_wxPropagateOnce", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42432 | static swig_type_info _swigt__p_wxAcceleratorTable[] = {{"_p_wxAcceleratorTable", 0, "wxAcceleratorTable *", 0, 0, 0, 0},{"_p_wxAcceleratorTable", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42433 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42434 | static swig_type_info _swigt__p_wxGBPosition[] = {{"_p_wxGBPosition", 0, "wxGBPosition *", 0, 0, 0, 0},{"_p_wxGBPosition", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42435 | static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0, 0, 0, 0},{"_p_wxImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42436 | static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42437 | static swig_type_info _swigt__p_wxScrollWinEvent[] = {{"_p_wxScrollWinEvent", 0, "wxScrollWinEvent *", 0, 0, 0, 0},{"_p_wxScrollWinEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42438 | static swig_type_info _swigt__p_wxImageHistogram[] = {{"_p_wxImageHistogram", 0, "wxImageHistogram *", 0, 0, 0, 0},{"_p_wxImageHistogram", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42439 | static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42440 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42441 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42442 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42443 | static swig_type_info _swigt__p_wxPyInputStream[] = {{"_p_wxPyInputStream", 0, "wxPyInputStream *", 0, 0, 0, 0},{"_p_wxPyInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42444 | static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42445 | static swig_type_info _swigt__p_wxInputStream[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0, 0, 0, 0},{"_p_wxInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42446 | static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0, 0, 0, 0},{"_p_wxDateTime", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42447 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0, 0, 0, 0},{"_p_wxKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42448 | static swig_type_info _swigt__p_wxNavigationKeyEvent[] = {{"_p_wxNavigationKeyEvent", 0, "wxNavigationKeyEvent *", 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42449 | static swig_type_info _swigt__p_wxWindowDestroyEvent[] = {{"_p_wxWindowDestroyEvent", 0, "wxWindowDestroyEvent *", 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42450 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42451 | static swig_type_info _swigt__p_wxMenuBar[] = {{"_p_wxMenuBar", 0, "wxMenuBar *", 0, 0, 0, 0},{"_p_wxMenuBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42452 | static swig_type_info _swigt__p_wxFileSystem[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0, 0, 0, 0},{"_p_wxFileSystem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42453 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42454 | static swig_type_info _swigt__p_wxMenuEvent[] = {{"_p_wxMenuEvent", 0, "wxMenuEvent *", 0, 0, 0, 0},{"_p_wxMenuEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42455 | static swig_type_info _swigt__p_wxContextMenuEvent[] = {{"_p_wxContextMenuEvent", 0, "wxContextMenuEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42456 | static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42457 | static swig_type_info _swigt__p_wxCloseEvent[] = {{"_p_wxCloseEvent", 0, "wxCloseEvent *", 0, 0, 0, 0},{"_p_wxCloseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42458 | static swig_type_info _swigt__p_wxEraseEvent[] = {{"_p_wxEraseEvent", 0, "wxEraseEvent *", 0, 0, 0, 0},{"_p_wxEraseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42459 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0, 0, 0, 0},{"_p_wxMouseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42460 | static swig_type_info _swigt__p_wxPyApp[] = {{"_p_wxPyApp", 0, "wxPyApp *", 0, 0, 0, 0},{"_p_wxPyApp", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42461 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42462 | static swig_type_info _swigt__p_wxPyCommandEvent[] = {{"_p_wxPyCommandEvent", 0, "wxPyCommandEvent *", 0, 0, 0, 0},{"_p_wxPyCommandEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42463 | static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0, 0, 0, 0},{"_p_wxPyDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
c0de73ae | 42464 | static swig_type_info _swigt__p_wxQuantize[] = {{"_p_wxQuantize", 0, "wxQuantize *", 0, 0, 0, 0},{"_p_wxQuantize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
d55e5bfc RD |
42465 | static swig_type_info _swigt__p_wxChildFocusEvent[] = {{"_p_wxChildFocusEvent", 0, "wxChildFocusEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
42466 | static swig_type_info _swigt__p_wxFocusEvent[] = {{"_p_wxFocusEvent", 0, "wxFocusEvent *", 0, 0, 0, 0},{"_p_wxFocusEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42467 | static swig_type_info _swigt__p_wxDropFilesEvent[] = {{"_p_wxDropFilesEvent", 0, "wxDropFilesEvent *", 0, 0, 0, 0},{"_p_wxDropFilesEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42468 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42469 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42470 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42471 | static swig_type_info _swigt__p_wxPyValidator[] = {{"_p_wxPyValidator", 0, "wxPyValidator *", 0, 0, 0, 0},{"_p_wxPyValidator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
42472 | ||
42473 | static swig_type_info *swig_types_initial[] = { | |
42474 | _swigt__p_wxLayoutConstraints, | |
42475 | _swigt__p_wxRealPoint, | |
42476 | _swigt__p_wxSizerItem, | |
42477 | _swigt__p_wxGBSizerItem, | |
42478 | _swigt__p_wxScrollEvent, | |
b411df4a | 42479 | _swigt__p_wxEventLoop, |
d55e5bfc RD |
42480 | _swigt__p_wxIndividualLayoutConstraint, |
42481 | _swigt__p_wxSizer, | |
42482 | _swigt__p_wxBoxSizer, | |
42483 | _swigt__p_wxStaticBoxSizer, | |
42484 | _swigt__p_wxGridBagSizer, | |
42485 | _swigt__p_wxAcceleratorEntry, | |
42486 | _swigt__p_wxUpdateUIEvent, | |
42487 | _swigt__p_wxMenu, | |
42488 | _swigt__p_wxEvent, | |
42489 | _swigt__p_wxGridSizer, | |
42490 | _swigt__p_wxFlexGridSizer, | |
42491 | _swigt__p_wxInitDialogEvent, | |
42492 | _swigt__p_wxItemContainer, | |
42493 | _swigt__p_wxNcPaintEvent, | |
42494 | _swigt__p_wxPaintEvent, | |
42495 | _swigt__p_wxSysColourChangedEvent, | |
42496 | _swigt__p_wxMouseCaptureChangedEvent, | |
42497 | _swigt__p_wxDisplayChangedEvent, | |
42498 | _swigt__p_wxPaletteChangedEvent, | |
42499 | _swigt__p_wxControl, | |
42500 | _swigt__p_wxFont, | |
42501 | _swigt__p_wxMenuBarBase, | |
42502 | _swigt__p_wxSetCursorEvent, | |
42503 | _swigt__p_wxFSFile, | |
42504 | _swigt__p_wxCaret, | |
42505 | _swigt__p_wxRegion, | |
42506 | _swigt__p_wxPoint2D, | |
42507 | _swigt__p_int, | |
42508 | _swigt__p_wxSize, | |
42509 | _swigt__p_wxDC, | |
42510 | _swigt__p_wxPySizer, | |
42511 | _swigt__p_wxVisualAttributes, | |
42512 | _swigt__p_wxNotifyEvent, | |
42513 | _swigt__p_wxPyEvent, | |
42514 | _swigt__p_wxPropagationDisabler, | |
42515 | _swigt__p_wxAppTraits, | |
42516 | _swigt__p_wxArrayString, | |
42517 | _swigt__p_wxShowEvent, | |
42518 | _swigt__p_wxToolTip, | |
d55e5bfc RD |
42519 | _swigt__p_wxIconizeEvent, |
42520 | _swigt__p_wxActivateEvent, | |
42521 | _swigt__p_wxMoveEvent, | |
42522 | _swigt__p_wxSizeEvent, | |
c0de73ae | 42523 | _swigt__p_wxMaximizeEvent, |
d55e5bfc RD |
42524 | _swigt__p_wxQueryNewPaletteEvent, |
42525 | _swigt__p_wxWindowCreateEvent, | |
42526 | _swigt__p_wxIdleEvent, | |
42527 | _swigt__p_wxMenuItem, | |
42528 | _swigt__p_wxStaticBox, | |
42529 | _swigt__p_long, | |
42530 | _swigt__p_wxTIFFHandler, | |
42531 | _swigt__p_wxXPMHandler, | |
42532 | _swigt__p_wxPNMHandler, | |
42533 | _swigt__p_wxJPEGHandler, | |
42534 | _swigt__p_wxPCXHandler, | |
42535 | _swigt__p_wxGIFHandler, | |
42536 | _swigt__p_wxPNGHandler, | |
42537 | _swigt__p_wxANIHandler, | |
42538 | _swigt__p_wxMemoryFSHandler, | |
42539 | _swigt__p_wxEvtHandler, | |
42540 | _swigt__p_wxCURHandler, | |
42541 | _swigt__p_wxICOHandler, | |
42542 | _swigt__p_wxBMPHandler, | |
42543 | _swigt__p_wxImageHandler, | |
42544 | _swigt__p_wxFileSystemHandler, | |
42545 | _swigt__p_wxPyFileSystemHandler, | |
42546 | _swigt__p_wxInternetFSHandler, | |
42547 | _swigt__p_wxZipFSHandler, | |
42548 | _swigt__p_wxRect, | |
42549 | _swigt__p_wxGBSpan, | |
42550 | _swigt__p_wxPropagateOnce, | |
42551 | _swigt__p_wxAcceleratorTable, | |
42552 | _swigt__p_char, | |
42553 | _swigt__p_wxGBPosition, | |
42554 | _swigt__p_wxImage, | |
42555 | _swigt__p_wxFrame, | |
42556 | _swigt__p_wxScrollWinEvent, | |
42557 | _swigt__p_wxImageHistogram, | |
42558 | _swigt__p_byte, | |
42559 | _swigt__p_wxPoint, | |
42560 | _swigt__p_wxCursor, | |
42561 | _swigt__p_wxObject, | |
42562 | _swigt__p_wxPyInputStream, | |
42563 | _swigt__p_wxOutputStream, | |
42564 | _swigt__p_wxInputStream, | |
42565 | _swigt__p_wxDateTime, | |
42566 | _swigt__p_wxKeyEvent, | |
42567 | _swigt__p_wxNavigationKeyEvent, | |
42568 | _swigt__p_wxWindowDestroyEvent, | |
42569 | _swigt__p_wxWindow, | |
42570 | _swigt__p_wxMenuBar, | |
42571 | _swigt__p_wxFileSystem, | |
42572 | _swigt__p_wxBitmap, | |
42573 | _swigt__p_wxMenuEvent, | |
42574 | _swigt__p_wxContextMenuEvent, | |
42575 | _swigt__p_unsigned_char, | |
42576 | _swigt__p_wxCloseEvent, | |
42577 | _swigt__p_wxEraseEvent, | |
42578 | _swigt__p_wxMouseEvent, | |
42579 | _swigt__p_wxPyApp, | |
42580 | _swigt__p_wxCommandEvent, | |
42581 | _swigt__p_wxPyCommandEvent, | |
42582 | _swigt__p_wxPyDropTarget, | |
c0de73ae | 42583 | _swigt__p_wxQuantize, |
d55e5bfc RD |
42584 | _swigt__p_wxChildFocusEvent, |
42585 | _swigt__p_wxFocusEvent, | |
42586 | _swigt__p_wxDropFilesEvent, | |
42587 | _swigt__p_wxControlWithItems, | |
42588 | _swigt__p_wxColour, | |
42589 | _swigt__p_wxValidator, | |
42590 | _swigt__p_wxPyValidator, | |
42591 | 0 | |
42592 | }; | |
42593 | ||
42594 | ||
42595 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
42596 | ||
42597 | static swig_const_info swig_const_table[] = { | |
c370783e | 42598 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
42599 | |
42600 | #ifdef __cplusplus | |
42601 | } | |
42602 | #endif | |
42603 | ||
42604 | #ifdef __cplusplus | |
42605 | extern "C" | |
42606 | #endif | |
42607 | SWIGEXPORT(void) SWIG_init(void) { | |
42608 | static PyObject *SWIG_globals = 0; | |
42609 | static int typeinit = 0; | |
42610 | PyObject *m, *d; | |
42611 | int i; | |
42612 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
42613 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
42614 | d = PyModule_GetDict(m); | |
42615 | ||
42616 | if (!typeinit) { | |
42617 | for (i = 0; swig_types_initial[i]; i++) { | |
42618 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
42619 | } | |
42620 | typeinit = 1; | |
42621 | } | |
42622 | SWIG_InstallConstants(d,swig_const_table); | |
42623 | ||
42624 | ||
42625 | #ifndef wxPyUSE_EXPORT | |
42626 | // Make our API structure a CObject so other modules can import it | |
42627 | // from this module. | |
42628 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
42629 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
42630 | Py_XDECREF(cobj); | |
42631 | #endif | |
42632 | ||
c370783e RD |
42633 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_From_int((int)wxNOT_FOUND)); |
42634 | PyDict_SetItemString(d,"VSCROLL", SWIG_From_int((int)wxVSCROLL)); | |
42635 | PyDict_SetItemString(d,"HSCROLL", SWIG_From_int((int)wxHSCROLL)); | |
42636 | PyDict_SetItemString(d,"CAPTION", SWIG_From_int((int)wxCAPTION)); | |
42637 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_From_int((int)wxDOUBLE_BORDER)); | |
42638 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_From_int((int)wxSUNKEN_BORDER)); | |
42639 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_From_int((int)wxRAISED_BORDER)); | |
42640 | PyDict_SetItemString(d,"BORDER", SWIG_From_int((int)wxBORDER)); | |
42641 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_From_int((int)wxSIMPLE_BORDER)); | |
42642 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_From_int((int)wxSTATIC_BORDER)); | |
42643 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_From_int((int)wxTRANSPARENT_WINDOW)); | |
42644 | PyDict_SetItemString(d,"NO_BORDER", SWIG_From_int((int)wxNO_BORDER)); | |
42645 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_From_int((int)wxTAB_TRAVERSAL)); | |
42646 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_From_int((int)wxWANTS_CHARS)); | |
42647 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_From_int((int)wxPOPUP_WINDOW)); | |
42648 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_From_int((int)wxCENTER_FRAME)); | |
42649 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_From_int((int)wxCENTRE_ON_SCREEN)); | |
42650 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_From_int((int)wxCENTER_ON_SCREEN)); | |
42651 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_From_int((int)wxED_CLIENT_MARGIN)); | |
42652 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_From_int((int)wxED_BUTTONS_BOTTOM)); | |
42653 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_From_int((int)wxED_BUTTONS_RIGHT)); | |
42654 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_From_int((int)wxED_STATIC_LINE)); | |
42655 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_From_int((int)wxEXT_DIALOG_STYLE)); | |
42656 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_From_int((int)wxCLIP_CHILDREN)); | |
42657 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_From_int((int)wxCLIP_SIBLINGS)); | |
42658 | PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_From_int((int)wxALWAYS_SHOW_SB)); | |
42659 | PyDict_SetItemString(d,"RETAINED", SWIG_From_int((int)wxRETAINED)); | |
42660 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_From_int((int)wxBACKINGSTORE)); | |
42661 | PyDict_SetItemString(d,"COLOURED", SWIG_From_int((int)wxCOLOURED)); | |
42662 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_From_int((int)wxFIXED_LENGTH)); | |
42663 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_From_int((int)wxLB_NEEDED_SB)); | |
42664 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_From_int((int)wxLB_ALWAYS_SB)); | |
42665 | PyDict_SetItemString(d,"LB_SORT", SWIG_From_int((int)wxLB_SORT)); | |
42666 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_From_int((int)wxLB_SINGLE)); | |
42667 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_From_int((int)wxLB_MULTIPLE)); | |
42668 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_From_int((int)wxLB_EXTENDED)); | |
42669 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_From_int((int)wxLB_OWNERDRAW)); | |
42670 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_From_int((int)wxLB_HSCROLL)); | |
42671 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_From_int((int)wxPROCESS_ENTER)); | |
42672 | PyDict_SetItemString(d,"PASSWORD", SWIG_From_int((int)wxPASSWORD)); | |
42673 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_From_int((int)wxCB_SIMPLE)); | |
42674 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_From_int((int)wxCB_DROPDOWN)); | |
42675 | PyDict_SetItemString(d,"CB_SORT", SWIG_From_int((int)wxCB_SORT)); | |
42676 | PyDict_SetItemString(d,"CB_READONLY", SWIG_From_int((int)wxCB_READONLY)); | |
42677 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_From_int((int)wxRA_HORIZONTAL)); | |
42678 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_From_int((int)wxRA_VERTICAL)); | |
42679 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_From_int((int)wxRA_SPECIFY_ROWS)); | |
42680 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_From_int((int)wxRA_SPECIFY_COLS)); | |
42681 | PyDict_SetItemString(d,"RB_GROUP", SWIG_From_int((int)wxRB_GROUP)); | |
42682 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_From_int((int)wxRB_SINGLE)); | |
42683 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_From_int((int)wxSL_HORIZONTAL)); | |
42684 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_From_int((int)wxSL_VERTICAL)); | |
42685 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_From_int((int)wxSL_AUTOTICKS)); | |
42686 | PyDict_SetItemString(d,"SL_LABELS", SWIG_From_int((int)wxSL_LABELS)); | |
42687 | PyDict_SetItemString(d,"SL_LEFT", SWIG_From_int((int)wxSL_LEFT)); | |
42688 | PyDict_SetItemString(d,"SL_TOP", SWIG_From_int((int)wxSL_TOP)); | |
42689 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_From_int((int)wxSL_RIGHT)); | |
42690 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_From_int((int)wxSL_BOTTOM)); | |
42691 | PyDict_SetItemString(d,"SL_BOTH", SWIG_From_int((int)wxSL_BOTH)); | |
42692 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_From_int((int)wxSL_SELRANGE)); | |
42693 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_From_int((int)wxSB_HORIZONTAL)); | |
42694 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_From_int((int)wxSB_VERTICAL)); | |
42695 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_From_int((int)wxST_SIZEGRIP)); | |
42696 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_From_int((int)wxST_NO_AUTORESIZE)); | |
42697 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_From_int((int)wxFLOOD_SURFACE)); | |
42698 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_From_int((int)wxFLOOD_BORDER)); | |
42699 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_From_int((int)wxODDEVEN_RULE)); | |
42700 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_From_int((int)wxWINDING_RULE)); | |
42701 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_From_int((int)wxTOOL_TOP)); | |
42702 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_From_int((int)wxTOOL_BOTTOM)); | |
42703 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_From_int((int)wxTOOL_LEFT)); | |
42704 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_From_int((int)wxTOOL_RIGHT)); | |
42705 | PyDict_SetItemString(d,"OK", SWIG_From_int((int)wxOK)); | |
42706 | PyDict_SetItemString(d,"YES_NO", SWIG_From_int((int)wxYES_NO)); | |
42707 | PyDict_SetItemString(d,"CANCEL", SWIG_From_int((int)wxCANCEL)); | |
42708 | PyDict_SetItemString(d,"YES", SWIG_From_int((int)wxYES)); | |
42709 | PyDict_SetItemString(d,"NO", SWIG_From_int((int)wxNO)); | |
42710 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_From_int((int)wxNO_DEFAULT)); | |
42711 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_From_int((int)wxYES_DEFAULT)); | |
42712 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_From_int((int)wxICON_EXCLAMATION)); | |
42713 | PyDict_SetItemString(d,"ICON_HAND", SWIG_From_int((int)wxICON_HAND)); | |
42714 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_From_int((int)wxICON_QUESTION)); | |
42715 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_From_int((int)wxICON_INFORMATION)); | |
42716 | PyDict_SetItemString(d,"ICON_STOP", SWIG_From_int((int)wxICON_STOP)); | |
42717 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_From_int((int)wxICON_ASTERISK)); | |
42718 | PyDict_SetItemString(d,"ICON_MASK", SWIG_From_int((int)wxICON_MASK)); | |
42719 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_From_int((int)wxICON_WARNING)); | |
42720 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_From_int((int)wxICON_ERROR)); | |
42721 | PyDict_SetItemString(d,"FORWARD", SWIG_From_int((int)wxFORWARD)); | |
42722 | PyDict_SetItemString(d,"BACKWARD", SWIG_From_int((int)wxBACKWARD)); | |
42723 | PyDict_SetItemString(d,"RESET", SWIG_From_int((int)wxRESET)); | |
42724 | PyDict_SetItemString(d,"HELP", SWIG_From_int((int)wxHELP)); | |
42725 | PyDict_SetItemString(d,"MORE", SWIG_From_int((int)wxMORE)); | |
42726 | PyDict_SetItemString(d,"SETUP", SWIG_From_int((int)wxSETUP)); | |
42727 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_From_int((int)wxSIZE_AUTO_WIDTH)); | |
42728 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_From_int((int)wxSIZE_AUTO_HEIGHT)); | |
42729 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_From_int((int)wxSIZE_AUTO)); | |
42730 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_From_int((int)wxSIZE_USE_EXISTING)); | |
42731 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_From_int((int)wxSIZE_ALLOW_MINUS_ONE)); | |
42732 | PyDict_SetItemString(d,"PORTRAIT", SWIG_From_int((int)wxPORTRAIT)); | |
42733 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_From_int((int)wxLANDSCAPE)); | |
42734 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_From_int((int)wxPRINT_QUALITY_HIGH)); | |
42735 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_From_int((int)wxPRINT_QUALITY_MEDIUM)); | |
42736 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_From_int((int)wxPRINT_QUALITY_LOW)); | |
42737 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_From_int((int)wxPRINT_QUALITY_DRAFT)); | |
42738 | PyDict_SetItemString(d,"ID_ANY", SWIG_From_int((int)wxID_ANY)); | |
42739 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_From_int((int)wxID_SEPARATOR)); | |
42740 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_From_int((int)wxID_LOWEST)); | |
42741 | PyDict_SetItemString(d,"ID_OPEN", SWIG_From_int((int)wxID_OPEN)); | |
42742 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_From_int((int)wxID_CLOSE)); | |
42743 | PyDict_SetItemString(d,"ID_NEW", SWIG_From_int((int)wxID_NEW)); | |
42744 | PyDict_SetItemString(d,"ID_SAVE", SWIG_From_int((int)wxID_SAVE)); | |
42745 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_From_int((int)wxID_SAVEAS)); | |
42746 | PyDict_SetItemString(d,"ID_REVERT", SWIG_From_int((int)wxID_REVERT)); | |
42747 | PyDict_SetItemString(d,"ID_EXIT", SWIG_From_int((int)wxID_EXIT)); | |
42748 | PyDict_SetItemString(d,"ID_UNDO", SWIG_From_int((int)wxID_UNDO)); | |
42749 | PyDict_SetItemString(d,"ID_REDO", SWIG_From_int((int)wxID_REDO)); | |
42750 | PyDict_SetItemString(d,"ID_HELP", SWIG_From_int((int)wxID_HELP)); | |
42751 | PyDict_SetItemString(d,"ID_PRINT", SWIG_From_int((int)wxID_PRINT)); | |
42752 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_From_int((int)wxID_PRINT_SETUP)); | |
42753 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_From_int((int)wxID_PREVIEW)); | |
42754 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_From_int((int)wxID_ABOUT)); | |
42755 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_From_int((int)wxID_HELP_CONTENTS)); | |
42756 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_From_int((int)wxID_HELP_COMMANDS)); | |
42757 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_From_int((int)wxID_HELP_PROCEDURES)); | |
42758 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_From_int((int)wxID_HELP_CONTEXT)); | |
42759 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_From_int((int)wxID_CLOSE_ALL)); | |
42760 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_From_int((int)wxID_PREFERENCES)); | |
42761 | PyDict_SetItemString(d,"ID_CUT", SWIG_From_int((int)wxID_CUT)); | |
42762 | PyDict_SetItemString(d,"ID_COPY", SWIG_From_int((int)wxID_COPY)); | |
42763 | PyDict_SetItemString(d,"ID_PASTE", SWIG_From_int((int)wxID_PASTE)); | |
42764 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_From_int((int)wxID_CLEAR)); | |
42765 | PyDict_SetItemString(d,"ID_FIND", SWIG_From_int((int)wxID_FIND)); | |
42766 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_From_int((int)wxID_DUPLICATE)); | |
42767 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_From_int((int)wxID_SELECTALL)); | |
42768 | PyDict_SetItemString(d,"ID_DELETE", SWIG_From_int((int)wxID_DELETE)); | |
42769 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_From_int((int)wxID_REPLACE)); | |
42770 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_From_int((int)wxID_REPLACE_ALL)); | |
42771 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_From_int((int)wxID_PROPERTIES)); | |
42772 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_From_int((int)wxID_VIEW_DETAILS)); | |
42773 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_From_int((int)wxID_VIEW_LARGEICONS)); | |
42774 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_From_int((int)wxID_VIEW_SMALLICONS)); | |
42775 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_From_int((int)wxID_VIEW_LIST)); | |
42776 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_From_int((int)wxID_VIEW_SORTDATE)); | |
42777 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_From_int((int)wxID_VIEW_SORTNAME)); | |
42778 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_From_int((int)wxID_VIEW_SORTSIZE)); | |
42779 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_From_int((int)wxID_VIEW_SORTTYPE)); | |
42780 | PyDict_SetItemString(d,"ID_FILE1", SWIG_From_int((int)wxID_FILE1)); | |
42781 | PyDict_SetItemString(d,"ID_FILE2", SWIG_From_int((int)wxID_FILE2)); | |
42782 | PyDict_SetItemString(d,"ID_FILE3", SWIG_From_int((int)wxID_FILE3)); | |
42783 | PyDict_SetItemString(d,"ID_FILE4", SWIG_From_int((int)wxID_FILE4)); | |
42784 | PyDict_SetItemString(d,"ID_FILE5", SWIG_From_int((int)wxID_FILE5)); | |
42785 | PyDict_SetItemString(d,"ID_FILE6", SWIG_From_int((int)wxID_FILE6)); | |
42786 | PyDict_SetItemString(d,"ID_FILE7", SWIG_From_int((int)wxID_FILE7)); | |
42787 | PyDict_SetItemString(d,"ID_FILE8", SWIG_From_int((int)wxID_FILE8)); | |
42788 | PyDict_SetItemString(d,"ID_FILE9", SWIG_From_int((int)wxID_FILE9)); | |
42789 | PyDict_SetItemString(d,"ID_OK", SWIG_From_int((int)wxID_OK)); | |
42790 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_From_int((int)wxID_CANCEL)); | |
42791 | PyDict_SetItemString(d,"ID_APPLY", SWIG_From_int((int)wxID_APPLY)); | |
42792 | PyDict_SetItemString(d,"ID_YES", SWIG_From_int((int)wxID_YES)); | |
42793 | PyDict_SetItemString(d,"ID_NO", SWIG_From_int((int)wxID_NO)); | |
42794 | PyDict_SetItemString(d,"ID_STATIC", SWIG_From_int((int)wxID_STATIC)); | |
42795 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_From_int((int)wxID_FORWARD)); | |
42796 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_From_int((int)wxID_BACKWARD)); | |
42797 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_From_int((int)wxID_DEFAULT)); | |
42798 | PyDict_SetItemString(d,"ID_MORE", SWIG_From_int((int)wxID_MORE)); | |
42799 | PyDict_SetItemString(d,"ID_SETUP", SWIG_From_int((int)wxID_SETUP)); | |
42800 | PyDict_SetItemString(d,"ID_RESET", SWIG_From_int((int)wxID_RESET)); | |
42801 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_From_int((int)wxID_CONTEXT_HELP)); | |
42802 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_From_int((int)wxID_YESTOALL)); | |
42803 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_From_int((int)wxID_NOTOALL)); | |
42804 | PyDict_SetItemString(d,"ID_ABORT", SWIG_From_int((int)wxID_ABORT)); | |
42805 | PyDict_SetItemString(d,"ID_RETRY", SWIG_From_int((int)wxID_RETRY)); | |
42806 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_From_int((int)wxID_IGNORE)); | |
42807 | PyDict_SetItemString(d,"ID_ADD", SWIG_From_int((int)wxID_ADD)); | |
42808 | PyDict_SetItemString(d,"ID_REMOVE", SWIG_From_int((int)wxID_REMOVE)); | |
42809 | PyDict_SetItemString(d,"ID_UP", SWIG_From_int((int)wxID_UP)); | |
42810 | PyDict_SetItemString(d,"ID_DOWN", SWIG_From_int((int)wxID_DOWN)); | |
42811 | PyDict_SetItemString(d,"ID_HOME", SWIG_From_int((int)wxID_HOME)); | |
42812 | PyDict_SetItemString(d,"ID_REFRESH", SWIG_From_int((int)wxID_REFRESH)); | |
42813 | PyDict_SetItemString(d,"ID_STOP", SWIG_From_int((int)wxID_STOP)); | |
42814 | PyDict_SetItemString(d,"ID_INDEX", SWIG_From_int((int)wxID_INDEX)); | |
42815 | PyDict_SetItemString(d,"ID_BOLD", SWIG_From_int((int)wxID_BOLD)); | |
42816 | PyDict_SetItemString(d,"ID_ITALIC", SWIG_From_int((int)wxID_ITALIC)); | |
42817 | PyDict_SetItemString(d,"ID_JUSTIFY_CENTER", SWIG_From_int((int)wxID_JUSTIFY_CENTER)); | |
42818 | PyDict_SetItemString(d,"ID_JUSTIFY_FILL", SWIG_From_int((int)wxID_JUSTIFY_FILL)); | |
42819 | PyDict_SetItemString(d,"ID_JUSTIFY_RIGHT", SWIG_From_int((int)wxID_JUSTIFY_RIGHT)); | |
42820 | PyDict_SetItemString(d,"ID_JUSTIFY_LEFT", SWIG_From_int((int)wxID_JUSTIFY_LEFT)); | |
42821 | PyDict_SetItemString(d,"ID_UNDERLINE", SWIG_From_int((int)wxID_UNDERLINE)); | |
42822 | PyDict_SetItemString(d,"ID_INDENT", SWIG_From_int((int)wxID_INDENT)); | |
42823 | PyDict_SetItemString(d,"ID_UNINDENT", SWIG_From_int((int)wxID_UNINDENT)); | |
42824 | PyDict_SetItemString(d,"ID_ZOOM_100", SWIG_From_int((int)wxID_ZOOM_100)); | |
42825 | PyDict_SetItemString(d,"ID_ZOOM_FIT", SWIG_From_int((int)wxID_ZOOM_FIT)); | |
42826 | PyDict_SetItemString(d,"ID_ZOOM_IN", SWIG_From_int((int)wxID_ZOOM_IN)); | |
42827 | PyDict_SetItemString(d,"ID_ZOOM_OUT", SWIG_From_int((int)wxID_ZOOM_OUT)); | |
42828 | PyDict_SetItemString(d,"ID_UNDELETE", SWIG_From_int((int)wxID_UNDELETE)); | |
42829 | PyDict_SetItemString(d,"ID_REVERT_TO_SAVED", SWIG_From_int((int)wxID_REVERT_TO_SAVED)); | |
42830 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_From_int((int)wxID_HIGHEST)); | |
42831 | PyDict_SetItemString(d,"OPEN", SWIG_From_int((int)wxOPEN)); | |
42832 | PyDict_SetItemString(d,"SAVE", SWIG_From_int((int)wxSAVE)); | |
42833 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_From_int((int)wxHIDE_READONLY)); | |
42834 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_From_int((int)wxOVERWRITE_PROMPT)); | |
42835 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_From_int((int)wxFILE_MUST_EXIST)); | |
42836 | PyDict_SetItemString(d,"MULTIPLE", SWIG_From_int((int)wxMULTIPLE)); | |
42837 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_From_int((int)wxCHANGE_DIR)); | |
42838 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_From_int((int)wxACCEL_ALT)); | |
42839 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_From_int((int)wxACCEL_CTRL)); | |
42840 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_From_int((int)wxACCEL_SHIFT)); | |
42841 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_From_int((int)wxACCEL_NORMAL)); | |
42842 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_From_int((int)wxPD_AUTO_HIDE)); | |
42843 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_From_int((int)wxPD_APP_MODAL)); | |
42844 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_From_int((int)wxPD_CAN_ABORT)); | |
42845 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_From_int((int)wxPD_ELAPSED_TIME)); | |
42846 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_From_int((int)wxPD_ESTIMATED_TIME)); | |
42847 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_From_int((int)wxPD_REMAINING_TIME)); | |
42848 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_From_int((int)wxDD_NEW_DIR_BUTTON)); | |
42849 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_From_int((int)wxDD_DEFAULT_STYLE)); | |
42850 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_From_int((int)wxMENU_TEAROFF)); | |
42851 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_From_int((int)wxMB_DOCKABLE)); | |
42852 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
42853 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)wxFULL_REPAINT_ON_RESIZE)); | |
42854 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_From_int((int)wxLI_HORIZONTAL)); | |
42855 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_From_int((int)wxLI_VERTICAL)); | |
42856 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_From_int((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
42857 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_From_int((int)wxWS_EX_BLOCK_EVENTS)); | |
42858 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_From_int((int)wxWS_EX_TRANSIENT)); | |
42859 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_From_int((int)wxWS_EX_THEMED_BACKGROUND)); | |
42860 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_From_int((int)wxWS_EX_PROCESS_IDLE)); | |
42861 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_From_int((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
42862 | PyDict_SetItemString(d,"MM_TEXT", SWIG_From_int((int)wxMM_TEXT)); | |
42863 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_From_int((int)wxMM_LOMETRIC)); | |
42864 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_From_int((int)wxMM_HIMETRIC)); | |
42865 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_From_int((int)wxMM_LOENGLISH)); | |
42866 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_From_int((int)wxMM_HIENGLISH)); | |
42867 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_From_int((int)wxMM_TWIPS)); | |
42868 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_From_int((int)wxMM_ISOTROPIC)); | |
42869 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_From_int((int)wxMM_ANISOTROPIC)); | |
42870 | PyDict_SetItemString(d,"MM_POINTS", SWIG_From_int((int)wxMM_POINTS)); | |
42871 | PyDict_SetItemString(d,"MM_METRIC", SWIG_From_int((int)wxMM_METRIC)); | |
42872 | PyDict_SetItemString(d,"CENTRE", SWIG_From_int((int)wxCENTRE)); | |
42873 | PyDict_SetItemString(d,"CENTER", SWIG_From_int((int)wxCENTER)); | |
42874 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_From_int((int)wxHORIZONTAL)); | |
42875 | PyDict_SetItemString(d,"VERTICAL", SWIG_From_int((int)wxVERTICAL)); | |
42876 | PyDict_SetItemString(d,"BOTH", SWIG_From_int((int)wxBOTH)); | |
42877 | PyDict_SetItemString(d,"LEFT", SWIG_From_int((int)wxLEFT)); | |
42878 | PyDict_SetItemString(d,"RIGHT", SWIG_From_int((int)wxRIGHT)); | |
42879 | PyDict_SetItemString(d,"UP", SWIG_From_int((int)wxUP)); | |
42880 | PyDict_SetItemString(d,"DOWN", SWIG_From_int((int)wxDOWN)); | |
42881 | PyDict_SetItemString(d,"TOP", SWIG_From_int((int)wxTOP)); | |
42882 | PyDict_SetItemString(d,"BOTTOM", SWIG_From_int((int)wxBOTTOM)); | |
42883 | PyDict_SetItemString(d,"NORTH", SWIG_From_int((int)wxNORTH)); | |
42884 | PyDict_SetItemString(d,"SOUTH", SWIG_From_int((int)wxSOUTH)); | |
42885 | PyDict_SetItemString(d,"WEST", SWIG_From_int((int)wxWEST)); | |
42886 | PyDict_SetItemString(d,"EAST", SWIG_From_int((int)wxEAST)); | |
42887 | PyDict_SetItemString(d,"ALL", SWIG_From_int((int)wxALL)); | |
42888 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_From_int((int)wxALIGN_NOT)); | |
42889 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_From_int((int)wxALIGN_CENTER_HORIZONTAL)); | |
42890 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_From_int((int)wxALIGN_CENTRE_HORIZONTAL)); | |
42891 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_From_int((int)wxALIGN_LEFT)); | |
42892 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_From_int((int)wxALIGN_TOP)); | |
42893 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_From_int((int)wxALIGN_RIGHT)); | |
42894 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_From_int((int)wxALIGN_BOTTOM)); | |
42895 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_From_int((int)wxALIGN_CENTER_VERTICAL)); | |
42896 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_From_int((int)wxALIGN_CENTRE_VERTICAL)); | |
42897 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_From_int((int)wxALIGN_CENTER)); | |
42898 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_From_int((int)wxALIGN_CENTRE)); | |
42899 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_From_int((int)wxALIGN_MASK)); | |
42900 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_From_int((int)wxSTRETCH_NOT)); | |
42901 | PyDict_SetItemString(d,"SHRINK", SWIG_From_int((int)wxSHRINK)); | |
42902 | PyDict_SetItemString(d,"GROW", SWIG_From_int((int)wxGROW)); | |
42903 | PyDict_SetItemString(d,"EXPAND", SWIG_From_int((int)wxEXPAND)); | |
42904 | PyDict_SetItemString(d,"SHAPED", SWIG_From_int((int)wxSHAPED)); | |
42905 | PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_From_int((int)wxFIXED_MINSIZE)); | |
42906 | PyDict_SetItemString(d,"TILE", SWIG_From_int((int)wxTILE)); | |
42907 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_From_int((int)wxADJUST_MINSIZE)); | |
42908 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_From_int((int)wxBORDER_DEFAULT)); | |
42909 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_From_int((int)wxBORDER_NONE)); | |
42910 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_From_int((int)wxBORDER_STATIC)); | |
42911 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_From_int((int)wxBORDER_SIMPLE)); | |
42912 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_From_int((int)wxBORDER_RAISED)); | |
42913 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_From_int((int)wxBORDER_SUNKEN)); | |
42914 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_From_int((int)wxBORDER_DOUBLE)); | |
42915 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_From_int((int)wxBORDER_MASK)); | |
42916 | PyDict_SetItemString(d,"BG_STYLE_SYSTEM", SWIG_From_int((int)wxBG_STYLE_SYSTEM)); | |
42917 | PyDict_SetItemString(d,"BG_STYLE_COLOUR", SWIG_From_int((int)wxBG_STYLE_COLOUR)); | |
42918 | PyDict_SetItemString(d,"BG_STYLE_CUSTOM", SWIG_From_int((int)wxBG_STYLE_CUSTOM)); | |
42919 | PyDict_SetItemString(d,"DEFAULT", SWIG_From_int((int)wxDEFAULT)); | |
42920 | PyDict_SetItemString(d,"DECORATIVE", SWIG_From_int((int)wxDECORATIVE)); | |
42921 | PyDict_SetItemString(d,"ROMAN", SWIG_From_int((int)wxROMAN)); | |
42922 | PyDict_SetItemString(d,"SCRIPT", SWIG_From_int((int)wxSCRIPT)); | |
42923 | PyDict_SetItemString(d,"SWISS", SWIG_From_int((int)wxSWISS)); | |
42924 | PyDict_SetItemString(d,"MODERN", SWIG_From_int((int)wxMODERN)); | |
42925 | PyDict_SetItemString(d,"TELETYPE", SWIG_From_int((int)wxTELETYPE)); | |
42926 | PyDict_SetItemString(d,"VARIABLE", SWIG_From_int((int)wxVARIABLE)); | |
42927 | PyDict_SetItemString(d,"FIXED", SWIG_From_int((int)wxFIXED)); | |
42928 | PyDict_SetItemString(d,"NORMAL", SWIG_From_int((int)wxNORMAL)); | |
42929 | PyDict_SetItemString(d,"LIGHT", SWIG_From_int((int)wxLIGHT)); | |
42930 | PyDict_SetItemString(d,"BOLD", SWIG_From_int((int)wxBOLD)); | |
42931 | PyDict_SetItemString(d,"ITALIC", SWIG_From_int((int)wxITALIC)); | |
42932 | PyDict_SetItemString(d,"SLANT", SWIG_From_int((int)wxSLANT)); | |
42933 | PyDict_SetItemString(d,"SOLID", SWIG_From_int((int)wxSOLID)); | |
42934 | PyDict_SetItemString(d,"DOT", SWIG_From_int((int)wxDOT)); | |
42935 | PyDict_SetItemString(d,"LONG_DASH", SWIG_From_int((int)wxLONG_DASH)); | |
42936 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_From_int((int)wxSHORT_DASH)); | |
42937 | PyDict_SetItemString(d,"DOT_DASH", SWIG_From_int((int)wxDOT_DASH)); | |
42938 | PyDict_SetItemString(d,"USER_DASH", SWIG_From_int((int)wxUSER_DASH)); | |
42939 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_From_int((int)wxTRANSPARENT)); | |
42940 | PyDict_SetItemString(d,"STIPPLE", SWIG_From_int((int)wxSTIPPLE)); | |
42941 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_From_int((int)wxBDIAGONAL_HATCH)); | |
42942 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_From_int((int)wxCROSSDIAG_HATCH)); | |
42943 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_From_int((int)wxFDIAGONAL_HATCH)); | |
42944 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_From_int((int)wxCROSS_HATCH)); | |
42945 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_From_int((int)wxHORIZONTAL_HATCH)); | |
42946 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_From_int((int)wxVERTICAL_HATCH)); | |
42947 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_From_int((int)wxJOIN_BEVEL)); | |
42948 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_From_int((int)wxJOIN_MITER)); | |
42949 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_From_int((int)wxJOIN_ROUND)); | |
42950 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_From_int((int)wxCAP_ROUND)); | |
42951 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_From_int((int)wxCAP_PROJECTING)); | |
42952 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_From_int((int)wxCAP_BUTT)); | |
42953 | PyDict_SetItemString(d,"CLEAR", SWIG_From_int((int)wxCLEAR)); | |
42954 | PyDict_SetItemString(d,"XOR", SWIG_From_int((int)wxXOR)); | |
42955 | PyDict_SetItemString(d,"INVERT", SWIG_From_int((int)wxINVERT)); | |
42956 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_From_int((int)wxOR_REVERSE)); | |
42957 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_From_int((int)wxAND_REVERSE)); | |
42958 | PyDict_SetItemString(d,"COPY", SWIG_From_int((int)wxCOPY)); | |
42959 | PyDict_SetItemString(d,"AND", SWIG_From_int((int)wxAND)); | |
42960 | PyDict_SetItemString(d,"AND_INVERT", SWIG_From_int((int)wxAND_INVERT)); | |
42961 | PyDict_SetItemString(d,"NO_OP", SWIG_From_int((int)wxNO_OP)); | |
42962 | PyDict_SetItemString(d,"NOR", SWIG_From_int((int)wxNOR)); | |
42963 | PyDict_SetItemString(d,"EQUIV", SWIG_From_int((int)wxEQUIV)); | |
42964 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_From_int((int)wxSRC_INVERT)); | |
42965 | PyDict_SetItemString(d,"OR_INVERT", SWIG_From_int((int)wxOR_INVERT)); | |
42966 | PyDict_SetItemString(d,"NAND", SWIG_From_int((int)wxNAND)); | |
42967 | PyDict_SetItemString(d,"OR", SWIG_From_int((int)wxOR)); | |
42968 | PyDict_SetItemString(d,"SET", SWIG_From_int((int)wxSET)); | |
42969 | PyDict_SetItemString(d,"WXK_BACK", SWIG_From_int((int)WXK_BACK)); | |
42970 | PyDict_SetItemString(d,"WXK_TAB", SWIG_From_int((int)WXK_TAB)); | |
42971 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_From_int((int)WXK_RETURN)); | |
42972 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_From_int((int)WXK_ESCAPE)); | |
42973 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_From_int((int)WXK_SPACE)); | |
42974 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_From_int((int)WXK_DELETE)); | |
42975 | PyDict_SetItemString(d,"WXK_START", SWIG_From_int((int)WXK_START)); | |
42976 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_From_int((int)WXK_LBUTTON)); | |
42977 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_From_int((int)WXK_RBUTTON)); | |
42978 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_From_int((int)WXK_CANCEL)); | |
42979 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_From_int((int)WXK_MBUTTON)); | |
42980 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_From_int((int)WXK_CLEAR)); | |
42981 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_From_int((int)WXK_SHIFT)); | |
42982 | PyDict_SetItemString(d,"WXK_ALT", SWIG_From_int((int)WXK_ALT)); | |
42983 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_From_int((int)WXK_CONTROL)); | |
42984 | PyDict_SetItemString(d,"WXK_MENU", SWIG_From_int((int)WXK_MENU)); | |
42985 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_From_int((int)WXK_PAUSE)); | |
42986 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_From_int((int)WXK_CAPITAL)); | |
42987 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_From_int((int)WXK_PRIOR)); | |
42988 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_From_int((int)WXK_NEXT)); | |
42989 | PyDict_SetItemString(d,"WXK_END", SWIG_From_int((int)WXK_END)); | |
42990 | PyDict_SetItemString(d,"WXK_HOME", SWIG_From_int((int)WXK_HOME)); | |
42991 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_From_int((int)WXK_LEFT)); | |
42992 | PyDict_SetItemString(d,"WXK_UP", SWIG_From_int((int)WXK_UP)); | |
42993 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_From_int((int)WXK_RIGHT)); | |
42994 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_From_int((int)WXK_DOWN)); | |
42995 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_From_int((int)WXK_SELECT)); | |
42996 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_From_int((int)WXK_PRINT)); | |
42997 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_From_int((int)WXK_EXECUTE)); | |
42998 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_From_int((int)WXK_SNAPSHOT)); | |
42999 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_From_int((int)WXK_INSERT)); | |
43000 | PyDict_SetItemString(d,"WXK_HELP", SWIG_From_int((int)WXK_HELP)); | |
43001 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_From_int((int)WXK_NUMPAD0)); | |
43002 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_From_int((int)WXK_NUMPAD1)); | |
43003 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_From_int((int)WXK_NUMPAD2)); | |
43004 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_From_int((int)WXK_NUMPAD3)); | |
43005 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_From_int((int)WXK_NUMPAD4)); | |
43006 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_From_int((int)WXK_NUMPAD5)); | |
43007 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_From_int((int)WXK_NUMPAD6)); | |
43008 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_From_int((int)WXK_NUMPAD7)); | |
43009 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_From_int((int)WXK_NUMPAD8)); | |
43010 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_From_int((int)WXK_NUMPAD9)); | |
43011 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_From_int((int)WXK_MULTIPLY)); | |
43012 | PyDict_SetItemString(d,"WXK_ADD", SWIG_From_int((int)WXK_ADD)); | |
43013 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_From_int((int)WXK_SEPARATOR)); | |
43014 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_From_int((int)WXK_SUBTRACT)); | |
43015 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_From_int((int)WXK_DECIMAL)); | |
43016 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_From_int((int)WXK_DIVIDE)); | |
43017 | PyDict_SetItemString(d,"WXK_F1", SWIG_From_int((int)WXK_F1)); | |
43018 | PyDict_SetItemString(d,"WXK_F2", SWIG_From_int((int)WXK_F2)); | |
43019 | PyDict_SetItemString(d,"WXK_F3", SWIG_From_int((int)WXK_F3)); | |
43020 | PyDict_SetItemString(d,"WXK_F4", SWIG_From_int((int)WXK_F4)); | |
43021 | PyDict_SetItemString(d,"WXK_F5", SWIG_From_int((int)WXK_F5)); | |
43022 | PyDict_SetItemString(d,"WXK_F6", SWIG_From_int((int)WXK_F6)); | |
43023 | PyDict_SetItemString(d,"WXK_F7", SWIG_From_int((int)WXK_F7)); | |
43024 | PyDict_SetItemString(d,"WXK_F8", SWIG_From_int((int)WXK_F8)); | |
43025 | PyDict_SetItemString(d,"WXK_F9", SWIG_From_int((int)WXK_F9)); | |
43026 | PyDict_SetItemString(d,"WXK_F10", SWIG_From_int((int)WXK_F10)); | |
43027 | PyDict_SetItemString(d,"WXK_F11", SWIG_From_int((int)WXK_F11)); | |
43028 | PyDict_SetItemString(d,"WXK_F12", SWIG_From_int((int)WXK_F12)); | |
43029 | PyDict_SetItemString(d,"WXK_F13", SWIG_From_int((int)WXK_F13)); | |
43030 | PyDict_SetItemString(d,"WXK_F14", SWIG_From_int((int)WXK_F14)); | |
43031 | PyDict_SetItemString(d,"WXK_F15", SWIG_From_int((int)WXK_F15)); | |
43032 | PyDict_SetItemString(d,"WXK_F16", SWIG_From_int((int)WXK_F16)); | |
43033 | PyDict_SetItemString(d,"WXK_F17", SWIG_From_int((int)WXK_F17)); | |
43034 | PyDict_SetItemString(d,"WXK_F18", SWIG_From_int((int)WXK_F18)); | |
43035 | PyDict_SetItemString(d,"WXK_F19", SWIG_From_int((int)WXK_F19)); | |
43036 | PyDict_SetItemString(d,"WXK_F20", SWIG_From_int((int)WXK_F20)); | |
43037 | PyDict_SetItemString(d,"WXK_F21", SWIG_From_int((int)WXK_F21)); | |
43038 | PyDict_SetItemString(d,"WXK_F22", SWIG_From_int((int)WXK_F22)); | |
43039 | PyDict_SetItemString(d,"WXK_F23", SWIG_From_int((int)WXK_F23)); | |
43040 | PyDict_SetItemString(d,"WXK_F24", SWIG_From_int((int)WXK_F24)); | |
43041 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_From_int((int)WXK_NUMLOCK)); | |
43042 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_From_int((int)WXK_SCROLL)); | |
43043 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_From_int((int)WXK_PAGEUP)); | |
43044 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_From_int((int)WXK_PAGEDOWN)); | |
43045 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_From_int((int)WXK_NUMPAD_SPACE)); | |
43046 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_From_int((int)WXK_NUMPAD_TAB)); | |
43047 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_From_int((int)WXK_NUMPAD_ENTER)); | |
43048 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_From_int((int)WXK_NUMPAD_F1)); | |
43049 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_From_int((int)WXK_NUMPAD_F2)); | |
43050 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_From_int((int)WXK_NUMPAD_F3)); | |
43051 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_From_int((int)WXK_NUMPAD_F4)); | |
43052 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_From_int((int)WXK_NUMPAD_HOME)); | |
43053 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_From_int((int)WXK_NUMPAD_LEFT)); | |
43054 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_From_int((int)WXK_NUMPAD_UP)); | |
43055 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_From_int((int)WXK_NUMPAD_RIGHT)); | |
43056 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_From_int((int)WXK_NUMPAD_DOWN)); | |
43057 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_From_int((int)WXK_NUMPAD_PRIOR)); | |
43058 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_From_int((int)WXK_NUMPAD_PAGEUP)); | |
43059 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_From_int((int)WXK_NUMPAD_NEXT)); | |
43060 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_From_int((int)WXK_NUMPAD_PAGEDOWN)); | |
43061 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_From_int((int)WXK_NUMPAD_END)); | |
43062 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_From_int((int)WXK_NUMPAD_BEGIN)); | |
43063 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_From_int((int)WXK_NUMPAD_INSERT)); | |
43064 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_From_int((int)WXK_NUMPAD_DELETE)); | |
43065 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_From_int((int)WXK_NUMPAD_EQUAL)); | |
43066 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_From_int((int)WXK_NUMPAD_MULTIPLY)); | |
43067 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_From_int((int)WXK_NUMPAD_ADD)); | |
43068 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_From_int((int)WXK_NUMPAD_SEPARATOR)); | |
43069 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_From_int((int)WXK_NUMPAD_SUBTRACT)); | |
43070 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_From_int((int)WXK_NUMPAD_DECIMAL)); | |
43071 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_From_int((int)WXK_NUMPAD_DIVIDE)); | |
43072 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_From_int((int)WXK_WINDOWS_LEFT)); | |
43073 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_From_int((int)WXK_WINDOWS_RIGHT)); | |
43074 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_From_int((int)WXK_WINDOWS_MENU)); | |
43075 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_From_int((int)wxPAPER_NONE)); | |
43076 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_From_int((int)wxPAPER_LETTER)); | |
43077 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_From_int((int)wxPAPER_LEGAL)); | |
43078 | PyDict_SetItemString(d,"PAPER_A4", SWIG_From_int((int)wxPAPER_A4)); | |
43079 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_From_int((int)wxPAPER_CSHEET)); | |
43080 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_From_int((int)wxPAPER_DSHEET)); | |
43081 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_From_int((int)wxPAPER_ESHEET)); | |
43082 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_From_int((int)wxPAPER_LETTERSMALL)); | |
43083 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_From_int((int)wxPAPER_TABLOID)); | |
43084 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_From_int((int)wxPAPER_LEDGER)); | |
43085 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_From_int((int)wxPAPER_STATEMENT)); | |
43086 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_From_int((int)wxPAPER_EXECUTIVE)); | |
43087 | PyDict_SetItemString(d,"PAPER_A3", SWIG_From_int((int)wxPAPER_A3)); | |
43088 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_From_int((int)wxPAPER_A4SMALL)); | |
43089 | PyDict_SetItemString(d,"PAPER_A5", SWIG_From_int((int)wxPAPER_A5)); | |
43090 | PyDict_SetItemString(d,"PAPER_B4", SWIG_From_int((int)wxPAPER_B4)); | |
43091 | PyDict_SetItemString(d,"PAPER_B5", SWIG_From_int((int)wxPAPER_B5)); | |
43092 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_From_int((int)wxPAPER_FOLIO)); | |
43093 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_From_int((int)wxPAPER_QUARTO)); | |
43094 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_From_int((int)wxPAPER_10X14)); | |
43095 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_From_int((int)wxPAPER_11X17)); | |
43096 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_From_int((int)wxPAPER_NOTE)); | |
43097 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_From_int((int)wxPAPER_ENV_9)); | |
43098 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_From_int((int)wxPAPER_ENV_10)); | |
43099 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_From_int((int)wxPAPER_ENV_11)); | |
43100 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_From_int((int)wxPAPER_ENV_12)); | |
43101 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_From_int((int)wxPAPER_ENV_14)); | |
43102 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_From_int((int)wxPAPER_ENV_DL)); | |
43103 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_From_int((int)wxPAPER_ENV_C5)); | |
43104 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_From_int((int)wxPAPER_ENV_C3)); | |
43105 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_From_int((int)wxPAPER_ENV_C4)); | |
43106 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_From_int((int)wxPAPER_ENV_C6)); | |
43107 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_From_int((int)wxPAPER_ENV_C65)); | |
43108 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_From_int((int)wxPAPER_ENV_B4)); | |
43109 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_From_int((int)wxPAPER_ENV_B5)); | |
43110 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_From_int((int)wxPAPER_ENV_B6)); | |
43111 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_From_int((int)wxPAPER_ENV_ITALY)); | |
43112 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_From_int((int)wxPAPER_ENV_MONARCH)); | |
43113 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_From_int((int)wxPAPER_ENV_PERSONAL)); | |
43114 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_From_int((int)wxPAPER_FANFOLD_US)); | |
43115 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_From_int((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
43116 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_From_int((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
43117 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_From_int((int)wxPAPER_ISO_B4)); | |
43118 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_From_int((int)wxPAPER_JAPANESE_POSTCARD)); | |
43119 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_From_int((int)wxPAPER_9X11)); | |
43120 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_From_int((int)wxPAPER_10X11)); | |
43121 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_From_int((int)wxPAPER_15X11)); | |
43122 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_From_int((int)wxPAPER_ENV_INVITE)); | |
43123 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_From_int((int)wxPAPER_LETTER_EXTRA)); | |
43124 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_From_int((int)wxPAPER_LEGAL_EXTRA)); | |
43125 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_From_int((int)wxPAPER_TABLOID_EXTRA)); | |
43126 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_From_int((int)wxPAPER_A4_EXTRA)); | |
43127 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_From_int((int)wxPAPER_LETTER_TRANSVERSE)); | |
43128 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_From_int((int)wxPAPER_A4_TRANSVERSE)); | |
43129 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_From_int((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
43130 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_From_int((int)wxPAPER_A_PLUS)); | |
43131 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_From_int((int)wxPAPER_B_PLUS)); | |
43132 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_From_int((int)wxPAPER_LETTER_PLUS)); | |
43133 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_From_int((int)wxPAPER_A4_PLUS)); | |
43134 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_From_int((int)wxPAPER_A5_TRANSVERSE)); | |
43135 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_From_int((int)wxPAPER_B5_TRANSVERSE)); | |
43136 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_From_int((int)wxPAPER_A3_EXTRA)); | |
43137 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_From_int((int)wxPAPER_A5_EXTRA)); | |
43138 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_From_int((int)wxPAPER_B5_EXTRA)); | |
43139 | PyDict_SetItemString(d,"PAPER_A2", SWIG_From_int((int)wxPAPER_A2)); | |
43140 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_From_int((int)wxPAPER_A3_TRANSVERSE)); | |
43141 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_From_int((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
43142 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_From_int((int)wxDUPLEX_SIMPLEX)); | |
43143 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_From_int((int)wxDUPLEX_HORIZONTAL)); | |
43144 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_From_int((int)wxDUPLEX_VERTICAL)); | |
43145 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_From_int((int)wxITEM_SEPARATOR)); | |
43146 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_From_int((int)wxITEM_NORMAL)); | |
43147 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_From_int((int)wxITEM_CHECK)); | |
43148 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_From_int((int)wxITEM_RADIO)); | |
43149 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_From_int((int)wxITEM_MAX)); | |
43150 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_From_int((int)wxHT_NOWHERE)); | |
43151 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_From_int((int)wxHT_SCROLLBAR_FIRST)); | |
43152 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
43153 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
43154 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
43155 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
43156 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_From_int((int)wxHT_SCROLLBAR_THUMB)); | |
43157 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_From_int((int)wxHT_SCROLLBAR_BAR_1)); | |
43158 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_From_int((int)wxHT_SCROLLBAR_BAR_2)); | |
43159 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_From_int((int)wxHT_SCROLLBAR_LAST)); | |
43160 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_From_int((int)wxHT_WINDOW_OUTSIDE)); | |
43161 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_From_int((int)wxHT_WINDOW_INSIDE)); | |
43162 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_From_int((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
43163 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_From_int((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
43164 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_From_int((int)wxHT_WINDOW_CORNER)); | |
43165 | PyDict_SetItemString(d,"HT_MAX", SWIG_From_int((int)wxHT_MAX)); | |
43166 | PyDict_SetItemString(d,"MOD_NONE", SWIG_From_int((int)wxMOD_NONE)); | |
43167 | PyDict_SetItemString(d,"MOD_ALT", SWIG_From_int((int)wxMOD_ALT)); | |
43168 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_From_int((int)wxMOD_CONTROL)); | |
43169 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_From_int((int)wxMOD_SHIFT)); | |
43170 | PyDict_SetItemString(d,"MOD_WIN", SWIG_From_int((int)wxMOD_WIN)); | |
43171 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_From_int((int)wxUPDATE_UI_NONE)); | |
43172 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_From_int((int)wxUPDATE_UI_RECURSE)); | |
43173 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_From_int((int)wxUPDATE_UI_FROMIDLE)); | |
d55e5bfc RD |
43174 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
43175 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); | |
c370783e RD |
43176 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_From_int((int)wxBITMAP_TYPE_INVALID)); |
43177 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_From_int((int)wxBITMAP_TYPE_BMP)); | |
43178 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_From_int((int)wxBITMAP_TYPE_ICO)); | |
43179 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_From_int((int)wxBITMAP_TYPE_CUR)); | |
43180 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_From_int((int)wxBITMAP_TYPE_XBM)); | |
43181 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_From_int((int)wxBITMAP_TYPE_XBM_DATA)); | |
43182 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_From_int((int)wxBITMAP_TYPE_XPM)); | |
43183 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_From_int((int)wxBITMAP_TYPE_XPM_DATA)); | |
43184 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_From_int((int)wxBITMAP_TYPE_TIF)); | |
43185 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_From_int((int)wxBITMAP_TYPE_GIF)); | |
43186 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_From_int((int)wxBITMAP_TYPE_PNG)); | |
43187 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_From_int((int)wxBITMAP_TYPE_JPEG)); | |
43188 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_From_int((int)wxBITMAP_TYPE_PNM)); | |
43189 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_From_int((int)wxBITMAP_TYPE_PCX)); | |
43190 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_From_int((int)wxBITMAP_TYPE_PICT)); | |
43191 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_From_int((int)wxBITMAP_TYPE_ICON)); | |
43192 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_From_int((int)wxBITMAP_TYPE_ANI)); | |
43193 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_From_int((int)wxBITMAP_TYPE_IFF)); | |
43194 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_From_int((int)wxBITMAP_TYPE_MACCURSOR)); | |
43195 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_From_int((int)wxBITMAP_TYPE_ANY)); | |
43196 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_From_int((int)wxCURSOR_NONE)); | |
43197 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_From_int((int)wxCURSOR_ARROW)); | |
43198 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_From_int((int)wxCURSOR_RIGHT_ARROW)); | |
43199 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_From_int((int)wxCURSOR_BULLSEYE)); | |
43200 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_From_int((int)wxCURSOR_CHAR)); | |
43201 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_From_int((int)wxCURSOR_CROSS)); | |
43202 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_From_int((int)wxCURSOR_HAND)); | |
43203 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_From_int((int)wxCURSOR_IBEAM)); | |
43204 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_From_int((int)wxCURSOR_LEFT_BUTTON)); | |
43205 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_From_int((int)wxCURSOR_MAGNIFIER)); | |
43206 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_From_int((int)wxCURSOR_MIDDLE_BUTTON)); | |
43207 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_From_int((int)wxCURSOR_NO_ENTRY)); | |
43208 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_From_int((int)wxCURSOR_PAINT_BRUSH)); | |
43209 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_From_int((int)wxCURSOR_PENCIL)); | |
43210 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_From_int((int)wxCURSOR_POINT_LEFT)); | |
43211 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_From_int((int)wxCURSOR_POINT_RIGHT)); | |
43212 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_From_int((int)wxCURSOR_QUESTION_ARROW)); | |
43213 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_From_int((int)wxCURSOR_RIGHT_BUTTON)); | |
43214 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_From_int((int)wxCURSOR_SIZENESW)); | |
43215 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_From_int((int)wxCURSOR_SIZENS)); | |
43216 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_From_int((int)wxCURSOR_SIZENWSE)); | |
43217 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_From_int((int)wxCURSOR_SIZEWE)); | |
43218 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_From_int((int)wxCURSOR_SIZING)); | |
43219 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_From_int((int)wxCURSOR_SPRAYCAN)); | |
43220 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_From_int((int)wxCURSOR_WAIT)); | |
43221 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_From_int((int)wxCURSOR_WATCH)); | |
43222 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_From_int((int)wxCURSOR_BLANK)); | |
43223 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_From_int((int)wxCURSOR_DEFAULT)); | |
43224 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_From_int((int)wxCURSOR_COPY_ARROW)); | |
43225 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_From_int((int)wxCURSOR_ARROWWAIT)); | |
43226 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_From_int((int)wxCURSOR_MAX)); | |
d55e5bfc RD |
43227 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); |
43228 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
c370783e RD |
43229 | PyDict_SetItemString(d,"FromStart", SWIG_From_int((int)wxFromStart)); |
43230 | PyDict_SetItemString(d,"FromCurrent", SWIG_From_int((int)wxFromCurrent)); | |
43231 | PyDict_SetItemString(d,"FromEnd", SWIG_From_int((int)wxFromEnd)); | |
d55e5bfc RD |
43232 | |
43233 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
43234 | ||
43235 | ||
43236 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
43237 | ||
43238 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
43239 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
43240 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
43241 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
43242 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
43243 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
c370783e RD |
43244 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_From_int((int)wxIMAGE_RESOLUTION_INCHES)); |
43245 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_From_int((int)wxIMAGE_RESOLUTION_CM)); | |
43246 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_From_int((int)wxBMP_24BPP)); | |
43247 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_From_int((int)wxBMP_8BPP)); | |
43248 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_From_int((int)wxBMP_8BPP_GREY)); | |
43249 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_From_int((int)wxBMP_8BPP_GRAY)); | |
43250 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_From_int((int)wxBMP_8BPP_RED)); | |
43251 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_From_int((int)wxBMP_8BPP_PALETTE)); | |
43252 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_From_int((int)wxBMP_4BPP)); | |
43253 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_From_int((int)wxBMP_1BPP)); | |
43254 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_From_int((int)wxBMP_1BPP_BW)); | |
43255 | PyDict_SetItemString(d,"QUANTIZE_INCLUDE_WINDOWS_COLOURS", SWIG_From_int((int)wxQUANTIZE_INCLUDE_WINDOWS_COLOURS)); | |
43256 | PyDict_SetItemString(d,"QUANTIZE_FILL_DESTINATION_IMAGE", SWIG_From_int((int)wxQUANTIZE_FILL_DESTINATION_IMAGE)); | |
43257 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_From_int((int)wxEVENT_PROPAGATE_NONE)); | |
43258 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_From_int((int)wxEVENT_PROPAGATE_MAX)); | |
d55e5bfc RD |
43259 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); |
43260 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
43261 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
43262 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
43263 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
43264 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
43265 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
43266 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
43267 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
43268 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
43269 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
43270 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
43271 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
43272 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
43273 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
43274 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
43275 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
43276 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
43277 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
43278 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
43279 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
43280 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
43281 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
43282 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
43283 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
43284 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
43285 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
43286 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
43287 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
43288 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
43289 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
43290 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
43291 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
43292 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
43293 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
43294 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
43295 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
43296 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
43297 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
43298 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
43299 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
43300 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
43301 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
43302 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
43303 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
43304 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
43305 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
43306 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
43307 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
43308 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
43309 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
43310 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
43311 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
43312 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
43313 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
43314 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
43315 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
43316 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
43317 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
43318 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
43319 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
43320 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
43321 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
43322 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
43323 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
43324 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
43325 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
43326 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
43327 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
43328 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
43329 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
43330 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
43331 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
43332 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
43333 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
43334 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
43335 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
43336 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
43337 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
43338 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
43339 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
43340 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
43341 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
43342 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
43343 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
43344 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
43345 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
43346 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
43347 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
43348 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
43349 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
43350 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
43351 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
43352 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
43353 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
43354 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
43355 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
43356 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
43357 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
43358 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
43359 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
43360 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
43361 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
43362 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
43363 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
43364 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
43365 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
43366 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
43367 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
43368 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
43369 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
43370 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
43371 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
43372 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
c370783e RD |
43373 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_From_int((int)wxMOUSE_BTN_ANY)); |
43374 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_From_int((int)wxMOUSE_BTN_NONE)); | |
43375 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_From_int((int)wxMOUSE_BTN_LEFT)); | |
43376 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_From_int((int)wxMOUSE_BTN_MIDDLE)); | |
43377 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_From_int((int)wxMOUSE_BTN_RIGHT)); | |
43378 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_From_int((int)wxUPDATE_UI_PROCESS_ALL)); | |
43379 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_From_int((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
43380 | PyDict_SetItemString(d,"NavigationKeyEvent_IsBackward", SWIG_From_int((int)wxNavigationKeyEvent::IsBackward)); | |
43381 | PyDict_SetItemString(d,"NavigationKeyEvent_IsForward", SWIG_From_int((int)wxNavigationKeyEvent::IsForward)); | |
43382 | PyDict_SetItemString(d,"NavigationKeyEvent_WinChange", SWIG_From_int((int)wxNavigationKeyEvent::WinChange)); | |
43383 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_From_int((int)wxIDLE_PROCESS_ALL)); | |
43384 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_From_int((int)wxIDLE_PROCESS_SPECIFIED)); | |
43385 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_From_int((int)wxPYAPP_ASSERT_SUPPRESS)); | |
43386 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_From_int((int)wxPYAPP_ASSERT_EXCEPTION)); | |
43387 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_From_int((int)wxPYAPP_ASSERT_DIALOG)); | |
43388 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_From_int((int)wxPYAPP_ASSERT_LOG)); | |
43389 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_From_int((int)wxPRINT_WINDOWS)); | |
43390 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_From_int((int)wxPRINT_POSTSCRIPT)); | |
d55e5bfc RD |
43391 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); |
43392 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); | |
c370783e RD |
43393 | PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_From_int((int)wxWINDOW_VARIANT_NORMAL)); |
43394 | PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_From_int((int)wxWINDOW_VARIANT_SMALL)); | |
43395 | PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_From_int((int)wxWINDOW_VARIANT_MINI)); | |
43396 | PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_From_int((int)wxWINDOW_VARIANT_LARGE)); | |
43397 | PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_From_int((int)wxWINDOW_VARIANT_MAX)); | |
d55e5bfc RD |
43398 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); |
43399 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); | |
c370783e RD |
43400 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_From_int((int)wxFLEX_GROWMODE_NONE)); |
43401 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_From_int((int)wxFLEX_GROWMODE_SPECIFIED)); | |
43402 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_From_int((int)wxFLEX_GROWMODE_ALL)); | |
d55e5bfc | 43403 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); |
c370783e RD |
43404 | PyDict_SetItemString(d,"Left", SWIG_From_int((int)wxLeft)); |
43405 | PyDict_SetItemString(d,"Top", SWIG_From_int((int)wxTop)); | |
43406 | PyDict_SetItemString(d,"Right", SWIG_From_int((int)wxRight)); | |
43407 | PyDict_SetItemString(d,"Bottom", SWIG_From_int((int)wxBottom)); | |
43408 | PyDict_SetItemString(d,"Width", SWIG_From_int((int)wxWidth)); | |
43409 | PyDict_SetItemString(d,"Height", SWIG_From_int((int)wxHeight)); | |
43410 | PyDict_SetItemString(d,"Centre", SWIG_From_int((int)wxCentre)); | |
43411 | PyDict_SetItemString(d,"Center", SWIG_From_int((int)wxCenter)); | |
43412 | PyDict_SetItemString(d,"CentreX", SWIG_From_int((int)wxCentreX)); | |
43413 | PyDict_SetItemString(d,"CentreY", SWIG_From_int((int)wxCentreY)); | |
43414 | PyDict_SetItemString(d,"Unconstrained", SWIG_From_int((int)wxUnconstrained)); | |
43415 | PyDict_SetItemString(d,"AsIs", SWIG_From_int((int)wxAsIs)); | |
43416 | PyDict_SetItemString(d,"PercentOf", SWIG_From_int((int)wxPercentOf)); | |
43417 | PyDict_SetItemString(d,"Above", SWIG_From_int((int)wxAbove)); | |
43418 | PyDict_SetItemString(d,"Below", SWIG_From_int((int)wxBelow)); | |
43419 | PyDict_SetItemString(d,"LeftOf", SWIG_From_int((int)wxLeftOf)); | |
43420 | PyDict_SetItemString(d,"RightOf", SWIG_From_int((int)wxRightOf)); | |
43421 | PyDict_SetItemString(d,"SameAs", SWIG_From_int((int)wxSameAs)); | |
43422 | PyDict_SetItemString(d,"Absolute", SWIG_From_int((int)wxAbsolute)); | |
d55e5bfc RD |
43423 | |
43424 | // Initialize threading, some globals and such | |
43425 | __wxPyPreStart(d); | |
43426 | ||
43427 | ||
43428 | // Although these are defined in __version__ they need to be here too so | |
43429 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
43430 | // versions match. | |
43431 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
43432 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
43433 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
43434 | ||
43435 | } | |
43436 |