]>
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 | ||
84f85550 RD |
20218 | static PyObject *_wrap_PyApp_IsMainLoopRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
20219 | PyObject *resultobj; | |
20220 | bool result; | |
20221 | char *kwnames[] = { | |
20222 | NULL | |
20223 | }; | |
20224 | ||
20225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_IsMainLoopRunning",kwnames)) goto fail; | |
20226 | { | |
20227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20228 | result = (bool)wxPyApp::IsMainLoopRunning(); | |
20229 | ||
20230 | wxPyEndAllowThreads(__tstate); | |
20231 | if (PyErr_Occurred()) SWIG_fail; | |
20232 | } | |
20233 | { | |
20234 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20235 | } | |
20236 | return resultobj; | |
20237 | fail: | |
20238 | return NULL; | |
20239 | } | |
20240 | ||
20241 | ||
c370783e | 20242 | static PyObject *_wrap_PyApp_MainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20243 | PyObject *resultobj; |
20244 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20245 | int result; | |
20246 | PyObject * obj0 = 0 ; | |
20247 | char *kwnames[] = { | |
20248 | (char *) "self", NULL | |
20249 | }; | |
20250 | ||
20251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
20252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20254 | { | |
20255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20256 | result = (int)(arg1)->MainLoop(); | |
20257 | ||
20258 | wxPyEndAllowThreads(__tstate); | |
20259 | if (PyErr_Occurred()) SWIG_fail; | |
20260 | } | |
c370783e | 20261 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20262 | return resultobj; |
20263 | fail: | |
20264 | return NULL; | |
20265 | } | |
20266 | ||
20267 | ||
c370783e | 20268 | static PyObject *_wrap_PyApp_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20269 | PyObject *resultobj; |
20270 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20271 | PyObject * obj0 = 0 ; | |
20272 | char *kwnames[] = { | |
20273 | (char *) "self", NULL | |
20274 | }; | |
20275 | ||
20276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
20277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20279 | { | |
20280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20281 | (arg1)->Exit(); | |
20282 | ||
20283 | wxPyEndAllowThreads(__tstate); | |
20284 | if (PyErr_Occurred()) SWIG_fail; | |
20285 | } | |
20286 | Py_INCREF(Py_None); resultobj = Py_None; | |
20287 | return resultobj; | |
20288 | fail: | |
20289 | return NULL; | |
20290 | } | |
20291 | ||
20292 | ||
c370783e | 20293 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20294 | PyObject *resultobj; |
20295 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20296 | PyObject * obj0 = 0 ; | |
20297 | char *kwnames[] = { | |
20298 | (char *) "self", NULL | |
20299 | }; | |
20300 | ||
20301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
20302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20304 | { | |
20305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20306 | (arg1)->ExitMainLoop(); | |
20307 | ||
20308 | wxPyEndAllowThreads(__tstate); | |
20309 | if (PyErr_Occurred()) SWIG_fail; | |
20310 | } | |
20311 | Py_INCREF(Py_None); resultobj = Py_None; | |
20312 | return resultobj; | |
20313 | fail: | |
20314 | return NULL; | |
20315 | } | |
20316 | ||
20317 | ||
c370783e | 20318 | static PyObject *_wrap_PyApp_Pending(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20319 | PyObject *resultobj; |
20320 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20321 | bool result; | |
20322 | PyObject * obj0 = 0 ; | |
20323 | char *kwnames[] = { | |
20324 | (char *) "self", NULL | |
20325 | }; | |
20326 | ||
20327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
20328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20330 | { | |
20331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20332 | result = (bool)(arg1)->Pending(); | |
20333 | ||
20334 | wxPyEndAllowThreads(__tstate); | |
20335 | if (PyErr_Occurred()) SWIG_fail; | |
20336 | } | |
20337 | { | |
20338 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20339 | } | |
20340 | return resultobj; | |
20341 | fail: | |
20342 | return NULL; | |
20343 | } | |
20344 | ||
20345 | ||
c370783e | 20346 | static PyObject *_wrap_PyApp_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20347 | PyObject *resultobj; |
20348 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20349 | bool result; | |
20350 | PyObject * obj0 = 0 ; | |
20351 | char *kwnames[] = { | |
20352 | (char *) "self", NULL | |
20353 | }; | |
20354 | ||
20355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
20356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20358 | { | |
20359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20360 | result = (bool)(arg1)->Dispatch(); | |
20361 | ||
20362 | wxPyEndAllowThreads(__tstate); | |
20363 | if (PyErr_Occurred()) SWIG_fail; | |
20364 | } | |
20365 | { | |
20366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20367 | } | |
20368 | return resultobj; | |
20369 | fail: | |
20370 | return NULL; | |
20371 | } | |
20372 | ||
20373 | ||
c370783e | 20374 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20375 | PyObject *resultobj; |
20376 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20377 | bool result; | |
20378 | PyObject * obj0 = 0 ; | |
20379 | char *kwnames[] = { | |
20380 | (char *) "self", NULL | |
20381 | }; | |
20382 | ||
20383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
20384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20386 | { | |
20387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20388 | result = (bool)(arg1)->ProcessIdle(); | |
20389 | ||
20390 | wxPyEndAllowThreads(__tstate); | |
20391 | if (PyErr_Occurred()) SWIG_fail; | |
20392 | } | |
20393 | { | |
20394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20395 | } | |
20396 | return resultobj; | |
20397 | fail: | |
20398 | return NULL; | |
20399 | } | |
20400 | ||
20401 | ||
c370783e | 20402 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20403 | PyObject *resultobj; |
20404 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20405 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20406 | wxIdleEvent *arg3 = 0 ; | |
20407 | bool result; | |
20408 | PyObject * obj0 = 0 ; | |
20409 | PyObject * obj1 = 0 ; | |
20410 | PyObject * obj2 = 0 ; | |
20411 | char *kwnames[] = { | |
20412 | (char *) "self",(char *) "win",(char *) "event", NULL | |
20413 | }; | |
20414 | ||
20415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20418 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20420 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent, | |
20421 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20422 | SWIG_fail; | |
20423 | if (arg3 == NULL) { | |
20424 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20425 | SWIG_fail; | |
20426 | } | |
20427 | { | |
20428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20429 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
20430 | ||
20431 | wxPyEndAllowThreads(__tstate); | |
20432 | if (PyErr_Occurred()) SWIG_fail; | |
20433 | } | |
20434 | { | |
20435 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20436 | } | |
20437 | return resultobj; | |
20438 | fail: | |
20439 | return NULL; | |
20440 | } | |
20441 | ||
20442 | ||
c370783e | 20443 | static PyObject *_wrap_PyApp_IsActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20444 | PyObject *resultobj; |
20445 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20446 | bool result; | |
20447 | PyObject * obj0 = 0 ; | |
20448 | char *kwnames[] = { | |
20449 | (char *) "self", NULL | |
20450 | }; | |
20451 | ||
20452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
20453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20455 | { | |
20456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20457 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
20458 | ||
20459 | wxPyEndAllowThreads(__tstate); | |
20460 | if (PyErr_Occurred()) SWIG_fail; | |
20461 | } | |
20462 | { | |
20463 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20464 | } | |
20465 | return resultobj; | |
20466 | fail: | |
20467 | return NULL; | |
20468 | } | |
20469 | ||
20470 | ||
c370783e | 20471 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20472 | PyObject *resultobj; |
20473 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20474 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20475 | PyObject * obj0 = 0 ; | |
20476 | PyObject * obj1 = 0 ; | |
20477 | char *kwnames[] = { | |
20478 | (char *) "self",(char *) "win", NULL | |
20479 | }; | |
20480 | ||
20481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
20482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20484 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20486 | { | |
20487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20488 | (arg1)->SetTopWindow(arg2); | |
20489 | ||
20490 | wxPyEndAllowThreads(__tstate); | |
20491 | if (PyErr_Occurred()) SWIG_fail; | |
20492 | } | |
20493 | Py_INCREF(Py_None); resultobj = Py_None; | |
20494 | return resultobj; | |
20495 | fail: | |
20496 | return NULL; | |
20497 | } | |
20498 | ||
20499 | ||
c370783e | 20500 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20501 | PyObject *resultobj; |
20502 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20503 | wxWindow *result; | |
20504 | PyObject * obj0 = 0 ; | |
20505 | char *kwnames[] = { | |
20506 | (char *) "self", NULL | |
20507 | }; | |
20508 | ||
20509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
20510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20512 | { | |
20513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20514 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
20515 | ||
20516 | wxPyEndAllowThreads(__tstate); | |
20517 | if (PyErr_Occurred()) SWIG_fail; | |
20518 | } | |
20519 | { | |
412d302d | 20520 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
20521 | } |
20522 | return resultobj; | |
20523 | fail: | |
20524 | return NULL; | |
20525 | } | |
20526 | ||
20527 | ||
c370783e | 20528 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20529 | PyObject *resultobj; |
20530 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20531 | bool arg2 ; | |
20532 | PyObject * obj0 = 0 ; | |
20533 | PyObject * obj1 = 0 ; | |
20534 | char *kwnames[] = { | |
20535 | (char *) "self",(char *) "flag", NULL | |
20536 | }; | |
20537 | ||
20538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
20539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20541 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
20542 | if (PyErr_Occurred()) SWIG_fail; |
20543 | { | |
20544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20545 | (arg1)->SetExitOnFrameDelete(arg2); | |
20546 | ||
20547 | wxPyEndAllowThreads(__tstate); | |
20548 | if (PyErr_Occurred()) SWIG_fail; | |
20549 | } | |
20550 | Py_INCREF(Py_None); resultobj = Py_None; | |
20551 | return resultobj; | |
20552 | fail: | |
20553 | return NULL; | |
20554 | } | |
20555 | ||
20556 | ||
c370783e | 20557 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20558 | PyObject *resultobj; |
20559 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20560 | bool result; | |
20561 | PyObject * obj0 = 0 ; | |
20562 | char *kwnames[] = { | |
20563 | (char *) "self", NULL | |
20564 | }; | |
20565 | ||
20566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
20567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20569 | { | |
20570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20571 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
20572 | ||
20573 | wxPyEndAllowThreads(__tstate); | |
20574 | if (PyErr_Occurred()) SWIG_fail; | |
20575 | } | |
20576 | { | |
20577 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20578 | } | |
20579 | return resultobj; | |
20580 | fail: | |
20581 | return NULL; | |
20582 | } | |
20583 | ||
20584 | ||
c370783e | 20585 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20586 | PyObject *resultobj; |
20587 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20588 | bool arg2 ; | |
20589 | PyObject * obj0 = 0 ; | |
20590 | PyObject * obj1 = 0 ; | |
20591 | char *kwnames[] = { | |
20592 | (char *) "self",(char *) "flag", NULL | |
20593 | }; | |
20594 | ||
20595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
20596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20598 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
20599 | if (PyErr_Occurred()) SWIG_fail; |
20600 | { | |
20601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20602 | (arg1)->SetUseBestVisual(arg2); | |
20603 | ||
20604 | wxPyEndAllowThreads(__tstate); | |
20605 | if (PyErr_Occurred()) SWIG_fail; | |
20606 | } | |
20607 | Py_INCREF(Py_None); resultobj = Py_None; | |
20608 | return resultobj; | |
20609 | fail: | |
20610 | return NULL; | |
20611 | } | |
20612 | ||
20613 | ||
c370783e | 20614 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20615 | PyObject *resultobj; |
20616 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20617 | bool result; | |
20618 | PyObject * obj0 = 0 ; | |
20619 | char *kwnames[] = { | |
20620 | (char *) "self", NULL | |
20621 | }; | |
20622 | ||
20623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
20624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20626 | { | |
20627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20628 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
20629 | ||
20630 | wxPyEndAllowThreads(__tstate); | |
20631 | if (PyErr_Occurred()) SWIG_fail; | |
20632 | } | |
20633 | { | |
20634 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20635 | } | |
20636 | return resultobj; | |
20637 | fail: | |
20638 | return NULL; | |
20639 | } | |
20640 | ||
20641 | ||
c370783e | 20642 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20643 | PyObject *resultobj; |
20644 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20645 | int arg2 ; | |
20646 | PyObject * obj0 = 0 ; | |
20647 | PyObject * obj1 = 0 ; | |
20648 | char *kwnames[] = { | |
20649 | (char *) "self",(char *) "mode", NULL | |
20650 | }; | |
20651 | ||
20652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; | |
20653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20655 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20656 | if (PyErr_Occurred()) SWIG_fail; |
20657 | { | |
20658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20659 | (arg1)->SetPrintMode(arg2); | |
20660 | ||
20661 | wxPyEndAllowThreads(__tstate); | |
20662 | if (PyErr_Occurred()) SWIG_fail; | |
20663 | } | |
20664 | Py_INCREF(Py_None); resultobj = Py_None; | |
20665 | return resultobj; | |
20666 | fail: | |
20667 | return NULL; | |
20668 | } | |
20669 | ||
20670 | ||
c370783e | 20671 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20672 | PyObject *resultobj; |
20673 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20674 | int result; | |
20675 | PyObject * obj0 = 0 ; | |
20676 | char *kwnames[] = { | |
20677 | (char *) "self", NULL | |
20678 | }; | |
20679 | ||
20680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
20681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20683 | { | |
20684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20685 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
20686 | ||
20687 | wxPyEndAllowThreads(__tstate); | |
20688 | if (PyErr_Occurred()) SWIG_fail; | |
20689 | } | |
c370783e | 20690 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20691 | return resultobj; |
20692 | fail: | |
20693 | return NULL; | |
20694 | } | |
20695 | ||
20696 | ||
c370783e | 20697 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20698 | PyObject *resultobj; |
20699 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20700 | int arg2 ; | |
20701 | PyObject * obj0 = 0 ; | |
20702 | PyObject * obj1 = 0 ; | |
20703 | char *kwnames[] = { | |
20704 | (char *) "self",(char *) "mode", NULL | |
20705 | }; | |
20706 | ||
20707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; | |
20708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20710 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20711 | if (PyErr_Occurred()) SWIG_fail; |
20712 | { | |
20713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20714 | (arg1)->SetAssertMode(arg2); | |
20715 | ||
20716 | wxPyEndAllowThreads(__tstate); | |
20717 | if (PyErr_Occurred()) SWIG_fail; | |
20718 | } | |
20719 | Py_INCREF(Py_None); resultobj = Py_None; | |
20720 | return resultobj; | |
20721 | fail: | |
20722 | return NULL; | |
20723 | } | |
20724 | ||
20725 | ||
c370783e | 20726 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20727 | PyObject *resultobj; |
20728 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20729 | int result; | |
20730 | PyObject * obj0 = 0 ; | |
20731 | char *kwnames[] = { | |
20732 | (char *) "self", NULL | |
20733 | }; | |
20734 | ||
20735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; | |
20736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20738 | { | |
20739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20740 | result = (int)(arg1)->GetAssertMode(); | |
20741 | ||
20742 | wxPyEndAllowThreads(__tstate); | |
20743 | if (PyErr_Occurred()) SWIG_fail; | |
20744 | } | |
c370783e | 20745 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20746 | return resultobj; |
20747 | fail: | |
20748 | return NULL; | |
20749 | } | |
20750 | ||
20751 | ||
c370783e | 20752 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20753 | PyObject *resultobj; |
20754 | bool result; | |
20755 | char *kwnames[] = { | |
20756 | NULL | |
20757 | }; | |
20758 | ||
20759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
20760 | { | |
20761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20762 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
20763 | ||
20764 | wxPyEndAllowThreads(__tstate); | |
20765 | if (PyErr_Occurred()) SWIG_fail; | |
20766 | } | |
20767 | { | |
20768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20769 | } | |
20770 | return resultobj; | |
20771 | fail: | |
20772 | return NULL; | |
20773 | } | |
20774 | ||
20775 | ||
c370783e | 20776 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20777 | PyObject *resultobj; |
20778 | long result; | |
20779 | char *kwnames[] = { | |
20780 | NULL | |
20781 | }; | |
20782 | ||
20783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
20784 | { | |
20785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20786 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
20787 | ||
20788 | wxPyEndAllowThreads(__tstate); | |
20789 | if (PyErr_Occurred()) SWIG_fail; | |
20790 | } | |
c370783e | 20791 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20792 | return resultobj; |
20793 | fail: | |
20794 | return NULL; | |
20795 | } | |
20796 | ||
20797 | ||
c370783e | 20798 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20799 | PyObject *resultobj; |
20800 | long result; | |
20801 | char *kwnames[] = { | |
20802 | NULL | |
20803 | }; | |
20804 | ||
20805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
20806 | { | |
20807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20808 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
20809 | ||
20810 | wxPyEndAllowThreads(__tstate); | |
20811 | if (PyErr_Occurred()) SWIG_fail; | |
20812 | } | |
c370783e | 20813 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20814 | return resultobj; |
20815 | fail: | |
20816 | return NULL; | |
20817 | } | |
20818 | ||
20819 | ||
c370783e | 20820 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20821 | PyObject *resultobj; |
20822 | long result; | |
20823 | char *kwnames[] = { | |
20824 | NULL | |
20825 | }; | |
20826 | ||
20827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
20828 | { | |
20829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20830 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
20831 | ||
20832 | wxPyEndAllowThreads(__tstate); | |
20833 | if (PyErr_Occurred()) SWIG_fail; | |
20834 | } | |
c370783e | 20835 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
20836 | return resultobj; |
20837 | fail: | |
20838 | return NULL; | |
20839 | } | |
20840 | ||
20841 | ||
c370783e | 20842 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20843 | PyObject *resultobj; |
20844 | wxString result; | |
20845 | char *kwnames[] = { | |
20846 | NULL | |
20847 | }; | |
20848 | ||
20849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
20850 | { | |
20851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20852 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
20853 | ||
20854 | wxPyEndAllowThreads(__tstate); | |
20855 | if (PyErr_Occurred()) SWIG_fail; | |
20856 | } | |
20857 | { | |
20858 | #if wxUSE_UNICODE | |
20859 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20860 | #else | |
20861 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20862 | #endif | |
20863 | } | |
20864 | return resultobj; | |
20865 | fail: | |
20866 | return NULL; | |
20867 | } | |
20868 | ||
20869 | ||
c370783e | 20870 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20871 | PyObject *resultobj; |
20872 | bool arg1 ; | |
20873 | PyObject * obj0 = 0 ; | |
20874 | char *kwnames[] = { | |
20875 | (char *) "val", NULL | |
20876 | }; | |
20877 | ||
20878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
c370783e | 20879 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
20880 | if (PyErr_Occurred()) SWIG_fail; |
20881 | { | |
20882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20883 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
20884 | ||
20885 | wxPyEndAllowThreads(__tstate); | |
20886 | if (PyErr_Occurred()) SWIG_fail; | |
20887 | } | |
20888 | Py_INCREF(Py_None); resultobj = Py_None; | |
20889 | return resultobj; | |
20890 | fail: | |
20891 | return NULL; | |
20892 | } | |
20893 | ||
20894 | ||
c370783e | 20895 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20896 | PyObject *resultobj; |
20897 | long arg1 ; | |
20898 | PyObject * obj0 = 0 ; | |
20899 | char *kwnames[] = { | |
20900 | (char *) "val", NULL | |
20901 | }; | |
20902 | ||
20903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; | |
c370783e | 20904 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
20905 | if (PyErr_Occurred()) SWIG_fail; |
20906 | { | |
20907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20908 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
20909 | ||
20910 | wxPyEndAllowThreads(__tstate); | |
20911 | if (PyErr_Occurred()) SWIG_fail; | |
20912 | } | |
20913 | Py_INCREF(Py_None); resultobj = Py_None; | |
20914 | return resultobj; | |
20915 | fail: | |
20916 | return NULL; | |
20917 | } | |
20918 | ||
20919 | ||
c370783e | 20920 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20921 | PyObject *resultobj; |
20922 | long arg1 ; | |
20923 | PyObject * obj0 = 0 ; | |
20924 | char *kwnames[] = { | |
20925 | (char *) "val", NULL | |
20926 | }; | |
20927 | ||
20928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; | |
c370783e | 20929 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
20930 | if (PyErr_Occurred()) SWIG_fail; |
20931 | { | |
20932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20933 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
20934 | ||
20935 | wxPyEndAllowThreads(__tstate); | |
20936 | if (PyErr_Occurred()) SWIG_fail; | |
20937 | } | |
20938 | Py_INCREF(Py_None); resultobj = Py_None; | |
20939 | return resultobj; | |
20940 | fail: | |
20941 | return NULL; | |
20942 | } | |
20943 | ||
20944 | ||
c370783e | 20945 | static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20946 | PyObject *resultobj; |
20947 | long arg1 ; | |
20948 | PyObject * obj0 = 0 ; | |
20949 | char *kwnames[] = { | |
20950 | (char *) "val", NULL | |
20951 | }; | |
20952 | ||
20953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; | |
c370783e | 20954 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
20955 | if (PyErr_Occurred()) SWIG_fail; |
20956 | { | |
20957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20958 | wxPyApp::SetMacExitMenuItemId(arg1); | |
20959 | ||
20960 | wxPyEndAllowThreads(__tstate); | |
20961 | if (PyErr_Occurred()) SWIG_fail; | |
20962 | } | |
20963 | Py_INCREF(Py_None); resultobj = Py_None; | |
20964 | return resultobj; | |
20965 | fail: | |
20966 | return NULL; | |
20967 | } | |
20968 | ||
20969 | ||
c370783e | 20970 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20971 | PyObject *resultobj; |
20972 | wxString *arg1 = 0 ; | |
b411df4a | 20973 | bool temp1 = false ; |
d55e5bfc RD |
20974 | PyObject * obj0 = 0 ; |
20975 | char *kwnames[] = { | |
20976 | (char *) "val", NULL | |
20977 | }; | |
20978 | ||
20979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
20980 | { | |
20981 | arg1 = wxString_in_helper(obj0); | |
20982 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 20983 | temp1 = true; |
d55e5bfc RD |
20984 | } |
20985 | { | |
20986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20987 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
20988 | ||
20989 | wxPyEndAllowThreads(__tstate); | |
20990 | if (PyErr_Occurred()) SWIG_fail; | |
20991 | } | |
20992 | Py_INCREF(Py_None); resultobj = Py_None; | |
20993 | { | |
20994 | if (temp1) | |
20995 | delete arg1; | |
20996 | } | |
20997 | return resultobj; | |
20998 | fail: | |
20999 | { | |
21000 | if (temp1) | |
21001 | delete arg1; | |
21002 | } | |
21003 | return NULL; | |
21004 | } | |
21005 | ||
21006 | ||
c370783e | 21007 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21008 | PyObject *resultobj; |
21009 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
21010 | PyObject * obj0 = 0 ; | |
21011 | char *kwnames[] = { | |
21012 | (char *) "self", NULL | |
21013 | }; | |
21014 | ||
21015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
21016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
21017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21018 | { | |
21019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21020 | (arg1)->_BootstrapApp(); | |
21021 | ||
21022 | wxPyEndAllowThreads(__tstate); | |
21023 | if (PyErr_Occurred()) SWIG_fail; | |
21024 | } | |
21025 | Py_INCREF(Py_None); resultobj = Py_None; | |
21026 | return resultobj; | |
21027 | fail: | |
21028 | return NULL; | |
21029 | } | |
21030 | ||
21031 | ||
c370783e | 21032 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21033 | PyObject *resultobj; |
21034 | int result; | |
21035 | char *kwnames[] = { | |
21036 | NULL | |
21037 | }; | |
21038 | ||
21039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
21040 | { | |
21041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21042 | result = (int)PyApp_GetComCtl32Version(); | |
21043 | ||
21044 | wxPyEndAllowThreads(__tstate); | |
21045 | if (PyErr_Occurred()) SWIG_fail; | |
21046 | } | |
c370783e | 21047 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21048 | return resultobj; |
21049 | fail: | |
21050 | return NULL; | |
21051 | } | |
21052 | ||
21053 | ||
c370783e | 21054 | static PyObject * PyApp_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21055 | PyObject *obj; |
21056 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21057 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
21058 | Py_INCREF(obj); | |
21059 | return Py_BuildValue((char *)""); | |
21060 | } | |
c370783e | 21061 | static PyObject *_wrap_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21062 | PyObject *resultobj; |
21063 | char *kwnames[] = { | |
21064 | NULL | |
21065 | }; | |
21066 | ||
21067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
21068 | { | |
21069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21070 | wxExit(); | |
21071 | ||
21072 | wxPyEndAllowThreads(__tstate); | |
21073 | if (PyErr_Occurred()) SWIG_fail; | |
21074 | } | |
21075 | Py_INCREF(Py_None); resultobj = Py_None; | |
21076 | return resultobj; | |
21077 | fail: | |
21078 | return NULL; | |
21079 | } | |
21080 | ||
21081 | ||
c370783e | 21082 | static PyObject *_wrap_Yield(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 *)":Yield",kwnames)) goto fail; | |
21090 | { | |
21091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21092 | result = (bool)wxYield(); | |
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_YieldIfNeeded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21107 | PyObject *resultobj; |
21108 | bool result; | |
21109 | char *kwnames[] = { | |
21110 | NULL | |
21111 | }; | |
21112 | ||
21113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
21114 | { | |
21115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21116 | result = (bool)wxYieldIfNeeded(); | |
21117 | ||
21118 | wxPyEndAllowThreads(__tstate); | |
21119 | if (PyErr_Occurred()) SWIG_fail; | |
21120 | } | |
21121 | { | |
21122 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21123 | } | |
21124 | return resultobj; | |
21125 | fail: | |
21126 | return NULL; | |
21127 | } | |
21128 | ||
21129 | ||
c370783e | 21130 | static PyObject *_wrap_SafeYield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21131 | PyObject *resultobj; |
21132 | wxWindow *arg1 = (wxWindow *) NULL ; | |
b411df4a | 21133 | bool arg2 = (bool) false ; |
d55e5bfc RD |
21134 | bool result; |
21135 | PyObject * obj0 = 0 ; | |
21136 | PyObject * obj1 = 0 ; | |
21137 | char *kwnames[] = { | |
21138 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
21139 | }; | |
21140 | ||
21141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
21142 | if (obj0) { | |
21143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21145 | } | |
21146 | if (obj1) { | |
c370783e | 21147 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
21148 | if (PyErr_Occurred()) SWIG_fail; |
21149 | } | |
21150 | { | |
21151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21152 | result = (bool)wxSafeYield(arg1,arg2); | |
21153 | ||
21154 | wxPyEndAllowThreads(__tstate); | |
21155 | if (PyErr_Occurred()) SWIG_fail; | |
21156 | } | |
21157 | { | |
21158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21159 | } | |
21160 | return resultobj; | |
21161 | fail: | |
21162 | return NULL; | |
21163 | } | |
21164 | ||
21165 | ||
c370783e | 21166 | static PyObject *_wrap_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21167 | PyObject *resultobj; |
21168 | char *kwnames[] = { | |
21169 | NULL | |
21170 | }; | |
21171 | ||
21172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
21173 | { | |
21174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21175 | wxWakeUpIdle(); | |
21176 | ||
21177 | wxPyEndAllowThreads(__tstate); | |
21178 | if (PyErr_Occurred()) SWIG_fail; | |
21179 | } | |
21180 | Py_INCREF(Py_None); resultobj = Py_None; | |
21181 | return resultobj; | |
21182 | fail: | |
21183 | return NULL; | |
21184 | } | |
21185 | ||
21186 | ||
c370783e | 21187 | static PyObject *_wrap_PostEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21188 | PyObject *resultobj; |
21189 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
21190 | wxEvent *arg2 = 0 ; | |
21191 | PyObject * obj0 = 0 ; | |
21192 | PyObject * obj1 = 0 ; | |
21193 | char *kwnames[] = { | |
21194 | (char *) "dest",(char *) "event", NULL | |
21195 | }; | |
21196 | ||
21197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
21198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
21199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21200 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
21201 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21202 | SWIG_fail; | |
21203 | if (arg2 == NULL) { | |
21204 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21205 | SWIG_fail; | |
21206 | } | |
21207 | { | |
21208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21209 | wxPostEvent(arg1,*arg2); | |
21210 | ||
21211 | wxPyEndAllowThreads(__tstate); | |
21212 | if (PyErr_Occurred()) SWIG_fail; | |
21213 | } | |
21214 | Py_INCREF(Py_None); resultobj = Py_None; | |
21215 | return resultobj; | |
21216 | fail: | |
21217 | return NULL; | |
21218 | } | |
21219 | ||
21220 | ||
c370783e | 21221 | static PyObject *_wrap_App_CleanUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21222 | PyObject *resultobj; |
21223 | char *kwnames[] = { | |
21224 | NULL | |
21225 | }; | |
21226 | ||
21227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
21228 | { | |
21229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21230 | wxApp_CleanUp(); | |
21231 | ||
21232 | wxPyEndAllowThreads(__tstate); | |
21233 | if (PyErr_Occurred()) SWIG_fail; | |
21234 | } | |
21235 | Py_INCREF(Py_None); resultobj = Py_None; | |
21236 | return resultobj; | |
21237 | fail: | |
21238 | return NULL; | |
21239 | } | |
21240 | ||
21241 | ||
c370783e | 21242 | static PyObject *_wrap_GetApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21243 | PyObject *resultobj; |
21244 | wxPyApp *result; | |
21245 | char *kwnames[] = { | |
21246 | NULL | |
21247 | }; | |
21248 | ||
21249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
21250 | { | |
21251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a5ee0656 | 21252 | result = (wxPyApp *)wxPyGetApp(); |
d55e5bfc RD |
21253 | |
21254 | wxPyEndAllowThreads(__tstate); | |
21255 | if (PyErr_Occurred()) SWIG_fail; | |
21256 | } | |
21257 | { | |
412d302d | 21258 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21259 | } |
21260 | return resultobj; | |
21261 | fail: | |
21262 | return NULL; | |
21263 | } | |
21264 | ||
21265 | ||
b411df4a RD |
21266 | static PyObject *_wrap_new_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
21267 | PyObject *resultobj; | |
21268 | wxEventLoop *result; | |
21269 | char *kwnames[] = { | |
21270 | NULL | |
21271 | }; | |
21272 | ||
21273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EventLoop",kwnames)) goto fail; | |
21274 | { | |
21275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21276 | result = (wxEventLoop *)new wxEventLoop(); | |
21277 | ||
21278 | wxPyEndAllowThreads(__tstate); | |
21279 | if (PyErr_Occurred()) SWIG_fail; | |
21280 | } | |
21281 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 1); | |
21282 | return resultobj; | |
21283 | fail: | |
21284 | return NULL; | |
21285 | } | |
21286 | ||
21287 | ||
21288 | static PyObject *_wrap_delete_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) { | |
21289 | PyObject *resultobj; | |
21290 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21291 | PyObject * obj0 = 0 ; | |
21292 | char *kwnames[] = { | |
21293 | (char *) "self", NULL | |
21294 | }; | |
21295 | ||
21296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EventLoop",kwnames,&obj0)) goto fail; | |
21297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21299 | { | |
21300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21301 | delete arg1; | |
21302 | ||
21303 | wxPyEndAllowThreads(__tstate); | |
21304 | if (PyErr_Occurred()) SWIG_fail; | |
21305 | } | |
21306 | Py_INCREF(Py_None); resultobj = Py_None; | |
21307 | return resultobj; | |
21308 | fail: | |
21309 | return NULL; | |
21310 | } | |
21311 | ||
21312 | ||
21313 | static PyObject *_wrap_EventLoop_Run(PyObject *, PyObject *args, PyObject *kwargs) { | |
21314 | PyObject *resultobj; | |
21315 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21316 | int result; | |
21317 | PyObject * obj0 = 0 ; | |
21318 | char *kwnames[] = { | |
21319 | (char *) "self", NULL | |
21320 | }; | |
21321 | ||
21322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Run",kwnames,&obj0)) goto fail; | |
21323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21325 | { | |
21326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21327 | result = (int)(arg1)->Run(); | |
21328 | ||
21329 | wxPyEndAllowThreads(__tstate); | |
21330 | if (PyErr_Occurred()) SWIG_fail; | |
21331 | } | |
21332 | resultobj = SWIG_From_int((int)result); | |
21333 | return resultobj; | |
21334 | fail: | |
21335 | return NULL; | |
21336 | } | |
21337 | ||
21338 | ||
21339 | static PyObject *_wrap_EventLoop_Exit(PyObject *, PyObject *args, PyObject *kwargs) { | |
21340 | PyObject *resultobj; | |
21341 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21342 | int arg2 = (int) 0 ; | |
21343 | PyObject * obj0 = 0 ; | |
21344 | PyObject * obj1 = 0 ; | |
21345 | char *kwnames[] = { | |
21346 | (char *) "self",(char *) "rc", NULL | |
21347 | }; | |
21348 | ||
21349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EventLoop_Exit",kwnames,&obj0,&obj1)) goto fail; | |
21350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21352 | if (obj1) { | |
21353 | arg2 = (int)SWIG_As_int(obj1); | |
21354 | if (PyErr_Occurred()) SWIG_fail; | |
21355 | } | |
21356 | { | |
21357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21358 | (arg1)->Exit(arg2); | |
21359 | ||
21360 | wxPyEndAllowThreads(__tstate); | |
21361 | if (PyErr_Occurred()) SWIG_fail; | |
21362 | } | |
21363 | Py_INCREF(Py_None); resultobj = Py_None; | |
21364 | return resultobj; | |
21365 | fail: | |
21366 | return NULL; | |
21367 | } | |
21368 | ||
21369 | ||
21370 | static PyObject *_wrap_EventLoop_Pending(PyObject *, PyObject *args, PyObject *kwargs) { | |
21371 | PyObject *resultobj; | |
21372 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21373 | bool result; | |
21374 | PyObject * obj0 = 0 ; | |
21375 | char *kwnames[] = { | |
21376 | (char *) "self", NULL | |
21377 | }; | |
21378 | ||
21379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Pending",kwnames,&obj0)) goto fail; | |
21380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21382 | { | |
21383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21384 | result = (bool)((wxEventLoop const *)arg1)->Pending(); | |
21385 | ||
21386 | wxPyEndAllowThreads(__tstate); | |
21387 | if (PyErr_Occurred()) SWIG_fail; | |
21388 | } | |
21389 | { | |
21390 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21391 | } | |
21392 | return resultobj; | |
21393 | fail: | |
21394 | return NULL; | |
21395 | } | |
21396 | ||
21397 | ||
21398 | static PyObject *_wrap_EventLoop_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { | |
21399 | PyObject *resultobj; | |
21400 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21401 | bool result; | |
21402 | PyObject * obj0 = 0 ; | |
21403 | char *kwnames[] = { | |
21404 | (char *) "self", NULL | |
21405 | }; | |
21406 | ||
21407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Dispatch",kwnames,&obj0)) goto fail; | |
21408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21410 | { | |
21411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21412 | result = (bool)(arg1)->Dispatch(); | |
21413 | ||
21414 | wxPyEndAllowThreads(__tstate); | |
21415 | if (PyErr_Occurred()) SWIG_fail; | |
21416 | } | |
21417 | { | |
21418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21419 | } | |
21420 | return resultobj; | |
21421 | fail: | |
21422 | return NULL; | |
21423 | } | |
21424 | ||
21425 | ||
21426 | static PyObject *_wrap_EventLoop_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) { | |
21427 | PyObject *resultobj; | |
21428 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21429 | bool result; | |
21430 | PyObject * obj0 = 0 ; | |
21431 | char *kwnames[] = { | |
21432 | (char *) "self", NULL | |
21433 | }; | |
21434 | ||
21435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_IsRunning",kwnames,&obj0)) goto fail; | |
21436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21438 | { | |
21439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21440 | result = (bool)((wxEventLoop const *)arg1)->IsRunning(); | |
21441 | ||
21442 | wxPyEndAllowThreads(__tstate); | |
21443 | if (PyErr_Occurred()) SWIG_fail; | |
21444 | } | |
21445 | { | |
21446 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21447 | } | |
21448 | return resultobj; | |
21449 | fail: | |
21450 | return NULL; | |
21451 | } | |
21452 | ||
21453 | ||
21454 | static PyObject *_wrap_EventLoop_GetActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
21455 | PyObject *resultobj; | |
21456 | wxEventLoop *result; | |
21457 | char *kwnames[] = { | |
21458 | NULL | |
21459 | }; | |
21460 | ||
21461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EventLoop_GetActive",kwnames)) goto fail; | |
21462 | { | |
21463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21464 | result = (wxEventLoop *)wxEventLoop::GetActive(); | |
21465 | ||
21466 | wxPyEndAllowThreads(__tstate); | |
21467 | if (PyErr_Occurred()) SWIG_fail; | |
21468 | } | |
21469 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 0); | |
21470 | return resultobj; | |
21471 | fail: | |
21472 | return NULL; | |
21473 | } | |
21474 | ||
21475 | ||
21476 | static PyObject *_wrap_EventLoop_SetActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
21477 | PyObject *resultobj; | |
21478 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21479 | PyObject * obj0 = 0 ; | |
21480 | char *kwnames[] = { | |
21481 | (char *) "loop", NULL | |
21482 | }; | |
21483 | ||
21484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_SetActive",kwnames,&obj0)) goto fail; | |
21485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21487 | { | |
21488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21489 | wxEventLoop::SetActive(arg1); | |
21490 | ||
21491 | wxPyEndAllowThreads(__tstate); | |
21492 | if (PyErr_Occurred()) SWIG_fail; | |
21493 | } | |
21494 | Py_INCREF(Py_None); resultobj = Py_None; | |
21495 | return resultobj; | |
21496 | fail: | |
21497 | return NULL; | |
21498 | } | |
21499 | ||
21500 | ||
21501 | static PyObject * EventLoop_swigregister(PyObject *, PyObject *args) { | |
21502 | PyObject *obj; | |
21503 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21504 | SWIG_TypeClientData(SWIGTYPE_p_wxEventLoop, obj); | |
21505 | Py_INCREF(obj); | |
21506 | return Py_BuildValue((char *)""); | |
21507 | } | |
c370783e | 21508 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21509 | PyObject *resultobj; |
21510 | int arg1 = (int) 0 ; | |
21511 | int arg2 = (int) 0 ; | |
21512 | int arg3 = (int) 0 ; | |
d55e5bfc RD |
21513 | wxAcceleratorEntry *result; |
21514 | PyObject * obj0 = 0 ; | |
21515 | PyObject * obj1 = 0 ; | |
21516 | PyObject * obj2 = 0 ; | |
d55e5bfc | 21517 | char *kwnames[] = { |
d6c14a4c | 21518 | (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL |
d55e5bfc RD |
21519 | }; |
21520 | ||
d6c14a4c | 21521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc | 21522 | if (obj0) { |
c370783e | 21523 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
21524 | if (PyErr_Occurred()) SWIG_fail; |
21525 | } | |
21526 | if (obj1) { | |
c370783e | 21527 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
21528 | if (PyErr_Occurred()) SWIG_fail; |
21529 | } | |
21530 | if (obj2) { | |
c370783e | 21531 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
21532 | if (PyErr_Occurred()) SWIG_fail; |
21533 | } | |
d55e5bfc RD |
21534 | { |
21535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 21536 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3); |
d55e5bfc RD |
21537 | |
21538 | wxPyEndAllowThreads(__tstate); | |
21539 | if (PyErr_Occurred()) SWIG_fail; | |
21540 | } | |
21541 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); | |
21542 | return resultobj; | |
21543 | fail: | |
21544 | return NULL; | |
21545 | } | |
21546 | ||
21547 | ||
c370783e | 21548 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21549 | PyObject *resultobj; |
21550 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21551 | PyObject * obj0 = 0 ; | |
21552 | char *kwnames[] = { | |
21553 | (char *) "self", NULL | |
21554 | }; | |
21555 | ||
21556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
21557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21559 | { | |
21560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21561 | delete arg1; | |
21562 | ||
21563 | wxPyEndAllowThreads(__tstate); | |
21564 | if (PyErr_Occurred()) SWIG_fail; | |
21565 | } | |
21566 | Py_INCREF(Py_None); resultobj = Py_None; | |
21567 | return resultobj; | |
21568 | fail: | |
21569 | return NULL; | |
21570 | } | |
21571 | ||
21572 | ||
c370783e | 21573 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21574 | PyObject *resultobj; |
21575 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21576 | int arg2 ; | |
21577 | int arg3 ; | |
21578 | int arg4 ; | |
d55e5bfc RD |
21579 | PyObject * obj0 = 0 ; |
21580 | PyObject * obj1 = 0 ; | |
21581 | PyObject * obj2 = 0 ; | |
21582 | PyObject * obj3 = 0 ; | |
d55e5bfc | 21583 | char *kwnames[] = { |
d6c14a4c | 21584 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL |
d55e5bfc RD |
21585 | }; |
21586 | ||
d6c14a4c | 21587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
21588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
21589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21590 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 21591 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21592 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 21593 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21594 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 21595 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21596 | { |
21597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 21598 | (arg1)->Set(arg2,arg3,arg4); |
d55e5bfc RD |
21599 | |
21600 | wxPyEndAllowThreads(__tstate); | |
21601 | if (PyErr_Occurred()) SWIG_fail; | |
21602 | } | |
21603 | Py_INCREF(Py_None); resultobj = Py_None; | |
21604 | return resultobj; | |
21605 | fail: | |
21606 | return NULL; | |
21607 | } | |
21608 | ||
21609 | ||
c370783e | 21610 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21611 | PyObject *resultobj; |
21612 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21613 | int result; | |
21614 | PyObject * obj0 = 0 ; | |
21615 | char *kwnames[] = { | |
21616 | (char *) "self", NULL | |
21617 | }; | |
21618 | ||
21619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
21620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21622 | { | |
21623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21624 | result = (int)(arg1)->GetFlags(); | |
21625 | ||
21626 | wxPyEndAllowThreads(__tstate); | |
21627 | if (PyErr_Occurred()) SWIG_fail; | |
21628 | } | |
c370783e | 21629 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21630 | return resultobj; |
21631 | fail: | |
21632 | return NULL; | |
21633 | } | |
21634 | ||
21635 | ||
c370783e | 21636 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21637 | PyObject *resultobj; |
21638 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21639 | int result; | |
21640 | PyObject * obj0 = 0 ; | |
21641 | char *kwnames[] = { | |
21642 | (char *) "self", NULL | |
21643 | }; | |
21644 | ||
21645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
21646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21648 | { | |
21649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21650 | result = (int)(arg1)->GetKeyCode(); | |
21651 | ||
21652 | wxPyEndAllowThreads(__tstate); | |
21653 | if (PyErr_Occurred()) SWIG_fail; | |
21654 | } | |
c370783e | 21655 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21656 | return resultobj; |
21657 | fail: | |
21658 | return NULL; | |
21659 | } | |
21660 | ||
21661 | ||
c370783e | 21662 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21663 | PyObject *resultobj; |
21664 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21665 | int result; | |
21666 | PyObject * obj0 = 0 ; | |
21667 | char *kwnames[] = { | |
21668 | (char *) "self", NULL | |
21669 | }; | |
21670 | ||
21671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
21672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21674 | { | |
21675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21676 | result = (int)(arg1)->GetCommand(); | |
21677 | ||
21678 | wxPyEndAllowThreads(__tstate); | |
21679 | if (PyErr_Occurred()) SWIG_fail; | |
21680 | } | |
c370783e | 21681 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21682 | return resultobj; |
21683 | fail: | |
21684 | return NULL; | |
21685 | } | |
21686 | ||
21687 | ||
c370783e | 21688 | static PyObject * AcceleratorEntry_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21689 | PyObject *obj; |
21690 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21691 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
21692 | Py_INCREF(obj); | |
21693 | return Py_BuildValue((char *)""); | |
21694 | } | |
c370783e | 21695 | static PyObject *_wrap_new_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21696 | PyObject *resultobj; |
21697 | int arg1 ; | |
21698 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
21699 | wxAcceleratorTable *result; | |
21700 | PyObject * obj0 = 0 ; | |
21701 | char *kwnames[] = { | |
21702 | (char *) "n", NULL | |
21703 | }; | |
21704 | ||
21705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
21706 | { | |
21707 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
21708 | if (arg2) arg1 = PyList_Size(obj0); | |
21709 | else arg1 = 0; | |
21710 | } | |
21711 | { | |
21712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21713 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
21714 | ||
21715 | wxPyEndAllowThreads(__tstate); | |
21716 | if (PyErr_Occurred()) SWIG_fail; | |
21717 | } | |
21718 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); | |
21719 | { | |
21720 | delete [] arg2; | |
21721 | } | |
21722 | return resultobj; | |
21723 | fail: | |
21724 | { | |
21725 | delete [] arg2; | |
21726 | } | |
21727 | return NULL; | |
21728 | } | |
21729 | ||
21730 | ||
c370783e | 21731 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21732 | PyObject *resultobj; |
21733 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21734 | PyObject * obj0 = 0 ; | |
21735 | char *kwnames[] = { | |
21736 | (char *) "self", NULL | |
21737 | }; | |
21738 | ||
21739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
21740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, | |
21741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21742 | { | |
21743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21744 | delete arg1; | |
21745 | ||
21746 | wxPyEndAllowThreads(__tstate); | |
21747 | if (PyErr_Occurred()) SWIG_fail; | |
21748 | } | |
21749 | Py_INCREF(Py_None); resultobj = Py_None; | |
21750 | return resultobj; | |
21751 | fail: | |
21752 | return NULL; | |
21753 | } | |
21754 | ||
21755 | ||
c370783e | 21756 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21757 | PyObject *resultobj; |
21758 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
21759 | bool result; | |
21760 | PyObject * obj0 = 0 ; | |
21761 | char *kwnames[] = { | |
21762 | (char *) "self", NULL | |
21763 | }; | |
21764 | ||
21765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
21766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, | |
21767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21768 | { | |
21769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21770 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
21771 | ||
21772 | wxPyEndAllowThreads(__tstate); | |
21773 | if (PyErr_Occurred()) SWIG_fail; | |
21774 | } | |
21775 | { | |
21776 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21777 | } | |
21778 | return resultobj; | |
21779 | fail: | |
21780 | return NULL; | |
21781 | } | |
21782 | ||
21783 | ||
c370783e | 21784 | static PyObject * AcceleratorTable_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21785 | PyObject *obj; |
21786 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21787 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
21788 | Py_INCREF(obj); | |
21789 | return Py_BuildValue((char *)""); | |
21790 | } | |
c370783e | 21791 | static int _wrap_NullAcceleratorTable_set(PyObject *) { |
d55e5bfc RD |
21792 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); |
21793 | return 1; | |
21794 | } | |
21795 | ||
21796 | ||
21797 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
21798 | PyObject *pyobj; | |
21799 | ||
21800 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); | |
21801 | return pyobj; | |
21802 | } | |
21803 | ||
21804 | ||
c370783e | 21805 | static PyObject *_wrap_GetAccelFromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21806 | PyObject *resultobj; |
21807 | wxString *arg1 = 0 ; | |
21808 | wxAcceleratorEntry *result; | |
b411df4a | 21809 | bool temp1 = false ; |
d55e5bfc RD |
21810 | PyObject * obj0 = 0 ; |
21811 | char *kwnames[] = { | |
21812 | (char *) "label", NULL | |
21813 | }; | |
21814 | ||
21815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
21816 | { | |
21817 | arg1 = wxString_in_helper(obj0); | |
21818 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 21819 | temp1 = true; |
d55e5bfc RD |
21820 | } |
21821 | { | |
21822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21823 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
21824 | ||
21825 | wxPyEndAllowThreads(__tstate); | |
21826 | if (PyErr_Occurred()) SWIG_fail; | |
21827 | } | |
21828 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
21829 | { | |
21830 | if (temp1) | |
21831 | delete arg1; | |
21832 | } | |
21833 | return resultobj; | |
21834 | fail: | |
21835 | { | |
21836 | if (temp1) | |
21837 | delete arg1; | |
21838 | } | |
21839 | return NULL; | |
21840 | } | |
21841 | ||
21842 | ||
c370783e | 21843 | static int _wrap_PanelNameStr_set(PyObject *) { |
d55e5bfc RD |
21844 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); |
21845 | return 1; | |
21846 | } | |
21847 | ||
21848 | ||
21849 | static PyObject *_wrap_PanelNameStr_get() { | |
21850 | PyObject *pyobj; | |
21851 | ||
21852 | { | |
21853 | #if wxUSE_UNICODE | |
21854 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21855 | #else | |
21856 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
21857 | #endif | |
21858 | } | |
21859 | return pyobj; | |
21860 | } | |
21861 | ||
21862 | ||
c370783e | 21863 | static PyObject *_wrap_new_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21864 | PyObject *resultobj; |
21865 | wxVisualAttributes *result; | |
21866 | char *kwnames[] = { | |
21867 | NULL | |
21868 | }; | |
21869 | ||
21870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail; | |
21871 | { | |
21872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21873 | result = (wxVisualAttributes *)new_wxVisualAttributes(); | |
21874 | ||
21875 | wxPyEndAllowThreads(__tstate); | |
21876 | if (PyErr_Occurred()) SWIG_fail; | |
21877 | } | |
21878 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1); | |
21879 | return resultobj; | |
21880 | fail: | |
21881 | return NULL; | |
21882 | } | |
21883 | ||
21884 | ||
c370783e | 21885 | static PyObject *_wrap_delete_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21886 | PyObject *resultobj; |
21887 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21888 | PyObject * obj0 = 0 ; | |
21889 | char *kwnames[] = { | |
21890 | (char *) "self", NULL | |
21891 | }; | |
21892 | ||
21893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail; | |
21894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21896 | { | |
21897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21898 | delete_wxVisualAttributes(arg1); | |
21899 | ||
21900 | wxPyEndAllowThreads(__tstate); | |
21901 | if (PyErr_Occurred()) SWIG_fail; | |
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_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21911 | PyObject *resultobj; |
21912 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21913 | wxFont *arg2 = (wxFont *) 0 ; | |
21914 | PyObject * obj0 = 0 ; | |
21915 | PyObject * obj1 = 0 ; | |
21916 | char *kwnames[] = { | |
21917 | (char *) "self",(char *) "font", NULL | |
21918 | }; | |
21919 | ||
21920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail; | |
21921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21923 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
21924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21925 | if (arg1) (arg1)->font = *arg2; | |
21926 | ||
21927 | Py_INCREF(Py_None); resultobj = Py_None; | |
21928 | return resultobj; | |
21929 | fail: | |
21930 | return NULL; | |
21931 | } | |
21932 | ||
21933 | ||
c370783e | 21934 | static PyObject *_wrap_VisualAttributes_font_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21935 | PyObject *resultobj; |
21936 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21937 | wxFont *result; | |
21938 | PyObject * obj0 = 0 ; | |
21939 | char *kwnames[] = { | |
21940 | (char *) "self", NULL | |
21941 | }; | |
21942 | ||
21943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail; | |
21944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21946 | result = (wxFont *)& ((arg1)->font); | |
21947 | ||
21948 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
21949 | return resultobj; | |
21950 | fail: | |
21951 | return NULL; | |
21952 | } | |
21953 | ||
21954 | ||
c370783e | 21955 | static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21956 | PyObject *resultobj; |
21957 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21958 | wxColour *arg2 = (wxColour *) 0 ; | |
21959 | PyObject * obj0 = 0 ; | |
21960 | PyObject * obj1 = 0 ; | |
21961 | char *kwnames[] = { | |
21962 | (char *) "self",(char *) "colFg", NULL | |
21963 | }; | |
21964 | ||
21965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail; | |
21966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21968 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
21969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21970 | if (arg1) (arg1)->colFg = *arg2; | |
21971 | ||
21972 | Py_INCREF(Py_None); resultobj = Py_None; | |
21973 | return resultobj; | |
21974 | fail: | |
21975 | return NULL; | |
21976 | } | |
21977 | ||
21978 | ||
c370783e | 21979 | static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21980 | PyObject *resultobj; |
21981 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
21982 | wxColour *result; | |
21983 | PyObject * obj0 = 0 ; | |
21984 | char *kwnames[] = { | |
21985 | (char *) "self", NULL | |
21986 | }; | |
21987 | ||
21988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail; | |
21989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
21990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21991 | result = (wxColour *)& ((arg1)->colFg); | |
21992 | ||
21993 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
21994 | return resultobj; | |
21995 | fail: | |
21996 | return NULL; | |
21997 | } | |
21998 | ||
21999 | ||
c370783e | 22000 | static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22001 | PyObject *resultobj; |
22002 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22003 | wxColour *arg2 = (wxColour *) 0 ; | |
22004 | PyObject * obj0 = 0 ; | |
22005 | PyObject * obj1 = 0 ; | |
22006 | char *kwnames[] = { | |
22007 | (char *) "self",(char *) "colBg", NULL | |
22008 | }; | |
22009 | ||
22010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail; | |
22011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22013 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
22014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22015 | if (arg1) (arg1)->colBg = *arg2; | |
22016 | ||
22017 | Py_INCREF(Py_None); resultobj = Py_None; | |
22018 | return resultobj; | |
22019 | fail: | |
22020 | return NULL; | |
22021 | } | |
22022 | ||
22023 | ||
c370783e | 22024 | static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22025 | PyObject *resultobj; |
22026 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22027 | wxColour *result; | |
22028 | PyObject * obj0 = 0 ; | |
22029 | char *kwnames[] = { | |
22030 | (char *) "self", NULL | |
22031 | }; | |
22032 | ||
22033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail; | |
22034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22036 | result = (wxColour *)& ((arg1)->colBg); | |
22037 | ||
22038 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
22039 | return resultobj; | |
22040 | fail: | |
22041 | return NULL; | |
22042 | } | |
22043 | ||
22044 | ||
c370783e | 22045 | static PyObject * VisualAttributes_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
22046 | PyObject *obj; |
22047 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22048 | SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj); | |
22049 | Py_INCREF(obj); | |
22050 | return Py_BuildValue((char *)""); | |
22051 | } | |
c370783e | 22052 | static PyObject *_wrap_new_Window(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22053 | PyObject *resultobj; |
22054 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22055 | int arg2 = (int) (int)-1 ; | |
22056 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22057 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22058 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22059 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22060 | long arg5 = (long) 0 ; | |
22061 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
22062 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22063 | wxWindow *result; | |
22064 | wxPoint temp3 ; | |
22065 | wxSize temp4 ; | |
b411df4a | 22066 | bool temp6 = false ; |
d55e5bfc RD |
22067 | PyObject * obj0 = 0 ; |
22068 | PyObject * obj1 = 0 ; | |
22069 | PyObject * obj2 = 0 ; | |
22070 | PyObject * obj3 = 0 ; | |
22071 | PyObject * obj4 = 0 ; | |
22072 | PyObject * obj5 = 0 ; | |
22073 | char *kwnames[] = { | |
22074 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22075 | }; | |
22076 | ||
22077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22080 | if (obj1) { | |
c370783e | 22081 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22082 | if (PyErr_Occurred()) SWIG_fail; |
22083 | } | |
22084 | if (obj2) { | |
22085 | { | |
22086 | arg3 = &temp3; | |
22087 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22088 | } | |
22089 | } | |
22090 | if (obj3) { | |
22091 | { | |
22092 | arg4 = &temp4; | |
22093 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22094 | } | |
22095 | } | |
22096 | if (obj4) { | |
c370783e | 22097 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
22098 | if (PyErr_Occurred()) SWIG_fail; |
22099 | } | |
22100 | if (obj5) { | |
22101 | { | |
22102 | arg6 = wxString_in_helper(obj5); | |
22103 | if (arg6 == NULL) SWIG_fail; | |
b411df4a | 22104 | temp6 = true; |
d55e5bfc RD |
22105 | } |
22106 | } | |
22107 | { | |
0439c23b | 22108 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22110 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22111 | ||
22112 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22113 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 22114 | } |
b0f7404b | 22115 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d55e5bfc RD |
22116 | { |
22117 | if (temp6) | |
22118 | delete arg6; | |
22119 | } | |
22120 | return resultobj; | |
22121 | fail: | |
22122 | { | |
22123 | if (temp6) | |
22124 | delete arg6; | |
22125 | } | |
22126 | return NULL; | |
22127 | } | |
22128 | ||
22129 | ||
c370783e | 22130 | static PyObject *_wrap_new_PreWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22131 | PyObject *resultobj; |
22132 | wxWindow *result; | |
22133 | char *kwnames[] = { | |
22134 | NULL | |
22135 | }; | |
22136 | ||
22137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
22138 | { | |
0439c23b | 22139 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22141 | result = (wxWindow *)new wxWindow(); | |
22142 | ||
22143 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22144 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 22145 | } |
b0f7404b | 22146 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d55e5bfc RD |
22147 | return resultobj; |
22148 | fail: | |
22149 | return NULL; | |
22150 | } | |
22151 | ||
22152 | ||
c370783e | 22153 | static PyObject *_wrap_Window_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22154 | PyObject *resultobj; |
22155 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22156 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22157 | int arg3 = (int) (int)-1 ; | |
22158 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22159 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22160 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22161 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22162 | long arg6 = (long) 0 ; | |
22163 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
22164 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22165 | bool result; | |
22166 | wxPoint temp4 ; | |
22167 | wxSize temp5 ; | |
b411df4a | 22168 | bool temp7 = false ; |
d55e5bfc RD |
22169 | PyObject * obj0 = 0 ; |
22170 | PyObject * obj1 = 0 ; | |
22171 | PyObject * obj2 = 0 ; | |
22172 | PyObject * obj3 = 0 ; | |
22173 | PyObject * obj4 = 0 ; | |
22174 | PyObject * obj5 = 0 ; | |
22175 | PyObject * obj6 = 0 ; | |
22176 | char *kwnames[] = { | |
22177 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22178 | }; | |
22179 | ||
22180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22183 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22185 | if (obj2) { | |
c370783e | 22186 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22187 | if (PyErr_Occurred()) SWIG_fail; |
22188 | } | |
22189 | if (obj3) { | |
22190 | { | |
22191 | arg4 = &temp4; | |
22192 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22193 | } | |
22194 | } | |
22195 | if (obj4) { | |
22196 | { | |
22197 | arg5 = &temp5; | |
22198 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22199 | } | |
22200 | } | |
22201 | if (obj5) { | |
c370783e | 22202 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
22203 | if (PyErr_Occurred()) SWIG_fail; |
22204 | } | |
22205 | if (obj6) { | |
22206 | { | |
22207 | arg7 = wxString_in_helper(obj6); | |
22208 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 22209 | temp7 = true; |
d55e5bfc RD |
22210 | } |
22211 | } | |
22212 | { | |
22213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22214 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22215 | ||
22216 | wxPyEndAllowThreads(__tstate); | |
22217 | if (PyErr_Occurred()) SWIG_fail; | |
22218 | } | |
22219 | { | |
22220 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22221 | } | |
22222 | { | |
22223 | if (temp7) | |
22224 | delete arg7; | |
22225 | } | |
22226 | return resultobj; | |
22227 | fail: | |
22228 | { | |
22229 | if (temp7) | |
22230 | delete arg7; | |
22231 | } | |
22232 | return NULL; | |
22233 | } | |
22234 | ||
22235 | ||
c370783e | 22236 | static PyObject *_wrap_Window_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22237 | PyObject *resultobj; |
22238 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b411df4a | 22239 | bool arg2 = (bool) false ; |
d55e5bfc RD |
22240 | bool result; |
22241 | PyObject * obj0 = 0 ; | |
22242 | PyObject * obj1 = 0 ; | |
22243 | char *kwnames[] = { | |
22244 | (char *) "self",(char *) "force", NULL | |
22245 | }; | |
22246 | ||
22247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
22248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22250 | if (obj1) { | |
c370783e | 22251 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
22252 | if (PyErr_Occurred()) SWIG_fail; |
22253 | } | |
22254 | { | |
22255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22256 | result = (bool)(arg1)->Close(arg2); | |
22257 | ||
22258 | wxPyEndAllowThreads(__tstate); | |
22259 | if (PyErr_Occurred()) SWIG_fail; | |
22260 | } | |
22261 | { | |
22262 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22263 | } | |
22264 | return resultobj; | |
22265 | fail: | |
22266 | return NULL; | |
22267 | } | |
22268 | ||
22269 | ||
c370783e | 22270 | static PyObject *_wrap_Window_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22271 | PyObject *resultobj; |
22272 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22273 | bool result; | |
22274 | PyObject * obj0 = 0 ; | |
22275 | char *kwnames[] = { | |
22276 | (char *) "self", NULL | |
22277 | }; | |
22278 | ||
22279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
22280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22282 | { | |
22283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22284 | result = (bool)(arg1)->Destroy(); | |
22285 | ||
22286 | wxPyEndAllowThreads(__tstate); | |
22287 | if (PyErr_Occurred()) SWIG_fail; | |
22288 | } | |
22289 | { | |
22290 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22291 | } | |
22292 | return resultobj; | |
22293 | fail: | |
22294 | return NULL; | |
22295 | } | |
22296 | ||
22297 | ||
c370783e | 22298 | static PyObject *_wrap_Window_DestroyChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22299 | PyObject *resultobj; |
22300 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22301 | bool result; | |
22302 | PyObject * obj0 = 0 ; | |
22303 | char *kwnames[] = { | |
22304 | (char *) "self", NULL | |
22305 | }; | |
22306 | ||
22307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
22308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22310 | { | |
22311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22312 | result = (bool)(arg1)->DestroyChildren(); | |
22313 | ||
22314 | wxPyEndAllowThreads(__tstate); | |
22315 | if (PyErr_Occurred()) SWIG_fail; | |
22316 | } | |
22317 | { | |
22318 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22319 | } | |
22320 | return resultobj; | |
22321 | fail: | |
22322 | return NULL; | |
22323 | } | |
22324 | ||
22325 | ||
c370783e | 22326 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22327 | PyObject *resultobj; |
22328 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22329 | bool result; | |
22330 | PyObject * obj0 = 0 ; | |
22331 | char *kwnames[] = { | |
22332 | (char *) "self", NULL | |
22333 | }; | |
22334 | ||
22335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
22336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22338 | { | |
22339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22340 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
22341 | ||
22342 | wxPyEndAllowThreads(__tstate); | |
22343 | if (PyErr_Occurred()) SWIG_fail; | |
22344 | } | |
22345 | { | |
22346 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22347 | } | |
22348 | return resultobj; | |
22349 | fail: | |
22350 | return NULL; | |
22351 | } | |
22352 | ||
22353 | ||
c370783e | 22354 | static PyObject *_wrap_Window_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22355 | PyObject *resultobj; |
22356 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22357 | wxString *arg2 = 0 ; | |
b411df4a | 22358 | bool temp2 = false ; |
d55e5bfc RD |
22359 | PyObject * obj0 = 0 ; |
22360 | PyObject * obj1 = 0 ; | |
22361 | char *kwnames[] = { | |
22362 | (char *) "self",(char *) "title", NULL | |
22363 | }; | |
22364 | ||
22365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
22366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22368 | { | |
22369 | arg2 = wxString_in_helper(obj1); | |
22370 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 22371 | temp2 = true; |
d55e5bfc RD |
22372 | } |
22373 | { | |
22374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22375 | (arg1)->SetTitle((wxString const &)*arg2); | |
22376 | ||
22377 | wxPyEndAllowThreads(__tstate); | |
22378 | if (PyErr_Occurred()) SWIG_fail; | |
22379 | } | |
22380 | Py_INCREF(Py_None); resultobj = Py_None; | |
22381 | { | |
22382 | if (temp2) | |
22383 | delete arg2; | |
22384 | } | |
22385 | return resultobj; | |
22386 | fail: | |
22387 | { | |
22388 | if (temp2) | |
22389 | delete arg2; | |
22390 | } | |
22391 | return NULL; | |
22392 | } | |
22393 | ||
22394 | ||
c370783e | 22395 | static PyObject *_wrap_Window_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22396 | PyObject *resultobj; |
22397 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22398 | wxString result; | |
22399 | PyObject * obj0 = 0 ; | |
22400 | char *kwnames[] = { | |
22401 | (char *) "self", NULL | |
22402 | }; | |
22403 | ||
22404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
22405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22407 | { | |
22408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22409 | result = ((wxWindow const *)arg1)->GetTitle(); | |
22410 | ||
22411 | wxPyEndAllowThreads(__tstate); | |
22412 | if (PyErr_Occurred()) SWIG_fail; | |
22413 | } | |
22414 | { | |
22415 | #if wxUSE_UNICODE | |
22416 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22417 | #else | |
22418 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22419 | #endif | |
22420 | } | |
22421 | return resultobj; | |
22422 | fail: | |
22423 | return NULL; | |
22424 | } | |
22425 | ||
22426 | ||
c370783e | 22427 | static PyObject *_wrap_Window_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22428 | PyObject *resultobj; |
22429 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22430 | wxString *arg2 = 0 ; | |
b411df4a | 22431 | bool temp2 = false ; |
d55e5bfc RD |
22432 | PyObject * obj0 = 0 ; |
22433 | PyObject * obj1 = 0 ; | |
22434 | char *kwnames[] = { | |
22435 | (char *) "self",(char *) "label", NULL | |
22436 | }; | |
22437 | ||
22438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
22439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22441 | { | |
22442 | arg2 = wxString_in_helper(obj1); | |
22443 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 22444 | temp2 = true; |
d55e5bfc RD |
22445 | } |
22446 | { | |
22447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22448 | (arg1)->SetLabel((wxString const &)*arg2); | |
22449 | ||
22450 | wxPyEndAllowThreads(__tstate); | |
22451 | if (PyErr_Occurred()) SWIG_fail; | |
22452 | } | |
22453 | Py_INCREF(Py_None); resultobj = Py_None; | |
22454 | { | |
22455 | if (temp2) | |
22456 | delete arg2; | |
22457 | } | |
22458 | return resultobj; | |
22459 | fail: | |
22460 | { | |
22461 | if (temp2) | |
22462 | delete arg2; | |
22463 | } | |
22464 | return NULL; | |
22465 | } | |
22466 | ||
22467 | ||
c370783e | 22468 | static PyObject *_wrap_Window_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22469 | PyObject *resultobj; |
22470 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22471 | wxString result; | |
22472 | PyObject * obj0 = 0 ; | |
22473 | char *kwnames[] = { | |
22474 | (char *) "self", NULL | |
22475 | }; | |
22476 | ||
22477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
22478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22480 | { | |
22481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22482 | result = ((wxWindow const *)arg1)->GetLabel(); | |
22483 | ||
22484 | wxPyEndAllowThreads(__tstate); | |
22485 | if (PyErr_Occurred()) SWIG_fail; | |
22486 | } | |
22487 | { | |
22488 | #if wxUSE_UNICODE | |
22489 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22490 | #else | |
22491 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22492 | #endif | |
22493 | } | |
22494 | return resultobj; | |
22495 | fail: | |
22496 | return NULL; | |
22497 | } | |
22498 | ||
22499 | ||
c370783e | 22500 | static PyObject *_wrap_Window_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22501 | PyObject *resultobj; |
22502 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22503 | wxString *arg2 = 0 ; | |
b411df4a | 22504 | bool temp2 = false ; |
d55e5bfc RD |
22505 | PyObject * obj0 = 0 ; |
22506 | PyObject * obj1 = 0 ; | |
22507 | char *kwnames[] = { | |
22508 | (char *) "self",(char *) "name", NULL | |
22509 | }; | |
22510 | ||
22511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
22512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22514 | { | |
22515 | arg2 = wxString_in_helper(obj1); | |
22516 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 22517 | temp2 = true; |
d55e5bfc RD |
22518 | } |
22519 | { | |
22520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22521 | (arg1)->SetName((wxString const &)*arg2); | |
22522 | ||
22523 | wxPyEndAllowThreads(__tstate); | |
22524 | if (PyErr_Occurred()) SWIG_fail; | |
22525 | } | |
22526 | Py_INCREF(Py_None); resultobj = Py_None; | |
22527 | { | |
22528 | if (temp2) | |
22529 | delete arg2; | |
22530 | } | |
22531 | return resultobj; | |
22532 | fail: | |
22533 | { | |
22534 | if (temp2) | |
22535 | delete arg2; | |
22536 | } | |
22537 | return NULL; | |
22538 | } | |
22539 | ||
22540 | ||
c370783e | 22541 | static PyObject *_wrap_Window_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22542 | PyObject *resultobj; |
22543 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22544 | wxString result; | |
22545 | PyObject * obj0 = 0 ; | |
22546 | char *kwnames[] = { | |
22547 | (char *) "self", NULL | |
22548 | }; | |
22549 | ||
22550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
22551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22553 | { | |
22554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22555 | result = ((wxWindow const *)arg1)->GetName(); | |
22556 | ||
22557 | wxPyEndAllowThreads(__tstate); | |
22558 | if (PyErr_Occurred()) SWIG_fail; | |
22559 | } | |
22560 | { | |
22561 | #if wxUSE_UNICODE | |
22562 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22563 | #else | |
22564 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22565 | #endif | |
22566 | } | |
22567 | return resultobj; | |
22568 | fail: | |
22569 | return NULL; | |
22570 | } | |
22571 | ||
22572 | ||
c370783e | 22573 | static PyObject *_wrap_Window_SetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22574 | PyObject *resultobj; |
22575 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22576 | int arg2 ; | |
22577 | PyObject * obj0 = 0 ; | |
22578 | PyObject * obj1 = 0 ; | |
22579 | char *kwnames[] = { | |
22580 | (char *) "self",(char *) "variant", NULL | |
22581 | }; | |
22582 | ||
22583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail; | |
22584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22586 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22587 | if (PyErr_Occurred()) SWIG_fail; |
22588 | { | |
22589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22590 | (arg1)->SetWindowVariant((wxWindowVariant )arg2); | |
22591 | ||
22592 | wxPyEndAllowThreads(__tstate); | |
22593 | if (PyErr_Occurred()) SWIG_fail; | |
22594 | } | |
22595 | Py_INCREF(Py_None); resultobj = Py_None; | |
22596 | return resultobj; | |
22597 | fail: | |
22598 | return NULL; | |
22599 | } | |
22600 | ||
22601 | ||
c370783e | 22602 | static PyObject *_wrap_Window_GetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22603 | PyObject *resultobj; |
22604 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22605 | int result; | |
22606 | PyObject * obj0 = 0 ; | |
22607 | char *kwnames[] = { | |
22608 | (char *) "self", NULL | |
22609 | }; | |
22610 | ||
22611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail; | |
22612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22614 | { | |
22615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22616 | result = (int)((wxWindow const *)arg1)->GetWindowVariant(); | |
22617 | ||
22618 | wxPyEndAllowThreads(__tstate); | |
22619 | if (PyErr_Occurred()) SWIG_fail; | |
22620 | } | |
c370783e | 22621 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22622 | return resultobj; |
22623 | fail: | |
22624 | return NULL; | |
22625 | } | |
22626 | ||
22627 | ||
c370783e | 22628 | static PyObject *_wrap_Window_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22629 | PyObject *resultobj; |
22630 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22631 | int arg2 ; | |
22632 | PyObject * obj0 = 0 ; | |
22633 | PyObject * obj1 = 0 ; | |
22634 | char *kwnames[] = { | |
22635 | (char *) "self",(char *) "winid", NULL | |
22636 | }; | |
22637 | ||
22638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; | |
22639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22641 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22642 | if (PyErr_Occurred()) SWIG_fail; |
22643 | { | |
22644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22645 | (arg1)->SetId(arg2); | |
22646 | ||
22647 | wxPyEndAllowThreads(__tstate); | |
22648 | if (PyErr_Occurred()) SWIG_fail; | |
22649 | } | |
22650 | Py_INCREF(Py_None); resultobj = Py_None; | |
22651 | return resultobj; | |
22652 | fail: | |
22653 | return NULL; | |
22654 | } | |
22655 | ||
22656 | ||
c370783e | 22657 | static PyObject *_wrap_Window_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22658 | PyObject *resultobj; |
22659 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22660 | int result; | |
22661 | PyObject * obj0 = 0 ; | |
22662 | char *kwnames[] = { | |
22663 | (char *) "self", NULL | |
22664 | }; | |
22665 | ||
22666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
22667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22669 | { | |
22670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22671 | result = (int)((wxWindow const *)arg1)->GetId(); | |
22672 | ||
22673 | wxPyEndAllowThreads(__tstate); | |
22674 | if (PyErr_Occurred()) SWIG_fail; | |
22675 | } | |
c370783e | 22676 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22677 | return resultobj; |
22678 | fail: | |
22679 | return NULL; | |
22680 | } | |
22681 | ||
22682 | ||
c370783e | 22683 | static PyObject *_wrap_Window_NewControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22684 | PyObject *resultobj; |
22685 | int result; | |
22686 | char *kwnames[] = { | |
22687 | NULL | |
22688 | }; | |
22689 | ||
22690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
22691 | { | |
22692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22693 | result = (int)wxWindow::NewControlId(); | |
22694 | ||
22695 | wxPyEndAllowThreads(__tstate); | |
22696 | if (PyErr_Occurred()) SWIG_fail; | |
22697 | } | |
c370783e | 22698 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22699 | return resultobj; |
22700 | fail: | |
22701 | return NULL; | |
22702 | } | |
22703 | ||
22704 | ||
c370783e | 22705 | static PyObject *_wrap_Window_NextControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22706 | PyObject *resultobj; |
22707 | int arg1 ; | |
22708 | int result; | |
22709 | PyObject * obj0 = 0 ; | |
22710 | char *kwnames[] = { | |
22711 | (char *) "winid", NULL | |
22712 | }; | |
22713 | ||
22714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; | |
c370783e | 22715 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
22716 | if (PyErr_Occurred()) SWIG_fail; |
22717 | { | |
22718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22719 | result = (int)wxWindow::NextControlId(arg1); | |
22720 | ||
22721 | wxPyEndAllowThreads(__tstate); | |
22722 | if (PyErr_Occurred()) SWIG_fail; | |
22723 | } | |
c370783e | 22724 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22725 | return resultobj; |
22726 | fail: | |
22727 | return NULL; | |
22728 | } | |
22729 | ||
22730 | ||
c370783e | 22731 | static PyObject *_wrap_Window_PrevControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22732 | PyObject *resultobj; |
22733 | int arg1 ; | |
22734 | int result; | |
22735 | PyObject * obj0 = 0 ; | |
22736 | char *kwnames[] = { | |
22737 | (char *) "winid", NULL | |
22738 | }; | |
22739 | ||
22740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; | |
c370783e | 22741 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
22742 | if (PyErr_Occurred()) SWIG_fail; |
22743 | { | |
22744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22745 | result = (int)wxWindow::PrevControlId(arg1); | |
22746 | ||
22747 | wxPyEndAllowThreads(__tstate); | |
22748 | if (PyErr_Occurred()) SWIG_fail; | |
22749 | } | |
c370783e | 22750 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22751 | return resultobj; |
22752 | fail: | |
22753 | return NULL; | |
22754 | } | |
22755 | ||
22756 | ||
c370783e | 22757 | static PyObject *_wrap_Window_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22758 | PyObject *resultobj; |
22759 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22760 | wxSize *arg2 = 0 ; | |
22761 | wxSize temp2 ; | |
22762 | PyObject * obj0 = 0 ; | |
22763 | PyObject * obj1 = 0 ; | |
22764 | char *kwnames[] = { | |
22765 | (char *) "self",(char *) "size", NULL | |
22766 | }; | |
22767 | ||
22768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
22769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22771 | { | |
22772 | arg2 = &temp2; | |
22773 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
22774 | } | |
22775 | { | |
22776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22777 | (arg1)->SetSize((wxSize const &)*arg2); | |
22778 | ||
22779 | wxPyEndAllowThreads(__tstate); | |
22780 | if (PyErr_Occurred()) SWIG_fail; | |
22781 | } | |
22782 | Py_INCREF(Py_None); resultobj = Py_None; | |
22783 | return resultobj; | |
22784 | fail: | |
22785 | return NULL; | |
22786 | } | |
22787 | ||
22788 | ||
c370783e | 22789 | static PyObject *_wrap_Window_SetDimensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22790 | PyObject *resultobj; |
22791 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22792 | int arg2 ; | |
22793 | int arg3 ; | |
22794 | int arg4 ; | |
22795 | int arg5 ; | |
22796 | int arg6 = (int) wxSIZE_AUTO ; | |
22797 | PyObject * obj0 = 0 ; | |
22798 | PyObject * obj1 = 0 ; | |
22799 | PyObject * obj2 = 0 ; | |
22800 | PyObject * obj3 = 0 ; | |
22801 | PyObject * obj4 = 0 ; | |
22802 | PyObject * obj5 = 0 ; | |
22803 | char *kwnames[] = { | |
22804 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
22805 | }; | |
22806 | ||
22807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22810 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 22811 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22812 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 22813 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22814 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 22815 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22816 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
22817 | if (PyErr_Occurred()) SWIG_fail; |
22818 | if (obj5) { | |
c370783e | 22819 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
22820 | if (PyErr_Occurred()) SWIG_fail; |
22821 | } | |
22822 | { | |
22823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22824 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
22825 | ||
22826 | wxPyEndAllowThreads(__tstate); | |
22827 | if (PyErr_Occurred()) SWIG_fail; | |
22828 | } | |
22829 | Py_INCREF(Py_None); resultobj = Py_None; | |
22830 | return resultobj; | |
22831 | fail: | |
22832 | return NULL; | |
22833 | } | |
22834 | ||
22835 | ||
c370783e | 22836 | static PyObject *_wrap_Window_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22837 | PyObject *resultobj; |
22838 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22839 | wxRect *arg2 = 0 ; | |
22840 | int arg3 = (int) wxSIZE_AUTO ; | |
22841 | wxRect temp2 ; | |
22842 | PyObject * obj0 = 0 ; | |
22843 | PyObject * obj1 = 0 ; | |
22844 | PyObject * obj2 = 0 ; | |
22845 | char *kwnames[] = { | |
22846 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
22847 | }; | |
22848 | ||
22849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22852 | { | |
22853 | arg2 = &temp2; | |
22854 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
22855 | } | |
22856 | if (obj2) { | |
c370783e | 22857 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22858 | if (PyErr_Occurred()) SWIG_fail; |
22859 | } | |
22860 | { | |
22861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22862 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
22863 | ||
22864 | wxPyEndAllowThreads(__tstate); | |
22865 | if (PyErr_Occurred()) SWIG_fail; | |
22866 | } | |
22867 | Py_INCREF(Py_None); resultobj = Py_None; | |
22868 | return resultobj; | |
22869 | fail: | |
22870 | return NULL; | |
22871 | } | |
22872 | ||
22873 | ||
c370783e | 22874 | static PyObject *_wrap_Window_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22875 | PyObject *resultobj; |
22876 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22877 | int arg2 ; | |
22878 | int arg3 ; | |
22879 | PyObject * obj0 = 0 ; | |
22880 | PyObject * obj1 = 0 ; | |
22881 | PyObject * obj2 = 0 ; | |
22882 | char *kwnames[] = { | |
22883 | (char *) "self",(char *) "width",(char *) "height", NULL | |
22884 | }; | |
22885 | ||
22886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22889 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 22890 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22891 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22892 | if (PyErr_Occurred()) SWIG_fail; |
22893 | { | |
22894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22895 | (arg1)->SetSize(arg2,arg3); | |
22896 | ||
22897 | wxPyEndAllowThreads(__tstate); | |
22898 | if (PyErr_Occurred()) SWIG_fail; | |
22899 | } | |
22900 | Py_INCREF(Py_None); resultobj = Py_None; | |
22901 | return resultobj; | |
22902 | fail: | |
22903 | return NULL; | |
22904 | } | |
22905 | ||
22906 | ||
c370783e | 22907 | static PyObject *_wrap_Window_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22908 | PyObject *resultobj; |
22909 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22910 | wxPoint *arg2 = 0 ; | |
22911 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
22912 | wxPoint temp2 ; | |
22913 | PyObject * obj0 = 0 ; | |
22914 | PyObject * obj1 = 0 ; | |
22915 | PyObject * obj2 = 0 ; | |
22916 | char *kwnames[] = { | |
22917 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
22918 | }; | |
22919 | ||
22920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22923 | { | |
22924 | arg2 = &temp2; | |
22925 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22926 | } | |
22927 | if (obj2) { | |
c370783e | 22928 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22929 | if (PyErr_Occurred()) SWIG_fail; |
22930 | } | |
22931 | { | |
22932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22933 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
22934 | ||
22935 | wxPyEndAllowThreads(__tstate); | |
22936 | if (PyErr_Occurred()) SWIG_fail; | |
22937 | } | |
22938 | Py_INCREF(Py_None); resultobj = Py_None; | |
22939 | return resultobj; | |
22940 | fail: | |
22941 | return NULL; | |
22942 | } | |
22943 | ||
22944 | ||
c370783e | 22945 | static PyObject *_wrap_Window_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22946 | PyObject *resultobj; |
22947 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22948 | int arg2 ; | |
22949 | int arg3 ; | |
22950 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
22951 | PyObject * obj0 = 0 ; | |
22952 | PyObject * obj1 = 0 ; | |
22953 | PyObject * obj2 = 0 ; | |
22954 | PyObject * obj3 = 0 ; | |
22955 | char *kwnames[] = { | |
22956 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
22957 | }; | |
22958 | ||
22959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22962 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 22963 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 22964 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22965 | if (PyErr_Occurred()) SWIG_fail; |
22966 | if (obj3) { | |
c370783e | 22967 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
22968 | if (PyErr_Occurred()) SWIG_fail; |
22969 | } | |
22970 | { | |
22971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22972 | (arg1)->Move(arg2,arg3,arg4); | |
22973 | ||
22974 | wxPyEndAllowThreads(__tstate); | |
22975 | if (PyErr_Occurred()) SWIG_fail; | |
22976 | } | |
22977 | Py_INCREF(Py_None); resultobj = Py_None; | |
22978 | return resultobj; | |
22979 | fail: | |
22980 | return NULL; | |
22981 | } | |
22982 | ||
22983 | ||
c370783e | 22984 | static PyObject *_wrap_Window_SetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) { |
f8167d6e RD |
22985 | PyObject *resultobj; |
22986 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22987 | wxSize const &arg2_defvalue = wxDefaultSize ; | |
22988 | wxSize *arg2 = (wxSize *) &arg2_defvalue ; | |
22989 | wxSize temp2 ; | |
22990 | PyObject * obj0 = 0 ; | |
22991 | PyObject * obj1 = 0 ; | |
22992 | char *kwnames[] = { | |
22993 | (char *) "self",(char *) "size", NULL | |
22994 | }; | |
22995 | ||
22996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_SetBestFittingSize",kwnames,&obj0,&obj1)) goto fail; | |
22997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22999 | if (obj1) { | |
23000 | { | |
23001 | arg2 = &temp2; | |
23002 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23003 | } | |
23004 | } | |
23005 | { | |
23006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23007 | (arg1)->SetBestFittingSize((wxSize const &)*arg2); | |
23008 | ||
23009 | wxPyEndAllowThreads(__tstate); | |
23010 | if (PyErr_Occurred()) SWIG_fail; | |
23011 | } | |
23012 | Py_INCREF(Py_None); resultobj = Py_None; | |
23013 | return resultobj; | |
23014 | fail: | |
23015 | return NULL; | |
23016 | } | |
23017 | ||
23018 | ||
c370783e | 23019 | static PyObject *_wrap_Window_Raise(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23020 | PyObject *resultobj; |
23021 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23022 | PyObject * obj0 = 0 ; | |
23023 | char *kwnames[] = { | |
23024 | (char *) "self", NULL | |
23025 | }; | |
23026 | ||
23027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
23028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23030 | { | |
23031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23032 | (arg1)->Raise(); | |
23033 | ||
23034 | wxPyEndAllowThreads(__tstate); | |
23035 | if (PyErr_Occurred()) SWIG_fail; | |
23036 | } | |
23037 | Py_INCREF(Py_None); resultobj = Py_None; | |
23038 | return resultobj; | |
23039 | fail: | |
23040 | return NULL; | |
23041 | } | |
23042 | ||
23043 | ||
c370783e | 23044 | static PyObject *_wrap_Window_Lower(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23045 | PyObject *resultobj; |
23046 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23047 | PyObject * obj0 = 0 ; | |
23048 | char *kwnames[] = { | |
23049 | (char *) "self", NULL | |
23050 | }; | |
23051 | ||
23052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
23053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23055 | { | |
23056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23057 | (arg1)->Lower(); | |
23058 | ||
23059 | wxPyEndAllowThreads(__tstate); | |
23060 | if (PyErr_Occurred()) SWIG_fail; | |
23061 | } | |
23062 | Py_INCREF(Py_None); resultobj = Py_None; | |
23063 | return resultobj; | |
23064 | fail: | |
23065 | return NULL; | |
23066 | } | |
23067 | ||
23068 | ||
c370783e | 23069 | static PyObject *_wrap_Window_SetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23070 | PyObject *resultobj; |
23071 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23072 | wxSize *arg2 = 0 ; | |
23073 | wxSize temp2 ; | |
23074 | PyObject * obj0 = 0 ; | |
23075 | PyObject * obj1 = 0 ; | |
23076 | char *kwnames[] = { | |
23077 | (char *) "self",(char *) "size", NULL | |
23078 | }; | |
23079 | ||
23080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
23081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23083 | { | |
23084 | arg2 = &temp2; | |
23085 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23086 | } | |
23087 | { | |
23088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23089 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
23090 | ||
23091 | wxPyEndAllowThreads(__tstate); | |
23092 | if (PyErr_Occurred()) SWIG_fail; | |
23093 | } | |
23094 | Py_INCREF(Py_None); resultobj = Py_None; | |
23095 | return resultobj; | |
23096 | fail: | |
23097 | return NULL; | |
23098 | } | |
23099 | ||
23100 | ||
c370783e | 23101 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23102 | PyObject *resultobj; |
23103 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23104 | int arg2 ; | |
23105 | int arg3 ; | |
23106 | PyObject * obj0 = 0 ; | |
23107 | PyObject * obj1 = 0 ; | |
23108 | PyObject * obj2 = 0 ; | |
23109 | char *kwnames[] = { | |
23110 | (char *) "self",(char *) "width",(char *) "height", NULL | |
23111 | }; | |
23112 | ||
23113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23116 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 23117 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23118 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23119 | if (PyErr_Occurred()) SWIG_fail; |
23120 | { | |
23121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23122 | (arg1)->SetClientSize(arg2,arg3); | |
23123 | ||
23124 | wxPyEndAllowThreads(__tstate); | |
23125 | if (PyErr_Occurred()) SWIG_fail; | |
23126 | } | |
23127 | Py_INCREF(Py_None); resultobj = Py_None; | |
23128 | return resultobj; | |
23129 | fail: | |
23130 | return NULL; | |
23131 | } | |
23132 | ||
23133 | ||
c370783e | 23134 | static PyObject *_wrap_Window_SetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23135 | PyObject *resultobj; |
23136 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23137 | wxRect *arg2 = 0 ; | |
23138 | wxRect temp2 ; | |
23139 | PyObject * obj0 = 0 ; | |
23140 | PyObject * obj1 = 0 ; | |
23141 | char *kwnames[] = { | |
23142 | (char *) "self",(char *) "rect", NULL | |
23143 | }; | |
23144 | ||
23145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
23146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23148 | { | |
23149 | arg2 = &temp2; | |
23150 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
23151 | } | |
23152 | { | |
23153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23154 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
23155 | ||
23156 | wxPyEndAllowThreads(__tstate); | |
23157 | if (PyErr_Occurred()) SWIG_fail; | |
23158 | } | |
23159 | Py_INCREF(Py_None); resultobj = Py_None; | |
23160 | return resultobj; | |
23161 | fail: | |
23162 | return NULL; | |
23163 | } | |
23164 | ||
23165 | ||
c370783e | 23166 | static PyObject *_wrap_Window_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23167 | PyObject *resultobj; |
23168 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23169 | wxPoint result; | |
23170 | PyObject * obj0 = 0 ; | |
23171 | char *kwnames[] = { | |
23172 | (char *) "self", NULL | |
23173 | }; | |
23174 | ||
23175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
23176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23178 | { | |
23179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23180 | result = (arg1)->GetPosition(); | |
23181 | ||
23182 | wxPyEndAllowThreads(__tstate); | |
23183 | if (PyErr_Occurred()) SWIG_fail; | |
23184 | } | |
23185 | { | |
23186 | wxPoint * resultptr; | |
23187 | resultptr = new wxPoint((wxPoint &) result); | |
23188 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
23189 | } | |
23190 | return resultobj; | |
23191 | fail: | |
23192 | return NULL; | |
23193 | } | |
23194 | ||
23195 | ||
c370783e | 23196 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23197 | PyObject *resultobj; |
23198 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23199 | int *arg2 = (int *) 0 ; | |
23200 | int *arg3 = (int *) 0 ; | |
23201 | int temp2 ; | |
c370783e | 23202 | int res2 = 0 ; |
d55e5bfc | 23203 | int temp3 ; |
c370783e | 23204 | int res3 = 0 ; |
d55e5bfc RD |
23205 | PyObject * obj0 = 0 ; |
23206 | char *kwnames[] = { | |
23207 | (char *) "self", NULL | |
23208 | }; | |
23209 | ||
c370783e RD |
23210 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23211 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; |
23213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23215 | { | |
23216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23217 | (arg1)->GetPosition(arg2,arg3); | |
23218 | ||
23219 | wxPyEndAllowThreads(__tstate); | |
23220 | if (PyErr_Occurred()) SWIG_fail; | |
23221 | } | |
23222 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
23223 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23224 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23225 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23226 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23227 | return resultobj; |
23228 | fail: | |
23229 | return NULL; | |
23230 | } | |
23231 | ||
23232 | ||
c370783e | 23233 | static PyObject *_wrap_Window_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23234 | PyObject *resultobj; |
23235 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23236 | wxSize result; | |
23237 | PyObject * obj0 = 0 ; | |
23238 | char *kwnames[] = { | |
23239 | (char *) "self", NULL | |
23240 | }; | |
23241 | ||
23242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
23243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23245 | { | |
23246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23247 | result = ((wxWindow const *)arg1)->GetSize(); | |
23248 | ||
23249 | wxPyEndAllowThreads(__tstate); | |
23250 | if (PyErr_Occurred()) SWIG_fail; | |
23251 | } | |
23252 | { | |
23253 | wxSize * resultptr; | |
23254 | resultptr = new wxSize((wxSize &) result); | |
23255 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23256 | } | |
23257 | return resultobj; | |
23258 | fail: | |
23259 | return NULL; | |
23260 | } | |
23261 | ||
23262 | ||
c370783e | 23263 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23264 | PyObject *resultobj; |
23265 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23266 | int *arg2 = (int *) 0 ; | |
23267 | int *arg3 = (int *) 0 ; | |
23268 | int temp2 ; | |
c370783e | 23269 | int res2 = 0 ; |
d55e5bfc | 23270 | int temp3 ; |
c370783e | 23271 | int res3 = 0 ; |
d55e5bfc RD |
23272 | PyObject * obj0 = 0 ; |
23273 | char *kwnames[] = { | |
23274 | (char *) "self", NULL | |
23275 | }; | |
23276 | ||
c370783e RD |
23277 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23278 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; |
23280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23282 | { | |
23283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23284 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
23285 | ||
23286 | wxPyEndAllowThreads(__tstate); | |
23287 | if (PyErr_Occurred()) SWIG_fail; | |
23288 | } | |
23289 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
23290 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23291 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23292 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23293 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23294 | return resultobj; |
23295 | fail: | |
23296 | return NULL; | |
23297 | } | |
23298 | ||
23299 | ||
c370783e | 23300 | static PyObject *_wrap_Window_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23301 | PyObject *resultobj; |
23302 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23303 | wxRect result; | |
23304 | PyObject * obj0 = 0 ; | |
23305 | char *kwnames[] = { | |
23306 | (char *) "self", NULL | |
23307 | }; | |
23308 | ||
23309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
23310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23312 | { | |
23313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23314 | result = ((wxWindow const *)arg1)->GetRect(); | |
23315 | ||
23316 | wxPyEndAllowThreads(__tstate); | |
23317 | if (PyErr_Occurred()) SWIG_fail; | |
23318 | } | |
23319 | { | |
23320 | wxRect * resultptr; | |
23321 | resultptr = new wxRect((wxRect &) result); | |
23322 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
23323 | } | |
23324 | return resultobj; | |
23325 | fail: | |
23326 | return NULL; | |
23327 | } | |
23328 | ||
23329 | ||
c370783e | 23330 | static PyObject *_wrap_Window_GetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23331 | PyObject *resultobj; |
23332 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23333 | wxSize result; | |
23334 | PyObject * obj0 = 0 ; | |
23335 | char *kwnames[] = { | |
23336 | (char *) "self", NULL | |
23337 | }; | |
23338 | ||
23339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
23340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23342 | { | |
23343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23344 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
23345 | ||
23346 | wxPyEndAllowThreads(__tstate); | |
23347 | if (PyErr_Occurred()) SWIG_fail; | |
23348 | } | |
23349 | { | |
23350 | wxSize * resultptr; | |
23351 | resultptr = new wxSize((wxSize &) result); | |
23352 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23353 | } | |
23354 | return resultobj; | |
23355 | fail: | |
23356 | return NULL; | |
23357 | } | |
23358 | ||
23359 | ||
c370783e | 23360 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23361 | PyObject *resultobj; |
23362 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23363 | int *arg2 = (int *) 0 ; | |
23364 | int *arg3 = (int *) 0 ; | |
23365 | int temp2 ; | |
c370783e | 23366 | int res2 = 0 ; |
d55e5bfc | 23367 | int temp3 ; |
c370783e | 23368 | int res3 = 0 ; |
d55e5bfc RD |
23369 | PyObject * obj0 = 0 ; |
23370 | char *kwnames[] = { | |
23371 | (char *) "self", NULL | |
23372 | }; | |
23373 | ||
c370783e RD |
23374 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23375 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; |
23377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23379 | { | |
23380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23381 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
23382 | ||
23383 | wxPyEndAllowThreads(__tstate); | |
23384 | if (PyErr_Occurred()) SWIG_fail; | |
23385 | } | |
23386 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
23387 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23388 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23389 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23390 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23391 | return resultobj; |
23392 | fail: | |
23393 | return NULL; | |
23394 | } | |
23395 | ||
23396 | ||
c370783e | 23397 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23398 | PyObject *resultobj; |
23399 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23400 | wxPoint result; | |
23401 | PyObject * obj0 = 0 ; | |
23402 | char *kwnames[] = { | |
23403 | (char *) "self", NULL | |
23404 | }; | |
23405 | ||
23406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
23407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23409 | { | |
23410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23411 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
23412 | ||
23413 | wxPyEndAllowThreads(__tstate); | |
23414 | if (PyErr_Occurred()) SWIG_fail; | |
23415 | } | |
23416 | { | |
23417 | wxPoint * resultptr; | |
23418 | resultptr = new wxPoint((wxPoint &) result); | |
23419 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
23420 | } | |
23421 | return resultobj; | |
23422 | fail: | |
23423 | return NULL; | |
23424 | } | |
23425 | ||
23426 | ||
c370783e | 23427 | static PyObject *_wrap_Window_GetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23428 | PyObject *resultobj; |
23429 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23430 | wxRect result; | |
23431 | PyObject * obj0 = 0 ; | |
23432 | char *kwnames[] = { | |
23433 | (char *) "self", NULL | |
23434 | }; | |
23435 | ||
23436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
23437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23439 | { | |
23440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23441 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
23442 | ||
23443 | wxPyEndAllowThreads(__tstate); | |
23444 | if (PyErr_Occurred()) SWIG_fail; | |
23445 | } | |
23446 | { | |
23447 | wxRect * resultptr; | |
23448 | resultptr = new wxRect((wxRect &) result); | |
23449 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
23450 | } | |
23451 | return resultobj; | |
23452 | fail: | |
23453 | return NULL; | |
23454 | } | |
23455 | ||
23456 | ||
c370783e | 23457 | static PyObject *_wrap_Window_GetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23458 | PyObject *resultobj; |
23459 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23460 | wxSize result; | |
23461 | PyObject * obj0 = 0 ; | |
23462 | char *kwnames[] = { | |
23463 | (char *) "self", NULL | |
23464 | }; | |
23465 | ||
23466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
23467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23469 | { | |
23470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23471 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
23472 | ||
23473 | wxPyEndAllowThreads(__tstate); | |
23474 | if (PyErr_Occurred()) SWIG_fail; | |
23475 | } | |
23476 | { | |
23477 | wxSize * resultptr; | |
23478 | resultptr = new wxSize((wxSize &) result); | |
23479 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23480 | } | |
23481 | return resultobj; | |
23482 | fail: | |
23483 | return NULL; | |
23484 | } | |
23485 | ||
23486 | ||
c370783e | 23487 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23488 | PyObject *resultobj; |
23489 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23490 | int *arg2 = (int *) 0 ; | |
23491 | int *arg3 = (int *) 0 ; | |
23492 | int temp2 ; | |
c370783e | 23493 | int res2 = 0 ; |
d55e5bfc | 23494 | int temp3 ; |
c370783e | 23495 | int res3 = 0 ; |
d55e5bfc RD |
23496 | PyObject * obj0 = 0 ; |
23497 | char *kwnames[] = { | |
23498 | (char *) "self", NULL | |
23499 | }; | |
23500 | ||
c370783e RD |
23501 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23502 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; |
23504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23506 | { | |
23507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23508 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
23509 | ||
23510 | wxPyEndAllowThreads(__tstate); | |
23511 | if (PyErr_Occurred()) SWIG_fail; | |
23512 | } | |
23513 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
23514 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23515 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23516 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23517 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23518 | return resultobj; |
23519 | fail: | |
23520 | return NULL; | |
23521 | } | |
23522 | ||
23523 | ||
c370783e | 23524 | static PyObject *_wrap_Window_InvalidateBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
23525 | PyObject *resultobj; |
23526 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23527 | PyObject * obj0 = 0 ; | |
23528 | char *kwnames[] = { | |
23529 | (char *) "self", NULL | |
23530 | }; | |
23531 | ||
23532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InvalidateBestSize",kwnames,&obj0)) goto fail; | |
23533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23535 | { | |
23536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23537 | (arg1)->InvalidateBestSize(); | |
23538 | ||
23539 | wxPyEndAllowThreads(__tstate); | |
23540 | if (PyErr_Occurred()) SWIG_fail; | |
23541 | } | |
23542 | Py_INCREF(Py_None); resultobj = Py_None; | |
23543 | return resultobj; | |
23544 | fail: | |
23545 | return NULL; | |
23546 | } | |
23547 | ||
23548 | ||
c370783e | 23549 | static PyObject *_wrap_Window_GetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
23550 | PyObject *resultobj; |
23551 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23552 | wxSize result; | |
23553 | PyObject * obj0 = 0 ; | |
23554 | char *kwnames[] = { | |
23555 | (char *) "self", NULL | |
23556 | }; | |
23557 | ||
23558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestFittingSize",kwnames,&obj0)) goto fail; | |
23559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23561 | { | |
23562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23563 | result = ((wxWindow const *)arg1)->GetBestFittingSize(); | |
23564 | ||
23565 | wxPyEndAllowThreads(__tstate); | |
23566 | if (PyErr_Occurred()) SWIG_fail; | |
23567 | } | |
23568 | { | |
23569 | wxSize * resultptr; | |
23570 | resultptr = new wxSize((wxSize &) result); | |
23571 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23572 | } | |
23573 | return resultobj; | |
23574 | fail: | |
23575 | return NULL; | |
23576 | } | |
23577 | ||
23578 | ||
c370783e | 23579 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23580 | PyObject *resultobj; |
23581 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23582 | wxSize result; | |
23583 | PyObject * obj0 = 0 ; | |
23584 | char *kwnames[] = { | |
23585 | (char *) "self", NULL | |
23586 | }; | |
23587 | ||
23588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
23589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23591 | { | |
23592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23593 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
23594 | ||
23595 | wxPyEndAllowThreads(__tstate); | |
23596 | if (PyErr_Occurred()) SWIG_fail; | |
23597 | } | |
23598 | { | |
23599 | wxSize * resultptr; | |
23600 | resultptr = new wxSize((wxSize &) result); | |
23601 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23602 | } | |
23603 | return resultobj; | |
23604 | fail: | |
23605 | return NULL; | |
23606 | } | |
23607 | ||
23608 | ||
c370783e | 23609 | static PyObject *_wrap_Window_Center(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23610 | PyObject *resultobj; |
23611 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23612 | int arg2 = (int) wxBOTH ; | |
23613 | PyObject * obj0 = 0 ; | |
23614 | PyObject * obj1 = 0 ; | |
23615 | char *kwnames[] = { | |
23616 | (char *) "self",(char *) "direction", NULL | |
23617 | }; | |
23618 | ||
23619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; | |
23620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23622 | if (obj1) { | |
c370783e | 23623 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23624 | if (PyErr_Occurred()) SWIG_fail; |
23625 | } | |
23626 | { | |
23627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23628 | (arg1)->Center(arg2); | |
23629 | ||
23630 | wxPyEndAllowThreads(__tstate); | |
23631 | if (PyErr_Occurred()) SWIG_fail; | |
23632 | } | |
23633 | Py_INCREF(Py_None); resultobj = Py_None; | |
23634 | return resultobj; | |
23635 | fail: | |
23636 | return NULL; | |
23637 | } | |
23638 | ||
23639 | ||
c370783e | 23640 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23641 | PyObject *resultobj; |
23642 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23643 | int arg2 = (int) wxBOTH ; | |
23644 | PyObject * obj0 = 0 ; | |
23645 | PyObject * obj1 = 0 ; | |
23646 | char *kwnames[] = { | |
23647 | (char *) "self",(char *) "dir", NULL | |
23648 | }; | |
23649 | ||
23650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; | |
23651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23653 | if (obj1) { | |
c370783e | 23654 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23655 | if (PyErr_Occurred()) SWIG_fail; |
23656 | } | |
23657 | { | |
23658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23659 | (arg1)->CenterOnScreen(arg2); | |
23660 | ||
23661 | wxPyEndAllowThreads(__tstate); | |
23662 | if (PyErr_Occurred()) SWIG_fail; | |
23663 | } | |
23664 | Py_INCREF(Py_None); resultobj = Py_None; | |
23665 | return resultobj; | |
23666 | fail: | |
23667 | return NULL; | |
23668 | } | |
23669 | ||
23670 | ||
c370783e | 23671 | static PyObject *_wrap_Window_CenterOnParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23672 | PyObject *resultobj; |
23673 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23674 | int arg2 = (int) wxBOTH ; | |
23675 | PyObject * obj0 = 0 ; | |
23676 | PyObject * obj1 = 0 ; | |
23677 | char *kwnames[] = { | |
23678 | (char *) "self",(char *) "dir", NULL | |
23679 | }; | |
23680 | ||
23681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; | |
23682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23684 | if (obj1) { | |
c370783e | 23685 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23686 | if (PyErr_Occurred()) SWIG_fail; |
23687 | } | |
23688 | { | |
23689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23690 | (arg1)->CenterOnParent(arg2); | |
23691 | ||
23692 | wxPyEndAllowThreads(__tstate); | |
23693 | if (PyErr_Occurred()) SWIG_fail; | |
23694 | } | |
23695 | Py_INCREF(Py_None); resultobj = Py_None; | |
23696 | return resultobj; | |
23697 | fail: | |
23698 | return NULL; | |
23699 | } | |
23700 | ||
23701 | ||
c370783e | 23702 | static PyObject *_wrap_Window_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23703 | PyObject *resultobj; |
23704 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23705 | PyObject * obj0 = 0 ; | |
23706 | char *kwnames[] = { | |
23707 | (char *) "self", NULL | |
23708 | }; | |
23709 | ||
23710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
23711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23713 | { | |
23714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23715 | (arg1)->Fit(); | |
23716 | ||
23717 | wxPyEndAllowThreads(__tstate); | |
23718 | if (PyErr_Occurred()) SWIG_fail; | |
23719 | } | |
23720 | Py_INCREF(Py_None); resultobj = Py_None; | |
23721 | return resultobj; | |
23722 | fail: | |
23723 | return NULL; | |
23724 | } | |
23725 | ||
23726 | ||
c370783e | 23727 | static PyObject *_wrap_Window_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23728 | PyObject *resultobj; |
23729 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23730 | PyObject * obj0 = 0 ; | |
23731 | char *kwnames[] = { | |
23732 | (char *) "self", NULL | |
23733 | }; | |
23734 | ||
23735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
23736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23738 | { | |
23739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23740 | (arg1)->FitInside(); | |
23741 | ||
23742 | wxPyEndAllowThreads(__tstate); | |
23743 | if (PyErr_Occurred()) SWIG_fail; | |
23744 | } | |
23745 | Py_INCREF(Py_None); resultobj = Py_None; | |
23746 | return resultobj; | |
23747 | fail: | |
23748 | return NULL; | |
23749 | } | |
23750 | ||
23751 | ||
c370783e | 23752 | static PyObject *_wrap_Window_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23753 | PyObject *resultobj; |
23754 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23755 | int arg2 ; | |
23756 | int arg3 ; | |
23757 | int arg4 = (int) -1 ; | |
23758 | int arg5 = (int) -1 ; | |
23759 | int arg6 = (int) -1 ; | |
23760 | int arg7 = (int) -1 ; | |
23761 | PyObject * obj0 = 0 ; | |
23762 | PyObject * obj1 = 0 ; | |
23763 | PyObject * obj2 = 0 ; | |
23764 | PyObject * obj3 = 0 ; | |
23765 | PyObject * obj4 = 0 ; | |
23766 | PyObject * obj5 = 0 ; | |
23767 | PyObject * obj6 = 0 ; | |
03837c5c RD |
23768 | char *kwnames[] = { |
23769 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
23770 | }; | |
d55e5bfc | 23771 | |
03837c5c | 23772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
23773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23775 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 23776 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23777 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23778 | if (PyErr_Occurred()) SWIG_fail; |
23779 | if (obj3) { | |
c370783e | 23780 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
23781 | if (PyErr_Occurred()) SWIG_fail; |
23782 | } | |
23783 | if (obj4) { | |
c370783e | 23784 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
23785 | if (PyErr_Occurred()) SWIG_fail; |
23786 | } | |
23787 | if (obj5) { | |
c370783e | 23788 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
23789 | if (PyErr_Occurred()) SWIG_fail; |
23790 | } | |
23791 | if (obj6) { | |
c370783e | 23792 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
23793 | if (PyErr_Occurred()) SWIG_fail; |
23794 | } | |
23795 | { | |
23796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23797 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
23798 | ||
23799 | wxPyEndAllowThreads(__tstate); | |
23800 | if (PyErr_Occurred()) SWIG_fail; | |
23801 | } | |
23802 | Py_INCREF(Py_None); resultobj = Py_None; | |
23803 | return resultobj; | |
23804 | fail: | |
23805 | return NULL; | |
23806 | } | |
23807 | ||
23808 | ||
c370783e | 23809 | static PyObject *_wrap_Window_SetSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23810 | PyObject *resultobj; |
23811 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
23812 | wxSize *arg2 = 0 ; |
23813 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23814 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
03837c5c RD |
23815 | wxSize const &arg4_defvalue = wxDefaultSize ; |
23816 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
908b74cd RD |
23817 | wxSize temp2 ; |
23818 | wxSize temp3 ; | |
03837c5c | 23819 | wxSize temp4 ; |
d55e5bfc RD |
23820 | PyObject * obj0 = 0 ; |
23821 | PyObject * obj1 = 0 ; | |
23822 | PyObject * obj2 = 0 ; | |
03837c5c RD |
23823 | PyObject * obj3 = 0 ; |
23824 | char *kwnames[] = { | |
23825 | (char *) "self",(char *) "minSize",(char *) "maxSize",(char *) "incSize", NULL | |
23826 | }; | |
d55e5bfc | 23827 | |
03837c5c | 23828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_SetSizeHintsSz",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
23829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
908b74cd RD |
23831 | { |
23832 | arg2 = &temp2; | |
23833 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 23834 | } |
908b74cd RD |
23835 | if (obj2) { |
23836 | { | |
23837 | arg3 = &temp3; | |
23838 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
23839 | } | |
d55e5bfc | 23840 | } |
03837c5c RD |
23841 | if (obj3) { |
23842 | { | |
23843 | arg4 = &temp4; | |
23844 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23845 | } | |
23846 | } | |
d55e5bfc RD |
23847 | { |
23848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03837c5c | 23849 | (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4); |
d55e5bfc RD |
23850 | |
23851 | wxPyEndAllowThreads(__tstate); | |
23852 | if (PyErr_Occurred()) SWIG_fail; | |
23853 | } | |
23854 | Py_INCREF(Py_None); resultobj = Py_None; | |
23855 | return resultobj; | |
23856 | fail: | |
23857 | return NULL; | |
23858 | } | |
23859 | ||
23860 | ||
c370783e | 23861 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23862 | PyObject *resultobj; |
23863 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
23864 | int arg2 ; |
23865 | int arg3 ; | |
23866 | int arg4 = (int) -1 ; | |
23867 | int arg5 = (int) -1 ; | |
d55e5bfc RD |
23868 | PyObject * obj0 = 0 ; |
23869 | PyObject * obj1 = 0 ; | |
23870 | PyObject * obj2 = 0 ; | |
908b74cd RD |
23871 | PyObject * obj3 = 0 ; |
23872 | PyObject * obj4 = 0 ; | |
03837c5c RD |
23873 | char *kwnames[] = { |
23874 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
23875 | }; | |
d55e5bfc | 23876 | |
03837c5c | 23877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
23878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23880 | arg2 = (int)SWIG_As_int(obj1); |
908b74cd | 23881 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23882 | arg3 = (int)SWIG_As_int(obj2); |
908b74cd RD |
23883 | if (PyErr_Occurred()) SWIG_fail; |
23884 | if (obj3) { | |
c370783e | 23885 | arg4 = (int)SWIG_As_int(obj3); |
908b74cd | 23886 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 23887 | } |
908b74cd | 23888 | if (obj4) { |
c370783e | 23889 | arg5 = (int)SWIG_As_int(obj4); |
908b74cd | 23890 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23891 | } |
23892 | { | |
23893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23894 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
23895 | |
23896 | wxPyEndAllowThreads(__tstate); | |
23897 | if (PyErr_Occurred()) SWIG_fail; | |
23898 | } | |
23899 | Py_INCREF(Py_None); resultobj = Py_None; | |
23900 | return resultobj; | |
23901 | fail: | |
23902 | return NULL; | |
23903 | } | |
23904 | ||
23905 | ||
c370783e | 23906 | static PyObject *_wrap_Window_SetVirtualSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) { |
03837c5c RD |
23907 | PyObject *resultobj; |
23908 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23909 | wxSize *arg2 = 0 ; | |
23910 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
23911 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
23912 | wxSize temp2 ; | |
23913 | wxSize temp3 ; | |
23914 | PyObject * obj0 = 0 ; | |
23915 | PyObject * obj1 = 0 ; | |
23916 | PyObject * obj2 = 0 ; | |
23917 | char *kwnames[] = { | |
23918 | (char *) "self",(char *) "minSize",(char *) "maxSize", NULL | |
23919 | }; | |
d55e5bfc | 23920 | |
03837c5c RD |
23921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetVirtualSizeHintsSz",kwnames,&obj0,&obj1,&obj2)) goto fail; |
23922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23924 | { | |
23925 | arg2 = &temp2; | |
23926 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 23927 | } |
03837c5c | 23928 | if (obj2) { |
d55e5bfc | 23929 | { |
03837c5c RD |
23930 | arg3 = &temp3; |
23931 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
23932 | } |
23933 | } | |
03837c5c RD |
23934 | { |
23935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23936 | (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3); | |
23937 | ||
23938 | wxPyEndAllowThreads(__tstate); | |
23939 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 23940 | } |
03837c5c RD |
23941 | Py_INCREF(Py_None); resultobj = Py_None; |
23942 | return resultobj; | |
23943 | fail: | |
d55e5bfc RD |
23944 | return NULL; |
23945 | } | |
23946 | ||
23947 | ||
c370783e | 23948 | static PyObject *_wrap_Window_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23949 | PyObject *resultobj; |
23950 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 23951 | wxSize result; |
d55e5bfc RD |
23952 | PyObject * obj0 = 0 ; |
23953 | char *kwnames[] = { | |
23954 | (char *) "self", NULL | |
23955 | }; | |
23956 | ||
908b74cd | 23957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
23958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23960 | { | |
23961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23962 | result = ((wxWindow const *)arg1)->GetMaxSize(); |
d55e5bfc RD |
23963 | |
23964 | wxPyEndAllowThreads(__tstate); | |
23965 | if (PyErr_Occurred()) SWIG_fail; | |
23966 | } | |
908b74cd RD |
23967 | { |
23968 | wxSize * resultptr; | |
23969 | resultptr = new wxSize((wxSize &) result); | |
23970 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23971 | } | |
d55e5bfc RD |
23972 | return resultobj; |
23973 | fail: | |
23974 | return NULL; | |
23975 | } | |
23976 | ||
23977 | ||
c370783e | 23978 | static PyObject *_wrap_Window_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23979 | PyObject *resultobj; |
23980 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 23981 | wxSize result; |
d55e5bfc RD |
23982 | PyObject * obj0 = 0 ; |
23983 | char *kwnames[] = { | |
23984 | (char *) "self", NULL | |
23985 | }; | |
23986 | ||
908b74cd | 23987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
23988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23990 | { | |
23991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 23992 | result = ((wxWindow const *)arg1)->GetMinSize(); |
d55e5bfc RD |
23993 | |
23994 | wxPyEndAllowThreads(__tstate); | |
23995 | if (PyErr_Occurred()) SWIG_fail; | |
23996 | } | |
908b74cd RD |
23997 | { |
23998 | wxSize * resultptr; | |
23999 | resultptr = new wxSize((wxSize &) result); | |
24000 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24001 | } | |
d55e5bfc RD |
24002 | return resultobj; |
24003 | fail: | |
24004 | return NULL; | |
24005 | } | |
24006 | ||
24007 | ||
c370783e | 24008 | static PyObject *_wrap_Window_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
24009 | PyObject *resultobj; |
24010 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24011 | wxSize *arg2 = 0 ; | |
24012 | wxSize temp2 ; | |
24013 | PyObject * obj0 = 0 ; | |
24014 | PyObject * obj1 = 0 ; | |
24015 | char *kwnames[] = { | |
24016 | (char *) "self",(char *) "minSize", NULL | |
24017 | }; | |
24018 | ||
24019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
24020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24022 | { | |
24023 | arg2 = &temp2; | |
24024 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24025 | } | |
24026 | { | |
24027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24028 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
24029 | ||
24030 | wxPyEndAllowThreads(__tstate); | |
24031 | if (PyErr_Occurred()) SWIG_fail; | |
24032 | } | |
24033 | Py_INCREF(Py_None); resultobj = Py_None; | |
24034 | return resultobj; | |
24035 | fail: | |
24036 | return NULL; | |
24037 | } | |
24038 | ||
24039 | ||
c370783e | 24040 | static PyObject *_wrap_Window_SetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
24041 | PyObject *resultobj; |
24042 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24043 | wxSize *arg2 = 0 ; | |
24044 | wxSize temp2 ; | |
24045 | PyObject * obj0 = 0 ; | |
24046 | PyObject * obj1 = 0 ; | |
24047 | char *kwnames[] = { | |
24048 | (char *) "self",(char *) "maxSize", NULL | |
24049 | }; | |
24050 | ||
24051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) goto fail; | |
24052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24054 | { | |
24055 | arg2 = &temp2; | |
24056 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24057 | } | |
24058 | { | |
24059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24060 | (arg1)->SetMaxSize((wxSize const &)*arg2); | |
24061 | ||
24062 | wxPyEndAllowThreads(__tstate); | |
24063 | if (PyErr_Occurred()) SWIG_fail; | |
24064 | } | |
24065 | Py_INCREF(Py_None); resultobj = Py_None; | |
24066 | return resultobj; | |
24067 | fail: | |
24068 | return NULL; | |
24069 | } | |
24070 | ||
24071 | ||
c370783e | 24072 | static PyObject *_wrap_Window_GetMinWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24073 | PyObject *resultobj; |
24074 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24075 | int result; | |
24076 | PyObject * obj0 = 0 ; | |
24077 | char *kwnames[] = { | |
24078 | (char *) "self", NULL | |
24079 | }; | |
24080 | ||
908b74cd | 24081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24084 | { | |
24085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24086 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); |
d55e5bfc RD |
24087 | |
24088 | wxPyEndAllowThreads(__tstate); | |
24089 | if (PyErr_Occurred()) SWIG_fail; | |
24090 | } | |
c370783e | 24091 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24092 | return resultobj; |
24093 | fail: | |
24094 | return NULL; | |
24095 | } | |
24096 | ||
24097 | ||
c370783e | 24098 | static PyObject *_wrap_Window_GetMinHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24099 | PyObject *resultobj; |
24100 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24101 | int result; | |
24102 | PyObject * obj0 = 0 ; | |
24103 | char *kwnames[] = { | |
24104 | (char *) "self", NULL | |
24105 | }; | |
24106 | ||
908b74cd | 24107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24110 | { | |
24111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24112 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); |
d55e5bfc RD |
24113 | |
24114 | wxPyEndAllowThreads(__tstate); | |
24115 | if (PyErr_Occurred()) SWIG_fail; | |
24116 | } | |
c370783e | 24117 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24118 | return resultobj; |
24119 | fail: | |
24120 | return NULL; | |
24121 | } | |
24122 | ||
24123 | ||
c370783e | 24124 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24125 | PyObject *resultobj; |
24126 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24127 | int result; |
d55e5bfc RD |
24128 | PyObject * obj0 = 0 ; |
24129 | char *kwnames[] = { | |
24130 | (char *) "self", NULL | |
24131 | }; | |
24132 | ||
908b74cd | 24133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24136 | { | |
24137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24138 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); |
d55e5bfc RD |
24139 | |
24140 | wxPyEndAllowThreads(__tstate); | |
24141 | if (PyErr_Occurred()) SWIG_fail; | |
24142 | } | |
c370783e | 24143 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24144 | return resultobj; |
24145 | fail: | |
24146 | return NULL; | |
24147 | } | |
24148 | ||
24149 | ||
c370783e | 24150 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24151 | PyObject *resultobj; |
24152 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24153 | int result; |
d55e5bfc RD |
24154 | PyObject * obj0 = 0 ; |
24155 | char *kwnames[] = { | |
24156 | (char *) "self", NULL | |
24157 | }; | |
24158 | ||
908b74cd | 24159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24162 | { | |
24163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24164 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); |
d55e5bfc RD |
24165 | |
24166 | wxPyEndAllowThreads(__tstate); | |
24167 | if (PyErr_Occurred()) SWIG_fail; | |
24168 | } | |
c370783e | 24169 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24170 | return resultobj; |
24171 | fail: | |
24172 | return NULL; | |
24173 | } | |
24174 | ||
24175 | ||
c370783e | 24176 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24177 | PyObject *resultobj; |
24178 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24179 | wxSize *arg2 = 0 ; | |
24180 | wxSize temp2 ; | |
24181 | PyObject * obj0 = 0 ; | |
24182 | PyObject * obj1 = 0 ; | |
24183 | char *kwnames[] = { | |
24184 | (char *) "self",(char *) "size", NULL | |
24185 | }; | |
24186 | ||
24187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
24188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24190 | { | |
24191 | arg2 = &temp2; | |
24192 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24193 | } | |
24194 | { | |
24195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24196 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
24197 | ||
24198 | wxPyEndAllowThreads(__tstate); | |
24199 | if (PyErr_Occurred()) SWIG_fail; | |
24200 | } | |
24201 | Py_INCREF(Py_None); resultobj = Py_None; | |
24202 | return resultobj; | |
24203 | fail: | |
24204 | return NULL; | |
24205 | } | |
24206 | ||
24207 | ||
c370783e | 24208 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24209 | PyObject *resultobj; |
24210 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24211 | int arg2 ; | |
24212 | int arg3 ; | |
24213 | PyObject * obj0 = 0 ; | |
24214 | PyObject * obj1 = 0 ; | |
24215 | PyObject * obj2 = 0 ; | |
24216 | char *kwnames[] = { | |
24217 | (char *) "self",(char *) "w",(char *) "h", NULL | |
24218 | }; | |
24219 | ||
24220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24223 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 24224 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24225 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
24226 | if (PyErr_Occurred()) SWIG_fail; |
24227 | { | |
24228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24229 | (arg1)->SetVirtualSize(arg2,arg3); | |
24230 | ||
24231 | wxPyEndAllowThreads(__tstate); | |
24232 | if (PyErr_Occurred()) SWIG_fail; | |
24233 | } | |
24234 | Py_INCREF(Py_None); resultobj = Py_None; | |
24235 | return resultobj; | |
24236 | fail: | |
24237 | return NULL; | |
24238 | } | |
24239 | ||
24240 | ||
c370783e | 24241 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24242 | PyObject *resultobj; |
24243 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24244 | wxSize result; | |
24245 | PyObject * obj0 = 0 ; | |
24246 | char *kwnames[] = { | |
24247 | (char *) "self", NULL | |
24248 | }; | |
24249 | ||
24250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
24251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24253 | { | |
24254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24255 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
24256 | ||
24257 | wxPyEndAllowThreads(__tstate); | |
24258 | if (PyErr_Occurred()) SWIG_fail; | |
24259 | } | |
24260 | { | |
24261 | wxSize * resultptr; | |
24262 | resultptr = new wxSize((wxSize &) result); | |
24263 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24264 | } | |
24265 | return resultobj; | |
24266 | fail: | |
24267 | return NULL; | |
24268 | } | |
24269 | ||
24270 | ||
c370783e | 24271 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24272 | PyObject *resultobj; |
24273 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24274 | int *arg2 = (int *) 0 ; | |
24275 | int *arg3 = (int *) 0 ; | |
24276 | int temp2 ; | |
c370783e | 24277 | int res2 = 0 ; |
d55e5bfc | 24278 | int temp3 ; |
c370783e | 24279 | int res3 = 0 ; |
d55e5bfc RD |
24280 | PyObject * obj0 = 0 ; |
24281 | char *kwnames[] = { | |
24282 | (char *) "self", NULL | |
24283 | }; | |
24284 | ||
c370783e RD |
24285 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
24286 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
24287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; |
24288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24290 | { | |
24291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24292 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
24293 | ||
24294 | wxPyEndAllowThreads(__tstate); | |
24295 | if (PyErr_Occurred()) SWIG_fail; | |
24296 | } | |
24297 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
24298 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
24299 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
24300 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
24301 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
24302 | return resultobj; |
24303 | fail: | |
24304 | return NULL; | |
24305 | } | |
24306 | ||
24307 | ||
c370783e | 24308 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24309 | PyObject *resultobj; |
24310 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24311 | wxSize result; | |
24312 | PyObject * obj0 = 0 ; | |
24313 | char *kwnames[] = { | |
24314 | (char *) "self", NULL | |
24315 | }; | |
24316 | ||
24317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
24318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24320 | { | |
24321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24322 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
24323 | ||
24324 | wxPyEndAllowThreads(__tstate); | |
24325 | if (PyErr_Occurred()) SWIG_fail; | |
24326 | } | |
24327 | { | |
24328 | wxSize * resultptr; | |
24329 | resultptr = new wxSize((wxSize &) result); | |
24330 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24331 | } | |
24332 | return resultobj; | |
24333 | fail: | |
24334 | return NULL; | |
24335 | } | |
24336 | ||
24337 | ||
c370783e | 24338 | static PyObject *_wrap_Window_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24339 | PyObject *resultobj; |
24340 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b411df4a | 24341 | bool arg2 = (bool) true ; |
d55e5bfc RD |
24342 | bool result; |
24343 | PyObject * obj0 = 0 ; | |
24344 | PyObject * obj1 = 0 ; | |
24345 | char *kwnames[] = { | |
24346 | (char *) "self",(char *) "show", NULL | |
24347 | }; | |
24348 | ||
24349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
24350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24352 | if (obj1) { | |
c370783e | 24353 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24354 | if (PyErr_Occurred()) SWIG_fail; |
24355 | } | |
24356 | { | |
24357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24358 | result = (bool)(arg1)->Show(arg2); | |
24359 | ||
24360 | wxPyEndAllowThreads(__tstate); | |
24361 | if (PyErr_Occurred()) SWIG_fail; | |
24362 | } | |
24363 | { | |
24364 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24365 | } | |
24366 | return resultobj; | |
24367 | fail: | |
24368 | return NULL; | |
24369 | } | |
24370 | ||
24371 | ||
c370783e | 24372 | static PyObject *_wrap_Window_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24373 | PyObject *resultobj; |
24374 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24375 | bool result; | |
24376 | PyObject * obj0 = 0 ; | |
24377 | char *kwnames[] = { | |
24378 | (char *) "self", NULL | |
24379 | }; | |
24380 | ||
24381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
24382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24384 | { | |
24385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24386 | result = (bool)(arg1)->Hide(); | |
24387 | ||
24388 | wxPyEndAllowThreads(__tstate); | |
24389 | if (PyErr_Occurred()) SWIG_fail; | |
24390 | } | |
24391 | { | |
24392 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24393 | } | |
24394 | return resultobj; | |
24395 | fail: | |
24396 | return NULL; | |
24397 | } | |
24398 | ||
24399 | ||
c370783e | 24400 | static PyObject *_wrap_Window_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24401 | PyObject *resultobj; |
24402 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b411df4a | 24403 | bool arg2 = (bool) true ; |
d55e5bfc RD |
24404 | bool result; |
24405 | PyObject * obj0 = 0 ; | |
24406 | PyObject * obj1 = 0 ; | |
24407 | char *kwnames[] = { | |
24408 | (char *) "self",(char *) "enable", NULL | |
24409 | }; | |
24410 | ||
24411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
24412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24414 | if (obj1) { | |
c370783e | 24415 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24416 | if (PyErr_Occurred()) SWIG_fail; |
24417 | } | |
24418 | { | |
24419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24420 | result = (bool)(arg1)->Enable(arg2); | |
24421 | ||
24422 | wxPyEndAllowThreads(__tstate); | |
24423 | if (PyErr_Occurred()) SWIG_fail; | |
24424 | } | |
24425 | { | |
24426 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24427 | } | |
24428 | return resultobj; | |
24429 | fail: | |
24430 | return NULL; | |
24431 | } | |
24432 | ||
24433 | ||
c370783e | 24434 | static PyObject *_wrap_Window_Disable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24435 | PyObject *resultobj; |
24436 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24437 | bool result; | |
24438 | PyObject * obj0 = 0 ; | |
24439 | char *kwnames[] = { | |
24440 | (char *) "self", NULL | |
24441 | }; | |
24442 | ||
24443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
24444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24446 | { | |
24447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24448 | result = (bool)(arg1)->Disable(); | |
24449 | ||
24450 | wxPyEndAllowThreads(__tstate); | |
24451 | if (PyErr_Occurred()) SWIG_fail; | |
24452 | } | |
24453 | { | |
24454 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24455 | } | |
24456 | return resultobj; | |
24457 | fail: | |
24458 | return NULL; | |
24459 | } | |
24460 | ||
24461 | ||
c370783e | 24462 | static PyObject *_wrap_Window_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24463 | PyObject *resultobj; |
24464 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24465 | bool result; | |
24466 | PyObject * obj0 = 0 ; | |
24467 | char *kwnames[] = { | |
24468 | (char *) "self", NULL | |
24469 | }; | |
24470 | ||
24471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
24472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24474 | { | |
24475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24476 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
24477 | ||
24478 | wxPyEndAllowThreads(__tstate); | |
24479 | if (PyErr_Occurred()) SWIG_fail; | |
24480 | } | |
24481 | { | |
24482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24483 | } | |
24484 | return resultobj; | |
24485 | fail: | |
24486 | return NULL; | |
24487 | } | |
24488 | ||
24489 | ||
c370783e | 24490 | static PyObject *_wrap_Window_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24491 | PyObject *resultobj; |
24492 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24493 | bool result; | |
24494 | PyObject * obj0 = 0 ; | |
24495 | char *kwnames[] = { | |
24496 | (char *) "self", NULL | |
24497 | }; | |
24498 | ||
24499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
24500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24502 | { | |
24503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24504 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
24505 | ||
24506 | wxPyEndAllowThreads(__tstate); | |
24507 | if (PyErr_Occurred()) SWIG_fail; | |
24508 | } | |
24509 | { | |
24510 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24511 | } | |
24512 | return resultobj; | |
24513 | fail: | |
24514 | return NULL; | |
24515 | } | |
24516 | ||
24517 | ||
c370783e | 24518 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24519 | PyObject *resultobj; |
24520 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24521 | long arg2 ; | |
24522 | PyObject * obj0 = 0 ; | |
24523 | PyObject * obj1 = 0 ; | |
24524 | char *kwnames[] = { | |
24525 | (char *) "self",(char *) "style", NULL | |
24526 | }; | |
24527 | ||
24528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
24529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24531 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24532 | if (PyErr_Occurred()) SWIG_fail; |
24533 | { | |
24534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24535 | (arg1)->SetWindowStyleFlag(arg2); | |
24536 | ||
24537 | wxPyEndAllowThreads(__tstate); | |
24538 | if (PyErr_Occurred()) SWIG_fail; | |
24539 | } | |
24540 | Py_INCREF(Py_None); resultobj = Py_None; | |
24541 | return resultobj; | |
24542 | fail: | |
24543 | return NULL; | |
24544 | } | |
24545 | ||
24546 | ||
c370783e | 24547 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24548 | PyObject *resultobj; |
24549 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24550 | long result; | |
24551 | PyObject * obj0 = 0 ; | |
24552 | char *kwnames[] = { | |
24553 | (char *) "self", NULL | |
24554 | }; | |
24555 | ||
24556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
24557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24559 | { | |
24560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24561 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
24562 | ||
24563 | wxPyEndAllowThreads(__tstate); | |
24564 | if (PyErr_Occurred()) SWIG_fail; | |
24565 | } | |
c370783e | 24566 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24567 | return resultobj; |
24568 | fail: | |
24569 | return NULL; | |
24570 | } | |
24571 | ||
24572 | ||
c370783e | 24573 | static PyObject *_wrap_Window_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24574 | PyObject *resultobj; |
24575 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24576 | int arg2 ; | |
24577 | bool result; | |
24578 | PyObject * obj0 = 0 ; | |
24579 | PyObject * obj1 = 0 ; | |
24580 | char *kwnames[] = { | |
24581 | (char *) "self",(char *) "flag", NULL | |
24582 | }; | |
24583 | ||
24584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
24585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24587 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24588 | if (PyErr_Occurred()) SWIG_fail; |
24589 | { | |
24590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24591 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
24592 | ||
24593 | wxPyEndAllowThreads(__tstate); | |
24594 | if (PyErr_Occurred()) SWIG_fail; | |
24595 | } | |
24596 | { | |
24597 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24598 | } | |
24599 | return resultobj; | |
24600 | fail: | |
24601 | return NULL; | |
24602 | } | |
24603 | ||
24604 | ||
c370783e | 24605 | static PyObject *_wrap_Window_IsRetained(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24606 | PyObject *resultobj; |
24607 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24608 | bool result; | |
24609 | PyObject * obj0 = 0 ; | |
24610 | char *kwnames[] = { | |
24611 | (char *) "self", NULL | |
24612 | }; | |
24613 | ||
24614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
24615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24617 | { | |
24618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24619 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
24620 | ||
24621 | wxPyEndAllowThreads(__tstate); | |
24622 | if (PyErr_Occurred()) SWIG_fail; | |
24623 | } | |
24624 | { | |
24625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24626 | } | |
24627 | return resultobj; | |
24628 | fail: | |
24629 | return NULL; | |
24630 | } | |
24631 | ||
24632 | ||
c370783e | 24633 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24634 | PyObject *resultobj; |
24635 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24636 | long arg2 ; | |
24637 | PyObject * obj0 = 0 ; | |
24638 | PyObject * obj1 = 0 ; | |
24639 | char *kwnames[] = { | |
24640 | (char *) "self",(char *) "exStyle", NULL | |
24641 | }; | |
24642 | ||
24643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; | |
24644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24646 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24647 | if (PyErr_Occurred()) SWIG_fail; |
24648 | { | |
24649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24650 | (arg1)->SetExtraStyle(arg2); | |
24651 | ||
24652 | wxPyEndAllowThreads(__tstate); | |
24653 | if (PyErr_Occurred()) SWIG_fail; | |
24654 | } | |
24655 | Py_INCREF(Py_None); resultobj = Py_None; | |
24656 | return resultobj; | |
24657 | fail: | |
24658 | return NULL; | |
24659 | } | |
24660 | ||
24661 | ||
c370783e | 24662 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24663 | PyObject *resultobj; |
24664 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24665 | long result; | |
24666 | PyObject * obj0 = 0 ; | |
24667 | char *kwnames[] = { | |
24668 | (char *) "self", NULL | |
24669 | }; | |
24670 | ||
24671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
24672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24674 | { | |
24675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24676 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
24677 | ||
24678 | wxPyEndAllowThreads(__tstate); | |
24679 | if (PyErr_Occurred()) SWIG_fail; | |
24680 | } | |
c370783e | 24681 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24682 | return resultobj; |
24683 | fail: | |
24684 | return NULL; | |
24685 | } | |
24686 | ||
24687 | ||
c370783e | 24688 | static PyObject *_wrap_Window_MakeModal(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24689 | PyObject *resultobj; |
24690 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b411df4a | 24691 | bool arg2 = (bool) true ; |
d55e5bfc RD |
24692 | PyObject * obj0 = 0 ; |
24693 | PyObject * obj1 = 0 ; | |
24694 | char *kwnames[] = { | |
24695 | (char *) "self",(char *) "modal", NULL | |
24696 | }; | |
24697 | ||
24698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
24699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24701 | if (obj1) { | |
c370783e | 24702 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24703 | if (PyErr_Occurred()) SWIG_fail; |
24704 | } | |
24705 | { | |
24706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24707 | (arg1)->MakeModal(arg2); | |
24708 | ||
24709 | wxPyEndAllowThreads(__tstate); | |
24710 | if (PyErr_Occurred()) SWIG_fail; | |
24711 | } | |
24712 | Py_INCREF(Py_None); resultobj = Py_None; | |
24713 | return resultobj; | |
24714 | fail: | |
24715 | return NULL; | |
24716 | } | |
24717 | ||
24718 | ||
c370783e | 24719 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24720 | PyObject *resultobj; |
24721 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24722 | bool arg2 ; | |
24723 | PyObject * obj0 = 0 ; | |
24724 | PyObject * obj1 = 0 ; | |
24725 | char *kwnames[] = { | |
24726 | (char *) "self",(char *) "enableTheme", NULL | |
24727 | }; | |
24728 | ||
24729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
24730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24732 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24733 | if (PyErr_Occurred()) SWIG_fail; |
24734 | { | |
24735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24736 | (arg1)->SetThemeEnabled(arg2); | |
24737 | ||
24738 | wxPyEndAllowThreads(__tstate); | |
24739 | if (PyErr_Occurred()) SWIG_fail; | |
24740 | } | |
24741 | Py_INCREF(Py_None); resultobj = Py_None; | |
24742 | return resultobj; | |
24743 | fail: | |
24744 | return NULL; | |
24745 | } | |
24746 | ||
24747 | ||
c370783e | 24748 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24749 | PyObject *resultobj; |
24750 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24751 | bool result; | |
24752 | PyObject * obj0 = 0 ; | |
24753 | char *kwnames[] = { | |
24754 | (char *) "self", NULL | |
24755 | }; | |
24756 | ||
24757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
24758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24760 | { | |
24761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24762 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
24763 | ||
24764 | wxPyEndAllowThreads(__tstate); | |
24765 | if (PyErr_Occurred()) SWIG_fail; | |
24766 | } | |
24767 | { | |
24768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24769 | } | |
24770 | return resultobj; | |
24771 | fail: | |
24772 | return NULL; | |
24773 | } | |
24774 | ||
24775 | ||
c370783e | 24776 | static PyObject *_wrap_Window_SetFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24777 | PyObject *resultobj; |
24778 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24779 | PyObject * obj0 = 0 ; | |
24780 | char *kwnames[] = { | |
24781 | (char *) "self", NULL | |
24782 | }; | |
24783 | ||
24784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
24785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24787 | { | |
24788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24789 | (arg1)->SetFocus(); | |
24790 | ||
24791 | wxPyEndAllowThreads(__tstate); | |
24792 | if (PyErr_Occurred()) SWIG_fail; | |
24793 | } | |
24794 | Py_INCREF(Py_None); resultobj = Py_None; | |
24795 | return resultobj; | |
24796 | fail: | |
24797 | return NULL; | |
24798 | } | |
24799 | ||
24800 | ||
c370783e | 24801 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24802 | PyObject *resultobj; |
24803 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24804 | PyObject * obj0 = 0 ; | |
24805 | char *kwnames[] = { | |
24806 | (char *) "self", NULL | |
24807 | }; | |
24808 | ||
24809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail; | |
24810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24812 | { | |
24813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24814 | (arg1)->SetFocusFromKbd(); | |
24815 | ||
24816 | wxPyEndAllowThreads(__tstate); | |
24817 | if (PyErr_Occurred()) SWIG_fail; | |
24818 | } | |
24819 | Py_INCREF(Py_None); resultobj = Py_None; | |
24820 | return resultobj; | |
24821 | fail: | |
24822 | return NULL; | |
24823 | } | |
24824 | ||
24825 | ||
c370783e | 24826 | static PyObject *_wrap_Window_FindFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24827 | PyObject *resultobj; |
24828 | wxWindow *result; | |
24829 | char *kwnames[] = { | |
24830 | NULL | |
24831 | }; | |
24832 | ||
24833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
24834 | { | |
0439c23b | 24835 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
24836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24837 | result = (wxWindow *)wxWindow::FindFocus(); | |
24838 | ||
24839 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 24840 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24841 | } |
24842 | { | |
412d302d | 24843 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24844 | } |
24845 | return resultobj; | |
24846 | fail: | |
24847 | return NULL; | |
24848 | } | |
24849 | ||
24850 | ||
c370783e | 24851 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24852 | PyObject *resultobj; |
24853 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24854 | bool result; | |
24855 | PyObject * obj0 = 0 ; | |
24856 | char *kwnames[] = { | |
24857 | (char *) "self", NULL | |
24858 | }; | |
24859 | ||
24860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
24861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24863 | { | |
24864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24865 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
24866 | ||
24867 | wxPyEndAllowThreads(__tstate); | |
24868 | if (PyErr_Occurred()) SWIG_fail; | |
24869 | } | |
24870 | { | |
24871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24872 | } | |
24873 | return resultobj; | |
24874 | fail: | |
24875 | return NULL; | |
24876 | } | |
24877 | ||
24878 | ||
c370783e | 24879 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24880 | PyObject *resultobj; |
24881 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24882 | bool result; | |
24883 | PyObject * obj0 = 0 ; | |
24884 | char *kwnames[] = { | |
24885 | (char *) "self", NULL | |
24886 | }; | |
24887 | ||
24888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
24889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24891 | { | |
24892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24893 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
24894 | ||
24895 | wxPyEndAllowThreads(__tstate); | |
24896 | if (PyErr_Occurred()) SWIG_fail; | |
24897 | } | |
24898 | { | |
24899 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24900 | } | |
24901 | return resultobj; | |
24902 | fail: | |
24903 | return NULL; | |
24904 | } | |
24905 | ||
24906 | ||
c370783e | 24907 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24908 | PyObject *resultobj; |
24909 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24910 | wxWindow *result; | |
24911 | PyObject * obj0 = 0 ; | |
24912 | char *kwnames[] = { | |
24913 | (char *) "self", NULL | |
24914 | }; | |
24915 | ||
24916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
24917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24919 | { | |
24920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24921 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
24922 | ||
24923 | wxPyEndAllowThreads(__tstate); | |
24924 | if (PyErr_Occurred()) SWIG_fail; | |
24925 | } | |
24926 | { | |
412d302d | 24927 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24928 | } |
24929 | return resultobj; | |
24930 | fail: | |
24931 | return NULL; | |
24932 | } | |
24933 | ||
24934 | ||
c370783e | 24935 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24936 | PyObject *resultobj; |
24937 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24938 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24939 | wxWindow *result; | |
24940 | PyObject * obj0 = 0 ; | |
24941 | PyObject * obj1 = 0 ; | |
24942 | char *kwnames[] = { | |
24943 | (char *) "self",(char *) "child", NULL | |
24944 | }; | |
24945 | ||
24946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
24947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24949 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24951 | { | |
24952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24953 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
24954 | ||
24955 | wxPyEndAllowThreads(__tstate); | |
24956 | if (PyErr_Occurred()) SWIG_fail; | |
24957 | } | |
24958 | { | |
412d302d | 24959 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
24960 | } |
24961 | return resultobj; | |
24962 | fail: | |
24963 | return NULL; | |
24964 | } | |
24965 | ||
24966 | ||
c370783e | 24967 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24968 | PyObject *resultobj; |
24969 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24970 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24971 | PyObject * obj0 = 0 ; | |
24972 | PyObject * obj1 = 0 ; | |
24973 | char *kwnames[] = { | |
24974 | (char *) "self",(char *) "win", NULL | |
24975 | }; | |
24976 | ||
24977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
24978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24980 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24982 | { | |
24983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24984 | (arg1)->SetTmpDefaultItem(arg2); | |
24985 | ||
24986 | wxPyEndAllowThreads(__tstate); | |
24987 | if (PyErr_Occurred()) SWIG_fail; | |
24988 | } | |
24989 | Py_INCREF(Py_None); resultobj = Py_None; | |
24990 | return resultobj; | |
24991 | fail: | |
24992 | return NULL; | |
24993 | } | |
24994 | ||
24995 | ||
c370783e | 24996 | static PyObject *_wrap_Window_Navigate(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
24997 | PyObject *resultobj; |
24998 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24999 | int arg2 = (int) wxNavigationKeyEvent::IsForward ; | |
25000 | bool result; | |
25001 | PyObject * obj0 = 0 ; | |
25002 | PyObject * obj1 = 0 ; | |
25003 | char *kwnames[] = { | |
25004 | (char *) "self",(char *) "flags", NULL | |
25005 | }; | |
25006 | ||
25007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) goto fail; | |
25008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25010 | if (obj1) { | |
c370783e | 25011 | arg2 = (int)SWIG_As_int(obj1); |
908b74cd RD |
25012 | if (PyErr_Occurred()) SWIG_fail; |
25013 | } | |
25014 | { | |
25015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25016 | result = (bool)(arg1)->Navigate(arg2); | |
25017 | ||
25018 | wxPyEndAllowThreads(__tstate); | |
25019 | if (PyErr_Occurred()) SWIG_fail; | |
25020 | } | |
25021 | { | |
25022 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25023 | } | |
25024 | return resultobj; | |
25025 | fail: | |
25026 | return NULL; | |
25027 | } | |
25028 | ||
25029 | ||
c370783e | 25030 | static PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
25031 | PyObject *resultobj; |
25032 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25033 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25034 | PyObject * obj0 = 0 ; | |
25035 | PyObject * obj1 = 0 ; | |
25036 | char *kwnames[] = { | |
25037 | (char *) "self",(char *) "win", NULL | |
25038 | }; | |
25039 | ||
25040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
25041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25043 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25045 | { | |
25046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25047 | (arg1)->MoveAfterInTabOrder(arg2); | |
25048 | ||
25049 | wxPyEndAllowThreads(__tstate); | |
25050 | if (PyErr_Occurred()) SWIG_fail; | |
25051 | } | |
25052 | Py_INCREF(Py_None); resultobj = Py_None; | |
25053 | return resultobj; | |
25054 | fail: | |
25055 | return NULL; | |
25056 | } | |
25057 | ||
25058 | ||
c370783e | 25059 | static PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
25060 | PyObject *resultobj; |
25061 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25062 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25063 | PyObject * obj0 = 0 ; | |
25064 | PyObject * obj1 = 0 ; | |
25065 | char *kwnames[] = { | |
25066 | (char *) "self",(char *) "win", NULL | |
25067 | }; | |
25068 | ||
25069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
25070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25072 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25074 | { | |
25075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25076 | (arg1)->MoveBeforeInTabOrder(arg2); | |
25077 | ||
25078 | wxPyEndAllowThreads(__tstate); | |
25079 | if (PyErr_Occurred()) SWIG_fail; | |
25080 | } | |
25081 | Py_INCREF(Py_None); resultobj = Py_None; | |
25082 | return resultobj; | |
25083 | fail: | |
25084 | return NULL; | |
25085 | } | |
25086 | ||
25087 | ||
c370783e | 25088 | static PyObject *_wrap_Window_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25089 | PyObject *resultobj; |
25090 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25091 | PyObject *result; | |
25092 | PyObject * obj0 = 0 ; | |
25093 | char *kwnames[] = { | |
25094 | (char *) "self", NULL | |
25095 | }; | |
25096 | ||
25097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
25098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25100 | { | |
25101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25102 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
25103 | ||
25104 | wxPyEndAllowThreads(__tstate); | |
25105 | if (PyErr_Occurred()) SWIG_fail; | |
25106 | } | |
25107 | resultobj = result; | |
25108 | return resultobj; | |
25109 | fail: | |
25110 | return NULL; | |
25111 | } | |
25112 | ||
25113 | ||
c370783e | 25114 | static PyObject *_wrap_Window_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25115 | PyObject *resultobj; |
25116 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25117 | wxWindow *result; | |
25118 | PyObject * obj0 = 0 ; | |
25119 | char *kwnames[] = { | |
25120 | (char *) "self", NULL | |
25121 | }; | |
25122 | ||
25123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
25124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25126 | { | |
25127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25128 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
25129 | ||
25130 | wxPyEndAllowThreads(__tstate); | |
25131 | if (PyErr_Occurred()) SWIG_fail; | |
25132 | } | |
25133 | { | |
412d302d | 25134 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25135 | } |
25136 | return resultobj; | |
25137 | fail: | |
25138 | return NULL; | |
25139 | } | |
25140 | ||
25141 | ||
c370783e | 25142 | static PyObject *_wrap_Window_GetGrandParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25143 | PyObject *resultobj; |
25144 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25145 | wxWindow *result; | |
25146 | PyObject * obj0 = 0 ; | |
25147 | char *kwnames[] = { | |
25148 | (char *) "self", NULL | |
25149 | }; | |
25150 | ||
25151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
25152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25154 | { | |
25155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25156 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
25157 | ||
25158 | wxPyEndAllowThreads(__tstate); | |
25159 | if (PyErr_Occurred()) SWIG_fail; | |
25160 | } | |
25161 | { | |
412d302d | 25162 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25163 | } |
25164 | return resultobj; | |
25165 | fail: | |
25166 | return NULL; | |
25167 | } | |
25168 | ||
25169 | ||
c370783e | 25170 | static PyObject *_wrap_Window_IsTopLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25171 | PyObject *resultobj; |
25172 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25173 | bool result; | |
25174 | PyObject * obj0 = 0 ; | |
25175 | char *kwnames[] = { | |
25176 | (char *) "self", NULL | |
25177 | }; | |
25178 | ||
25179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
25180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25182 | { | |
25183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25184 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
25185 | ||
25186 | wxPyEndAllowThreads(__tstate); | |
25187 | if (PyErr_Occurred()) SWIG_fail; | |
25188 | } | |
25189 | { | |
25190 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25191 | } | |
25192 | return resultobj; | |
25193 | fail: | |
25194 | return NULL; | |
25195 | } | |
25196 | ||
25197 | ||
c370783e | 25198 | static PyObject *_wrap_Window_Reparent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25199 | PyObject *resultobj; |
25200 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25201 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25202 | bool result; | |
25203 | PyObject * obj0 = 0 ; | |
25204 | PyObject * obj1 = 0 ; | |
25205 | char *kwnames[] = { | |
25206 | (char *) "self",(char *) "newParent", NULL | |
25207 | }; | |
25208 | ||
25209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
25210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25212 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25214 | { | |
25215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25216 | result = (bool)(arg1)->Reparent(arg2); | |
25217 | ||
25218 | wxPyEndAllowThreads(__tstate); | |
25219 | if (PyErr_Occurred()) SWIG_fail; | |
25220 | } | |
25221 | { | |
25222 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25223 | } | |
25224 | return resultobj; | |
25225 | fail: | |
25226 | return NULL; | |
25227 | } | |
25228 | ||
25229 | ||
c370783e | 25230 | static PyObject *_wrap_Window_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25231 | PyObject *resultobj; |
25232 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25233 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25234 | PyObject * obj0 = 0 ; | |
25235 | PyObject * obj1 = 0 ; | |
25236 | char *kwnames[] = { | |
25237 | (char *) "self",(char *) "child", NULL | |
25238 | }; | |
25239 | ||
25240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
25241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25243 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25245 | { | |
25246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25247 | (arg1)->AddChild(arg2); | |
25248 | ||
25249 | wxPyEndAllowThreads(__tstate); | |
25250 | if (PyErr_Occurred()) SWIG_fail; | |
25251 | } | |
25252 | Py_INCREF(Py_None); resultobj = Py_None; | |
25253 | return resultobj; | |
25254 | fail: | |
25255 | return NULL; | |
25256 | } | |
25257 | ||
25258 | ||
c370783e | 25259 | static PyObject *_wrap_Window_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25260 | PyObject *resultobj; |
25261 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25262 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25263 | PyObject * obj0 = 0 ; | |
25264 | PyObject * obj1 = 0 ; | |
25265 | char *kwnames[] = { | |
25266 | (char *) "self",(char *) "child", NULL | |
25267 | }; | |
25268 | ||
25269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
25270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25272 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25274 | { | |
25275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25276 | (arg1)->RemoveChild(arg2); | |
25277 | ||
25278 | wxPyEndAllowThreads(__tstate); | |
25279 | if (PyErr_Occurred()) SWIG_fail; | |
25280 | } | |
25281 | Py_INCREF(Py_None); resultobj = Py_None; | |
25282 | return resultobj; | |
25283 | fail: | |
25284 | return NULL; | |
25285 | } | |
25286 | ||
25287 | ||
c370783e | 25288 | static PyObject *_wrap_Window_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25289 | PyObject *resultobj; |
25290 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25291 | long arg2 ; | |
25292 | wxWindow *result; | |
25293 | PyObject * obj0 = 0 ; | |
25294 | PyObject * obj1 = 0 ; | |
25295 | char *kwnames[] = { | |
25296 | (char *) "self",(char *) "winid", NULL | |
25297 | }; | |
25298 | ||
25299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
25300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25302 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
25303 | if (PyErr_Occurred()) SWIG_fail; |
25304 | { | |
25305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25306 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
25307 | ||
25308 | wxPyEndAllowThreads(__tstate); | |
25309 | if (PyErr_Occurred()) SWIG_fail; | |
25310 | } | |
25311 | { | |
412d302d | 25312 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25313 | } |
25314 | return resultobj; | |
25315 | fail: | |
25316 | return NULL; | |
25317 | } | |
25318 | ||
25319 | ||
c370783e | 25320 | static PyObject *_wrap_Window_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25321 | PyObject *resultobj; |
25322 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25323 | wxString *arg2 = 0 ; | |
25324 | wxWindow *result; | |
b411df4a | 25325 | bool temp2 = false ; |
d55e5bfc RD |
25326 | PyObject * obj0 = 0 ; |
25327 | PyObject * obj1 = 0 ; | |
25328 | char *kwnames[] = { | |
25329 | (char *) "self",(char *) "name", NULL | |
25330 | }; | |
25331 | ||
25332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
25333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25335 | { | |
25336 | arg2 = wxString_in_helper(obj1); | |
25337 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 25338 | temp2 = true; |
d55e5bfc RD |
25339 | } |
25340 | { | |
25341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25342 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
25343 | ||
25344 | wxPyEndAllowThreads(__tstate); | |
25345 | if (PyErr_Occurred()) SWIG_fail; | |
25346 | } | |
25347 | { | |
412d302d | 25348 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25349 | } |
25350 | { | |
25351 | if (temp2) | |
25352 | delete arg2; | |
25353 | } | |
25354 | return resultobj; | |
25355 | fail: | |
25356 | { | |
25357 | if (temp2) | |
25358 | delete arg2; | |
25359 | } | |
25360 | return NULL; | |
25361 | } | |
25362 | ||
25363 | ||
c370783e | 25364 | static PyObject *_wrap_Window_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25365 | PyObject *resultobj; |
25366 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25367 | wxEvtHandler *result; | |
25368 | PyObject * obj0 = 0 ; | |
25369 | char *kwnames[] = { | |
25370 | (char *) "self", NULL | |
25371 | }; | |
25372 | ||
25373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
25374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25376 | { | |
25377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25378 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
25379 | ||
25380 | wxPyEndAllowThreads(__tstate); | |
25381 | if (PyErr_Occurred()) SWIG_fail; | |
25382 | } | |
25383 | { | |
412d302d | 25384 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25385 | } |
25386 | return resultobj; | |
25387 | fail: | |
25388 | return NULL; | |
25389 | } | |
25390 | ||
25391 | ||
c370783e | 25392 | static PyObject *_wrap_Window_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25393 | PyObject *resultobj; |
25394 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25395 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25396 | PyObject * obj0 = 0 ; | |
25397 | PyObject * obj1 = 0 ; | |
25398 | char *kwnames[] = { | |
25399 | (char *) "self",(char *) "handler", NULL | |
25400 | }; | |
25401 | ||
25402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25405 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25407 | { | |
25408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25409 | (arg1)->SetEventHandler(arg2); | |
25410 | ||
25411 | wxPyEndAllowThreads(__tstate); | |
25412 | if (PyErr_Occurred()) SWIG_fail; | |
25413 | } | |
25414 | Py_INCREF(Py_None); resultobj = Py_None; | |
25415 | return resultobj; | |
25416 | fail: | |
25417 | return NULL; | |
25418 | } | |
25419 | ||
25420 | ||
c370783e | 25421 | static PyObject *_wrap_Window_PushEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25422 | PyObject *resultobj; |
25423 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25424 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25425 | PyObject * obj0 = 0 ; | |
25426 | PyObject * obj1 = 0 ; | |
25427 | char *kwnames[] = { | |
25428 | (char *) "self",(char *) "handler", NULL | |
25429 | }; | |
25430 | ||
25431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25434 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25436 | { | |
25437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25438 | (arg1)->PushEventHandler(arg2); | |
25439 | ||
25440 | wxPyEndAllowThreads(__tstate); | |
25441 | if (PyErr_Occurred()) SWIG_fail; | |
25442 | } | |
25443 | Py_INCREF(Py_None); resultobj = Py_None; | |
25444 | return resultobj; | |
25445 | fail: | |
25446 | return NULL; | |
25447 | } | |
25448 | ||
25449 | ||
c370783e | 25450 | static PyObject *_wrap_Window_PopEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25451 | PyObject *resultobj; |
25452 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b411df4a | 25453 | bool arg2 = (bool) false ; |
d55e5bfc RD |
25454 | wxEvtHandler *result; |
25455 | PyObject * obj0 = 0 ; | |
25456 | PyObject * obj1 = 0 ; | |
25457 | char *kwnames[] = { | |
25458 | (char *) "self",(char *) "deleteHandler", NULL | |
25459 | }; | |
25460 | ||
25461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25464 | if (obj1) { | |
c370783e | 25465 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
25466 | if (PyErr_Occurred()) SWIG_fail; |
25467 | } | |
25468 | { | |
25469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25470 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
25471 | ||
25472 | wxPyEndAllowThreads(__tstate); | |
25473 | if (PyErr_Occurred()) SWIG_fail; | |
25474 | } | |
25475 | { | |
412d302d | 25476 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25477 | } |
25478 | return resultobj; | |
25479 | fail: | |
25480 | return NULL; | |
25481 | } | |
25482 | ||
25483 | ||
c370783e | 25484 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25485 | PyObject *resultobj; |
25486 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25487 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25488 | bool result; | |
25489 | PyObject * obj0 = 0 ; | |
25490 | PyObject * obj1 = 0 ; | |
25491 | char *kwnames[] = { | |
25492 | (char *) "self",(char *) "handler", NULL | |
25493 | }; | |
25494 | ||
25495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25498 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25500 | { | |
25501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25502 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
25503 | ||
25504 | wxPyEndAllowThreads(__tstate); | |
25505 | if (PyErr_Occurred()) SWIG_fail; | |
25506 | } | |
25507 | { | |
25508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25509 | } | |
25510 | return resultobj; | |
25511 | fail: | |
25512 | return NULL; | |
25513 | } | |
25514 | ||
25515 | ||
c370783e | 25516 | static PyObject *_wrap_Window_SetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25517 | PyObject *resultobj; |
25518 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25519 | wxValidator *arg2 = 0 ; | |
25520 | PyObject * obj0 = 0 ; | |
25521 | PyObject * obj1 = 0 ; | |
25522 | char *kwnames[] = { | |
25523 | (char *) "self",(char *) "validator", NULL | |
25524 | }; | |
25525 | ||
25526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
25527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25529 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator, | |
25530 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25531 | SWIG_fail; | |
25532 | if (arg2 == NULL) { | |
25533 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25534 | SWIG_fail; | |
25535 | } | |
25536 | { | |
25537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25538 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
25539 | ||
25540 | wxPyEndAllowThreads(__tstate); | |
25541 | if (PyErr_Occurred()) SWIG_fail; | |
25542 | } | |
25543 | Py_INCREF(Py_None); resultobj = Py_None; | |
25544 | return resultobj; | |
25545 | fail: | |
25546 | return NULL; | |
25547 | } | |
25548 | ||
25549 | ||
c370783e | 25550 | static PyObject *_wrap_Window_GetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25551 | PyObject *resultobj; |
25552 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25553 | wxValidator *result; | |
25554 | PyObject * obj0 = 0 ; | |
25555 | char *kwnames[] = { | |
25556 | (char *) "self", NULL | |
25557 | }; | |
25558 | ||
25559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
25560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25562 | { | |
25563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25564 | result = (wxValidator *)(arg1)->GetValidator(); | |
25565 | ||
25566 | wxPyEndAllowThreads(__tstate); | |
25567 | if (PyErr_Occurred()) SWIG_fail; | |
25568 | } | |
25569 | { | |
412d302d | 25570 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25571 | } |
25572 | return resultobj; | |
25573 | fail: | |
25574 | return NULL; | |
25575 | } | |
25576 | ||
25577 | ||
c370783e | 25578 | static PyObject *_wrap_Window_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25579 | PyObject *resultobj; |
25580 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25581 | bool result; | |
25582 | PyObject * obj0 = 0 ; | |
25583 | char *kwnames[] = { | |
25584 | (char *) "self", NULL | |
25585 | }; | |
25586 | ||
25587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail; | |
25588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25590 | { | |
25591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25592 | result = (bool)(arg1)->Validate(); | |
25593 | ||
25594 | wxPyEndAllowThreads(__tstate); | |
25595 | if (PyErr_Occurred()) SWIG_fail; | |
25596 | } | |
25597 | { | |
25598 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25599 | } | |
25600 | return resultobj; | |
25601 | fail: | |
25602 | return NULL; | |
25603 | } | |
25604 | ||
25605 | ||
c370783e | 25606 | static PyObject *_wrap_Window_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25607 | PyObject *resultobj; |
25608 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25609 | bool result; | |
25610 | PyObject * obj0 = 0 ; | |
25611 | char *kwnames[] = { | |
25612 | (char *) "self", NULL | |
25613 | }; | |
25614 | ||
25615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
25616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25618 | { | |
25619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25620 | result = (bool)(arg1)->TransferDataToWindow(); | |
25621 | ||
25622 | wxPyEndAllowThreads(__tstate); | |
25623 | if (PyErr_Occurred()) SWIG_fail; | |
25624 | } | |
25625 | { | |
25626 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25627 | } | |
25628 | return resultobj; | |
25629 | fail: | |
25630 | return NULL; | |
25631 | } | |
25632 | ||
25633 | ||
c370783e | 25634 | static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25635 | PyObject *resultobj; |
25636 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25637 | bool result; | |
25638 | PyObject * obj0 = 0 ; | |
25639 | char *kwnames[] = { | |
25640 | (char *) "self", NULL | |
25641 | }; | |
25642 | ||
25643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
25644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25646 | { | |
25647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25648 | result = (bool)(arg1)->TransferDataFromWindow(); | |
25649 | ||
25650 | wxPyEndAllowThreads(__tstate); | |
25651 | if (PyErr_Occurred()) SWIG_fail; | |
25652 | } | |
25653 | { | |
25654 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25655 | } | |
25656 | return resultobj; | |
25657 | fail: | |
25658 | return NULL; | |
25659 | } | |
25660 | ||
25661 | ||
c370783e | 25662 | static PyObject *_wrap_Window_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25663 | PyObject *resultobj; |
25664 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25665 | PyObject * obj0 = 0 ; | |
25666 | char *kwnames[] = { | |
25667 | (char *) "self", NULL | |
25668 | }; | |
25669 | ||
25670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail; | |
25671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25673 | { | |
25674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25675 | (arg1)->InitDialog(); | |
25676 | ||
25677 | wxPyEndAllowThreads(__tstate); | |
25678 | if (PyErr_Occurred()) SWIG_fail; | |
25679 | } | |
25680 | Py_INCREF(Py_None); resultobj = Py_None; | |
25681 | return resultobj; | |
25682 | fail: | |
25683 | return NULL; | |
25684 | } | |
25685 | ||
25686 | ||
c370783e | 25687 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25688 | PyObject *resultobj; |
25689 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25690 | wxAcceleratorTable *arg2 = 0 ; | |
25691 | PyObject * obj0 = 0 ; | |
25692 | PyObject * obj1 = 0 ; | |
25693 | char *kwnames[] = { | |
25694 | (char *) "self",(char *) "accel", NULL | |
25695 | }; | |
25696 | ||
25697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
25698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25700 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable, | |
25701 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25702 | SWIG_fail; | |
25703 | if (arg2 == NULL) { | |
25704 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25705 | SWIG_fail; | |
25706 | } | |
25707 | { | |
25708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25709 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
25710 | ||
25711 | wxPyEndAllowThreads(__tstate); | |
25712 | if (PyErr_Occurred()) SWIG_fail; | |
25713 | } | |
25714 | Py_INCREF(Py_None); resultobj = Py_None; | |
25715 | return resultobj; | |
25716 | fail: | |
25717 | return NULL; | |
25718 | } | |
25719 | ||
25720 | ||
c370783e | 25721 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25722 | PyObject *resultobj; |
25723 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25724 | wxAcceleratorTable *result; | |
25725 | PyObject * obj0 = 0 ; | |
25726 | char *kwnames[] = { | |
25727 | (char *) "self", NULL | |
25728 | }; | |
25729 | ||
25730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
25731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25733 | { | |
25734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25735 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
25736 | ||
25737 | wxPyEndAllowThreads(__tstate); | |
25738 | if (PyErr_Occurred()) SWIG_fail; | |
25739 | } | |
25740 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); | |
25741 | return resultobj; | |
25742 | fail: | |
25743 | return NULL; | |
25744 | } | |
25745 | ||
25746 | ||
c370783e | 25747 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25748 | PyObject *resultobj; |
25749 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25750 | int arg2 ; | |
25751 | int arg3 ; | |
25752 | int arg4 ; | |
25753 | bool result; | |
25754 | PyObject * obj0 = 0 ; | |
25755 | PyObject * obj1 = 0 ; | |
25756 | PyObject * obj2 = 0 ; | |
25757 | PyObject * obj3 = 0 ; | |
25758 | char *kwnames[] = { | |
25759 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
25760 | }; | |
25761 | ||
25762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25765 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 25766 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 25767 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 25768 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 25769 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
25770 | if (PyErr_Occurred()) SWIG_fail; |
25771 | { | |
25772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25773 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
25774 | ||
25775 | wxPyEndAllowThreads(__tstate); | |
25776 | if (PyErr_Occurred()) SWIG_fail; | |
25777 | } | |
25778 | { | |
25779 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25780 | } | |
25781 | return resultobj; | |
25782 | fail: | |
25783 | return NULL; | |
25784 | } | |
25785 | ||
25786 | ||
c370783e | 25787 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25788 | PyObject *resultobj; |
25789 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25790 | int arg2 ; | |
25791 | bool result; | |
25792 | PyObject * obj0 = 0 ; | |
25793 | PyObject * obj1 = 0 ; | |
25794 | char *kwnames[] = { | |
25795 | (char *) "self",(char *) "hotkeyId", NULL | |
25796 | }; | |
25797 | ||
25798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; | |
25799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25801 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
25802 | if (PyErr_Occurred()) SWIG_fail; |
25803 | { | |
25804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25805 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
25806 | ||
25807 | wxPyEndAllowThreads(__tstate); | |
25808 | if (PyErr_Occurred()) SWIG_fail; | |
25809 | } | |
25810 | { | |
25811 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25812 | } | |
25813 | return resultobj; | |
25814 | fail: | |
25815 | return NULL; | |
25816 | } | |
25817 | ||
25818 | ||
c370783e | 25819 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25820 | PyObject *resultobj; |
25821 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25822 | wxPoint *arg2 = 0 ; | |
25823 | wxPoint result; | |
25824 | wxPoint temp2 ; | |
25825 | PyObject * obj0 = 0 ; | |
25826 | PyObject * obj1 = 0 ; | |
25827 | char *kwnames[] = { | |
25828 | (char *) "self",(char *) "pt", NULL | |
25829 | }; | |
25830 | ||
25831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
25832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25834 | { | |
25835 | arg2 = &temp2; | |
25836 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25837 | } | |
25838 | { | |
25839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25840 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25841 | ||
25842 | wxPyEndAllowThreads(__tstate); | |
25843 | if (PyErr_Occurred()) SWIG_fail; | |
25844 | } | |
25845 | { | |
25846 | wxPoint * resultptr; | |
25847 | resultptr = new wxPoint((wxPoint &) result); | |
25848 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25849 | } | |
25850 | return resultobj; | |
25851 | fail: | |
25852 | return NULL; | |
25853 | } | |
25854 | ||
25855 | ||
c370783e | 25856 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25857 | PyObject *resultobj; |
25858 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25859 | wxSize *arg2 = 0 ; | |
25860 | wxSize result; | |
25861 | wxSize temp2 ; | |
25862 | PyObject * obj0 = 0 ; | |
25863 | PyObject * obj1 = 0 ; | |
25864 | char *kwnames[] = { | |
25865 | (char *) "self",(char *) "sz", NULL | |
25866 | }; | |
25867 | ||
25868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
25869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25871 | { | |
25872 | arg2 = &temp2; | |
25873 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25874 | } | |
25875 | { | |
25876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25877 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25878 | ||
25879 | wxPyEndAllowThreads(__tstate); | |
25880 | if (PyErr_Occurred()) SWIG_fail; | |
25881 | } | |
25882 | { | |
25883 | wxSize * resultptr; | |
25884 | resultptr = new wxSize((wxSize &) result); | |
25885 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
25886 | } | |
25887 | return resultobj; | |
25888 | fail: | |
25889 | return NULL; | |
25890 | } | |
25891 | ||
25892 | ||
c370783e | 25893 | static PyObject *_wrap_Window_DLG_PNT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25894 | PyObject *resultobj; |
25895 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25896 | wxPoint *arg2 = 0 ; | |
25897 | wxPoint result; | |
25898 | wxPoint temp2 ; | |
25899 | PyObject * obj0 = 0 ; | |
25900 | PyObject * obj1 = 0 ; | |
25901 | char *kwnames[] = { | |
25902 | (char *) "self",(char *) "pt", NULL | |
25903 | }; | |
25904 | ||
25905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
25906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25908 | { | |
25909 | arg2 = &temp2; | |
25910 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25911 | } | |
25912 | { | |
25913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25914 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
25915 | ||
25916 | wxPyEndAllowThreads(__tstate); | |
25917 | if (PyErr_Occurred()) SWIG_fail; | |
25918 | } | |
25919 | { | |
25920 | wxPoint * resultptr; | |
25921 | resultptr = new wxPoint((wxPoint &) result); | |
25922 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25923 | } | |
25924 | return resultobj; | |
25925 | fail: | |
25926 | return NULL; | |
25927 | } | |
25928 | ||
25929 | ||
c370783e | 25930 | static PyObject *_wrap_Window_DLG_SZE(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25931 | PyObject *resultobj; |
25932 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25933 | wxSize *arg2 = 0 ; | |
25934 | wxSize result; | |
25935 | wxSize temp2 ; | |
25936 | PyObject * obj0 = 0 ; | |
25937 | PyObject * obj1 = 0 ; | |
25938 | char *kwnames[] = { | |
25939 | (char *) "self",(char *) "sz", NULL | |
25940 | }; | |
25941 | ||
25942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
25943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25945 | { | |
25946 | arg2 = &temp2; | |
25947 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
25948 | } | |
25949 | { | |
25950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25951 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
25952 | ||
25953 | wxPyEndAllowThreads(__tstate); | |
25954 | if (PyErr_Occurred()) SWIG_fail; | |
25955 | } | |
25956 | { | |
25957 | wxSize * resultptr; | |
25958 | resultptr = new wxSize((wxSize &) result); | |
25959 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
25960 | } | |
25961 | return resultobj; | |
25962 | fail: | |
25963 | return NULL; | |
25964 | } | |
25965 | ||
25966 | ||
c370783e | 25967 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25968 | PyObject *resultobj; |
25969 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25970 | wxPoint *arg2 = 0 ; | |
25971 | wxPoint result; | |
25972 | wxPoint temp2 ; | |
25973 | PyObject * obj0 = 0 ; | |
25974 | PyObject * obj1 = 0 ; | |
25975 | char *kwnames[] = { | |
25976 | (char *) "self",(char *) "pt", NULL | |
25977 | }; | |
25978 | ||
25979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
25980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25982 | { | |
25983 | arg2 = &temp2; | |
25984 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25985 | } | |
25986 | { | |
25987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25988 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
25989 | ||
25990 | wxPyEndAllowThreads(__tstate); | |
25991 | if (PyErr_Occurred()) SWIG_fail; | |
25992 | } | |
25993 | { | |
25994 | wxPoint * resultptr; | |
25995 | resultptr = new wxPoint((wxPoint &) result); | |
25996 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
25997 | } | |
25998 | return resultobj; | |
25999 | fail: | |
26000 | return NULL; | |
26001 | } | |
26002 | ||
26003 | ||
c370783e | 26004 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26005 | PyObject *resultobj; |
26006 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26007 | wxSize *arg2 = 0 ; | |
26008 | wxSize result; | |
26009 | wxSize temp2 ; | |
26010 | PyObject * obj0 = 0 ; | |
26011 | PyObject * obj1 = 0 ; | |
26012 | char *kwnames[] = { | |
26013 | (char *) "self",(char *) "sz", NULL | |
26014 | }; | |
26015 | ||
26016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
26017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26019 | { | |
26020 | arg2 = &temp2; | |
26021 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
26022 | } | |
26023 | { | |
26024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26025 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
26026 | ||
26027 | wxPyEndAllowThreads(__tstate); | |
26028 | if (PyErr_Occurred()) SWIG_fail; | |
26029 | } | |
26030 | { | |
26031 | wxSize * resultptr; | |
26032 | resultptr = new wxSize((wxSize &) result); | |
26033 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
26034 | } | |
26035 | return resultobj; | |
26036 | fail: | |
26037 | return NULL; | |
26038 | } | |
26039 | ||
26040 | ||
c370783e | 26041 | static PyObject *_wrap_Window_WarpPointer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26042 | PyObject *resultobj; |
26043 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26044 | int arg2 ; | |
26045 | int arg3 ; | |
26046 | PyObject * obj0 = 0 ; | |
26047 | PyObject * obj1 = 0 ; | |
26048 | PyObject * obj2 = 0 ; | |
26049 | char *kwnames[] = { | |
26050 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26051 | }; | |
26052 | ||
26053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26056 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26057 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26058 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26059 | if (PyErr_Occurred()) SWIG_fail; |
26060 | { | |
26061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26062 | (arg1)->WarpPointer(arg2,arg3); | |
26063 | ||
26064 | wxPyEndAllowThreads(__tstate); | |
26065 | if (PyErr_Occurred()) SWIG_fail; | |
26066 | } | |
26067 | Py_INCREF(Py_None); resultobj = Py_None; | |
26068 | return resultobj; | |
26069 | fail: | |
26070 | return NULL; | |
26071 | } | |
26072 | ||
26073 | ||
c370783e | 26074 | static PyObject *_wrap_Window_CaptureMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26075 | PyObject *resultobj; |
26076 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26077 | PyObject * obj0 = 0 ; | |
26078 | char *kwnames[] = { | |
26079 | (char *) "self", NULL | |
26080 | }; | |
26081 | ||
26082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
26083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26085 | { | |
26086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26087 | (arg1)->CaptureMouse(); | |
26088 | ||
26089 | wxPyEndAllowThreads(__tstate); | |
26090 | if (PyErr_Occurred()) SWIG_fail; | |
26091 | } | |
26092 | Py_INCREF(Py_None); resultobj = Py_None; | |
26093 | return resultobj; | |
26094 | fail: | |
26095 | return NULL; | |
26096 | } | |
26097 | ||
26098 | ||
c370783e | 26099 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26100 | PyObject *resultobj; |
26101 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26102 | PyObject * obj0 = 0 ; | |
26103 | char *kwnames[] = { | |
26104 | (char *) "self", NULL | |
26105 | }; | |
26106 | ||
26107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
26108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26110 | { | |
26111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26112 | (arg1)->ReleaseMouse(); | |
26113 | ||
26114 | wxPyEndAllowThreads(__tstate); | |
26115 | if (PyErr_Occurred()) SWIG_fail; | |
26116 | } | |
26117 | Py_INCREF(Py_None); resultobj = Py_None; | |
26118 | return resultobj; | |
26119 | fail: | |
26120 | return NULL; | |
26121 | } | |
26122 | ||
26123 | ||
c370783e | 26124 | static PyObject *_wrap_Window_GetCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26125 | PyObject *resultobj; |
26126 | wxWindow *result; | |
26127 | char *kwnames[] = { | |
26128 | NULL | |
26129 | }; | |
26130 | ||
26131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
26132 | { | |
0439c23b | 26133 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
26134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26135 | result = (wxWindow *)wxWindow::GetCapture(); | |
26136 | ||
26137 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26138 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
26139 | } |
26140 | { | |
412d302d | 26141 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
26142 | } |
26143 | return resultobj; | |
26144 | fail: | |
26145 | return NULL; | |
26146 | } | |
26147 | ||
26148 | ||
c370783e | 26149 | static PyObject *_wrap_Window_HasCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26150 | PyObject *resultobj; |
26151 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26152 | bool result; | |
26153 | PyObject * obj0 = 0 ; | |
26154 | char *kwnames[] = { | |
26155 | (char *) "self", NULL | |
26156 | }; | |
26157 | ||
26158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
26159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26161 | { | |
26162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26163 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
26164 | ||
26165 | wxPyEndAllowThreads(__tstate); | |
26166 | if (PyErr_Occurred()) SWIG_fail; | |
26167 | } | |
26168 | { | |
26169 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26170 | } | |
26171 | return resultobj; | |
26172 | fail: | |
26173 | return NULL; | |
26174 | } | |
26175 | ||
26176 | ||
c370783e | 26177 | static PyObject *_wrap_Window_Refresh(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26178 | PyObject *resultobj; |
26179 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b411df4a | 26180 | bool arg2 = (bool) true ; |
d55e5bfc RD |
26181 | wxRect *arg3 = (wxRect *) NULL ; |
26182 | PyObject * obj0 = 0 ; | |
26183 | PyObject * obj1 = 0 ; | |
26184 | PyObject * obj2 = 0 ; | |
26185 | char *kwnames[] = { | |
26186 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
26187 | }; | |
26188 | ||
26189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26192 | if (obj1) { | |
c370783e | 26193 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
26194 | if (PyErr_Occurred()) SWIG_fail; |
26195 | } | |
26196 | if (obj2) { | |
26197 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, | |
26198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26199 | } | |
26200 | { | |
26201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26202 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
26203 | ||
26204 | wxPyEndAllowThreads(__tstate); | |
26205 | if (PyErr_Occurred()) SWIG_fail; | |
26206 | } | |
26207 | Py_INCREF(Py_None); resultobj = Py_None; | |
26208 | return resultobj; | |
26209 | fail: | |
26210 | return NULL; | |
26211 | } | |
26212 | ||
26213 | ||
c370783e | 26214 | static PyObject *_wrap_Window_RefreshRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26215 | PyObject *resultobj; |
26216 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26217 | wxRect *arg2 = 0 ; | |
26218 | wxRect temp2 ; | |
26219 | PyObject * obj0 = 0 ; | |
26220 | PyObject * obj1 = 0 ; | |
26221 | char *kwnames[] = { | |
26222 | (char *) "self",(char *) "rect", NULL | |
26223 | }; | |
26224 | ||
26225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
26226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26228 | { | |
26229 | arg2 = &temp2; | |
26230 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
26231 | } | |
26232 | { | |
26233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26234 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
26235 | ||
26236 | wxPyEndAllowThreads(__tstate); | |
26237 | if (PyErr_Occurred()) SWIG_fail; | |
26238 | } | |
26239 | Py_INCREF(Py_None); resultobj = Py_None; | |
26240 | return resultobj; | |
26241 | fail: | |
26242 | return NULL; | |
26243 | } | |
26244 | ||
26245 | ||
c370783e | 26246 | static PyObject *_wrap_Window_Update(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26247 | PyObject *resultobj; |
26248 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26249 | PyObject * obj0 = 0 ; | |
26250 | char *kwnames[] = { | |
26251 | (char *) "self", NULL | |
26252 | }; | |
26253 | ||
26254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
26255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26257 | { | |
26258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26259 | (arg1)->Update(); | |
26260 | ||
26261 | wxPyEndAllowThreads(__tstate); | |
26262 | if (PyErr_Occurred()) SWIG_fail; | |
26263 | } | |
26264 | Py_INCREF(Py_None); resultobj = Py_None; | |
26265 | return resultobj; | |
26266 | fail: | |
26267 | return NULL; | |
26268 | } | |
26269 | ||
26270 | ||
c370783e | 26271 | static PyObject *_wrap_Window_ClearBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26272 | PyObject *resultobj; |
26273 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26274 | PyObject * obj0 = 0 ; | |
26275 | char *kwnames[] = { | |
26276 | (char *) "self", NULL | |
26277 | }; | |
26278 | ||
26279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
26280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26282 | { | |
26283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26284 | (arg1)->ClearBackground(); | |
26285 | ||
26286 | wxPyEndAllowThreads(__tstate); | |
26287 | if (PyErr_Occurred()) SWIG_fail; | |
26288 | } | |
26289 | Py_INCREF(Py_None); resultobj = Py_None; | |
26290 | return resultobj; | |
26291 | fail: | |
26292 | return NULL; | |
26293 | } | |
26294 | ||
26295 | ||
c370783e | 26296 | static PyObject *_wrap_Window_Freeze(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26297 | PyObject *resultobj; |
26298 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26299 | PyObject * obj0 = 0 ; | |
26300 | char *kwnames[] = { | |
26301 | (char *) "self", NULL | |
26302 | }; | |
26303 | ||
26304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
26305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26307 | { | |
26308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26309 | (arg1)->Freeze(); | |
26310 | ||
26311 | wxPyEndAllowThreads(__tstate); | |
26312 | if (PyErr_Occurred()) SWIG_fail; | |
26313 | } | |
26314 | Py_INCREF(Py_None); resultobj = Py_None; | |
26315 | return resultobj; | |
26316 | fail: | |
26317 | return NULL; | |
26318 | } | |
26319 | ||
26320 | ||
c370783e | 26321 | static PyObject *_wrap_Window_Thaw(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26322 | PyObject *resultobj; |
26323 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26324 | PyObject * obj0 = 0 ; | |
26325 | char *kwnames[] = { | |
26326 | (char *) "self", NULL | |
26327 | }; | |
26328 | ||
26329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
26330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26332 | { | |
26333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26334 | (arg1)->Thaw(); | |
26335 | ||
26336 | wxPyEndAllowThreads(__tstate); | |
26337 | if (PyErr_Occurred()) SWIG_fail; | |
26338 | } | |
26339 | Py_INCREF(Py_None); resultobj = Py_None; | |
26340 | return resultobj; | |
26341 | fail: | |
26342 | return NULL; | |
26343 | } | |
26344 | ||
26345 | ||
c370783e | 26346 | static PyObject *_wrap_Window_PrepareDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26347 | PyObject *resultobj; |
26348 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26349 | wxDC *arg2 = 0 ; | |
26350 | PyObject * obj0 = 0 ; | |
26351 | PyObject * obj1 = 0 ; | |
26352 | char *kwnames[] = { | |
26353 | (char *) "self",(char *) "dc", NULL | |
26354 | }; | |
26355 | ||
26356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
26357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26359 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
26360 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26361 | SWIG_fail; | |
26362 | if (arg2 == NULL) { | |
26363 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26364 | SWIG_fail; | |
26365 | } | |
26366 | { | |
26367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26368 | (arg1)->PrepareDC(*arg2); | |
26369 | ||
26370 | wxPyEndAllowThreads(__tstate); | |
26371 | if (PyErr_Occurred()) SWIG_fail; | |
26372 | } | |
26373 | Py_INCREF(Py_None); resultobj = Py_None; | |
26374 | return resultobj; | |
26375 | fail: | |
26376 | return NULL; | |
26377 | } | |
26378 | ||
26379 | ||
c370783e | 26380 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26381 | PyObject *resultobj; |
26382 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26383 | wxRegion *result; | |
26384 | PyObject * obj0 = 0 ; | |
26385 | char *kwnames[] = { | |
26386 | (char *) "self", NULL | |
26387 | }; | |
26388 | ||
26389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
26390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26392 | { | |
26393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26394 | { | |
26395 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
26396 | result = (wxRegion *) &_result_ref; | |
26397 | } | |
26398 | ||
26399 | wxPyEndAllowThreads(__tstate); | |
26400 | if (PyErr_Occurred()) SWIG_fail; | |
26401 | } | |
26402 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); | |
26403 | return resultobj; | |
26404 | fail: | |
26405 | return NULL; | |
26406 | } | |
26407 | ||
26408 | ||
c370783e | 26409 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26410 | PyObject *resultobj; |
26411 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26412 | wxRect result; | |
26413 | PyObject * obj0 = 0 ; | |
26414 | char *kwnames[] = { | |
26415 | (char *) "self", NULL | |
26416 | }; | |
26417 | ||
26418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
26419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26421 | { | |
26422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26423 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
26424 | ||
26425 | wxPyEndAllowThreads(__tstate); | |
26426 | if (PyErr_Occurred()) SWIG_fail; | |
26427 | } | |
26428 | { | |
26429 | wxRect * resultptr; | |
26430 | resultptr = new wxRect((wxRect &) result); | |
26431 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
26432 | } | |
26433 | return resultobj; | |
26434 | fail: | |
26435 | return NULL; | |
26436 | } | |
26437 | ||
26438 | ||
c370783e | 26439 | static PyObject *_wrap_Window_IsExposed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26440 | PyObject *resultobj; |
26441 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26442 | int arg2 ; | |
26443 | int arg3 ; | |
26444 | int arg4 = (int) 1 ; | |
26445 | int arg5 = (int) 1 ; | |
26446 | bool result; | |
26447 | PyObject * obj0 = 0 ; | |
26448 | PyObject * obj1 = 0 ; | |
26449 | PyObject * obj2 = 0 ; | |
26450 | PyObject * obj3 = 0 ; | |
26451 | PyObject * obj4 = 0 ; | |
26452 | char *kwnames[] = { | |
26453 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
26454 | }; | |
26455 | ||
26456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26459 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26460 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26461 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26462 | if (PyErr_Occurred()) SWIG_fail; |
26463 | if (obj3) { | |
c370783e | 26464 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26465 | if (PyErr_Occurred()) SWIG_fail; |
26466 | } | |
26467 | if (obj4) { | |
c370783e | 26468 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
26469 | if (PyErr_Occurred()) SWIG_fail; |
26470 | } | |
26471 | { | |
26472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26473 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
26474 | ||
26475 | wxPyEndAllowThreads(__tstate); | |
26476 | if (PyErr_Occurred()) SWIG_fail; | |
26477 | } | |
26478 | { | |
26479 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26480 | } | |
26481 | return resultobj; | |
26482 | fail: | |
26483 | return NULL; | |
26484 | } | |
26485 | ||
26486 | ||
c370783e | 26487 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26488 | PyObject *resultobj; |
26489 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26490 | wxPoint *arg2 = 0 ; | |
26491 | bool result; | |
26492 | wxPoint temp2 ; | |
26493 | PyObject * obj0 = 0 ; | |
26494 | PyObject * obj1 = 0 ; | |
26495 | char *kwnames[] = { | |
26496 | (char *) "self",(char *) "pt", NULL | |
26497 | }; | |
26498 | ||
26499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
26500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26502 | { | |
26503 | arg2 = &temp2; | |
26504 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26505 | } | |
26506 | { | |
26507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26508 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
26509 | ||
26510 | wxPyEndAllowThreads(__tstate); | |
26511 | if (PyErr_Occurred()) SWIG_fail; | |
26512 | } | |
26513 | { | |
26514 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26515 | } | |
26516 | return resultobj; | |
26517 | fail: | |
26518 | return NULL; | |
26519 | } | |
26520 | ||
26521 | ||
c370783e | 26522 | static PyObject *_wrap_Window_IsExposedRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26523 | PyObject *resultobj; |
26524 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26525 | wxRect *arg2 = 0 ; | |
26526 | bool result; | |
26527 | wxRect temp2 ; | |
26528 | PyObject * obj0 = 0 ; | |
26529 | PyObject * obj1 = 0 ; | |
26530 | char *kwnames[] = { | |
26531 | (char *) "self",(char *) "rect", NULL | |
26532 | }; | |
26533 | ||
26534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; | |
26535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26537 | { | |
26538 | arg2 = &temp2; | |
26539 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
26540 | } | |
26541 | { | |
26542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26543 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
26544 | ||
26545 | wxPyEndAllowThreads(__tstate); | |
26546 | if (PyErr_Occurred()) SWIG_fail; | |
26547 | } | |
26548 | { | |
26549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26550 | } | |
26551 | return resultobj; | |
26552 | fail: | |
26553 | return NULL; | |
26554 | } | |
26555 | ||
26556 | ||
c370783e | 26557 | static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26558 | PyObject *resultobj; |
26559 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26560 | wxVisualAttributes result; | |
26561 | PyObject * obj0 = 0 ; | |
26562 | char *kwnames[] = { | |
26563 | (char *) "self", NULL | |
26564 | }; | |
26565 | ||
26566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
26567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26569 | { | |
26570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26571 | result = ((wxWindow const *)arg1)->GetDefaultAttributes(); | |
26572 | ||
26573 | wxPyEndAllowThreads(__tstate); | |
26574 | if (PyErr_Occurred()) SWIG_fail; | |
26575 | } | |
26576 | { | |
26577 | wxVisualAttributes * resultptr; | |
26578 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
26579 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
26580 | } | |
26581 | return resultobj; | |
26582 | fail: | |
26583 | return NULL; | |
26584 | } | |
26585 | ||
26586 | ||
c370783e | 26587 | static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26588 | PyObject *resultobj; |
26589 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
26590 | wxVisualAttributes result; | |
26591 | PyObject * obj0 = 0 ; | |
26592 | char *kwnames[] = { | |
26593 | (char *) "variant", NULL | |
26594 | }; | |
26595 | ||
26596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
26597 | if (obj0) { | |
c370783e | 26598 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
26599 | if (PyErr_Occurred()) SWIG_fail; |
26600 | } | |
26601 | { | |
0439c23b | 26602 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
26603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26604 | result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
26605 | ||
26606 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26607 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
26608 | } |
26609 | { | |
26610 | wxVisualAttributes * resultptr; | |
26611 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
26612 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
26613 | } | |
26614 | return resultobj; | |
26615 | fail: | |
26616 | return NULL; | |
26617 | } | |
26618 | ||
26619 | ||
c370783e | 26620 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26621 | PyObject *resultobj; |
26622 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26623 | wxColour *arg2 = 0 ; | |
26624 | bool result; | |
26625 | wxColour temp2 ; | |
26626 | PyObject * obj0 = 0 ; | |
26627 | PyObject * obj1 = 0 ; | |
26628 | char *kwnames[] = { | |
26629 | (char *) "self",(char *) "colour", NULL | |
26630 | }; | |
26631 | ||
26632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
26633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26635 | { | |
26636 | arg2 = &temp2; | |
26637 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26638 | } | |
26639 | { | |
26640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26641 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
26642 | ||
26643 | wxPyEndAllowThreads(__tstate); | |
26644 | if (PyErr_Occurred()) SWIG_fail; | |
26645 | } | |
26646 | { | |
26647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26648 | } | |
26649 | return resultobj; | |
26650 | fail: | |
26651 | return NULL; | |
26652 | } | |
26653 | ||
26654 | ||
c370783e | 26655 | static PyObject *_wrap_Window_SetOwnBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26656 | PyObject *resultobj; |
26657 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26658 | wxColour *arg2 = 0 ; | |
26659 | wxColour temp2 ; | |
26660 | PyObject * obj0 = 0 ; | |
26661 | PyObject * obj1 = 0 ; | |
26662 | char *kwnames[] = { | |
26663 | (char *) "self",(char *) "colour", NULL | |
26664 | }; | |
26665 | ||
412d302d | 26666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
26667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26669 | { | |
26670 | arg2 = &temp2; | |
26671 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26672 | } | |
26673 | { | |
26674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
412d302d | 26675 | (arg1)->SetOwnBackgroundColour((wxColour const &)*arg2); |
d55e5bfc RD |
26676 | |
26677 | wxPyEndAllowThreads(__tstate); | |
26678 | if (PyErr_Occurred()) SWIG_fail; | |
26679 | } | |
26680 | Py_INCREF(Py_None); resultobj = Py_None; | |
26681 | return resultobj; | |
26682 | fail: | |
26683 | return NULL; | |
26684 | } | |
26685 | ||
26686 | ||
c370783e | 26687 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26688 | PyObject *resultobj; |
26689 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26690 | wxColour *arg2 = 0 ; | |
26691 | bool result; | |
26692 | wxColour temp2 ; | |
26693 | PyObject * obj0 = 0 ; | |
26694 | PyObject * obj1 = 0 ; | |
26695 | char *kwnames[] = { | |
26696 | (char *) "self",(char *) "colour", NULL | |
26697 | }; | |
26698 | ||
26699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
26700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26702 | { | |
26703 | arg2 = &temp2; | |
26704 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26705 | } | |
26706 | { | |
26707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26708 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
26709 | ||
26710 | wxPyEndAllowThreads(__tstate); | |
26711 | if (PyErr_Occurred()) SWIG_fail; | |
26712 | } | |
26713 | { | |
26714 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26715 | } | |
26716 | return resultobj; | |
26717 | fail: | |
26718 | return NULL; | |
26719 | } | |
26720 | ||
26721 | ||
c370783e | 26722 | static PyObject *_wrap_Window_SetOwnForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26723 | PyObject *resultobj; |
26724 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26725 | wxColour *arg2 = 0 ; | |
26726 | wxColour temp2 ; | |
26727 | PyObject * obj0 = 0 ; | |
26728 | PyObject * obj1 = 0 ; | |
26729 | char *kwnames[] = { | |
26730 | (char *) "self",(char *) "colour", NULL | |
26731 | }; | |
26732 | ||
fa47d7a7 | 26733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnForegroundColour",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
26734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26736 | { | |
26737 | arg2 = &temp2; | |
26738 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26739 | } | |
26740 | { | |
26741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 26742 | (arg1)->SetOwnForegroundColour((wxColour const &)*arg2); |
d55e5bfc RD |
26743 | |
26744 | wxPyEndAllowThreads(__tstate); | |
26745 | if (PyErr_Occurred()) SWIG_fail; | |
26746 | } | |
26747 | Py_INCREF(Py_None); resultobj = Py_None; | |
26748 | return resultobj; | |
26749 | fail: | |
26750 | return NULL; | |
26751 | } | |
26752 | ||
26753 | ||
c370783e | 26754 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26755 | PyObject *resultobj; |
26756 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26757 | wxColour result; | |
26758 | PyObject * obj0 = 0 ; | |
26759 | char *kwnames[] = { | |
26760 | (char *) "self", NULL | |
26761 | }; | |
26762 | ||
26763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
26764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26766 | { | |
26767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26768 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
26769 | ||
26770 | wxPyEndAllowThreads(__tstate); | |
26771 | if (PyErr_Occurred()) SWIG_fail; | |
26772 | } | |
26773 | { | |
26774 | wxColour * resultptr; | |
26775 | resultptr = new wxColour((wxColour &) result); | |
26776 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
26777 | } | |
26778 | return resultobj; | |
26779 | fail: | |
26780 | return NULL; | |
26781 | } | |
26782 | ||
26783 | ||
c370783e | 26784 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26785 | PyObject *resultobj; |
26786 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26787 | wxColour result; | |
26788 | PyObject * obj0 = 0 ; | |
26789 | char *kwnames[] = { | |
26790 | (char *) "self", NULL | |
26791 | }; | |
26792 | ||
26793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
26794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26796 | { | |
26797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26798 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
26799 | ||
26800 | wxPyEndAllowThreads(__tstate); | |
26801 | if (PyErr_Occurred()) SWIG_fail; | |
26802 | } | |
26803 | { | |
26804 | wxColour * resultptr; | |
26805 | resultptr = new wxColour((wxColour &) result); | |
26806 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
26807 | } | |
26808 | return resultobj; | |
26809 | fail: | |
26810 | return NULL; | |
26811 | } | |
26812 | ||
26813 | ||
c370783e | 26814 | static PyObject *_wrap_Window_SetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
0f63ec68 RD |
26815 | PyObject *resultobj; |
26816 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26817 | int arg2 ; | |
26818 | bool result; | |
26819 | PyObject * obj0 = 0 ; | |
26820 | PyObject * obj1 = 0 ; | |
26821 | char *kwnames[] = { | |
26822 | (char *) "self",(char *) "style", NULL | |
26823 | }; | |
26824 | ||
26825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundStyle",kwnames,&obj0,&obj1)) goto fail; | |
26826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26828 | arg2 = (int)SWIG_As_int(obj1); |
0f63ec68 RD |
26829 | if (PyErr_Occurred()) SWIG_fail; |
26830 | { | |
26831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26832 | result = (bool)(arg1)->SetBackgroundStyle((wxBackgroundStyle )arg2); | |
26833 | ||
26834 | wxPyEndAllowThreads(__tstate); | |
26835 | if (PyErr_Occurred()) SWIG_fail; | |
26836 | } | |
26837 | { | |
26838 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26839 | } | |
26840 | return resultobj; | |
26841 | fail: | |
26842 | return NULL; | |
26843 | } | |
26844 | ||
26845 | ||
c370783e | 26846 | static PyObject *_wrap_Window_GetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
0f63ec68 RD |
26847 | PyObject *resultobj; |
26848 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26849 | int result; | |
26850 | PyObject * obj0 = 0 ; | |
26851 | char *kwnames[] = { | |
26852 | (char *) "self", NULL | |
26853 | }; | |
26854 | ||
26855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundStyle",kwnames,&obj0)) goto fail; | |
26856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26858 | { | |
26859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26860 | result = (int)((wxWindow const *)arg1)->GetBackgroundStyle(); | |
26861 | ||
26862 | wxPyEndAllowThreads(__tstate); | |
26863 | if (PyErr_Occurred()) SWIG_fail; | |
26864 | } | |
c370783e | 26865 | resultobj = SWIG_From_int((int)result); |
0f63ec68 RD |
26866 | return resultobj; |
26867 | fail: | |
26868 | return NULL; | |
26869 | } | |
26870 | ||
26871 | ||
c370783e | 26872 | static PyObject *_wrap_Window_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26873 | PyObject *resultobj; |
26874 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26875 | wxCursor *arg2 = 0 ; | |
26876 | bool result; | |
26877 | PyObject * obj0 = 0 ; | |
26878 | PyObject * obj1 = 0 ; | |
26879 | char *kwnames[] = { | |
26880 | (char *) "self",(char *) "cursor", NULL | |
26881 | }; | |
26882 | ||
26883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
26884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26886 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
26887 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26888 | SWIG_fail; | |
26889 | if (arg2 == NULL) { | |
26890 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26891 | SWIG_fail; | |
26892 | } | |
26893 | { | |
26894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26895 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
26896 | ||
26897 | wxPyEndAllowThreads(__tstate); | |
26898 | if (PyErr_Occurred()) SWIG_fail; | |
26899 | } | |
26900 | { | |
26901 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26902 | } | |
26903 | return resultobj; | |
26904 | fail: | |
26905 | return NULL; | |
26906 | } | |
26907 | ||
26908 | ||
c370783e | 26909 | static PyObject *_wrap_Window_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26910 | PyObject *resultobj; |
26911 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a001823c | 26912 | wxCursor result; |
d55e5bfc RD |
26913 | PyObject * obj0 = 0 ; |
26914 | char *kwnames[] = { | |
26915 | (char *) "self", NULL | |
26916 | }; | |
26917 | ||
26918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
26919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26921 | { | |
26922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a001823c | 26923 | result = (arg1)->GetCursor(); |
d55e5bfc RD |
26924 | |
26925 | wxPyEndAllowThreads(__tstate); | |
26926 | if (PyErr_Occurred()) SWIG_fail; | |
26927 | } | |
26928 | { | |
a001823c RD |
26929 | wxCursor * resultptr; |
26930 | resultptr = new wxCursor((wxCursor &) result); | |
26931 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
d55e5bfc RD |
26932 | } |
26933 | return resultobj; | |
26934 | fail: | |
26935 | return NULL; | |
26936 | } | |
26937 | ||
26938 | ||
c370783e | 26939 | static PyObject *_wrap_Window_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26940 | PyObject *resultobj; |
26941 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26942 | wxFont *arg2 = 0 ; | |
26943 | bool result; | |
26944 | PyObject * obj0 = 0 ; | |
26945 | PyObject * obj1 = 0 ; | |
26946 | char *kwnames[] = { | |
26947 | (char *) "self",(char *) "font", NULL | |
26948 | }; | |
26949 | ||
26950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
26951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26953 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
26954 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26955 | SWIG_fail; | |
26956 | if (arg2 == NULL) { | |
26957 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26958 | SWIG_fail; | |
26959 | } | |
26960 | { | |
26961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26962 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
26963 | ||
26964 | wxPyEndAllowThreads(__tstate); | |
26965 | if (PyErr_Occurred()) SWIG_fail; | |
26966 | } | |
26967 | { | |
26968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26969 | } | |
26970 | return resultobj; | |
26971 | fail: | |
26972 | return NULL; | |
26973 | } | |
26974 | ||
26975 | ||
c370783e | 26976 | static PyObject *_wrap_Window_SetOwnFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26977 | PyObject *resultobj; |
26978 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26979 | wxFont *arg2 = 0 ; | |
26980 | PyObject * obj0 = 0 ; | |
26981 | PyObject * obj1 = 0 ; | |
26982 | char *kwnames[] = { | |
26983 | (char *) "self",(char *) "font", NULL | |
26984 | }; | |
26985 | ||
fa47d7a7 | 26986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnFont",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
26987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26989 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
26990 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26991 | SWIG_fail; | |
26992 | if (arg2 == NULL) { | |
26993 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26994 | SWIG_fail; | |
26995 | } | |
26996 | { | |
26997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 26998 | (arg1)->SetOwnFont((wxFont const &)*arg2); |
d55e5bfc RD |
26999 | |
27000 | wxPyEndAllowThreads(__tstate); | |
27001 | if (PyErr_Occurred()) SWIG_fail; | |
27002 | } | |
27003 | Py_INCREF(Py_None); resultobj = Py_None; | |
27004 | return resultobj; | |
27005 | fail: | |
27006 | return NULL; | |
27007 | } | |
27008 | ||
27009 | ||
c370783e | 27010 | static PyObject *_wrap_Window_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27011 | PyObject *resultobj; |
27012 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a001823c | 27013 | wxFont result; |
d55e5bfc RD |
27014 | PyObject * obj0 = 0 ; |
27015 | char *kwnames[] = { | |
27016 | (char *) "self", NULL | |
27017 | }; | |
27018 | ||
27019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
27020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27022 | { | |
27023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a001823c | 27024 | result = (arg1)->GetFont(); |
d55e5bfc RD |
27025 | |
27026 | wxPyEndAllowThreads(__tstate); | |
27027 | if (PyErr_Occurred()) SWIG_fail; | |
27028 | } | |
27029 | { | |
a001823c RD |
27030 | wxFont * resultptr; |
27031 | resultptr = new wxFont((wxFont &) result); | |
27032 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
d55e5bfc RD |
27033 | } |
27034 | return resultobj; | |
27035 | fail: | |
27036 | return NULL; | |
27037 | } | |
27038 | ||
27039 | ||
c370783e | 27040 | static PyObject *_wrap_Window_SetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27041 | PyObject *resultobj; |
27042 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27043 | wxCaret *arg2 = (wxCaret *) 0 ; | |
27044 | PyObject * obj0 = 0 ; | |
27045 | PyObject * obj1 = 0 ; | |
27046 | char *kwnames[] = { | |
27047 | (char *) "self",(char *) "caret", NULL | |
27048 | }; | |
27049 | ||
27050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
27051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27053 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret, | |
27054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27055 | { | |
27056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27057 | (arg1)->SetCaret(arg2); | |
27058 | ||
27059 | wxPyEndAllowThreads(__tstate); | |
27060 | if (PyErr_Occurred()) SWIG_fail; | |
27061 | } | |
27062 | Py_INCREF(Py_None); resultobj = Py_None; | |
27063 | return resultobj; | |
27064 | fail: | |
27065 | return NULL; | |
27066 | } | |
27067 | ||
27068 | ||
c370783e | 27069 | static PyObject *_wrap_Window_GetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27070 | PyObject *resultobj; |
27071 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27072 | wxCaret *result; | |
27073 | PyObject * obj0 = 0 ; | |
27074 | char *kwnames[] = { | |
27075 | (char *) "self", NULL | |
27076 | }; | |
27077 | ||
27078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
27079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27081 | { | |
27082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27083 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
27084 | ||
27085 | wxPyEndAllowThreads(__tstate); | |
27086 | if (PyErr_Occurred()) SWIG_fail; | |
27087 | } | |
27088 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); | |
27089 | return resultobj; | |
27090 | fail: | |
27091 | return NULL; | |
27092 | } | |
27093 | ||
27094 | ||
c370783e | 27095 | static PyObject *_wrap_Window_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27096 | PyObject *resultobj; |
27097 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27098 | int result; | |
27099 | PyObject * obj0 = 0 ; | |
27100 | char *kwnames[] = { | |
27101 | (char *) "self", NULL | |
27102 | }; | |
27103 | ||
27104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
27105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27107 | { | |
27108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27109 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
27110 | ||
27111 | wxPyEndAllowThreads(__tstate); | |
27112 | if (PyErr_Occurred()) SWIG_fail; | |
27113 | } | |
c370783e | 27114 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27115 | return resultobj; |
27116 | fail: | |
27117 | return NULL; | |
27118 | } | |
27119 | ||
27120 | ||
c370783e | 27121 | static PyObject *_wrap_Window_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27122 | PyObject *resultobj; |
27123 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27124 | int result; | |
27125 | PyObject * obj0 = 0 ; | |
27126 | char *kwnames[] = { | |
27127 | (char *) "self", NULL | |
27128 | }; | |
27129 | ||
27130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
27131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27133 | { | |
27134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27135 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
27136 | ||
27137 | wxPyEndAllowThreads(__tstate); | |
27138 | if (PyErr_Occurred()) SWIG_fail; | |
27139 | } | |
c370783e | 27140 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27141 | return resultobj; |
27142 | fail: | |
27143 | return NULL; | |
27144 | } | |
27145 | ||
27146 | ||
c370783e | 27147 | static PyObject *_wrap_Window_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27148 | PyObject *resultobj; |
27149 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27150 | wxString *arg2 = 0 ; | |
27151 | int *arg3 = (int *) 0 ; | |
27152 | int *arg4 = (int *) 0 ; | |
b411df4a | 27153 | bool temp2 = false ; |
d55e5bfc | 27154 | int temp3 ; |
c370783e | 27155 | int res3 = 0 ; |
d55e5bfc | 27156 | int temp4 ; |
c370783e | 27157 | int res4 = 0 ; |
d55e5bfc RD |
27158 | PyObject * obj0 = 0 ; |
27159 | PyObject * obj1 = 0 ; | |
27160 | char *kwnames[] = { | |
27161 | (char *) "self",(char *) "string", NULL | |
27162 | }; | |
27163 | ||
c370783e RD |
27164 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
27165 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
27166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; |
27167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27169 | { | |
27170 | arg2 = wxString_in_helper(obj1); | |
27171 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 27172 | temp2 = true; |
d55e5bfc RD |
27173 | } |
27174 | { | |
27175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27176 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
27177 | ||
27178 | wxPyEndAllowThreads(__tstate); | |
27179 | if (PyErr_Occurred()) SWIG_fail; | |
27180 | } | |
27181 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
27182 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
27183 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
27184 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
27185 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27186 | { |
27187 | if (temp2) | |
27188 | delete arg2; | |
27189 | } | |
27190 | return resultobj; | |
27191 | fail: | |
27192 | { | |
27193 | if (temp2) | |
27194 | delete arg2; | |
27195 | } | |
27196 | return NULL; | |
27197 | } | |
27198 | ||
27199 | ||
c370783e | 27200 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27201 | PyObject *resultobj; |
27202 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27203 | wxString *arg2 = 0 ; | |
27204 | int *arg3 = (int *) 0 ; | |
27205 | int *arg4 = (int *) 0 ; | |
27206 | int *arg5 = (int *) 0 ; | |
27207 | int *arg6 = (int *) 0 ; | |
27208 | wxFont *arg7 = (wxFont *) NULL ; | |
b411df4a | 27209 | bool temp2 = false ; |
d55e5bfc | 27210 | int temp3 ; |
c370783e | 27211 | int res3 = 0 ; |
d55e5bfc | 27212 | int temp4 ; |
c370783e | 27213 | int res4 = 0 ; |
d55e5bfc | 27214 | int temp5 ; |
c370783e | 27215 | int res5 = 0 ; |
d55e5bfc | 27216 | int temp6 ; |
c370783e | 27217 | int res6 = 0 ; |
d55e5bfc RD |
27218 | PyObject * obj0 = 0 ; |
27219 | PyObject * obj1 = 0 ; | |
27220 | PyObject * obj2 = 0 ; | |
27221 | char *kwnames[] = { | |
27222 | (char *) "self",(char *) "string",(char *) "font", NULL | |
27223 | }; | |
27224 | ||
c370783e RD |
27225 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
27226 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
27227 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
27228 | arg6 = &temp6; res6 = SWIG_NEWOBJ; | |
d55e5bfc RD |
27229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
27230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27232 | { | |
27233 | arg2 = wxString_in_helper(obj1); | |
27234 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 27235 | temp2 = true; |
d55e5bfc RD |
27236 | } |
27237 | if (obj2) { | |
27238 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, | |
27239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27240 | } | |
27241 | { | |
27242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27243 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
27244 | ||
27245 | wxPyEndAllowThreads(__tstate); | |
27246 | if (PyErr_Occurred()) SWIG_fail; | |
27247 | } | |
27248 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
27249 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
27250 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
27251 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
27252 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
27253 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
27254 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
27255 | resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ? | |
27256 | SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27257 | { |
27258 | if (temp2) | |
27259 | delete arg2; | |
27260 | } | |
27261 | return resultobj; | |
27262 | fail: | |
27263 | { | |
27264 | if (temp2) | |
27265 | delete arg2; | |
27266 | } | |
27267 | return NULL; | |
27268 | } | |
27269 | ||
27270 | ||
c370783e | 27271 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27272 | PyObject *resultobj; |
27273 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27274 | int *arg2 = (int *) 0 ; | |
27275 | int *arg3 = (int *) 0 ; | |
27276 | int temp2 ; | |
c370783e | 27277 | int res2 = 0 ; |
d55e5bfc | 27278 | int temp3 ; |
c370783e | 27279 | int res3 = 0 ; |
d55e5bfc RD |
27280 | PyObject * obj0 = 0 ; |
27281 | PyObject * obj1 = 0 ; | |
27282 | PyObject * obj2 = 0 ; | |
27283 | char *kwnames[] = { | |
27284 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27285 | }; | |
27286 | ||
27287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27290 | { | |
c370783e RD |
27291 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) { |
27292 | temp2 = SWIG_As_int(obj1); | |
27293 | if (PyErr_Occurred()) SWIG_fail; | |
27294 | arg2 = &temp2; | |
27295 | res2 = SWIG_NEWOBJ; | |
27296 | } | |
d55e5bfc RD |
27297 | } |
27298 | { | |
c370783e RD |
27299 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) { |
27300 | temp3 = SWIG_As_int(obj2); | |
27301 | if (PyErr_Occurred()) SWIG_fail; | |
27302 | arg3 = &temp3; | |
27303 | res3 = SWIG_NEWOBJ; | |
27304 | } | |
d55e5bfc RD |
27305 | } |
27306 | { | |
27307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27308 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
27309 | ||
27310 | wxPyEndAllowThreads(__tstate); | |
27311 | if (PyErr_Occurred()) SWIG_fail; | |
27312 | } | |
27313 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
27314 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
27315 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
27316 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
27317 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27318 | return resultobj; |
27319 | fail: | |
27320 | return NULL; | |
27321 | } | |
27322 | ||
27323 | ||
c370783e | 27324 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27325 | PyObject *resultobj; |
27326 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27327 | int *arg2 = (int *) 0 ; | |
27328 | int *arg3 = (int *) 0 ; | |
27329 | int temp2 ; | |
c370783e | 27330 | int res2 = 0 ; |
d55e5bfc | 27331 | int temp3 ; |
c370783e | 27332 | int res3 = 0 ; |
d55e5bfc RD |
27333 | PyObject * obj0 = 0 ; |
27334 | PyObject * obj1 = 0 ; | |
27335 | PyObject * obj2 = 0 ; | |
27336 | char *kwnames[] = { | |
27337 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27338 | }; | |
27339 | ||
27340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27343 | { | |
c370783e RD |
27344 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) { |
27345 | temp2 = SWIG_As_int(obj1); | |
27346 | if (PyErr_Occurred()) SWIG_fail; | |
27347 | arg2 = &temp2; | |
27348 | res2 = SWIG_NEWOBJ; | |
27349 | } | |
d55e5bfc RD |
27350 | } |
27351 | { | |
c370783e RD |
27352 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) { |
27353 | temp3 = SWIG_As_int(obj2); | |
27354 | if (PyErr_Occurred()) SWIG_fail; | |
27355 | arg3 = &temp3; | |
27356 | res3 = SWIG_NEWOBJ; | |
27357 | } | |
d55e5bfc RD |
27358 | } |
27359 | { | |
27360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27361 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
27362 | ||
27363 | wxPyEndAllowThreads(__tstate); | |
27364 | if (PyErr_Occurred()) SWIG_fail; | |
27365 | } | |
27366 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
27367 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
27368 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
27369 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
27370 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27371 | return resultobj; |
27372 | fail: | |
27373 | return NULL; | |
27374 | } | |
27375 | ||
27376 | ||
c370783e | 27377 | static PyObject *_wrap_Window_ClientToScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27378 | PyObject *resultobj; |
27379 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27380 | wxPoint *arg2 = 0 ; | |
27381 | wxPoint result; | |
27382 | wxPoint temp2 ; | |
27383 | PyObject * obj0 = 0 ; | |
27384 | PyObject * obj1 = 0 ; | |
27385 | char *kwnames[] = { | |
27386 | (char *) "self",(char *) "pt", NULL | |
27387 | }; | |
27388 | ||
27389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
27390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27392 | { | |
27393 | arg2 = &temp2; | |
27394 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27395 | } | |
27396 | { | |
27397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27398 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
27399 | ||
27400 | wxPyEndAllowThreads(__tstate); | |
27401 | if (PyErr_Occurred()) SWIG_fail; | |
27402 | } | |
27403 | { | |
27404 | wxPoint * resultptr; | |
27405 | resultptr = new wxPoint((wxPoint &) result); | |
27406 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
27407 | } | |
27408 | return resultobj; | |
27409 | fail: | |
27410 | return NULL; | |
27411 | } | |
27412 | ||
27413 | ||
c370783e | 27414 | static PyObject *_wrap_Window_ScreenToClient(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27415 | PyObject *resultobj; |
27416 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27417 | wxPoint *arg2 = 0 ; | |
27418 | wxPoint result; | |
27419 | wxPoint temp2 ; | |
27420 | PyObject * obj0 = 0 ; | |
27421 | PyObject * obj1 = 0 ; | |
27422 | char *kwnames[] = { | |
27423 | (char *) "self",(char *) "pt", NULL | |
27424 | }; | |
27425 | ||
27426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
27427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27429 | { | |
27430 | arg2 = &temp2; | |
27431 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27432 | } | |
27433 | { | |
27434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27435 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
27436 | ||
27437 | wxPyEndAllowThreads(__tstate); | |
27438 | if (PyErr_Occurred()) SWIG_fail; | |
27439 | } | |
27440 | { | |
27441 | wxPoint * resultptr; | |
27442 | resultptr = new wxPoint((wxPoint &) result); | |
27443 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
27444 | } | |
27445 | return resultobj; | |
27446 | fail: | |
27447 | return NULL; | |
27448 | } | |
27449 | ||
27450 | ||
c370783e | 27451 | static PyObject *_wrap_Window_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27452 | PyObject *resultobj; |
27453 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27454 | int arg2 ; | |
27455 | int arg3 ; | |
27456 | int result; | |
27457 | PyObject * obj0 = 0 ; | |
27458 | PyObject * obj1 = 0 ; | |
27459 | PyObject * obj2 = 0 ; | |
27460 | char *kwnames[] = { | |
27461 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27462 | }; | |
27463 | ||
27464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27467 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27468 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27469 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
27470 | if (PyErr_Occurred()) SWIG_fail; |
27471 | { | |
27472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27473 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
27474 | ||
27475 | wxPyEndAllowThreads(__tstate); | |
27476 | if (PyErr_Occurred()) SWIG_fail; | |
27477 | } | |
c370783e | 27478 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27479 | return resultobj; |
27480 | fail: | |
27481 | return NULL; | |
27482 | } | |
27483 | ||
27484 | ||
c370783e | 27485 | static PyObject *_wrap_Window_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27486 | PyObject *resultobj; |
27487 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27488 | wxPoint *arg2 = 0 ; | |
27489 | int result; | |
27490 | wxPoint temp2 ; | |
27491 | PyObject * obj0 = 0 ; | |
27492 | PyObject * obj1 = 0 ; | |
27493 | char *kwnames[] = { | |
27494 | (char *) "self",(char *) "pt", NULL | |
27495 | }; | |
27496 | ||
27497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
27498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27500 | { | |
27501 | arg2 = &temp2; | |
27502 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27503 | } | |
27504 | { | |
27505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27506 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
27507 | ||
27508 | wxPyEndAllowThreads(__tstate); | |
27509 | if (PyErr_Occurred()) SWIG_fail; | |
27510 | } | |
c370783e | 27511 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27512 | return resultobj; |
27513 | fail: | |
27514 | return NULL; | |
27515 | } | |
27516 | ||
27517 | ||
c370783e | 27518 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
27519 | PyObject *resultobj; |
27520 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27521 | long arg2 ; | |
27522 | int result; | |
27523 | PyObject * obj0 = 0 ; | |
27524 | PyObject * obj1 = 0 ; | |
27525 | ||
27526 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; | |
27527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27529 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
27530 | if (PyErr_Occurred()) SWIG_fail; |
27531 | { | |
27532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27533 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
27534 | ||
27535 | wxPyEndAllowThreads(__tstate); | |
27536 | if (PyErr_Occurred()) SWIG_fail; | |
27537 | } | |
c370783e | 27538 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27539 | return resultobj; |
27540 | fail: | |
27541 | return NULL; | |
27542 | } | |
27543 | ||
27544 | ||
c370783e | 27545 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
27546 | PyObject *resultobj; |
27547 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27548 | int result; | |
27549 | PyObject * obj0 = 0 ; | |
27550 | ||
27551 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; | |
27552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27554 | { | |
27555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27556 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
27557 | ||
27558 | wxPyEndAllowThreads(__tstate); | |
27559 | if (PyErr_Occurred()) SWIG_fail; | |
27560 | } | |
c370783e | 27561 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27562 | return resultobj; |
27563 | fail: | |
27564 | return NULL; | |
27565 | } | |
27566 | ||
27567 | ||
27568 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { | |
27569 | int argc; | |
27570 | PyObject *argv[3]; | |
27571 | int ii; | |
27572 | ||
27573 | argc = PyObject_Length(args); | |
27574 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
27575 | argv[ii] = PyTuple_GetItem(args,ii); | |
27576 | } | |
27577 | if (argc == 1) { | |
27578 | int _v; | |
27579 | { | |
27580 | void *ptr; | |
27581 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
27582 | _v = 0; | |
27583 | PyErr_Clear(); | |
27584 | } else { | |
27585 | _v = 1; | |
27586 | } | |
27587 | } | |
27588 | if (_v) { | |
27589 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
27590 | } | |
27591 | } | |
27592 | if (argc == 2) { | |
27593 | int _v; | |
27594 | { | |
27595 | void *ptr; | |
27596 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
27597 | _v = 0; | |
27598 | PyErr_Clear(); | |
27599 | } else { | |
27600 | _v = 1; | |
27601 | } | |
27602 | } | |
27603 | if (_v) { | |
c370783e | 27604 | _v = SWIG_Check_long(argv[1]); |
d55e5bfc RD |
27605 | if (_v) { |
27606 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
27607 | } | |
27608 | } | |
27609 | } | |
27610 | ||
27611 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'"); | |
27612 | return NULL; | |
27613 | } | |
27614 | ||
27615 | ||
c370783e | 27616 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27617 | PyObject *resultobj; |
27618 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27619 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
27620 | PyObject * obj0 = 0 ; | |
27621 | PyObject * obj1 = 0 ; | |
27622 | char *kwnames[] = { | |
27623 | (char *) "self",(char *) "flags", NULL | |
27624 | }; | |
27625 | ||
27626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; | |
27627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27629 | if (obj1) { | |
c370783e | 27630 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
27631 | if (PyErr_Occurred()) SWIG_fail; |
27632 | } | |
27633 | { | |
27634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27635 | (arg1)->UpdateWindowUI(arg2); | |
27636 | ||
27637 | wxPyEndAllowThreads(__tstate); | |
27638 | if (PyErr_Occurred()) SWIG_fail; | |
27639 | } | |
27640 | Py_INCREF(Py_None); resultobj = Py_None; | |
27641 | return resultobj; | |
27642 | fail: | |
27643 | return NULL; | |
27644 | } | |
27645 | ||
27646 | ||
c370783e | 27647 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27648 | PyObject *resultobj; |
27649 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27650 | wxMenu *arg2 = (wxMenu *) 0 ; | |
b0503257 RD |
27651 | int arg3 = (int) -1 ; |
27652 | int arg4 = (int) -1 ; | |
d55e5bfc RD |
27653 | bool result; |
27654 | PyObject * obj0 = 0 ; | |
27655 | PyObject * obj1 = 0 ; | |
27656 | PyObject * obj2 = 0 ; | |
27657 | PyObject * obj3 = 0 ; | |
27658 | char *kwnames[] = { | |
27659 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
27660 | }; | |
27661 | ||
b0503257 | 27662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
27663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27665 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
27666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b0503257 | 27667 | if (obj2) { |
c370783e | 27668 | arg3 = (int)SWIG_As_int(obj2); |
b0503257 RD |
27669 | if (PyErr_Occurred()) SWIG_fail; |
27670 | } | |
27671 | if (obj3) { | |
c370783e | 27672 | arg4 = (int)SWIG_As_int(obj3); |
b0503257 RD |
27673 | if (PyErr_Occurred()) SWIG_fail; |
27674 | } | |
d55e5bfc RD |
27675 | { |
27676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27677 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
27678 | ||
27679 | wxPyEndAllowThreads(__tstate); | |
27680 | if (PyErr_Occurred()) SWIG_fail; | |
27681 | } | |
27682 | { | |
27683 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27684 | } | |
27685 | return resultobj; | |
27686 | fail: | |
27687 | return NULL; | |
27688 | } | |
27689 | ||
27690 | ||
c370783e | 27691 | static PyObject *_wrap_Window_PopupMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27692 | PyObject *resultobj; |
27693 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27694 | wxMenu *arg2 = (wxMenu *) 0 ; | |
b0503257 RD |
27695 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27696 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
d55e5bfc RD |
27697 | bool result; |
27698 | wxPoint temp3 ; | |
27699 | PyObject * obj0 = 0 ; | |
27700 | PyObject * obj1 = 0 ; | |
27701 | PyObject * obj2 = 0 ; | |
27702 | char *kwnames[] = { | |
27703 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
27704 | }; | |
27705 | ||
b0503257 | 27706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
27707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27709 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
27710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b0503257 RD |
27711 | if (obj2) { |
27712 | { | |
27713 | arg3 = &temp3; | |
27714 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27715 | } | |
d55e5bfc RD |
27716 | } |
27717 | { | |
27718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27719 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
27720 | ||
27721 | wxPyEndAllowThreads(__tstate); | |
27722 | if (PyErr_Occurred()) SWIG_fail; | |
27723 | } | |
27724 | { | |
27725 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27726 | } | |
27727 | return resultobj; | |
27728 | fail: | |
27729 | return NULL; | |
27730 | } | |
27731 | ||
27732 | ||
c370783e | 27733 | static PyObject *_wrap_Window_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27734 | PyObject *resultobj; |
27735 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27736 | long result; | |
27737 | PyObject * obj0 = 0 ; | |
27738 | char *kwnames[] = { | |
27739 | (char *) "self", NULL | |
27740 | }; | |
27741 | ||
27742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
27743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27745 | { | |
27746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27747 | result = (long)wxWindow_GetHandle(arg1); | |
27748 | ||
27749 | wxPyEndAllowThreads(__tstate); | |
27750 | if (PyErr_Occurred()) SWIG_fail; | |
27751 | } | |
c370783e | 27752 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
27753 | return resultobj; |
27754 | fail: | |
27755 | return NULL; | |
27756 | } | |
27757 | ||
27758 | ||
629e65c2 RD |
27759 | static PyObject *_wrap_Window_AssociateHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
27760 | PyObject *resultobj; | |
27761 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27762 | long arg2 ; | |
27763 | PyObject * obj0 = 0 ; | |
27764 | PyObject * obj1 = 0 ; | |
27765 | char *kwnames[] = { | |
27766 | (char *) "self",(char *) "handle", NULL | |
27767 | }; | |
27768 | ||
27769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AssociateHandle",kwnames,&obj0,&obj1)) goto fail; | |
27770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27772 | arg2 = (long)SWIG_As_long(obj1); | |
27773 | if (PyErr_Occurred()) SWIG_fail; | |
27774 | { | |
27775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27776 | wxWindow_AssociateHandle(arg1,arg2); | |
27777 | ||
27778 | wxPyEndAllowThreads(__tstate); | |
27779 | if (PyErr_Occurred()) SWIG_fail; | |
27780 | } | |
27781 | Py_INCREF(Py_None); resultobj = Py_None; | |
27782 | return resultobj; | |
27783 | fail: | |
27784 | return NULL; | |
27785 | } | |
27786 | ||
27787 | ||
27788 | static PyObject *_wrap_Window_DissociateHandle(PyObject *, PyObject *args, PyObject *kwargs) { | |
27789 | PyObject *resultobj; | |
27790 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27791 | PyObject * obj0 = 0 ; | |
27792 | char *kwnames[] = { | |
27793 | (char *) "self", NULL | |
27794 | }; | |
27795 | ||
27796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DissociateHandle",kwnames,&obj0)) goto fail; | |
27797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27799 | { | |
27800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27801 | (arg1)->DissociateHandle(); | |
27802 | ||
27803 | wxPyEndAllowThreads(__tstate); | |
27804 | if (PyErr_Occurred()) SWIG_fail; | |
27805 | } | |
27806 | Py_INCREF(Py_None); resultobj = Py_None; | |
27807 | return resultobj; | |
27808 | fail: | |
27809 | return NULL; | |
27810 | } | |
27811 | ||
27812 | ||
c370783e | 27813 | static PyObject *_wrap_Window_HasScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27814 | PyObject *resultobj; |
27815 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27816 | int arg2 ; | |
27817 | bool result; | |
27818 | PyObject * obj0 = 0 ; | |
27819 | PyObject * obj1 = 0 ; | |
27820 | char *kwnames[] = { | |
27821 | (char *) "self",(char *) "orient", NULL | |
27822 | }; | |
27823 | ||
27824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; | |
27825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27827 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
27828 | if (PyErr_Occurred()) SWIG_fail; |
27829 | { | |
27830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27831 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
27832 | ||
27833 | wxPyEndAllowThreads(__tstate); | |
27834 | if (PyErr_Occurred()) SWIG_fail; | |
27835 | } | |
27836 | { | |
27837 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27838 | } | |
27839 | return resultobj; | |
27840 | fail: | |
27841 | return NULL; | |
27842 | } | |
27843 | ||
27844 | ||
c370783e | 27845 | static PyObject *_wrap_Window_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27846 | PyObject *resultobj; |
27847 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27848 | int arg2 ; | |
27849 | int arg3 ; | |
27850 | int arg4 ; | |
27851 | int arg5 ; | |
b411df4a | 27852 | bool arg6 = (bool) true ; |
d55e5bfc RD |
27853 | PyObject * obj0 = 0 ; |
27854 | PyObject * obj1 = 0 ; | |
27855 | PyObject * obj2 = 0 ; | |
27856 | PyObject * obj3 = 0 ; | |
27857 | PyObject * obj4 = 0 ; | |
27858 | PyObject * obj5 = 0 ; | |
27859 | char *kwnames[] = { | |
15817c7e | 27860 | (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL |
d55e5bfc RD |
27861 | }; |
27862 | ||
27863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
27864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27866 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27867 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27868 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 27869 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27870 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 27871 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27872 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
27873 | if (PyErr_Occurred()) SWIG_fail; |
27874 | if (obj5) { | |
c370783e | 27875 | arg6 = (bool)SWIG_As_bool(obj5); |
d55e5bfc RD |
27876 | if (PyErr_Occurred()) SWIG_fail; |
27877 | } | |
27878 | { | |
27879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27880 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
27881 | ||
27882 | wxPyEndAllowThreads(__tstate); | |
27883 | if (PyErr_Occurred()) SWIG_fail; | |
27884 | } | |
27885 | Py_INCREF(Py_None); resultobj = Py_None; | |
27886 | return resultobj; | |
27887 | fail: | |
27888 | return NULL; | |
27889 | } | |
27890 | ||
27891 | ||
c370783e | 27892 | static PyObject *_wrap_Window_SetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27893 | PyObject *resultobj; |
27894 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27895 | int arg2 ; | |
27896 | int arg3 ; | |
b411df4a | 27897 | bool arg4 = (bool) true ; |
d55e5bfc RD |
27898 | PyObject * obj0 = 0 ; |
27899 | PyObject * obj1 = 0 ; | |
27900 | PyObject * obj2 = 0 ; | |
27901 | PyObject * obj3 = 0 ; | |
27902 | char *kwnames[] = { | |
27903 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL | |
27904 | }; | |
27905 | ||
27906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
27907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27909 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27910 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27911 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
27912 | if (PyErr_Occurred()) SWIG_fail; |
27913 | if (obj3) { | |
c370783e | 27914 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
27915 | if (PyErr_Occurred()) SWIG_fail; |
27916 | } | |
27917 | { | |
27918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27919 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
27920 | ||
27921 | wxPyEndAllowThreads(__tstate); | |
27922 | if (PyErr_Occurred()) SWIG_fail; | |
27923 | } | |
27924 | Py_INCREF(Py_None); resultobj = Py_None; | |
27925 | return resultobj; | |
27926 | fail: | |
27927 | return NULL; | |
27928 | } | |
27929 | ||
27930 | ||
c370783e | 27931 | static PyObject *_wrap_Window_GetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27932 | PyObject *resultobj; |
27933 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27934 | int arg2 ; | |
27935 | int result; | |
27936 | PyObject * obj0 = 0 ; | |
27937 | PyObject * obj1 = 0 ; | |
27938 | char *kwnames[] = { | |
27939 | (char *) "self",(char *) "orientation", NULL | |
27940 | }; | |
27941 | ||
27942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; | |
27943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27945 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
27946 | if (PyErr_Occurred()) SWIG_fail; |
27947 | { | |
27948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27949 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
27950 | ||
27951 | wxPyEndAllowThreads(__tstate); | |
27952 | if (PyErr_Occurred()) SWIG_fail; | |
27953 | } | |
c370783e | 27954 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27955 | return resultobj; |
27956 | fail: | |
27957 | return NULL; | |
27958 | } | |
27959 | ||
27960 | ||
c370783e | 27961 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27962 | PyObject *resultobj; |
27963 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27964 | int arg2 ; | |
27965 | int result; | |
27966 | PyObject * obj0 = 0 ; | |
27967 | PyObject * obj1 = 0 ; | |
27968 | char *kwnames[] = { | |
27969 | (char *) "self",(char *) "orientation", NULL | |
27970 | }; | |
27971 | ||
27972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; | |
27973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27975 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
27976 | if (PyErr_Occurred()) SWIG_fail; |
27977 | { | |
27978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27979 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
27980 | ||
27981 | wxPyEndAllowThreads(__tstate); | |
27982 | if (PyErr_Occurred()) SWIG_fail; | |
27983 | } | |
c370783e | 27984 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27985 | return resultobj; |
27986 | fail: | |
27987 | return NULL; | |
27988 | } | |
27989 | ||
27990 | ||
c370783e | 27991 | static PyObject *_wrap_Window_GetScrollRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27992 | PyObject *resultobj; |
27993 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27994 | int arg2 ; | |
27995 | int result; | |
27996 | PyObject * obj0 = 0 ; | |
27997 | PyObject * obj1 = 0 ; | |
27998 | char *kwnames[] = { | |
27999 | (char *) "self",(char *) "orientation", NULL | |
28000 | }; | |
28001 | ||
28002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; | |
28003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28005 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28006 | if (PyErr_Occurred()) SWIG_fail; |
28007 | { | |
28008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28009 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
28010 | ||
28011 | wxPyEndAllowThreads(__tstate); | |
28012 | if (PyErr_Occurred()) SWIG_fail; | |
28013 | } | |
c370783e | 28014 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28015 | return resultobj; |
28016 | fail: | |
28017 | return NULL; | |
28018 | } | |
28019 | ||
28020 | ||
c370783e | 28021 | static PyObject *_wrap_Window_ScrollWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28022 | PyObject *resultobj; |
28023 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28024 | int arg2 ; | |
28025 | int arg3 ; | |
28026 | wxRect *arg4 = (wxRect *) NULL ; | |
28027 | PyObject * obj0 = 0 ; | |
28028 | PyObject * obj1 = 0 ; | |
28029 | PyObject * obj2 = 0 ; | |
28030 | PyObject * obj3 = 0 ; | |
28031 | char *kwnames[] = { | |
28032 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
28033 | }; | |
28034 | ||
28035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28038 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 28039 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 28040 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
28041 | if (PyErr_Occurred()) SWIG_fail; |
28042 | if (obj3) { | |
28043 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, | |
28044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28045 | } | |
28046 | { | |
28047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28048 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
28049 | ||
28050 | wxPyEndAllowThreads(__tstate); | |
28051 | if (PyErr_Occurred()) SWIG_fail; | |
28052 | } | |
28053 | Py_INCREF(Py_None); resultobj = Py_None; | |
28054 | return resultobj; | |
28055 | fail: | |
28056 | return NULL; | |
28057 | } | |
28058 | ||
28059 | ||
c370783e | 28060 | static PyObject *_wrap_Window_ScrollLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28061 | PyObject *resultobj; |
28062 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28063 | int arg2 ; | |
28064 | bool result; | |
28065 | PyObject * obj0 = 0 ; | |
28066 | PyObject * obj1 = 0 ; | |
28067 | char *kwnames[] = { | |
28068 | (char *) "self",(char *) "lines", NULL | |
28069 | }; | |
28070 | ||
28071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; | |
28072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28074 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28075 | if (PyErr_Occurred()) SWIG_fail; |
28076 | { | |
28077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28078 | result = (bool)(arg1)->ScrollLines(arg2); | |
28079 | ||
28080 | wxPyEndAllowThreads(__tstate); | |
28081 | if (PyErr_Occurred()) SWIG_fail; | |
28082 | } | |
28083 | { | |
28084 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28085 | } | |
28086 | return resultobj; | |
28087 | fail: | |
28088 | return NULL; | |
28089 | } | |
28090 | ||
28091 | ||
c370783e | 28092 | static PyObject *_wrap_Window_ScrollPages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28093 | PyObject *resultobj; |
28094 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28095 | int arg2 ; | |
28096 | bool result; | |
28097 | PyObject * obj0 = 0 ; | |
28098 | PyObject * obj1 = 0 ; | |
28099 | char *kwnames[] = { | |
28100 | (char *) "self",(char *) "pages", NULL | |
28101 | }; | |
28102 | ||
28103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; | |
28104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28106 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28107 | if (PyErr_Occurred()) SWIG_fail; |
28108 | { | |
28109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28110 | result = (bool)(arg1)->ScrollPages(arg2); | |
28111 | ||
28112 | wxPyEndAllowThreads(__tstate); | |
28113 | if (PyErr_Occurred()) SWIG_fail; | |
28114 | } | |
28115 | { | |
28116 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28117 | } | |
28118 | return resultobj; | |
28119 | fail: | |
28120 | return NULL; | |
28121 | } | |
28122 | ||
28123 | ||
c370783e | 28124 | static PyObject *_wrap_Window_LineUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28125 | PyObject *resultobj; |
28126 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28127 | bool result; | |
28128 | PyObject * obj0 = 0 ; | |
28129 | char *kwnames[] = { | |
28130 | (char *) "self", NULL | |
28131 | }; | |
28132 | ||
28133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
28134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28136 | { | |
28137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28138 | result = (bool)(arg1)->LineUp(); | |
28139 | ||
28140 | wxPyEndAllowThreads(__tstate); | |
28141 | if (PyErr_Occurred()) SWIG_fail; | |
28142 | } | |
28143 | { | |
28144 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28145 | } | |
28146 | return resultobj; | |
28147 | fail: | |
28148 | return NULL; | |
28149 | } | |
28150 | ||
28151 | ||
c370783e | 28152 | static PyObject *_wrap_Window_LineDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28153 | PyObject *resultobj; |
28154 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28155 | bool result; | |
28156 | PyObject * obj0 = 0 ; | |
28157 | char *kwnames[] = { | |
28158 | (char *) "self", NULL | |
28159 | }; | |
28160 | ||
28161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
28162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28164 | { | |
28165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28166 | result = (bool)(arg1)->LineDown(); | |
28167 | ||
28168 | wxPyEndAllowThreads(__tstate); | |
28169 | if (PyErr_Occurred()) SWIG_fail; | |
28170 | } | |
28171 | { | |
28172 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28173 | } | |
28174 | return resultobj; | |
28175 | fail: | |
28176 | return NULL; | |
28177 | } | |
28178 | ||
28179 | ||
c370783e | 28180 | static PyObject *_wrap_Window_PageUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28181 | PyObject *resultobj; |
28182 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28183 | bool result; | |
28184 | PyObject * obj0 = 0 ; | |
28185 | char *kwnames[] = { | |
28186 | (char *) "self", NULL | |
28187 | }; | |
28188 | ||
28189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
28190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28192 | { | |
28193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28194 | result = (bool)(arg1)->PageUp(); | |
28195 | ||
28196 | wxPyEndAllowThreads(__tstate); | |
28197 | if (PyErr_Occurred()) SWIG_fail; | |
28198 | } | |
28199 | { | |
28200 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28201 | } | |
28202 | return resultobj; | |
28203 | fail: | |
28204 | return NULL; | |
28205 | } | |
28206 | ||
28207 | ||
c370783e | 28208 | static PyObject *_wrap_Window_PageDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28209 | PyObject *resultobj; |
28210 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28211 | bool result; | |
28212 | PyObject * obj0 = 0 ; | |
28213 | char *kwnames[] = { | |
28214 | (char *) "self", NULL | |
28215 | }; | |
28216 | ||
28217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
28218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28220 | { | |
28221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28222 | result = (bool)(arg1)->PageDown(); | |
28223 | ||
28224 | wxPyEndAllowThreads(__tstate); | |
28225 | if (PyErr_Occurred()) SWIG_fail; | |
28226 | } | |
28227 | { | |
28228 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28229 | } | |
28230 | return resultobj; | |
28231 | fail: | |
28232 | return NULL; | |
28233 | } | |
28234 | ||
28235 | ||
c370783e | 28236 | static PyObject *_wrap_Window_SetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28237 | PyObject *resultobj; |
28238 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28239 | wxString *arg2 = 0 ; | |
b411df4a | 28240 | bool temp2 = false ; |
d55e5bfc RD |
28241 | PyObject * obj0 = 0 ; |
28242 | PyObject * obj1 = 0 ; | |
28243 | char *kwnames[] = { | |
28244 | (char *) "self",(char *) "text", NULL | |
28245 | }; | |
28246 | ||
28247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
28248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28250 | { | |
28251 | arg2 = wxString_in_helper(obj1); | |
28252 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 28253 | temp2 = true; |
d55e5bfc RD |
28254 | } |
28255 | { | |
28256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28257 | (arg1)->SetHelpText((wxString const &)*arg2); | |
28258 | ||
28259 | wxPyEndAllowThreads(__tstate); | |
28260 | if (PyErr_Occurred()) SWIG_fail; | |
28261 | } | |
28262 | Py_INCREF(Py_None); resultobj = Py_None; | |
28263 | { | |
28264 | if (temp2) | |
28265 | delete arg2; | |
28266 | } | |
28267 | return resultobj; | |
28268 | fail: | |
28269 | { | |
28270 | if (temp2) | |
28271 | delete arg2; | |
28272 | } | |
28273 | return NULL; | |
28274 | } | |
28275 | ||
28276 | ||
c370783e | 28277 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28278 | PyObject *resultobj; |
28279 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28280 | wxString *arg2 = 0 ; | |
b411df4a | 28281 | bool temp2 = false ; |
d55e5bfc RD |
28282 | PyObject * obj0 = 0 ; |
28283 | PyObject * obj1 = 0 ; | |
28284 | char *kwnames[] = { | |
28285 | (char *) "self",(char *) "text", NULL | |
28286 | }; | |
28287 | ||
28288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
28289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28291 | { | |
28292 | arg2 = wxString_in_helper(obj1); | |
28293 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 28294 | temp2 = true; |
d55e5bfc RD |
28295 | } |
28296 | { | |
28297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28298 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
28299 | ||
28300 | wxPyEndAllowThreads(__tstate); | |
28301 | if (PyErr_Occurred()) SWIG_fail; | |
28302 | } | |
28303 | Py_INCREF(Py_None); resultobj = Py_None; | |
28304 | { | |
28305 | if (temp2) | |
28306 | delete arg2; | |
28307 | } | |
28308 | return resultobj; | |
28309 | fail: | |
28310 | { | |
28311 | if (temp2) | |
28312 | delete arg2; | |
28313 | } | |
28314 | return NULL; | |
28315 | } | |
28316 | ||
28317 | ||
c370783e | 28318 | static PyObject *_wrap_Window_GetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28319 | PyObject *resultobj; |
28320 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28321 | wxString result; | |
28322 | PyObject * obj0 = 0 ; | |
28323 | char *kwnames[] = { | |
28324 | (char *) "self", NULL | |
28325 | }; | |
28326 | ||
28327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
28328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28330 | { | |
28331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28332 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
28333 | ||
28334 | wxPyEndAllowThreads(__tstate); | |
28335 | if (PyErr_Occurred()) SWIG_fail; | |
28336 | } | |
28337 | { | |
28338 | #if wxUSE_UNICODE | |
28339 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28340 | #else | |
28341 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28342 | #endif | |
28343 | } | |
28344 | return resultobj; | |
28345 | fail: | |
28346 | return NULL; | |
28347 | } | |
28348 | ||
28349 | ||
c370783e | 28350 | static PyObject *_wrap_Window_SetToolTipString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28351 | PyObject *resultobj; |
28352 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28353 | wxString *arg2 = 0 ; | |
b411df4a | 28354 | bool temp2 = false ; |
d55e5bfc RD |
28355 | PyObject * obj0 = 0 ; |
28356 | PyObject * obj1 = 0 ; | |
28357 | char *kwnames[] = { | |
28358 | (char *) "self",(char *) "tip", NULL | |
28359 | }; | |
28360 | ||
28361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
28362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28364 | { | |
28365 | arg2 = wxString_in_helper(obj1); | |
28366 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 28367 | temp2 = true; |
d55e5bfc RD |
28368 | } |
28369 | { | |
28370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28371 | (arg1)->SetToolTip((wxString const &)*arg2); | |
28372 | ||
28373 | wxPyEndAllowThreads(__tstate); | |
28374 | if (PyErr_Occurred()) SWIG_fail; | |
28375 | } | |
28376 | Py_INCREF(Py_None); resultobj = Py_None; | |
28377 | { | |
28378 | if (temp2) | |
28379 | delete arg2; | |
28380 | } | |
28381 | return resultobj; | |
28382 | fail: | |
28383 | { | |
28384 | if (temp2) | |
28385 | delete arg2; | |
28386 | } | |
28387 | return NULL; | |
28388 | } | |
28389 | ||
28390 | ||
c370783e | 28391 | static PyObject *_wrap_Window_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28392 | PyObject *resultobj; |
28393 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28394 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
28395 | PyObject * obj0 = 0 ; | |
28396 | PyObject * obj1 = 0 ; | |
28397 | char *kwnames[] = { | |
28398 | (char *) "self",(char *) "tip", NULL | |
28399 | }; | |
28400 | ||
28401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
28402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28404 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip, | |
28405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28406 | { | |
28407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28408 | (arg1)->SetToolTip(arg2); | |
28409 | ||
28410 | wxPyEndAllowThreads(__tstate); | |
28411 | if (PyErr_Occurred()) SWIG_fail; | |
28412 | } | |
28413 | Py_INCREF(Py_None); resultobj = Py_None; | |
28414 | return resultobj; | |
28415 | fail: | |
28416 | return NULL; | |
28417 | } | |
28418 | ||
28419 | ||
c370783e | 28420 | static PyObject *_wrap_Window_GetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28421 | PyObject *resultobj; |
28422 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28423 | wxToolTip *result; | |
28424 | PyObject * obj0 = 0 ; | |
28425 | char *kwnames[] = { | |
28426 | (char *) "self", NULL | |
28427 | }; | |
28428 | ||
28429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
28430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28432 | { | |
28433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28434 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
28435 | ||
28436 | wxPyEndAllowThreads(__tstate); | |
28437 | if (PyErr_Occurred()) SWIG_fail; | |
28438 | } | |
28439 | { | |
412d302d | 28440 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28441 | } |
28442 | return resultobj; | |
28443 | fail: | |
28444 | return NULL; | |
28445 | } | |
28446 | ||
28447 | ||
c370783e | 28448 | static PyObject *_wrap_Window_SetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28449 | PyObject *resultobj; |
28450 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28451 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; | |
28452 | PyObject * obj0 = 0 ; | |
28453 | PyObject * obj1 = 0 ; | |
28454 | char *kwnames[] = { | |
28455 | (char *) "self",(char *) "dropTarget", NULL | |
28456 | }; | |
28457 | ||
28458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
28459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28461 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget, | |
28462 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
28463 | { | |
28464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28465 | (arg1)->SetDropTarget(arg2); | |
28466 | ||
28467 | wxPyEndAllowThreads(__tstate); | |
28468 | if (PyErr_Occurred()) SWIG_fail; | |
28469 | } | |
28470 | Py_INCREF(Py_None); resultobj = Py_None; | |
28471 | return resultobj; | |
28472 | fail: | |
28473 | return NULL; | |
28474 | } | |
28475 | ||
28476 | ||
c370783e | 28477 | static PyObject *_wrap_Window_GetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28478 | PyObject *resultobj; |
28479 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28480 | wxPyDropTarget *result; | |
28481 | PyObject * obj0 = 0 ; | |
28482 | char *kwnames[] = { | |
28483 | (char *) "self", NULL | |
28484 | }; | |
28485 | ||
28486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
28487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28489 | { | |
28490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28491 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); | |
28492 | ||
28493 | wxPyEndAllowThreads(__tstate); | |
28494 | if (PyErr_Occurred()) SWIG_fail; | |
28495 | } | |
28496 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); | |
28497 | return resultobj; | |
28498 | fail: | |
28499 | return NULL; | |
28500 | } | |
28501 | ||
28502 | ||
c370783e | 28503 | static PyObject *_wrap_Window_SetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28504 | PyObject *resultobj; |
28505 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28506 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
28507 | PyObject * obj0 = 0 ; | |
28508 | PyObject * obj1 = 0 ; | |
28509 | char *kwnames[] = { | |
28510 | (char *) "self",(char *) "constraints", NULL | |
28511 | }; | |
28512 | ||
28513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
28514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28516 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
28517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28518 | { | |
28519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28520 | (arg1)->SetConstraints(arg2); | |
28521 | ||
28522 | wxPyEndAllowThreads(__tstate); | |
28523 | if (PyErr_Occurred()) SWIG_fail; | |
28524 | } | |
28525 | Py_INCREF(Py_None); resultobj = Py_None; | |
28526 | return resultobj; | |
28527 | fail: | |
28528 | return NULL; | |
28529 | } | |
28530 | ||
28531 | ||
c370783e | 28532 | static PyObject *_wrap_Window_GetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28533 | PyObject *resultobj; |
28534 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28535 | wxLayoutConstraints *result; | |
28536 | PyObject * obj0 = 0 ; | |
28537 | char *kwnames[] = { | |
28538 | (char *) "self", NULL | |
28539 | }; | |
28540 | ||
28541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
28542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28544 | { | |
28545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28546 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
28547 | ||
28548 | wxPyEndAllowThreads(__tstate); | |
28549 | if (PyErr_Occurred()) SWIG_fail; | |
28550 | } | |
28551 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); | |
28552 | return resultobj; | |
28553 | fail: | |
28554 | return NULL; | |
28555 | } | |
28556 | ||
28557 | ||
c370783e | 28558 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28559 | PyObject *resultobj; |
28560 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28561 | bool arg2 ; | |
28562 | PyObject * obj0 = 0 ; | |
28563 | PyObject * obj1 = 0 ; | |
28564 | char *kwnames[] = { | |
28565 | (char *) "self",(char *) "autoLayout", NULL | |
28566 | }; | |
28567 | ||
28568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
28569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28571 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
28572 | if (PyErr_Occurred()) SWIG_fail; |
28573 | { | |
28574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28575 | (arg1)->SetAutoLayout(arg2); | |
28576 | ||
28577 | wxPyEndAllowThreads(__tstate); | |
28578 | if (PyErr_Occurred()) SWIG_fail; | |
28579 | } | |
28580 | Py_INCREF(Py_None); resultobj = Py_None; | |
28581 | return resultobj; | |
28582 | fail: | |
28583 | return NULL; | |
28584 | } | |
28585 | ||
28586 | ||
c370783e | 28587 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28588 | PyObject *resultobj; |
28589 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28590 | bool result; | |
28591 | PyObject * obj0 = 0 ; | |
28592 | char *kwnames[] = { | |
28593 | (char *) "self", NULL | |
28594 | }; | |
28595 | ||
28596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
28597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28599 | { | |
28600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28601 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
28602 | ||
28603 | wxPyEndAllowThreads(__tstate); | |
28604 | if (PyErr_Occurred()) SWIG_fail; | |
28605 | } | |
28606 | { | |
28607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28608 | } | |
28609 | return resultobj; | |
28610 | fail: | |
28611 | return NULL; | |
28612 | } | |
28613 | ||
28614 | ||
c370783e | 28615 | static PyObject *_wrap_Window_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28616 | PyObject *resultobj; |
28617 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28618 | bool result; | |
28619 | PyObject * obj0 = 0 ; | |
28620 | char *kwnames[] = { | |
28621 | (char *) "self", NULL | |
28622 | }; | |
28623 | ||
28624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
28625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28627 | { | |
28628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28629 | result = (bool)(arg1)->Layout(); | |
28630 | ||
28631 | wxPyEndAllowThreads(__tstate); | |
28632 | if (PyErr_Occurred()) SWIG_fail; | |
28633 | } | |
28634 | { | |
28635 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28636 | } | |
28637 | return resultobj; | |
28638 | fail: | |
28639 | return NULL; | |
28640 | } | |
28641 | ||
28642 | ||
c370783e | 28643 | static PyObject *_wrap_Window_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28644 | PyObject *resultobj; |
28645 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28646 | wxSizer *arg2 = (wxSizer *) 0 ; | |
b411df4a | 28647 | bool arg3 = (bool) true ; |
d55e5bfc RD |
28648 | PyObject * obj0 = 0 ; |
28649 | PyObject * obj1 = 0 ; | |
28650 | PyObject * obj2 = 0 ; | |
28651 | char *kwnames[] = { | |
28652 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
28653 | }; | |
28654 | ||
28655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28658 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28660 | if (obj2) { | |
c370783e | 28661 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
28662 | if (PyErr_Occurred()) SWIG_fail; |
28663 | } | |
28664 | { | |
28665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28666 | (arg1)->SetSizer(arg2,arg3); | |
28667 | ||
28668 | wxPyEndAllowThreads(__tstate); | |
28669 | if (PyErr_Occurred()) SWIG_fail; | |
28670 | } | |
28671 | Py_INCREF(Py_None); resultobj = Py_None; | |
28672 | return resultobj; | |
28673 | fail: | |
28674 | return NULL; | |
28675 | } | |
28676 | ||
28677 | ||
c370783e | 28678 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28679 | PyObject *resultobj; |
28680 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28681 | wxSizer *arg2 = (wxSizer *) 0 ; | |
b411df4a | 28682 | bool arg3 = (bool) true ; |
d55e5bfc RD |
28683 | PyObject * obj0 = 0 ; |
28684 | PyObject * obj1 = 0 ; | |
28685 | PyObject * obj2 = 0 ; | |
28686 | char *kwnames[] = { | |
28687 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
28688 | }; | |
28689 | ||
28690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28693 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28695 | if (obj2) { | |
c370783e | 28696 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
28697 | if (PyErr_Occurred()) SWIG_fail; |
28698 | } | |
28699 | { | |
28700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28701 | (arg1)->SetSizerAndFit(arg2,arg3); | |
28702 | ||
28703 | wxPyEndAllowThreads(__tstate); | |
28704 | if (PyErr_Occurred()) SWIG_fail; | |
28705 | } | |
28706 | Py_INCREF(Py_None); resultobj = Py_None; | |
28707 | return resultobj; | |
28708 | fail: | |
28709 | return NULL; | |
28710 | } | |
28711 | ||
28712 | ||
c370783e | 28713 | static PyObject *_wrap_Window_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28714 | PyObject *resultobj; |
28715 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28716 | wxSizer *result; | |
28717 | PyObject * obj0 = 0 ; | |
28718 | char *kwnames[] = { | |
28719 | (char *) "self", NULL | |
28720 | }; | |
28721 | ||
28722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
28723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28725 | { | |
28726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28727 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
28728 | ||
28729 | wxPyEndAllowThreads(__tstate); | |
28730 | if (PyErr_Occurred()) SWIG_fail; | |
28731 | } | |
28732 | { | |
412d302d | 28733 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
28734 | } |
28735 | return resultobj; | |
28736 | fail: | |
28737 | return NULL; | |
28738 | } | |
28739 | ||
28740 | ||
c370783e | 28741 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28742 | PyObject *resultobj; |
28743 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28744 | wxSizer *arg2 = (wxSizer *) 0 ; | |
28745 | PyObject * obj0 = 0 ; | |
28746 | PyObject * obj1 = 0 ; | |
28747 | char *kwnames[] = { | |
28748 | (char *) "self",(char *) "sizer", NULL | |
28749 | }; | |
28750 | ||
28751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
28752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28754 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28756 | { | |
28757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28758 | (arg1)->SetContainingSizer(arg2); | |
28759 | ||
28760 | wxPyEndAllowThreads(__tstate); | |
28761 | if (PyErr_Occurred()) SWIG_fail; | |
28762 | } | |
28763 | Py_INCREF(Py_None); resultobj = Py_None; | |
28764 | return resultobj; | |
28765 | fail: | |
28766 | return NULL; | |
28767 | } | |
28768 | ||
28769 | ||
c370783e | 28770 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28771 | PyObject *resultobj; |
28772 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28773 | wxSizer *result; | |
28774 | PyObject * obj0 = 0 ; | |
28775 | char *kwnames[] = { | |
28776 | (char *) "self", NULL | |
28777 | }; | |
28778 | ||
28779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
28780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28782 | { | |
28783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28784 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
28785 | ||
28786 | wxPyEndAllowThreads(__tstate); | |
28787 | if (PyErr_Occurred()) SWIG_fail; | |
28788 | } | |
28789 | { | |
412d302d | 28790 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
28791 | } |
28792 | return resultobj; | |
28793 | fail: | |
28794 | return NULL; | |
28795 | } | |
28796 | ||
28797 | ||
c370783e | 28798 | static PyObject *_wrap_Window_InheritAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28799 | PyObject *resultobj; |
28800 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28801 | PyObject * obj0 = 0 ; | |
28802 | char *kwnames[] = { | |
28803 | (char *) "self", NULL | |
28804 | }; | |
28805 | ||
28806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail; | |
28807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28809 | { | |
28810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28811 | (arg1)->InheritAttributes(); | |
28812 | ||
28813 | wxPyEndAllowThreads(__tstate); | |
28814 | if (PyErr_Occurred()) SWIG_fail; | |
28815 | } | |
28816 | Py_INCREF(Py_None); resultobj = Py_None; | |
28817 | return resultobj; | |
28818 | fail: | |
28819 | return NULL; | |
28820 | } | |
28821 | ||
28822 | ||
c370783e | 28823 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28824 | PyObject *resultobj; |
28825 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28826 | bool result; | |
28827 | PyObject * obj0 = 0 ; | |
28828 | char *kwnames[] = { | |
28829 | (char *) "self", NULL | |
28830 | }; | |
28831 | ||
28832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
28833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28835 | { | |
28836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28837 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
28838 | ||
28839 | wxPyEndAllowThreads(__tstate); | |
28840 | if (PyErr_Occurred()) SWIG_fail; | |
28841 | } | |
28842 | { | |
28843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28844 | } | |
28845 | return resultobj; | |
28846 | fail: | |
28847 | return NULL; | |
28848 | } | |
28849 | ||
28850 | ||
c370783e | 28851 | static PyObject * Window_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
28852 | PyObject *obj; |
28853 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28854 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
28855 | Py_INCREF(obj); | |
28856 | return Py_BuildValue((char *)""); | |
28857 | } | |
c370783e | 28858 | static PyObject *_wrap_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28859 | PyObject *resultobj; |
28860 | long arg1 ; | |
28861 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28862 | wxWindow *result; | |
28863 | PyObject * obj0 = 0 ; | |
28864 | PyObject * obj1 = 0 ; | |
28865 | char *kwnames[] = { | |
28866 | (char *) "id",(char *) "parent", NULL | |
28867 | }; | |
28868 | ||
28869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
c370783e | 28870 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
28871 | if (PyErr_Occurred()) SWIG_fail; |
28872 | if (obj1) { | |
28873 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28875 | } | |
28876 | { | |
0439c23b | 28877 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28879 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
28880 | ||
28881 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28882 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28883 | } |
28884 | { | |
412d302d | 28885 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28886 | } |
28887 | return resultobj; | |
28888 | fail: | |
28889 | return NULL; | |
28890 | } | |
28891 | ||
28892 | ||
c370783e | 28893 | static PyObject *_wrap_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28894 | PyObject *resultobj; |
28895 | wxString *arg1 = 0 ; | |
28896 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28897 | wxWindow *result; | |
b411df4a | 28898 | bool temp1 = false ; |
d55e5bfc RD |
28899 | PyObject * obj0 = 0 ; |
28900 | PyObject * obj1 = 0 ; | |
28901 | char *kwnames[] = { | |
28902 | (char *) "name",(char *) "parent", NULL | |
28903 | }; | |
28904 | ||
28905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
28906 | { | |
28907 | arg1 = wxString_in_helper(obj0); | |
28908 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 28909 | temp1 = true; |
d55e5bfc RD |
28910 | } |
28911 | if (obj1) { | |
28912 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28914 | } | |
28915 | { | |
0439c23b | 28916 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28918 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
28919 | ||
28920 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28921 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28922 | } |
28923 | { | |
412d302d | 28924 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28925 | } |
28926 | { | |
28927 | if (temp1) | |
28928 | delete arg1; | |
28929 | } | |
28930 | return resultobj; | |
28931 | fail: | |
28932 | { | |
28933 | if (temp1) | |
28934 | delete arg1; | |
28935 | } | |
28936 | return NULL; | |
28937 | } | |
28938 | ||
28939 | ||
c370783e | 28940 | static PyObject *_wrap_FindWindowByLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28941 | PyObject *resultobj; |
28942 | wxString *arg1 = 0 ; | |
28943 | wxWindow *arg2 = (wxWindow *) NULL ; | |
28944 | wxWindow *result; | |
b411df4a | 28945 | bool temp1 = false ; |
d55e5bfc RD |
28946 | PyObject * obj0 = 0 ; |
28947 | PyObject * obj1 = 0 ; | |
28948 | char *kwnames[] = { | |
28949 | (char *) "label",(char *) "parent", NULL | |
28950 | }; | |
28951 | ||
28952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
28953 | { | |
28954 | arg1 = wxString_in_helper(obj0); | |
28955 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 28956 | temp1 = true; |
d55e5bfc RD |
28957 | } |
28958 | if (obj1) { | |
28959 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28961 | } | |
28962 | { | |
0439c23b | 28963 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28965 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
28966 | ||
28967 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28968 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28969 | } |
28970 | { | |
412d302d | 28971 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28972 | } |
28973 | { | |
28974 | if (temp1) | |
28975 | delete arg1; | |
28976 | } | |
28977 | return resultobj; | |
28978 | fail: | |
28979 | { | |
28980 | if (temp1) | |
28981 | delete arg1; | |
28982 | } | |
28983 | return NULL; | |
28984 | } | |
28985 | ||
28986 | ||
c370783e | 28987 | static PyObject *_wrap_Window_FromHWND(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28988 | PyObject *resultobj; |
28989 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28990 | unsigned long arg2 ; | |
28991 | wxWindow *result; | |
28992 | PyObject * obj0 = 0 ; | |
28993 | PyObject * obj1 = 0 ; | |
28994 | char *kwnames[] = { | |
28995 | (char *) "parent",(char *) "_hWnd", NULL | |
28996 | }; | |
28997 | ||
28998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; | |
28999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29001 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
29002 | if (PyErr_Occurred()) SWIG_fail; |
29003 | { | |
29004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29005 | result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); | |
29006 | ||
29007 | wxPyEndAllowThreads(__tstate); | |
29008 | if (PyErr_Occurred()) SWIG_fail; | |
29009 | } | |
29010 | { | |
412d302d | 29011 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29012 | } |
29013 | return resultobj; | |
29014 | fail: | |
29015 | return NULL; | |
29016 | } | |
29017 | ||
29018 | ||
c370783e | 29019 | static PyObject *_wrap_new_Validator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29020 | PyObject *resultobj; |
29021 | wxValidator *result; | |
29022 | char *kwnames[] = { | |
29023 | NULL | |
29024 | }; | |
29025 | ||
29026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
29027 | { | |
29028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29029 | result = (wxValidator *)new wxValidator(); | |
29030 | ||
29031 | wxPyEndAllowThreads(__tstate); | |
29032 | if (PyErr_Occurred()) SWIG_fail; | |
29033 | } | |
b0f7404b | 29034 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxValidator, 1); |
d55e5bfc RD |
29035 | return resultobj; |
29036 | fail: | |
29037 | return NULL; | |
29038 | } | |
29039 | ||
29040 | ||
c370783e | 29041 | static PyObject *_wrap_Validator_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29042 | PyObject *resultobj; |
29043 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29044 | wxValidator *result; | |
29045 | PyObject * obj0 = 0 ; | |
29046 | char *kwnames[] = { | |
29047 | (char *) "self", NULL | |
29048 | }; | |
29049 | ||
29050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
29051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29053 | { | |
29054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29055 | result = (wxValidator *)(arg1)->Clone(); | |
29056 | ||
29057 | wxPyEndAllowThreads(__tstate); | |
29058 | if (PyErr_Occurred()) SWIG_fail; | |
29059 | } | |
29060 | { | |
412d302d | 29061 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29062 | } |
29063 | return resultobj; | |
29064 | fail: | |
29065 | return NULL; | |
29066 | } | |
29067 | ||
29068 | ||
c370783e | 29069 | static PyObject *_wrap_Validator_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29070 | PyObject *resultobj; |
29071 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29072 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29073 | bool result; | |
29074 | PyObject * obj0 = 0 ; | |
29075 | PyObject * obj1 = 0 ; | |
29076 | char *kwnames[] = { | |
29077 | (char *) "self",(char *) "parent", NULL | |
29078 | }; | |
29079 | ||
29080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
29081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29083 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29085 | { | |
29086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29087 | result = (bool)(arg1)->Validate(arg2); | |
29088 | ||
29089 | wxPyEndAllowThreads(__tstate); | |
29090 | if (PyErr_Occurred()) SWIG_fail; | |
29091 | } | |
29092 | { | |
29093 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29094 | } | |
29095 | return resultobj; | |
29096 | fail: | |
29097 | return NULL; | |
29098 | } | |
29099 | ||
29100 | ||
c370783e | 29101 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29102 | PyObject *resultobj; |
29103 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29104 | bool result; | |
29105 | PyObject * obj0 = 0 ; | |
29106 | char *kwnames[] = { | |
29107 | (char *) "self", NULL | |
29108 | }; | |
29109 | ||
29110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
29111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29113 | { | |
29114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29115 | result = (bool)(arg1)->TransferToWindow(); | |
29116 | ||
29117 | wxPyEndAllowThreads(__tstate); | |
29118 | if (PyErr_Occurred()) SWIG_fail; | |
29119 | } | |
29120 | { | |
29121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29122 | } | |
29123 | return resultobj; | |
29124 | fail: | |
29125 | return NULL; | |
29126 | } | |
29127 | ||
29128 | ||
c370783e | 29129 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29130 | PyObject *resultobj; |
29131 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29132 | bool result; | |
29133 | PyObject * obj0 = 0 ; | |
29134 | char *kwnames[] = { | |
29135 | (char *) "self", NULL | |
29136 | }; | |
29137 | ||
29138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
29139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29141 | { | |
29142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29143 | result = (bool)(arg1)->TransferFromWindow(); | |
29144 | ||
29145 | wxPyEndAllowThreads(__tstate); | |
29146 | if (PyErr_Occurred()) SWIG_fail; | |
29147 | } | |
29148 | { | |
29149 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29150 | } | |
29151 | return resultobj; | |
29152 | fail: | |
29153 | return NULL; | |
29154 | } | |
29155 | ||
29156 | ||
c370783e | 29157 | static PyObject *_wrap_Validator_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29158 | PyObject *resultobj; |
29159 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29160 | wxWindow *result; | |
29161 | PyObject * obj0 = 0 ; | |
29162 | char *kwnames[] = { | |
29163 | (char *) "self", NULL | |
29164 | }; | |
29165 | ||
29166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
29167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29169 | { | |
29170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29171 | result = (wxWindow *)(arg1)->GetWindow(); | |
29172 | ||
29173 | wxPyEndAllowThreads(__tstate); | |
29174 | if (PyErr_Occurred()) SWIG_fail; | |
29175 | } | |
29176 | { | |
412d302d | 29177 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29178 | } |
29179 | return resultobj; | |
29180 | fail: | |
29181 | return NULL; | |
29182 | } | |
29183 | ||
29184 | ||
c370783e | 29185 | static PyObject *_wrap_Validator_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29186 | PyObject *resultobj; |
29187 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29188 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29189 | PyObject * obj0 = 0 ; | |
29190 | PyObject * obj1 = 0 ; | |
29191 | char *kwnames[] = { | |
29192 | (char *) "self",(char *) "window", NULL | |
29193 | }; | |
29194 | ||
29195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
29196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29198 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29200 | { | |
29201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29202 | (arg1)->SetWindow(arg2); | |
29203 | ||
29204 | wxPyEndAllowThreads(__tstate); | |
29205 | if (PyErr_Occurred()) SWIG_fail; | |
29206 | } | |
29207 | Py_INCREF(Py_None); resultobj = Py_None; | |
29208 | return resultobj; | |
29209 | fail: | |
29210 | return NULL; | |
29211 | } | |
29212 | ||
29213 | ||
c370783e | 29214 | static PyObject *_wrap_Validator_IsSilent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29215 | PyObject *resultobj; |
29216 | bool result; | |
29217 | char *kwnames[] = { | |
29218 | NULL | |
29219 | }; | |
29220 | ||
29221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
29222 | { | |
29223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29224 | result = (bool)wxValidator::IsSilent(); | |
29225 | ||
29226 | wxPyEndAllowThreads(__tstate); | |
29227 | if (PyErr_Occurred()) SWIG_fail; | |
29228 | } | |
29229 | { | |
29230 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29231 | } | |
29232 | return resultobj; | |
29233 | fail: | |
29234 | return NULL; | |
29235 | } | |
29236 | ||
29237 | ||
c370783e | 29238 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 29239 | PyObject *resultobj; |
b411df4a | 29240 | int arg1 = (int) true ; |
d55e5bfc RD |
29241 | PyObject * obj0 = 0 ; |
29242 | char *kwnames[] = { | |
29243 | (char *) "doIt", NULL | |
29244 | }; | |
29245 | ||
29246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; | |
29247 | if (obj0) { | |
c370783e | 29248 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
29249 | if (PyErr_Occurred()) SWIG_fail; |
29250 | } | |
29251 | { | |
29252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29253 | wxValidator::SetBellOnError(arg1); | |
29254 | ||
29255 | wxPyEndAllowThreads(__tstate); | |
29256 | if (PyErr_Occurred()) SWIG_fail; | |
29257 | } | |
29258 | Py_INCREF(Py_None); resultobj = Py_None; | |
29259 | return resultobj; | |
29260 | fail: | |
29261 | return NULL; | |
29262 | } | |
29263 | ||
29264 | ||
c370783e | 29265 | static PyObject * Validator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29266 | PyObject *obj; |
29267 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29268 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
29269 | Py_INCREF(obj); | |
29270 | return Py_BuildValue((char *)""); | |
29271 | } | |
c370783e | 29272 | static PyObject *_wrap_new_PyValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29273 | PyObject *resultobj; |
29274 | wxPyValidator *result; | |
29275 | char *kwnames[] = { | |
29276 | NULL | |
29277 | }; | |
29278 | ||
29279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
29280 | { | |
29281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29282 | result = (wxPyValidator *)new wxPyValidator(); | |
29283 | ||
29284 | wxPyEndAllowThreads(__tstate); | |
29285 | if (PyErr_Occurred()) SWIG_fail; | |
29286 | } | |
29287 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); | |
29288 | return resultobj; | |
29289 | fail: | |
29290 | return NULL; | |
29291 | } | |
29292 | ||
29293 | ||
c370783e | 29294 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29295 | PyObject *resultobj; |
29296 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
29297 | PyObject *arg2 = (PyObject *) 0 ; | |
29298 | PyObject *arg3 = (PyObject *) 0 ; | |
b411df4a | 29299 | int arg4 = (int) true ; |
d55e5bfc RD |
29300 | PyObject * obj0 = 0 ; |
29301 | PyObject * obj1 = 0 ; | |
29302 | PyObject * obj2 = 0 ; | |
29303 | PyObject * obj3 = 0 ; | |
29304 | char *kwnames[] = { | |
29305 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
29306 | }; | |
29307 | ||
29308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator, | |
29310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29311 | arg2 = obj1; | |
29312 | arg3 = obj2; | |
29313 | if (obj3) { | |
c370783e | 29314 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
29315 | if (PyErr_Occurred()) SWIG_fail; |
29316 | } | |
29317 | { | |
29318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29319 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
29320 | ||
29321 | wxPyEndAllowThreads(__tstate); | |
29322 | if (PyErr_Occurred()) SWIG_fail; | |
29323 | } | |
29324 | Py_INCREF(Py_None); resultobj = Py_None; | |
29325 | return resultobj; | |
29326 | fail: | |
29327 | return NULL; | |
29328 | } | |
29329 | ||
29330 | ||
c370783e | 29331 | static PyObject * PyValidator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29332 | PyObject *obj; |
29333 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29334 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
29335 | Py_INCREF(obj); | |
29336 | return Py_BuildValue((char *)""); | |
29337 | } | |
c370783e | 29338 | static int _wrap_DefaultValidator_set(PyObject *) { |
d55e5bfc RD |
29339 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); |
29340 | return 1; | |
29341 | } | |
29342 | ||
29343 | ||
29344 | static PyObject *_wrap_DefaultValidator_get() { | |
29345 | PyObject *pyobj; | |
29346 | ||
29347 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); | |
29348 | return pyobj; | |
29349 | } | |
29350 | ||
29351 | ||
c370783e | 29352 | static PyObject *_wrap_new_Menu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29353 | PyObject *resultobj; |
29354 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
29355 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
29356 | long arg2 = (long) 0 ; | |
29357 | wxMenu *result; | |
b411df4a | 29358 | bool temp1 = false ; |
d55e5bfc RD |
29359 | PyObject * obj0 = 0 ; |
29360 | PyObject * obj1 = 0 ; | |
29361 | char *kwnames[] = { | |
29362 | (char *) "title",(char *) "style", NULL | |
29363 | }; | |
29364 | ||
29365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; | |
29366 | if (obj0) { | |
29367 | { | |
29368 | arg1 = wxString_in_helper(obj0); | |
29369 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 29370 | temp1 = true; |
d55e5bfc RD |
29371 | } |
29372 | } | |
29373 | if (obj1) { | |
c370783e | 29374 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
29375 | if (PyErr_Occurred()) SWIG_fail; |
29376 | } | |
29377 | { | |
0439c23b | 29378 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29380 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
29381 | ||
29382 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29383 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 29384 | } |
b0f7404b | 29385 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenu, 1); |
d55e5bfc RD |
29386 | { |
29387 | if (temp1) | |
29388 | delete arg1; | |
29389 | } | |
29390 | return resultobj; | |
29391 | fail: | |
29392 | { | |
29393 | if (temp1) | |
29394 | delete arg1; | |
29395 | } | |
29396 | return NULL; | |
29397 | } | |
29398 | ||
29399 | ||
c370783e | 29400 | static PyObject *_wrap_Menu_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29401 | PyObject *resultobj; |
29402 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29403 | int arg2 ; | |
29404 | wxString *arg3 = 0 ; | |
29405 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29406 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29407 | int arg5 = (int) wxITEM_NORMAL ; | |
29408 | wxMenuItem *result; | |
b411df4a RD |
29409 | bool temp3 = false ; |
29410 | bool temp4 = false ; | |
d55e5bfc RD |
29411 | PyObject * obj0 = 0 ; |
29412 | PyObject * obj1 = 0 ; | |
29413 | PyObject * obj2 = 0 ; | |
29414 | PyObject * obj3 = 0 ; | |
29415 | PyObject * obj4 = 0 ; | |
29416 | char *kwnames[] = { | |
29417 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
29418 | }; | |
29419 | ||
29420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29423 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29424 | if (PyErr_Occurred()) SWIG_fail; |
29425 | { | |
29426 | arg3 = wxString_in_helper(obj2); | |
29427 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 29428 | temp3 = true; |
d55e5bfc RD |
29429 | } |
29430 | if (obj3) { | |
29431 | { | |
29432 | arg4 = wxString_in_helper(obj3); | |
29433 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 29434 | temp4 = true; |
d55e5bfc RD |
29435 | } |
29436 | } | |
29437 | if (obj4) { | |
c370783e | 29438 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
29439 | if (PyErr_Occurred()) SWIG_fail; |
29440 | } | |
29441 | { | |
29442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29443 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
29444 | ||
29445 | wxPyEndAllowThreads(__tstate); | |
29446 | if (PyErr_Occurred()) SWIG_fail; | |
29447 | } | |
29448 | { | |
412d302d | 29449 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29450 | } |
29451 | { | |
29452 | if (temp3) | |
29453 | delete arg3; | |
29454 | } | |
29455 | { | |
29456 | if (temp4) | |
29457 | delete arg4; | |
29458 | } | |
29459 | return resultobj; | |
29460 | fail: | |
29461 | { | |
29462 | if (temp3) | |
29463 | delete arg3; | |
29464 | } | |
29465 | { | |
29466 | if (temp4) | |
29467 | delete arg4; | |
29468 | } | |
29469 | return NULL; | |
29470 | } | |
29471 | ||
29472 | ||
c370783e | 29473 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29474 | PyObject *resultobj; |
29475 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29476 | wxMenuItem *result; | |
29477 | PyObject * obj0 = 0 ; | |
29478 | char *kwnames[] = { | |
29479 | (char *) "self", NULL | |
29480 | }; | |
29481 | ||
29482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
29483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29485 | { | |
29486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29487 | result = (wxMenuItem *)(arg1)->AppendSeparator(); | |
29488 | ||
29489 | wxPyEndAllowThreads(__tstate); | |
29490 | if (PyErr_Occurred()) SWIG_fail; | |
29491 | } | |
29492 | { | |
412d302d | 29493 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29494 | } |
29495 | return resultobj; | |
29496 | fail: | |
29497 | return NULL; | |
29498 | } | |
29499 | ||
29500 | ||
c370783e | 29501 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29502 | PyObject *resultobj; |
29503 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29504 | int arg2 ; | |
29505 | wxString *arg3 = 0 ; | |
29506 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29507 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29508 | wxMenuItem *result; | |
b411df4a RD |
29509 | bool temp3 = false ; |
29510 | bool temp4 = false ; | |
d55e5bfc RD |
29511 | PyObject * obj0 = 0 ; |
29512 | PyObject * obj1 = 0 ; | |
29513 | PyObject * obj2 = 0 ; | |
29514 | PyObject * obj3 = 0 ; | |
29515 | char *kwnames[] = { | |
29516 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29517 | }; | |
29518 | ||
29519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29522 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29523 | if (PyErr_Occurred()) SWIG_fail; |
29524 | { | |
29525 | arg3 = wxString_in_helper(obj2); | |
29526 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 29527 | temp3 = true; |
d55e5bfc RD |
29528 | } |
29529 | if (obj3) { | |
29530 | { | |
29531 | arg4 = wxString_in_helper(obj3); | |
29532 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 29533 | temp4 = true; |
d55e5bfc RD |
29534 | } |
29535 | } | |
29536 | { | |
29537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29538 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29539 | ||
29540 | wxPyEndAllowThreads(__tstate); | |
29541 | if (PyErr_Occurred()) SWIG_fail; | |
29542 | } | |
29543 | { | |
412d302d | 29544 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29545 | } |
29546 | { | |
29547 | if (temp3) | |
29548 | delete arg3; | |
29549 | } | |
29550 | { | |
29551 | if (temp4) | |
29552 | delete arg4; | |
29553 | } | |
29554 | return resultobj; | |
29555 | fail: | |
29556 | { | |
29557 | if (temp3) | |
29558 | delete arg3; | |
29559 | } | |
29560 | { | |
29561 | if (temp4) | |
29562 | delete arg4; | |
29563 | } | |
29564 | return NULL; | |
29565 | } | |
29566 | ||
29567 | ||
c370783e | 29568 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29569 | PyObject *resultobj; |
29570 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29571 | int arg2 ; | |
29572 | wxString *arg3 = 0 ; | |
29573 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29574 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29575 | wxMenuItem *result; | |
b411df4a RD |
29576 | bool temp3 = false ; |
29577 | bool temp4 = false ; | |
d55e5bfc RD |
29578 | PyObject * obj0 = 0 ; |
29579 | PyObject * obj1 = 0 ; | |
29580 | PyObject * obj2 = 0 ; | |
29581 | PyObject * obj3 = 0 ; | |
29582 | char *kwnames[] = { | |
29583 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29584 | }; | |
29585 | ||
29586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29589 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29590 | if (PyErr_Occurred()) SWIG_fail; |
29591 | { | |
29592 | arg3 = wxString_in_helper(obj2); | |
29593 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 29594 | temp3 = true; |
d55e5bfc RD |
29595 | } |
29596 | if (obj3) { | |
29597 | { | |
29598 | arg4 = wxString_in_helper(obj3); | |
29599 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 29600 | temp4 = true; |
d55e5bfc RD |
29601 | } |
29602 | } | |
29603 | { | |
29604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29605 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29606 | ||
29607 | wxPyEndAllowThreads(__tstate); | |
29608 | if (PyErr_Occurred()) SWIG_fail; | |
29609 | } | |
29610 | { | |
412d302d | 29611 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29612 | } |
29613 | { | |
29614 | if (temp3) | |
29615 | delete arg3; | |
29616 | } | |
29617 | { | |
29618 | if (temp4) | |
29619 | delete arg4; | |
29620 | } | |
29621 | return resultobj; | |
29622 | fail: | |
29623 | { | |
29624 | if (temp3) | |
29625 | delete arg3; | |
29626 | } | |
29627 | { | |
29628 | if (temp4) | |
29629 | delete arg4; | |
29630 | } | |
29631 | return NULL; | |
29632 | } | |
29633 | ||
29634 | ||
c370783e | 29635 | static PyObject *_wrap_Menu_AppendMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29636 | PyObject *resultobj; |
29637 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29638 | int arg2 ; | |
29639 | wxString *arg3 = 0 ; | |
29640 | wxMenu *arg4 = (wxMenu *) 0 ; | |
29641 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29642 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29643 | wxMenuItem *result; | |
b411df4a RD |
29644 | bool temp3 = false ; |
29645 | bool temp5 = false ; | |
d55e5bfc RD |
29646 | PyObject * obj0 = 0 ; |
29647 | PyObject * obj1 = 0 ; | |
29648 | PyObject * obj2 = 0 ; | |
29649 | PyObject * obj3 = 0 ; | |
29650 | PyObject * obj4 = 0 ; | |
29651 | char *kwnames[] = { | |
29652 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
29653 | }; | |
29654 | ||
29655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29658 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29659 | if (PyErr_Occurred()) SWIG_fail; |
29660 | { | |
29661 | arg3 = wxString_in_helper(obj2); | |
29662 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 29663 | temp3 = true; |
d55e5bfc RD |
29664 | } |
29665 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, | |
29666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29667 | if (obj4) { | |
29668 | { | |
29669 | arg5 = wxString_in_helper(obj4); | |
29670 | if (arg5 == NULL) SWIG_fail; | |
b411df4a | 29671 | temp5 = true; |
d55e5bfc RD |
29672 | } |
29673 | } | |
29674 | { | |
29675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29676 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
29677 | ||
29678 | wxPyEndAllowThreads(__tstate); | |
29679 | if (PyErr_Occurred()) SWIG_fail; | |
29680 | } | |
29681 | { | |
412d302d | 29682 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29683 | } |
29684 | { | |
29685 | if (temp3) | |
29686 | delete arg3; | |
29687 | } | |
29688 | { | |
29689 | if (temp5) | |
29690 | delete arg5; | |
29691 | } | |
29692 | return resultobj; | |
29693 | fail: | |
29694 | { | |
29695 | if (temp3) | |
29696 | delete arg3; | |
29697 | } | |
29698 | { | |
29699 | if (temp5) | |
29700 | delete arg5; | |
29701 | } | |
29702 | return NULL; | |
29703 | } | |
29704 | ||
29705 | ||
c370783e | 29706 | static PyObject *_wrap_Menu_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29707 | PyObject *resultobj; |
29708 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29709 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29710 | wxMenuItem *result; | |
29711 | PyObject * obj0 = 0 ; | |
29712 | PyObject * obj1 = 0 ; | |
29713 | char *kwnames[] = { | |
29714 | (char *) "self",(char *) "item", NULL | |
29715 | }; | |
29716 | ||
29717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
29718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29720 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
29721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29722 | { | |
29723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29724 | result = (wxMenuItem *)(arg1)->Append(arg2); | |
29725 | ||
29726 | wxPyEndAllowThreads(__tstate); | |
29727 | if (PyErr_Occurred()) SWIG_fail; | |
29728 | } | |
29729 | { | |
412d302d | 29730 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29731 | } |
29732 | return resultobj; | |
29733 | fail: | |
29734 | return NULL; | |
29735 | } | |
29736 | ||
29737 | ||
c370783e | 29738 | static PyObject *_wrap_Menu_Break(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29739 | PyObject *resultobj; |
29740 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29741 | PyObject * obj0 = 0 ; | |
29742 | char *kwnames[] = { | |
29743 | (char *) "self", NULL | |
29744 | }; | |
29745 | ||
29746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
29747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29749 | { | |
29750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29751 | (arg1)->Break(); | |
29752 | ||
29753 | wxPyEndAllowThreads(__tstate); | |
29754 | if (PyErr_Occurred()) SWIG_fail; | |
29755 | } | |
29756 | Py_INCREF(Py_None); resultobj = Py_None; | |
29757 | return resultobj; | |
29758 | fail: | |
29759 | return NULL; | |
29760 | } | |
29761 | ||
29762 | ||
c370783e | 29763 | static PyObject *_wrap_Menu_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29764 | PyObject *resultobj; |
29765 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29766 | size_t arg2 ; | |
29767 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
29768 | wxMenuItem *result; | |
29769 | PyObject * obj0 = 0 ; | |
29770 | PyObject * obj1 = 0 ; | |
29771 | PyObject * obj2 = 0 ; | |
29772 | char *kwnames[] = { | |
29773 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
29774 | }; | |
29775 | ||
29776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29779 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
29780 | if (PyErr_Occurred()) SWIG_fail; |
29781 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem, | |
29782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29783 | { | |
29784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29785 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); | |
29786 | ||
29787 | wxPyEndAllowThreads(__tstate); | |
29788 | if (PyErr_Occurred()) SWIG_fail; | |
29789 | } | |
29790 | { | |
412d302d | 29791 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29792 | } |
29793 | return resultobj; | |
29794 | fail: | |
29795 | return NULL; | |
29796 | } | |
29797 | ||
29798 | ||
c370783e | 29799 | static PyObject *_wrap_Menu_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29800 | PyObject *resultobj; |
29801 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29802 | size_t arg2 ; | |
29803 | int arg3 ; | |
29804 | wxString *arg4 = 0 ; | |
29805 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29806 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29807 | int arg6 = (int) wxITEM_NORMAL ; | |
29808 | wxMenuItem *result; | |
b411df4a RD |
29809 | bool temp4 = false ; |
29810 | bool temp5 = false ; | |
d55e5bfc RD |
29811 | PyObject * obj0 = 0 ; |
29812 | PyObject * obj1 = 0 ; | |
29813 | PyObject * obj2 = 0 ; | |
29814 | PyObject * obj3 = 0 ; | |
29815 | PyObject * obj4 = 0 ; | |
29816 | PyObject * obj5 = 0 ; | |
29817 | char *kwnames[] = { | |
29818 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
29819 | }; | |
29820 | ||
29821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29824 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 29825 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29826 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
29827 | if (PyErr_Occurred()) SWIG_fail; |
29828 | { | |
29829 | arg4 = wxString_in_helper(obj3); | |
29830 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 29831 | temp4 = true; |
d55e5bfc RD |
29832 | } |
29833 | if (obj4) { | |
29834 | { | |
29835 | arg5 = wxString_in_helper(obj4); | |
29836 | if (arg5 == NULL) SWIG_fail; | |
b411df4a | 29837 | temp5 = true; |
d55e5bfc RD |
29838 | } |
29839 | } | |
29840 | if (obj5) { | |
c370783e | 29841 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
29842 | if (PyErr_Occurred()) SWIG_fail; |
29843 | } | |
29844 | { | |
29845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29846 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); | |
29847 | ||
29848 | wxPyEndAllowThreads(__tstate); | |
29849 | if (PyErr_Occurred()) SWIG_fail; | |
29850 | } | |
29851 | { | |
412d302d | 29852 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29853 | } |
29854 | { | |
29855 | if (temp4) | |
29856 | delete arg4; | |
29857 | } | |
29858 | { | |
29859 | if (temp5) | |
29860 | delete arg5; | |
29861 | } | |
29862 | return resultobj; | |
29863 | fail: | |
29864 | { | |
29865 | if (temp4) | |
29866 | delete arg4; | |
29867 | } | |
29868 | { | |
29869 | if (temp5) | |
29870 | delete arg5; | |
29871 | } | |
29872 | return NULL; | |
29873 | } | |
29874 | ||
29875 | ||
c370783e | 29876 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29877 | PyObject *resultobj; |
29878 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29879 | size_t arg2 ; | |
29880 | wxMenuItem *result; | |
29881 | PyObject * obj0 = 0 ; | |
29882 | PyObject * obj1 = 0 ; | |
29883 | char *kwnames[] = { | |
29884 | (char *) "self",(char *) "pos", NULL | |
29885 | }; | |
29886 | ||
29887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
29888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29890 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
29891 | if (PyErr_Occurred()) SWIG_fail; |
29892 | { | |
29893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29894 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); | |
29895 | ||
29896 | wxPyEndAllowThreads(__tstate); | |
29897 | if (PyErr_Occurred()) SWIG_fail; | |
29898 | } | |
29899 | { | |
412d302d | 29900 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29901 | } |
29902 | return resultobj; | |
29903 | fail: | |
29904 | return NULL; | |
29905 | } | |
29906 | ||
29907 | ||
c370783e | 29908 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29909 | PyObject *resultobj; |
29910 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29911 | size_t arg2 ; | |
29912 | int arg3 ; | |
29913 | wxString *arg4 = 0 ; | |
29914 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29915 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29916 | wxMenuItem *result; | |
b411df4a RD |
29917 | bool temp4 = false ; |
29918 | bool temp5 = false ; | |
d55e5bfc RD |
29919 | PyObject * obj0 = 0 ; |
29920 | PyObject * obj1 = 0 ; | |
29921 | PyObject * obj2 = 0 ; | |
29922 | PyObject * obj3 = 0 ; | |
29923 | PyObject * obj4 = 0 ; | |
29924 | char *kwnames[] = { | |
29925 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
29926 | }; | |
29927 | ||
29928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29929 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29931 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 29932 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 29933 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
29934 | if (PyErr_Occurred()) SWIG_fail; |
29935 | { | |
29936 | arg4 = wxString_in_helper(obj3); | |
29937 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 29938 | temp4 = true; |
d55e5bfc RD |
29939 | } |
29940 | if (obj4) { | |
29941 | { | |
29942 | arg5 = wxString_in_helper(obj4); | |
29943 | if (arg5 == NULL) SWIG_fail; | |
b411df4a | 29944 | temp5 = true; |
d55e5bfc RD |
29945 | } |
29946 | } | |
29947 | { | |
29948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29949 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
29950 | ||
29951 | wxPyEndAllowThreads(__tstate); | |
29952 | if (PyErr_Occurred()) SWIG_fail; | |
29953 | } | |
29954 | { | |
412d302d | 29955 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29956 | } |
29957 | { | |
29958 | if (temp4) | |
29959 | delete arg4; | |
29960 | } | |
29961 | { | |
29962 | if (temp5) | |
29963 | delete arg5; | |
29964 | } | |
29965 | return resultobj; | |
29966 | fail: | |
29967 | { | |
29968 | if (temp4) | |
29969 | delete arg4; | |
29970 | } | |
29971 | { | |
29972 | if (temp5) | |
29973 | delete arg5; | |
29974 | } | |
29975 | return NULL; | |
29976 | } | |
29977 | ||
29978 | ||
c370783e | 29979 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29980 | PyObject *resultobj; |
29981 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29982 | size_t arg2 ; | |
29983 | int arg3 ; | |
29984 | wxString *arg4 = 0 ; | |
29985 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29986 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29987 | wxMenuItem *result; | |
b411df4a RD |
29988 | bool temp4 = false ; |
29989 | bool temp5 = false ; | |
d55e5bfc RD |
29990 | PyObject * obj0 = 0 ; |
29991 | PyObject * obj1 = 0 ; | |
29992 | PyObject * obj2 = 0 ; | |
29993 | PyObject * obj3 = 0 ; | |
29994 | PyObject * obj4 = 0 ; | |
29995 | char *kwnames[] = { | |
29996 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
29997 | }; | |
29998 | ||
29999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30002 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 30003 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30004 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
30005 | if (PyErr_Occurred()) SWIG_fail; |
30006 | { | |
30007 | arg4 = wxString_in_helper(obj3); | |
30008 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 30009 | temp4 = true; |
d55e5bfc RD |
30010 | } |
30011 | if (obj4) { | |
30012 | { | |
30013 | arg5 = wxString_in_helper(obj4); | |
30014 | if (arg5 == NULL) SWIG_fail; | |
b411df4a | 30015 | temp5 = true; |
d55e5bfc RD |
30016 | } |
30017 | } | |
30018 | { | |
30019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30020 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
30021 | ||
30022 | wxPyEndAllowThreads(__tstate); | |
30023 | if (PyErr_Occurred()) SWIG_fail; | |
30024 | } | |
30025 | { | |
412d302d | 30026 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30027 | } |
30028 | { | |
30029 | if (temp4) | |
30030 | delete arg4; | |
30031 | } | |
30032 | { | |
30033 | if (temp5) | |
30034 | delete arg5; | |
30035 | } | |
30036 | return resultobj; | |
30037 | fail: | |
30038 | { | |
30039 | if (temp4) | |
30040 | delete arg4; | |
30041 | } | |
30042 | { | |
30043 | if (temp5) | |
30044 | delete arg5; | |
30045 | } | |
30046 | return NULL; | |
30047 | } | |
30048 | ||
30049 | ||
c370783e | 30050 | static PyObject *_wrap_Menu_InsertMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30051 | PyObject *resultobj; |
30052 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30053 | size_t arg2 ; | |
30054 | int arg3 ; | |
30055 | wxString *arg4 = 0 ; | |
30056 | wxMenu *arg5 = (wxMenu *) 0 ; | |
30057 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
30058 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
30059 | wxMenuItem *result; | |
b411df4a RD |
30060 | bool temp4 = false ; |
30061 | bool temp6 = false ; | |
d55e5bfc RD |
30062 | PyObject * obj0 = 0 ; |
30063 | PyObject * obj1 = 0 ; | |
30064 | PyObject * obj2 = 0 ; | |
30065 | PyObject * obj3 = 0 ; | |
30066 | PyObject * obj4 = 0 ; | |
30067 | PyObject * obj5 = 0 ; | |
30068 | char *kwnames[] = { | |
30069 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
30070 | }; | |
30071 | ||
30072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
30073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30075 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 30076 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30077 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
30078 | if (PyErr_Occurred()) SWIG_fail; |
30079 | { | |
30080 | arg4 = wxString_in_helper(obj3); | |
30081 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 30082 | temp4 = true; |
d55e5bfc RD |
30083 | } |
30084 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu, | |
30085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30086 | if (obj5) { | |
30087 | { | |
30088 | arg6 = wxString_in_helper(obj5); | |
30089 | if (arg6 == NULL) SWIG_fail; | |
b411df4a | 30090 | temp6 = true; |
d55e5bfc RD |
30091 | } |
30092 | } | |
30093 | { | |
30094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30095 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); | |
30096 | ||
30097 | wxPyEndAllowThreads(__tstate); | |
30098 | if (PyErr_Occurred()) SWIG_fail; | |
30099 | } | |
30100 | { | |
412d302d | 30101 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30102 | } |
30103 | { | |
30104 | if (temp4) | |
30105 | delete arg4; | |
30106 | } | |
30107 | { | |
30108 | if (temp6) | |
30109 | delete arg6; | |
30110 | } | |
30111 | return resultobj; | |
30112 | fail: | |
30113 | { | |
30114 | if (temp4) | |
30115 | delete arg4; | |
30116 | } | |
30117 | { | |
30118 | if (temp6) | |
30119 | delete arg6; | |
30120 | } | |
30121 | return NULL; | |
30122 | } | |
30123 | ||
30124 | ||
c370783e | 30125 | static PyObject *_wrap_Menu_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30126 | PyObject *resultobj; |
30127 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30128 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30129 | wxMenuItem *result; | |
30130 | PyObject * obj0 = 0 ; | |
30131 | PyObject * obj1 = 0 ; | |
30132 | char *kwnames[] = { | |
30133 | (char *) "self",(char *) "item", NULL | |
30134 | }; | |
30135 | ||
30136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
30137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30139 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30141 | { | |
30142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30143 | result = (wxMenuItem *)(arg1)->Prepend(arg2); | |
30144 | ||
30145 | wxPyEndAllowThreads(__tstate); | |
30146 | if (PyErr_Occurred()) SWIG_fail; | |
30147 | } | |
30148 | { | |
412d302d | 30149 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30150 | } |
30151 | return resultobj; | |
30152 | fail: | |
30153 | return NULL; | |
30154 | } | |
30155 | ||
30156 | ||
c370783e | 30157 | static PyObject *_wrap_Menu_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30158 | PyObject *resultobj; |
30159 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30160 | int arg2 ; | |
30161 | wxString *arg3 = 0 ; | |
30162 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30163 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30164 | int arg5 = (int) wxITEM_NORMAL ; | |
30165 | wxMenuItem *result; | |
b411df4a RD |
30166 | bool temp3 = false ; |
30167 | bool temp4 = false ; | |
d55e5bfc RD |
30168 | PyObject * obj0 = 0 ; |
30169 | PyObject * obj1 = 0 ; | |
30170 | PyObject * obj2 = 0 ; | |
30171 | PyObject * obj3 = 0 ; | |
30172 | PyObject * obj4 = 0 ; | |
30173 | char *kwnames[] = { | |
30174 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
30175 | }; | |
30176 | ||
30177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30180 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30181 | if (PyErr_Occurred()) SWIG_fail; |
30182 | { | |
30183 | arg3 = wxString_in_helper(obj2); | |
30184 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 30185 | temp3 = true; |
d55e5bfc RD |
30186 | } |
30187 | if (obj3) { | |
30188 | { | |
30189 | arg4 = wxString_in_helper(obj3); | |
30190 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 30191 | temp4 = true; |
d55e5bfc RD |
30192 | } |
30193 | } | |
30194 | if (obj4) { | |
c370783e | 30195 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
30196 | if (PyErr_Occurred()) SWIG_fail; |
30197 | } | |
30198 | { | |
30199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30200 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
30201 | ||
30202 | wxPyEndAllowThreads(__tstate); | |
30203 | if (PyErr_Occurred()) SWIG_fail; | |
30204 | } | |
30205 | { | |
412d302d | 30206 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30207 | } |
30208 | { | |
30209 | if (temp3) | |
30210 | delete arg3; | |
30211 | } | |
30212 | { | |
30213 | if (temp4) | |
30214 | delete arg4; | |
30215 | } | |
30216 | return resultobj; | |
30217 | fail: | |
30218 | { | |
30219 | if (temp3) | |
30220 | delete arg3; | |
30221 | } | |
30222 | { | |
30223 | if (temp4) | |
30224 | delete arg4; | |
30225 | } | |
30226 | return NULL; | |
30227 | } | |
30228 | ||
30229 | ||
c370783e | 30230 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30231 | PyObject *resultobj; |
30232 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30233 | wxMenuItem *result; | |
30234 | PyObject * obj0 = 0 ; | |
30235 | char *kwnames[] = { | |
30236 | (char *) "self", NULL | |
30237 | }; | |
30238 | ||
30239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
30240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30242 | { | |
30243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30244 | result = (wxMenuItem *)(arg1)->PrependSeparator(); | |
30245 | ||
30246 | wxPyEndAllowThreads(__tstate); | |
30247 | if (PyErr_Occurred()) SWIG_fail; | |
30248 | } | |
30249 | { | |
412d302d | 30250 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30251 | } |
30252 | return resultobj; | |
30253 | fail: | |
30254 | return NULL; | |
30255 | } | |
30256 | ||
30257 | ||
c370783e | 30258 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30259 | PyObject *resultobj; |
30260 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30261 | int arg2 ; | |
30262 | wxString *arg3 = 0 ; | |
30263 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30264 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30265 | wxMenuItem *result; | |
b411df4a RD |
30266 | bool temp3 = false ; |
30267 | bool temp4 = false ; | |
d55e5bfc RD |
30268 | PyObject * obj0 = 0 ; |
30269 | PyObject * obj1 = 0 ; | |
30270 | PyObject * obj2 = 0 ; | |
30271 | PyObject * obj3 = 0 ; | |
30272 | char *kwnames[] = { | |
30273 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
30274 | }; | |
30275 | ||
30276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30279 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30280 | if (PyErr_Occurred()) SWIG_fail; |
30281 | { | |
30282 | arg3 = wxString_in_helper(obj2); | |
30283 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 30284 | temp3 = true; |
d55e5bfc RD |
30285 | } |
30286 | if (obj3) { | |
30287 | { | |
30288 | arg4 = wxString_in_helper(obj3); | |
30289 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 30290 | temp4 = true; |
d55e5bfc RD |
30291 | } |
30292 | } | |
30293 | { | |
30294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30295 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
30296 | ||
30297 | wxPyEndAllowThreads(__tstate); | |
30298 | if (PyErr_Occurred()) SWIG_fail; | |
30299 | } | |
30300 | { | |
412d302d | 30301 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30302 | } |
30303 | { | |
30304 | if (temp3) | |
30305 | delete arg3; | |
30306 | } | |
30307 | { | |
30308 | if (temp4) | |
30309 | delete arg4; | |
30310 | } | |
30311 | return resultobj; | |
30312 | fail: | |
30313 | { | |
30314 | if (temp3) | |
30315 | delete arg3; | |
30316 | } | |
30317 | { | |
30318 | if (temp4) | |
30319 | delete arg4; | |
30320 | } | |
30321 | return NULL; | |
30322 | } | |
30323 | ||
30324 | ||
c370783e | 30325 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30326 | PyObject *resultobj; |
30327 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30328 | int arg2 ; | |
30329 | wxString *arg3 = 0 ; | |
30330 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30331 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30332 | wxMenuItem *result; | |
b411df4a RD |
30333 | bool temp3 = false ; |
30334 | bool temp4 = false ; | |
d55e5bfc RD |
30335 | PyObject * obj0 = 0 ; |
30336 | PyObject * obj1 = 0 ; | |
30337 | PyObject * obj2 = 0 ; | |
30338 | PyObject * obj3 = 0 ; | |
30339 | char *kwnames[] = { | |
30340 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
30341 | }; | |
30342 | ||
30343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30346 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30347 | if (PyErr_Occurred()) SWIG_fail; |
30348 | { | |
30349 | arg3 = wxString_in_helper(obj2); | |
30350 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 30351 | temp3 = true; |
d55e5bfc RD |
30352 | } |
30353 | if (obj3) { | |
30354 | { | |
30355 | arg4 = wxString_in_helper(obj3); | |
30356 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 30357 | temp4 = true; |
d55e5bfc RD |
30358 | } |
30359 | } | |
30360 | { | |
30361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30362 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
30363 | ||
30364 | wxPyEndAllowThreads(__tstate); | |
30365 | if (PyErr_Occurred()) SWIG_fail; | |
30366 | } | |
30367 | { | |
412d302d | 30368 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30369 | } |
30370 | { | |
30371 | if (temp3) | |
30372 | delete arg3; | |
30373 | } | |
30374 | { | |
30375 | if (temp4) | |
30376 | delete arg4; | |
30377 | } | |
30378 | return resultobj; | |
30379 | fail: | |
30380 | { | |
30381 | if (temp3) | |
30382 | delete arg3; | |
30383 | } | |
30384 | { | |
30385 | if (temp4) | |
30386 | delete arg4; | |
30387 | } | |
30388 | return NULL; | |
30389 | } | |
30390 | ||
30391 | ||
c370783e | 30392 | static PyObject *_wrap_Menu_PrependMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30393 | PyObject *resultobj; |
30394 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30395 | int arg2 ; | |
30396 | wxString *arg3 = 0 ; | |
30397 | wxMenu *arg4 = (wxMenu *) 0 ; | |
30398 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
30399 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
30400 | wxMenuItem *result; | |
b411df4a RD |
30401 | bool temp3 = false ; |
30402 | bool temp5 = false ; | |
d55e5bfc RD |
30403 | PyObject * obj0 = 0 ; |
30404 | PyObject * obj1 = 0 ; | |
30405 | PyObject * obj2 = 0 ; | |
30406 | PyObject * obj3 = 0 ; | |
30407 | PyObject * obj4 = 0 ; | |
30408 | char *kwnames[] = { | |
30409 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
30410 | }; | |
30411 | ||
30412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30415 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30416 | if (PyErr_Occurred()) SWIG_fail; |
30417 | { | |
30418 | arg3 = wxString_in_helper(obj2); | |
30419 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 30420 | temp3 = true; |
d55e5bfc RD |
30421 | } |
30422 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, | |
30423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30424 | if (obj4) { | |
30425 | { | |
30426 | arg5 = wxString_in_helper(obj4); | |
30427 | if (arg5 == NULL) SWIG_fail; | |
b411df4a | 30428 | temp5 = true; |
d55e5bfc RD |
30429 | } |
30430 | } | |
30431 | { | |
30432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30433 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
30434 | ||
30435 | wxPyEndAllowThreads(__tstate); | |
30436 | if (PyErr_Occurred()) SWIG_fail; | |
30437 | } | |
30438 | { | |
412d302d | 30439 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30440 | } |
30441 | { | |
30442 | if (temp3) | |
30443 | delete arg3; | |
30444 | } | |
30445 | { | |
30446 | if (temp5) | |
30447 | delete arg5; | |
30448 | } | |
30449 | return resultobj; | |
30450 | fail: | |
30451 | { | |
30452 | if (temp3) | |
30453 | delete arg3; | |
30454 | } | |
30455 | { | |
30456 | if (temp5) | |
30457 | delete arg5; | |
30458 | } | |
30459 | return NULL; | |
30460 | } | |
30461 | ||
30462 | ||
c370783e | 30463 | static PyObject *_wrap_Menu_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30464 | PyObject *resultobj; |
30465 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30466 | int arg2 ; | |
30467 | wxMenuItem *result; | |
30468 | PyObject * obj0 = 0 ; | |
30469 | PyObject * obj1 = 0 ; | |
30470 | char *kwnames[] = { | |
30471 | (char *) "self",(char *) "id", NULL | |
30472 | }; | |
30473 | ||
30474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; | |
30475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30477 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30478 | if (PyErr_Occurred()) SWIG_fail; |
30479 | { | |
30480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30481 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
30482 | ||
30483 | wxPyEndAllowThreads(__tstate); | |
30484 | if (PyErr_Occurred()) SWIG_fail; | |
30485 | } | |
30486 | { | |
412d302d | 30487 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30488 | } |
30489 | return resultobj; | |
30490 | fail: | |
30491 | return NULL; | |
30492 | } | |
30493 | ||
30494 | ||
c370783e | 30495 | static PyObject *_wrap_Menu_RemoveItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30496 | PyObject *resultobj; |
30497 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30498 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30499 | wxMenuItem *result; | |
30500 | PyObject * obj0 = 0 ; | |
30501 | PyObject * obj1 = 0 ; | |
30502 | char *kwnames[] = { | |
30503 | (char *) "self",(char *) "item", NULL | |
30504 | }; | |
30505 | ||
30506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
30507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30509 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30511 | { | |
30512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30513 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
30514 | ||
30515 | wxPyEndAllowThreads(__tstate); | |
30516 | if (PyErr_Occurred()) SWIG_fail; | |
30517 | } | |
30518 | { | |
412d302d | 30519 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30520 | } |
30521 | return resultobj; | |
30522 | fail: | |
30523 | return NULL; | |
30524 | } | |
30525 | ||
30526 | ||
c370783e | 30527 | static PyObject *_wrap_Menu_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30528 | PyObject *resultobj; |
30529 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30530 | int arg2 ; | |
30531 | bool result; | |
30532 | PyObject * obj0 = 0 ; | |
30533 | PyObject * obj1 = 0 ; | |
30534 | char *kwnames[] = { | |
30535 | (char *) "self",(char *) "id", NULL | |
30536 | }; | |
30537 | ||
30538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; | |
30539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30541 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30542 | if (PyErr_Occurred()) SWIG_fail; |
30543 | { | |
30544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30545 | result = (bool)(arg1)->Delete(arg2); | |
30546 | ||
30547 | wxPyEndAllowThreads(__tstate); | |
30548 | if (PyErr_Occurred()) SWIG_fail; | |
30549 | } | |
30550 | { | |
30551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30552 | } | |
30553 | return resultobj; | |
30554 | fail: | |
30555 | return NULL; | |
30556 | } | |
30557 | ||
30558 | ||
c370783e | 30559 | static PyObject *_wrap_Menu_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30560 | PyObject *resultobj; |
30561 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30562 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30563 | bool result; | |
30564 | PyObject * obj0 = 0 ; | |
30565 | PyObject * obj1 = 0 ; | |
30566 | char *kwnames[] = { | |
30567 | (char *) "self",(char *) "item", NULL | |
30568 | }; | |
30569 | ||
30570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
30571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30573 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30575 | { | |
30576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30577 | result = (bool)(arg1)->Delete(arg2); | |
30578 | ||
30579 | wxPyEndAllowThreads(__tstate); | |
30580 | if (PyErr_Occurred()) SWIG_fail; | |
30581 | } | |
30582 | { | |
30583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30584 | } | |
30585 | return resultobj; | |
30586 | fail: | |
30587 | return NULL; | |
30588 | } | |
30589 | ||
30590 | ||
c370783e | 30591 | static PyObject *_wrap_Menu_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30592 | PyObject *resultobj; |
30593 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30594 | PyObject * obj0 = 0 ; | |
30595 | char *kwnames[] = { | |
30596 | (char *) "self", NULL | |
30597 | }; | |
30598 | ||
30599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
30600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30602 | { | |
30603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30604 | wxMenu_Destroy(arg1); | |
30605 | ||
30606 | wxPyEndAllowThreads(__tstate); | |
30607 | if (PyErr_Occurred()) SWIG_fail; | |
30608 | } | |
30609 | Py_INCREF(Py_None); resultobj = Py_None; | |
30610 | return resultobj; | |
30611 | fail: | |
30612 | return NULL; | |
30613 | } | |
30614 | ||
30615 | ||
c370783e | 30616 | static PyObject *_wrap_Menu_DestroyId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30617 | PyObject *resultobj; |
30618 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30619 | int arg2 ; | |
30620 | bool result; | |
30621 | PyObject * obj0 = 0 ; | |
30622 | PyObject * obj1 = 0 ; | |
30623 | char *kwnames[] = { | |
30624 | (char *) "self",(char *) "id", NULL | |
30625 | }; | |
30626 | ||
30627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail; | |
30628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30630 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30631 | if (PyErr_Occurred()) SWIG_fail; |
30632 | { | |
30633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30634 | result = (bool)(arg1)->Destroy(arg2); | |
30635 | ||
30636 | wxPyEndAllowThreads(__tstate); | |
30637 | if (PyErr_Occurred()) SWIG_fail; | |
30638 | } | |
30639 | { | |
30640 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30641 | } | |
30642 | return resultobj; | |
30643 | fail: | |
30644 | return NULL; | |
30645 | } | |
30646 | ||
30647 | ||
c370783e | 30648 | static PyObject *_wrap_Menu_DestroyItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30649 | PyObject *resultobj; |
30650 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30651 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30652 | bool result; | |
30653 | PyObject * obj0 = 0 ; | |
30654 | PyObject * obj1 = 0 ; | |
30655 | char *kwnames[] = { | |
30656 | (char *) "self",(char *) "item", NULL | |
30657 | }; | |
30658 | ||
30659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
30660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30662 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30664 | { | |
30665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30666 | result = (bool)(arg1)->Destroy(arg2); | |
30667 | ||
30668 | wxPyEndAllowThreads(__tstate); | |
30669 | if (PyErr_Occurred()) SWIG_fail; | |
30670 | } | |
30671 | { | |
30672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30673 | } | |
30674 | return resultobj; | |
30675 | fail: | |
30676 | return NULL; | |
30677 | } | |
30678 | ||
30679 | ||
c370783e | 30680 | static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30681 | PyObject *resultobj; |
30682 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30683 | size_t result; | |
30684 | PyObject * obj0 = 0 ; | |
30685 | char *kwnames[] = { | |
30686 | (char *) "self", NULL | |
30687 | }; | |
30688 | ||
30689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
30690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30692 | { | |
30693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30694 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
30695 | ||
30696 | wxPyEndAllowThreads(__tstate); | |
30697 | if (PyErr_Occurred()) SWIG_fail; | |
30698 | } | |
c370783e | 30699 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
30700 | return resultobj; |
30701 | fail: | |
30702 | return NULL; | |
30703 | } | |
30704 | ||
30705 | ||
c370783e | 30706 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30707 | PyObject *resultobj; |
30708 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30709 | PyObject *result; | |
30710 | PyObject * obj0 = 0 ; | |
30711 | char *kwnames[] = { | |
30712 | (char *) "self", NULL | |
30713 | }; | |
30714 | ||
30715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
30716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30718 | { | |
30719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30720 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
30721 | ||
30722 | wxPyEndAllowThreads(__tstate); | |
30723 | if (PyErr_Occurred()) SWIG_fail; | |
30724 | } | |
30725 | resultobj = result; | |
30726 | return resultobj; | |
30727 | fail: | |
30728 | return NULL; | |
30729 | } | |
30730 | ||
30731 | ||
c370783e | 30732 | static PyObject *_wrap_Menu_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30733 | PyObject *resultobj; |
30734 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30735 | wxString *arg2 = 0 ; | |
30736 | int result; | |
b411df4a | 30737 | bool temp2 = false ; |
d55e5bfc RD |
30738 | PyObject * obj0 = 0 ; |
30739 | PyObject * obj1 = 0 ; | |
30740 | char *kwnames[] = { | |
30741 | (char *) "self",(char *) "item", NULL | |
30742 | }; | |
30743 | ||
30744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
30745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30747 | { | |
30748 | arg2 = wxString_in_helper(obj1); | |
30749 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 30750 | temp2 = true; |
d55e5bfc RD |
30751 | } |
30752 | { | |
30753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30754 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
30755 | ||
30756 | wxPyEndAllowThreads(__tstate); | |
30757 | if (PyErr_Occurred()) SWIG_fail; | |
30758 | } | |
c370783e | 30759 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
30760 | { |
30761 | if (temp2) | |
30762 | delete arg2; | |
30763 | } | |
30764 | return resultobj; | |
30765 | fail: | |
30766 | { | |
30767 | if (temp2) | |
30768 | delete arg2; | |
30769 | } | |
30770 | return NULL; | |
30771 | } | |
30772 | ||
30773 | ||
c370783e | 30774 | static PyObject *_wrap_Menu_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30775 | PyObject *resultobj; |
30776 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30777 | int arg2 ; | |
30778 | wxMenuItem *result; | |
30779 | PyObject * obj0 = 0 ; | |
30780 | PyObject * obj1 = 0 ; | |
30781 | char *kwnames[] = { | |
30782 | (char *) "self",(char *) "id", NULL | |
30783 | }; | |
30784 | ||
30785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
30786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30788 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30789 | if (PyErr_Occurred()) SWIG_fail; |
30790 | { | |
30791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30792 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
30793 | ||
30794 | wxPyEndAllowThreads(__tstate); | |
30795 | if (PyErr_Occurred()) SWIG_fail; | |
30796 | } | |
30797 | { | |
412d302d | 30798 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30799 | } |
30800 | return resultobj; | |
30801 | fail: | |
30802 | return NULL; | |
30803 | } | |
30804 | ||
30805 | ||
c370783e | 30806 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30807 | PyObject *resultobj; |
30808 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30809 | size_t arg2 ; | |
30810 | wxMenuItem *result; | |
30811 | PyObject * obj0 = 0 ; | |
30812 | PyObject * obj1 = 0 ; | |
30813 | char *kwnames[] = { | |
30814 | (char *) "self",(char *) "position", NULL | |
30815 | }; | |
30816 | ||
30817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail; | |
30818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30820 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
30821 | if (PyErr_Occurred()) SWIG_fail; |
30822 | { | |
30823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30824 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
30825 | ||
30826 | wxPyEndAllowThreads(__tstate); | |
30827 | if (PyErr_Occurred()) SWIG_fail; | |
30828 | } | |
30829 | { | |
412d302d | 30830 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30831 | } |
30832 | return resultobj; | |
30833 | fail: | |
30834 | return NULL; | |
30835 | } | |
30836 | ||
30837 | ||
c370783e | 30838 | static PyObject *_wrap_Menu_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30839 | PyObject *resultobj; |
30840 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30841 | int arg2 ; | |
30842 | bool arg3 ; | |
30843 | PyObject * obj0 = 0 ; | |
30844 | PyObject * obj1 = 0 ; | |
30845 | PyObject * obj2 = 0 ; | |
30846 | char *kwnames[] = { | |
30847 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
30848 | }; | |
30849 | ||
30850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30853 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 30854 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30855 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
30856 | if (PyErr_Occurred()) SWIG_fail; |
30857 | { | |
30858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30859 | (arg1)->Enable(arg2,arg3); | |
30860 | ||
30861 | wxPyEndAllowThreads(__tstate); | |
30862 | if (PyErr_Occurred()) SWIG_fail; | |
30863 | } | |
30864 | Py_INCREF(Py_None); resultobj = Py_None; | |
30865 | return resultobj; | |
30866 | fail: | |
30867 | return NULL; | |
30868 | } | |
30869 | ||
30870 | ||
c370783e | 30871 | static PyObject *_wrap_Menu_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30872 | PyObject *resultobj; |
30873 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30874 | int arg2 ; | |
30875 | bool result; | |
30876 | PyObject * obj0 = 0 ; | |
30877 | PyObject * obj1 = 0 ; | |
30878 | char *kwnames[] = { | |
30879 | (char *) "self",(char *) "id", NULL | |
30880 | }; | |
30881 | ||
30882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
30883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30885 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30886 | if (PyErr_Occurred()) SWIG_fail; |
30887 | { | |
30888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30889 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
30890 | ||
30891 | wxPyEndAllowThreads(__tstate); | |
30892 | if (PyErr_Occurred()) SWIG_fail; | |
30893 | } | |
30894 | { | |
30895 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30896 | } | |
30897 | return resultobj; | |
30898 | fail: | |
30899 | return NULL; | |
30900 | } | |
30901 | ||
30902 | ||
c370783e | 30903 | static PyObject *_wrap_Menu_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30904 | PyObject *resultobj; |
30905 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30906 | int arg2 ; | |
30907 | bool arg3 ; | |
30908 | PyObject * obj0 = 0 ; | |
30909 | PyObject * obj1 = 0 ; | |
30910 | PyObject * obj2 = 0 ; | |
30911 | char *kwnames[] = { | |
30912 | (char *) "self",(char *) "id",(char *) "check", NULL | |
30913 | }; | |
30914 | ||
30915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30918 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 30919 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30920 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
30921 | if (PyErr_Occurred()) SWIG_fail; |
30922 | { | |
30923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30924 | (arg1)->Check(arg2,arg3); | |
30925 | ||
30926 | wxPyEndAllowThreads(__tstate); | |
30927 | if (PyErr_Occurred()) SWIG_fail; | |
30928 | } | |
30929 | Py_INCREF(Py_None); resultobj = Py_None; | |
30930 | return resultobj; | |
30931 | fail: | |
30932 | return NULL; | |
30933 | } | |
30934 | ||
30935 | ||
c370783e | 30936 | static PyObject *_wrap_Menu_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30937 | PyObject *resultobj; |
30938 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30939 | int arg2 ; | |
30940 | bool result; | |
30941 | PyObject * obj0 = 0 ; | |
30942 | PyObject * obj1 = 0 ; | |
30943 | char *kwnames[] = { | |
30944 | (char *) "self",(char *) "id", NULL | |
30945 | }; | |
30946 | ||
30947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
30948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30950 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30951 | if (PyErr_Occurred()) SWIG_fail; |
30952 | { | |
30953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30954 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
30955 | ||
30956 | wxPyEndAllowThreads(__tstate); | |
30957 | if (PyErr_Occurred()) SWIG_fail; | |
30958 | } | |
30959 | { | |
30960 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30961 | } | |
30962 | return resultobj; | |
30963 | fail: | |
30964 | return NULL; | |
30965 | } | |
30966 | ||
30967 | ||
c370783e | 30968 | static PyObject *_wrap_Menu_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30969 | PyObject *resultobj; |
30970 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30971 | int arg2 ; | |
30972 | wxString *arg3 = 0 ; | |
b411df4a | 30973 | bool temp3 = false ; |
d55e5bfc RD |
30974 | PyObject * obj0 = 0 ; |
30975 | PyObject * obj1 = 0 ; | |
30976 | PyObject * obj2 = 0 ; | |
30977 | char *kwnames[] = { | |
30978 | (char *) "self",(char *) "id",(char *) "label", NULL | |
30979 | }; | |
30980 | ||
30981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30984 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30985 | if (PyErr_Occurred()) SWIG_fail; |
30986 | { | |
30987 | arg3 = wxString_in_helper(obj2); | |
30988 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 30989 | temp3 = true; |
d55e5bfc RD |
30990 | } |
30991 | { | |
30992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30993 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
30994 | ||
30995 | wxPyEndAllowThreads(__tstate); | |
30996 | if (PyErr_Occurred()) SWIG_fail; | |
30997 | } | |
30998 | Py_INCREF(Py_None); resultobj = Py_None; | |
30999 | { | |
31000 | if (temp3) | |
31001 | delete arg3; | |
31002 | } | |
31003 | return resultobj; | |
31004 | fail: | |
31005 | { | |
31006 | if (temp3) | |
31007 | delete arg3; | |
31008 | } | |
31009 | return NULL; | |
31010 | } | |
31011 | ||
31012 | ||
c370783e | 31013 | static PyObject *_wrap_Menu_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31014 | PyObject *resultobj; |
31015 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31016 | int arg2 ; | |
31017 | wxString result; | |
31018 | PyObject * obj0 = 0 ; | |
31019 | PyObject * obj1 = 0 ; | |
31020 | char *kwnames[] = { | |
31021 | (char *) "self",(char *) "id", NULL | |
31022 | }; | |
31023 | ||
31024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
31025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31027 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31028 | if (PyErr_Occurred()) SWIG_fail; |
31029 | { | |
31030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31031 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
31032 | ||
31033 | wxPyEndAllowThreads(__tstate); | |
31034 | if (PyErr_Occurred()) SWIG_fail; | |
31035 | } | |
31036 | { | |
31037 | #if wxUSE_UNICODE | |
31038 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31039 | #else | |
31040 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31041 | #endif | |
31042 | } | |
31043 | return resultobj; | |
31044 | fail: | |
31045 | return NULL; | |
31046 | } | |
31047 | ||
31048 | ||
c370783e | 31049 | static PyObject *_wrap_Menu_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31050 | PyObject *resultobj; |
31051 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31052 | int arg2 ; | |
31053 | wxString *arg3 = 0 ; | |
b411df4a | 31054 | bool temp3 = false ; |
d55e5bfc RD |
31055 | PyObject * obj0 = 0 ; |
31056 | PyObject * obj1 = 0 ; | |
31057 | PyObject * obj2 = 0 ; | |
31058 | char *kwnames[] = { | |
31059 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
31060 | }; | |
31061 | ||
31062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31065 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31066 | if (PyErr_Occurred()) SWIG_fail; |
31067 | { | |
31068 | arg3 = wxString_in_helper(obj2); | |
31069 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 31070 | temp3 = true; |
d55e5bfc RD |
31071 | } |
31072 | { | |
31073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31074 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
31075 | ||
31076 | wxPyEndAllowThreads(__tstate); | |
31077 | if (PyErr_Occurred()) SWIG_fail; | |
31078 | } | |
31079 | Py_INCREF(Py_None); resultobj = Py_None; | |
31080 | { | |
31081 | if (temp3) | |
31082 | delete arg3; | |
31083 | } | |
31084 | return resultobj; | |
31085 | fail: | |
31086 | { | |
31087 | if (temp3) | |
31088 | delete arg3; | |
31089 | } | |
31090 | return NULL; | |
31091 | } | |
31092 | ||
31093 | ||
c370783e | 31094 | static PyObject *_wrap_Menu_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31095 | PyObject *resultobj; |
31096 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31097 | int arg2 ; | |
31098 | wxString result; | |
31099 | PyObject * obj0 = 0 ; | |
31100 | PyObject * obj1 = 0 ; | |
31101 | char *kwnames[] = { | |
31102 | (char *) "self",(char *) "id", NULL | |
31103 | }; | |
31104 | ||
31105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
31106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31108 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31109 | if (PyErr_Occurred()) SWIG_fail; |
31110 | { | |
31111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31112 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
31113 | ||
31114 | wxPyEndAllowThreads(__tstate); | |
31115 | if (PyErr_Occurred()) SWIG_fail; | |
31116 | } | |
31117 | { | |
31118 | #if wxUSE_UNICODE | |
31119 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31120 | #else | |
31121 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31122 | #endif | |
31123 | } | |
31124 | return resultobj; | |
31125 | fail: | |
31126 | return NULL; | |
31127 | } | |
31128 | ||
31129 | ||
c370783e | 31130 | static PyObject *_wrap_Menu_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31131 | PyObject *resultobj; |
31132 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31133 | wxString *arg2 = 0 ; | |
b411df4a | 31134 | bool temp2 = false ; |
d55e5bfc RD |
31135 | PyObject * obj0 = 0 ; |
31136 | PyObject * obj1 = 0 ; | |
31137 | char *kwnames[] = { | |
31138 | (char *) "self",(char *) "title", NULL | |
31139 | }; | |
31140 | ||
31141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
31142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31144 | { | |
31145 | arg2 = wxString_in_helper(obj1); | |
31146 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 31147 | temp2 = true; |
d55e5bfc RD |
31148 | } |
31149 | { | |
31150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31151 | (arg1)->SetTitle((wxString const &)*arg2); | |
31152 | ||
31153 | wxPyEndAllowThreads(__tstate); | |
31154 | if (PyErr_Occurred()) SWIG_fail; | |
31155 | } | |
31156 | Py_INCREF(Py_None); resultobj = Py_None; | |
31157 | { | |
31158 | if (temp2) | |
31159 | delete arg2; | |
31160 | } | |
31161 | return resultobj; | |
31162 | fail: | |
31163 | { | |
31164 | if (temp2) | |
31165 | delete arg2; | |
31166 | } | |
31167 | return NULL; | |
31168 | } | |
31169 | ||
31170 | ||
c370783e | 31171 | static PyObject *_wrap_Menu_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31172 | PyObject *resultobj; |
31173 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31174 | wxString result; | |
31175 | PyObject * obj0 = 0 ; | |
31176 | char *kwnames[] = { | |
31177 | (char *) "self", NULL | |
31178 | }; | |
31179 | ||
31180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
31181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31183 | { | |
31184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31185 | result = ((wxMenu const *)arg1)->GetTitle(); | |
31186 | ||
31187 | wxPyEndAllowThreads(__tstate); | |
31188 | if (PyErr_Occurred()) SWIG_fail; | |
31189 | } | |
31190 | { | |
31191 | #if wxUSE_UNICODE | |
31192 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31193 | #else | |
31194 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31195 | #endif | |
31196 | } | |
31197 | return resultobj; | |
31198 | fail: | |
31199 | return NULL; | |
31200 | } | |
31201 | ||
31202 | ||
c370783e | 31203 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31204 | PyObject *resultobj; |
31205 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31206 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
31207 | PyObject * obj0 = 0 ; | |
31208 | PyObject * obj1 = 0 ; | |
31209 | char *kwnames[] = { | |
31210 | (char *) "self",(char *) "handler", NULL | |
31211 | }; | |
31212 | ||
31213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
31214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31216 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
31217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31218 | { | |
31219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31220 | (arg1)->SetEventHandler(arg2); | |
31221 | ||
31222 | wxPyEndAllowThreads(__tstate); | |
31223 | if (PyErr_Occurred()) SWIG_fail; | |
31224 | } | |
31225 | Py_INCREF(Py_None); resultobj = Py_None; | |
31226 | return resultobj; | |
31227 | fail: | |
31228 | return NULL; | |
31229 | } | |
31230 | ||
31231 | ||
c370783e | 31232 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31233 | PyObject *resultobj; |
31234 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31235 | wxEvtHandler *result; | |
31236 | PyObject * obj0 = 0 ; | |
31237 | char *kwnames[] = { | |
31238 | (char *) "self", NULL | |
31239 | }; | |
31240 | ||
31241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
31242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31244 | { | |
31245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31246 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
31247 | ||
31248 | wxPyEndAllowThreads(__tstate); | |
31249 | if (PyErr_Occurred()) SWIG_fail; | |
31250 | } | |
31251 | { | |
412d302d | 31252 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31253 | } |
31254 | return resultobj; | |
31255 | fail: | |
31256 | return NULL; | |
31257 | } | |
31258 | ||
31259 | ||
c370783e | 31260 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31261 | PyObject *resultobj; |
31262 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31263 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31264 | PyObject * obj0 = 0 ; | |
31265 | PyObject * obj1 = 0 ; | |
31266 | char *kwnames[] = { | |
31267 | (char *) "self",(char *) "win", NULL | |
31268 | }; | |
31269 | ||
31270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
31271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31273 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
31274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31275 | { | |
31276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31277 | (arg1)->SetInvokingWindow(arg2); | |
31278 | ||
31279 | wxPyEndAllowThreads(__tstate); | |
31280 | if (PyErr_Occurred()) SWIG_fail; | |
31281 | } | |
31282 | Py_INCREF(Py_None); resultobj = Py_None; | |
31283 | return resultobj; | |
31284 | fail: | |
31285 | return NULL; | |
31286 | } | |
31287 | ||
31288 | ||
c370783e | 31289 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31290 | PyObject *resultobj; |
31291 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31292 | wxWindow *result; | |
31293 | PyObject * obj0 = 0 ; | |
31294 | char *kwnames[] = { | |
31295 | (char *) "self", NULL | |
31296 | }; | |
31297 | ||
31298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
31299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31301 | { | |
31302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31303 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
31304 | ||
31305 | wxPyEndAllowThreads(__tstate); | |
31306 | if (PyErr_Occurred()) SWIG_fail; | |
31307 | } | |
31308 | { | |
412d302d | 31309 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31310 | } |
31311 | return resultobj; | |
31312 | fail: | |
31313 | return NULL; | |
31314 | } | |
31315 | ||
31316 | ||
c370783e | 31317 | static PyObject *_wrap_Menu_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31318 | PyObject *resultobj; |
31319 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31320 | long result; | |
31321 | PyObject * obj0 = 0 ; | |
31322 | char *kwnames[] = { | |
31323 | (char *) "self", NULL | |
31324 | }; | |
31325 | ||
31326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
31327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31329 | { | |
31330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31331 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
31332 | ||
31333 | wxPyEndAllowThreads(__tstate); | |
31334 | if (PyErr_Occurred()) SWIG_fail; | |
31335 | } | |
c370783e | 31336 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
31337 | return resultobj; |
31338 | fail: | |
31339 | return NULL; | |
31340 | } | |
31341 | ||
31342 | ||
c370783e | 31343 | static PyObject *_wrap_Menu_UpdateUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31344 | PyObject *resultobj; |
31345 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31346 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
31347 | PyObject * obj0 = 0 ; | |
31348 | PyObject * obj1 = 0 ; | |
31349 | char *kwnames[] = { | |
31350 | (char *) "self",(char *) "source", NULL | |
31351 | }; | |
31352 | ||
31353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
31354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31356 | if (obj1) { | |
31357 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
31358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31359 | } | |
31360 | { | |
31361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31362 | (arg1)->UpdateUI(arg2); | |
31363 | ||
31364 | wxPyEndAllowThreads(__tstate); | |
31365 | if (PyErr_Occurred()) SWIG_fail; | |
31366 | } | |
31367 | Py_INCREF(Py_None); resultobj = Py_None; | |
31368 | return resultobj; | |
31369 | fail: | |
31370 | return NULL; | |
31371 | } | |
31372 | ||
31373 | ||
c370783e | 31374 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31375 | PyObject *resultobj; |
31376 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31377 | wxMenuBar *result; | |
31378 | PyObject * obj0 = 0 ; | |
31379 | char *kwnames[] = { | |
31380 | (char *) "self", NULL | |
31381 | }; | |
31382 | ||
31383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
31384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31386 | { | |
31387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31388 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
31389 | ||
31390 | wxPyEndAllowThreads(__tstate); | |
31391 | if (PyErr_Occurred()) SWIG_fail; | |
31392 | } | |
31393 | { | |
412d302d | 31394 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31395 | } |
31396 | return resultobj; | |
31397 | fail: | |
31398 | return NULL; | |
31399 | } | |
31400 | ||
31401 | ||
c370783e | 31402 | static PyObject *_wrap_Menu_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31403 | PyObject *resultobj; |
31404 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31405 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
31406 | PyObject * obj0 = 0 ; | |
31407 | PyObject * obj1 = 0 ; | |
31408 | char *kwnames[] = { | |
31409 | (char *) "self",(char *) "menubar", NULL | |
31410 | }; | |
31411 | ||
31412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
31413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31415 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase, | |
31416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31417 | { | |
31418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31419 | (arg1)->Attach(arg2); | |
31420 | ||
31421 | wxPyEndAllowThreads(__tstate); | |
31422 | if (PyErr_Occurred()) SWIG_fail; | |
31423 | } | |
31424 | Py_INCREF(Py_None); resultobj = Py_None; | |
31425 | return resultobj; | |
31426 | fail: | |
31427 | return NULL; | |
31428 | } | |
31429 | ||
31430 | ||
c370783e | 31431 | static PyObject *_wrap_Menu_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31432 | PyObject *resultobj; |
31433 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31434 | PyObject * obj0 = 0 ; | |
31435 | char *kwnames[] = { | |
31436 | (char *) "self", NULL | |
31437 | }; | |
31438 | ||
31439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
31440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31442 | { | |
31443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31444 | (arg1)->Detach(); | |
31445 | ||
31446 | wxPyEndAllowThreads(__tstate); | |
31447 | if (PyErr_Occurred()) SWIG_fail; | |
31448 | } | |
31449 | Py_INCREF(Py_None); resultobj = Py_None; | |
31450 | return resultobj; | |
31451 | fail: | |
31452 | return NULL; | |
31453 | } | |
31454 | ||
31455 | ||
c370783e | 31456 | static PyObject *_wrap_Menu_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31457 | PyObject *resultobj; |
31458 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31459 | bool result; | |
31460 | PyObject * obj0 = 0 ; | |
31461 | char *kwnames[] = { | |
31462 | (char *) "self", NULL | |
31463 | }; | |
31464 | ||
31465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
31466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31468 | { | |
31469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31470 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
31471 | ||
31472 | wxPyEndAllowThreads(__tstate); | |
31473 | if (PyErr_Occurred()) SWIG_fail; | |
31474 | } | |
31475 | { | |
31476 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31477 | } | |
31478 | return resultobj; | |
31479 | fail: | |
31480 | return NULL; | |
31481 | } | |
31482 | ||
31483 | ||
c370783e | 31484 | static PyObject *_wrap_Menu_SetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31485 | PyObject *resultobj; |
31486 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31487 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31488 | PyObject * obj0 = 0 ; | |
31489 | PyObject * obj1 = 0 ; | |
31490 | char *kwnames[] = { | |
31491 | (char *) "self",(char *) "parent", NULL | |
31492 | }; | |
31493 | ||
31494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
31495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31497 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31499 | { | |
31500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31501 | (arg1)->SetParent(arg2); | |
31502 | ||
31503 | wxPyEndAllowThreads(__tstate); | |
31504 | if (PyErr_Occurred()) SWIG_fail; | |
31505 | } | |
31506 | Py_INCREF(Py_None); resultobj = Py_None; | |
31507 | return resultobj; | |
31508 | fail: | |
31509 | return NULL; | |
31510 | } | |
31511 | ||
31512 | ||
c370783e | 31513 | static PyObject *_wrap_Menu_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31514 | PyObject *resultobj; |
31515 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31516 | wxMenu *result; | |
31517 | PyObject * obj0 = 0 ; | |
31518 | char *kwnames[] = { | |
31519 | (char *) "self", NULL | |
31520 | }; | |
31521 | ||
31522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
31523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31525 | { | |
31526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31527 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
31528 | ||
31529 | wxPyEndAllowThreads(__tstate); | |
31530 | if (PyErr_Occurred()) SWIG_fail; | |
31531 | } | |
31532 | { | |
412d302d | 31533 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31534 | } |
31535 | return resultobj; | |
31536 | fail: | |
31537 | return NULL; | |
31538 | } | |
31539 | ||
31540 | ||
c370783e | 31541 | static PyObject * Menu_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31542 | PyObject *obj; |
31543 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31544 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
31545 | Py_INCREF(obj); | |
31546 | return Py_BuildValue((char *)""); | |
31547 | } | |
c370783e | 31548 | static PyObject *_wrap_new_MenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31549 | PyObject *resultobj; |
31550 | long arg1 = (long) 0 ; | |
31551 | wxMenuBar *result; | |
31552 | PyObject * obj0 = 0 ; | |
31553 | char *kwnames[] = { | |
31554 | (char *) "style", NULL | |
31555 | }; | |
31556 | ||
31557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; | |
31558 | if (obj0) { | |
c370783e | 31559 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
31560 | if (PyErr_Occurred()) SWIG_fail; |
31561 | } | |
31562 | { | |
0439c23b | 31563 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31565 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
31566 | ||
31567 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31568 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 31569 | } |
b0f7404b | 31570 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuBar, 1); |
d55e5bfc RD |
31571 | return resultobj; |
31572 | fail: | |
31573 | return NULL; | |
31574 | } | |
31575 | ||
31576 | ||
c370783e | 31577 | static PyObject *_wrap_MenuBar_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31578 | PyObject *resultobj; |
31579 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31580 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31581 | wxString *arg3 = 0 ; | |
31582 | bool result; | |
b411df4a | 31583 | bool temp3 = false ; |
d55e5bfc RD |
31584 | PyObject * obj0 = 0 ; |
31585 | PyObject * obj1 = 0 ; | |
31586 | PyObject * obj2 = 0 ; | |
31587 | char *kwnames[] = { | |
31588 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
31589 | }; | |
31590 | ||
31591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31594 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31596 | { | |
31597 | arg3 = wxString_in_helper(obj2); | |
31598 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 31599 | temp3 = true; |
d55e5bfc RD |
31600 | } |
31601 | { | |
31602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31603 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
31604 | ||
31605 | wxPyEndAllowThreads(__tstate); | |
31606 | if (PyErr_Occurred()) SWIG_fail; | |
31607 | } | |
31608 | { | |
31609 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31610 | } | |
31611 | { | |
31612 | if (temp3) | |
31613 | delete arg3; | |
31614 | } | |
31615 | return resultobj; | |
31616 | fail: | |
31617 | { | |
31618 | if (temp3) | |
31619 | delete arg3; | |
31620 | } | |
31621 | return NULL; | |
31622 | } | |
31623 | ||
31624 | ||
c370783e | 31625 | static PyObject *_wrap_MenuBar_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31626 | PyObject *resultobj; |
31627 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31628 | size_t arg2 ; | |
31629 | wxMenu *arg3 = (wxMenu *) 0 ; | |
31630 | wxString *arg4 = 0 ; | |
31631 | bool result; | |
b411df4a | 31632 | bool temp4 = false ; |
d55e5bfc RD |
31633 | PyObject * obj0 = 0 ; |
31634 | PyObject * obj1 = 0 ; | |
31635 | PyObject * obj2 = 0 ; | |
31636 | PyObject * obj3 = 0 ; | |
31637 | char *kwnames[] = { | |
31638 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
31639 | }; | |
31640 | ||
31641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
31642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31644 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31645 | if (PyErr_Occurred()) SWIG_fail; |
31646 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
31647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31648 | { | |
31649 | arg4 = wxString_in_helper(obj3); | |
31650 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 31651 | temp4 = true; |
d55e5bfc RD |
31652 | } |
31653 | { | |
31654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31655 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
31656 | ||
31657 | wxPyEndAllowThreads(__tstate); | |
31658 | if (PyErr_Occurred()) SWIG_fail; | |
31659 | } | |
31660 | { | |
31661 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31662 | } | |
31663 | { | |
31664 | if (temp4) | |
31665 | delete arg4; | |
31666 | } | |
31667 | return resultobj; | |
31668 | fail: | |
31669 | { | |
31670 | if (temp4) | |
31671 | delete arg4; | |
31672 | } | |
31673 | return NULL; | |
31674 | } | |
31675 | ||
31676 | ||
c370783e | 31677 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31678 | PyObject *resultobj; |
31679 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31680 | size_t result; | |
31681 | PyObject * obj0 = 0 ; | |
31682 | char *kwnames[] = { | |
31683 | (char *) "self", NULL | |
31684 | }; | |
31685 | ||
31686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
31687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31689 | { | |
31690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31691 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
31692 | ||
31693 | wxPyEndAllowThreads(__tstate); | |
31694 | if (PyErr_Occurred()) SWIG_fail; | |
31695 | } | |
c370783e | 31696 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
31697 | return resultobj; |
31698 | fail: | |
31699 | return NULL; | |
31700 | } | |
31701 | ||
31702 | ||
c370783e | 31703 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31704 | PyObject *resultobj; |
31705 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31706 | size_t arg2 ; | |
31707 | wxMenu *result; | |
31708 | PyObject * obj0 = 0 ; | |
31709 | PyObject * obj1 = 0 ; | |
31710 | char *kwnames[] = { | |
31711 | (char *) "self",(char *) "pos", NULL | |
31712 | }; | |
31713 | ||
31714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
31715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31717 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31718 | if (PyErr_Occurred()) SWIG_fail; |
31719 | { | |
31720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31721 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
31722 | ||
31723 | wxPyEndAllowThreads(__tstate); | |
31724 | if (PyErr_Occurred()) SWIG_fail; | |
31725 | } | |
31726 | { | |
412d302d | 31727 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31728 | } |
31729 | return resultobj; | |
31730 | fail: | |
31731 | return NULL; | |
31732 | } | |
31733 | ||
31734 | ||
c370783e | 31735 | static PyObject *_wrap_MenuBar_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31736 | PyObject *resultobj; |
31737 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31738 | size_t arg2 ; | |
31739 | wxMenu *arg3 = (wxMenu *) 0 ; | |
31740 | wxString *arg4 = 0 ; | |
31741 | wxMenu *result; | |
b411df4a | 31742 | bool temp4 = false ; |
d55e5bfc RD |
31743 | PyObject * obj0 = 0 ; |
31744 | PyObject * obj1 = 0 ; | |
31745 | PyObject * obj2 = 0 ; | |
31746 | PyObject * obj3 = 0 ; | |
31747 | char *kwnames[] = { | |
31748 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
31749 | }; | |
31750 | ||
31751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
31752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31754 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31755 | if (PyErr_Occurred()) SWIG_fail; |
31756 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
31757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31758 | { | |
31759 | arg4 = wxString_in_helper(obj3); | |
31760 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 31761 | temp4 = true; |
d55e5bfc RD |
31762 | } |
31763 | { | |
31764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31765 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
31766 | ||
31767 | wxPyEndAllowThreads(__tstate); | |
31768 | if (PyErr_Occurred()) SWIG_fail; | |
31769 | } | |
31770 | { | |
412d302d | 31771 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31772 | } |
31773 | { | |
31774 | if (temp4) | |
31775 | delete arg4; | |
31776 | } | |
31777 | return resultobj; | |
31778 | fail: | |
31779 | { | |
31780 | if (temp4) | |
31781 | delete arg4; | |
31782 | } | |
31783 | return NULL; | |
31784 | } | |
31785 | ||
31786 | ||
c370783e | 31787 | static PyObject *_wrap_MenuBar_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31788 | PyObject *resultobj; |
31789 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31790 | size_t arg2 ; | |
31791 | wxMenu *result; | |
31792 | PyObject * obj0 = 0 ; | |
31793 | PyObject * obj1 = 0 ; | |
31794 | char *kwnames[] = { | |
31795 | (char *) "self",(char *) "pos", NULL | |
31796 | }; | |
31797 | ||
31798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
31799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31801 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31802 | if (PyErr_Occurred()) SWIG_fail; |
31803 | { | |
31804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31805 | result = (wxMenu *)(arg1)->Remove(arg2); | |
31806 | ||
31807 | wxPyEndAllowThreads(__tstate); | |
31808 | if (PyErr_Occurred()) SWIG_fail; | |
31809 | } | |
31810 | { | |
412d302d | 31811 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31812 | } |
31813 | return resultobj; | |
31814 | fail: | |
31815 | return NULL; | |
31816 | } | |
31817 | ||
31818 | ||
c370783e | 31819 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31820 | PyObject *resultobj; |
31821 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31822 | size_t arg2 ; | |
31823 | bool arg3 ; | |
31824 | PyObject * obj0 = 0 ; | |
31825 | PyObject * obj1 = 0 ; | |
31826 | PyObject * obj2 = 0 ; | |
31827 | char *kwnames[] = { | |
31828 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
31829 | }; | |
31830 | ||
31831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31834 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 31835 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 31836 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
31837 | if (PyErr_Occurred()) SWIG_fail; |
31838 | { | |
31839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31840 | (arg1)->EnableTop(arg2,arg3); | |
31841 | ||
31842 | wxPyEndAllowThreads(__tstate); | |
31843 | if (PyErr_Occurred()) SWIG_fail; | |
31844 | } | |
31845 | Py_INCREF(Py_None); resultobj = Py_None; | |
31846 | return resultobj; | |
31847 | fail: | |
31848 | return NULL; | |
31849 | } | |
31850 | ||
31851 | ||
c370783e | 31852 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31853 | PyObject *resultobj; |
31854 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31855 | size_t arg2 ; | |
31856 | bool result; | |
31857 | PyObject * obj0 = 0 ; | |
31858 | PyObject * obj1 = 0 ; | |
31859 | char *kwnames[] = { | |
31860 | (char *) "self",(char *) "pos", NULL | |
31861 | }; | |
31862 | ||
31863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
31864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31866 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31867 | if (PyErr_Occurred()) SWIG_fail; |
31868 | { | |
31869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31870 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
31871 | ||
31872 | wxPyEndAllowThreads(__tstate); | |
31873 | if (PyErr_Occurred()) SWIG_fail; | |
31874 | } | |
31875 | { | |
31876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31877 | } | |
31878 | return resultobj; | |
31879 | fail: | |
31880 | return NULL; | |
31881 | } | |
31882 | ||
31883 | ||
c370783e | 31884 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31885 | PyObject *resultobj; |
31886 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31887 | size_t arg2 ; | |
31888 | wxString *arg3 = 0 ; | |
b411df4a | 31889 | bool temp3 = false ; |
d55e5bfc RD |
31890 | PyObject * obj0 = 0 ; |
31891 | PyObject * obj1 = 0 ; | |
31892 | PyObject * obj2 = 0 ; | |
31893 | char *kwnames[] = { | |
31894 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
31895 | }; | |
31896 | ||
31897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31900 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31901 | if (PyErr_Occurred()) SWIG_fail; |
31902 | { | |
31903 | arg3 = wxString_in_helper(obj2); | |
31904 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 31905 | temp3 = true; |
d55e5bfc RD |
31906 | } |
31907 | { | |
31908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31909 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
31910 | ||
31911 | wxPyEndAllowThreads(__tstate); | |
31912 | if (PyErr_Occurred()) SWIG_fail; | |
31913 | } | |
31914 | Py_INCREF(Py_None); resultobj = Py_None; | |
31915 | { | |
31916 | if (temp3) | |
31917 | delete arg3; | |
31918 | } | |
31919 | return resultobj; | |
31920 | fail: | |
31921 | { | |
31922 | if (temp3) | |
31923 | delete arg3; | |
31924 | } | |
31925 | return NULL; | |
31926 | } | |
31927 | ||
31928 | ||
c370783e | 31929 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31930 | PyObject *resultobj; |
31931 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31932 | size_t arg2 ; | |
31933 | wxString result; | |
31934 | PyObject * obj0 = 0 ; | |
31935 | PyObject * obj1 = 0 ; | |
31936 | char *kwnames[] = { | |
31937 | (char *) "self",(char *) "pos", NULL | |
31938 | }; | |
31939 | ||
31940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
31941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31943 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31944 | if (PyErr_Occurred()) SWIG_fail; |
31945 | { | |
31946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31947 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
31948 | ||
31949 | wxPyEndAllowThreads(__tstate); | |
31950 | if (PyErr_Occurred()) SWIG_fail; | |
31951 | } | |
31952 | { | |
31953 | #if wxUSE_UNICODE | |
31954 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31955 | #else | |
31956 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31957 | #endif | |
31958 | } | |
31959 | return resultobj; | |
31960 | fail: | |
31961 | return NULL; | |
31962 | } | |
31963 | ||
31964 | ||
c370783e | 31965 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31966 | PyObject *resultobj; |
31967 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31968 | wxString *arg2 = 0 ; | |
31969 | wxString *arg3 = 0 ; | |
31970 | int result; | |
b411df4a RD |
31971 | bool temp2 = false ; |
31972 | bool temp3 = false ; | |
d55e5bfc RD |
31973 | PyObject * obj0 = 0 ; |
31974 | PyObject * obj1 = 0 ; | |
31975 | PyObject * obj2 = 0 ; | |
31976 | char *kwnames[] = { | |
31977 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
31978 | }; | |
31979 | ||
31980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31983 | { | |
31984 | arg2 = wxString_in_helper(obj1); | |
31985 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 31986 | temp2 = true; |
d55e5bfc RD |
31987 | } |
31988 | { | |
31989 | arg3 = wxString_in_helper(obj2); | |
31990 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 31991 | temp3 = true; |
d55e5bfc RD |
31992 | } |
31993 | { | |
31994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31995 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
31996 | ||
31997 | wxPyEndAllowThreads(__tstate); | |
31998 | if (PyErr_Occurred()) SWIG_fail; | |
31999 | } | |
c370783e | 32000 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
32001 | { |
32002 | if (temp2) | |
32003 | delete arg2; | |
32004 | } | |
32005 | { | |
32006 | if (temp3) | |
32007 | delete arg3; | |
32008 | } | |
32009 | return resultobj; | |
32010 | fail: | |
32011 | { | |
32012 | if (temp2) | |
32013 | delete arg2; | |
32014 | } | |
32015 | { | |
32016 | if (temp3) | |
32017 | delete arg3; | |
32018 | } | |
32019 | return NULL; | |
32020 | } | |
32021 | ||
32022 | ||
c370783e | 32023 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32024 | PyObject *resultobj; |
32025 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32026 | int arg2 ; | |
32027 | wxMenuItem *result; | |
32028 | PyObject * obj0 = 0 ; | |
32029 | PyObject * obj1 = 0 ; | |
32030 | char *kwnames[] = { | |
32031 | (char *) "self",(char *) "id", NULL | |
32032 | }; | |
32033 | ||
32034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
32035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32037 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32038 | if (PyErr_Occurred()) SWIG_fail; |
32039 | { | |
32040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32041 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
32042 | ||
32043 | wxPyEndAllowThreads(__tstate); | |
32044 | if (PyErr_Occurred()) SWIG_fail; | |
32045 | } | |
32046 | { | |
412d302d | 32047 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32048 | } |
32049 | return resultobj; | |
32050 | fail: | |
32051 | return NULL; | |
32052 | } | |
32053 | ||
32054 | ||
c370783e | 32055 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32056 | PyObject *resultobj; |
32057 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32058 | wxString *arg2 = 0 ; | |
32059 | int result; | |
b411df4a | 32060 | bool temp2 = false ; |
d55e5bfc RD |
32061 | PyObject * obj0 = 0 ; |
32062 | PyObject * obj1 = 0 ; | |
32063 | char *kwnames[] = { | |
32064 | (char *) "self",(char *) "title", NULL | |
32065 | }; | |
32066 | ||
32067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
32068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32070 | { | |
32071 | arg2 = wxString_in_helper(obj1); | |
32072 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 32073 | temp2 = true; |
d55e5bfc RD |
32074 | } |
32075 | { | |
32076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32077 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
32078 | ||
32079 | wxPyEndAllowThreads(__tstate); | |
32080 | if (PyErr_Occurred()) SWIG_fail; | |
32081 | } | |
c370783e | 32082 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
32083 | { |
32084 | if (temp2) | |
32085 | delete arg2; | |
32086 | } | |
32087 | return resultobj; | |
32088 | fail: | |
32089 | { | |
32090 | if (temp2) | |
32091 | delete arg2; | |
32092 | } | |
32093 | return NULL; | |
32094 | } | |
32095 | ||
32096 | ||
c370783e | 32097 | static PyObject *_wrap_MenuBar_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32098 | PyObject *resultobj; |
32099 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32100 | int arg2 ; | |
32101 | bool arg3 ; | |
32102 | PyObject * obj0 = 0 ; | |
32103 | PyObject * obj1 = 0 ; | |
32104 | PyObject * obj2 = 0 ; | |
32105 | char *kwnames[] = { | |
32106 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
32107 | }; | |
32108 | ||
32109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32112 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 32113 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 32114 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
32115 | if (PyErr_Occurred()) SWIG_fail; |
32116 | { | |
32117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32118 | (arg1)->Enable(arg2,arg3); | |
32119 | ||
32120 | wxPyEndAllowThreads(__tstate); | |
32121 | if (PyErr_Occurred()) SWIG_fail; | |
32122 | } | |
32123 | Py_INCREF(Py_None); resultobj = Py_None; | |
32124 | return resultobj; | |
32125 | fail: | |
32126 | return NULL; | |
32127 | } | |
32128 | ||
32129 | ||
c370783e | 32130 | static PyObject *_wrap_MenuBar_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32131 | PyObject *resultobj; |
32132 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32133 | int arg2 ; | |
32134 | bool arg3 ; | |
32135 | PyObject * obj0 = 0 ; | |
32136 | PyObject * obj1 = 0 ; | |
32137 | PyObject * obj2 = 0 ; | |
32138 | char *kwnames[] = { | |
32139 | (char *) "self",(char *) "id",(char *) "check", NULL | |
32140 | }; | |
32141 | ||
32142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32145 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 32146 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 32147 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
32148 | if (PyErr_Occurred()) SWIG_fail; |
32149 | { | |
32150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32151 | (arg1)->Check(arg2,arg3); | |
32152 | ||
32153 | wxPyEndAllowThreads(__tstate); | |
32154 | if (PyErr_Occurred()) SWIG_fail; | |
32155 | } | |
32156 | Py_INCREF(Py_None); resultobj = Py_None; | |
32157 | return resultobj; | |
32158 | fail: | |
32159 | return NULL; | |
32160 | } | |
32161 | ||
32162 | ||
c370783e | 32163 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32164 | PyObject *resultobj; |
32165 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32166 | int arg2 ; | |
32167 | bool result; | |
32168 | PyObject * obj0 = 0 ; | |
32169 | PyObject * obj1 = 0 ; | |
32170 | char *kwnames[] = { | |
32171 | (char *) "self",(char *) "id", NULL | |
32172 | }; | |
32173 | ||
32174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
32175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32177 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32178 | if (PyErr_Occurred()) SWIG_fail; |
32179 | { | |
32180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32181 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
32182 | ||
32183 | wxPyEndAllowThreads(__tstate); | |
32184 | if (PyErr_Occurred()) SWIG_fail; | |
32185 | } | |
32186 | { | |
32187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32188 | } | |
32189 | return resultobj; | |
32190 | fail: | |
32191 | return NULL; | |
32192 | } | |
32193 | ||
32194 | ||
c370783e | 32195 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32196 | PyObject *resultobj; |
32197 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32198 | int arg2 ; | |
32199 | bool result; | |
32200 | PyObject * obj0 = 0 ; | |
32201 | PyObject * obj1 = 0 ; | |
32202 | char *kwnames[] = { | |
32203 | (char *) "self",(char *) "id", NULL | |
32204 | }; | |
32205 | ||
32206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
32207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32209 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32210 | if (PyErr_Occurred()) SWIG_fail; |
32211 | { | |
32212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32213 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
32214 | ||
32215 | wxPyEndAllowThreads(__tstate); | |
32216 | if (PyErr_Occurred()) SWIG_fail; | |
32217 | } | |
32218 | { | |
32219 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32220 | } | |
32221 | return resultobj; | |
32222 | fail: | |
32223 | return NULL; | |
32224 | } | |
32225 | ||
32226 | ||
c370783e | 32227 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32228 | PyObject *resultobj; |
32229 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32230 | int arg2 ; | |
32231 | wxString *arg3 = 0 ; | |
b411df4a | 32232 | bool temp3 = false ; |
d55e5bfc RD |
32233 | PyObject * obj0 = 0 ; |
32234 | PyObject * obj1 = 0 ; | |
32235 | PyObject * obj2 = 0 ; | |
32236 | char *kwnames[] = { | |
32237 | (char *) "self",(char *) "id",(char *) "label", NULL | |
32238 | }; | |
32239 | ||
32240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32243 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32244 | if (PyErr_Occurred()) SWIG_fail; |
32245 | { | |
32246 | arg3 = wxString_in_helper(obj2); | |
32247 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 32248 | temp3 = true; |
d55e5bfc RD |
32249 | } |
32250 | { | |
32251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32252 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
32253 | ||
32254 | wxPyEndAllowThreads(__tstate); | |
32255 | if (PyErr_Occurred()) SWIG_fail; | |
32256 | } | |
32257 | Py_INCREF(Py_None); resultobj = Py_None; | |
32258 | { | |
32259 | if (temp3) | |
32260 | delete arg3; | |
32261 | } | |
32262 | return resultobj; | |
32263 | fail: | |
32264 | { | |
32265 | if (temp3) | |
32266 | delete arg3; | |
32267 | } | |
32268 | return NULL; | |
32269 | } | |
32270 | ||
32271 | ||
c370783e | 32272 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32273 | PyObject *resultobj; |
32274 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32275 | int arg2 ; | |
32276 | wxString result; | |
32277 | PyObject * obj0 = 0 ; | |
32278 | PyObject * obj1 = 0 ; | |
32279 | char *kwnames[] = { | |
32280 | (char *) "self",(char *) "id", NULL | |
32281 | }; | |
32282 | ||
32283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
32284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32286 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32287 | if (PyErr_Occurred()) SWIG_fail; |
32288 | { | |
32289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32290 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
32291 | ||
32292 | wxPyEndAllowThreads(__tstate); | |
32293 | if (PyErr_Occurred()) SWIG_fail; | |
32294 | } | |
32295 | { | |
32296 | #if wxUSE_UNICODE | |
32297 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32298 | #else | |
32299 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32300 | #endif | |
32301 | } | |
32302 | return resultobj; | |
32303 | fail: | |
32304 | return NULL; | |
32305 | } | |
32306 | ||
32307 | ||
c370783e | 32308 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32309 | PyObject *resultobj; |
32310 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32311 | int arg2 ; | |
32312 | wxString *arg3 = 0 ; | |
b411df4a | 32313 | bool temp3 = false ; |
d55e5bfc RD |
32314 | PyObject * obj0 = 0 ; |
32315 | PyObject * obj1 = 0 ; | |
32316 | PyObject * obj2 = 0 ; | |
32317 | char *kwnames[] = { | |
32318 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
32319 | }; | |
32320 | ||
32321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32324 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32325 | if (PyErr_Occurred()) SWIG_fail; |
32326 | { | |
32327 | arg3 = wxString_in_helper(obj2); | |
32328 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 32329 | temp3 = true; |
d55e5bfc RD |
32330 | } |
32331 | { | |
32332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32333 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
32334 | ||
32335 | wxPyEndAllowThreads(__tstate); | |
32336 | if (PyErr_Occurred()) SWIG_fail; | |
32337 | } | |
32338 | Py_INCREF(Py_None); resultobj = Py_None; | |
32339 | { | |
32340 | if (temp3) | |
32341 | delete arg3; | |
32342 | } | |
32343 | return resultobj; | |
32344 | fail: | |
32345 | { | |
32346 | if (temp3) | |
32347 | delete arg3; | |
32348 | } | |
32349 | return NULL; | |
32350 | } | |
32351 | ||
32352 | ||
c370783e | 32353 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32354 | PyObject *resultobj; |
32355 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32356 | int arg2 ; | |
32357 | wxString result; | |
32358 | PyObject * obj0 = 0 ; | |
32359 | PyObject * obj1 = 0 ; | |
32360 | char *kwnames[] = { | |
32361 | (char *) "self",(char *) "id", NULL | |
32362 | }; | |
32363 | ||
32364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
32365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32367 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32368 | if (PyErr_Occurred()) SWIG_fail; |
32369 | { | |
32370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32371 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
32372 | ||
32373 | wxPyEndAllowThreads(__tstate); | |
32374 | if (PyErr_Occurred()) SWIG_fail; | |
32375 | } | |
32376 | { | |
32377 | #if wxUSE_UNICODE | |
32378 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32379 | #else | |
32380 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32381 | #endif | |
32382 | } | |
32383 | return resultobj; | |
32384 | fail: | |
32385 | return NULL; | |
32386 | } | |
32387 | ||
32388 | ||
c370783e | 32389 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32390 | PyObject *resultobj; |
32391 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32392 | wxFrame *result; | |
32393 | PyObject * obj0 = 0 ; | |
32394 | char *kwnames[] = { | |
32395 | (char *) "self", NULL | |
32396 | }; | |
32397 | ||
32398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
32399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32401 | { | |
32402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32403 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
32404 | ||
32405 | wxPyEndAllowThreads(__tstate); | |
32406 | if (PyErr_Occurred()) SWIG_fail; | |
32407 | } | |
32408 | { | |
412d302d | 32409 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32410 | } |
32411 | return resultobj; | |
32412 | fail: | |
32413 | return NULL; | |
32414 | } | |
32415 | ||
32416 | ||
c370783e | 32417 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32418 | PyObject *resultobj; |
32419 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32420 | bool result; | |
32421 | PyObject * obj0 = 0 ; | |
32422 | char *kwnames[] = { | |
32423 | (char *) "self", NULL | |
32424 | }; | |
32425 | ||
32426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
32427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32429 | { | |
32430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32431 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
32432 | ||
32433 | wxPyEndAllowThreads(__tstate); | |
32434 | if (PyErr_Occurred()) SWIG_fail; | |
32435 | } | |
32436 | { | |
32437 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32438 | } | |
32439 | return resultobj; | |
32440 | fail: | |
32441 | return NULL; | |
32442 | } | |
32443 | ||
32444 | ||
c370783e | 32445 | static PyObject *_wrap_MenuBar_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32446 | PyObject *resultobj; |
32447 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32448 | wxFrame *arg2 = (wxFrame *) 0 ; | |
32449 | PyObject * obj0 = 0 ; | |
32450 | PyObject * obj1 = 0 ; | |
32451 | char *kwnames[] = { | |
32452 | (char *) "self",(char *) "frame", NULL | |
32453 | }; | |
32454 | ||
32455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
32456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32458 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
32459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32460 | { | |
32461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32462 | (arg1)->Attach(arg2); | |
32463 | ||
32464 | wxPyEndAllowThreads(__tstate); | |
32465 | if (PyErr_Occurred()) SWIG_fail; | |
32466 | } | |
32467 | Py_INCREF(Py_None); resultobj = Py_None; | |
32468 | return resultobj; | |
32469 | fail: | |
32470 | return NULL; | |
32471 | } | |
32472 | ||
32473 | ||
c370783e | 32474 | static PyObject *_wrap_MenuBar_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32475 | PyObject *resultobj; |
32476 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32477 | PyObject * obj0 = 0 ; | |
32478 | char *kwnames[] = { | |
32479 | (char *) "self", NULL | |
32480 | }; | |
32481 | ||
32482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
32483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32485 | { | |
32486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32487 | (arg1)->Detach(); | |
32488 | ||
32489 | wxPyEndAllowThreads(__tstate); | |
32490 | if (PyErr_Occurred()) SWIG_fail; | |
32491 | } | |
32492 | Py_INCREF(Py_None); resultobj = Py_None; | |
32493 | return resultobj; | |
32494 | fail: | |
32495 | return NULL; | |
32496 | } | |
32497 | ||
32498 | ||
c370783e | 32499 | static PyObject * MenuBar_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
32500 | PyObject *obj; |
32501 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32502 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
32503 | Py_INCREF(obj); | |
32504 | return Py_BuildValue((char *)""); | |
32505 | } | |
c370783e | 32506 | static PyObject *_wrap_new_MenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32507 | PyObject *resultobj; |
32508 | wxMenu *arg1 = (wxMenu *) NULL ; | |
32509 | int arg2 = (int) wxID_ANY ; | |
32510 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
32511 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
32512 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
32513 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
32514 | int arg5 = (int) wxITEM_NORMAL ; | |
32515 | wxMenu *arg6 = (wxMenu *) NULL ; | |
32516 | wxMenuItem *result; | |
b411df4a RD |
32517 | bool temp3 = false ; |
32518 | bool temp4 = false ; | |
d55e5bfc RD |
32519 | PyObject * obj0 = 0 ; |
32520 | PyObject * obj1 = 0 ; | |
32521 | PyObject * obj2 = 0 ; | |
32522 | PyObject * obj3 = 0 ; | |
32523 | PyObject * obj4 = 0 ; | |
32524 | PyObject * obj5 = 0 ; | |
32525 | char *kwnames[] = { | |
32526 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
32527 | }; | |
32528 | ||
32529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
32530 | if (obj0) { | |
32531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
32532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32533 | } | |
32534 | if (obj1) { | |
c370783e | 32535 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32536 | if (PyErr_Occurred()) SWIG_fail; |
32537 | } | |
32538 | if (obj2) { | |
32539 | { | |
32540 | arg3 = wxString_in_helper(obj2); | |
32541 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 32542 | temp3 = true; |
d55e5bfc RD |
32543 | } |
32544 | } | |
32545 | if (obj3) { | |
32546 | { | |
32547 | arg4 = wxString_in_helper(obj3); | |
32548 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 32549 | temp4 = true; |
d55e5bfc RD |
32550 | } |
32551 | } | |
32552 | if (obj4) { | |
c370783e | 32553 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
32554 | if (PyErr_Occurred()) SWIG_fail; |
32555 | } | |
32556 | if (obj5) { | |
32557 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu, | |
32558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32559 | } | |
32560 | { | |
32561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32562 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
32563 | ||
32564 | wxPyEndAllowThreads(__tstate); | |
32565 | if (PyErr_Occurred()) SWIG_fail; | |
32566 | } | |
32567 | { | |
412d302d | 32568 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
32569 | } |
32570 | { | |
32571 | if (temp3) | |
32572 | delete arg3; | |
32573 | } | |
32574 | { | |
32575 | if (temp4) | |
32576 | delete arg4; | |
32577 | } | |
32578 | return resultobj; | |
32579 | fail: | |
32580 | { | |
32581 | if (temp3) | |
32582 | delete arg3; | |
32583 | } | |
32584 | { | |
32585 | if (temp4) | |
32586 | delete arg4; | |
32587 | } | |
32588 | return NULL; | |
32589 | } | |
32590 | ||
32591 | ||
c370783e | 32592 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32593 | PyObject *resultobj; |
32594 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32595 | wxMenu *result; | |
32596 | PyObject * obj0 = 0 ; | |
32597 | char *kwnames[] = { | |
32598 | (char *) "self", NULL | |
32599 | }; | |
32600 | ||
32601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
32602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32604 | { | |
32605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32606 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
32607 | ||
32608 | wxPyEndAllowThreads(__tstate); | |
32609 | if (PyErr_Occurred()) SWIG_fail; | |
32610 | } | |
32611 | { | |
412d302d | 32612 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32613 | } |
32614 | return resultobj; | |
32615 | fail: | |
32616 | return NULL; | |
32617 | } | |
32618 | ||
32619 | ||
c370783e | 32620 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32621 | PyObject *resultobj; |
32622 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32623 | wxMenu *arg2 = (wxMenu *) 0 ; | |
32624 | PyObject * obj0 = 0 ; | |
32625 | PyObject * obj1 = 0 ; | |
32626 | char *kwnames[] = { | |
32627 | (char *) "self",(char *) "menu", NULL | |
32628 | }; | |
32629 | ||
32630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
32631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32633 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
32634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32635 | { | |
32636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32637 | (arg1)->SetMenu(arg2); | |
32638 | ||
32639 | wxPyEndAllowThreads(__tstate); | |
32640 | if (PyErr_Occurred()) SWIG_fail; | |
32641 | } | |
32642 | Py_INCREF(Py_None); resultobj = Py_None; | |
32643 | return resultobj; | |
32644 | fail: | |
32645 | return NULL; | |
32646 | } | |
32647 | ||
32648 | ||
c370783e | 32649 | static PyObject *_wrap_MenuItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32650 | PyObject *resultobj; |
32651 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32652 | int arg2 ; | |
32653 | PyObject * obj0 = 0 ; | |
32654 | PyObject * obj1 = 0 ; | |
32655 | char *kwnames[] = { | |
32656 | (char *) "self",(char *) "id", NULL | |
32657 | }; | |
32658 | ||
32659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
32660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32662 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32663 | if (PyErr_Occurred()) SWIG_fail; |
32664 | { | |
32665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32666 | (arg1)->SetId(arg2); | |
32667 | ||
32668 | wxPyEndAllowThreads(__tstate); | |
32669 | if (PyErr_Occurred()) SWIG_fail; | |
32670 | } | |
32671 | Py_INCREF(Py_None); resultobj = Py_None; | |
32672 | return resultobj; | |
32673 | fail: | |
32674 | return NULL; | |
32675 | } | |
32676 | ||
32677 | ||
c370783e | 32678 | static PyObject *_wrap_MenuItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32679 | PyObject *resultobj; |
32680 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32681 | int result; | |
32682 | PyObject * obj0 = 0 ; | |
32683 | char *kwnames[] = { | |
32684 | (char *) "self", NULL | |
32685 | }; | |
32686 | ||
32687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
32688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32690 | { | |
32691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32692 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
32693 | ||
32694 | wxPyEndAllowThreads(__tstate); | |
32695 | if (PyErr_Occurred()) SWIG_fail; | |
32696 | } | |
c370783e | 32697 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
32698 | return resultobj; |
32699 | fail: | |
32700 | return NULL; | |
32701 | } | |
32702 | ||
32703 | ||
c370783e | 32704 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32705 | PyObject *resultobj; |
32706 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32707 | bool result; | |
32708 | PyObject * obj0 = 0 ; | |
32709 | char *kwnames[] = { | |
32710 | (char *) "self", NULL | |
32711 | }; | |
32712 | ||
32713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
32714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32716 | { | |
32717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32718 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
32719 | ||
32720 | wxPyEndAllowThreads(__tstate); | |
32721 | if (PyErr_Occurred()) SWIG_fail; | |
32722 | } | |
32723 | { | |
32724 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32725 | } | |
32726 | return resultobj; | |
32727 | fail: | |
32728 | return NULL; | |
32729 | } | |
32730 | ||
32731 | ||
c370783e | 32732 | static PyObject *_wrap_MenuItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32733 | PyObject *resultobj; |
32734 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32735 | wxString *arg2 = 0 ; | |
b411df4a | 32736 | bool temp2 = false ; |
d55e5bfc RD |
32737 | PyObject * obj0 = 0 ; |
32738 | PyObject * obj1 = 0 ; | |
32739 | char *kwnames[] = { | |
32740 | (char *) "self",(char *) "str", NULL | |
32741 | }; | |
32742 | ||
32743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
32744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32746 | { | |
32747 | arg2 = wxString_in_helper(obj1); | |
32748 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 32749 | temp2 = true; |
d55e5bfc RD |
32750 | } |
32751 | { | |
32752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32753 | (arg1)->SetText((wxString const &)*arg2); | |
32754 | ||
32755 | wxPyEndAllowThreads(__tstate); | |
32756 | if (PyErr_Occurred()) SWIG_fail; | |
32757 | } | |
32758 | Py_INCREF(Py_None); resultobj = Py_None; | |
32759 | { | |
32760 | if (temp2) | |
32761 | delete arg2; | |
32762 | } | |
32763 | return resultobj; | |
32764 | fail: | |
32765 | { | |
32766 | if (temp2) | |
32767 | delete arg2; | |
32768 | } | |
32769 | return NULL; | |
32770 | } | |
32771 | ||
32772 | ||
c370783e | 32773 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32774 | PyObject *resultobj; |
32775 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32776 | wxString result; | |
32777 | PyObject * obj0 = 0 ; | |
32778 | char *kwnames[] = { | |
32779 | (char *) "self", NULL | |
32780 | }; | |
32781 | ||
32782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
32783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32785 | { | |
32786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32787 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
32788 | ||
32789 | wxPyEndAllowThreads(__tstate); | |
32790 | if (PyErr_Occurred()) SWIG_fail; | |
32791 | } | |
32792 | { | |
32793 | #if wxUSE_UNICODE | |
32794 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32795 | #else | |
32796 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32797 | #endif | |
32798 | } | |
32799 | return resultobj; | |
32800 | fail: | |
32801 | return NULL; | |
32802 | } | |
32803 | ||
32804 | ||
c370783e | 32805 | static PyObject *_wrap_MenuItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32806 | PyObject *resultobj; |
32807 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32808 | wxString *result; | |
32809 | PyObject * obj0 = 0 ; | |
32810 | char *kwnames[] = { | |
32811 | (char *) "self", NULL | |
32812 | }; | |
32813 | ||
32814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
32815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32817 | { | |
32818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32819 | { | |
32820 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
32821 | result = (wxString *) &_result_ref; | |
32822 | } | |
32823 | ||
32824 | wxPyEndAllowThreads(__tstate); | |
32825 | if (PyErr_Occurred()) SWIG_fail; | |
32826 | } | |
32827 | { | |
32828 | #if wxUSE_UNICODE | |
32829 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
32830 | #else | |
32831 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
32832 | #endif | |
32833 | } | |
32834 | return resultobj; | |
32835 | fail: | |
32836 | return NULL; | |
32837 | } | |
32838 | ||
32839 | ||
c370783e | 32840 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32841 | PyObject *resultobj; |
32842 | wxString *arg1 = 0 ; | |
32843 | wxString result; | |
b411df4a | 32844 | bool temp1 = false ; |
d55e5bfc RD |
32845 | PyObject * obj0 = 0 ; |
32846 | char *kwnames[] = { | |
32847 | (char *) "text", NULL | |
32848 | }; | |
32849 | ||
32850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
32851 | { | |
32852 | arg1 = wxString_in_helper(obj0); | |
32853 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 32854 | temp1 = true; |
d55e5bfc RD |
32855 | } |
32856 | { | |
32857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32858 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
32859 | ||
32860 | wxPyEndAllowThreads(__tstate); | |
32861 | if (PyErr_Occurred()) SWIG_fail; | |
32862 | } | |
32863 | { | |
32864 | #if wxUSE_UNICODE | |
32865 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32866 | #else | |
32867 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32868 | #endif | |
32869 | } | |
32870 | { | |
32871 | if (temp1) | |
32872 | delete arg1; | |
32873 | } | |
32874 | return resultobj; | |
32875 | fail: | |
32876 | { | |
32877 | if (temp1) | |
32878 | delete arg1; | |
32879 | } | |
32880 | return NULL; | |
32881 | } | |
32882 | ||
32883 | ||
c370783e | 32884 | static PyObject *_wrap_MenuItem_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32885 | PyObject *resultobj; |
32886 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32887 | int result; | |
32888 | PyObject * obj0 = 0 ; | |
32889 | char *kwnames[] = { | |
32890 | (char *) "self", NULL | |
32891 | }; | |
32892 | ||
32893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
32894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32896 | { | |
32897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32898 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
32899 | ||
32900 | wxPyEndAllowThreads(__tstate); | |
32901 | if (PyErr_Occurred()) SWIG_fail; | |
32902 | } | |
c370783e | 32903 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
32904 | return resultobj; |
32905 | fail: | |
32906 | return NULL; | |
32907 | } | |
32908 | ||
32909 | ||
c370783e | 32910 | static PyObject *_wrap_MenuItem_SetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32911 | PyObject *resultobj; |
32912 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32913 | int arg2 ; | |
32914 | PyObject * obj0 = 0 ; | |
32915 | PyObject * obj1 = 0 ; | |
32916 | char *kwnames[] = { | |
32917 | (char *) "self",(char *) "kind", NULL | |
32918 | }; | |
32919 | ||
32920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail; | |
32921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32923 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32924 | if (PyErr_Occurred()) SWIG_fail; |
32925 | { | |
32926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32927 | (arg1)->SetKind((wxItemKind )arg2); | |
32928 | ||
32929 | wxPyEndAllowThreads(__tstate); | |
32930 | if (PyErr_Occurred()) SWIG_fail; | |
32931 | } | |
32932 | Py_INCREF(Py_None); resultobj = Py_None; | |
32933 | return resultobj; | |
32934 | fail: | |
32935 | return NULL; | |
32936 | } | |
32937 | ||
32938 | ||
c370783e | 32939 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32940 | PyObject *resultobj; |
32941 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32942 | bool arg2 ; | |
32943 | PyObject * obj0 = 0 ; | |
32944 | PyObject * obj1 = 0 ; | |
32945 | char *kwnames[] = { | |
32946 | (char *) "self",(char *) "checkable", NULL | |
32947 | }; | |
32948 | ||
32949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
32950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32952 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
32953 | if (PyErr_Occurred()) SWIG_fail; |
32954 | { | |
32955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32956 | (arg1)->SetCheckable(arg2); | |
32957 | ||
32958 | wxPyEndAllowThreads(__tstate); | |
32959 | if (PyErr_Occurred()) SWIG_fail; | |
32960 | } | |
32961 | Py_INCREF(Py_None); resultobj = Py_None; | |
32962 | return resultobj; | |
32963 | fail: | |
32964 | return NULL; | |
32965 | } | |
32966 | ||
32967 | ||
c370783e | 32968 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32969 | PyObject *resultobj; |
32970 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32971 | bool result; | |
32972 | PyObject * obj0 = 0 ; | |
32973 | char *kwnames[] = { | |
32974 | (char *) "self", NULL | |
32975 | }; | |
32976 | ||
32977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
32978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32980 | { | |
32981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32982 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
32983 | ||
32984 | wxPyEndAllowThreads(__tstate); | |
32985 | if (PyErr_Occurred()) SWIG_fail; | |
32986 | } | |
32987 | { | |
32988 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32989 | } | |
32990 | return resultobj; | |
32991 | fail: | |
32992 | return NULL; | |
32993 | } | |
32994 | ||
32995 | ||
c370783e | 32996 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32997 | PyObject *resultobj; |
32998 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32999 | bool result; | |
33000 | PyObject * obj0 = 0 ; | |
33001 | char *kwnames[] = { | |
33002 | (char *) "self", NULL | |
33003 | }; | |
33004 | ||
33005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
33006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33008 | { | |
33009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33010 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
33011 | ||
33012 | wxPyEndAllowThreads(__tstate); | |
33013 | if (PyErr_Occurred()) SWIG_fail; | |
33014 | } | |
33015 | { | |
33016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33017 | } | |
33018 | return resultobj; | |
33019 | fail: | |
33020 | return NULL; | |
33021 | } | |
33022 | ||
33023 | ||
c370783e | 33024 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33025 | PyObject *resultobj; |
33026 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33027 | wxMenu *arg2 = (wxMenu *) 0 ; | |
33028 | PyObject * obj0 = 0 ; | |
33029 | PyObject * obj1 = 0 ; | |
33030 | char *kwnames[] = { | |
33031 | (char *) "self",(char *) "menu", NULL | |
33032 | }; | |
33033 | ||
33034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
33035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33037 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
33038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33039 | { | |
33040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33041 | (arg1)->SetSubMenu(arg2); | |
33042 | ||
33043 | wxPyEndAllowThreads(__tstate); | |
33044 | if (PyErr_Occurred()) SWIG_fail; | |
33045 | } | |
33046 | Py_INCREF(Py_None); resultobj = Py_None; | |
33047 | return resultobj; | |
33048 | fail: | |
33049 | return NULL; | |
33050 | } | |
33051 | ||
33052 | ||
c370783e | 33053 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33054 | PyObject *resultobj; |
33055 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33056 | wxMenu *result; | |
33057 | PyObject * obj0 = 0 ; | |
33058 | char *kwnames[] = { | |
33059 | (char *) "self", NULL | |
33060 | }; | |
33061 | ||
33062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
33063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33065 | { | |
33066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33067 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
33068 | ||
33069 | wxPyEndAllowThreads(__tstate); | |
33070 | if (PyErr_Occurred()) SWIG_fail; | |
33071 | } | |
33072 | { | |
412d302d | 33073 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33074 | } |
33075 | return resultobj; | |
33076 | fail: | |
33077 | return NULL; | |
33078 | } | |
33079 | ||
33080 | ||
c370783e | 33081 | static PyObject *_wrap_MenuItem_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33082 | PyObject *resultobj; |
33083 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
b411df4a | 33084 | bool arg2 = (bool) true ; |
d55e5bfc RD |
33085 | PyObject * obj0 = 0 ; |
33086 | PyObject * obj1 = 0 ; | |
33087 | char *kwnames[] = { | |
33088 | (char *) "self",(char *) "enable", NULL | |
33089 | }; | |
33090 | ||
33091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
33092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33094 | if (obj1) { | |
c370783e | 33095 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
33096 | if (PyErr_Occurred()) SWIG_fail; |
33097 | } | |
33098 | { | |
33099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33100 | (arg1)->Enable(arg2); | |
33101 | ||
33102 | wxPyEndAllowThreads(__tstate); | |
33103 | if (PyErr_Occurred()) SWIG_fail; | |
33104 | } | |
33105 | Py_INCREF(Py_None); resultobj = Py_None; | |
33106 | return resultobj; | |
33107 | fail: | |
33108 | return NULL; | |
33109 | } | |
33110 | ||
33111 | ||
c370783e | 33112 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33113 | PyObject *resultobj; |
33114 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33115 | bool result; | |
33116 | PyObject * obj0 = 0 ; | |
33117 | char *kwnames[] = { | |
33118 | (char *) "self", NULL | |
33119 | }; | |
33120 | ||
33121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
33122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33124 | { | |
33125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33126 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
33127 | ||
33128 | wxPyEndAllowThreads(__tstate); | |
33129 | if (PyErr_Occurred()) SWIG_fail; | |
33130 | } | |
33131 | { | |
33132 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33133 | } | |
33134 | return resultobj; | |
33135 | fail: | |
33136 | return NULL; | |
33137 | } | |
33138 | ||
33139 | ||
c370783e | 33140 | static PyObject *_wrap_MenuItem_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33141 | PyObject *resultobj; |
33142 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
b411df4a | 33143 | bool arg2 = (bool) true ; |
d55e5bfc RD |
33144 | PyObject * obj0 = 0 ; |
33145 | PyObject * obj1 = 0 ; | |
33146 | char *kwnames[] = { | |
33147 | (char *) "self",(char *) "check", NULL | |
33148 | }; | |
33149 | ||
33150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
33151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33153 | if (obj1) { | |
c370783e | 33154 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
33155 | if (PyErr_Occurred()) SWIG_fail; |
33156 | } | |
33157 | { | |
33158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33159 | (arg1)->Check(arg2); | |
33160 | ||
33161 | wxPyEndAllowThreads(__tstate); | |
33162 | if (PyErr_Occurred()) SWIG_fail; | |
33163 | } | |
33164 | Py_INCREF(Py_None); resultobj = Py_None; | |
33165 | return resultobj; | |
33166 | fail: | |
33167 | return NULL; | |
33168 | } | |
33169 | ||
33170 | ||
c370783e | 33171 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33172 | PyObject *resultobj; |
33173 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33174 | bool result; | |
33175 | PyObject * obj0 = 0 ; | |
33176 | char *kwnames[] = { | |
33177 | (char *) "self", NULL | |
33178 | }; | |
33179 | ||
33180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
33181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33183 | { | |
33184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33185 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
33186 | ||
33187 | wxPyEndAllowThreads(__tstate); | |
33188 | if (PyErr_Occurred()) SWIG_fail; | |
33189 | } | |
33190 | { | |
33191 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33192 | } | |
33193 | return resultobj; | |
33194 | fail: | |
33195 | return NULL; | |
33196 | } | |
33197 | ||
33198 | ||
c370783e | 33199 | static PyObject *_wrap_MenuItem_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33200 | PyObject *resultobj; |
33201 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33202 | PyObject * obj0 = 0 ; | |
33203 | char *kwnames[] = { | |
33204 | (char *) "self", NULL | |
33205 | }; | |
33206 | ||
33207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
33208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33210 | { | |
33211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33212 | (arg1)->Toggle(); | |
33213 | ||
33214 | wxPyEndAllowThreads(__tstate); | |
33215 | if (PyErr_Occurred()) SWIG_fail; | |
33216 | } | |
33217 | Py_INCREF(Py_None); resultobj = Py_None; | |
33218 | return resultobj; | |
33219 | fail: | |
33220 | return NULL; | |
33221 | } | |
33222 | ||
33223 | ||
c370783e | 33224 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33225 | PyObject *resultobj; |
33226 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33227 | wxString *arg2 = 0 ; | |
b411df4a | 33228 | bool temp2 = false ; |
d55e5bfc RD |
33229 | PyObject * obj0 = 0 ; |
33230 | PyObject * obj1 = 0 ; | |
33231 | char *kwnames[] = { | |
33232 | (char *) "self",(char *) "str", NULL | |
33233 | }; | |
33234 | ||
33235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
33236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33238 | { | |
33239 | arg2 = wxString_in_helper(obj1); | |
33240 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 33241 | temp2 = true; |
d55e5bfc RD |
33242 | } |
33243 | { | |
33244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33245 | (arg1)->SetHelp((wxString const &)*arg2); | |
33246 | ||
33247 | wxPyEndAllowThreads(__tstate); | |
33248 | if (PyErr_Occurred()) SWIG_fail; | |
33249 | } | |
33250 | Py_INCREF(Py_None); resultobj = Py_None; | |
33251 | { | |
33252 | if (temp2) | |
33253 | delete arg2; | |
33254 | } | |
33255 | return resultobj; | |
33256 | fail: | |
33257 | { | |
33258 | if (temp2) | |
33259 | delete arg2; | |
33260 | } | |
33261 | return NULL; | |
33262 | } | |
33263 | ||
33264 | ||
c370783e | 33265 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33266 | PyObject *resultobj; |
33267 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33268 | wxString *result; | |
33269 | PyObject * obj0 = 0 ; | |
33270 | char *kwnames[] = { | |
33271 | (char *) "self", NULL | |
33272 | }; | |
33273 | ||
33274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
33275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33277 | { | |
33278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33279 | { | |
33280 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
33281 | result = (wxString *) &_result_ref; | |
33282 | } | |
33283 | ||
33284 | wxPyEndAllowThreads(__tstate); | |
33285 | if (PyErr_Occurred()) SWIG_fail; | |
33286 | } | |
33287 | { | |
33288 | #if wxUSE_UNICODE | |
33289 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33290 | #else | |
33291 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33292 | #endif | |
33293 | } | |
33294 | return resultobj; | |
33295 | fail: | |
33296 | return NULL; | |
33297 | } | |
33298 | ||
33299 | ||
c370783e | 33300 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33301 | PyObject *resultobj; |
33302 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33303 | wxAcceleratorEntry *result; | |
33304 | PyObject * obj0 = 0 ; | |
33305 | char *kwnames[] = { | |
33306 | (char *) "self", NULL | |
33307 | }; | |
33308 | ||
33309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
33310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33312 | { | |
33313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33314 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
33315 | ||
33316 | wxPyEndAllowThreads(__tstate); | |
33317 | if (PyErr_Occurred()) SWIG_fail; | |
33318 | } | |
33319 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
33320 | return resultobj; | |
33321 | fail: | |
33322 | return NULL; | |
33323 | } | |
33324 | ||
33325 | ||
c370783e | 33326 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33327 | PyObject *resultobj; |
33328 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33329 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
33330 | PyObject * obj0 = 0 ; | |
33331 | PyObject * obj1 = 0 ; | |
33332 | char *kwnames[] = { | |
33333 | (char *) "self",(char *) "accel", NULL | |
33334 | }; | |
33335 | ||
33336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
33337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33339 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry, | |
33340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33341 | { | |
33342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33343 | (arg1)->SetAccel(arg2); | |
33344 | ||
33345 | wxPyEndAllowThreads(__tstate); | |
33346 | if (PyErr_Occurred()) SWIG_fail; | |
33347 | } | |
33348 | Py_INCREF(Py_None); resultobj = Py_None; | |
33349 | return resultobj; | |
33350 | fail: | |
33351 | return NULL; | |
33352 | } | |
33353 | ||
33354 | ||
c370783e | 33355 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33356 | PyObject *resultobj; |
33357 | int result; | |
33358 | char *kwnames[] = { | |
33359 | NULL | |
33360 | }; | |
33361 | ||
33362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
33363 | { | |
33364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33365 | result = (int)MenuItem_GetDefaultMarginWidth(); | |
33366 | ||
33367 | wxPyEndAllowThreads(__tstate); | |
33368 | if (PyErr_Occurred()) SWIG_fail; | |
33369 | } | |
c370783e | 33370 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
33371 | return resultobj; |
33372 | fail: | |
33373 | return NULL; | |
33374 | } | |
33375 | ||
33376 | ||
c370783e | 33377 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33378 | PyObject *resultobj; |
33379 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33380 | wxBitmap *arg2 = 0 ; | |
33381 | PyObject * obj0 = 0 ; | |
33382 | PyObject * obj1 = 0 ; | |
33383 | char *kwnames[] = { | |
33384 | (char *) "self",(char *) "bitmap", NULL | |
33385 | }; | |
33386 | ||
33387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
33388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33390 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
33391 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33392 | SWIG_fail; | |
33393 | if (arg2 == NULL) { | |
33394 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33395 | SWIG_fail; | |
33396 | } | |
33397 | { | |
33398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33399 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
33400 | ||
33401 | wxPyEndAllowThreads(__tstate); | |
33402 | if (PyErr_Occurred()) SWIG_fail; | |
33403 | } | |
33404 | Py_INCREF(Py_None); resultobj = Py_None; | |
33405 | return resultobj; | |
33406 | fail: | |
33407 | return NULL; | |
33408 | } | |
33409 | ||
33410 | ||
c370783e | 33411 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33412 | PyObject *resultobj; |
33413 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33414 | wxBitmap *result; | |
33415 | PyObject * obj0 = 0 ; | |
33416 | char *kwnames[] = { | |
33417 | (char *) "self", NULL | |
33418 | }; | |
33419 | ||
33420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
33421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33423 | { | |
33424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33425 | { | |
33426 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
33427 | result = (wxBitmap *) &_result_ref; | |
33428 | } | |
33429 | ||
33430 | wxPyEndAllowThreads(__tstate); | |
33431 | if (PyErr_Occurred()) SWIG_fail; | |
33432 | } | |
33433 | { | |
33434 | wxBitmap* resultptr = new wxBitmap(*result); | |
33435 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
33436 | } | |
33437 | return resultobj; | |
33438 | fail: | |
33439 | return NULL; | |
33440 | } | |
33441 | ||
33442 | ||
c370783e | 33443 | static PyObject * MenuItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
33444 | PyObject *obj; |
33445 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33446 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
33447 | Py_INCREF(obj); | |
33448 | return Py_BuildValue((char *)""); | |
33449 | } | |
c370783e | 33450 | static int _wrap_ControlNameStr_set(PyObject *) { |
d55e5bfc RD |
33451 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); |
33452 | return 1; | |
33453 | } | |
33454 | ||
33455 | ||
33456 | static PyObject *_wrap_ControlNameStr_get() { | |
33457 | PyObject *pyobj; | |
33458 | ||
33459 | { | |
33460 | #if wxUSE_UNICODE | |
33461 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
33462 | #else | |
33463 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
33464 | #endif | |
33465 | } | |
33466 | return pyobj; | |
33467 | } | |
33468 | ||
33469 | ||
c370783e | 33470 | static PyObject *_wrap_new_Control(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33471 | PyObject *resultobj; |
33472 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 | 33473 | int arg2 = (int) -1 ; |
d55e5bfc RD |
33474 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
33475 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33476 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
33477 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
33478 | long arg5 = (long) 0 ; | |
33479 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
33480 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
33481 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
33482 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
33483 | wxControl *result; | |
33484 | wxPoint temp3 ; | |
33485 | wxSize temp4 ; | |
b411df4a | 33486 | bool temp7 = false ; |
d55e5bfc RD |
33487 | PyObject * obj0 = 0 ; |
33488 | PyObject * obj1 = 0 ; | |
33489 | PyObject * obj2 = 0 ; | |
33490 | PyObject * obj3 = 0 ; | |
33491 | PyObject * obj4 = 0 ; | |
33492 | PyObject * obj5 = 0 ; | |
33493 | PyObject * obj6 = 0 ; | |
33494 | char *kwnames[] = { | |
33495 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33496 | }; | |
33497 | ||
bfddbb17 | 33498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
33499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
33500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 33501 | if (obj1) { |
c370783e | 33502 | arg2 = (int)SWIG_As_int(obj1); |
bfddbb17 RD |
33503 | if (PyErr_Occurred()) SWIG_fail; |
33504 | } | |
d55e5bfc RD |
33505 | if (obj2) { |
33506 | { | |
33507 | arg3 = &temp3; | |
33508 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
33509 | } | |
33510 | } | |
33511 | if (obj3) { | |
33512 | { | |
33513 | arg4 = &temp4; | |
33514 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
33515 | } | |
33516 | } | |
33517 | if (obj4) { | |
c370783e | 33518 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
33519 | if (PyErr_Occurred()) SWIG_fail; |
33520 | } | |
33521 | if (obj5) { | |
33522 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
33523 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33524 | SWIG_fail; | |
33525 | if (arg6 == NULL) { | |
33526 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33527 | SWIG_fail; | |
33528 | } | |
33529 | } | |
33530 | if (obj6) { | |
33531 | { | |
33532 | arg7 = wxString_in_helper(obj6); | |
33533 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 33534 | temp7 = true; |
d55e5bfc RD |
33535 | } |
33536 | } | |
33537 | { | |
0439c23b | 33538 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
33539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33540 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
33541 | ||
33542 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33543 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 33544 | } |
b0f7404b | 33545 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d55e5bfc RD |
33546 | { |
33547 | if (temp7) | |
33548 | delete arg7; | |
33549 | } | |
33550 | return resultobj; | |
33551 | fail: | |
33552 | { | |
33553 | if (temp7) | |
33554 | delete arg7; | |
33555 | } | |
33556 | return NULL; | |
33557 | } | |
33558 | ||
33559 | ||
c370783e | 33560 | static PyObject *_wrap_new_PreControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33561 | PyObject *resultobj; |
33562 | wxControl *result; | |
33563 | char *kwnames[] = { | |
33564 | NULL | |
33565 | }; | |
33566 | ||
33567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
33568 | { | |
0439c23b | 33569 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
33570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33571 | result = (wxControl *)new wxControl(); | |
33572 | ||
33573 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33574 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 33575 | } |
b0f7404b | 33576 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d55e5bfc RD |
33577 | return resultobj; |
33578 | fail: | |
33579 | return NULL; | |
33580 | } | |
33581 | ||
33582 | ||
c370783e | 33583 | static PyObject *_wrap_Control_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33584 | PyObject *resultobj; |
33585 | wxControl *arg1 = (wxControl *) 0 ; | |
33586 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 33587 | int arg3 = (int) -1 ; |
d55e5bfc RD |
33588 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
33589 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
33590 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
33591 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
33592 | long arg6 = (long) 0 ; | |
33593 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
33594 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
33595 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
33596 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
33597 | bool result; | |
33598 | wxPoint temp4 ; | |
33599 | wxSize temp5 ; | |
b411df4a | 33600 | bool temp8 = false ; |
d55e5bfc RD |
33601 | PyObject * obj0 = 0 ; |
33602 | PyObject * obj1 = 0 ; | |
33603 | PyObject * obj2 = 0 ; | |
33604 | PyObject * obj3 = 0 ; | |
33605 | PyObject * obj4 = 0 ; | |
33606 | PyObject * obj5 = 0 ; | |
33607 | PyObject * obj6 = 0 ; | |
33608 | PyObject * obj7 = 0 ; | |
33609 | char *kwnames[] = { | |
33610 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33611 | }; | |
33612 | ||
bfddbb17 | 33613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
33614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
33615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33616 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
33617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 33618 | if (obj2) { |
c370783e | 33619 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
33620 | if (PyErr_Occurred()) SWIG_fail; |
33621 | } | |
d55e5bfc RD |
33622 | if (obj3) { |
33623 | { | |
33624 | arg4 = &temp4; | |
33625 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
33626 | } | |
33627 | } | |
33628 | if (obj4) { | |
33629 | { | |
33630 | arg5 = &temp5; | |
33631 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
33632 | } | |
33633 | } | |
33634 | if (obj5) { | |
c370783e | 33635 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
33636 | if (PyErr_Occurred()) SWIG_fail; |
33637 | } | |
33638 | if (obj6) { | |
33639 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
33640 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33641 | SWIG_fail; | |
33642 | if (arg7 == NULL) { | |
33643 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33644 | SWIG_fail; | |
33645 | } | |
33646 | } | |
33647 | if (obj7) { | |
33648 | { | |
33649 | arg8 = wxString_in_helper(obj7); | |
33650 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 33651 | temp8 = true; |
d55e5bfc RD |
33652 | } |
33653 | } | |
33654 | { | |
33655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33656 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
33657 | ||
33658 | wxPyEndAllowThreads(__tstate); | |
33659 | if (PyErr_Occurred()) SWIG_fail; | |
33660 | } | |
33661 | { | |
33662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33663 | } | |
33664 | { | |
33665 | if (temp8) | |
33666 | delete arg8; | |
33667 | } | |
33668 | return resultobj; | |
33669 | fail: | |
33670 | { | |
33671 | if (temp8) | |
33672 | delete arg8; | |
33673 | } | |
33674 | return NULL; | |
33675 | } | |
33676 | ||
33677 | ||
c370783e | 33678 | static PyObject *_wrap_Control_Command(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33679 | PyObject *resultobj; |
33680 | wxControl *arg1 = (wxControl *) 0 ; | |
33681 | wxCommandEvent *arg2 = 0 ; | |
33682 | PyObject * obj0 = 0 ; | |
33683 | PyObject * obj1 = 0 ; | |
33684 | char *kwnames[] = { | |
33685 | (char *) "self",(char *) "event", NULL | |
33686 | }; | |
33687 | ||
33688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
33689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
33690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33691 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent, | |
33692 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33693 | SWIG_fail; | |
33694 | if (arg2 == NULL) { | |
33695 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33696 | SWIG_fail; | |
33697 | } | |
33698 | { | |
33699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33700 | (arg1)->Command(*arg2); | |
33701 | ||
33702 | wxPyEndAllowThreads(__tstate); | |
33703 | if (PyErr_Occurred()) SWIG_fail; | |
33704 | } | |
33705 | Py_INCREF(Py_None); resultobj = Py_None; | |
33706 | return resultobj; | |
33707 | fail: | |
33708 | return NULL; | |
33709 | } | |
33710 | ||
33711 | ||
c370783e | 33712 | static PyObject *_wrap_Control_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33713 | PyObject *resultobj; |
33714 | wxControl *arg1 = (wxControl *) 0 ; | |
33715 | wxString result; | |
33716 | PyObject * obj0 = 0 ; | |
33717 | char *kwnames[] = { | |
33718 | (char *) "self", NULL | |
33719 | }; | |
33720 | ||
33721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
33722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
33723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33724 | { | |
33725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33726 | result = (arg1)->GetLabel(); | |
33727 | ||
33728 | wxPyEndAllowThreads(__tstate); | |
33729 | if (PyErr_Occurred()) SWIG_fail; | |
33730 | } | |
33731 | { | |
33732 | #if wxUSE_UNICODE | |
33733 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33734 | #else | |
33735 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33736 | #endif | |
33737 | } | |
33738 | return resultobj; | |
33739 | fail: | |
33740 | return NULL; | |
33741 | } | |
33742 | ||
33743 | ||
c370783e | 33744 | static PyObject *_wrap_Control_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33745 | PyObject *resultobj; |
33746 | wxControl *arg1 = (wxControl *) 0 ; | |
33747 | wxString *arg2 = 0 ; | |
b411df4a | 33748 | bool temp2 = false ; |
d55e5bfc RD |
33749 | PyObject * obj0 = 0 ; |
33750 | PyObject * obj1 = 0 ; | |
33751 | char *kwnames[] = { | |
33752 | (char *) "self",(char *) "label", NULL | |
33753 | }; | |
33754 | ||
33755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
33756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
33757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33758 | { | |
33759 | arg2 = wxString_in_helper(obj1); | |
33760 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 33761 | temp2 = true; |
d55e5bfc RD |
33762 | } |
33763 | { | |
33764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33765 | (arg1)->SetLabel((wxString const &)*arg2); | |
33766 | ||
33767 | wxPyEndAllowThreads(__tstate); | |
33768 | if (PyErr_Occurred()) SWIG_fail; | |
33769 | } | |
33770 | Py_INCREF(Py_None); resultobj = Py_None; | |
33771 | { | |
33772 | if (temp2) | |
33773 | delete arg2; | |
33774 | } | |
33775 | return resultobj; | |
33776 | fail: | |
33777 | { | |
33778 | if (temp2) | |
33779 | delete arg2; | |
33780 | } | |
33781 | return NULL; | |
33782 | } | |
33783 | ||
33784 | ||
c370783e | 33785 | static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33786 | PyObject *resultobj; |
33787 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
33788 | wxVisualAttributes result; | |
33789 | PyObject * obj0 = 0 ; | |
33790 | char *kwnames[] = { | |
33791 | (char *) "variant", NULL | |
33792 | }; | |
33793 | ||
33794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
33795 | if (obj0) { | |
c370783e | 33796 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
33797 | if (PyErr_Occurred()) SWIG_fail; |
33798 | } | |
33799 | { | |
110da5b0 | 33800 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
33801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33802 | result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
33803 | ||
33804 | wxPyEndAllowThreads(__tstate); | |
a001823c | 33805 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
33806 | } |
33807 | { | |
33808 | wxVisualAttributes * resultptr; | |
33809 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
33810 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
33811 | } | |
33812 | return resultobj; | |
33813 | fail: | |
33814 | return NULL; | |
33815 | } | |
33816 | ||
33817 | ||
c370783e | 33818 | static PyObject * Control_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
33819 | PyObject *obj; |
33820 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33821 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
33822 | Py_INCREF(obj); | |
33823 | return Py_BuildValue((char *)""); | |
33824 | } | |
c370783e | 33825 | static PyObject *_wrap_ItemContainer_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33826 | PyObject *resultobj; |
33827 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33828 | wxString *arg2 = 0 ; | |
33829 | PyObject *arg3 = (PyObject *) NULL ; | |
33830 | int result; | |
b411df4a | 33831 | bool temp2 = false ; |
d55e5bfc RD |
33832 | PyObject * obj0 = 0 ; |
33833 | PyObject * obj1 = 0 ; | |
33834 | PyObject * obj2 = 0 ; | |
33835 | char *kwnames[] = { | |
33836 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
33837 | }; | |
33838 | ||
33839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
33840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33842 | { | |
33843 | arg2 = wxString_in_helper(obj1); | |
33844 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 33845 | temp2 = true; |
d55e5bfc RD |
33846 | } |
33847 | if (obj2) { | |
33848 | arg3 = obj2; | |
33849 | } | |
33850 | { | |
33851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33852 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
33853 | ||
33854 | wxPyEndAllowThreads(__tstate); | |
33855 | if (PyErr_Occurred()) SWIG_fail; | |
33856 | } | |
c370783e | 33857 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
33858 | { |
33859 | if (temp2) | |
33860 | delete arg2; | |
33861 | } | |
33862 | return resultobj; | |
33863 | fail: | |
33864 | { | |
33865 | if (temp2) | |
33866 | delete arg2; | |
33867 | } | |
33868 | return NULL; | |
33869 | } | |
33870 | ||
33871 | ||
c370783e | 33872 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33873 | PyObject *resultobj; |
33874 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33875 | wxArrayString *arg2 = 0 ; | |
b411df4a | 33876 | bool temp2 = false ; |
d55e5bfc RD |
33877 | PyObject * obj0 = 0 ; |
33878 | PyObject * obj1 = 0 ; | |
33879 | char *kwnames[] = { | |
33880 | (char *) "self",(char *) "strings", NULL | |
33881 | }; | |
33882 | ||
33883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
33884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33886 | { | |
33887 | if (! PySequence_Check(obj1)) { | |
33888 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
33889 | SWIG_fail; | |
33890 | } | |
33891 | arg2 = new wxArrayString; | |
b411df4a | 33892 | temp2 = true; |
d55e5bfc RD |
33893 | int i, len=PySequence_Length(obj1); |
33894 | for (i=0; i<len; i++) { | |
33895 | PyObject* item = PySequence_GetItem(obj1, i); | |
33896 | #if wxUSE_UNICODE | |
33897 | PyObject* str = PyObject_Unicode(item); | |
33898 | #else | |
33899 | PyObject* str = PyObject_Str(item); | |
33900 | #endif | |
33901 | if (PyErr_Occurred()) SWIG_fail; | |
33902 | arg2->Add(Py2wxString(str)); | |
33903 | Py_DECREF(item); | |
33904 | Py_DECREF(str); | |
33905 | } | |
33906 | } | |
33907 | { | |
33908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33909 | (arg1)->Append((wxArrayString const &)*arg2); | |
33910 | ||
33911 | wxPyEndAllowThreads(__tstate); | |
33912 | if (PyErr_Occurred()) SWIG_fail; | |
33913 | } | |
33914 | Py_INCREF(Py_None); resultobj = Py_None; | |
33915 | { | |
33916 | if (temp2) delete arg2; | |
33917 | } | |
33918 | return resultobj; | |
33919 | fail: | |
33920 | { | |
33921 | if (temp2) delete arg2; | |
33922 | } | |
33923 | return NULL; | |
33924 | } | |
33925 | ||
33926 | ||
c370783e | 33927 | static PyObject *_wrap_ItemContainer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33928 | PyObject *resultobj; |
33929 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33930 | wxString *arg2 = 0 ; | |
33931 | int arg3 ; | |
33932 | PyObject *arg4 = (PyObject *) NULL ; | |
33933 | int result; | |
b411df4a | 33934 | bool temp2 = false ; |
d55e5bfc RD |
33935 | PyObject * obj0 = 0 ; |
33936 | PyObject * obj1 = 0 ; | |
33937 | PyObject * obj2 = 0 ; | |
33938 | PyObject * obj3 = 0 ; | |
33939 | char *kwnames[] = { | |
33940 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
33941 | }; | |
33942 | ||
33943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
33944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33946 | { | |
33947 | arg2 = wxString_in_helper(obj1); | |
33948 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 33949 | temp2 = true; |
d55e5bfc | 33950 | } |
c370783e | 33951 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
33952 | if (PyErr_Occurred()) SWIG_fail; |
33953 | if (obj3) { | |
33954 | arg4 = obj3; | |
33955 | } | |
33956 | { | |
33957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33958 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
33959 | ||
33960 | wxPyEndAllowThreads(__tstate); | |
33961 | if (PyErr_Occurred()) SWIG_fail; | |
33962 | } | |
c370783e | 33963 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
33964 | { |
33965 | if (temp2) | |
33966 | delete arg2; | |
33967 | } | |
33968 | return resultobj; | |
33969 | fail: | |
33970 | { | |
33971 | if (temp2) | |
33972 | delete arg2; | |
33973 | } | |
33974 | return NULL; | |
33975 | } | |
33976 | ||
33977 | ||
c370783e | 33978 | static PyObject *_wrap_ItemContainer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33979 | PyObject *resultobj; |
33980 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
33981 | PyObject * obj0 = 0 ; | |
33982 | char *kwnames[] = { | |
33983 | (char *) "self", NULL | |
33984 | }; | |
33985 | ||
33986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
33987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
33988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33989 | { | |
33990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33991 | (arg1)->Clear(); | |
33992 | ||
33993 | wxPyEndAllowThreads(__tstate); | |
33994 | if (PyErr_Occurred()) SWIG_fail; | |
33995 | } | |
33996 | Py_INCREF(Py_None); resultobj = Py_None; | |
33997 | return resultobj; | |
33998 | fail: | |
33999 | return NULL; | |
34000 | } | |
34001 | ||
34002 | ||
c370783e | 34003 | static PyObject *_wrap_ItemContainer_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34004 | PyObject *resultobj; |
34005 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34006 | int arg2 ; | |
34007 | PyObject * obj0 = 0 ; | |
34008 | PyObject * obj1 = 0 ; | |
34009 | char *kwnames[] = { | |
34010 | (char *) "self",(char *) "n", NULL | |
34011 | }; | |
34012 | ||
34013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; | |
34014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34016 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34017 | if (PyErr_Occurred()) SWIG_fail; |
34018 | { | |
34019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34020 | (arg1)->Delete(arg2); | |
34021 | ||
34022 | wxPyEndAllowThreads(__tstate); | |
34023 | if (PyErr_Occurred()) SWIG_fail; | |
34024 | } | |
34025 | Py_INCREF(Py_None); resultobj = Py_None; | |
34026 | return resultobj; | |
34027 | fail: | |
34028 | return NULL; | |
34029 | } | |
34030 | ||
34031 | ||
c370783e | 34032 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34033 | PyObject *resultobj; |
34034 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34035 | int result; | |
34036 | PyObject * obj0 = 0 ; | |
34037 | char *kwnames[] = { | |
34038 | (char *) "self", NULL | |
34039 | }; | |
34040 | ||
34041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
34042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34044 | { | |
34045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34046 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
34047 | ||
34048 | wxPyEndAllowThreads(__tstate); | |
34049 | if (PyErr_Occurred()) SWIG_fail; | |
34050 | } | |
c370783e | 34051 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34052 | return resultobj; |
34053 | fail: | |
34054 | return NULL; | |
34055 | } | |
34056 | ||
34057 | ||
c370783e | 34058 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34059 | PyObject *resultobj; |
34060 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34061 | bool result; | |
34062 | PyObject * obj0 = 0 ; | |
34063 | char *kwnames[] = { | |
34064 | (char *) "self", NULL | |
34065 | }; | |
34066 | ||
34067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
34068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34070 | { | |
34071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34072 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
34073 | ||
34074 | wxPyEndAllowThreads(__tstate); | |
34075 | if (PyErr_Occurred()) SWIG_fail; | |
34076 | } | |
34077 | { | |
34078 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34079 | } | |
34080 | return resultobj; | |
34081 | fail: | |
34082 | return NULL; | |
34083 | } | |
34084 | ||
34085 | ||
c370783e | 34086 | static PyObject *_wrap_ItemContainer_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34087 | PyObject *resultobj; |
34088 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34089 | int arg2 ; | |
34090 | wxString result; | |
34091 | PyObject * obj0 = 0 ; | |
34092 | PyObject * obj1 = 0 ; | |
34093 | char *kwnames[] = { | |
34094 | (char *) "self",(char *) "n", NULL | |
34095 | }; | |
34096 | ||
34097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; | |
34098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34100 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34101 | if (PyErr_Occurred()) SWIG_fail; |
34102 | { | |
34103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34104 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
34105 | ||
34106 | wxPyEndAllowThreads(__tstate); | |
34107 | if (PyErr_Occurred()) SWIG_fail; | |
34108 | } | |
34109 | { | |
34110 | #if wxUSE_UNICODE | |
34111 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34112 | #else | |
34113 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34114 | #endif | |
34115 | } | |
34116 | return resultobj; | |
34117 | fail: | |
34118 | return NULL; | |
34119 | } | |
34120 | ||
34121 | ||
c370783e | 34122 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34123 | PyObject *resultobj; |
34124 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34125 | wxArrayString result; | |
34126 | PyObject * obj0 = 0 ; | |
34127 | char *kwnames[] = { | |
34128 | (char *) "self", NULL | |
34129 | }; | |
34130 | ||
34131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
34132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34134 | { | |
34135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34136 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
34137 | ||
34138 | wxPyEndAllowThreads(__tstate); | |
34139 | if (PyErr_Occurred()) SWIG_fail; | |
34140 | } | |
34141 | { | |
34142 | resultobj = wxArrayString2PyList_helper(result); | |
34143 | } | |
34144 | return resultobj; | |
34145 | fail: | |
34146 | return NULL; | |
34147 | } | |
34148 | ||
34149 | ||
c370783e | 34150 | static PyObject *_wrap_ItemContainer_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34151 | PyObject *resultobj; |
34152 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34153 | int arg2 ; | |
34154 | wxString *arg3 = 0 ; | |
b411df4a | 34155 | bool temp3 = false ; |
d55e5bfc RD |
34156 | PyObject * obj0 = 0 ; |
34157 | PyObject * obj1 = 0 ; | |
34158 | PyObject * obj2 = 0 ; | |
34159 | char *kwnames[] = { | |
34160 | (char *) "self",(char *) "n",(char *) "s", NULL | |
34161 | }; | |
34162 | ||
34163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34166 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34167 | if (PyErr_Occurred()) SWIG_fail; |
34168 | { | |
34169 | arg3 = wxString_in_helper(obj2); | |
34170 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 34171 | temp3 = true; |
d55e5bfc RD |
34172 | } |
34173 | { | |
34174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34175 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
34176 | ||
34177 | wxPyEndAllowThreads(__tstate); | |
34178 | if (PyErr_Occurred()) SWIG_fail; | |
34179 | } | |
34180 | Py_INCREF(Py_None); resultobj = Py_None; | |
34181 | { | |
34182 | if (temp3) | |
34183 | delete arg3; | |
34184 | } | |
34185 | return resultobj; | |
34186 | fail: | |
34187 | { | |
34188 | if (temp3) | |
34189 | delete arg3; | |
34190 | } | |
34191 | return NULL; | |
34192 | } | |
34193 | ||
34194 | ||
c370783e | 34195 | static PyObject *_wrap_ItemContainer_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34196 | PyObject *resultobj; |
34197 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34198 | wxString *arg2 = 0 ; | |
34199 | int result; | |
b411df4a | 34200 | bool temp2 = false ; |
d55e5bfc RD |
34201 | PyObject * obj0 = 0 ; |
34202 | PyObject * obj1 = 0 ; | |
34203 | char *kwnames[] = { | |
34204 | (char *) "self",(char *) "s", NULL | |
34205 | }; | |
34206 | ||
34207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
34208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34210 | { | |
34211 | arg2 = wxString_in_helper(obj1); | |
34212 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 34213 | temp2 = true; |
d55e5bfc RD |
34214 | } |
34215 | { | |
34216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34217 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
34218 | ||
34219 | wxPyEndAllowThreads(__tstate); | |
34220 | if (PyErr_Occurred()) SWIG_fail; | |
34221 | } | |
c370783e | 34222 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34223 | { |
34224 | if (temp2) | |
34225 | delete arg2; | |
34226 | } | |
34227 | return resultobj; | |
34228 | fail: | |
34229 | { | |
34230 | if (temp2) | |
34231 | delete arg2; | |
34232 | } | |
34233 | return NULL; | |
34234 | } | |
34235 | ||
34236 | ||
c370783e | 34237 | static PyObject *_wrap_ItemContainer_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34238 | PyObject *resultobj; |
34239 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34240 | int arg2 ; | |
34241 | PyObject * obj0 = 0 ; | |
34242 | PyObject * obj1 = 0 ; | |
34243 | char *kwnames[] = { | |
34244 | (char *) "self",(char *) "n", NULL | |
34245 | }; | |
34246 | ||
34247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; | |
34248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34250 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34251 | if (PyErr_Occurred()) SWIG_fail; |
34252 | { | |
34253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34254 | (arg1)->Select(arg2); | |
34255 | ||
34256 | wxPyEndAllowThreads(__tstate); | |
34257 | if (PyErr_Occurred()) SWIG_fail; | |
34258 | } | |
34259 | Py_INCREF(Py_None); resultobj = Py_None; | |
34260 | return resultobj; | |
34261 | fail: | |
34262 | return NULL; | |
34263 | } | |
34264 | ||
34265 | ||
c370783e | 34266 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34267 | PyObject *resultobj; |
34268 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34269 | int result; | |
34270 | PyObject * obj0 = 0 ; | |
34271 | char *kwnames[] = { | |
34272 | (char *) "self", NULL | |
34273 | }; | |
34274 | ||
34275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
34276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34278 | { | |
34279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34280 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
34281 | ||
34282 | wxPyEndAllowThreads(__tstate); | |
34283 | if (PyErr_Occurred()) SWIG_fail; | |
34284 | } | |
c370783e | 34285 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34286 | return resultobj; |
34287 | fail: | |
34288 | return NULL; | |
34289 | } | |
34290 | ||
34291 | ||
c370783e | 34292 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34293 | PyObject *resultobj; |
34294 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34295 | wxString result; | |
34296 | PyObject * obj0 = 0 ; | |
34297 | char *kwnames[] = { | |
34298 | (char *) "self", NULL | |
34299 | }; | |
34300 | ||
34301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
34302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34304 | { | |
34305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34306 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
34307 | ||
34308 | wxPyEndAllowThreads(__tstate); | |
34309 | if (PyErr_Occurred()) SWIG_fail; | |
34310 | } | |
34311 | { | |
34312 | #if wxUSE_UNICODE | |
34313 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34314 | #else | |
34315 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34316 | #endif | |
34317 | } | |
34318 | return resultobj; | |
34319 | fail: | |
34320 | return NULL; | |
34321 | } | |
34322 | ||
34323 | ||
c370783e | 34324 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34325 | PyObject *resultobj; |
34326 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34327 | int arg2 ; | |
34328 | PyObject *result; | |
34329 | PyObject * obj0 = 0 ; | |
34330 | PyObject * obj1 = 0 ; | |
34331 | char *kwnames[] = { | |
34332 | (char *) "self",(char *) "n", NULL | |
34333 | }; | |
34334 | ||
34335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; | |
34336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34338 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34339 | if (PyErr_Occurred()) SWIG_fail; |
34340 | { | |
34341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34342 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
34343 | ||
34344 | wxPyEndAllowThreads(__tstate); | |
34345 | if (PyErr_Occurred()) SWIG_fail; | |
34346 | } | |
34347 | resultobj = result; | |
34348 | return resultobj; | |
34349 | fail: | |
34350 | return NULL; | |
34351 | } | |
34352 | ||
34353 | ||
c370783e | 34354 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34355 | PyObject *resultobj; |
34356 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34357 | int arg2 ; | |
34358 | PyObject *arg3 = (PyObject *) 0 ; | |
34359 | PyObject * obj0 = 0 ; | |
34360 | PyObject * obj1 = 0 ; | |
34361 | PyObject * obj2 = 0 ; | |
34362 | char *kwnames[] = { | |
34363 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
34364 | }; | |
34365 | ||
34366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34369 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34370 | if (PyErr_Occurred()) SWIG_fail; |
34371 | arg3 = obj2; | |
34372 | { | |
34373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34374 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
34375 | ||
34376 | wxPyEndAllowThreads(__tstate); | |
34377 | if (PyErr_Occurred()) SWIG_fail; | |
34378 | } | |
34379 | Py_INCREF(Py_None); resultobj = Py_None; | |
34380 | return resultobj; | |
34381 | fail: | |
34382 | return NULL; | |
34383 | } | |
34384 | ||
34385 | ||
c370783e | 34386 | static PyObject * ItemContainer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
34387 | PyObject *obj; |
34388 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34389 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
34390 | Py_INCREF(obj); | |
34391 | return Py_BuildValue((char *)""); | |
34392 | } | |
c370783e | 34393 | static PyObject * ControlWithItems_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
34394 | PyObject *obj; |
34395 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34396 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
34397 | Py_INCREF(obj); | |
34398 | return Py_BuildValue((char *)""); | |
34399 | } | |
c370783e | 34400 | static PyObject *_wrap_new_SizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34401 | PyObject *resultobj; |
34402 | wxSizerItem *result; | |
34403 | char *kwnames[] = { | |
34404 | NULL | |
34405 | }; | |
34406 | ||
34407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
34408 | { | |
34409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34410 | result = (wxSizerItem *)new wxSizerItem(); | |
34411 | ||
34412 | wxPyEndAllowThreads(__tstate); | |
34413 | if (PyErr_Occurred()) SWIG_fail; | |
34414 | } | |
34415 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34416 | return resultobj; | |
34417 | fail: | |
34418 | return NULL; | |
34419 | } | |
34420 | ||
34421 | ||
c370783e | 34422 | static PyObject *_wrap_new_SizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 34423 | PyObject *resultobj; |
bfddbb17 | 34424 | wxWindow *arg1 = (wxWindow *) 0 ; |
d55e5bfc RD |
34425 | int arg2 ; |
34426 | int arg3 ; | |
34427 | int arg4 ; | |
bfddbb17 | 34428 | PyObject *arg5 = (PyObject *) NULL ; |
d55e5bfc RD |
34429 | wxSizerItem *result; |
34430 | PyObject * obj0 = 0 ; | |
34431 | PyObject * obj1 = 0 ; | |
34432 | PyObject * obj2 = 0 ; | |
34433 | PyObject * obj3 = 0 ; | |
34434 | PyObject * obj4 = 0 ; | |
d55e5bfc | 34435 | char *kwnames[] = { |
bfddbb17 | 34436 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d55e5bfc RD |
34437 | }; |
34438 | ||
bfddbb17 RD |
34439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
34440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
34441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34442 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 34443 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34444 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 34445 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34446 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 34447 | if (PyErr_Occurred()) SWIG_fail; |
bfddbb17 RD |
34448 | if (obj4) { |
34449 | arg5 = obj4; | |
34450 | } | |
d55e5bfc RD |
34451 | { |
34452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bfddbb17 | 34453 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d55e5bfc RD |
34454 | |
34455 | wxPyEndAllowThreads(__tstate); | |
34456 | if (PyErr_Occurred()) SWIG_fail; | |
34457 | } | |
34458 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34459 | return resultobj; | |
34460 | fail: | |
34461 | return NULL; | |
34462 | } | |
34463 | ||
34464 | ||
c370783e | 34465 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 34466 | PyObject *resultobj; |
bfddbb17 | 34467 | int arg1 ; |
d55e5bfc RD |
34468 | int arg2 ; |
34469 | int arg3 ; | |
34470 | int arg4 ; | |
bfddbb17 RD |
34471 | int arg5 ; |
34472 | PyObject *arg6 = (PyObject *) NULL ; | |
d55e5bfc RD |
34473 | wxSizerItem *result; |
34474 | PyObject * obj0 = 0 ; | |
34475 | PyObject * obj1 = 0 ; | |
34476 | PyObject * obj2 = 0 ; | |
34477 | PyObject * obj3 = 0 ; | |
34478 | PyObject * obj4 = 0 ; | |
bfddbb17 | 34479 | PyObject * obj5 = 0 ; |
d55e5bfc | 34480 | char *kwnames[] = { |
bfddbb17 | 34481 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d55e5bfc RD |
34482 | }; |
34483 | ||
bfddbb17 | 34484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
c370783e | 34485 | arg1 = (int)SWIG_As_int(obj0); |
bfddbb17 | 34486 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34487 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 34488 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34489 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 34490 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34491 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 34492 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34493 | arg5 = (int)SWIG_As_int(obj4); |
bfddbb17 RD |
34494 | if (PyErr_Occurred()) SWIG_fail; |
34495 | if (obj5) { | |
34496 | arg6 = obj5; | |
34497 | } | |
d55e5bfc RD |
34498 | { |
34499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bfddbb17 | 34500 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
34501 | |
34502 | wxPyEndAllowThreads(__tstate); | |
34503 | if (PyErr_Occurred()) SWIG_fail; | |
34504 | } | |
34505 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34506 | return resultobj; | |
34507 | fail: | |
34508 | return NULL; | |
34509 | } | |
34510 | ||
34511 | ||
c370783e | 34512 | static PyObject *_wrap_new_SizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34513 | PyObject *resultobj; |
34514 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34515 | int arg2 ; | |
34516 | int arg3 ; | |
34517 | int arg4 ; | |
bfddbb17 | 34518 | PyObject *arg5 = (PyObject *) NULL ; |
d55e5bfc RD |
34519 | wxSizerItem *result; |
34520 | PyObject * obj0 = 0 ; | |
34521 | PyObject * obj1 = 0 ; | |
34522 | PyObject * obj2 = 0 ; | |
34523 | PyObject * obj3 = 0 ; | |
34524 | PyObject * obj4 = 0 ; | |
34525 | char *kwnames[] = { | |
34526 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34527 | }; | |
34528 | ||
bfddbb17 | 34529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
34530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34532 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 34533 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34534 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 34535 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34536 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 34537 | if (PyErr_Occurred()) SWIG_fail; |
bfddbb17 RD |
34538 | if (obj4) { |
34539 | arg5 = obj4; | |
34540 | } | |
d55e5bfc RD |
34541 | { |
34542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bfddbb17 | 34543 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d55e5bfc RD |
34544 | |
34545 | wxPyEndAllowThreads(__tstate); | |
34546 | if (PyErr_Occurred()) SWIG_fail; | |
34547 | } | |
34548 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34549 | return resultobj; | |
34550 | fail: | |
34551 | return NULL; | |
34552 | } | |
34553 | ||
34554 | ||
c370783e | 34555 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34556 | PyObject *resultobj; |
34557 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34558 | PyObject * obj0 = 0 ; | |
34559 | char *kwnames[] = { | |
34560 | (char *) "self", NULL | |
34561 | }; | |
34562 | ||
34563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
34564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34566 | { | |
34567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34568 | (arg1)->DeleteWindows(); | |
34569 | ||
34570 | wxPyEndAllowThreads(__tstate); | |
34571 | if (PyErr_Occurred()) SWIG_fail; | |
34572 | } | |
34573 | Py_INCREF(Py_None); resultobj = Py_None; | |
34574 | return resultobj; | |
34575 | fail: | |
34576 | return NULL; | |
34577 | } | |
34578 | ||
34579 | ||
c370783e | 34580 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34581 | PyObject *resultobj; |
34582 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34583 | PyObject * obj0 = 0 ; | |
34584 | char *kwnames[] = { | |
34585 | (char *) "self", NULL | |
34586 | }; | |
34587 | ||
34588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
34589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34591 | { | |
34592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34593 | (arg1)->DetachSizer(); | |
34594 | ||
34595 | wxPyEndAllowThreads(__tstate); | |
34596 | if (PyErr_Occurred()) SWIG_fail; | |
34597 | } | |
34598 | Py_INCREF(Py_None); resultobj = Py_None; | |
34599 | return resultobj; | |
34600 | fail: | |
34601 | return NULL; | |
34602 | } | |
34603 | ||
34604 | ||
c370783e | 34605 | static PyObject *_wrap_SizerItem_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34606 | PyObject *resultobj; |
34607 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34608 | wxSize result; | |
34609 | PyObject * obj0 = 0 ; | |
34610 | char *kwnames[] = { | |
34611 | (char *) "self", NULL | |
34612 | }; | |
34613 | ||
34614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
34615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34617 | { | |
34618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34619 | result = (arg1)->GetSize(); | |
34620 | ||
34621 | wxPyEndAllowThreads(__tstate); | |
34622 | if (PyErr_Occurred()) SWIG_fail; | |
34623 | } | |
34624 | { | |
34625 | wxSize * resultptr; | |
34626 | resultptr = new wxSize((wxSize &) result); | |
34627 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34628 | } | |
34629 | return resultobj; | |
34630 | fail: | |
34631 | return NULL; | |
34632 | } | |
34633 | ||
34634 | ||
c370783e | 34635 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34636 | PyObject *resultobj; |
34637 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34638 | wxSize result; | |
34639 | PyObject * obj0 = 0 ; | |
34640 | char *kwnames[] = { | |
34641 | (char *) "self", NULL | |
34642 | }; | |
34643 | ||
34644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
34645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34647 | { | |
34648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34649 | result = (arg1)->CalcMin(); | |
34650 | ||
34651 | wxPyEndAllowThreads(__tstate); | |
34652 | if (PyErr_Occurred()) SWIG_fail; | |
34653 | } | |
34654 | { | |
34655 | wxSize * resultptr; | |
34656 | resultptr = new wxSize((wxSize &) result); | |
34657 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34658 | } | |
34659 | return resultobj; | |
34660 | fail: | |
34661 | return NULL; | |
34662 | } | |
34663 | ||
34664 | ||
c370783e | 34665 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34666 | PyObject *resultobj; |
34667 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34668 | wxPoint arg2 ; | |
34669 | wxSize arg3 ; | |
34670 | wxPoint *argp2 ; | |
34671 | wxSize *argp3 ; | |
34672 | PyObject * obj0 = 0 ; | |
34673 | PyObject * obj1 = 0 ; | |
34674 | PyObject * obj2 = 0 ; | |
34675 | char *kwnames[] = { | |
34676 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
34677 | }; | |
34678 | ||
34679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34682 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
34683 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34684 | arg2 = *argp2; | |
34685 | if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize, | |
34686 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34687 | arg3 = *argp3; | |
34688 | { | |
34689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34690 | (arg1)->SetDimension(arg2,arg3); | |
34691 | ||
34692 | wxPyEndAllowThreads(__tstate); | |
34693 | if (PyErr_Occurred()) SWIG_fail; | |
34694 | } | |
34695 | Py_INCREF(Py_None); resultobj = Py_None; | |
34696 | return resultobj; | |
34697 | fail: | |
34698 | return NULL; | |
34699 | } | |
34700 | ||
34701 | ||
c370783e | 34702 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34703 | PyObject *resultobj; |
34704 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34705 | wxSize result; | |
34706 | PyObject * obj0 = 0 ; | |
34707 | char *kwnames[] = { | |
34708 | (char *) "self", NULL | |
34709 | }; | |
34710 | ||
34711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
34712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34714 | { | |
34715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34716 | result = (arg1)->GetMinSize(); | |
34717 | ||
34718 | wxPyEndAllowThreads(__tstate); | |
34719 | if (PyErr_Occurred()) SWIG_fail; | |
34720 | } | |
34721 | { | |
34722 | wxSize * resultptr; | |
34723 | resultptr = new wxSize((wxSize &) result); | |
34724 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34725 | } | |
34726 | return resultobj; | |
34727 | fail: | |
34728 | return NULL; | |
34729 | } | |
34730 | ||
34731 | ||
c370783e | 34732 | static PyObject *_wrap_SizerItem_GetMinSizeWithBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
34733 | PyObject *resultobj; |
34734 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34735 | wxSize result; | |
34736 | PyObject * obj0 = 0 ; | |
34737 | char *kwnames[] = { | |
34738 | (char *) "self", NULL | |
34739 | }; | |
34740 | ||
34741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSizeWithBorder",kwnames,&obj0)) goto fail; | |
34742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34744 | { | |
34745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34746 | result = ((wxSizerItem const *)arg1)->GetMinSizeWithBorder(); | |
34747 | ||
34748 | wxPyEndAllowThreads(__tstate); | |
34749 | if (PyErr_Occurred()) SWIG_fail; | |
34750 | } | |
34751 | { | |
34752 | wxSize * resultptr; | |
34753 | resultptr = new wxSize((wxSize &) result); | |
34754 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34755 | } | |
34756 | return resultobj; | |
34757 | fail: | |
34758 | return NULL; | |
34759 | } | |
34760 | ||
34761 | ||
c370783e | 34762 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34763 | PyObject *resultobj; |
34764 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34765 | int arg2 ; | |
34766 | int arg3 ; | |
34767 | PyObject * obj0 = 0 ; | |
34768 | PyObject * obj1 = 0 ; | |
34769 | PyObject * obj2 = 0 ; | |
34770 | char *kwnames[] = { | |
34771 | (char *) "self",(char *) "x",(char *) "y", NULL | |
34772 | }; | |
34773 | ||
34774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34777 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 34778 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34779 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
34780 | if (PyErr_Occurred()) SWIG_fail; |
34781 | { | |
34782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34783 | (arg1)->SetInitSize(arg2,arg3); | |
34784 | ||
34785 | wxPyEndAllowThreads(__tstate); | |
34786 | if (PyErr_Occurred()) SWIG_fail; | |
34787 | } | |
34788 | Py_INCREF(Py_None); resultobj = Py_None; | |
34789 | return resultobj; | |
34790 | fail: | |
34791 | return NULL; | |
34792 | } | |
34793 | ||
34794 | ||
c370783e | 34795 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34796 | PyObject *resultobj; |
34797 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34798 | int arg2 ; | |
34799 | int arg3 ; | |
34800 | PyObject * obj0 = 0 ; | |
34801 | PyObject * obj1 = 0 ; | |
34802 | PyObject * obj2 = 0 ; | |
34803 | char *kwnames[] = { | |
34804 | (char *) "self",(char *) "width",(char *) "height", NULL | |
34805 | }; | |
34806 | ||
34807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34810 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 34811 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34812 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
34813 | if (PyErr_Occurred()) SWIG_fail; |
34814 | { | |
34815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34816 | (arg1)->SetRatio(arg2,arg3); | |
34817 | ||
34818 | wxPyEndAllowThreads(__tstate); | |
34819 | if (PyErr_Occurred()) SWIG_fail; | |
34820 | } | |
34821 | Py_INCREF(Py_None); resultobj = Py_None; | |
34822 | return resultobj; | |
34823 | fail: | |
34824 | return NULL; | |
34825 | } | |
34826 | ||
34827 | ||
c370783e | 34828 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34829 | PyObject *resultobj; |
34830 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34831 | wxSize arg2 ; | |
34832 | wxSize *argp2 ; | |
34833 | PyObject * obj0 = 0 ; | |
34834 | PyObject * obj1 = 0 ; | |
34835 | char *kwnames[] = { | |
34836 | (char *) "self",(char *) "size", NULL | |
34837 | }; | |
34838 | ||
34839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
34840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34842 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
34843 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34844 | arg2 = *argp2; | |
34845 | { | |
34846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34847 | (arg1)->SetRatio(arg2); | |
34848 | ||
34849 | wxPyEndAllowThreads(__tstate); | |
34850 | if (PyErr_Occurred()) SWIG_fail; | |
34851 | } | |
34852 | Py_INCREF(Py_None); resultobj = Py_None; | |
34853 | return resultobj; | |
34854 | fail: | |
34855 | return NULL; | |
34856 | } | |
34857 | ||
34858 | ||
c370783e | 34859 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34860 | PyObject *resultobj; |
34861 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34862 | float arg2 ; | |
34863 | PyObject * obj0 = 0 ; | |
34864 | PyObject * obj1 = 0 ; | |
34865 | char *kwnames[] = { | |
34866 | (char *) "self",(char *) "ratio", NULL | |
34867 | }; | |
34868 | ||
34869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; | |
34870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34872 | arg2 = (float)SWIG_As_float(obj1); |
d55e5bfc RD |
34873 | if (PyErr_Occurred()) SWIG_fail; |
34874 | { | |
34875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34876 | (arg1)->SetRatio(arg2); | |
34877 | ||
34878 | wxPyEndAllowThreads(__tstate); | |
34879 | if (PyErr_Occurred()) SWIG_fail; | |
34880 | } | |
34881 | Py_INCREF(Py_None); resultobj = Py_None; | |
34882 | return resultobj; | |
34883 | fail: | |
34884 | return NULL; | |
34885 | } | |
34886 | ||
34887 | ||
c370783e | 34888 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34889 | PyObject *resultobj; |
34890 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34891 | float result; | |
34892 | PyObject * obj0 = 0 ; | |
34893 | char *kwnames[] = { | |
34894 | (char *) "self", NULL | |
34895 | }; | |
34896 | ||
34897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
34898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34900 | { | |
34901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34902 | result = (float)(arg1)->GetRatio(); | |
34903 | ||
34904 | wxPyEndAllowThreads(__tstate); | |
34905 | if (PyErr_Occurred()) SWIG_fail; | |
34906 | } | |
c370783e | 34907 | resultobj = SWIG_From_float((float)result); |
d55e5bfc RD |
34908 | return resultobj; |
34909 | fail: | |
34910 | return NULL; | |
34911 | } | |
34912 | ||
34913 | ||
c370783e | 34914 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34915 | PyObject *resultobj; |
34916 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34917 | bool result; | |
34918 | PyObject * obj0 = 0 ; | |
34919 | char *kwnames[] = { | |
34920 | (char *) "self", NULL | |
34921 | }; | |
34922 | ||
34923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
34924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34926 | { | |
34927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34928 | result = (bool)(arg1)->IsWindow(); | |
34929 | ||
34930 | wxPyEndAllowThreads(__tstate); | |
34931 | if (PyErr_Occurred()) SWIG_fail; | |
34932 | } | |
34933 | { | |
34934 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34935 | } | |
34936 | return resultobj; | |
34937 | fail: | |
34938 | return NULL; | |
34939 | } | |
34940 | ||
34941 | ||
c370783e | 34942 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34943 | PyObject *resultobj; |
34944 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34945 | bool result; | |
34946 | PyObject * obj0 = 0 ; | |
34947 | char *kwnames[] = { | |
34948 | (char *) "self", NULL | |
34949 | }; | |
34950 | ||
34951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
34952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34954 | { | |
34955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34956 | result = (bool)(arg1)->IsSizer(); | |
34957 | ||
34958 | wxPyEndAllowThreads(__tstate); | |
34959 | if (PyErr_Occurred()) SWIG_fail; | |
34960 | } | |
34961 | { | |
34962 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34963 | } | |
34964 | return resultobj; | |
34965 | fail: | |
34966 | return NULL; | |
34967 | } | |
34968 | ||
34969 | ||
c370783e | 34970 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34971 | PyObject *resultobj; |
34972 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34973 | bool result; | |
34974 | PyObject * obj0 = 0 ; | |
34975 | char *kwnames[] = { | |
34976 | (char *) "self", NULL | |
34977 | }; | |
34978 | ||
34979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
34980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34982 | { | |
34983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34984 | result = (bool)(arg1)->IsSpacer(); | |
34985 | ||
34986 | wxPyEndAllowThreads(__tstate); | |
34987 | if (PyErr_Occurred()) SWIG_fail; | |
34988 | } | |
34989 | { | |
34990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34991 | } | |
34992 | return resultobj; | |
34993 | fail: | |
34994 | return NULL; | |
34995 | } | |
34996 | ||
34997 | ||
c370783e | 34998 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34999 | PyObject *resultobj; |
35000 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35001 | int arg2 ; | |
35002 | PyObject * obj0 = 0 ; | |
35003 | PyObject * obj1 = 0 ; | |
35004 | char *kwnames[] = { | |
35005 | (char *) "self",(char *) "proportion", NULL | |
35006 | }; | |
35007 | ||
35008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; | |
35009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 35011 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35012 | if (PyErr_Occurred()) SWIG_fail; |
35013 | { | |
35014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35015 | (arg1)->SetProportion(arg2); | |
35016 | ||
35017 | wxPyEndAllowThreads(__tstate); | |
35018 | if (PyErr_Occurred()) SWIG_fail; | |
35019 | } | |
35020 | Py_INCREF(Py_None); resultobj = Py_None; | |
35021 | return resultobj; | |
35022 | fail: | |
35023 | return NULL; | |
35024 | } | |
35025 | ||
35026 | ||
c370783e | 35027 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35028 | PyObject *resultobj; |
35029 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35030 | int result; | |
35031 | PyObject * obj0 = 0 ; | |
35032 | char *kwnames[] = { | |
35033 | (char *) "self", NULL | |
35034 | }; | |
35035 | ||
35036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
35037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35039 | { | |
35040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35041 | result = (int)(arg1)->GetProportion(); | |
35042 | ||
35043 | wxPyEndAllowThreads(__tstate); | |
35044 | if (PyErr_Occurred()) SWIG_fail; | |
35045 | } | |
c370783e | 35046 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35047 | return resultobj; |
35048 | fail: | |
35049 | return NULL; | |
35050 | } | |
35051 | ||
35052 | ||
c370783e | 35053 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35054 | PyObject *resultobj; |
35055 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35056 | int arg2 ; | |
35057 | PyObject * obj0 = 0 ; | |
35058 | PyObject * obj1 = 0 ; | |
35059 | char *kwnames[] = { | |
35060 | (char *) "self",(char *) "flag", NULL | |
35061 | }; | |
35062 | ||
35063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; | |
35064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 35066 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35067 | if (PyErr_Occurred()) SWIG_fail; |
35068 | { | |
35069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35070 | (arg1)->SetFlag(arg2); | |
35071 | ||
35072 | wxPyEndAllowThreads(__tstate); | |
35073 | if (PyErr_Occurred()) SWIG_fail; | |
35074 | } | |
35075 | Py_INCREF(Py_None); resultobj = Py_None; | |
35076 | return resultobj; | |
35077 | fail: | |
35078 | return NULL; | |
35079 | } | |
35080 | ||
35081 | ||
c370783e | 35082 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35083 | PyObject *resultobj; |
35084 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35085 | int result; | |
35086 | PyObject * obj0 = 0 ; | |
35087 | char *kwnames[] = { | |
35088 | (char *) "self", NULL | |
35089 | }; | |
35090 | ||
35091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
35092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35094 | { | |
35095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35096 | result = (int)(arg1)->GetFlag(); | |
35097 | ||
35098 | wxPyEndAllowThreads(__tstate); | |
35099 | if (PyErr_Occurred()) SWIG_fail; | |
35100 | } | |
c370783e | 35101 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35102 | return resultobj; |
35103 | fail: | |
35104 | return NULL; | |
35105 | } | |
35106 | ||
35107 | ||
c370783e | 35108 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35109 | PyObject *resultobj; |
35110 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35111 | int arg2 ; | |
35112 | PyObject * obj0 = 0 ; | |
35113 | PyObject * obj1 = 0 ; | |
35114 | char *kwnames[] = { | |
35115 | (char *) "self",(char *) "border", NULL | |
35116 | }; | |
35117 | ||
35118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; | |
35119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 35121 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35122 | if (PyErr_Occurred()) SWIG_fail; |
35123 | { | |
35124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35125 | (arg1)->SetBorder(arg2); | |
35126 | ||
35127 | wxPyEndAllowThreads(__tstate); | |
35128 | if (PyErr_Occurred()) SWIG_fail; | |
35129 | } | |
35130 | Py_INCREF(Py_None); resultobj = Py_None; | |
35131 | return resultobj; | |
35132 | fail: | |
35133 | return NULL; | |
35134 | } | |
35135 | ||
35136 | ||
c370783e | 35137 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35138 | PyObject *resultobj; |
35139 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35140 | int result; | |
35141 | PyObject * obj0 = 0 ; | |
35142 | char *kwnames[] = { | |
35143 | (char *) "self", NULL | |
35144 | }; | |
35145 | ||
35146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
35147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35149 | { | |
35150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35151 | result = (int)(arg1)->GetBorder(); | |
35152 | ||
35153 | wxPyEndAllowThreads(__tstate); | |
35154 | if (PyErr_Occurred()) SWIG_fail; | |
35155 | } | |
c370783e | 35156 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35157 | return resultobj; |
35158 | fail: | |
35159 | return NULL; | |
35160 | } | |
35161 | ||
35162 | ||
c370783e | 35163 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35164 | PyObject *resultobj; |
35165 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35166 | wxWindow *result; | |
35167 | PyObject * obj0 = 0 ; | |
35168 | char *kwnames[] = { | |
35169 | (char *) "self", NULL | |
35170 | }; | |
35171 | ||
35172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
35173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35175 | { | |
35176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35177 | result = (wxWindow *)(arg1)->GetWindow(); | |
35178 | ||
35179 | wxPyEndAllowThreads(__tstate); | |
35180 | if (PyErr_Occurred()) SWIG_fail; | |
35181 | } | |
35182 | { | |
412d302d | 35183 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
35184 | } |
35185 | return resultobj; | |
35186 | fail: | |
35187 | return NULL; | |
35188 | } | |
35189 | ||
35190 | ||
c370783e | 35191 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35192 | PyObject *resultobj; |
35193 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35194 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35195 | PyObject * obj0 = 0 ; | |
35196 | PyObject * obj1 = 0 ; | |
35197 | char *kwnames[] = { | |
35198 | (char *) "self",(char *) "window", NULL | |
35199 | }; | |
35200 | ||
35201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
35202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35204 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35206 | { | |
35207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35208 | (arg1)->SetWindow(arg2); | |
35209 | ||
35210 | wxPyEndAllowThreads(__tstate); | |
35211 | if (PyErr_Occurred()) SWIG_fail; | |
35212 | } | |
35213 | Py_INCREF(Py_None); resultobj = Py_None; | |
35214 | return resultobj; | |
35215 | fail: | |
35216 | return NULL; | |
35217 | } | |
35218 | ||
35219 | ||
c370783e | 35220 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35221 | PyObject *resultobj; |
35222 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35223 | wxSizer *result; | |
35224 | PyObject * obj0 = 0 ; | |
35225 | char *kwnames[] = { | |
35226 | (char *) "self", NULL | |
35227 | }; | |
35228 | ||
35229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
35230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35232 | { | |
35233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35234 | result = (wxSizer *)(arg1)->GetSizer(); | |
35235 | ||
35236 | wxPyEndAllowThreads(__tstate); | |
35237 | if (PyErr_Occurred()) SWIG_fail; | |
35238 | } | |
35239 | { | |
412d302d | 35240 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
35241 | } |
35242 | return resultobj; | |
35243 | fail: | |
35244 | return NULL; | |
35245 | } | |
35246 | ||
35247 | ||
c370783e | 35248 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35249 | PyObject *resultobj; |
35250 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35251 | wxSizer *arg2 = (wxSizer *) 0 ; | |
35252 | PyObject * obj0 = 0 ; | |
35253 | PyObject * obj1 = 0 ; | |
35254 | char *kwnames[] = { | |
35255 | (char *) "self",(char *) "sizer", NULL | |
35256 | }; | |
35257 | ||
35258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
35259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35261 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
35262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35263 | { | |
35264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35265 | (arg1)->SetSizer(arg2); | |
35266 | ||
35267 | wxPyEndAllowThreads(__tstate); | |
35268 | if (PyErr_Occurred()) SWIG_fail; | |
35269 | } | |
35270 | Py_INCREF(Py_None); resultobj = Py_None; | |
35271 | return resultobj; | |
35272 | fail: | |
35273 | return NULL; | |
35274 | } | |
35275 | ||
35276 | ||
c370783e | 35277 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35278 | PyObject *resultobj; |
35279 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35280 | wxSize *result; | |
35281 | PyObject * obj0 = 0 ; | |
35282 | char *kwnames[] = { | |
35283 | (char *) "self", NULL | |
35284 | }; | |
35285 | ||
35286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
35287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35289 | { | |
35290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35291 | { | |
35292 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
35293 | result = (wxSize *) &_result_ref; | |
35294 | } | |
35295 | ||
35296 | wxPyEndAllowThreads(__tstate); | |
35297 | if (PyErr_Occurred()) SWIG_fail; | |
35298 | } | |
35299 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
35300 | return resultobj; | |
35301 | fail: | |
35302 | return NULL; | |
35303 | } | |
35304 | ||
35305 | ||
c370783e | 35306 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35307 | PyObject *resultobj; |
35308 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35309 | wxSize *arg2 = 0 ; | |
35310 | wxSize temp2 ; | |
35311 | PyObject * obj0 = 0 ; | |
35312 | PyObject * obj1 = 0 ; | |
35313 | char *kwnames[] = { | |
35314 | (char *) "self",(char *) "size", NULL | |
35315 | }; | |
35316 | ||
35317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
35318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35320 | { | |
35321 | arg2 = &temp2; | |
35322 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
35323 | } | |
35324 | { | |
35325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35326 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
35327 | ||
35328 | wxPyEndAllowThreads(__tstate); | |
35329 | if (PyErr_Occurred()) SWIG_fail; | |
35330 | } | |
35331 | Py_INCREF(Py_None); resultobj = Py_None; | |
35332 | return resultobj; | |
35333 | fail: | |
35334 | return NULL; | |
35335 | } | |
35336 | ||
35337 | ||
c370783e | 35338 | static PyObject *_wrap_SizerItem_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35339 | PyObject *resultobj; |
35340 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35341 | bool arg2 ; | |
35342 | PyObject * obj0 = 0 ; | |
35343 | PyObject * obj1 = 0 ; | |
35344 | char *kwnames[] = { | |
35345 | (char *) "self",(char *) "show", NULL | |
35346 | }; | |
35347 | ||
35348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
35349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 35351 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
35352 | if (PyErr_Occurred()) SWIG_fail; |
35353 | { | |
35354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35355 | (arg1)->Show(arg2); | |
35356 | ||
35357 | wxPyEndAllowThreads(__tstate); | |
35358 | if (PyErr_Occurred()) SWIG_fail; | |
35359 | } | |
35360 | Py_INCREF(Py_None); resultobj = Py_None; | |
35361 | return resultobj; | |
35362 | fail: | |
35363 | return NULL; | |
35364 | } | |
35365 | ||
35366 | ||
c370783e | 35367 | static PyObject *_wrap_SizerItem_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35368 | PyObject *resultobj; |
35369 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35370 | bool result; | |
35371 | PyObject * obj0 = 0 ; | |
35372 | char *kwnames[] = { | |
35373 | (char *) "self", NULL | |
35374 | }; | |
35375 | ||
35376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
35377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35379 | { | |
35380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35381 | result = (bool)(arg1)->IsShown(); | |
35382 | ||
35383 | wxPyEndAllowThreads(__tstate); | |
35384 | if (PyErr_Occurred()) SWIG_fail; | |
35385 | } | |
35386 | { | |
35387 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35388 | } | |
35389 | return resultobj; | |
35390 | fail: | |
35391 | return NULL; | |
35392 | } | |
35393 | ||
35394 | ||
c370783e | 35395 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35396 | PyObject *resultobj; |
35397 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35398 | wxPoint result; | |
35399 | PyObject * obj0 = 0 ; | |
35400 | char *kwnames[] = { | |
35401 | (char *) "self", NULL | |
35402 | }; | |
35403 | ||
35404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
35405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35407 | { | |
35408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35409 | result = (arg1)->GetPosition(); | |
35410 | ||
35411 | wxPyEndAllowThreads(__tstate); | |
35412 | if (PyErr_Occurred()) SWIG_fail; | |
35413 | } | |
35414 | { | |
35415 | wxPoint * resultptr; | |
35416 | resultptr = new wxPoint((wxPoint &) result); | |
35417 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
35418 | } | |
35419 | return resultobj; | |
35420 | fail: | |
35421 | return NULL; | |
35422 | } | |
35423 | ||
35424 | ||
c370783e | 35425 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35426 | PyObject *resultobj; |
35427 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35428 | PyObject *result; | |
35429 | PyObject * obj0 = 0 ; | |
35430 | char *kwnames[] = { | |
35431 | (char *) "self", NULL | |
35432 | }; | |
35433 | ||
35434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
35435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35437 | { | |
35438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35439 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
35440 | ||
35441 | wxPyEndAllowThreads(__tstate); | |
35442 | if (PyErr_Occurred()) SWIG_fail; | |
35443 | } | |
35444 | resultobj = result; | |
35445 | return resultobj; | |
35446 | fail: | |
35447 | return NULL; | |
35448 | } | |
35449 | ||
35450 | ||
c370783e | 35451 | static PyObject * SizerItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
35452 | PyObject *obj; |
35453 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35454 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
35455 | Py_INCREF(obj); | |
35456 | return Py_BuildValue((char *)""); | |
35457 | } | |
c370783e | 35458 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35459 | PyObject *resultobj; |
35460 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35461 | PyObject *arg2 = (PyObject *) 0 ; | |
35462 | PyObject * obj0 = 0 ; | |
35463 | PyObject * obj1 = 0 ; | |
35464 | char *kwnames[] = { | |
35465 | (char *) "self",(char *) "_self", NULL | |
35466 | }; | |
35467 | ||
35468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
35469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35471 | arg2 = obj1; | |
35472 | { | |
35473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35474 | wxSizer__setOORInfo(arg1,arg2); | |
35475 | ||
35476 | wxPyEndAllowThreads(__tstate); | |
35477 | if (PyErr_Occurred()) SWIG_fail; | |
35478 | } | |
35479 | Py_INCREF(Py_None); resultobj = Py_None; | |
35480 | return resultobj; | |
35481 | fail: | |
35482 | return NULL; | |
35483 | } | |
35484 | ||
35485 | ||
c370783e | 35486 | static PyObject *_wrap_Sizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35487 | PyObject *resultobj; |
35488 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35489 | PyObject *arg2 = (PyObject *) 0 ; | |
35490 | int arg3 = (int) 0 ; | |
35491 | int arg4 = (int) 0 ; | |
35492 | int arg5 = (int) 0 ; | |
35493 | PyObject *arg6 = (PyObject *) NULL ; | |
35494 | PyObject * obj0 = 0 ; | |
35495 | PyObject * obj1 = 0 ; | |
35496 | PyObject * obj2 = 0 ; | |
35497 | PyObject * obj3 = 0 ; | |
35498 | PyObject * obj4 = 0 ; | |
35499 | PyObject * obj5 = 0 ; | |
35500 | char *kwnames[] = { | |
35501 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35502 | }; | |
35503 | ||
35504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
35505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35507 | arg2 = obj1; | |
35508 | if (obj2) { | |
c370783e | 35509 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
35510 | if (PyErr_Occurred()) SWIG_fail; |
35511 | } | |
35512 | if (obj3) { | |
c370783e | 35513 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
35514 | if (PyErr_Occurred()) SWIG_fail; |
35515 | } | |
35516 | if (obj4) { | |
c370783e | 35517 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
35518 | if (PyErr_Occurred()) SWIG_fail; |
35519 | } | |
35520 | if (obj5) { | |
35521 | arg6 = obj5; | |
35522 | } | |
35523 | { | |
35524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35525 | wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); | |
35526 | ||
35527 | wxPyEndAllowThreads(__tstate); | |
35528 | if (PyErr_Occurred()) SWIG_fail; | |
35529 | } | |
35530 | Py_INCREF(Py_None); resultobj = Py_None; | |
35531 | return resultobj; | |
35532 | fail: | |
35533 | return NULL; | |
35534 | } | |
35535 | ||
35536 | ||
c370783e | 35537 | static PyObject *_wrap_Sizer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35538 | PyObject *resultobj; |
35539 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35540 | int arg2 ; | |
35541 | PyObject *arg3 = (PyObject *) 0 ; | |
35542 | int arg4 = (int) 0 ; | |
35543 | int arg5 = (int) 0 ; | |
35544 | int arg6 = (int) 0 ; | |
35545 | PyObject *arg7 = (PyObject *) NULL ; | |
35546 | PyObject * obj0 = 0 ; | |
35547 | PyObject * obj1 = 0 ; | |
35548 | PyObject * obj2 = 0 ; | |
35549 | PyObject * obj3 = 0 ; | |
35550 | PyObject * obj4 = 0 ; | |
35551 | PyObject * obj5 = 0 ; | |
35552 | PyObject * obj6 = 0 ; | |
35553 | char *kwnames[] = { | |
35554 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35555 | }; | |
35556 | ||
35557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
35558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 35560 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35561 | if (PyErr_Occurred()) SWIG_fail; |
35562 | arg3 = obj2; | |
35563 | if (obj3) { | |
c370783e | 35564 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
35565 | if (PyErr_Occurred()) SWIG_fail; |
35566 | } | |
35567 | if (obj4) { | |
c370783e | 35568 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
35569 | if (PyErr_Occurred()) SWIG_fail; |
35570 | } | |
35571 | if (obj5) { | |
c370783e | 35572 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
35573 | if (PyErr_Occurred()) SWIG_fail; |
35574 | } | |
35575 | if (obj6) { | |
35576 | arg7 = obj6; | |
35577 | } | |
35578 | { | |
35579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35580 | wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); | |
35581 | ||
35582 | wxPyEndAllowThreads(__tstate); | |
35583 | if (PyErr_Occurred()) SWIG_fail; | |
35584 | } | |
35585 | Py_INCREF(Py_None); resultobj = Py_None; | |
35586 | return resultobj; | |
35587 | fail: | |
35588 | return NULL; | |
35589 | } | |
35590 | ||
35591 | ||
c370783e | 35592 | static PyObject *_wrap_Sizer_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35593 | PyObject *resultobj; |
35594 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35595 | PyObject *arg2 = (PyObject *) 0 ; | |
35596 | int arg3 = (int) 0 ; | |
35597 | int arg4 = (int) 0 ; | |
35598 | int arg5 = (int) 0 ; | |
35599 | PyObject *arg6 = (PyObject *) NULL ; | |
35600 | PyObject * obj0 = 0 ; | |
35601 | PyObject * obj1 = 0 ; | |
35602 | PyObject * obj2 = 0 ; | |
35603 | PyObject * obj3 = 0 ; | |
35604 | PyObject * obj4 = 0 ; | |
35605 | PyObject * obj5 = 0 ; | |
35606 | char *kwnames[] = { | |
35607 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35608 | }; | |
35609 | ||
35610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
35611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35613 | arg2 = obj1; | |
35614 | if (obj2) { | |
c370783e | 35615 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
35616 | if (PyErr_Occurred()) SWIG_fail; |
35617 | } | |
35618 | if (obj3) { | |
c370783e | 35619 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
35620 | if (PyErr_Occurred()) SWIG_fail; |
35621 | } | |
35622 | if (obj4) { | |
c370783e | 35623 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
35624 | if (PyErr_Occurred()) SWIG_fail; |
35625 | } | |
35626 | if (obj5) { | |
35627 | arg6 = obj5; | |
35628 | } | |
35629 | { | |
35630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35631 | wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); | |
35632 | ||
35633 | wxPyEndAllowThreads(__tstate); | |
35634 | if (PyErr_Occurred()) SWIG_fail; | |
35635 | } | |
35636 | Py_INCREF(Py_None); resultobj = Py_None; | |
35637 | return resultobj; | |
35638 | fail: | |
35639 | return NULL; | |
35640 | } | |
35641 | ||
35642 | ||
c370783e | 35643 | static PyObject *_wrap_Sizer_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35644 | PyObject *resultobj; |
35645 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35646 | PyObject *arg2 = (PyObject *) 0 ; | |
35647 | bool result; | |
35648 | PyObject * obj0 = 0 ; | |
35649 | PyObject * obj1 = 0 ; | |
35650 | char *kwnames[] = { | |
35651 | (char *) "self",(char *) "item", NULL | |
35652 | }; | |
35653 | ||
35654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
35655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35657 | arg2 = obj1; | |
35658 | { | |
35659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35660 | result = (bool)wxSizer_Remove(arg1,arg2); | |
35661 | ||
35662 | wxPyEndAllowThreads(__tstate); | |
35663 | if (PyErr_Occurred()) SWIG_fail; | |
35664 | } | |
35665 | { | |
35666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35667 | } | |
35668 | return resultobj; | |
35669 | fail: | |
35670 | return NULL; | |
35671 | } | |
35672 | ||
35673 | ||
c370783e | 35674 | static PyObject *_wrap_Sizer_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
1a6bba1e RD |
35675 | PyObject *resultobj; |
35676 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35677 | PyObject *arg2 = (PyObject *) 0 ; | |
35678 | bool result; | |
35679 | PyObject * obj0 = 0 ; | |
35680 | PyObject * obj1 = 0 ; | |
35681 | char *kwnames[] = { | |
35682 | (char *) "self",(char *) "item", NULL | |
35683 | }; | |
35684 | ||
35685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail; | |
35686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35688 | arg2 = obj1; | |
35689 | { | |
35690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35691 | result = (bool)wxSizer_Detach(arg1,arg2); | |
35692 | ||
35693 | wxPyEndAllowThreads(__tstate); | |
35694 | if (PyErr_Occurred()) SWIG_fail; | |
35695 | } | |
35696 | { | |
35697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35698 | } | |
35699 | return resultobj; | |
35700 | fail: | |
35701 | return NULL; | |
35702 | } | |
35703 | ||
35704 | ||
c370783e | 35705 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35706 | PyObject *resultobj; |
35707 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35708 | PyObject *arg2 = (PyObject *) 0 ; | |
35709 | wxSize *arg3 = 0 ; | |
35710 | wxSize temp3 ; | |
35711 | PyObject * obj0 = 0 ; | |
35712 | PyObject * obj1 = 0 ; | |
35713 | PyObject * obj2 = 0 ; | |
35714 | char *kwnames[] = { | |
35715 | (char *) "self",(char *) "item",(char *) "size", NULL | |
35716 | }; | |
35717 | ||
35718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35721 | arg2 = obj1; | |
35722 | { | |
35723 | arg3 = &temp3; | |
35724 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
35725 | } | |
35726 | { | |
35727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35728 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); | |
35729 | ||
35730 | wxPyEndAllowThreads(__tstate); | |
35731 | if (PyErr_Occurred()) SWIG_fail; | |
35732 | } | |
35733 | Py_INCREF(Py_None); resultobj = Py_None; | |
35734 | return resultobj; | |
35735 | fail: | |
35736 | return NULL; | |
35737 | } | |
35738 | ||
35739 | ||
c370783e | 35740 | static PyObject *_wrap_Sizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35741 | PyObject *resultobj; |
35742 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35743 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
35744 | PyObject * obj0 = 0 ; | |
35745 | PyObject * obj1 = 0 ; | |
35746 | char *kwnames[] = { | |
35747 | (char *) "self",(char *) "item", NULL | |
35748 | }; | |
35749 | ||
35750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
35751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35753 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
35754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35755 | { | |
35756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35757 | (arg1)->Add(arg2); | |
35758 | ||
35759 | wxPyEndAllowThreads(__tstate); | |
35760 | if (PyErr_Occurred()) SWIG_fail; | |
35761 | } | |
35762 | Py_INCREF(Py_None); resultobj = Py_None; | |
35763 | return resultobj; | |
35764 | fail: | |
35765 | return NULL; | |
35766 | } | |
35767 | ||
35768 | ||
c370783e | 35769 | static PyObject *_wrap_Sizer_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35770 | PyObject *resultobj; |
35771 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35772 | size_t arg2 ; | |
35773 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
35774 | PyObject * obj0 = 0 ; | |
35775 | PyObject * obj1 = 0 ; | |
35776 | PyObject * obj2 = 0 ; | |
35777 | char *kwnames[] = { | |
35778 | (char *) "self",(char *) "index",(char *) "item", NULL | |
35779 | }; | |
35780 | ||
35781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 35784 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
35785 | if (PyErr_Occurred()) SWIG_fail; |
35786 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem, | |
35787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35788 | { | |
35789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35790 | (arg1)->Insert(arg2,arg3); | |
35791 | ||
35792 | wxPyEndAllowThreads(__tstate); | |
35793 | if (PyErr_Occurred()) SWIG_fail; | |
35794 | } | |
35795 | Py_INCREF(Py_None); resultobj = Py_None; | |
35796 | return resultobj; | |
35797 | fail: | |
35798 | return NULL; | |
35799 | } | |
35800 | ||
35801 | ||
c370783e | 35802 | static PyObject *_wrap_Sizer_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35803 | PyObject *resultobj; |
35804 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35805 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
35806 | PyObject * obj0 = 0 ; | |
35807 | PyObject * obj1 = 0 ; | |
35808 | char *kwnames[] = { | |
35809 | (char *) "self",(char *) "item", NULL | |
35810 | }; | |
35811 | ||
35812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
35813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35815 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
35816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35817 | { | |
35818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35819 | (arg1)->Prepend(arg2); | |
35820 | ||
35821 | wxPyEndAllowThreads(__tstate); | |
35822 | if (PyErr_Occurred()) SWIG_fail; | |
35823 | } | |
35824 | Py_INCREF(Py_None); resultobj = Py_None; | |
35825 | return resultobj; | |
35826 | fail: | |
35827 | return NULL; | |
35828 | } | |
35829 | ||
35830 | ||
c370783e | 35831 | static PyObject *_wrap_Sizer_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35832 | PyObject *resultobj; |
35833 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35834 | int arg2 ; | |
35835 | int arg3 ; | |
35836 | int arg4 ; | |
35837 | int arg5 ; | |
35838 | PyObject * obj0 = 0 ; | |
35839 | PyObject * obj1 = 0 ; | |
35840 | PyObject * obj2 = 0 ; | |
35841 | PyObject * obj3 = 0 ; | |
35842 | PyObject * obj4 = 0 ; | |
35843 | char *kwnames[] = { | |
35844 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
35845 | }; | |
35846 | ||
35847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
35848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 35850 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 35851 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 35852 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 35853 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 35854 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 35855 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 35856 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
35857 | if (PyErr_Occurred()) SWIG_fail; |
35858 | { | |
35859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35860 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
35861 | ||
35862 | wxPyEndAllowThreads(__tstate); | |
35863 | if (PyErr_Occurred()) SWIG_fail; | |
35864 | } | |
35865 | Py_INCREF(Py_None); resultobj = Py_None; | |
35866 | return resultobj; | |
35867 | fail: | |
35868 | return NULL; | |
35869 | } | |
35870 | ||
35871 | ||
c370783e | 35872 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35873 | PyObject *resultobj; |
35874 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35875 | wxSize *arg2 = 0 ; | |
35876 | wxSize temp2 ; | |
35877 | PyObject * obj0 = 0 ; | |
35878 | PyObject * obj1 = 0 ; | |
35879 | char *kwnames[] = { | |
35880 | (char *) "self",(char *) "size", NULL | |
35881 | }; | |
35882 | ||
35883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
35884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35886 | { | |
35887 | arg2 = &temp2; | |
35888 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
35889 | } | |
35890 | { | |
35891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35892 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
35893 | ||
35894 | wxPyEndAllowThreads(__tstate); | |
35895 | if (PyErr_Occurred()) SWIG_fail; | |
35896 | } | |
35897 | Py_INCREF(Py_None); resultobj = Py_None; | |
35898 | return resultobj; | |
35899 | fail: | |
35900 | return NULL; | |
35901 | } | |
35902 | ||
35903 | ||
c370783e | 35904 | static PyObject *_wrap_Sizer_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35905 | PyObject *resultobj; |
35906 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35907 | wxSize result; | |
35908 | PyObject * obj0 = 0 ; | |
35909 | char *kwnames[] = { | |
35910 | (char *) "self", NULL | |
35911 | }; | |
35912 | ||
35913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
35914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35916 | { | |
35917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35918 | result = (arg1)->GetSize(); | |
35919 | ||
35920 | wxPyEndAllowThreads(__tstate); | |
35921 | if (PyErr_Occurred()) SWIG_fail; | |
35922 | } | |
35923 | { | |
35924 | wxSize * resultptr; | |
35925 | resultptr = new wxSize((wxSize &) result); | |
35926 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35927 | } | |
35928 | return resultobj; | |
35929 | fail: | |
35930 | return NULL; | |
35931 | } | |
35932 | ||
35933 | ||
c370783e | 35934 | static PyObject *_wrap_Sizer_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35935 | PyObject *resultobj; |
35936 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35937 | wxPoint result; | |
35938 | PyObject * obj0 = 0 ; | |
35939 | char *kwnames[] = { | |
35940 | (char *) "self", NULL | |
35941 | }; | |
35942 | ||
35943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
35944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35946 | { | |
35947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35948 | result = (arg1)->GetPosition(); | |
35949 | ||
35950 | wxPyEndAllowThreads(__tstate); | |
35951 | if (PyErr_Occurred()) SWIG_fail; | |
35952 | } | |
35953 | { | |
35954 | wxPoint * resultptr; | |
35955 | resultptr = new wxPoint((wxPoint &) result); | |
35956 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
35957 | } | |
35958 | return resultobj; | |
35959 | fail: | |
35960 | return NULL; | |
35961 | } | |
35962 | ||
35963 | ||
c370783e | 35964 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35965 | PyObject *resultobj; |
35966 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35967 | wxSize result; | |
35968 | PyObject * obj0 = 0 ; | |
35969 | char *kwnames[] = { | |
35970 | (char *) "self", NULL | |
35971 | }; | |
35972 | ||
35973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
35974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35976 | { | |
35977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35978 | result = (arg1)->GetMinSize(); | |
35979 | ||
35980 | wxPyEndAllowThreads(__tstate); | |
35981 | if (PyErr_Occurred()) SWIG_fail; | |
35982 | } | |
35983 | { | |
35984 | wxSize * resultptr; | |
35985 | resultptr = new wxSize((wxSize &) result); | |
35986 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35987 | } | |
35988 | return resultobj; | |
35989 | fail: | |
35990 | return NULL; | |
35991 | } | |
35992 | ||
35993 | ||
c370783e | 35994 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35995 | PyObject *resultobj; |
35996 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35997 | PyObject * obj0 = 0 ; | |
35998 | char *kwnames[] = { | |
35999 | (char *) "self", NULL | |
36000 | }; | |
36001 | ||
36002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
36003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36005 | { | |
36006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36007 | (arg1)->RecalcSizes(); | |
36008 | ||
36009 | wxPyEndAllowThreads(__tstate); | |
36010 | if (PyErr_Occurred()) SWIG_fail; | |
36011 | } | |
36012 | Py_INCREF(Py_None); resultobj = Py_None; | |
36013 | return resultobj; | |
36014 | fail: | |
36015 | return NULL; | |
36016 | } | |
36017 | ||
36018 | ||
c370783e | 36019 | static PyObject *_wrap_Sizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36020 | PyObject *resultobj; |
36021 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36022 | wxSize result; | |
36023 | PyObject * obj0 = 0 ; | |
36024 | char *kwnames[] = { | |
36025 | (char *) "self", NULL | |
36026 | }; | |
36027 | ||
36028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
36029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36031 | { | |
36032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36033 | result = (arg1)->CalcMin(); | |
36034 | ||
36035 | wxPyEndAllowThreads(__tstate); | |
36036 | if (PyErr_Occurred()) SWIG_fail; | |
36037 | } | |
36038 | { | |
36039 | wxSize * resultptr; | |
36040 | resultptr = new wxSize((wxSize &) result); | |
36041 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36042 | } | |
36043 | return resultobj; | |
36044 | fail: | |
36045 | return NULL; | |
36046 | } | |
36047 | ||
36048 | ||
c370783e | 36049 | static PyObject *_wrap_Sizer_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36050 | PyObject *resultobj; |
36051 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36052 | PyObject * obj0 = 0 ; | |
36053 | char *kwnames[] = { | |
36054 | (char *) "self", NULL | |
36055 | }; | |
36056 | ||
36057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
36058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36060 | { | |
36061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36062 | (arg1)->Layout(); | |
36063 | ||
36064 | wxPyEndAllowThreads(__tstate); | |
36065 | if (PyErr_Occurred()) SWIG_fail; | |
36066 | } | |
36067 | Py_INCREF(Py_None); resultobj = Py_None; | |
36068 | return resultobj; | |
36069 | fail: | |
36070 | return NULL; | |
36071 | } | |
36072 | ||
36073 | ||
c370783e | 36074 | static PyObject *_wrap_Sizer_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36075 | PyObject *resultobj; |
36076 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36077 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36078 | wxSize result; | |
36079 | PyObject * obj0 = 0 ; | |
36080 | PyObject * obj1 = 0 ; | |
36081 | char *kwnames[] = { | |
36082 | (char *) "self",(char *) "window", NULL | |
36083 | }; | |
36084 | ||
36085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
36086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36088 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36090 | { | |
36091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36092 | result = (arg1)->Fit(arg2); | |
36093 | ||
36094 | wxPyEndAllowThreads(__tstate); | |
36095 | if (PyErr_Occurred()) SWIG_fail; | |
36096 | } | |
36097 | { | |
36098 | wxSize * resultptr; | |
36099 | resultptr = new wxSize((wxSize &) result); | |
36100 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36101 | } | |
36102 | return resultobj; | |
36103 | fail: | |
36104 | return NULL; | |
36105 | } | |
36106 | ||
36107 | ||
c370783e | 36108 | static PyObject *_wrap_Sizer_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36109 | PyObject *resultobj; |
36110 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36111 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36112 | PyObject * obj0 = 0 ; | |
36113 | PyObject * obj1 = 0 ; | |
36114 | char *kwnames[] = { | |
36115 | (char *) "self",(char *) "window", NULL | |
36116 | }; | |
36117 | ||
36118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
36119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36121 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36123 | { | |
36124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36125 | (arg1)->FitInside(arg2); | |
36126 | ||
36127 | wxPyEndAllowThreads(__tstate); | |
36128 | if (PyErr_Occurred()) SWIG_fail; | |
36129 | } | |
36130 | Py_INCREF(Py_None); resultobj = Py_None; | |
36131 | return resultobj; | |
36132 | fail: | |
36133 | return NULL; | |
36134 | } | |
36135 | ||
36136 | ||
c370783e | 36137 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36138 | PyObject *resultobj; |
36139 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36140 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36141 | PyObject * obj0 = 0 ; | |
36142 | PyObject * obj1 = 0 ; | |
36143 | char *kwnames[] = { | |
36144 | (char *) "self",(char *) "window", NULL | |
36145 | }; | |
36146 | ||
36147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
36148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36150 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36152 | { | |
36153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36154 | (arg1)->SetSizeHints(arg2); | |
36155 | ||
36156 | wxPyEndAllowThreads(__tstate); | |
36157 | if (PyErr_Occurred()) SWIG_fail; | |
36158 | } | |
36159 | Py_INCREF(Py_None); resultobj = Py_None; | |
36160 | return resultobj; | |
36161 | fail: | |
36162 | return NULL; | |
36163 | } | |
36164 | ||
36165 | ||
c370783e | 36166 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36167 | PyObject *resultobj; |
36168 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36169 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36170 | PyObject * obj0 = 0 ; | |
36171 | PyObject * obj1 = 0 ; | |
36172 | char *kwnames[] = { | |
36173 | (char *) "self",(char *) "window", NULL | |
36174 | }; | |
36175 | ||
36176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
36177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36179 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36181 | { | |
36182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36183 | (arg1)->SetVirtualSizeHints(arg2); | |
36184 | ||
36185 | wxPyEndAllowThreads(__tstate); | |
36186 | if (PyErr_Occurred()) SWIG_fail; | |
36187 | } | |
36188 | Py_INCREF(Py_None); resultobj = Py_None; | |
36189 | return resultobj; | |
36190 | fail: | |
36191 | return NULL; | |
36192 | } | |
36193 | ||
36194 | ||
c370783e | 36195 | static PyObject *_wrap_Sizer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36196 | PyObject *resultobj; |
36197 | wxSizer *arg1 = (wxSizer *) 0 ; | |
b411df4a | 36198 | bool arg2 = (bool) false ; |
d55e5bfc RD |
36199 | PyObject * obj0 = 0 ; |
36200 | PyObject * obj1 = 0 ; | |
36201 | char *kwnames[] = { | |
bfddbb17 | 36202 | (char *) "self",(char *) "deleteWindows", NULL |
d55e5bfc RD |
36203 | }; |
36204 | ||
36205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
36206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36208 | if (obj1) { | |
c370783e | 36209 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
36210 | if (PyErr_Occurred()) SWIG_fail; |
36211 | } | |
36212 | { | |
36213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36214 | (arg1)->Clear(arg2); | |
36215 | ||
36216 | wxPyEndAllowThreads(__tstate); | |
36217 | if (PyErr_Occurred()) SWIG_fail; | |
36218 | } | |
36219 | Py_INCREF(Py_None); resultobj = Py_None; | |
36220 | return resultobj; | |
36221 | fail: | |
36222 | return NULL; | |
36223 | } | |
36224 | ||
36225 | ||
c370783e | 36226 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36227 | PyObject *resultobj; |
36228 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36229 | PyObject * obj0 = 0 ; | |
36230 | char *kwnames[] = { | |
36231 | (char *) "self", NULL | |
36232 | }; | |
36233 | ||
36234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
36235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36237 | { | |
36238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36239 | (arg1)->DeleteWindows(); | |
36240 | ||
36241 | wxPyEndAllowThreads(__tstate); | |
36242 | if (PyErr_Occurred()) SWIG_fail; | |
36243 | } | |
36244 | Py_INCREF(Py_None); resultobj = Py_None; | |
36245 | return resultobj; | |
36246 | fail: | |
36247 | return NULL; | |
36248 | } | |
36249 | ||
36250 | ||
c370783e | 36251 | static PyObject *_wrap_Sizer_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36252 | PyObject *resultobj; |
36253 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36254 | PyObject *result; | |
36255 | PyObject * obj0 = 0 ; | |
36256 | char *kwnames[] = { | |
36257 | (char *) "self", NULL | |
36258 | }; | |
36259 | ||
36260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
36261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36263 | { | |
36264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36265 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
36266 | ||
36267 | wxPyEndAllowThreads(__tstate); | |
36268 | if (PyErr_Occurred()) SWIG_fail; | |
36269 | } | |
36270 | resultobj = result; | |
36271 | return resultobj; | |
36272 | fail: | |
36273 | return NULL; | |
36274 | } | |
36275 | ||
36276 | ||
c370783e | 36277 | static PyObject *_wrap_Sizer_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36278 | PyObject *resultobj; |
36279 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36280 | PyObject *arg2 = (PyObject *) 0 ; | |
b411df4a RD |
36281 | bool arg3 = (bool) true ; |
36282 | bool arg4 = (bool) false ; | |
629e65c2 | 36283 | bool result; |
d55e5bfc RD |
36284 | PyObject * obj0 = 0 ; |
36285 | PyObject * obj1 = 0 ; | |
36286 | PyObject * obj2 = 0 ; | |
629e65c2 | 36287 | PyObject * obj3 = 0 ; |
d55e5bfc | 36288 | char *kwnames[] = { |
629e65c2 | 36289 | (char *) "self",(char *) "item",(char *) "show",(char *) "recursive", NULL |
d55e5bfc RD |
36290 | }; |
36291 | ||
629e65c2 | 36292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Sizer_Show",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
36293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36295 | arg2 = obj1; | |
36296 | if (obj2) { | |
c370783e | 36297 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
36298 | if (PyErr_Occurred()) SWIG_fail; |
36299 | } | |
629e65c2 RD |
36300 | if (obj3) { |
36301 | arg4 = (bool)SWIG_As_bool(obj3); | |
36302 | if (PyErr_Occurred()) SWIG_fail; | |
36303 | } | |
d55e5bfc RD |
36304 | { |
36305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
629e65c2 | 36306 | result = (bool)wxSizer_Show(arg1,arg2,arg3,arg4); |
d55e5bfc RD |
36307 | |
36308 | wxPyEndAllowThreads(__tstate); | |
36309 | if (PyErr_Occurred()) SWIG_fail; | |
36310 | } | |
629e65c2 RD |
36311 | { |
36312 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36313 | } | |
d55e5bfc RD |
36314 | return resultobj; |
36315 | fail: | |
36316 | return NULL; | |
36317 | } | |
36318 | ||
36319 | ||
c370783e | 36320 | static PyObject *_wrap_Sizer_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36321 | PyObject *resultobj; |
36322 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36323 | PyObject *arg2 = (PyObject *) 0 ; | |
36324 | bool result; | |
36325 | PyObject * obj0 = 0 ; | |
36326 | PyObject * obj1 = 0 ; | |
36327 | char *kwnames[] = { | |
36328 | (char *) "self",(char *) "item", NULL | |
36329 | }; | |
36330 | ||
36331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
36332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36334 | arg2 = obj1; | |
36335 | { | |
36336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36337 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
36338 | ||
36339 | wxPyEndAllowThreads(__tstate); | |
36340 | if (PyErr_Occurred()) SWIG_fail; | |
36341 | } | |
36342 | { | |
36343 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36344 | } | |
36345 | return resultobj; | |
36346 | fail: | |
36347 | return NULL; | |
36348 | } | |
36349 | ||
36350 | ||
c370783e | 36351 | static PyObject *_wrap_Sizer_ShowItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36352 | PyObject *resultobj; |
36353 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36354 | bool arg2 ; | |
36355 | PyObject * obj0 = 0 ; | |
36356 | PyObject * obj1 = 0 ; | |
36357 | char *kwnames[] = { | |
36358 | (char *) "self",(char *) "show", NULL | |
36359 | }; | |
36360 | ||
36361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
36362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 36364 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
36365 | if (PyErr_Occurred()) SWIG_fail; |
36366 | { | |
36367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36368 | (arg1)->ShowItems(arg2); | |
36369 | ||
36370 | wxPyEndAllowThreads(__tstate); | |
36371 | if (PyErr_Occurred()) SWIG_fail; | |
36372 | } | |
36373 | Py_INCREF(Py_None); resultobj = Py_None; | |
36374 | return resultobj; | |
36375 | fail: | |
36376 | return NULL; | |
36377 | } | |
36378 | ||
36379 | ||
c370783e | 36380 | static PyObject * Sizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
36381 | PyObject *obj; |
36382 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36383 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
36384 | Py_INCREF(obj); | |
36385 | return Py_BuildValue((char *)""); | |
36386 | } | |
c370783e | 36387 | static PyObject *_wrap_new_PySizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36388 | PyObject *resultobj; |
36389 | wxPySizer *result; | |
36390 | char *kwnames[] = { | |
36391 | NULL | |
36392 | }; | |
36393 | ||
36394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
36395 | { | |
36396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36397 | result = (wxPySizer *)new wxPySizer(); | |
36398 | ||
36399 | wxPyEndAllowThreads(__tstate); | |
36400 | if (PyErr_Occurred()) SWIG_fail; | |
36401 | } | |
36402 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); | |
36403 | return resultobj; | |
36404 | fail: | |
36405 | return NULL; | |
36406 | } | |
36407 | ||
36408 | ||
c370783e | 36409 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36410 | PyObject *resultobj; |
36411 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
36412 | PyObject *arg2 = (PyObject *) 0 ; | |
36413 | PyObject *arg3 = (PyObject *) 0 ; | |
36414 | PyObject * obj0 = 0 ; | |
36415 | PyObject * obj1 = 0 ; | |
36416 | PyObject * obj2 = 0 ; | |
36417 | char *kwnames[] = { | |
36418 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
36419 | }; | |
36420 | ||
36421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer, | |
36423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36424 | arg2 = obj1; | |
36425 | arg3 = obj2; | |
36426 | { | |
36427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36428 | (arg1)->_setCallbackInfo(arg2,arg3); | |
36429 | ||
36430 | wxPyEndAllowThreads(__tstate); | |
36431 | if (PyErr_Occurred()) SWIG_fail; | |
36432 | } | |
36433 | Py_INCREF(Py_None); resultobj = Py_None; | |
36434 | return resultobj; | |
36435 | fail: | |
36436 | return NULL; | |
36437 | } | |
36438 | ||
36439 | ||
c370783e | 36440 | static PyObject * PySizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
36441 | PyObject *obj; |
36442 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36443 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
36444 | Py_INCREF(obj); | |
36445 | return Py_BuildValue((char *)""); | |
36446 | } | |
c370783e | 36447 | static PyObject *_wrap_new_BoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36448 | PyObject *resultobj; |
36449 | int arg1 = (int) wxHORIZONTAL ; | |
36450 | wxBoxSizer *result; | |
36451 | PyObject * obj0 = 0 ; | |
36452 | char *kwnames[] = { | |
36453 | (char *) "orient", NULL | |
36454 | }; | |
36455 | ||
36456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; | |
36457 | if (obj0) { | |
c370783e | 36458 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
36459 | if (PyErr_Occurred()) SWIG_fail; |
36460 | } | |
36461 | { | |
36462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36463 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
36464 | ||
36465 | wxPyEndAllowThreads(__tstate); | |
36466 | if (PyErr_Occurred()) SWIG_fail; | |
36467 | } | |
36468 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); | |
36469 | return resultobj; | |
36470 | fail: | |
36471 | return NULL; | |
36472 | } | |
36473 | ||
36474 | ||
c370783e | 36475 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36476 | PyObject *resultobj; |
36477 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
36478 | int result; | |
36479 | PyObject * obj0 = 0 ; | |
36480 | char *kwnames[] = { | |
36481 | (char *) "self", NULL | |
36482 | }; | |
36483 | ||
36484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
36485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
36486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36487 | { | |
36488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36489 | result = (int)(arg1)->GetOrientation(); | |
36490 | ||
36491 | wxPyEndAllowThreads(__tstate); | |
36492 | if (PyErr_Occurred()) SWIG_fail; | |
36493 | } | |
c370783e | 36494 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
36495 | return resultobj; |
36496 | fail: | |
36497 | return NULL; | |
36498 | } | |
36499 | ||
36500 | ||
c370783e | 36501 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36502 | PyObject *resultobj; |
36503 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
36504 | int arg2 ; | |
36505 | PyObject * obj0 = 0 ; | |
36506 | PyObject * obj1 = 0 ; | |
36507 | char *kwnames[] = { | |
36508 | (char *) "self",(char *) "orient", NULL | |
36509 | }; | |
36510 | ||
36511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
36512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
36513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 36514 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36515 | if (PyErr_Occurred()) SWIG_fail; |
36516 | { | |
36517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36518 | (arg1)->SetOrientation(arg2); | |
36519 | ||
36520 | wxPyEndAllowThreads(__tstate); | |
36521 | if (PyErr_Occurred()) SWIG_fail; | |
36522 | } | |
36523 | Py_INCREF(Py_None); resultobj = Py_None; | |
36524 | return resultobj; | |
36525 | fail: | |
36526 | return NULL; | |
36527 | } | |
36528 | ||
36529 | ||
c370783e | 36530 | static PyObject * BoxSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
36531 | PyObject *obj; |
36532 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36533 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
36534 | Py_INCREF(obj); | |
36535 | return Py_BuildValue((char *)""); | |
36536 | } | |
c370783e | 36537 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36538 | PyObject *resultobj; |
36539 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
36540 | int arg2 = (int) wxHORIZONTAL ; | |
36541 | wxStaticBoxSizer *result; | |
36542 | PyObject * obj0 = 0 ; | |
36543 | PyObject * obj1 = 0 ; | |
36544 | char *kwnames[] = { | |
36545 | (char *) "box",(char *) "orient", NULL | |
36546 | }; | |
36547 | ||
36548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; | |
36549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, | |
36550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36551 | if (obj1) { | |
c370783e | 36552 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36553 | if (PyErr_Occurred()) SWIG_fail; |
36554 | } | |
36555 | { | |
36556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36557 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
36558 | ||
36559 | wxPyEndAllowThreads(__tstate); | |
36560 | if (PyErr_Occurred()) SWIG_fail; | |
36561 | } | |
36562 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); | |
36563 | return resultobj; | |
36564 | fail: | |
36565 | return NULL; | |
36566 | } | |
36567 | ||
36568 | ||
c370783e | 36569 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36570 | PyObject *resultobj; |
36571 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
36572 | wxStaticBox *result; | |
36573 | PyObject * obj0 = 0 ; | |
36574 | char *kwnames[] = { | |
36575 | (char *) "self", NULL | |
36576 | }; | |
36577 | ||
36578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
36579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, | |
36580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36581 | { | |
36582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36583 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
36584 | ||
36585 | wxPyEndAllowThreads(__tstate); | |
36586 | if (PyErr_Occurred()) SWIG_fail; | |
36587 | } | |
36588 | { | |
412d302d | 36589 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
36590 | } |
36591 | return resultobj; | |
36592 | fail: | |
36593 | return NULL; | |
36594 | } | |
36595 | ||
36596 | ||
c370783e | 36597 | static PyObject * StaticBoxSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
36598 | PyObject *obj; |
36599 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36600 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
36601 | Py_INCREF(obj); | |
36602 | return Py_BuildValue((char *)""); | |
36603 | } | |
c370783e | 36604 | static PyObject *_wrap_new_GridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36605 | PyObject *resultobj; |
36606 | int arg1 = (int) 1 ; | |
36607 | int arg2 = (int) 0 ; | |
36608 | int arg3 = (int) 0 ; | |
36609 | int arg4 = (int) 0 ; | |
36610 | wxGridSizer *result; | |
36611 | PyObject * obj0 = 0 ; | |
36612 | PyObject * obj1 = 0 ; | |
36613 | PyObject * obj2 = 0 ; | |
36614 | PyObject * obj3 = 0 ; | |
36615 | char *kwnames[] = { | |
36616 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
36617 | }; | |
36618 | ||
36619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36620 | if (obj0) { | |
c370783e | 36621 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
36622 | if (PyErr_Occurred()) SWIG_fail; |
36623 | } | |
36624 | if (obj1) { | |
c370783e | 36625 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36626 | if (PyErr_Occurred()) SWIG_fail; |
36627 | } | |
36628 | if (obj2) { | |
c370783e | 36629 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
36630 | if (PyErr_Occurred()) SWIG_fail; |
36631 | } | |
36632 | if (obj3) { | |
c370783e | 36633 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
36634 | if (PyErr_Occurred()) SWIG_fail; |
36635 | } | |
36636 | { | |
36637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36638 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
36639 | ||
36640 | wxPyEndAllowThreads(__tstate); | |
36641 | if (PyErr_Occurred()) SWIG_fail; | |
36642 | } | |
36643 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); | |
36644 | return resultobj; | |
36645 | fail: | |
36646 | return NULL; | |
36647 | } | |
36648 | ||
36649 | ||
c370783e | 36650 | static PyObject *_wrap_GridSizer_SetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36651 | PyObject *resultobj; |
36652 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36653 | int arg2 ; | |
36654 | PyObject * obj0 = 0 ; | |
36655 | PyObject * obj1 = 0 ; | |
36656 | char *kwnames[] = { | |
36657 | (char *) "self",(char *) "cols", NULL | |
36658 | }; | |
36659 | ||
36660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; | |
36661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 36663 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36664 | if (PyErr_Occurred()) SWIG_fail; |
36665 | { | |
36666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36667 | (arg1)->SetCols(arg2); | |
36668 | ||
36669 | wxPyEndAllowThreads(__tstate); | |
36670 | if (PyErr_Occurred()) SWIG_fail; | |
36671 | } | |
36672 | Py_INCREF(Py_None); resultobj = Py_None; | |
36673 | return resultobj; | |
36674 | fail: | |
36675 | return NULL; | |
36676 | } | |
36677 | ||
36678 | ||
c370783e | 36679 | static PyObject *_wrap_GridSizer_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36680 | PyObject *resultobj; |
36681 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36682 | int arg2 ; | |
36683 | PyObject * obj0 = 0 ; | |
36684 | PyObject * obj1 = 0 ; | |
36685 | char *kwnames[] = { | |
36686 | (char *) "self",(char *) "rows", NULL | |
36687 | }; | |
36688 | ||
36689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
36690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 36692 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36693 | if (PyErr_Occurred()) SWIG_fail; |
36694 | { | |
36695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36696 | (arg1)->SetRows(arg2); | |
36697 | ||
36698 | wxPyEndAllowThreads(__tstate); | |
36699 | if (PyErr_Occurred()) SWIG_fail; | |
36700 | } | |
36701 | Py_INCREF(Py_None); resultobj = Py_None; | |
36702 | return resultobj; | |
36703 | fail: | |
36704 | return NULL; | |
36705 | } | |
36706 | ||
36707 | ||
c370783e | 36708 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36709 | PyObject *resultobj; |
36710 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36711 | int arg2 ; | |
36712 | PyObject * obj0 = 0 ; | |
36713 | PyObject * obj1 = 0 ; | |
36714 | char *kwnames[] = { | |
36715 | (char *) "self",(char *) "gap", NULL | |
36716 | }; | |
36717 | ||
36718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; | |
36719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 36721 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36722 | if (PyErr_Occurred()) SWIG_fail; |
36723 | { | |
36724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36725 | (arg1)->SetVGap(arg2); | |
36726 | ||
36727 | wxPyEndAllowThreads(__tstate); | |
36728 | if (PyErr_Occurred()) SWIG_fail; | |
36729 | } | |
36730 | Py_INCREF(Py_None); resultobj = Py_None; | |
36731 | return resultobj; | |
36732 | fail: | |
36733 | return NULL; | |
36734 | } | |
36735 | ||
36736 | ||
c370783e | 36737 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36738 | PyObject *resultobj; |
36739 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36740 | int arg2 ; | |
36741 | PyObject * obj0 = 0 ; | |
36742 | PyObject * obj1 = 0 ; | |
36743 | char *kwnames[] = { | |
36744 | (char *) "self",(char *) "gap", NULL | |
36745 | }; | |
36746 | ||
36747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; | |
36748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 36750 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36751 | if (PyErr_Occurred()) SWIG_fail; |
36752 | { | |
36753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36754 | (arg1)->SetHGap(arg2); | |
36755 | ||
36756 | wxPyEndAllowThreads(__tstate); | |
36757 | if (PyErr_Occurred()) SWIG_fail; | |
36758 | } | |
36759 | Py_INCREF(Py_None); resultobj = Py_None; | |
36760 | return resultobj; | |
36761 | fail: | |
36762 | return NULL; | |
36763 | } | |
36764 | ||
36765 | ||
c370783e | 36766 | static PyObject *_wrap_GridSizer_GetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36767 | PyObject *resultobj; |
36768 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36769 | int result; | |
36770 | PyObject * obj0 = 0 ; | |
36771 | char *kwnames[] = { | |
36772 | (char *) "self", NULL | |
36773 | }; | |
36774 | ||
36775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
36776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36778 | { | |
36779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36780 | result = (int)(arg1)->GetCols(); | |
36781 | ||
36782 | wxPyEndAllowThreads(__tstate); | |
36783 | if (PyErr_Occurred()) SWIG_fail; | |
36784 | } | |
c370783e | 36785 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
36786 | return resultobj; |
36787 | fail: | |
36788 | return NULL; | |
36789 | } | |
36790 | ||
36791 | ||
c370783e | 36792 | static PyObject *_wrap_GridSizer_GetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36793 | PyObject *resultobj; |
36794 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36795 | int result; | |
36796 | PyObject * obj0 = 0 ; | |
36797 | char *kwnames[] = { | |
36798 | (char *) "self", NULL | |
36799 | }; | |
36800 | ||
36801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
36802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36804 | { | |
36805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36806 | result = (int)(arg1)->GetRows(); | |
36807 | ||
36808 | wxPyEndAllowThreads(__tstate); | |
36809 | if (PyErr_Occurred()) SWIG_fail; | |
36810 | } | |
c370783e | 36811 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
36812 | return resultobj; |
36813 | fail: | |
36814 | return NULL; | |
36815 | } | |
36816 | ||
36817 | ||
c370783e | 36818 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36819 | PyObject *resultobj; |
36820 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36821 | int result; | |
36822 | PyObject * obj0 = 0 ; | |
36823 | char *kwnames[] = { | |
36824 | (char *) "self", NULL | |
36825 | }; | |
36826 | ||
36827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
36828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36830 | { | |
36831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36832 | result = (int)(arg1)->GetVGap(); | |
36833 | ||
36834 | wxPyEndAllowThreads(__tstate); | |
36835 | if (PyErr_Occurred()) SWIG_fail; | |
36836 | } | |
c370783e | 36837 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
36838 | return resultobj; |
36839 | fail: | |
36840 | return NULL; | |
36841 | } | |
36842 | ||
36843 | ||
c370783e | 36844 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36845 | PyObject *resultobj; |
36846 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
36847 | int result; | |
36848 | PyObject * obj0 = 0 ; | |
36849 | char *kwnames[] = { | |
36850 | (char *) "self", NULL | |
36851 | }; | |
36852 | ||
36853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
36854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
36855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36856 | { | |
36857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36858 | result = (int)(arg1)->GetHGap(); | |
36859 | ||
36860 | wxPyEndAllowThreads(__tstate); | |
36861 | if (PyErr_Occurred()) SWIG_fail; | |
36862 | } | |
c370783e | 36863 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
36864 | return resultobj; |
36865 | fail: | |
36866 | return NULL; | |
36867 | } | |
36868 | ||
36869 | ||
c370783e | 36870 | static PyObject * GridSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
36871 | PyObject *obj; |
36872 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36873 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
36874 | Py_INCREF(obj); | |
36875 | return Py_BuildValue((char *)""); | |
36876 | } | |
c370783e | 36877 | static PyObject *_wrap_new_FlexGridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36878 | PyObject *resultobj; |
36879 | int arg1 = (int) 1 ; | |
36880 | int arg2 = (int) 0 ; | |
36881 | int arg3 = (int) 0 ; | |
36882 | int arg4 = (int) 0 ; | |
36883 | wxFlexGridSizer *result; | |
36884 | PyObject * obj0 = 0 ; | |
36885 | PyObject * obj1 = 0 ; | |
36886 | PyObject * obj2 = 0 ; | |
36887 | PyObject * obj3 = 0 ; | |
36888 | char *kwnames[] = { | |
36889 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
36890 | }; | |
36891 | ||
36892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36893 | if (obj0) { | |
c370783e | 36894 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
36895 | if (PyErr_Occurred()) SWIG_fail; |
36896 | } | |
36897 | if (obj1) { | |
c370783e | 36898 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36899 | if (PyErr_Occurred()) SWIG_fail; |
36900 | } | |
36901 | if (obj2) { | |
c370783e | 36902 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
36903 | if (PyErr_Occurred()) SWIG_fail; |
36904 | } | |
36905 | if (obj3) { | |
c370783e | 36906 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
36907 | if (PyErr_Occurred()) SWIG_fail; |
36908 | } | |
36909 | { | |
36910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36911 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
36912 | ||
36913 | wxPyEndAllowThreads(__tstate); | |
36914 | if (PyErr_Occurred()) SWIG_fail; | |
36915 | } | |
36916 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); | |
36917 | return resultobj; | |
36918 | fail: | |
36919 | return NULL; | |
36920 | } | |
36921 | ||
36922 | ||
c370783e | 36923 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36924 | PyObject *resultobj; |
36925 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36926 | size_t arg2 ; | |
36927 | int arg3 = (int) 0 ; | |
36928 | PyObject * obj0 = 0 ; | |
36929 | PyObject * obj1 = 0 ; | |
36930 | PyObject * obj2 = 0 ; | |
36931 | char *kwnames[] = { | |
36932 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
36933 | }; | |
36934 | ||
36935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 36938 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
36939 | if (PyErr_Occurred()) SWIG_fail; |
36940 | if (obj2) { | |
c370783e | 36941 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
36942 | if (PyErr_Occurred()) SWIG_fail; |
36943 | } | |
36944 | { | |
36945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36946 | (arg1)->AddGrowableRow(arg2,arg3); | |
36947 | ||
36948 | wxPyEndAllowThreads(__tstate); | |
36949 | if (PyErr_Occurred()) SWIG_fail; | |
36950 | } | |
36951 | Py_INCREF(Py_None); resultobj = Py_None; | |
36952 | return resultobj; | |
36953 | fail: | |
36954 | return NULL; | |
36955 | } | |
36956 | ||
36957 | ||
c370783e | 36958 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36959 | PyObject *resultobj; |
36960 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36961 | size_t arg2 ; | |
36962 | PyObject * obj0 = 0 ; | |
36963 | PyObject * obj1 = 0 ; | |
36964 | char *kwnames[] = { | |
36965 | (char *) "self",(char *) "idx", NULL | |
36966 | }; | |
36967 | ||
36968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
36969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
36970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 36971 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
36972 | if (PyErr_Occurred()) SWIG_fail; |
36973 | { | |
36974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36975 | (arg1)->RemoveGrowableRow(arg2); | |
36976 | ||
36977 | wxPyEndAllowThreads(__tstate); | |
36978 | if (PyErr_Occurred()) SWIG_fail; | |
36979 | } | |
36980 | Py_INCREF(Py_None); resultobj = Py_None; | |
36981 | return resultobj; | |
36982 | fail: | |
36983 | return NULL; | |
36984 | } | |
36985 | ||
36986 | ||
c370783e | 36987 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36988 | PyObject *resultobj; |
36989 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
36990 | size_t arg2 ; | |
36991 | int arg3 = (int) 0 ; | |
36992 | PyObject * obj0 = 0 ; | |
36993 | PyObject * obj1 = 0 ; | |
36994 | PyObject * obj2 = 0 ; | |
36995 | char *kwnames[] = { | |
36996 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
36997 | }; | |
36998 | ||
36999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37002 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37003 | if (PyErr_Occurred()) SWIG_fail; |
37004 | if (obj2) { | |
c370783e | 37005 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37006 | if (PyErr_Occurred()) SWIG_fail; |
37007 | } | |
37008 | { | |
37009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37010 | (arg1)->AddGrowableCol(arg2,arg3); | |
37011 | ||
37012 | wxPyEndAllowThreads(__tstate); | |
37013 | if (PyErr_Occurred()) SWIG_fail; | |
37014 | } | |
37015 | Py_INCREF(Py_None); resultobj = Py_None; | |
37016 | return resultobj; | |
37017 | fail: | |
37018 | return NULL; | |
37019 | } | |
37020 | ||
37021 | ||
c370783e | 37022 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37023 | PyObject *resultobj; |
37024 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37025 | size_t arg2 ; | |
37026 | PyObject * obj0 = 0 ; | |
37027 | PyObject * obj1 = 0 ; | |
37028 | char *kwnames[] = { | |
37029 | (char *) "self",(char *) "idx", NULL | |
37030 | }; | |
37031 | ||
37032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
37033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37035 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37036 | if (PyErr_Occurred()) SWIG_fail; |
37037 | { | |
37038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37039 | (arg1)->RemoveGrowableCol(arg2); | |
37040 | ||
37041 | wxPyEndAllowThreads(__tstate); | |
37042 | if (PyErr_Occurred()) SWIG_fail; | |
37043 | } | |
37044 | Py_INCREF(Py_None); resultobj = Py_None; | |
37045 | return resultobj; | |
37046 | fail: | |
37047 | return NULL; | |
37048 | } | |
37049 | ||
37050 | ||
c370783e | 37051 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37052 | PyObject *resultobj; |
37053 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37054 | int arg2 ; | |
37055 | PyObject * obj0 = 0 ; | |
37056 | PyObject * obj1 = 0 ; | |
37057 | char *kwnames[] = { | |
37058 | (char *) "self",(char *) "direction", NULL | |
37059 | }; | |
37060 | ||
37061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; | |
37062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37064 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37065 | if (PyErr_Occurred()) SWIG_fail; |
37066 | { | |
37067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37068 | (arg1)->SetFlexibleDirection(arg2); | |
37069 | ||
37070 | wxPyEndAllowThreads(__tstate); | |
37071 | if (PyErr_Occurred()) SWIG_fail; | |
37072 | } | |
37073 | Py_INCREF(Py_None); resultobj = Py_None; | |
37074 | return resultobj; | |
37075 | fail: | |
37076 | return NULL; | |
37077 | } | |
37078 | ||
37079 | ||
c370783e | 37080 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37081 | PyObject *resultobj; |
37082 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37083 | int result; | |
37084 | PyObject * obj0 = 0 ; | |
37085 | char *kwnames[] = { | |
37086 | (char *) "self", NULL | |
37087 | }; | |
37088 | ||
37089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
37090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37092 | { | |
37093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37094 | result = (int)(arg1)->GetFlexibleDirection(); | |
37095 | ||
37096 | wxPyEndAllowThreads(__tstate); | |
37097 | if (PyErr_Occurred()) SWIG_fail; | |
37098 | } | |
c370783e | 37099 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37100 | return resultobj; |
37101 | fail: | |
37102 | return NULL; | |
37103 | } | |
37104 | ||
37105 | ||
c370783e | 37106 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37107 | PyObject *resultobj; |
37108 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37109 | int arg2 ; | |
37110 | PyObject * obj0 = 0 ; | |
37111 | PyObject * obj1 = 0 ; | |
37112 | char *kwnames[] = { | |
37113 | (char *) "self",(char *) "mode", NULL | |
37114 | }; | |
37115 | ||
37116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; | |
37117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37119 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37120 | if (PyErr_Occurred()) SWIG_fail; |
37121 | { | |
37122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37123 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
37124 | ||
37125 | wxPyEndAllowThreads(__tstate); | |
37126 | if (PyErr_Occurred()) SWIG_fail; | |
37127 | } | |
37128 | Py_INCREF(Py_None); resultobj = Py_None; | |
37129 | return resultobj; | |
37130 | fail: | |
37131 | return NULL; | |
37132 | } | |
37133 | ||
37134 | ||
c370783e | 37135 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37136 | PyObject *resultobj; |
37137 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37138 | int result; | |
37139 | PyObject * obj0 = 0 ; | |
37140 | char *kwnames[] = { | |
37141 | (char *) "self", NULL | |
37142 | }; | |
37143 | ||
37144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
37145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37147 | { | |
37148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37149 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
37150 | ||
37151 | wxPyEndAllowThreads(__tstate); | |
37152 | if (PyErr_Occurred()) SWIG_fail; | |
37153 | } | |
c370783e | 37154 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37155 | return resultobj; |
37156 | fail: | |
37157 | return NULL; | |
37158 | } | |
37159 | ||
37160 | ||
c370783e | 37161 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37162 | PyObject *resultobj; |
37163 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37164 | wxArrayInt *result; | |
37165 | PyObject * obj0 = 0 ; | |
37166 | char *kwnames[] = { | |
37167 | (char *) "self", NULL | |
37168 | }; | |
37169 | ||
37170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
37171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37173 | { | |
37174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37175 | { | |
37176 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
37177 | result = (wxArrayInt *) &_result_ref; | |
37178 | } | |
37179 | ||
37180 | wxPyEndAllowThreads(__tstate); | |
37181 | if (PyErr_Occurred()) SWIG_fail; | |
37182 | } | |
37183 | { | |
37184 | resultobj = PyList_New(0); | |
37185 | size_t idx; | |
37186 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
37187 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
37188 | PyList_Append(resultobj, val); | |
37189 | Py_DECREF(val); | |
37190 | } | |
37191 | } | |
37192 | return resultobj; | |
37193 | fail: | |
37194 | return NULL; | |
37195 | } | |
37196 | ||
37197 | ||
c370783e | 37198 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37199 | PyObject *resultobj; |
37200 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37201 | wxArrayInt *result; | |
37202 | PyObject * obj0 = 0 ; | |
37203 | char *kwnames[] = { | |
37204 | (char *) "self", NULL | |
37205 | }; | |
37206 | ||
37207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
37208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37210 | { | |
37211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37212 | { | |
37213 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
37214 | result = (wxArrayInt *) &_result_ref; | |
37215 | } | |
37216 | ||
37217 | wxPyEndAllowThreads(__tstate); | |
37218 | if (PyErr_Occurred()) SWIG_fail; | |
37219 | } | |
37220 | { | |
37221 | resultobj = PyList_New(0); | |
37222 | size_t idx; | |
37223 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
37224 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
37225 | PyList_Append(resultobj, val); | |
37226 | Py_DECREF(val); | |
37227 | } | |
37228 | } | |
37229 | return resultobj; | |
37230 | fail: | |
37231 | return NULL; | |
37232 | } | |
37233 | ||
37234 | ||
c370783e | 37235 | static PyObject * FlexGridSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37236 | PyObject *obj; |
37237 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37238 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
37239 | Py_INCREF(obj); | |
37240 | return Py_BuildValue((char *)""); | |
37241 | } | |
c370783e | 37242 | static PyObject *_wrap_new_GBPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37243 | PyObject *resultobj; |
37244 | int arg1 = (int) 0 ; | |
37245 | int arg2 = (int) 0 ; | |
37246 | wxGBPosition *result; | |
37247 | PyObject * obj0 = 0 ; | |
37248 | PyObject * obj1 = 0 ; | |
37249 | char *kwnames[] = { | |
37250 | (char *) "row",(char *) "col", NULL | |
37251 | }; | |
37252 | ||
37253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; | |
37254 | if (obj0) { | |
c370783e | 37255 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
37256 | if (PyErr_Occurred()) SWIG_fail; |
37257 | } | |
37258 | if (obj1) { | |
c370783e | 37259 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37260 | if (PyErr_Occurred()) SWIG_fail; |
37261 | } | |
37262 | { | |
37263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37264 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
37265 | ||
37266 | wxPyEndAllowThreads(__tstate); | |
37267 | if (PyErr_Occurred()) SWIG_fail; | |
37268 | } | |
37269 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); | |
37270 | return resultobj; | |
37271 | fail: | |
37272 | return NULL; | |
37273 | } | |
37274 | ||
37275 | ||
c370783e | 37276 | static PyObject *_wrap_GBPosition_GetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37277 | PyObject *resultobj; |
37278 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37279 | int result; | |
37280 | PyObject * obj0 = 0 ; | |
37281 | char *kwnames[] = { | |
37282 | (char *) "self", NULL | |
37283 | }; | |
37284 | ||
37285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
37286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37288 | { | |
37289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37290 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
37291 | ||
37292 | wxPyEndAllowThreads(__tstate); | |
37293 | if (PyErr_Occurred()) SWIG_fail; | |
37294 | } | |
c370783e | 37295 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37296 | return resultobj; |
37297 | fail: | |
37298 | return NULL; | |
37299 | } | |
37300 | ||
37301 | ||
c370783e | 37302 | static PyObject *_wrap_GBPosition_GetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37303 | PyObject *resultobj; |
37304 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37305 | int result; | |
37306 | PyObject * obj0 = 0 ; | |
37307 | char *kwnames[] = { | |
37308 | (char *) "self", NULL | |
37309 | }; | |
37310 | ||
37311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
37312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37314 | { | |
37315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37316 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
37317 | ||
37318 | wxPyEndAllowThreads(__tstate); | |
37319 | if (PyErr_Occurred()) SWIG_fail; | |
37320 | } | |
c370783e | 37321 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37322 | return resultobj; |
37323 | fail: | |
37324 | return NULL; | |
37325 | } | |
37326 | ||
37327 | ||
c370783e | 37328 | static PyObject *_wrap_GBPosition_SetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37329 | PyObject *resultobj; |
37330 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37331 | int arg2 ; | |
37332 | PyObject * obj0 = 0 ; | |
37333 | PyObject * obj1 = 0 ; | |
37334 | char *kwnames[] = { | |
37335 | (char *) "self",(char *) "row", NULL | |
37336 | }; | |
37337 | ||
37338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; | |
37339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37341 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37342 | if (PyErr_Occurred()) SWIG_fail; |
37343 | { | |
37344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37345 | (arg1)->SetRow(arg2); | |
37346 | ||
37347 | wxPyEndAllowThreads(__tstate); | |
37348 | if (PyErr_Occurred()) SWIG_fail; | |
37349 | } | |
37350 | Py_INCREF(Py_None); resultobj = Py_None; | |
37351 | return resultobj; | |
37352 | fail: | |
37353 | return NULL; | |
37354 | } | |
37355 | ||
37356 | ||
c370783e | 37357 | static PyObject *_wrap_GBPosition_SetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37358 | PyObject *resultobj; |
37359 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37360 | int arg2 ; | |
37361 | PyObject * obj0 = 0 ; | |
37362 | PyObject * obj1 = 0 ; | |
37363 | char *kwnames[] = { | |
37364 | (char *) "self",(char *) "col", NULL | |
37365 | }; | |
37366 | ||
37367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; | |
37368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37370 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37371 | if (PyErr_Occurred()) SWIG_fail; |
37372 | { | |
37373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37374 | (arg1)->SetCol(arg2); | |
37375 | ||
37376 | wxPyEndAllowThreads(__tstate); | |
37377 | if (PyErr_Occurred()) SWIG_fail; | |
37378 | } | |
37379 | Py_INCREF(Py_None); resultobj = Py_None; | |
37380 | return resultobj; | |
37381 | fail: | |
37382 | return NULL; | |
37383 | } | |
37384 | ||
37385 | ||
c370783e | 37386 | static PyObject *_wrap_GBPosition___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37387 | PyObject *resultobj; |
37388 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37389 | wxGBPosition *arg2 = 0 ; | |
37390 | bool result; | |
37391 | wxGBPosition temp2 ; | |
37392 | PyObject * obj0 = 0 ; | |
37393 | PyObject * obj1 = 0 ; | |
37394 | char *kwnames[] = { | |
37395 | (char *) "self",(char *) "other", NULL | |
37396 | }; | |
37397 | ||
37398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
37399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37401 | { | |
37402 | arg2 = &temp2; | |
37403 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37404 | } | |
37405 | { | |
37406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37407 | result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); | |
37408 | ||
37409 | wxPyEndAllowThreads(__tstate); | |
37410 | if (PyErr_Occurred()) SWIG_fail; | |
37411 | } | |
37412 | { | |
37413 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37414 | } | |
37415 | return resultobj; | |
37416 | fail: | |
37417 | return NULL; | |
37418 | } | |
37419 | ||
37420 | ||
c370783e | 37421 | static PyObject *_wrap_GBPosition___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37422 | PyObject *resultobj; |
37423 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37424 | wxGBPosition *arg2 = 0 ; | |
37425 | bool result; | |
37426 | wxGBPosition temp2 ; | |
37427 | PyObject * obj0 = 0 ; | |
37428 | PyObject * obj1 = 0 ; | |
37429 | char *kwnames[] = { | |
37430 | (char *) "self",(char *) "other", NULL | |
37431 | }; | |
37432 | ||
37433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
37434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37436 | { | |
37437 | arg2 = &temp2; | |
37438 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37439 | } | |
37440 | { | |
37441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37442 | result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); | |
37443 | ||
37444 | wxPyEndAllowThreads(__tstate); | |
37445 | if (PyErr_Occurred()) SWIG_fail; | |
37446 | } | |
37447 | { | |
37448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37449 | } | |
37450 | return resultobj; | |
37451 | fail: | |
37452 | return NULL; | |
37453 | } | |
37454 | ||
37455 | ||
c370783e | 37456 | static PyObject *_wrap_GBPosition_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37457 | PyObject *resultobj; |
37458 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37459 | int arg2 = (int) 0 ; | |
37460 | int arg3 = (int) 0 ; | |
37461 | PyObject * obj0 = 0 ; | |
37462 | PyObject * obj1 = 0 ; | |
37463 | PyObject * obj2 = 0 ; | |
37464 | char *kwnames[] = { | |
37465 | (char *) "self",(char *) "row",(char *) "col", NULL | |
37466 | }; | |
37467 | ||
37468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37471 | if (obj1) { | |
c370783e | 37472 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37473 | if (PyErr_Occurred()) SWIG_fail; |
37474 | } | |
37475 | if (obj2) { | |
c370783e | 37476 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37477 | if (PyErr_Occurred()) SWIG_fail; |
37478 | } | |
37479 | { | |
37480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37481 | wxGBPosition_Set(arg1,arg2,arg3); | |
37482 | ||
37483 | wxPyEndAllowThreads(__tstate); | |
37484 | if (PyErr_Occurred()) SWIG_fail; | |
37485 | } | |
37486 | Py_INCREF(Py_None); resultobj = Py_None; | |
37487 | return resultobj; | |
37488 | fail: | |
37489 | return NULL; | |
37490 | } | |
37491 | ||
37492 | ||
c370783e | 37493 | static PyObject *_wrap_GBPosition_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37494 | PyObject *resultobj; |
37495 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37496 | PyObject *result; | |
37497 | PyObject * obj0 = 0 ; | |
37498 | char *kwnames[] = { | |
37499 | (char *) "self", NULL | |
37500 | }; | |
37501 | ||
37502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; | |
37503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37505 | { | |
37506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37507 | result = (PyObject *)wxGBPosition_Get(arg1); | |
37508 | ||
37509 | wxPyEndAllowThreads(__tstate); | |
37510 | if (PyErr_Occurred()) SWIG_fail; | |
37511 | } | |
37512 | resultobj = result; | |
37513 | return resultobj; | |
37514 | fail: | |
37515 | return NULL; | |
37516 | } | |
37517 | ||
37518 | ||
c370783e | 37519 | static PyObject * GBPosition_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37520 | PyObject *obj; |
37521 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37522 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
37523 | Py_INCREF(obj); | |
37524 | return Py_BuildValue((char *)""); | |
37525 | } | |
c370783e | 37526 | static PyObject *_wrap_new_GBSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37527 | PyObject *resultobj; |
37528 | int arg1 = (int) 1 ; | |
37529 | int arg2 = (int) 1 ; | |
37530 | wxGBSpan *result; | |
37531 | PyObject * obj0 = 0 ; | |
37532 | PyObject * obj1 = 0 ; | |
37533 | char *kwnames[] = { | |
37534 | (char *) "rowspan",(char *) "colspan", NULL | |
37535 | }; | |
37536 | ||
37537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; | |
37538 | if (obj0) { | |
c370783e | 37539 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
37540 | if (PyErr_Occurred()) SWIG_fail; |
37541 | } | |
37542 | if (obj1) { | |
c370783e | 37543 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37544 | if (PyErr_Occurred()) SWIG_fail; |
37545 | } | |
37546 | { | |
37547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37548 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
37549 | ||
37550 | wxPyEndAllowThreads(__tstate); | |
37551 | if (PyErr_Occurred()) SWIG_fail; | |
37552 | } | |
37553 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); | |
37554 | return resultobj; | |
37555 | fail: | |
37556 | return NULL; | |
37557 | } | |
37558 | ||
37559 | ||
c370783e | 37560 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37561 | PyObject *resultobj; |
37562 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37563 | int result; | |
37564 | PyObject * obj0 = 0 ; | |
37565 | char *kwnames[] = { | |
37566 | (char *) "self", NULL | |
37567 | }; | |
37568 | ||
37569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
37570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37572 | { | |
37573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37574 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
37575 | ||
37576 | wxPyEndAllowThreads(__tstate); | |
37577 | if (PyErr_Occurred()) SWIG_fail; | |
37578 | } | |
c370783e | 37579 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37580 | return resultobj; |
37581 | fail: | |
37582 | return NULL; | |
37583 | } | |
37584 | ||
37585 | ||
c370783e | 37586 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37587 | PyObject *resultobj; |
37588 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37589 | int result; | |
37590 | PyObject * obj0 = 0 ; | |
37591 | char *kwnames[] = { | |
37592 | (char *) "self", NULL | |
37593 | }; | |
37594 | ||
37595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
37596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37598 | { | |
37599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37600 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
37601 | ||
37602 | wxPyEndAllowThreads(__tstate); | |
37603 | if (PyErr_Occurred()) SWIG_fail; | |
37604 | } | |
c370783e | 37605 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37606 | return resultobj; |
37607 | fail: | |
37608 | return NULL; | |
37609 | } | |
37610 | ||
37611 | ||
c370783e | 37612 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37613 | PyObject *resultobj; |
37614 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37615 | int arg2 ; | |
37616 | PyObject * obj0 = 0 ; | |
37617 | PyObject * obj1 = 0 ; | |
37618 | char *kwnames[] = { | |
37619 | (char *) "self",(char *) "rowspan", NULL | |
37620 | }; | |
37621 | ||
37622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; | |
37623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37625 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37626 | if (PyErr_Occurred()) SWIG_fail; |
37627 | { | |
37628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37629 | (arg1)->SetRowspan(arg2); | |
37630 | ||
37631 | wxPyEndAllowThreads(__tstate); | |
37632 | if (PyErr_Occurred()) SWIG_fail; | |
37633 | } | |
37634 | Py_INCREF(Py_None); resultobj = Py_None; | |
37635 | return resultobj; | |
37636 | fail: | |
37637 | return NULL; | |
37638 | } | |
37639 | ||
37640 | ||
c370783e | 37641 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37642 | PyObject *resultobj; |
37643 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37644 | int arg2 ; | |
37645 | PyObject * obj0 = 0 ; | |
37646 | PyObject * obj1 = 0 ; | |
37647 | char *kwnames[] = { | |
37648 | (char *) "self",(char *) "colspan", NULL | |
37649 | }; | |
37650 | ||
37651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; | |
37652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37654 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37655 | if (PyErr_Occurred()) SWIG_fail; |
37656 | { | |
37657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37658 | (arg1)->SetColspan(arg2); | |
37659 | ||
37660 | wxPyEndAllowThreads(__tstate); | |
37661 | if (PyErr_Occurred()) SWIG_fail; | |
37662 | } | |
37663 | Py_INCREF(Py_None); resultobj = Py_None; | |
37664 | return resultobj; | |
37665 | fail: | |
37666 | return NULL; | |
37667 | } | |
37668 | ||
37669 | ||
c370783e | 37670 | static PyObject *_wrap_GBSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37671 | PyObject *resultobj; |
37672 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37673 | wxGBSpan *arg2 = 0 ; | |
37674 | bool result; | |
37675 | wxGBSpan temp2 ; | |
37676 | PyObject * obj0 = 0 ; | |
37677 | PyObject * obj1 = 0 ; | |
37678 | char *kwnames[] = { | |
37679 | (char *) "self",(char *) "other", NULL | |
37680 | }; | |
37681 | ||
37682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
37683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37685 | { | |
37686 | arg2 = &temp2; | |
37687 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37688 | } | |
37689 | { | |
37690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37691 | result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); | |
37692 | ||
37693 | wxPyEndAllowThreads(__tstate); | |
37694 | if (PyErr_Occurred()) SWIG_fail; | |
37695 | } | |
37696 | { | |
37697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37698 | } | |
37699 | return resultobj; | |
37700 | fail: | |
37701 | return NULL; | |
37702 | } | |
37703 | ||
37704 | ||
c370783e | 37705 | static PyObject *_wrap_GBSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37706 | PyObject *resultobj; |
37707 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37708 | wxGBSpan *arg2 = 0 ; | |
37709 | bool result; | |
37710 | wxGBSpan temp2 ; | |
37711 | PyObject * obj0 = 0 ; | |
37712 | PyObject * obj1 = 0 ; | |
37713 | char *kwnames[] = { | |
37714 | (char *) "self",(char *) "other", NULL | |
37715 | }; | |
37716 | ||
37717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
37718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37720 | { | |
37721 | arg2 = &temp2; | |
37722 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
37723 | } | |
37724 | { | |
37725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37726 | result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); | |
37727 | ||
37728 | wxPyEndAllowThreads(__tstate); | |
37729 | if (PyErr_Occurred()) SWIG_fail; | |
37730 | } | |
37731 | { | |
37732 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37733 | } | |
37734 | return resultobj; | |
37735 | fail: | |
37736 | return NULL; | |
37737 | } | |
37738 | ||
37739 | ||
c370783e | 37740 | static PyObject *_wrap_GBSpan_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37741 | PyObject *resultobj; |
37742 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37743 | int arg2 = (int) 1 ; | |
37744 | int arg3 = (int) 1 ; | |
37745 | PyObject * obj0 = 0 ; | |
37746 | PyObject * obj1 = 0 ; | |
37747 | PyObject * obj2 = 0 ; | |
37748 | char *kwnames[] = { | |
37749 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
37750 | }; | |
37751 | ||
37752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37755 | if (obj1) { | |
c370783e | 37756 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37757 | if (PyErr_Occurred()) SWIG_fail; |
37758 | } | |
37759 | if (obj2) { | |
c370783e | 37760 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37761 | if (PyErr_Occurred()) SWIG_fail; |
37762 | } | |
37763 | { | |
37764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37765 | wxGBSpan_Set(arg1,arg2,arg3); | |
37766 | ||
37767 | wxPyEndAllowThreads(__tstate); | |
37768 | if (PyErr_Occurred()) SWIG_fail; | |
37769 | } | |
37770 | Py_INCREF(Py_None); resultobj = Py_None; | |
37771 | return resultobj; | |
37772 | fail: | |
37773 | return NULL; | |
37774 | } | |
37775 | ||
37776 | ||
c370783e | 37777 | static PyObject *_wrap_GBSpan_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37778 | PyObject *resultobj; |
37779 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37780 | PyObject *result; | |
37781 | PyObject * obj0 = 0 ; | |
37782 | char *kwnames[] = { | |
37783 | (char *) "self", NULL | |
37784 | }; | |
37785 | ||
37786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; | |
37787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37789 | { | |
37790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37791 | result = (PyObject *)wxGBSpan_Get(arg1); | |
37792 | ||
37793 | wxPyEndAllowThreads(__tstate); | |
37794 | if (PyErr_Occurred()) SWIG_fail; | |
37795 | } | |
37796 | resultobj = result; | |
37797 | return resultobj; | |
37798 | fail: | |
37799 | return NULL; | |
37800 | } | |
37801 | ||
37802 | ||
c370783e | 37803 | static PyObject * GBSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37804 | PyObject *obj; |
37805 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37806 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
37807 | Py_INCREF(obj); | |
37808 | return Py_BuildValue((char *)""); | |
37809 | } | |
c370783e | 37810 | static int _wrap_DefaultSpan_set(PyObject *) { |
d55e5bfc RD |
37811 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); |
37812 | return 1; | |
37813 | } | |
37814 | ||
37815 | ||
37816 | static PyObject *_wrap_DefaultSpan_get() { | |
37817 | PyObject *pyobj; | |
37818 | ||
37819 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); | |
37820 | return pyobj; | |
37821 | } | |
37822 | ||
37823 | ||
c370783e | 37824 | static PyObject *_wrap_new_GBSizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37825 | PyObject *resultobj; |
37826 | wxGBSizerItem *result; | |
37827 | char *kwnames[] = { | |
37828 | NULL | |
37829 | }; | |
37830 | ||
37831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
37832 | { | |
37833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37834 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
37835 | ||
37836 | wxPyEndAllowThreads(__tstate); | |
37837 | if (PyErr_Occurred()) SWIG_fail; | |
37838 | } | |
37839 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37840 | return resultobj; | |
37841 | fail: | |
37842 | return NULL; | |
37843 | } | |
37844 | ||
37845 | ||
c370783e | 37846 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37847 | PyObject *resultobj; |
37848 | wxWindow *arg1 = (wxWindow *) 0 ; | |
37849 | wxGBPosition *arg2 = 0 ; | |
37850 | wxGBSpan *arg3 = 0 ; | |
37851 | int arg4 ; | |
37852 | int arg5 ; | |
bfddbb17 | 37853 | PyObject *arg6 = (PyObject *) NULL ; |
d55e5bfc RD |
37854 | wxGBSizerItem *result; |
37855 | wxGBPosition temp2 ; | |
37856 | wxGBSpan temp3 ; | |
37857 | PyObject * obj0 = 0 ; | |
37858 | PyObject * obj1 = 0 ; | |
37859 | PyObject * obj2 = 0 ; | |
37860 | PyObject * obj3 = 0 ; | |
37861 | PyObject * obj4 = 0 ; | |
37862 | PyObject * obj5 = 0 ; | |
37863 | char *kwnames[] = { | |
37864 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37865 | }; | |
37866 | ||
bfddbb17 | 37867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
37868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
37869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37870 | { | |
37871 | arg2 = &temp2; | |
37872 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37873 | } | |
37874 | { | |
37875 | arg3 = &temp3; | |
37876 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37877 | } | |
c370783e | 37878 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 37879 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 37880 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 37881 | if (PyErr_Occurred()) SWIG_fail; |
bfddbb17 RD |
37882 | if (obj5) { |
37883 | arg6 = obj5; | |
37884 | } | |
d55e5bfc RD |
37885 | { |
37886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bfddbb17 | 37887 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d55e5bfc RD |
37888 | |
37889 | wxPyEndAllowThreads(__tstate); | |
37890 | if (PyErr_Occurred()) SWIG_fail; | |
37891 | } | |
37892 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37893 | return resultobj; | |
37894 | fail: | |
37895 | return NULL; | |
37896 | } | |
37897 | ||
37898 | ||
c370783e | 37899 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37900 | PyObject *resultobj; |
37901 | wxSizer *arg1 = (wxSizer *) 0 ; | |
37902 | wxGBPosition *arg2 = 0 ; | |
37903 | wxGBSpan *arg3 = 0 ; | |
37904 | int arg4 ; | |
37905 | int arg5 ; | |
bfddbb17 | 37906 | PyObject *arg6 = (PyObject *) NULL ; |
d55e5bfc RD |
37907 | wxGBSizerItem *result; |
37908 | wxGBPosition temp2 ; | |
37909 | wxGBSpan temp3 ; | |
37910 | PyObject * obj0 = 0 ; | |
37911 | PyObject * obj1 = 0 ; | |
37912 | PyObject * obj2 = 0 ; | |
37913 | PyObject * obj3 = 0 ; | |
37914 | PyObject * obj4 = 0 ; | |
37915 | PyObject * obj5 = 0 ; | |
37916 | char *kwnames[] = { | |
37917 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37918 | }; | |
37919 | ||
bfddbb17 | 37920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
37921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
37922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37923 | { | |
37924 | arg2 = &temp2; | |
37925 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37926 | } | |
37927 | { | |
37928 | arg3 = &temp3; | |
37929 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
37930 | } | |
c370783e | 37931 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 37932 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 37933 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 37934 | if (PyErr_Occurred()) SWIG_fail; |
bfddbb17 RD |
37935 | if (obj5) { |
37936 | arg6 = obj5; | |
37937 | } | |
d55e5bfc RD |
37938 | { |
37939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bfddbb17 | 37940 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d55e5bfc RD |
37941 | |
37942 | wxPyEndAllowThreads(__tstate); | |
37943 | if (PyErr_Occurred()) SWIG_fail; | |
37944 | } | |
37945 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
37946 | return resultobj; | |
37947 | fail: | |
37948 | return NULL; | |
37949 | } | |
37950 | ||
37951 | ||
c370783e | 37952 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37953 | PyObject *resultobj; |
37954 | int arg1 ; | |
37955 | int arg2 ; | |
37956 | wxGBPosition *arg3 = 0 ; | |
37957 | wxGBSpan *arg4 = 0 ; | |
37958 | int arg5 ; | |
37959 | int arg6 ; | |
bfddbb17 | 37960 | PyObject *arg7 = (PyObject *) NULL ; |
d55e5bfc RD |
37961 | wxGBSizerItem *result; |
37962 | wxGBPosition temp3 ; | |
37963 | wxGBSpan temp4 ; | |
37964 | PyObject * obj0 = 0 ; | |
37965 | PyObject * obj1 = 0 ; | |
37966 | PyObject * obj2 = 0 ; | |
37967 | PyObject * obj3 = 0 ; | |
37968 | PyObject * obj4 = 0 ; | |
37969 | PyObject * obj5 = 0 ; | |
37970 | PyObject * obj6 = 0 ; | |
37971 | char *kwnames[] = { | |
37972 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
37973 | }; | |
37974 | ||
bfddbb17 | 37975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
c370783e | 37976 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 37977 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 37978 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37979 | if (PyErr_Occurred()) SWIG_fail; |
37980 | { | |
37981 | arg3 = &temp3; | |
37982 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
37983 | } | |
37984 | { | |
37985 | arg4 = &temp4; | |
37986 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
37987 | } | |
c370783e | 37988 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 37989 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 37990 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc | 37991 | if (PyErr_Occurred()) SWIG_fail; |
bfddbb17 RD |
37992 | if (obj6) { |
37993 | arg7 = obj6; | |
37994 | } | |
d55e5bfc RD |
37995 | { |
37996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bfddbb17 | 37997 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); |
d55e5bfc RD |
37998 | |
37999 | wxPyEndAllowThreads(__tstate); | |
38000 | if (PyErr_Occurred()) SWIG_fail; | |
38001 | } | |
38002 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
38003 | return resultobj; | |
38004 | fail: | |
38005 | return NULL; | |
38006 | } | |
38007 | ||
38008 | ||
c370783e | 38009 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38010 | PyObject *resultobj; |
38011 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38012 | wxGBPosition result; | |
38013 | PyObject * obj0 = 0 ; | |
38014 | char *kwnames[] = { | |
38015 | (char *) "self", NULL | |
38016 | }; | |
38017 | ||
38018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
38019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38021 | { | |
38022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38023 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
38024 | ||
38025 | wxPyEndAllowThreads(__tstate); | |
38026 | if (PyErr_Occurred()) SWIG_fail; | |
38027 | } | |
38028 | { | |
38029 | wxGBPosition * resultptr; | |
38030 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38031 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38032 | } | |
38033 | return resultobj; | |
38034 | fail: | |
38035 | return NULL; | |
38036 | } | |
38037 | ||
38038 | ||
c370783e | 38039 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38040 | PyObject *resultobj; |
38041 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38042 | wxGBSpan result; | |
38043 | PyObject * obj0 = 0 ; | |
38044 | char *kwnames[] = { | |
38045 | (char *) "self", NULL | |
38046 | }; | |
38047 | ||
38048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
38049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38051 | { | |
38052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38053 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
38054 | ||
38055 | wxPyEndAllowThreads(__tstate); | |
38056 | if (PyErr_Occurred()) SWIG_fail; | |
38057 | } | |
38058 | { | |
38059 | wxGBSpan * resultptr; | |
38060 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38061 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38062 | } | |
38063 | return resultobj; | |
38064 | fail: | |
38065 | return NULL; | |
38066 | } | |
38067 | ||
38068 | ||
c370783e | 38069 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38070 | PyObject *resultobj; |
38071 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38072 | wxGBPosition *arg2 = 0 ; | |
38073 | bool result; | |
38074 | wxGBPosition temp2 ; | |
38075 | PyObject * obj0 = 0 ; | |
38076 | PyObject * obj1 = 0 ; | |
38077 | char *kwnames[] = { | |
38078 | (char *) "self",(char *) "pos", NULL | |
38079 | }; | |
38080 | ||
38081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
38082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38084 | { | |
38085 | arg2 = &temp2; | |
38086 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38087 | } | |
38088 | { | |
38089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38090 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
38091 | ||
38092 | wxPyEndAllowThreads(__tstate); | |
38093 | if (PyErr_Occurred()) SWIG_fail; | |
38094 | } | |
38095 | { | |
38096 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38097 | } | |
38098 | return resultobj; | |
38099 | fail: | |
38100 | return NULL; | |
38101 | } | |
38102 | ||
38103 | ||
c370783e | 38104 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38105 | PyObject *resultobj; |
38106 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38107 | wxGBSpan *arg2 = 0 ; | |
38108 | bool result; | |
38109 | wxGBSpan temp2 ; | |
38110 | PyObject * obj0 = 0 ; | |
38111 | PyObject * obj1 = 0 ; | |
38112 | char *kwnames[] = { | |
38113 | (char *) "self",(char *) "span", NULL | |
38114 | }; | |
38115 | ||
38116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
38117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38119 | { | |
38120 | arg2 = &temp2; | |
38121 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
38122 | } | |
38123 | { | |
38124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38125 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
38126 | ||
38127 | wxPyEndAllowThreads(__tstate); | |
38128 | if (PyErr_Occurred()) SWIG_fail; | |
38129 | } | |
38130 | { | |
38131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38132 | } | |
38133 | return resultobj; | |
38134 | fail: | |
38135 | return NULL; | |
38136 | } | |
38137 | ||
38138 | ||
c370783e | 38139 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38140 | PyObject *resultobj; |
38141 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38142 | wxGBSizerItem *arg2 = 0 ; | |
38143 | bool result; | |
38144 | PyObject * obj0 = 0 ; | |
38145 | PyObject * obj1 = 0 ; | |
bfddbb17 RD |
38146 | char *kwnames[] = { |
38147 | (char *) "self",(char *) "other", NULL | |
38148 | }; | |
d55e5bfc | 38149 | |
bfddbb17 | 38150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
38151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38153 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
38154 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
38155 | SWIG_fail; | |
38156 | if (arg2 == NULL) { | |
38157 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
38158 | SWIG_fail; | |
38159 | } | |
38160 | { | |
38161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38162 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
38163 | ||
38164 | wxPyEndAllowThreads(__tstate); | |
38165 | if (PyErr_Occurred()) SWIG_fail; | |
38166 | } | |
38167 | { | |
38168 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38169 | } | |
38170 | return resultobj; | |
38171 | fail: | |
38172 | return NULL; | |
38173 | } | |
38174 | ||
38175 | ||
c370783e | 38176 | static PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38177 | PyObject *resultobj; |
38178 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38179 | wxGBPosition *arg2 = 0 ; | |
38180 | wxGBSpan *arg3 = 0 ; | |
38181 | bool result; | |
38182 | wxGBPosition temp2 ; | |
38183 | wxGBSpan temp3 ; | |
38184 | PyObject * obj0 = 0 ; | |
38185 | PyObject * obj1 = 0 ; | |
38186 | PyObject * obj2 = 0 ; | |
bfddbb17 RD |
38187 | char *kwnames[] = { |
38188 | (char *) "self",(char *) "pos",(char *) "span", NULL | |
38189 | }; | |
d55e5bfc | 38190 | |
bfddbb17 | 38191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
38192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38194 | { | |
38195 | arg2 = &temp2; | |
38196 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38197 | } | |
38198 | { | |
38199 | arg3 = &temp3; | |
38200 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38201 | } | |
38202 | { | |
38203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38204 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
38205 | ||
38206 | wxPyEndAllowThreads(__tstate); | |
38207 | if (PyErr_Occurred()) SWIG_fail; | |
38208 | } | |
38209 | { | |
38210 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38211 | } | |
38212 | return resultobj; | |
38213 | fail: | |
38214 | return NULL; | |
38215 | } | |
38216 | ||
38217 | ||
c370783e | 38218 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38219 | PyObject *resultobj; |
38220 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
bfddbb17 | 38221 | wxGBPosition result; |
d55e5bfc | 38222 | PyObject * obj0 = 0 ; |
d55e5bfc | 38223 | char *kwnames[] = { |
bfddbb17 | 38224 | (char *) "self", NULL |
d55e5bfc RD |
38225 | }; |
38226 | ||
bfddbb17 | 38227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetEndPos",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
38228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d55e5bfc RD |
38230 | { |
38231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bfddbb17 | 38232 | result = wxGBSizerItem_GetEndPos(arg1); |
d55e5bfc RD |
38233 | |
38234 | wxPyEndAllowThreads(__tstate); | |
38235 | if (PyErr_Occurred()) SWIG_fail; | |
38236 | } | |
bfddbb17 RD |
38237 | { |
38238 | wxGBPosition * resultptr; | |
38239 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38240 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38241 | } | |
d55e5bfc RD |
38242 | return resultobj; |
38243 | fail: | |
38244 | return NULL; | |
38245 | } | |
38246 | ||
38247 | ||
c370783e | 38248 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38249 | PyObject *resultobj; |
38250 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38251 | wxGridBagSizer *result; | |
38252 | PyObject * obj0 = 0 ; | |
38253 | char *kwnames[] = { | |
38254 | (char *) "self", NULL | |
38255 | }; | |
38256 | ||
38257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
38258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38260 | { | |
38261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38262 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
38263 | ||
38264 | wxPyEndAllowThreads(__tstate); | |
38265 | if (PyErr_Occurred()) SWIG_fail; | |
38266 | } | |
38267 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); | |
38268 | return resultobj; | |
38269 | fail: | |
38270 | return NULL; | |
38271 | } | |
38272 | ||
38273 | ||
c370783e | 38274 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38275 | PyObject *resultobj; |
38276 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38277 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
38278 | PyObject * obj0 = 0 ; | |
38279 | PyObject * obj1 = 0 ; | |
38280 | char *kwnames[] = { | |
38281 | (char *) "self",(char *) "sizer", NULL | |
38282 | }; | |
38283 | ||
38284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
38285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38287 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer, | |
38288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38289 | { | |
38290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38291 | (arg1)->SetGBSizer(arg2); | |
38292 | ||
38293 | wxPyEndAllowThreads(__tstate); | |
38294 | if (PyErr_Occurred()) SWIG_fail; | |
38295 | } | |
38296 | Py_INCREF(Py_None); resultobj = Py_None; | |
38297 | return resultobj; | |
38298 | fail: | |
38299 | return NULL; | |
38300 | } | |
38301 | ||
38302 | ||
c370783e | 38303 | static PyObject * GBSizerItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
38304 | PyObject *obj; |
38305 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38306 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
38307 | Py_INCREF(obj); | |
38308 | return Py_BuildValue((char *)""); | |
38309 | } | |
c370783e | 38310 | static PyObject *_wrap_new_GridBagSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38311 | PyObject *resultobj; |
38312 | int arg1 = (int) 0 ; | |
38313 | int arg2 = (int) 0 ; | |
38314 | wxGridBagSizer *result; | |
38315 | PyObject * obj0 = 0 ; | |
38316 | PyObject * obj1 = 0 ; | |
38317 | char *kwnames[] = { | |
38318 | (char *) "vgap",(char *) "hgap", NULL | |
38319 | }; | |
38320 | ||
38321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; | |
38322 | if (obj0) { | |
c370783e | 38323 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
38324 | if (PyErr_Occurred()) SWIG_fail; |
38325 | } | |
38326 | if (obj1) { | |
c370783e | 38327 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38328 | if (PyErr_Occurred()) SWIG_fail; |
38329 | } | |
38330 | { | |
38331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38332 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
38333 | ||
38334 | wxPyEndAllowThreads(__tstate); | |
38335 | if (PyErr_Occurred()) SWIG_fail; | |
38336 | } | |
38337 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); | |
38338 | return resultobj; | |
38339 | fail: | |
38340 | return NULL; | |
38341 | } | |
38342 | ||
38343 | ||
c370783e | 38344 | static PyObject *_wrap_GridBagSizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38345 | PyObject *resultobj; |
38346 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38347 | PyObject *arg2 = (PyObject *) 0 ; | |
38348 | wxGBPosition *arg3 = 0 ; | |
38349 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
38350 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
38351 | int arg5 = (int) 0 ; | |
38352 | int arg6 = (int) 0 ; | |
38353 | PyObject *arg7 = (PyObject *) NULL ; | |
38354 | bool result; | |
38355 | wxGBPosition temp3 ; | |
38356 | wxGBSpan temp4 ; | |
38357 | PyObject * obj0 = 0 ; | |
38358 | PyObject * obj1 = 0 ; | |
38359 | PyObject * obj2 = 0 ; | |
38360 | PyObject * obj3 = 0 ; | |
38361 | PyObject * obj4 = 0 ; | |
38362 | PyObject * obj5 = 0 ; | |
38363 | PyObject * obj6 = 0 ; | |
38364 | char *kwnames[] = { | |
38365 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38366 | }; | |
38367 | ||
38368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
38369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38371 | arg2 = obj1; | |
38372 | { | |
38373 | arg3 = &temp3; | |
38374 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38375 | } | |
38376 | if (obj3) { | |
38377 | { | |
38378 | arg4 = &temp4; | |
38379 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
38380 | } | |
38381 | } | |
38382 | if (obj4) { | |
c370783e | 38383 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
38384 | if (PyErr_Occurred()) SWIG_fail; |
38385 | } | |
38386 | if (obj5) { | |
c370783e | 38387 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
38388 | if (PyErr_Occurred()) SWIG_fail; |
38389 | } | |
38390 | if (obj6) { | |
38391 | arg7 = obj6; | |
38392 | } | |
38393 | { | |
38394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38395 | result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); | |
38396 | ||
38397 | wxPyEndAllowThreads(__tstate); | |
38398 | if (PyErr_Occurred()) SWIG_fail; | |
38399 | } | |
38400 | { | |
38401 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38402 | } | |
38403 | return resultobj; | |
38404 | fail: | |
38405 | return NULL; | |
38406 | } | |
38407 | ||
38408 | ||
c370783e | 38409 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38410 | PyObject *resultobj; |
38411 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38412 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
38413 | bool result; | |
38414 | PyObject * obj0 = 0 ; | |
38415 | PyObject * obj1 = 0 ; | |
38416 | char *kwnames[] = { | |
38417 | (char *) "self",(char *) "item", NULL | |
38418 | }; | |
38419 | ||
38420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
38421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38423 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
38424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38425 | { | |
38426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38427 | result = (bool)(arg1)->Add(arg2); | |
38428 | ||
38429 | wxPyEndAllowThreads(__tstate); | |
38430 | if (PyErr_Occurred()) SWIG_fail; | |
38431 | } | |
38432 | { | |
38433 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38434 | } | |
38435 | return resultobj; | |
38436 | fail: | |
38437 | return NULL; | |
38438 | } | |
38439 | ||
38440 | ||
84f85550 RD |
38441 | static PyObject *_wrap_GridBagSizer_GetCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
38442 | PyObject *resultobj; | |
38443 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38444 | int arg2 ; | |
38445 | int arg3 ; | |
38446 | wxSize result; | |
38447 | PyObject * obj0 = 0 ; | |
38448 | PyObject * obj1 = 0 ; | |
38449 | PyObject * obj2 = 0 ; | |
38450 | char *kwnames[] = { | |
38451 | (char *) "self",(char *) "row",(char *) "col", NULL | |
38452 | }; | |
38453 | ||
38454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridBagSizer_GetCellSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
38455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38457 | arg2 = (int)SWIG_As_int(obj1); | |
38458 | if (PyErr_Occurred()) SWIG_fail; | |
38459 | arg3 = (int)SWIG_As_int(obj2); | |
38460 | if (PyErr_Occurred()) SWIG_fail; | |
38461 | { | |
38462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38463 | result = ((wxGridBagSizer const *)arg1)->GetCellSize(arg2,arg3); | |
38464 | ||
38465 | wxPyEndAllowThreads(__tstate); | |
38466 | if (PyErr_Occurred()) SWIG_fail; | |
38467 | } | |
38468 | { | |
38469 | wxSize * resultptr; | |
38470 | resultptr = new wxSize((wxSize &) result); | |
38471 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
38472 | } | |
38473 | return resultobj; | |
38474 | fail: | |
38475 | return NULL; | |
38476 | } | |
38477 | ||
38478 | ||
c370783e | 38479 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38480 | PyObject *resultobj; |
38481 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38482 | wxSize result; | |
38483 | PyObject * obj0 = 0 ; | |
38484 | char *kwnames[] = { | |
38485 | (char *) "self", NULL | |
38486 | }; | |
38487 | ||
38488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
38489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38491 | { | |
38492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38493 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
38494 | ||
38495 | wxPyEndAllowThreads(__tstate); | |
38496 | if (PyErr_Occurred()) SWIG_fail; | |
38497 | } | |
38498 | { | |
38499 | wxSize * resultptr; | |
38500 | resultptr = new wxSize((wxSize &) result); | |
38501 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
38502 | } | |
38503 | return resultobj; | |
38504 | fail: | |
38505 | return NULL; | |
38506 | } | |
38507 | ||
38508 | ||
c370783e | 38509 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38510 | PyObject *resultobj; |
38511 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38512 | wxSize *arg2 = 0 ; | |
38513 | wxSize temp2 ; | |
38514 | PyObject * obj0 = 0 ; | |
38515 | PyObject * obj1 = 0 ; | |
38516 | char *kwnames[] = { | |
38517 | (char *) "self",(char *) "sz", NULL | |
38518 | }; | |
38519 | ||
38520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
38521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38523 | { | |
38524 | arg2 = &temp2; | |
38525 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
38526 | } | |
38527 | { | |
38528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38529 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
38530 | ||
38531 | wxPyEndAllowThreads(__tstate); | |
38532 | if (PyErr_Occurred()) SWIG_fail; | |
38533 | } | |
38534 | Py_INCREF(Py_None); resultobj = Py_None; | |
38535 | return resultobj; | |
38536 | fail: | |
38537 | return NULL; | |
38538 | } | |
38539 | ||
38540 | ||
c370783e | 38541 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
38542 | PyObject *resultobj; |
38543 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38544 | wxWindow *arg2 = (wxWindow *) 0 ; | |
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; | |
38552 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38553 | SWIG_POINTER_EXCEPTION | 0)) == -1) 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 | ||
c370783e | 38572 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
38573 | PyObject *resultobj; |
38574 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38575 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38576 | wxGBPosition result; | |
38577 | PyObject * obj0 = 0 ; | |
38578 | PyObject * obj1 = 0 ; | |
38579 | ||
38580 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
38581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38583 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38585 | { | |
38586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38587 | result = (arg1)->GetItemPosition(arg2); | |
38588 | ||
38589 | wxPyEndAllowThreads(__tstate); | |
38590 | if (PyErr_Occurred()) SWIG_fail; | |
38591 | } | |
38592 | { | |
38593 | wxGBPosition * resultptr; | |
38594 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38595 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38596 | } | |
38597 | return resultobj; | |
38598 | fail: | |
38599 | return NULL; | |
38600 | } | |
38601 | ||
38602 | ||
c370783e | 38603 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
38604 | PyObject *resultobj; |
38605 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38606 | size_t arg2 ; | |
38607 | wxGBPosition result; | |
38608 | PyObject * obj0 = 0 ; | |
38609 | PyObject * obj1 = 0 ; | |
38610 | ||
38611 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
38612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 38614 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
38615 | if (PyErr_Occurred()) SWIG_fail; |
38616 | { | |
38617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38618 | result = (arg1)->GetItemPosition(arg2); | |
38619 | ||
38620 | wxPyEndAllowThreads(__tstate); | |
38621 | if (PyErr_Occurred()) SWIG_fail; | |
38622 | } | |
38623 | { | |
38624 | wxGBPosition * resultptr; | |
38625 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38626 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38627 | } | |
38628 | return resultobj; | |
38629 | fail: | |
38630 | return NULL; | |
38631 | } | |
38632 | ||
38633 | ||
38634 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
38635 | int argc; | |
38636 | PyObject *argv[3]; | |
38637 | int ii; | |
38638 | ||
38639 | argc = PyObject_Length(args); | |
38640 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38641 | argv[ii] = PyTuple_GetItem(args,ii); | |
38642 | } | |
38643 | if (argc == 2) { | |
38644 | int _v; | |
38645 | { | |
38646 | void *ptr; | |
38647 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38648 | _v = 0; | |
38649 | PyErr_Clear(); | |
38650 | } else { | |
38651 | _v = 1; | |
38652 | } | |
38653 | } | |
38654 | if (_v) { | |
38655 | { | |
38656 | void *ptr; | |
38657 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
38658 | _v = 0; | |
38659 | PyErr_Clear(); | |
38660 | } else { | |
38661 | _v = 1; | |
38662 | } | |
38663 | } | |
38664 | if (_v) { | |
38665 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
38666 | } | |
38667 | } | |
38668 | } | |
38669 | if (argc == 2) { | |
38670 | int _v; | |
38671 | { | |
38672 | void *ptr; | |
38673 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38674 | _v = 0; | |
38675 | PyErr_Clear(); | |
38676 | } else { | |
38677 | _v = 1; | |
38678 | } | |
38679 | } | |
38680 | if (_v) { | |
38681 | { | |
38682 | void *ptr; | |
38683 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
38684 | _v = 0; | |
38685 | PyErr_Clear(); | |
38686 | } else { | |
38687 | _v = 1; | |
38688 | } | |
38689 | } | |
38690 | if (_v) { | |
38691 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
38692 | } | |
38693 | } | |
38694 | } | |
38695 | if (argc == 2) { | |
38696 | int _v; | |
38697 | { | |
38698 | void *ptr; | |
38699 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38700 | _v = 0; | |
38701 | PyErr_Clear(); | |
38702 | } else { | |
38703 | _v = 1; | |
38704 | } | |
38705 | } | |
38706 | if (_v) { | |
c370783e | 38707 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
38708 | if (_v) { |
38709 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
38710 | } | |
38711 | } | |
38712 | } | |
38713 | ||
38714 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
38715 | return NULL; | |
38716 | } | |
38717 | ||
38718 | ||
c370783e | 38719 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
38720 | PyObject *resultobj; |
38721 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38722 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38723 | wxGBPosition *arg3 = 0 ; | |
38724 | bool result; | |
38725 | wxGBPosition temp3 ; | |
38726 | PyObject * obj0 = 0 ; | |
38727 | PyObject * obj1 = 0 ; | |
38728 | PyObject * obj2 = 0 ; | |
38729 | ||
38730 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
38731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38733 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38735 | { | |
38736 | arg3 = &temp3; | |
38737 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38738 | } | |
38739 | { | |
38740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38741 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38742 | ||
38743 | wxPyEndAllowThreads(__tstate); | |
38744 | if (PyErr_Occurred()) SWIG_fail; | |
38745 | } | |
38746 | { | |
38747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38748 | } | |
38749 | return resultobj; | |
38750 | fail: | |
38751 | return NULL; | |
38752 | } | |
38753 | ||
38754 | ||
c370783e | 38755 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
38756 | PyObject *resultobj; |
38757 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38758 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38759 | wxGBPosition *arg3 = 0 ; | |
38760 | bool result; | |
38761 | wxGBPosition temp3 ; | |
38762 | PyObject * obj0 = 0 ; | |
38763 | PyObject * obj1 = 0 ; | |
38764 | PyObject * obj2 = 0 ; | |
38765 | ||
38766 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
38767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38769 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38771 | { | |
38772 | arg3 = &temp3; | |
38773 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38774 | } | |
38775 | { | |
38776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38777 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38778 | ||
38779 | wxPyEndAllowThreads(__tstate); | |
38780 | if (PyErr_Occurred()) SWIG_fail; | |
38781 | } | |
38782 | { | |
38783 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38784 | } | |
38785 | return resultobj; | |
38786 | fail: | |
38787 | return NULL; | |
38788 | } | |
38789 | ||
38790 | ||
c370783e | 38791 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
38792 | PyObject *resultobj; |
38793 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38794 | size_t arg2 ; | |
38795 | wxGBPosition *arg3 = 0 ; | |
38796 | bool result; | |
38797 | wxGBPosition temp3 ; | |
38798 | PyObject * obj0 = 0 ; | |
38799 | PyObject * obj1 = 0 ; | |
38800 | PyObject * obj2 = 0 ; | |
38801 | ||
38802 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
38803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 38805 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
38806 | if (PyErr_Occurred()) SWIG_fail; |
38807 | { | |
38808 | arg3 = &temp3; | |
38809 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38810 | } | |
38811 | { | |
38812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38813 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
38814 | ||
38815 | wxPyEndAllowThreads(__tstate); | |
38816 | if (PyErr_Occurred()) SWIG_fail; | |
38817 | } | |
38818 | { | |
38819 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38820 | } | |
38821 | return resultobj; | |
38822 | fail: | |
38823 | return NULL; | |
38824 | } | |
38825 | ||
38826 | ||
38827 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
38828 | int argc; | |
38829 | PyObject *argv[4]; | |
38830 | int ii; | |
38831 | ||
38832 | argc = PyObject_Length(args); | |
38833 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
38834 | argv[ii] = PyTuple_GetItem(args,ii); | |
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) { | |
38848 | { | |
38849 | void *ptr; | |
38850 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
38851 | _v = 0; | |
38852 | PyErr_Clear(); | |
38853 | } else { | |
38854 | _v = 1; | |
38855 | } | |
38856 | } | |
38857 | if (_v) { | |
38858 | { | |
38859 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38860 | } | |
38861 | if (_v) { | |
38862 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
38863 | } | |
38864 | } | |
38865 | } | |
38866 | } | |
38867 | if (argc == 3) { | |
38868 | int _v; | |
38869 | { | |
38870 | void *ptr; | |
38871 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38872 | _v = 0; | |
38873 | PyErr_Clear(); | |
38874 | } else { | |
38875 | _v = 1; | |
38876 | } | |
38877 | } | |
38878 | if (_v) { | |
38879 | { | |
38880 | void *ptr; | |
38881 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
38882 | _v = 0; | |
38883 | PyErr_Clear(); | |
38884 | } else { | |
38885 | _v = 1; | |
38886 | } | |
38887 | } | |
38888 | if (_v) { | |
38889 | { | |
38890 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38891 | } | |
38892 | if (_v) { | |
38893 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
38894 | } | |
38895 | } | |
38896 | } | |
38897 | } | |
38898 | if (argc == 3) { | |
38899 | int _v; | |
38900 | { | |
38901 | void *ptr; | |
38902 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38903 | _v = 0; | |
38904 | PyErr_Clear(); | |
38905 | } else { | |
38906 | _v = 1; | |
38907 | } | |
38908 | } | |
38909 | if (_v) { | |
c370783e | 38910 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
38911 | if (_v) { |
38912 | { | |
38913 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
38914 | } | |
38915 | if (_v) { | |
38916 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
38917 | } | |
38918 | } | |
38919 | } | |
38920 | } | |
38921 | ||
38922 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
38923 | return NULL; | |
38924 | } | |
38925 | ||
38926 | ||
c370783e | 38927 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
38928 | PyObject *resultobj; |
38929 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38930 | wxWindow *arg2 = (wxWindow *) 0 ; | |
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; | |
38938 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38939 | SWIG_POINTER_EXCEPTION | 0)) == -1) 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 | ||
c370783e | 38958 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
38959 | PyObject *resultobj; |
38960 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38961 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38962 | wxGBSpan result; | |
38963 | PyObject * obj0 = 0 ; | |
38964 | PyObject * obj1 = 0 ; | |
38965 | ||
38966 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
38967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38969 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38971 | { | |
38972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38973 | result = (arg1)->GetItemSpan(arg2); | |
38974 | ||
38975 | wxPyEndAllowThreads(__tstate); | |
38976 | if (PyErr_Occurred()) SWIG_fail; | |
38977 | } | |
38978 | { | |
38979 | wxGBSpan * resultptr; | |
38980 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38981 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38982 | } | |
38983 | return resultobj; | |
38984 | fail: | |
38985 | return NULL; | |
38986 | } | |
38987 | ||
38988 | ||
c370783e | 38989 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
38990 | PyObject *resultobj; |
38991 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38992 | size_t arg2 ; | |
38993 | wxGBSpan result; | |
38994 | PyObject * obj0 = 0 ; | |
38995 | PyObject * obj1 = 0 ; | |
38996 | ||
38997 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
38998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 39000 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
39001 | if (PyErr_Occurred()) SWIG_fail; |
39002 | { | |
39003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39004 | result = (arg1)->GetItemSpan(arg2); | |
39005 | ||
39006 | wxPyEndAllowThreads(__tstate); | |
39007 | if (PyErr_Occurred()) SWIG_fail; | |
39008 | } | |
39009 | { | |
39010 | wxGBSpan * resultptr; | |
39011 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
39012 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
39013 | } | |
39014 | return resultobj; | |
39015 | fail: | |
39016 | return NULL; | |
39017 | } | |
39018 | ||
39019 | ||
39020 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
39021 | int argc; | |
39022 | PyObject *argv[3]; | |
39023 | int ii; | |
39024 | ||
39025 | argc = PyObject_Length(args); | |
39026 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
39027 | argv[ii] = PyTuple_GetItem(args,ii); | |
39028 | } | |
39029 | if (argc == 2) { | |
39030 | int _v; | |
39031 | { | |
39032 | void *ptr; | |
39033 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39034 | _v = 0; | |
39035 | PyErr_Clear(); | |
39036 | } else { | |
39037 | _v = 1; | |
39038 | } | |
39039 | } | |
39040 | if (_v) { | |
39041 | { | |
39042 | void *ptr; | |
39043 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39044 | _v = 0; | |
39045 | PyErr_Clear(); | |
39046 | } else { | |
39047 | _v = 1; | |
39048 | } | |
39049 | } | |
39050 | if (_v) { | |
39051 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
39052 | } | |
39053 | } | |
39054 | } | |
39055 | if (argc == 2) { | |
39056 | int _v; | |
39057 | { | |
39058 | void *ptr; | |
39059 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39060 | _v = 0; | |
39061 | PyErr_Clear(); | |
39062 | } else { | |
39063 | _v = 1; | |
39064 | } | |
39065 | } | |
39066 | if (_v) { | |
39067 | { | |
39068 | void *ptr; | |
39069 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39070 | _v = 0; | |
39071 | PyErr_Clear(); | |
39072 | } else { | |
39073 | _v = 1; | |
39074 | } | |
39075 | } | |
39076 | if (_v) { | |
39077 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
39078 | } | |
39079 | } | |
39080 | } | |
39081 | if (argc == 2) { | |
39082 | int _v; | |
39083 | { | |
39084 | void *ptr; | |
39085 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39086 | _v = 0; | |
39087 | PyErr_Clear(); | |
39088 | } else { | |
39089 | _v = 1; | |
39090 | } | |
39091 | } | |
39092 | if (_v) { | |
c370783e | 39093 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39094 | if (_v) { |
39095 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
39096 | } | |
39097 | } | |
39098 | } | |
39099 | ||
39100 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
39101 | return NULL; | |
39102 | } | |
39103 | ||
39104 | ||
c370783e | 39105 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39106 | PyObject *resultobj; |
39107 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39108 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39109 | wxGBSpan *arg3 = 0 ; | |
39110 | bool result; | |
39111 | wxGBSpan temp3 ; | |
39112 | PyObject * obj0 = 0 ; | |
39113 | PyObject * obj1 = 0 ; | |
39114 | PyObject * obj2 = 0 ; | |
39115 | ||
39116 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
39117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39119 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39121 | { | |
39122 | arg3 = &temp3; | |
39123 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39124 | } | |
39125 | { | |
39126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39127 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39128 | ||
39129 | wxPyEndAllowThreads(__tstate); | |
39130 | if (PyErr_Occurred()) SWIG_fail; | |
39131 | } | |
39132 | { | |
39133 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39134 | } | |
39135 | return resultobj; | |
39136 | fail: | |
39137 | return NULL; | |
39138 | } | |
39139 | ||
39140 | ||
c370783e | 39141 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39142 | PyObject *resultobj; |
39143 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39144 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39145 | wxGBSpan *arg3 = 0 ; | |
39146 | bool result; | |
39147 | wxGBSpan temp3 ; | |
39148 | PyObject * obj0 = 0 ; | |
39149 | PyObject * obj1 = 0 ; | |
39150 | PyObject * obj2 = 0 ; | |
39151 | ||
39152 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
39153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39155 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39157 | { | |
39158 | arg3 = &temp3; | |
39159 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39160 | } | |
39161 | { | |
39162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39163 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39164 | ||
39165 | wxPyEndAllowThreads(__tstate); | |
39166 | if (PyErr_Occurred()) SWIG_fail; | |
39167 | } | |
39168 | { | |
39169 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39170 | } | |
39171 | return resultobj; | |
39172 | fail: | |
39173 | return NULL; | |
39174 | } | |
39175 | ||
39176 | ||
c370783e | 39177 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
39178 | PyObject *resultobj; |
39179 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39180 | size_t arg2 ; | |
39181 | wxGBSpan *arg3 = 0 ; | |
39182 | bool result; | |
39183 | wxGBSpan temp3 ; | |
39184 | PyObject * obj0 = 0 ; | |
39185 | PyObject * obj1 = 0 ; | |
39186 | PyObject * obj2 = 0 ; | |
39187 | ||
39188 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
39189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 39191 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
39192 | if (PyErr_Occurred()) SWIG_fail; |
39193 | { | |
39194 | arg3 = &temp3; | |
39195 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39196 | } | |
39197 | { | |
39198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39199 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39200 | ||
39201 | wxPyEndAllowThreads(__tstate); | |
39202 | if (PyErr_Occurred()) SWIG_fail; | |
39203 | } | |
39204 | { | |
39205 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39206 | } | |
39207 | return resultobj; | |
39208 | fail: | |
39209 | return NULL; | |
39210 | } | |
39211 | ||
39212 | ||
39213 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
39214 | int argc; | |
39215 | PyObject *argv[4]; | |
39216 | int ii; | |
39217 | ||
39218 | argc = PyObject_Length(args); | |
39219 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
39220 | argv[ii] = PyTuple_GetItem(args,ii); | |
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) { | |
39234 | { | |
39235 | void *ptr; | |
39236 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39237 | _v = 0; | |
39238 | PyErr_Clear(); | |
39239 | } else { | |
39240 | _v = 1; | |
39241 | } | |
39242 | } | |
39243 | if (_v) { | |
39244 | { | |
39245 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39246 | } | |
39247 | if (_v) { | |
39248 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
39249 | } | |
39250 | } | |
39251 | } | |
39252 | } | |
39253 | if (argc == 3) { | |
39254 | int _v; | |
39255 | { | |
39256 | void *ptr; | |
39257 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39258 | _v = 0; | |
39259 | PyErr_Clear(); | |
39260 | } else { | |
39261 | _v = 1; | |
39262 | } | |
39263 | } | |
39264 | if (_v) { | |
39265 | { | |
39266 | void *ptr; | |
39267 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39268 | _v = 0; | |
39269 | PyErr_Clear(); | |
39270 | } else { | |
39271 | _v = 1; | |
39272 | } | |
39273 | } | |
39274 | if (_v) { | |
39275 | { | |
39276 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39277 | } | |
39278 | if (_v) { | |
39279 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
39280 | } | |
39281 | } | |
39282 | } | |
39283 | } | |
39284 | if (argc == 3) { | |
39285 | int _v; | |
39286 | { | |
39287 | void *ptr; | |
39288 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39289 | _v = 0; | |
39290 | PyErr_Clear(); | |
39291 | } else { | |
39292 | _v = 1; | |
39293 | } | |
39294 | } | |
39295 | if (_v) { | |
c370783e | 39296 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39297 | if (_v) { |
39298 | { | |
39299 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39300 | } | |
39301 | if (_v) { | |
39302 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
39303 | } | |
39304 | } | |
39305 | } | |
39306 | } | |
39307 | ||
39308 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
39309 | return NULL; | |
39310 | } | |
39311 | ||
39312 | ||
c370783e | 39313 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39314 | PyObject *resultobj; |
39315 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39316 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39317 | wxGBSizerItem *result; | |
39318 | PyObject * obj0 = 0 ; | |
39319 | PyObject * obj1 = 0 ; | |
39320 | ||
39321 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
39322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39324 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39326 | { | |
39327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39328 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
39329 | ||
39330 | wxPyEndAllowThreads(__tstate); | |
39331 | if (PyErr_Occurred()) SWIG_fail; | |
39332 | } | |
39333 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39334 | return resultobj; | |
39335 | fail: | |
39336 | return NULL; | |
39337 | } | |
39338 | ||
39339 | ||
c370783e | 39340 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39341 | PyObject *resultobj; |
39342 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39343 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39344 | wxGBSizerItem *result; | |
39345 | PyObject * obj0 = 0 ; | |
39346 | PyObject * obj1 = 0 ; | |
39347 | ||
39348 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
39349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39351 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39353 | { | |
39354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39355 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
39356 | ||
39357 | wxPyEndAllowThreads(__tstate); | |
39358 | if (PyErr_Occurred()) SWIG_fail; | |
39359 | } | |
39360 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39361 | return resultobj; | |
39362 | fail: | |
39363 | return NULL; | |
39364 | } | |
39365 | ||
39366 | ||
39367 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
39368 | int argc; | |
39369 | PyObject *argv[3]; | |
39370 | int ii; | |
39371 | ||
39372 | argc = PyObject_Length(args); | |
39373 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
39374 | argv[ii] = PyTuple_GetItem(args,ii); | |
39375 | } | |
39376 | if (argc == 2) { | |
39377 | int _v; | |
39378 | { | |
39379 | void *ptr; | |
39380 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39381 | _v = 0; | |
39382 | PyErr_Clear(); | |
39383 | } else { | |
39384 | _v = 1; | |
39385 | } | |
39386 | } | |
39387 | if (_v) { | |
39388 | { | |
39389 | void *ptr; | |
39390 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39391 | _v = 0; | |
39392 | PyErr_Clear(); | |
39393 | } else { | |
39394 | _v = 1; | |
39395 | } | |
39396 | } | |
39397 | if (_v) { | |
39398 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
39399 | } | |
39400 | } | |
39401 | } | |
39402 | if (argc == 2) { | |
39403 | int _v; | |
39404 | { | |
39405 | void *ptr; | |
39406 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39407 | _v = 0; | |
39408 | PyErr_Clear(); | |
39409 | } else { | |
39410 | _v = 1; | |
39411 | } | |
39412 | } | |
39413 | if (_v) { | |
39414 | { | |
39415 | void *ptr; | |
39416 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39417 | _v = 0; | |
39418 | PyErr_Clear(); | |
39419 | } else { | |
39420 | _v = 1; | |
39421 | } | |
39422 | } | |
39423 | if (_v) { | |
39424 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
39425 | } | |
39426 | } | |
39427 | } | |
39428 | ||
39429 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
39430 | return NULL; | |
39431 | } | |
39432 | ||
39433 | ||
c370783e | 39434 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39435 | PyObject *resultobj; |
39436 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39437 | wxGBPosition *arg2 = 0 ; | |
39438 | wxGBSizerItem *result; | |
39439 | wxGBPosition temp2 ; | |
39440 | PyObject * obj0 = 0 ; | |
39441 | PyObject * obj1 = 0 ; | |
39442 | char *kwnames[] = { | |
39443 | (char *) "self",(char *) "pos", NULL | |
39444 | }; | |
39445 | ||
39446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
39447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39449 | { | |
39450 | arg2 = &temp2; | |
39451 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
39452 | } | |
39453 | { | |
39454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39455 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
39456 | ||
39457 | wxPyEndAllowThreads(__tstate); | |
39458 | if (PyErr_Occurred()) SWIG_fail; | |
39459 | } | |
39460 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39461 | return resultobj; | |
39462 | fail: | |
39463 | return NULL; | |
39464 | } | |
39465 | ||
39466 | ||
c370783e | 39467 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39468 | PyObject *resultobj; |
39469 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39470 | wxPoint *arg2 = 0 ; | |
39471 | wxGBSizerItem *result; | |
39472 | wxPoint temp2 ; | |
39473 | PyObject * obj0 = 0 ; | |
39474 | PyObject * obj1 = 0 ; | |
39475 | char *kwnames[] = { | |
39476 | (char *) "self",(char *) "pt", NULL | |
39477 | }; | |
39478 | ||
39479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
39480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39482 | { | |
39483 | arg2 = &temp2; | |
39484 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
39485 | } | |
39486 | { | |
39487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39488 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
39489 | ||
39490 | wxPyEndAllowThreads(__tstate); | |
39491 | if (PyErr_Occurred()) SWIG_fail; | |
39492 | } | |
39493 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39494 | return resultobj; | |
39495 | fail: | |
39496 | return NULL; | |
39497 | } | |
39498 | ||
39499 | ||
c370783e | 39500 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39501 | PyObject *resultobj; |
39502 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39503 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
39504 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
39505 | bool result; | |
39506 | PyObject * obj0 = 0 ; | |
39507 | PyObject * obj1 = 0 ; | |
39508 | PyObject * obj2 = 0 ; | |
bfddbb17 RD |
39509 | char *kwnames[] = { |
39510 | (char *) "self",(char *) "item",(char *) "excludeItem", NULL | |
39511 | }; | |
d55e5bfc | 39512 | |
bfddbb17 | 39513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
39514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39516 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
39517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39518 | if (obj2) { | |
39519 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem, | |
39520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39521 | } | |
39522 | { | |
39523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39524 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
39525 | ||
39526 | wxPyEndAllowThreads(__tstate); | |
39527 | if (PyErr_Occurred()) SWIG_fail; | |
39528 | } | |
39529 | { | |
39530 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39531 | } | |
39532 | return resultobj; | |
39533 | fail: | |
39534 | return NULL; | |
39535 | } | |
39536 | ||
39537 | ||
c370783e | 39538 | static PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39539 | PyObject *resultobj; |
39540 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39541 | wxGBPosition *arg2 = 0 ; | |
39542 | wxGBSpan *arg3 = 0 ; | |
39543 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
39544 | bool result; | |
39545 | wxGBPosition temp2 ; | |
39546 | wxGBSpan temp3 ; | |
39547 | PyObject * obj0 = 0 ; | |
39548 | PyObject * obj1 = 0 ; | |
39549 | PyObject * obj2 = 0 ; | |
39550 | PyObject * obj3 = 0 ; | |
bfddbb17 RD |
39551 | char *kwnames[] = { |
39552 | (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL | |
39553 | }; | |
d55e5bfc | 39554 | |
bfddbb17 | 39555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
39556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39558 | { | |
39559 | arg2 = &temp2; | |
39560 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
39561 | } | |
39562 | { | |
39563 | arg3 = &temp3; | |
39564 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39565 | } | |
39566 | if (obj3) { | |
39567 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem, | |
39568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39569 | } | |
39570 | { | |
39571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39572 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
39573 | ||
39574 | wxPyEndAllowThreads(__tstate); | |
39575 | if (PyErr_Occurred()) SWIG_fail; | |
39576 | } | |
39577 | { | |
39578 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39579 | } | |
39580 | return resultobj; | |
39581 | fail: | |
39582 | return NULL; | |
39583 | } | |
39584 | ||
39585 | ||
c370783e | 39586 | static PyObject * GridBagSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
39587 | PyObject *obj; |
39588 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39589 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
39590 | Py_INCREF(obj); | |
39591 | return Py_BuildValue((char *)""); | |
39592 | } | |
c370783e | 39593 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39594 | PyObject *resultobj; |
39595 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39596 | int arg2 ; | |
39597 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39598 | int arg4 ; | |
39599 | int arg5 = (int) 0 ; | |
39600 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
39601 | PyObject * obj0 = 0 ; | |
39602 | PyObject * obj1 = 0 ; | |
39603 | PyObject * obj2 = 0 ; | |
39604 | PyObject * obj3 = 0 ; | |
39605 | PyObject * obj4 = 0 ; | |
39606 | PyObject * obj5 = 0 ; | |
39607 | char *kwnames[] = { | |
39608 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
39609 | }; | |
39610 | ||
39611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
39612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 39614 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
39615 | if (PyErr_Occurred()) SWIG_fail; |
39616 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 39618 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
39619 | if (PyErr_Occurred()) SWIG_fail; |
39620 | if (obj4) { | |
c370783e | 39621 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
39622 | if (PyErr_Occurred()) SWIG_fail; |
39623 | } | |
39624 | if (obj5) { | |
c370783e | 39625 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
39626 | if (PyErr_Occurred()) SWIG_fail; |
39627 | } | |
39628 | { | |
39629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39630 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
39631 | ||
39632 | wxPyEndAllowThreads(__tstate); | |
39633 | if (PyErr_Occurred()) SWIG_fail; | |
39634 | } | |
39635 | Py_INCREF(Py_None); resultobj = Py_None; | |
39636 | return resultobj; | |
39637 | fail: | |
39638 | return NULL; | |
39639 | } | |
39640 | ||
39641 | ||
c370783e | 39642 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39643 | PyObject *resultobj; |
39644 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39645 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39646 | int arg3 = (int) 0 ; | |
39647 | PyObject * obj0 = 0 ; | |
39648 | PyObject * obj1 = 0 ; | |
39649 | PyObject * obj2 = 0 ; | |
39650 | char *kwnames[] = { | |
39651 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39652 | }; | |
39653 | ||
39654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39657 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39659 | if (obj2) { | |
c370783e | 39660 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
39661 | if (PyErr_Occurred()) SWIG_fail; |
39662 | } | |
39663 | { | |
39664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39665 | (arg1)->LeftOf(arg2,arg3); | |
39666 | ||
39667 | wxPyEndAllowThreads(__tstate); | |
39668 | if (PyErr_Occurred()) SWIG_fail; | |
39669 | } | |
39670 | Py_INCREF(Py_None); resultobj = Py_None; | |
39671 | return resultobj; | |
39672 | fail: | |
39673 | return NULL; | |
39674 | } | |
39675 | ||
39676 | ||
c370783e | 39677 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39678 | PyObject *resultobj; |
39679 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39680 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39681 | int arg3 = (int) 0 ; | |
39682 | PyObject * obj0 = 0 ; | |
39683 | PyObject * obj1 = 0 ; | |
39684 | PyObject * obj2 = 0 ; | |
39685 | char *kwnames[] = { | |
39686 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39687 | }; | |
39688 | ||
39689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39692 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39694 | if (obj2) { | |
c370783e | 39695 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
39696 | if (PyErr_Occurred()) SWIG_fail; |
39697 | } | |
39698 | { | |
39699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39700 | (arg1)->RightOf(arg2,arg3); | |
39701 | ||
39702 | wxPyEndAllowThreads(__tstate); | |
39703 | if (PyErr_Occurred()) SWIG_fail; | |
39704 | } | |
39705 | Py_INCREF(Py_None); resultobj = Py_None; | |
39706 | return resultobj; | |
39707 | fail: | |
39708 | return NULL; | |
39709 | } | |
39710 | ||
39711 | ||
c370783e | 39712 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39713 | PyObject *resultobj; |
39714 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39715 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39716 | int arg3 = (int) 0 ; | |
39717 | PyObject * obj0 = 0 ; | |
39718 | PyObject * obj1 = 0 ; | |
39719 | PyObject * obj2 = 0 ; | |
39720 | char *kwnames[] = { | |
39721 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39722 | }; | |
39723 | ||
39724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39727 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39729 | if (obj2) { | |
c370783e | 39730 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
39731 | if (PyErr_Occurred()) SWIG_fail; |
39732 | } | |
39733 | { | |
39734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39735 | (arg1)->Above(arg2,arg3); | |
39736 | ||
39737 | wxPyEndAllowThreads(__tstate); | |
39738 | if (PyErr_Occurred()) SWIG_fail; | |
39739 | } | |
39740 | Py_INCREF(Py_None); resultobj = Py_None; | |
39741 | return resultobj; | |
39742 | fail: | |
39743 | return NULL; | |
39744 | } | |
39745 | ||
39746 | ||
c370783e | 39747 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39748 | PyObject *resultobj; |
39749 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39750 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39751 | int arg3 = (int) 0 ; | |
39752 | PyObject * obj0 = 0 ; | |
39753 | PyObject * obj1 = 0 ; | |
39754 | PyObject * obj2 = 0 ; | |
39755 | char *kwnames[] = { | |
39756 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
39757 | }; | |
39758 | ||
39759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
39760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39762 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39764 | if (obj2) { | |
c370783e | 39765 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
39766 | if (PyErr_Occurred()) SWIG_fail; |
39767 | } | |
39768 | { | |
39769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39770 | (arg1)->Below(arg2,arg3); | |
39771 | ||
39772 | wxPyEndAllowThreads(__tstate); | |
39773 | if (PyErr_Occurred()) SWIG_fail; | |
39774 | } | |
39775 | Py_INCREF(Py_None); resultobj = Py_None; | |
39776 | return resultobj; | |
39777 | fail: | |
39778 | return NULL; | |
39779 | } | |
39780 | ||
39781 | ||
c370783e | 39782 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39783 | PyObject *resultobj; |
39784 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39785 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39786 | int arg3 ; | |
39787 | int arg4 = (int) 0 ; | |
39788 | PyObject * obj0 = 0 ; | |
39789 | PyObject * obj1 = 0 ; | |
39790 | PyObject * obj2 = 0 ; | |
39791 | PyObject * obj3 = 0 ; | |
39792 | char *kwnames[] = { | |
39793 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
39794 | }; | |
39795 | ||
39796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
39797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39799 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 39801 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
39802 | if (PyErr_Occurred()) SWIG_fail; |
39803 | if (obj3) { | |
c370783e | 39804 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
39805 | if (PyErr_Occurred()) SWIG_fail; |
39806 | } | |
39807 | { | |
39808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39809 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
39810 | ||
39811 | wxPyEndAllowThreads(__tstate); | |
39812 | if (PyErr_Occurred()) SWIG_fail; | |
39813 | } | |
39814 | Py_INCREF(Py_None); resultobj = Py_None; | |
39815 | return resultobj; | |
39816 | fail: | |
39817 | return NULL; | |
39818 | } | |
39819 | ||
39820 | ||
c370783e | 39821 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39822 | PyObject *resultobj; |
39823 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39824 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39825 | int arg3 ; | |
39826 | int arg4 ; | |
39827 | PyObject * obj0 = 0 ; | |
39828 | PyObject * obj1 = 0 ; | |
39829 | PyObject * obj2 = 0 ; | |
39830 | PyObject * obj3 = 0 ; | |
39831 | char *kwnames[] = { | |
39832 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
39833 | }; | |
39834 | ||
39835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
39836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39838 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 39840 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 39841 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 39842 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
39843 | if (PyErr_Occurred()) SWIG_fail; |
39844 | { | |
39845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39846 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
39847 | ||
39848 | wxPyEndAllowThreads(__tstate); | |
39849 | if (PyErr_Occurred()) SWIG_fail; | |
39850 | } | |
39851 | Py_INCREF(Py_None); resultobj = Py_None; | |
39852 | return resultobj; | |
39853 | fail: | |
39854 | return NULL; | |
39855 | } | |
39856 | ||
39857 | ||
c370783e | 39858 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39859 | PyObject *resultobj; |
39860 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39861 | int arg2 ; | |
39862 | PyObject * obj0 = 0 ; | |
39863 | PyObject * obj1 = 0 ; | |
39864 | char *kwnames[] = { | |
39865 | (char *) "self",(char *) "val", NULL | |
39866 | }; | |
39867 | ||
39868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; | |
39869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 39871 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
39872 | if (PyErr_Occurred()) SWIG_fail; |
39873 | { | |
39874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39875 | (arg1)->Absolute(arg2); | |
39876 | ||
39877 | wxPyEndAllowThreads(__tstate); | |
39878 | if (PyErr_Occurred()) SWIG_fail; | |
39879 | } | |
39880 | Py_INCREF(Py_None); resultobj = Py_None; | |
39881 | return resultobj; | |
39882 | fail: | |
39883 | return NULL; | |
39884 | } | |
39885 | ||
39886 | ||
c370783e | 39887 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39888 | PyObject *resultobj; |
39889 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39890 | PyObject * obj0 = 0 ; | |
39891 | char *kwnames[] = { | |
39892 | (char *) "self", NULL | |
39893 | }; | |
39894 | ||
39895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
39896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39898 | { | |
39899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39900 | (arg1)->Unconstrained(); | |
39901 | ||
39902 | wxPyEndAllowThreads(__tstate); | |
39903 | if (PyErr_Occurred()) SWIG_fail; | |
39904 | } | |
39905 | Py_INCREF(Py_None); resultobj = Py_None; | |
39906 | return resultobj; | |
39907 | fail: | |
39908 | return NULL; | |
39909 | } | |
39910 | ||
39911 | ||
c370783e | 39912 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39913 | PyObject *resultobj; |
39914 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39915 | PyObject * obj0 = 0 ; | |
39916 | char *kwnames[] = { | |
39917 | (char *) "self", NULL | |
39918 | }; | |
39919 | ||
39920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
39921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39923 | { | |
39924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39925 | (arg1)->AsIs(); | |
39926 | ||
39927 | wxPyEndAllowThreads(__tstate); | |
39928 | if (PyErr_Occurred()) SWIG_fail; | |
39929 | } | |
39930 | Py_INCREF(Py_None); resultobj = Py_None; | |
39931 | return resultobj; | |
39932 | fail: | |
39933 | return NULL; | |
39934 | } | |
39935 | ||
39936 | ||
c370783e | 39937 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39938 | PyObject *resultobj; |
39939 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39940 | wxWindow *result; | |
39941 | PyObject * obj0 = 0 ; | |
39942 | char *kwnames[] = { | |
39943 | (char *) "self", NULL | |
39944 | }; | |
39945 | ||
39946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
39947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39949 | { | |
39950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39951 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
39952 | ||
39953 | wxPyEndAllowThreads(__tstate); | |
39954 | if (PyErr_Occurred()) SWIG_fail; | |
39955 | } | |
39956 | { | |
412d302d | 39957 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
39958 | } |
39959 | return resultobj; | |
39960 | fail: | |
39961 | return NULL; | |
39962 | } | |
39963 | ||
39964 | ||
c370783e | 39965 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39966 | PyObject *resultobj; |
39967 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39968 | int result; | |
39969 | PyObject * obj0 = 0 ; | |
39970 | char *kwnames[] = { | |
39971 | (char *) "self", NULL | |
39972 | }; | |
39973 | ||
39974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
39975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39977 | { | |
39978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39979 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
39980 | ||
39981 | wxPyEndAllowThreads(__tstate); | |
39982 | if (PyErr_Occurred()) SWIG_fail; | |
39983 | } | |
c370783e | 39984 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
39985 | return resultobj; |
39986 | fail: | |
39987 | return NULL; | |
39988 | } | |
39989 | ||
39990 | ||
c370783e | 39991 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39992 | PyObject *resultobj; |
39993 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39994 | int arg2 ; | |
39995 | PyObject * obj0 = 0 ; | |
39996 | PyObject * obj1 = 0 ; | |
39997 | char *kwnames[] = { | |
39998 | (char *) "self",(char *) "which", NULL | |
39999 | }; | |
40000 | ||
40001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; | |
40002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 40004 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40005 | if (PyErr_Occurred()) SWIG_fail; |
40006 | { | |
40007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40008 | (arg1)->SetEdge((wxEdge )arg2); | |
40009 | ||
40010 | wxPyEndAllowThreads(__tstate); | |
40011 | if (PyErr_Occurred()) SWIG_fail; | |
40012 | } | |
40013 | Py_INCREF(Py_None); resultobj = Py_None; | |
40014 | return resultobj; | |
40015 | fail: | |
40016 | return NULL; | |
40017 | } | |
40018 | ||
40019 | ||
c370783e | 40020 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40021 | PyObject *resultobj; |
40022 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40023 | int arg2 ; | |
40024 | PyObject * obj0 = 0 ; | |
40025 | PyObject * obj1 = 0 ; | |
40026 | char *kwnames[] = { | |
40027 | (char *) "self",(char *) "v", NULL | |
40028 | }; | |
40029 | ||
40030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
40031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 40033 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40034 | if (PyErr_Occurred()) SWIG_fail; |
40035 | { | |
40036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40037 | (arg1)->SetValue(arg2); | |
40038 | ||
40039 | wxPyEndAllowThreads(__tstate); | |
40040 | if (PyErr_Occurred()) SWIG_fail; | |
40041 | } | |
40042 | Py_INCREF(Py_None); resultobj = Py_None; | |
40043 | return resultobj; | |
40044 | fail: | |
40045 | return NULL; | |
40046 | } | |
40047 | ||
40048 | ||
c370783e | 40049 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40050 | PyObject *resultobj; |
40051 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40052 | int result; | |
40053 | PyObject * obj0 = 0 ; | |
40054 | char *kwnames[] = { | |
40055 | (char *) "self", NULL | |
40056 | }; | |
40057 | ||
40058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
40059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40061 | { | |
40062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40063 | result = (int)(arg1)->GetMargin(); | |
40064 | ||
40065 | wxPyEndAllowThreads(__tstate); | |
40066 | if (PyErr_Occurred()) SWIG_fail; | |
40067 | } | |
c370783e | 40068 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40069 | return resultobj; |
40070 | fail: | |
40071 | return NULL; | |
40072 | } | |
40073 | ||
40074 | ||
c370783e | 40075 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40076 | PyObject *resultobj; |
40077 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40078 | int arg2 ; | |
40079 | PyObject * obj0 = 0 ; | |
40080 | PyObject * obj1 = 0 ; | |
40081 | char *kwnames[] = { | |
40082 | (char *) "self",(char *) "m", NULL | |
40083 | }; | |
40084 | ||
40085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; | |
40086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 40088 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40089 | if (PyErr_Occurred()) SWIG_fail; |
40090 | { | |
40091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40092 | (arg1)->SetMargin(arg2); | |
40093 | ||
40094 | wxPyEndAllowThreads(__tstate); | |
40095 | if (PyErr_Occurred()) SWIG_fail; | |
40096 | } | |
40097 | Py_INCREF(Py_None); resultobj = Py_None; | |
40098 | return resultobj; | |
40099 | fail: | |
40100 | return NULL; | |
40101 | } | |
40102 | ||
40103 | ||
c370783e | 40104 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40105 | PyObject *resultobj; |
40106 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40107 | int result; | |
40108 | PyObject * obj0 = 0 ; | |
40109 | char *kwnames[] = { | |
40110 | (char *) "self", NULL | |
40111 | }; | |
40112 | ||
40113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
40114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40116 | { | |
40117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40118 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
40119 | ||
40120 | wxPyEndAllowThreads(__tstate); | |
40121 | if (PyErr_Occurred()) SWIG_fail; | |
40122 | } | |
c370783e | 40123 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40124 | return resultobj; |
40125 | fail: | |
40126 | return NULL; | |
40127 | } | |
40128 | ||
40129 | ||
c370783e | 40130 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40131 | PyObject *resultobj; |
40132 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40133 | int result; | |
40134 | PyObject * obj0 = 0 ; | |
40135 | char *kwnames[] = { | |
40136 | (char *) "self", NULL | |
40137 | }; | |
40138 | ||
40139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
40140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40142 | { | |
40143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40144 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
40145 | ||
40146 | wxPyEndAllowThreads(__tstate); | |
40147 | if (PyErr_Occurred()) SWIG_fail; | |
40148 | } | |
c370783e | 40149 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40150 | return resultobj; |
40151 | fail: | |
40152 | return NULL; | |
40153 | } | |
40154 | ||
40155 | ||
c370783e | 40156 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40157 | PyObject *resultobj; |
40158 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40159 | int result; | |
40160 | PyObject * obj0 = 0 ; | |
40161 | char *kwnames[] = { | |
40162 | (char *) "self", NULL | |
40163 | }; | |
40164 | ||
40165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
40166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40168 | { | |
40169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40170 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
40171 | ||
40172 | wxPyEndAllowThreads(__tstate); | |
40173 | if (PyErr_Occurred()) SWIG_fail; | |
40174 | } | |
c370783e | 40175 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40176 | return resultobj; |
40177 | fail: | |
40178 | return NULL; | |
40179 | } | |
40180 | ||
40181 | ||
c370783e | 40182 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40183 | PyObject *resultobj; |
40184 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40185 | bool result; | |
40186 | PyObject * obj0 = 0 ; | |
40187 | char *kwnames[] = { | |
40188 | (char *) "self", NULL | |
40189 | }; | |
40190 | ||
40191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
40192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40194 | { | |
40195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40196 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
40197 | ||
40198 | wxPyEndAllowThreads(__tstate); | |
40199 | if (PyErr_Occurred()) SWIG_fail; | |
40200 | } | |
40201 | { | |
40202 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40203 | } | |
40204 | return resultobj; | |
40205 | fail: | |
40206 | return NULL; | |
40207 | } | |
40208 | ||
40209 | ||
c370783e | 40210 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40211 | PyObject *resultobj; |
40212 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40213 | bool arg2 ; | |
40214 | PyObject * obj0 = 0 ; | |
40215 | PyObject * obj1 = 0 ; | |
40216 | char *kwnames[] = { | |
40217 | (char *) "self",(char *) "d", NULL | |
40218 | }; | |
40219 | ||
40220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
40221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 40223 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
40224 | if (PyErr_Occurred()) SWIG_fail; |
40225 | { | |
40226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40227 | (arg1)->SetDone(arg2); | |
40228 | ||
40229 | wxPyEndAllowThreads(__tstate); | |
40230 | if (PyErr_Occurred()) SWIG_fail; | |
40231 | } | |
40232 | Py_INCREF(Py_None); resultobj = Py_None; | |
40233 | return resultobj; | |
40234 | fail: | |
40235 | return NULL; | |
40236 | } | |
40237 | ||
40238 | ||
c370783e | 40239 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40240 | PyObject *resultobj; |
40241 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40242 | int result; | |
40243 | PyObject * obj0 = 0 ; | |
40244 | char *kwnames[] = { | |
40245 | (char *) "self", NULL | |
40246 | }; | |
40247 | ||
40248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
40249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40251 | { | |
40252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40253 | result = (int)(arg1)->GetRelationship(); | |
40254 | ||
40255 | wxPyEndAllowThreads(__tstate); | |
40256 | if (PyErr_Occurred()) SWIG_fail; | |
40257 | } | |
c370783e | 40258 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40259 | return resultobj; |
40260 | fail: | |
40261 | return NULL; | |
40262 | } | |
40263 | ||
40264 | ||
c370783e | 40265 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40266 | PyObject *resultobj; |
40267 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40268 | int arg2 ; | |
40269 | PyObject * obj0 = 0 ; | |
40270 | PyObject * obj1 = 0 ; | |
40271 | char *kwnames[] = { | |
40272 | (char *) "self",(char *) "r", NULL | |
40273 | }; | |
40274 | ||
40275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; | |
40276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 40278 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40279 | if (PyErr_Occurred()) SWIG_fail; |
40280 | { | |
40281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40282 | (arg1)->SetRelationship((wxRelationship )arg2); | |
40283 | ||
40284 | wxPyEndAllowThreads(__tstate); | |
40285 | if (PyErr_Occurred()) SWIG_fail; | |
40286 | } | |
40287 | Py_INCREF(Py_None); resultobj = Py_None; | |
40288 | return resultobj; | |
40289 | fail: | |
40290 | return NULL; | |
40291 | } | |
40292 | ||
40293 | ||
c370783e | 40294 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40295 | PyObject *resultobj; |
40296 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40297 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40298 | bool result; | |
40299 | PyObject * obj0 = 0 ; | |
40300 | PyObject * obj1 = 0 ; | |
40301 | char *kwnames[] = { | |
40302 | (char *) "self",(char *) "otherW", NULL | |
40303 | }; | |
40304 | ||
40305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
40306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40308 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40310 | { | |
40311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40312 | result = (bool)(arg1)->ResetIfWin(arg2); | |
40313 | ||
40314 | wxPyEndAllowThreads(__tstate); | |
40315 | if (PyErr_Occurred()) SWIG_fail; | |
40316 | } | |
40317 | { | |
40318 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40319 | } | |
40320 | return resultobj; | |
40321 | fail: | |
40322 | return NULL; | |
40323 | } | |
40324 | ||
40325 | ||
c370783e | 40326 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40327 | PyObject *resultobj; |
40328 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40329 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
40330 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40331 | bool result; | |
40332 | PyObject * obj0 = 0 ; | |
40333 | PyObject * obj1 = 0 ; | |
40334 | PyObject * obj2 = 0 ; | |
40335 | char *kwnames[] = { | |
40336 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
40337 | }; | |
40338 | ||
40339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40342 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
40343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40344 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
40345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40346 | { | |
40347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40348 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
40349 | ||
40350 | wxPyEndAllowThreads(__tstate); | |
40351 | if (PyErr_Occurred()) SWIG_fail; | |
40352 | } | |
40353 | { | |
40354 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40355 | } | |
40356 | return resultobj; | |
40357 | fail: | |
40358 | return NULL; | |
40359 | } | |
40360 | ||
40361 | ||
c370783e | 40362 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40363 | PyObject *resultobj; |
40364 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40365 | int arg2 ; | |
40366 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40367 | wxWindow *arg4 = (wxWindow *) 0 ; | |
40368 | int result; | |
40369 | PyObject * obj0 = 0 ; | |
40370 | PyObject * obj1 = 0 ; | |
40371 | PyObject * obj2 = 0 ; | |
40372 | PyObject * obj3 = 0 ; | |
40373 | char *kwnames[] = { | |
40374 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
40375 | }; | |
40376 | ||
40377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
40378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 40380 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40381 | if (PyErr_Occurred()) SWIG_fail; |
40382 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
40383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40384 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
40385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40386 | { | |
40387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40388 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
40389 | ||
40390 | wxPyEndAllowThreads(__tstate); | |
40391 | if (PyErr_Occurred()) SWIG_fail; | |
40392 | } | |
c370783e | 40393 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40394 | return resultobj; |
40395 | fail: | |
40396 | return NULL; | |
40397 | } | |
40398 | ||
40399 | ||
c370783e | 40400 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
40401 | PyObject *obj; |
40402 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40403 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
40404 | Py_INCREF(obj); | |
40405 | return Py_BuildValue((char *)""); | |
40406 | } | |
c370783e | 40407 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40408 | PyObject *resultobj; |
40409 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40410 | wxIndividualLayoutConstraint *result; | |
40411 | PyObject * obj0 = 0 ; | |
40412 | char *kwnames[] = { | |
40413 | (char *) "self", NULL | |
40414 | }; | |
40415 | ||
40416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
40417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40419 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); | |
40420 | ||
40421 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40422 | return resultobj; | |
40423 | fail: | |
40424 | return NULL; | |
40425 | } | |
40426 | ||
40427 | ||
c370783e | 40428 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40429 | PyObject *resultobj; |
40430 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40431 | wxIndividualLayoutConstraint *result; | |
40432 | PyObject * obj0 = 0 ; | |
40433 | char *kwnames[] = { | |
40434 | (char *) "self", NULL | |
40435 | }; | |
40436 | ||
40437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
40438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40440 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); | |
40441 | ||
40442 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40443 | return resultobj; | |
40444 | fail: | |
40445 | return NULL; | |
40446 | } | |
40447 | ||
40448 | ||
c370783e | 40449 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40450 | PyObject *resultobj; |
40451 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40452 | wxIndividualLayoutConstraint *result; | |
40453 | PyObject * obj0 = 0 ; | |
40454 | char *kwnames[] = { | |
40455 | (char *) "self", NULL | |
40456 | }; | |
40457 | ||
40458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
40459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40461 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); | |
40462 | ||
40463 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40464 | return resultobj; | |
40465 | fail: | |
40466 | return NULL; | |
40467 | } | |
40468 | ||
40469 | ||
c370783e | 40470 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40471 | PyObject *resultobj; |
40472 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40473 | wxIndividualLayoutConstraint *result; | |
40474 | PyObject * obj0 = 0 ; | |
40475 | char *kwnames[] = { | |
40476 | (char *) "self", NULL | |
40477 | }; | |
40478 | ||
40479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
40480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40482 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); | |
40483 | ||
40484 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40485 | return resultobj; | |
40486 | fail: | |
40487 | return NULL; | |
40488 | } | |
40489 | ||
40490 | ||
c370783e | 40491 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40492 | PyObject *resultobj; |
40493 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40494 | wxIndividualLayoutConstraint *result; | |
40495 | PyObject * obj0 = 0 ; | |
40496 | char *kwnames[] = { | |
40497 | (char *) "self", NULL | |
40498 | }; | |
40499 | ||
40500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
40501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40503 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); | |
40504 | ||
40505 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40506 | return resultobj; | |
40507 | fail: | |
40508 | return NULL; | |
40509 | } | |
40510 | ||
40511 | ||
c370783e | 40512 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40513 | PyObject *resultobj; |
40514 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40515 | wxIndividualLayoutConstraint *result; | |
40516 | PyObject * obj0 = 0 ; | |
40517 | char *kwnames[] = { | |
40518 | (char *) "self", NULL | |
40519 | }; | |
40520 | ||
40521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
40522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40524 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); | |
40525 | ||
40526 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40527 | return resultobj; | |
40528 | fail: | |
40529 | return NULL; | |
40530 | } | |
40531 | ||
40532 | ||
c370783e | 40533 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40534 | PyObject *resultobj; |
40535 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40536 | wxIndividualLayoutConstraint *result; | |
40537 | PyObject * obj0 = 0 ; | |
40538 | char *kwnames[] = { | |
40539 | (char *) "self", NULL | |
40540 | }; | |
40541 | ||
40542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
40543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40545 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); | |
40546 | ||
40547 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40548 | return resultobj; | |
40549 | fail: | |
40550 | return NULL; | |
40551 | } | |
40552 | ||
40553 | ||
c370783e | 40554 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40555 | PyObject *resultobj; |
40556 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40557 | wxIndividualLayoutConstraint *result; | |
40558 | PyObject * obj0 = 0 ; | |
40559 | char *kwnames[] = { | |
40560 | (char *) "self", NULL | |
40561 | }; | |
40562 | ||
40563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
40564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40566 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); | |
40567 | ||
40568 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40569 | return resultobj; | |
40570 | fail: | |
40571 | return NULL; | |
40572 | } | |
40573 | ||
40574 | ||
c370783e | 40575 | static PyObject *_wrap_new_LayoutConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40576 | PyObject *resultobj; |
40577 | wxLayoutConstraints *result; | |
40578 | char *kwnames[] = { | |
40579 | NULL | |
40580 | }; | |
40581 | ||
40582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
40583 | { | |
40584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40585 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
40586 | ||
40587 | wxPyEndAllowThreads(__tstate); | |
40588 | if (PyErr_Occurred()) SWIG_fail; | |
40589 | } | |
40590 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); | |
40591 | return resultobj; | |
40592 | fail: | |
40593 | return NULL; | |
40594 | } | |
40595 | ||
40596 | ||
c370783e | 40597 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40598 | PyObject *resultobj; |
40599 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40600 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40601 | int *arg3 = (int *) 0 ; | |
40602 | bool result; | |
40603 | int temp3 ; | |
c370783e | 40604 | int res3 = 0 ; |
d55e5bfc RD |
40605 | PyObject * obj0 = 0 ; |
40606 | PyObject * obj1 = 0 ; | |
40607 | char *kwnames[] = { | |
40608 | (char *) "self",(char *) "win", NULL | |
40609 | }; | |
40610 | ||
c370783e | 40611 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d55e5bfc RD |
40612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; |
40613 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40615 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40617 | { | |
40618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40619 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
40620 | ||
40621 | wxPyEndAllowThreads(__tstate); | |
40622 | if (PyErr_Occurred()) SWIG_fail; | |
40623 | } | |
40624 | { | |
40625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40626 | } | |
c370783e RD |
40627 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
40628 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
40629 | return resultobj; |
40630 | fail: | |
40631 | return NULL; | |
40632 | } | |
40633 | ||
40634 | ||
c370783e | 40635 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40636 | PyObject *resultobj; |
40637 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40638 | bool result; | |
40639 | PyObject * obj0 = 0 ; | |
40640 | char *kwnames[] = { | |
40641 | (char *) "self", NULL | |
40642 | }; | |
40643 | ||
40644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
40645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40647 | { | |
40648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40649 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
40650 | ||
40651 | wxPyEndAllowThreads(__tstate); | |
40652 | if (PyErr_Occurred()) SWIG_fail; | |
40653 | } | |
40654 | { | |
40655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40656 | } | |
40657 | return resultobj; | |
40658 | fail: | |
40659 | return NULL; | |
40660 | } | |
40661 | ||
40662 | ||
c370783e | 40663 | static PyObject * LayoutConstraints_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
40664 | PyObject *obj; |
40665 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40666 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
40667 | Py_INCREF(obj); | |
40668 | return Py_BuildValue((char *)""); | |
40669 | } | |
40670 | static PyMethodDef SwigMethods[] = { | |
c370783e RD |
40671 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS, NULL }, |
40672 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS, NULL }, | |
40673 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40674 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40675 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS, NULL }, | |
40676 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40677 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40678 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40679 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40680 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40681 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40682 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40683 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40684 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40685 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40686 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40687 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40688 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40689 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40690 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40691 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40692 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40693 | { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40694 | { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40695 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40696 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS, NULL }, | |
40697 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40698 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40699 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40700 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40701 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40702 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40703 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40704 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40705 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40706 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40707 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40708 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40709 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS, NULL }, | |
40710 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40711 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40712 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40713 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40714 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40715 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40716 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40717 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40718 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40719 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40720 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40721 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40722 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40723 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40724 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS, NULL }, | |
40725 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40726 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40727 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40728 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40729 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40730 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40731 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40732 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40733 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40734 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40735 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40736 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40737 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40738 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40739 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40740 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40741 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40742 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40743 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40744 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40745 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40746 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40747 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40748 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40749 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40750 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40751 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40752 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40753 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40754 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40755 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40756 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40757 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40758 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40759 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40760 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40761 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40762 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40763 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40764 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40765 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40766 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40767 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40768 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40769 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40770 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40771 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40772 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40773 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40774 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40775 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS, NULL }, | |
40776 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40777 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40778 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40779 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40780 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40781 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40782 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40783 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40784 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40785 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40786 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40787 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40788 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40789 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40790 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40791 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40792 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40793 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40794 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40795 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40796 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40797 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40798 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40799 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40800 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40801 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40802 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40803 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS, NULL }, | |
40804 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40805 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40806 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40807 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40808 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40809 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40810 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40811 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40812 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40813 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40814 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40815 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40816 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40817 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40818 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40819 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40820 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40821 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS, NULL }, | |
40822 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40823 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS, NULL }, | |
40824 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40825 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40826 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40827 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40828 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40829 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40830 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40831 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS, NULL }, | |
40832 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS, NULL }, | |
40833 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40834 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40835 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40836 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40837 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40838 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40839 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40840 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40841 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40842 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40843 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40844 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS, NULL }, | |
40845 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40846 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40847 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40848 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40849 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40850 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40851 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40852 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40853 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40854 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c370783e | 40855 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS, NULL }, |
b411df4a | 40856 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS, NULL }, |
c370783e RD |
40857 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, |
40858 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40859 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40860 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS, NULL }, | |
40861 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40862 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40863 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40864 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40865 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40866 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS, NULL }, | |
40867 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40868 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40869 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40870 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40871 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40872 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40873 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40874 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40875 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40876 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS, NULL }, | |
40877 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40878 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40879 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40880 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40881 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40882 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40883 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40884 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40885 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40886 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS, NULL }, | |
40887 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40888 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40889 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40890 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS, NULL }, | |
40891 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40892 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40893 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40894 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40895 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40896 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40897 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40898 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40899 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40900 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40901 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40902 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40903 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40904 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40905 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40906 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40907 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40908 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40909 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40910 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40911 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40912 | { (char *)"Image_ConvertAlphaToMask", (PyCFunction) _wrap_Image_ConvertAlphaToMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40913 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40914 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40915 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40916 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40917 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40918 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40919 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40920 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40921 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40922 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40923 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40924 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40925 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40926 | { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40927 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40928 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40929 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40930 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40931 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40932 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40933 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40934 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40935 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40936 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40937 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40938 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40939 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40940 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40941 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40942 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40943 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40944 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40945 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40946 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40947 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40948 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40949 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40950 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40951 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40952 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40953 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40954 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40955 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40956 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40957 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40958 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40959 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40960 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40961 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40962 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS, NULL }, | |
40963 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40964 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS, NULL }, | |
40965 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40966 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS, NULL }, | |
40967 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40968 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS, NULL }, | |
40969 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40970 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS, NULL }, | |
40971 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40972 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS, NULL }, | |
40973 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40974 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS, NULL }, | |
40975 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40976 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS, NULL }, | |
40977 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40978 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS, NULL }, | |
40979 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40980 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS, NULL }, | |
40981 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40982 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS, NULL }, | |
40983 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40984 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS, NULL }, | |
40985 | { (char *)"Quantize_Quantize", (PyCFunction) _wrap_Quantize_Quantize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40986 | { (char *)"Quantize_swigregister", Quantize_swigregister, METH_VARARGS, NULL }, | |
40987 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40988 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40989 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40990 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40991 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40992 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40993 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40994 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40995 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40996 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40997 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40998 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
40999 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41000 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS, NULL }, | |
41001 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41002 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41003 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41004 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41005 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41006 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41007 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41008 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41009 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41010 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41011 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41012 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41013 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41014 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41015 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41016 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41017 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41018 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS, NULL }, | |
41019 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41020 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41021 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS, NULL }, | |
41022 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41023 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41024 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS, NULL }, | |
41025 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41026 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41027 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41028 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41029 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41030 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41031 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41032 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41033 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41034 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41035 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41036 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS, NULL }, | |
41037 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41038 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41039 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41040 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41041 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS, NULL }, | |
41042 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41043 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41044 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41045 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41046 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41047 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS, NULL }, | |
41048 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41049 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41050 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41051 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41052 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41053 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS, NULL }, | |
41054 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41055 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41056 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41057 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41058 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41059 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41060 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41061 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41062 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41063 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41064 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41065 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41066 | { (char *)"MouseEvent_CmdDown", (PyCFunction) _wrap_MouseEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41067 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41068 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41069 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41070 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41071 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41072 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41073 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41074 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41075 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41076 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41077 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41078 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41079 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41080 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41081 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41082 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41083 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41084 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41085 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41086 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41087 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41088 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41089 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41090 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41091 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41092 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41093 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41094 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41095 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41096 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41097 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41098 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41099 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41100 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41101 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41102 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41103 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41104 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41105 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41106 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41107 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41108 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41109 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41110 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41111 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41112 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41113 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41114 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41115 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41116 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS, NULL }, | |
41117 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41118 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41119 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41120 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41121 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41122 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41123 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS, NULL }, | |
41124 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41125 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41126 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41127 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41128 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41129 | { (char *)"KeyEvent_CmdDown", (PyCFunction) _wrap_KeyEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41130 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41131 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41132 | { (char *)"KeyEvent_GetUnicodeKey", (PyCFunction) _wrap_KeyEvent_GetUnicodeKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41133 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41134 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41135 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41136 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41137 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41138 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41139 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41140 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41141 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41142 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41143 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41144 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41145 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41146 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41147 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41148 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41149 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41150 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41151 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41152 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41153 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41154 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41155 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41156 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41157 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41158 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41159 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS, NULL }, | |
41160 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41161 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41162 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41163 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41164 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41165 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41166 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41167 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41168 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41169 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS, NULL }, | |
41170 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41171 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41172 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41173 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41174 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41175 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41176 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41177 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41178 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41179 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS, NULL }, | |
41180 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41181 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS, NULL }, | |
41182 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41183 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS, NULL }, | |
41184 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41185 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41186 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS, NULL }, | |
41187 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41188 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41189 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41190 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS, NULL }, | |
41191 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41192 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41193 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS, NULL }, | |
41194 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41195 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41196 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS, NULL }, | |
41197 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41198 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS, NULL }, | |
41199 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41200 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41201 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41202 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41203 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS, NULL }, | |
41204 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41205 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41206 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41207 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41208 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41209 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41210 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41211 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS, NULL }, | |
41212 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41213 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41214 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41215 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS, NULL }, | |
41216 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41217 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41218 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS, NULL }, | |
41219 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41220 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS, NULL }, | |
41221 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41222 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41223 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41224 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS, NULL }, | |
41225 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41226 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41227 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41228 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41229 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41230 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41231 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41232 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41233 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41234 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41235 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41236 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41237 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41238 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41239 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41240 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41241 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS, NULL }, | |
41242 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41243 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41244 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41245 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41246 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41247 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41248 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41249 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41250 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41251 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41252 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41253 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41254 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41255 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41256 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS, NULL }, | |
41257 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41258 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41259 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41260 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41261 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41262 | { (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41263 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41264 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41265 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS, NULL }, | |
41266 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41267 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41268 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS, NULL }, | |
41269 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41270 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41271 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS, NULL }, | |
41272 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41273 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41274 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41275 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS, NULL }, | |
41276 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41277 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41278 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41279 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41280 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41281 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41282 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS, NULL }, | |
41283 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41284 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41285 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41286 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41287 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS, NULL }, | |
41288 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41289 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41290 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41291 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41292 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS, NULL }, | |
41293 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41294 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41295 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41296 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41297 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41298 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41299 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41300 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41301 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41302 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41303 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41304 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41305 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
84f85550 | 41306 | { (char *)"PyApp_IsMainLoopRunning", (PyCFunction) _wrap_PyApp_IsMainLoopRunning, METH_VARARGS | METH_KEYWORDS, NULL }, |
c370783e RD |
41307 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS, NULL }, |
41308 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41309 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41310 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41311 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41312 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41313 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41314 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41315 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41316 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41317 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41318 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41319 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41320 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41321 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41322 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41323 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41324 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41325 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41326 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41327 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41328 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41329 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41330 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41331 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41332 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41333 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41334 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41335 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41336 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41337 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS, NULL }, | |
41338 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41339 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41340 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41341 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41342 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41343 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41344 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41345 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
b411df4a RD |
41346 | { (char *)"new_EventLoop", (PyCFunction) _wrap_new_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL }, |
41347 | { (char *)"delete_EventLoop", (PyCFunction) _wrap_delete_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41348 | { (char *)"EventLoop_Run", (PyCFunction) _wrap_EventLoop_Run, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41349 | { (char *)"EventLoop_Exit", (PyCFunction) _wrap_EventLoop_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41350 | { (char *)"EventLoop_Pending", (PyCFunction) _wrap_EventLoop_Pending, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41351 | { (char *)"EventLoop_Dispatch", (PyCFunction) _wrap_EventLoop_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41352 | { (char *)"EventLoop_IsRunning", (PyCFunction) _wrap_EventLoop_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41353 | { (char *)"EventLoop_GetActive", (PyCFunction) _wrap_EventLoop_GetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41354 | { (char *)"EventLoop_SetActive", (PyCFunction) _wrap_EventLoop_SetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41355 | { (char *)"EventLoop_swigregister", EventLoop_swigregister, METH_VARARGS, NULL }, | |
c370783e RD |
41356 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL }, |
41357 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41358 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41359 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41360 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41361 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41362 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS, NULL }, | |
41363 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41364 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41365 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41366 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS, NULL }, | |
41367 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41368 | { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41369 | { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41370 | { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41371 | { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41372 | { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41373 | { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41374 | { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41375 | { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41376 | { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS, NULL }, | |
41377 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41378 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41379 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41380 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41381 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41382 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41383 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41384 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41385 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41386 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41387 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41388 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41389 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41390 | { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41391 | { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41392 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41393 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41394 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41395 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41396 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41397 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41398 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41399 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41400 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41401 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41402 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41403 | { (char *)"Window_SetBestFittingSize", (PyCFunction) _wrap_Window_SetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41404 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41405 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41406 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41407 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41408 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41409 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41410 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41411 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41412 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41413 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41414 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41415 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41416 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41417 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41418 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41419 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41420 | { (char *)"Window_InvalidateBestSize", (PyCFunction) _wrap_Window_InvalidateBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41421 | { (char *)"Window_GetBestFittingSize", (PyCFunction) _wrap_Window_GetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41422 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41423 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41424 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41425 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41426 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41427 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41428 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41429 | { (char *)"Window_SetSizeHintsSz", (PyCFunction) _wrap_Window_SetSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41430 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41431 | { (char *)"Window_SetVirtualSizeHintsSz", (PyCFunction) _wrap_Window_SetVirtualSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41432 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41433 | { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41434 | { (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41435 | { (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41436 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41437 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41438 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41439 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41440 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41441 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41442 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41443 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41444 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41445 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41446 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41447 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41448 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41449 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41450 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41451 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41452 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41453 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41454 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41455 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41456 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41457 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41458 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41459 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41460 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41461 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41462 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41463 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41464 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41465 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41466 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41467 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41468 | { (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41469 | { (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41470 | { (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41471 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41472 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41473 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41474 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41475 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41476 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41477 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41478 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41479 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41480 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41481 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41482 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41483 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41484 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41485 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41486 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41487 | { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41488 | { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41489 | { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41490 | { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41491 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41492 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41493 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41494 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41495 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41496 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41497 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41498 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41499 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41500 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41501 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41502 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41503 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41504 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41505 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41506 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41507 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41508 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41509 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41510 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41511 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41512 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41513 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41514 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41515 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41516 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41517 | { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41518 | { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41519 | { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41520 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41521 | { (char *)"Window_SetOwnBackgroundColour", (PyCFunction) _wrap_Window_SetOwnBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41522 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41523 | { (char *)"Window_SetOwnForegroundColour", (PyCFunction) _wrap_Window_SetOwnForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41524 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41525 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41526 | { (char *)"Window_SetBackgroundStyle", (PyCFunction) _wrap_Window_SetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41527 | { (char *)"Window_GetBackgroundStyle", (PyCFunction) _wrap_Window_GetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41528 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41529 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41530 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41531 | { (char *)"Window_SetOwnFont", (PyCFunction) _wrap_Window_SetOwnFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41532 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41533 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41534 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41535 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41536 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41537 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41538 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41539 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41540 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41541 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41542 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41543 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41544 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41545 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS, NULL }, | |
41546 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41547 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41548 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41549 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
629e65c2 RD |
41550 | { (char *)"Window_AssociateHandle", (PyCFunction) _wrap_Window_AssociateHandle, METH_VARARGS | METH_KEYWORDS, NULL }, |
41551 | { (char *)"Window_DissociateHandle", (PyCFunction) _wrap_Window_DissociateHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c370783e RD |
41552 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, |
41553 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41554 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41555 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41556 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41557 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41558 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41559 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41560 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41561 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41562 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41563 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41564 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41565 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41566 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41567 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41568 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41569 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41570 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41571 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41572 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41573 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41574 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41575 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41576 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41577 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41578 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41579 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41580 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41581 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41582 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41583 | { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41584 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41585 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS, NULL }, | |
41586 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41587 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41588 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41589 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41590 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41591 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41592 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41593 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41594 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41595 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41596 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41597 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41598 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41599 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS, NULL }, | |
41600 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41601 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41602 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS, NULL }, | |
41603 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41604 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41605 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41606 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41607 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41608 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41609 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41610 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41611 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41612 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41613 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41614 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41615 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41616 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41617 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41618 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41619 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41620 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41621 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41622 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41623 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41624 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41625 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41626 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41627 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41628 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41629 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41630 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41631 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41632 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41633 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41634 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41635 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41636 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41637 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41638 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41639 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41640 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41641 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41642 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41643 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41644 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41645 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41646 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41647 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41648 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41649 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41650 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41651 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41652 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41653 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41654 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41655 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41656 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41657 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS, NULL }, | |
41658 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41659 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41660 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41661 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41662 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41663 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41664 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41665 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41666 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41667 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41668 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41669 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41670 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41671 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41672 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41673 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41674 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41675 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41676 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41677 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41678 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41679 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41680 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41681 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41682 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41683 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41684 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS, NULL }, | |
41685 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41686 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41687 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41688 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41689 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41690 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41691 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41692 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41693 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41694 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41695 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41696 | { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41697 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41698 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41699 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41700 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41701 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41702 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41703 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41704 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41705 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41706 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41707 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41708 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41709 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41710 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41711 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41712 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41713 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41714 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS, NULL }, | |
41715 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41716 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41717 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41718 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41719 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41720 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41721 | { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41722 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS, NULL }, | |
41723 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41724 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41725 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41726 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41727 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41728 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41729 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41730 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41731 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41732 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41733 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41734 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41735 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41736 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41737 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41738 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41739 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS, NULL }, | |
41740 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS, NULL }, | |
41741 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41742 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41743 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41744 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41745 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41746 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41747 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41748 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41749 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41750 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41751 | { (char *)"SizerItem_GetMinSizeWithBorder", (PyCFunction) _wrap_SizerItem_GetMinSizeWithBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41752 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41753 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41754 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41755 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41756 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41757 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41758 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41759 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41760 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41761 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41762 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41763 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41764 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41765 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41766 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41767 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41768 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41769 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41770 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41771 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41772 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41773 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41774 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41775 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41776 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS, NULL }, | |
41777 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41778 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41779 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41780 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41781 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41782 | { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41783 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41784 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41785 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41786 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41787 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41788 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41789 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41790 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41791 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41792 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41793 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41794 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41795 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41796 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41797 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41798 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41799 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41800 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41801 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41802 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41803 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41804 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41805 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS, NULL }, | |
41806 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41807 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41808 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS, NULL }, | |
41809 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41810 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41811 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41812 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS, NULL }, | |
41813 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41814 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41815 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS, NULL }, | |
41816 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41817 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41818 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41819 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41820 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41821 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41822 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41823 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41824 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41825 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS, NULL }, | |
41826 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41827 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41828 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41829 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41830 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41831 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41832 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41833 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41834 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41835 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41836 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41837 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS, NULL }, | |
41838 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41839 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41840 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41841 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41842 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41843 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41844 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41845 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41846 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41847 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS, NULL }, | |
41848 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41849 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41850 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41851 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41852 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41853 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41854 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41855 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41856 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41857 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS, NULL }, | |
41858 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41859 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41860 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41861 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41862 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41863 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41864 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41865 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41866 | { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41867 | { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41868 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41869 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41870 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41871 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS, NULL }, | |
41872 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41873 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41874 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
84f85550 | 41875 | { (char *)"GridBagSizer_GetCellSize", (PyCFunction) _wrap_GridBagSizer_GetCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
c370783e RD |
41876 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
41877 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41878 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS, NULL }, | |
41879 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS, NULL }, | |
41880 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS, NULL }, | |
41881 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS, NULL }, | |
41882 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS, NULL }, | |
41883 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41884 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41885 | { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41886 | { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41887 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS, NULL }, | |
41888 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41889 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41890 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41891 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41892 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41893 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41894 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41895 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41896 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41897 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41898 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41899 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41900 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41901 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41902 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41903 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41904 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41905 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41906 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41907 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41908 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41909 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41910 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41911 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41912 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41913 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41914 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS, NULL }, | |
41915 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41916 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41917 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41918 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41919 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41920 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41921 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41922 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41923 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41924 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41925 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41926 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS, NULL }, | |
41927 | { NULL, NULL, 0, NULL } | |
d55e5bfc RD |
41928 | }; |
41929 | ||
41930 | ||
41931 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
41932 | ||
41933 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
41934 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
41935 | } | |
41936 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
41937 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
41938 | } | |
41939 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
41940 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41941 | } | |
41942 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
41943 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
41944 | } | |
41945 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
41946 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
41947 | } | |
41948 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
41949 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
41950 | } | |
41951 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
41952 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
41953 | } | |
41954 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
41955 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
41956 | } | |
41957 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
41958 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
41959 | } | |
41960 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
41961 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
41962 | } | |
41963 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
41964 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
41965 | } | |
41966 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
41967 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
41968 | } | |
41969 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
41970 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
41971 | } | |
41972 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
41973 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
41974 | } | |
41975 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
41976 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
41977 | } | |
41978 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
41979 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
41980 | } | |
41981 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
41982 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
41983 | } | |
41984 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
41985 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
41986 | } | |
41987 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
41988 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
41989 | } | |
41990 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
41991 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
41992 | } | |
41993 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
41994 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
41995 | } | |
41996 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
41997 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
41998 | } | |
41999 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
42000 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
42001 | } | |
42002 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
42003 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
42004 | } | |
42005 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
42006 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
42007 | } | |
42008 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
42009 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
42010 | } | |
42011 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
42012 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
42013 | } | |
42014 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
42015 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
42016 | } | |
42017 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
42018 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42019 | } | |
42020 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
42021 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
42022 | } | |
42023 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
42024 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
42025 | } | |
42026 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
42027 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
42028 | } | |
42029 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
42030 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
42031 | } | |
42032 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
42033 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
42034 | } | |
42035 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
42036 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
42037 | } | |
42038 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
42039 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42040 | } | |
42041 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
42042 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
42043 | } | |
42044 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
42045 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
42046 | } | |
42047 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
42048 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42049 | } | |
42050 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
42051 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42052 | } | |
42053 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
42054 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
42055 | } | |
42056 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
42057 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
42058 | } | |
42059 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
42060 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
42061 | } | |
42062 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
42063 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42064 | } | |
42065 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
42066 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42067 | } | |
42068 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
42069 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42070 | } | |
42071 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
42072 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
42073 | } | |
42074 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
42075 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
42076 | } | |
42077 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
42078 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
42079 | } | |
42080 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
42081 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
42082 | } | |
42083 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
42084 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42085 | } | |
42086 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
42087 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
42088 | } | |
42089 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
42090 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
42091 | } | |
42092 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
42093 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
42094 | } | |
42095 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
42096 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
42097 | } | |
42098 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
42099 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
42100 | } | |
42101 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
42102 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
42103 | } | |
42104 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
42105 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
42106 | } | |
42107 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
42108 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
42109 | } | |
42110 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
42111 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
42112 | } | |
42113 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
42114 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
42115 | } | |
42116 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
42117 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42118 | } | |
42119 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
42120 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
42121 | } | |
42122 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
42123 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
42124 | } | |
42125 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
42126 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
42127 | } | |
42128 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
42129 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42130 | } | |
42131 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
42132 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
42133 | } | |
42134 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
42135 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
42136 | } | |
42137 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
42138 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
42139 | } | |
42140 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
42141 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
42142 | } | |
42143 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
42144 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
42145 | } | |
42146 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
42147 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
42148 | } | |
42149 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
42150 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
42151 | } | |
42152 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
42153 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
42154 | } | |
42155 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42156 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
42157 | } | |
42158 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42159 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
42160 | } | |
42161 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42162 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
42163 | } | |
42164 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
42165 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
42166 | } | |
42167 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
42168 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
42169 | } | |
42170 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
42171 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42172 | } | |
42173 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
42174 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
42175 | } | |
42176 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
42177 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
42178 | } | |
42179 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
42180 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
42181 | } | |
42182 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
42183 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
42184 | } | |
42185 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
42186 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
42187 | } | |
42188 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
42189 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
42190 | } | |
42191 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
42192 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
42193 | } | |
42194 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
42195 | return (void *)((wxObject *) ((wxSizer *) x)); | |
42196 | } | |
42197 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
42198 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
42199 | } | |
42200 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
42201 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42202 | } | |
42203 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
42204 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
42205 | } | |
42206 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
42207 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
42208 | } | |
42209 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
42210 | return (void *)((wxObject *) ((wxImage *) x)); | |
42211 | } | |
42212 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
42213 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
42214 | } | |
42215 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
42216 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42217 | } | |
42218 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
42219 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
42220 | } | |
42221 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
42222 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
42223 | } | |
42224 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
42225 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
42226 | } | |
42227 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
42228 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
42229 | } | |
42230 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
42231 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
42232 | } | |
42233 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
42234 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42235 | } | |
42236 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
42237 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
42238 | } | |
42239 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
42240 | return (void *)((wxObject *) ((wxEvent *) x)); | |
42241 | } | |
42242 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
42243 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
42244 | } | |
42245 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
42246 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
42247 | } | |
42248 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
42249 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
42250 | } | |
42251 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
42252 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
42253 | } | |
42254 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
42255 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
42256 | } | |
42257 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
42258 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
42259 | } | |
42260 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
42261 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42262 | } | |
42263 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
42264 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
42265 | } | |
42266 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
42267 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42268 | } | |
42269 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
42270 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
42271 | } | |
42272 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
42273 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
42274 | } | |
42275 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
42276 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
42277 | } | |
42278 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
42279 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
42280 | } | |
42281 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
42282 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
42283 | } | |
42284 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
42285 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
42286 | } | |
42287 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
42288 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42289 | } | |
42290 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
42291 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
42292 | } | |
42293 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
42294 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
42295 | } | |
42296 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
42297 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
42298 | } | |
42299 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
42300 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
42301 | } | |
42302 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
42303 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
42304 | } | |
42305 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
42306 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
42307 | } | |
42308 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
42309 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
42310 | } | |
42311 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
42312 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
42313 | } | |
42314 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
42315 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42316 | } | |
42317 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
42318 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
42319 | } | |
42320 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
42321 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
42322 | } | |
42323 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
42324 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
42325 | } | |
42326 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
42327 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
42328 | } | |
42329 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
42330 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
42331 | } | |
42332 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
42333 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
42334 | } | |
42335 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
42336 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42337 | } | |
42338 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
42339 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
42340 | } | |
42341 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
42342 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
42343 | } | |
42344 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
42345 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
42346 | } | |
42347 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
42348 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
42349 | } | |
42350 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
42351 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
42352 | } | |
42353 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
42354 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
42355 | } | |
42356 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
42357 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
42358 | } | |
42359 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
42360 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42361 | } | |
42362 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
42363 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
42364 | } | |
42365 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
42366 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
42367 | } | |
42368 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
42369 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42370 | } | |
42371 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
42372 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42373 | } | |
42374 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
42375 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
42376 | } | |
42377 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
42378 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
42379 | } | |
42380 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
42381 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
42382 | } | |
42383 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
42384 | return (void *)((wxWindow *) ((wxControl *) x)); | |
42385 | } | |
42386 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
42387 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
42388 | } | |
42389 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
42390 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
42391 | } | |
42392 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
42393 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42394 | } | |
42395 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
42396 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
42397 | } | |
42398 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
42399 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42400 | } | |
42401 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
42402 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42403 | } | |
42404 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
42405 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42406 | } | |
42407 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
42408 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42409 | } | |
42410 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
42411 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42412 | } | |
42413 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
42414 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42415 | } | |
42416 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
42417 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
42418 | } | |
42419 | 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}}; | |
42420 | 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}}; | |
42421 | 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}}; | |
42422 | 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}}; | |
42423 | 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 | 42424 | 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 |
42425 | 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}}; |
42426 | 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}}; | |
42427 | 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}}; | |
42428 | 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}}; | |
42429 | 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}}; | |
42430 | 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}}; | |
42431 | 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}}; | |
42432 | 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}}; | |
42433 | 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}}; | |
42434 | 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}}; | |
42435 | 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}}; | |
42436 | 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}}; | |
42437 | 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}}; | |
42438 | 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}}; | |
42439 | 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}}; | |
42440 | 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}}; | |
42441 | 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}}; | |
42442 | 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}}; | |
42443 | 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}}; | |
42444 | 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}}; | |
42445 | 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}}; | |
42446 | 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}}; | |
42447 | 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}}; | |
42448 | 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}}; | |
42449 | 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}}; | |
42450 | 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}}; | |
42451 | 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}}; | |
42452 | 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}}; | |
42453 | 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}}; | |
42454 | 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}}; | |
42455 | 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}}; | |
42456 | 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}}; | |
42457 | 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}}; | |
42458 | 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}}; | |
42459 | 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}}; | |
42460 | 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}}; | |
42461 | 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}}; | |
42462 | 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}}; | |
42463 | 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 |
42464 | 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}}; |
42465 | 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}}; | |
42466 | 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}}; | |
42467 | 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 | 42468 | 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 |
42469 | 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}}; |
42470 | 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}}; | |
42471 | 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}}; | |
42472 | 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}}; | |
42473 | 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}}; | |
42474 | 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}}; | |
42475 | 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}}; | |
42476 | 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}}; | |
42477 | 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}}; | |
42478 | 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}}; | |
42479 | 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}}; | |
42480 | 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}}; | |
42481 | 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}}; | |
42482 | 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}}; | |
42483 | 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}}; | |
42484 | 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}}; | |
42485 | 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}}; | |
42486 | 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}}; | |
42487 | 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}}; | |
42488 | 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}}; | |
42489 | 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}}; | |
42490 | 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}}; | |
42491 | 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}}; | |
42492 | 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}}; | |
42493 | 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}}; | |
42494 | 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}}; | |
42495 | 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}}; | |
42496 | 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}}; | |
42497 | 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}}; | |
42498 | 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}}; | |
42499 | 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}}; | |
42500 | 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}}; | |
42501 | 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}}; | |
42502 | 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}}; | |
42503 | 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}}; | |
42504 | 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}}; | |
42505 | 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}}; | |
42506 | 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}}; | |
42507 | 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}}; | |
42508 | 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}}; | |
42509 | 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}}; | |
42510 | 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}}; | |
42511 | 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}}; | |
42512 | 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}}; | |
42513 | 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}}; | |
42514 | 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}}; | |
42515 | 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}}; | |
42516 | 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}}; | |
42517 | 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}}; | |
42518 | 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}}; | |
42519 | 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}}; | |
42520 | 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}}; | |
42521 | 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}}; | |
42522 | 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}}; | |
42523 | 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}}; | |
42524 | 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}}; | |
42525 | 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}}; | |
42526 | 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}}; | |
42527 | 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 | 42528 | 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 |
42529 | 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}}; |
42530 | 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}}; | |
42531 | 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}}; | |
42532 | 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}}; | |
42533 | 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}}; | |
42534 | 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}}; | |
42535 | 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}}; | |
42536 | ||
42537 | static swig_type_info *swig_types_initial[] = { | |
42538 | _swigt__p_wxLayoutConstraints, | |
42539 | _swigt__p_wxRealPoint, | |
42540 | _swigt__p_wxSizerItem, | |
42541 | _swigt__p_wxGBSizerItem, | |
42542 | _swigt__p_wxScrollEvent, | |
b411df4a | 42543 | _swigt__p_wxEventLoop, |
d55e5bfc RD |
42544 | _swigt__p_wxIndividualLayoutConstraint, |
42545 | _swigt__p_wxSizer, | |
42546 | _swigt__p_wxBoxSizer, | |
42547 | _swigt__p_wxStaticBoxSizer, | |
42548 | _swigt__p_wxGridBagSizer, | |
42549 | _swigt__p_wxAcceleratorEntry, | |
42550 | _swigt__p_wxUpdateUIEvent, | |
42551 | _swigt__p_wxMenu, | |
42552 | _swigt__p_wxEvent, | |
42553 | _swigt__p_wxGridSizer, | |
42554 | _swigt__p_wxFlexGridSizer, | |
42555 | _swigt__p_wxInitDialogEvent, | |
42556 | _swigt__p_wxItemContainer, | |
42557 | _swigt__p_wxNcPaintEvent, | |
42558 | _swigt__p_wxPaintEvent, | |
42559 | _swigt__p_wxSysColourChangedEvent, | |
42560 | _swigt__p_wxMouseCaptureChangedEvent, | |
42561 | _swigt__p_wxDisplayChangedEvent, | |
42562 | _swigt__p_wxPaletteChangedEvent, | |
42563 | _swigt__p_wxControl, | |
42564 | _swigt__p_wxFont, | |
42565 | _swigt__p_wxMenuBarBase, | |
42566 | _swigt__p_wxSetCursorEvent, | |
42567 | _swigt__p_wxFSFile, | |
42568 | _swigt__p_wxCaret, | |
42569 | _swigt__p_wxRegion, | |
42570 | _swigt__p_wxPoint2D, | |
42571 | _swigt__p_int, | |
42572 | _swigt__p_wxSize, | |
42573 | _swigt__p_wxDC, | |
42574 | _swigt__p_wxPySizer, | |
42575 | _swigt__p_wxVisualAttributes, | |
42576 | _swigt__p_wxNotifyEvent, | |
42577 | _swigt__p_wxPyEvent, | |
42578 | _swigt__p_wxPropagationDisabler, | |
42579 | _swigt__p_wxAppTraits, | |
42580 | _swigt__p_wxArrayString, | |
42581 | _swigt__p_wxShowEvent, | |
42582 | _swigt__p_wxToolTip, | |
d55e5bfc RD |
42583 | _swigt__p_wxIconizeEvent, |
42584 | _swigt__p_wxActivateEvent, | |
42585 | _swigt__p_wxMoveEvent, | |
42586 | _swigt__p_wxSizeEvent, | |
c0de73ae | 42587 | _swigt__p_wxMaximizeEvent, |
d55e5bfc RD |
42588 | _swigt__p_wxQueryNewPaletteEvent, |
42589 | _swigt__p_wxWindowCreateEvent, | |
42590 | _swigt__p_wxIdleEvent, | |
42591 | _swigt__p_wxMenuItem, | |
42592 | _swigt__p_wxStaticBox, | |
42593 | _swigt__p_long, | |
42594 | _swigt__p_wxTIFFHandler, | |
42595 | _swigt__p_wxXPMHandler, | |
42596 | _swigt__p_wxPNMHandler, | |
42597 | _swigt__p_wxJPEGHandler, | |
42598 | _swigt__p_wxPCXHandler, | |
42599 | _swigt__p_wxGIFHandler, | |
42600 | _swigt__p_wxPNGHandler, | |
42601 | _swigt__p_wxANIHandler, | |
42602 | _swigt__p_wxMemoryFSHandler, | |
42603 | _swigt__p_wxEvtHandler, | |
42604 | _swigt__p_wxCURHandler, | |
42605 | _swigt__p_wxICOHandler, | |
42606 | _swigt__p_wxBMPHandler, | |
42607 | _swigt__p_wxImageHandler, | |
42608 | _swigt__p_wxFileSystemHandler, | |
42609 | _swigt__p_wxPyFileSystemHandler, | |
42610 | _swigt__p_wxInternetFSHandler, | |
42611 | _swigt__p_wxZipFSHandler, | |
42612 | _swigt__p_wxRect, | |
42613 | _swigt__p_wxGBSpan, | |
42614 | _swigt__p_wxPropagateOnce, | |
42615 | _swigt__p_wxAcceleratorTable, | |
42616 | _swigt__p_char, | |
42617 | _swigt__p_wxGBPosition, | |
42618 | _swigt__p_wxImage, | |
42619 | _swigt__p_wxFrame, | |
42620 | _swigt__p_wxScrollWinEvent, | |
42621 | _swigt__p_wxImageHistogram, | |
42622 | _swigt__p_byte, | |
42623 | _swigt__p_wxPoint, | |
42624 | _swigt__p_wxCursor, | |
42625 | _swigt__p_wxObject, | |
42626 | _swigt__p_wxPyInputStream, | |
42627 | _swigt__p_wxOutputStream, | |
42628 | _swigt__p_wxInputStream, | |
42629 | _swigt__p_wxDateTime, | |
42630 | _swigt__p_wxKeyEvent, | |
42631 | _swigt__p_wxNavigationKeyEvent, | |
42632 | _swigt__p_wxWindowDestroyEvent, | |
42633 | _swigt__p_wxWindow, | |
42634 | _swigt__p_wxMenuBar, | |
42635 | _swigt__p_wxFileSystem, | |
42636 | _swigt__p_wxBitmap, | |
42637 | _swigt__p_wxMenuEvent, | |
42638 | _swigt__p_wxContextMenuEvent, | |
42639 | _swigt__p_unsigned_char, | |
42640 | _swigt__p_wxCloseEvent, | |
42641 | _swigt__p_wxEraseEvent, | |
42642 | _swigt__p_wxMouseEvent, | |
42643 | _swigt__p_wxPyApp, | |
42644 | _swigt__p_wxCommandEvent, | |
42645 | _swigt__p_wxPyCommandEvent, | |
42646 | _swigt__p_wxPyDropTarget, | |
c0de73ae | 42647 | _swigt__p_wxQuantize, |
d55e5bfc RD |
42648 | _swigt__p_wxChildFocusEvent, |
42649 | _swigt__p_wxFocusEvent, | |
42650 | _swigt__p_wxDropFilesEvent, | |
42651 | _swigt__p_wxControlWithItems, | |
42652 | _swigt__p_wxColour, | |
42653 | _swigt__p_wxValidator, | |
42654 | _swigt__p_wxPyValidator, | |
42655 | 0 | |
42656 | }; | |
42657 | ||
42658 | ||
42659 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
42660 | ||
42661 | static swig_const_info swig_const_table[] = { | |
c370783e | 42662 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
42663 | |
42664 | #ifdef __cplusplus | |
42665 | } | |
42666 | #endif | |
42667 | ||
42668 | #ifdef __cplusplus | |
42669 | extern "C" | |
42670 | #endif | |
42671 | SWIGEXPORT(void) SWIG_init(void) { | |
42672 | static PyObject *SWIG_globals = 0; | |
42673 | static int typeinit = 0; | |
42674 | PyObject *m, *d; | |
42675 | int i; | |
42676 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
42677 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
42678 | d = PyModule_GetDict(m); | |
42679 | ||
42680 | if (!typeinit) { | |
42681 | for (i = 0; swig_types_initial[i]; i++) { | |
42682 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
42683 | } | |
42684 | typeinit = 1; | |
42685 | } | |
42686 | SWIG_InstallConstants(d,swig_const_table); | |
42687 | ||
42688 | ||
42689 | #ifndef wxPyUSE_EXPORT | |
42690 | // Make our API structure a CObject so other modules can import it | |
42691 | // from this module. | |
42692 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
42693 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
42694 | Py_XDECREF(cobj); | |
42695 | #endif | |
42696 | ||
c370783e RD |
42697 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_From_int((int)wxNOT_FOUND)); |
42698 | PyDict_SetItemString(d,"VSCROLL", SWIG_From_int((int)wxVSCROLL)); | |
42699 | PyDict_SetItemString(d,"HSCROLL", SWIG_From_int((int)wxHSCROLL)); | |
42700 | PyDict_SetItemString(d,"CAPTION", SWIG_From_int((int)wxCAPTION)); | |
42701 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_From_int((int)wxDOUBLE_BORDER)); | |
42702 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_From_int((int)wxSUNKEN_BORDER)); | |
42703 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_From_int((int)wxRAISED_BORDER)); | |
42704 | PyDict_SetItemString(d,"BORDER", SWIG_From_int((int)wxBORDER)); | |
42705 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_From_int((int)wxSIMPLE_BORDER)); | |
42706 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_From_int((int)wxSTATIC_BORDER)); | |
42707 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_From_int((int)wxTRANSPARENT_WINDOW)); | |
42708 | PyDict_SetItemString(d,"NO_BORDER", SWIG_From_int((int)wxNO_BORDER)); | |
42709 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_From_int((int)wxTAB_TRAVERSAL)); | |
42710 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_From_int((int)wxWANTS_CHARS)); | |
42711 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_From_int((int)wxPOPUP_WINDOW)); | |
42712 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_From_int((int)wxCENTER_FRAME)); | |
42713 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_From_int((int)wxCENTRE_ON_SCREEN)); | |
42714 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_From_int((int)wxCENTER_ON_SCREEN)); | |
42715 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_From_int((int)wxED_CLIENT_MARGIN)); | |
42716 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_From_int((int)wxED_BUTTONS_BOTTOM)); | |
42717 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_From_int((int)wxED_BUTTONS_RIGHT)); | |
42718 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_From_int((int)wxED_STATIC_LINE)); | |
42719 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_From_int((int)wxEXT_DIALOG_STYLE)); | |
42720 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_From_int((int)wxCLIP_CHILDREN)); | |
42721 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_From_int((int)wxCLIP_SIBLINGS)); | |
42722 | PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_From_int((int)wxALWAYS_SHOW_SB)); | |
42723 | PyDict_SetItemString(d,"RETAINED", SWIG_From_int((int)wxRETAINED)); | |
42724 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_From_int((int)wxBACKINGSTORE)); | |
42725 | PyDict_SetItemString(d,"COLOURED", SWIG_From_int((int)wxCOLOURED)); | |
42726 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_From_int((int)wxFIXED_LENGTH)); | |
42727 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_From_int((int)wxLB_NEEDED_SB)); | |
42728 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_From_int((int)wxLB_ALWAYS_SB)); | |
42729 | PyDict_SetItemString(d,"LB_SORT", SWIG_From_int((int)wxLB_SORT)); | |
42730 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_From_int((int)wxLB_SINGLE)); | |
42731 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_From_int((int)wxLB_MULTIPLE)); | |
42732 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_From_int((int)wxLB_EXTENDED)); | |
42733 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_From_int((int)wxLB_OWNERDRAW)); | |
42734 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_From_int((int)wxLB_HSCROLL)); | |
42735 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_From_int((int)wxPROCESS_ENTER)); | |
42736 | PyDict_SetItemString(d,"PASSWORD", SWIG_From_int((int)wxPASSWORD)); | |
42737 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_From_int((int)wxCB_SIMPLE)); | |
42738 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_From_int((int)wxCB_DROPDOWN)); | |
42739 | PyDict_SetItemString(d,"CB_SORT", SWIG_From_int((int)wxCB_SORT)); | |
42740 | PyDict_SetItemString(d,"CB_READONLY", SWIG_From_int((int)wxCB_READONLY)); | |
42741 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_From_int((int)wxRA_HORIZONTAL)); | |
42742 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_From_int((int)wxRA_VERTICAL)); | |
42743 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_From_int((int)wxRA_SPECIFY_ROWS)); | |
42744 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_From_int((int)wxRA_SPECIFY_COLS)); | |
42745 | PyDict_SetItemString(d,"RB_GROUP", SWIG_From_int((int)wxRB_GROUP)); | |
42746 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_From_int((int)wxRB_SINGLE)); | |
42747 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_From_int((int)wxSL_HORIZONTAL)); | |
42748 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_From_int((int)wxSL_VERTICAL)); | |
42749 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_From_int((int)wxSL_AUTOTICKS)); | |
42750 | PyDict_SetItemString(d,"SL_LABELS", SWIG_From_int((int)wxSL_LABELS)); | |
42751 | PyDict_SetItemString(d,"SL_LEFT", SWIG_From_int((int)wxSL_LEFT)); | |
42752 | PyDict_SetItemString(d,"SL_TOP", SWIG_From_int((int)wxSL_TOP)); | |
42753 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_From_int((int)wxSL_RIGHT)); | |
42754 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_From_int((int)wxSL_BOTTOM)); | |
42755 | PyDict_SetItemString(d,"SL_BOTH", SWIG_From_int((int)wxSL_BOTH)); | |
42756 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_From_int((int)wxSL_SELRANGE)); | |
42757 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_From_int((int)wxSB_HORIZONTAL)); | |
42758 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_From_int((int)wxSB_VERTICAL)); | |
42759 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_From_int((int)wxST_SIZEGRIP)); | |
42760 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_From_int((int)wxST_NO_AUTORESIZE)); | |
42761 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_From_int((int)wxFLOOD_SURFACE)); | |
42762 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_From_int((int)wxFLOOD_BORDER)); | |
42763 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_From_int((int)wxODDEVEN_RULE)); | |
42764 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_From_int((int)wxWINDING_RULE)); | |
42765 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_From_int((int)wxTOOL_TOP)); | |
42766 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_From_int((int)wxTOOL_BOTTOM)); | |
42767 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_From_int((int)wxTOOL_LEFT)); | |
42768 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_From_int((int)wxTOOL_RIGHT)); | |
42769 | PyDict_SetItemString(d,"OK", SWIG_From_int((int)wxOK)); | |
42770 | PyDict_SetItemString(d,"YES_NO", SWIG_From_int((int)wxYES_NO)); | |
42771 | PyDict_SetItemString(d,"CANCEL", SWIG_From_int((int)wxCANCEL)); | |
42772 | PyDict_SetItemString(d,"YES", SWIG_From_int((int)wxYES)); | |
42773 | PyDict_SetItemString(d,"NO", SWIG_From_int((int)wxNO)); | |
42774 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_From_int((int)wxNO_DEFAULT)); | |
42775 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_From_int((int)wxYES_DEFAULT)); | |
42776 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_From_int((int)wxICON_EXCLAMATION)); | |
42777 | PyDict_SetItemString(d,"ICON_HAND", SWIG_From_int((int)wxICON_HAND)); | |
42778 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_From_int((int)wxICON_QUESTION)); | |
42779 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_From_int((int)wxICON_INFORMATION)); | |
42780 | PyDict_SetItemString(d,"ICON_STOP", SWIG_From_int((int)wxICON_STOP)); | |
42781 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_From_int((int)wxICON_ASTERISK)); | |
42782 | PyDict_SetItemString(d,"ICON_MASK", SWIG_From_int((int)wxICON_MASK)); | |
42783 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_From_int((int)wxICON_WARNING)); | |
42784 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_From_int((int)wxICON_ERROR)); | |
42785 | PyDict_SetItemString(d,"FORWARD", SWIG_From_int((int)wxFORWARD)); | |
42786 | PyDict_SetItemString(d,"BACKWARD", SWIG_From_int((int)wxBACKWARD)); | |
42787 | PyDict_SetItemString(d,"RESET", SWIG_From_int((int)wxRESET)); | |
42788 | PyDict_SetItemString(d,"HELP", SWIG_From_int((int)wxHELP)); | |
42789 | PyDict_SetItemString(d,"MORE", SWIG_From_int((int)wxMORE)); | |
42790 | PyDict_SetItemString(d,"SETUP", SWIG_From_int((int)wxSETUP)); | |
42791 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_From_int((int)wxSIZE_AUTO_WIDTH)); | |
42792 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_From_int((int)wxSIZE_AUTO_HEIGHT)); | |
42793 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_From_int((int)wxSIZE_AUTO)); | |
42794 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_From_int((int)wxSIZE_USE_EXISTING)); | |
42795 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_From_int((int)wxSIZE_ALLOW_MINUS_ONE)); | |
42796 | PyDict_SetItemString(d,"PORTRAIT", SWIG_From_int((int)wxPORTRAIT)); | |
42797 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_From_int((int)wxLANDSCAPE)); | |
42798 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_From_int((int)wxPRINT_QUALITY_HIGH)); | |
42799 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_From_int((int)wxPRINT_QUALITY_MEDIUM)); | |
42800 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_From_int((int)wxPRINT_QUALITY_LOW)); | |
42801 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_From_int((int)wxPRINT_QUALITY_DRAFT)); | |
42802 | PyDict_SetItemString(d,"ID_ANY", SWIG_From_int((int)wxID_ANY)); | |
42803 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_From_int((int)wxID_SEPARATOR)); | |
42804 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_From_int((int)wxID_LOWEST)); | |
42805 | PyDict_SetItemString(d,"ID_OPEN", SWIG_From_int((int)wxID_OPEN)); | |
42806 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_From_int((int)wxID_CLOSE)); | |
42807 | PyDict_SetItemString(d,"ID_NEW", SWIG_From_int((int)wxID_NEW)); | |
42808 | PyDict_SetItemString(d,"ID_SAVE", SWIG_From_int((int)wxID_SAVE)); | |
42809 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_From_int((int)wxID_SAVEAS)); | |
42810 | PyDict_SetItemString(d,"ID_REVERT", SWIG_From_int((int)wxID_REVERT)); | |
42811 | PyDict_SetItemString(d,"ID_EXIT", SWIG_From_int((int)wxID_EXIT)); | |
42812 | PyDict_SetItemString(d,"ID_UNDO", SWIG_From_int((int)wxID_UNDO)); | |
42813 | PyDict_SetItemString(d,"ID_REDO", SWIG_From_int((int)wxID_REDO)); | |
42814 | PyDict_SetItemString(d,"ID_HELP", SWIG_From_int((int)wxID_HELP)); | |
42815 | PyDict_SetItemString(d,"ID_PRINT", SWIG_From_int((int)wxID_PRINT)); | |
42816 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_From_int((int)wxID_PRINT_SETUP)); | |
42817 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_From_int((int)wxID_PREVIEW)); | |
42818 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_From_int((int)wxID_ABOUT)); | |
42819 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_From_int((int)wxID_HELP_CONTENTS)); | |
42820 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_From_int((int)wxID_HELP_COMMANDS)); | |
42821 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_From_int((int)wxID_HELP_PROCEDURES)); | |
42822 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_From_int((int)wxID_HELP_CONTEXT)); | |
42823 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_From_int((int)wxID_CLOSE_ALL)); | |
42824 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_From_int((int)wxID_PREFERENCES)); | |
42825 | PyDict_SetItemString(d,"ID_CUT", SWIG_From_int((int)wxID_CUT)); | |
42826 | PyDict_SetItemString(d,"ID_COPY", SWIG_From_int((int)wxID_COPY)); | |
42827 | PyDict_SetItemString(d,"ID_PASTE", SWIG_From_int((int)wxID_PASTE)); | |
42828 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_From_int((int)wxID_CLEAR)); | |
42829 | PyDict_SetItemString(d,"ID_FIND", SWIG_From_int((int)wxID_FIND)); | |
42830 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_From_int((int)wxID_DUPLICATE)); | |
42831 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_From_int((int)wxID_SELECTALL)); | |
42832 | PyDict_SetItemString(d,"ID_DELETE", SWIG_From_int((int)wxID_DELETE)); | |
42833 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_From_int((int)wxID_REPLACE)); | |
42834 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_From_int((int)wxID_REPLACE_ALL)); | |
42835 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_From_int((int)wxID_PROPERTIES)); | |
42836 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_From_int((int)wxID_VIEW_DETAILS)); | |
42837 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_From_int((int)wxID_VIEW_LARGEICONS)); | |
42838 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_From_int((int)wxID_VIEW_SMALLICONS)); | |
42839 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_From_int((int)wxID_VIEW_LIST)); | |
42840 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_From_int((int)wxID_VIEW_SORTDATE)); | |
42841 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_From_int((int)wxID_VIEW_SORTNAME)); | |
42842 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_From_int((int)wxID_VIEW_SORTSIZE)); | |
42843 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_From_int((int)wxID_VIEW_SORTTYPE)); | |
42844 | PyDict_SetItemString(d,"ID_FILE1", SWIG_From_int((int)wxID_FILE1)); | |
42845 | PyDict_SetItemString(d,"ID_FILE2", SWIG_From_int((int)wxID_FILE2)); | |
42846 | PyDict_SetItemString(d,"ID_FILE3", SWIG_From_int((int)wxID_FILE3)); | |
42847 | PyDict_SetItemString(d,"ID_FILE4", SWIG_From_int((int)wxID_FILE4)); | |
42848 | PyDict_SetItemString(d,"ID_FILE5", SWIG_From_int((int)wxID_FILE5)); | |
42849 | PyDict_SetItemString(d,"ID_FILE6", SWIG_From_int((int)wxID_FILE6)); | |
42850 | PyDict_SetItemString(d,"ID_FILE7", SWIG_From_int((int)wxID_FILE7)); | |
42851 | PyDict_SetItemString(d,"ID_FILE8", SWIG_From_int((int)wxID_FILE8)); | |
42852 | PyDict_SetItemString(d,"ID_FILE9", SWIG_From_int((int)wxID_FILE9)); | |
42853 | PyDict_SetItemString(d,"ID_OK", SWIG_From_int((int)wxID_OK)); | |
42854 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_From_int((int)wxID_CANCEL)); | |
42855 | PyDict_SetItemString(d,"ID_APPLY", SWIG_From_int((int)wxID_APPLY)); | |
42856 | PyDict_SetItemString(d,"ID_YES", SWIG_From_int((int)wxID_YES)); | |
42857 | PyDict_SetItemString(d,"ID_NO", SWIG_From_int((int)wxID_NO)); | |
42858 | PyDict_SetItemString(d,"ID_STATIC", SWIG_From_int((int)wxID_STATIC)); | |
42859 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_From_int((int)wxID_FORWARD)); | |
42860 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_From_int((int)wxID_BACKWARD)); | |
42861 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_From_int((int)wxID_DEFAULT)); | |
42862 | PyDict_SetItemString(d,"ID_MORE", SWIG_From_int((int)wxID_MORE)); | |
42863 | PyDict_SetItemString(d,"ID_SETUP", SWIG_From_int((int)wxID_SETUP)); | |
42864 | PyDict_SetItemString(d,"ID_RESET", SWIG_From_int((int)wxID_RESET)); | |
42865 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_From_int((int)wxID_CONTEXT_HELP)); | |
42866 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_From_int((int)wxID_YESTOALL)); | |
42867 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_From_int((int)wxID_NOTOALL)); | |
42868 | PyDict_SetItemString(d,"ID_ABORT", SWIG_From_int((int)wxID_ABORT)); | |
42869 | PyDict_SetItemString(d,"ID_RETRY", SWIG_From_int((int)wxID_RETRY)); | |
42870 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_From_int((int)wxID_IGNORE)); | |
42871 | PyDict_SetItemString(d,"ID_ADD", SWIG_From_int((int)wxID_ADD)); | |
42872 | PyDict_SetItemString(d,"ID_REMOVE", SWIG_From_int((int)wxID_REMOVE)); | |
42873 | PyDict_SetItemString(d,"ID_UP", SWIG_From_int((int)wxID_UP)); | |
42874 | PyDict_SetItemString(d,"ID_DOWN", SWIG_From_int((int)wxID_DOWN)); | |
42875 | PyDict_SetItemString(d,"ID_HOME", SWIG_From_int((int)wxID_HOME)); | |
42876 | PyDict_SetItemString(d,"ID_REFRESH", SWIG_From_int((int)wxID_REFRESH)); | |
42877 | PyDict_SetItemString(d,"ID_STOP", SWIG_From_int((int)wxID_STOP)); | |
42878 | PyDict_SetItemString(d,"ID_INDEX", SWIG_From_int((int)wxID_INDEX)); | |
42879 | PyDict_SetItemString(d,"ID_BOLD", SWIG_From_int((int)wxID_BOLD)); | |
42880 | PyDict_SetItemString(d,"ID_ITALIC", SWIG_From_int((int)wxID_ITALIC)); | |
42881 | PyDict_SetItemString(d,"ID_JUSTIFY_CENTER", SWIG_From_int((int)wxID_JUSTIFY_CENTER)); | |
42882 | PyDict_SetItemString(d,"ID_JUSTIFY_FILL", SWIG_From_int((int)wxID_JUSTIFY_FILL)); | |
42883 | PyDict_SetItemString(d,"ID_JUSTIFY_RIGHT", SWIG_From_int((int)wxID_JUSTIFY_RIGHT)); | |
42884 | PyDict_SetItemString(d,"ID_JUSTIFY_LEFT", SWIG_From_int((int)wxID_JUSTIFY_LEFT)); | |
42885 | PyDict_SetItemString(d,"ID_UNDERLINE", SWIG_From_int((int)wxID_UNDERLINE)); | |
42886 | PyDict_SetItemString(d,"ID_INDENT", SWIG_From_int((int)wxID_INDENT)); | |
42887 | PyDict_SetItemString(d,"ID_UNINDENT", SWIG_From_int((int)wxID_UNINDENT)); | |
42888 | PyDict_SetItemString(d,"ID_ZOOM_100", SWIG_From_int((int)wxID_ZOOM_100)); | |
42889 | PyDict_SetItemString(d,"ID_ZOOM_FIT", SWIG_From_int((int)wxID_ZOOM_FIT)); | |
42890 | PyDict_SetItemString(d,"ID_ZOOM_IN", SWIG_From_int((int)wxID_ZOOM_IN)); | |
42891 | PyDict_SetItemString(d,"ID_ZOOM_OUT", SWIG_From_int((int)wxID_ZOOM_OUT)); | |
42892 | PyDict_SetItemString(d,"ID_UNDELETE", SWIG_From_int((int)wxID_UNDELETE)); | |
42893 | PyDict_SetItemString(d,"ID_REVERT_TO_SAVED", SWIG_From_int((int)wxID_REVERT_TO_SAVED)); | |
42894 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_From_int((int)wxID_HIGHEST)); | |
42895 | PyDict_SetItemString(d,"OPEN", SWIG_From_int((int)wxOPEN)); | |
42896 | PyDict_SetItemString(d,"SAVE", SWIG_From_int((int)wxSAVE)); | |
42897 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_From_int((int)wxHIDE_READONLY)); | |
42898 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_From_int((int)wxOVERWRITE_PROMPT)); | |
42899 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_From_int((int)wxFILE_MUST_EXIST)); | |
42900 | PyDict_SetItemString(d,"MULTIPLE", SWIG_From_int((int)wxMULTIPLE)); | |
42901 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_From_int((int)wxCHANGE_DIR)); | |
42902 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_From_int((int)wxACCEL_ALT)); | |
42903 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_From_int((int)wxACCEL_CTRL)); | |
42904 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_From_int((int)wxACCEL_SHIFT)); | |
42905 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_From_int((int)wxACCEL_NORMAL)); | |
42906 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_From_int((int)wxPD_AUTO_HIDE)); | |
42907 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_From_int((int)wxPD_APP_MODAL)); | |
42908 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_From_int((int)wxPD_CAN_ABORT)); | |
42909 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_From_int((int)wxPD_ELAPSED_TIME)); | |
42910 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_From_int((int)wxPD_ESTIMATED_TIME)); | |
42911 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_From_int((int)wxPD_REMAINING_TIME)); | |
42912 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_From_int((int)wxDD_NEW_DIR_BUTTON)); | |
42913 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_From_int((int)wxDD_DEFAULT_STYLE)); | |
42914 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_From_int((int)wxMENU_TEAROFF)); | |
42915 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_From_int((int)wxMB_DOCKABLE)); | |
42916 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
42917 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)wxFULL_REPAINT_ON_RESIZE)); | |
42918 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_From_int((int)wxLI_HORIZONTAL)); | |
42919 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_From_int((int)wxLI_VERTICAL)); | |
42920 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_From_int((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
42921 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_From_int((int)wxWS_EX_BLOCK_EVENTS)); | |
42922 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_From_int((int)wxWS_EX_TRANSIENT)); | |
42923 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_From_int((int)wxWS_EX_THEMED_BACKGROUND)); | |
42924 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_From_int((int)wxWS_EX_PROCESS_IDLE)); | |
42925 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_From_int((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
42926 | PyDict_SetItemString(d,"MM_TEXT", SWIG_From_int((int)wxMM_TEXT)); | |
42927 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_From_int((int)wxMM_LOMETRIC)); | |
42928 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_From_int((int)wxMM_HIMETRIC)); | |
42929 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_From_int((int)wxMM_LOENGLISH)); | |
42930 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_From_int((int)wxMM_HIENGLISH)); | |
42931 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_From_int((int)wxMM_TWIPS)); | |
42932 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_From_int((int)wxMM_ISOTROPIC)); | |
42933 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_From_int((int)wxMM_ANISOTROPIC)); | |
42934 | PyDict_SetItemString(d,"MM_POINTS", SWIG_From_int((int)wxMM_POINTS)); | |
42935 | PyDict_SetItemString(d,"MM_METRIC", SWIG_From_int((int)wxMM_METRIC)); | |
42936 | PyDict_SetItemString(d,"CENTRE", SWIG_From_int((int)wxCENTRE)); | |
42937 | PyDict_SetItemString(d,"CENTER", SWIG_From_int((int)wxCENTER)); | |
42938 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_From_int((int)wxHORIZONTAL)); | |
42939 | PyDict_SetItemString(d,"VERTICAL", SWIG_From_int((int)wxVERTICAL)); | |
42940 | PyDict_SetItemString(d,"BOTH", SWIG_From_int((int)wxBOTH)); | |
42941 | PyDict_SetItemString(d,"LEFT", SWIG_From_int((int)wxLEFT)); | |
42942 | PyDict_SetItemString(d,"RIGHT", SWIG_From_int((int)wxRIGHT)); | |
42943 | PyDict_SetItemString(d,"UP", SWIG_From_int((int)wxUP)); | |
42944 | PyDict_SetItemString(d,"DOWN", SWIG_From_int((int)wxDOWN)); | |
42945 | PyDict_SetItemString(d,"TOP", SWIG_From_int((int)wxTOP)); | |
42946 | PyDict_SetItemString(d,"BOTTOM", SWIG_From_int((int)wxBOTTOM)); | |
42947 | PyDict_SetItemString(d,"NORTH", SWIG_From_int((int)wxNORTH)); | |
42948 | PyDict_SetItemString(d,"SOUTH", SWIG_From_int((int)wxSOUTH)); | |
42949 | PyDict_SetItemString(d,"WEST", SWIG_From_int((int)wxWEST)); | |
42950 | PyDict_SetItemString(d,"EAST", SWIG_From_int((int)wxEAST)); | |
42951 | PyDict_SetItemString(d,"ALL", SWIG_From_int((int)wxALL)); | |
42952 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_From_int((int)wxALIGN_NOT)); | |
42953 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_From_int((int)wxALIGN_CENTER_HORIZONTAL)); | |
42954 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_From_int((int)wxALIGN_CENTRE_HORIZONTAL)); | |
42955 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_From_int((int)wxALIGN_LEFT)); | |
42956 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_From_int((int)wxALIGN_TOP)); | |
42957 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_From_int((int)wxALIGN_RIGHT)); | |
42958 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_From_int((int)wxALIGN_BOTTOM)); | |
42959 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_From_int((int)wxALIGN_CENTER_VERTICAL)); | |
42960 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_From_int((int)wxALIGN_CENTRE_VERTICAL)); | |
42961 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_From_int((int)wxALIGN_CENTER)); | |
42962 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_From_int((int)wxALIGN_CENTRE)); | |
42963 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_From_int((int)wxALIGN_MASK)); | |
42964 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_From_int((int)wxSTRETCH_NOT)); | |
42965 | PyDict_SetItemString(d,"SHRINK", SWIG_From_int((int)wxSHRINK)); | |
42966 | PyDict_SetItemString(d,"GROW", SWIG_From_int((int)wxGROW)); | |
42967 | PyDict_SetItemString(d,"EXPAND", SWIG_From_int((int)wxEXPAND)); | |
42968 | PyDict_SetItemString(d,"SHAPED", SWIG_From_int((int)wxSHAPED)); | |
42969 | PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_From_int((int)wxFIXED_MINSIZE)); | |
42970 | PyDict_SetItemString(d,"TILE", SWIG_From_int((int)wxTILE)); | |
42971 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_From_int((int)wxADJUST_MINSIZE)); | |
42972 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_From_int((int)wxBORDER_DEFAULT)); | |
42973 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_From_int((int)wxBORDER_NONE)); | |
42974 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_From_int((int)wxBORDER_STATIC)); | |
42975 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_From_int((int)wxBORDER_SIMPLE)); | |
42976 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_From_int((int)wxBORDER_RAISED)); | |
42977 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_From_int((int)wxBORDER_SUNKEN)); | |
42978 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_From_int((int)wxBORDER_DOUBLE)); | |
42979 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_From_int((int)wxBORDER_MASK)); | |
42980 | PyDict_SetItemString(d,"BG_STYLE_SYSTEM", SWIG_From_int((int)wxBG_STYLE_SYSTEM)); | |
42981 | PyDict_SetItemString(d,"BG_STYLE_COLOUR", SWIG_From_int((int)wxBG_STYLE_COLOUR)); | |
42982 | PyDict_SetItemString(d,"BG_STYLE_CUSTOM", SWIG_From_int((int)wxBG_STYLE_CUSTOM)); | |
42983 | PyDict_SetItemString(d,"DEFAULT", SWIG_From_int((int)wxDEFAULT)); | |
42984 | PyDict_SetItemString(d,"DECORATIVE", SWIG_From_int((int)wxDECORATIVE)); | |
42985 | PyDict_SetItemString(d,"ROMAN", SWIG_From_int((int)wxROMAN)); | |
42986 | PyDict_SetItemString(d,"SCRIPT", SWIG_From_int((int)wxSCRIPT)); | |
42987 | PyDict_SetItemString(d,"SWISS", SWIG_From_int((int)wxSWISS)); | |
42988 | PyDict_SetItemString(d,"MODERN", SWIG_From_int((int)wxMODERN)); | |
42989 | PyDict_SetItemString(d,"TELETYPE", SWIG_From_int((int)wxTELETYPE)); | |
42990 | PyDict_SetItemString(d,"VARIABLE", SWIG_From_int((int)wxVARIABLE)); | |
42991 | PyDict_SetItemString(d,"FIXED", SWIG_From_int((int)wxFIXED)); | |
42992 | PyDict_SetItemString(d,"NORMAL", SWIG_From_int((int)wxNORMAL)); | |
42993 | PyDict_SetItemString(d,"LIGHT", SWIG_From_int((int)wxLIGHT)); | |
42994 | PyDict_SetItemString(d,"BOLD", SWIG_From_int((int)wxBOLD)); | |
42995 | PyDict_SetItemString(d,"ITALIC", SWIG_From_int((int)wxITALIC)); | |
42996 | PyDict_SetItemString(d,"SLANT", SWIG_From_int((int)wxSLANT)); | |
42997 | PyDict_SetItemString(d,"SOLID", SWIG_From_int((int)wxSOLID)); | |
42998 | PyDict_SetItemString(d,"DOT", SWIG_From_int((int)wxDOT)); | |
42999 | PyDict_SetItemString(d,"LONG_DASH", SWIG_From_int((int)wxLONG_DASH)); | |
43000 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_From_int((int)wxSHORT_DASH)); | |
43001 | PyDict_SetItemString(d,"DOT_DASH", SWIG_From_int((int)wxDOT_DASH)); | |
43002 | PyDict_SetItemString(d,"USER_DASH", SWIG_From_int((int)wxUSER_DASH)); | |
43003 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_From_int((int)wxTRANSPARENT)); | |
43004 | PyDict_SetItemString(d,"STIPPLE", SWIG_From_int((int)wxSTIPPLE)); | |
43005 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_From_int((int)wxBDIAGONAL_HATCH)); | |
43006 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_From_int((int)wxCROSSDIAG_HATCH)); | |
43007 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_From_int((int)wxFDIAGONAL_HATCH)); | |
43008 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_From_int((int)wxCROSS_HATCH)); | |
43009 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_From_int((int)wxHORIZONTAL_HATCH)); | |
43010 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_From_int((int)wxVERTICAL_HATCH)); | |
43011 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_From_int((int)wxJOIN_BEVEL)); | |
43012 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_From_int((int)wxJOIN_MITER)); | |
43013 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_From_int((int)wxJOIN_ROUND)); | |
43014 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_From_int((int)wxCAP_ROUND)); | |
43015 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_From_int((int)wxCAP_PROJECTING)); | |
43016 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_From_int((int)wxCAP_BUTT)); | |
43017 | PyDict_SetItemString(d,"CLEAR", SWIG_From_int((int)wxCLEAR)); | |
43018 | PyDict_SetItemString(d,"XOR", SWIG_From_int((int)wxXOR)); | |
43019 | PyDict_SetItemString(d,"INVERT", SWIG_From_int((int)wxINVERT)); | |
43020 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_From_int((int)wxOR_REVERSE)); | |
43021 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_From_int((int)wxAND_REVERSE)); | |
43022 | PyDict_SetItemString(d,"COPY", SWIG_From_int((int)wxCOPY)); | |
43023 | PyDict_SetItemString(d,"AND", SWIG_From_int((int)wxAND)); | |
43024 | PyDict_SetItemString(d,"AND_INVERT", SWIG_From_int((int)wxAND_INVERT)); | |
43025 | PyDict_SetItemString(d,"NO_OP", SWIG_From_int((int)wxNO_OP)); | |
43026 | PyDict_SetItemString(d,"NOR", SWIG_From_int((int)wxNOR)); | |
43027 | PyDict_SetItemString(d,"EQUIV", SWIG_From_int((int)wxEQUIV)); | |
43028 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_From_int((int)wxSRC_INVERT)); | |
43029 | PyDict_SetItemString(d,"OR_INVERT", SWIG_From_int((int)wxOR_INVERT)); | |
43030 | PyDict_SetItemString(d,"NAND", SWIG_From_int((int)wxNAND)); | |
43031 | PyDict_SetItemString(d,"OR", SWIG_From_int((int)wxOR)); | |
43032 | PyDict_SetItemString(d,"SET", SWIG_From_int((int)wxSET)); | |
43033 | PyDict_SetItemString(d,"WXK_BACK", SWIG_From_int((int)WXK_BACK)); | |
43034 | PyDict_SetItemString(d,"WXK_TAB", SWIG_From_int((int)WXK_TAB)); | |
43035 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_From_int((int)WXK_RETURN)); | |
43036 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_From_int((int)WXK_ESCAPE)); | |
43037 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_From_int((int)WXK_SPACE)); | |
43038 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_From_int((int)WXK_DELETE)); | |
43039 | PyDict_SetItemString(d,"WXK_START", SWIG_From_int((int)WXK_START)); | |
43040 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_From_int((int)WXK_LBUTTON)); | |
43041 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_From_int((int)WXK_RBUTTON)); | |
43042 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_From_int((int)WXK_CANCEL)); | |
43043 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_From_int((int)WXK_MBUTTON)); | |
43044 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_From_int((int)WXK_CLEAR)); | |
43045 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_From_int((int)WXK_SHIFT)); | |
43046 | PyDict_SetItemString(d,"WXK_ALT", SWIG_From_int((int)WXK_ALT)); | |
43047 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_From_int((int)WXK_CONTROL)); | |
43048 | PyDict_SetItemString(d,"WXK_MENU", SWIG_From_int((int)WXK_MENU)); | |
43049 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_From_int((int)WXK_PAUSE)); | |
43050 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_From_int((int)WXK_CAPITAL)); | |
43051 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_From_int((int)WXK_PRIOR)); | |
43052 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_From_int((int)WXK_NEXT)); | |
43053 | PyDict_SetItemString(d,"WXK_END", SWIG_From_int((int)WXK_END)); | |
43054 | PyDict_SetItemString(d,"WXK_HOME", SWIG_From_int((int)WXK_HOME)); | |
43055 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_From_int((int)WXK_LEFT)); | |
43056 | PyDict_SetItemString(d,"WXK_UP", SWIG_From_int((int)WXK_UP)); | |
43057 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_From_int((int)WXK_RIGHT)); | |
43058 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_From_int((int)WXK_DOWN)); | |
43059 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_From_int((int)WXK_SELECT)); | |
43060 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_From_int((int)WXK_PRINT)); | |
43061 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_From_int((int)WXK_EXECUTE)); | |
43062 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_From_int((int)WXK_SNAPSHOT)); | |
43063 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_From_int((int)WXK_INSERT)); | |
43064 | PyDict_SetItemString(d,"WXK_HELP", SWIG_From_int((int)WXK_HELP)); | |
43065 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_From_int((int)WXK_NUMPAD0)); | |
43066 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_From_int((int)WXK_NUMPAD1)); | |
43067 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_From_int((int)WXK_NUMPAD2)); | |
43068 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_From_int((int)WXK_NUMPAD3)); | |
43069 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_From_int((int)WXK_NUMPAD4)); | |
43070 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_From_int((int)WXK_NUMPAD5)); | |
43071 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_From_int((int)WXK_NUMPAD6)); | |
43072 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_From_int((int)WXK_NUMPAD7)); | |
43073 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_From_int((int)WXK_NUMPAD8)); | |
43074 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_From_int((int)WXK_NUMPAD9)); | |
43075 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_From_int((int)WXK_MULTIPLY)); | |
43076 | PyDict_SetItemString(d,"WXK_ADD", SWIG_From_int((int)WXK_ADD)); | |
43077 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_From_int((int)WXK_SEPARATOR)); | |
43078 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_From_int((int)WXK_SUBTRACT)); | |
43079 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_From_int((int)WXK_DECIMAL)); | |
43080 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_From_int((int)WXK_DIVIDE)); | |
43081 | PyDict_SetItemString(d,"WXK_F1", SWIG_From_int((int)WXK_F1)); | |
43082 | PyDict_SetItemString(d,"WXK_F2", SWIG_From_int((int)WXK_F2)); | |
43083 | PyDict_SetItemString(d,"WXK_F3", SWIG_From_int((int)WXK_F3)); | |
43084 | PyDict_SetItemString(d,"WXK_F4", SWIG_From_int((int)WXK_F4)); | |
43085 | PyDict_SetItemString(d,"WXK_F5", SWIG_From_int((int)WXK_F5)); | |
43086 | PyDict_SetItemString(d,"WXK_F6", SWIG_From_int((int)WXK_F6)); | |
43087 | PyDict_SetItemString(d,"WXK_F7", SWIG_From_int((int)WXK_F7)); | |
43088 | PyDict_SetItemString(d,"WXK_F8", SWIG_From_int((int)WXK_F8)); | |
43089 | PyDict_SetItemString(d,"WXK_F9", SWIG_From_int((int)WXK_F9)); | |
43090 | PyDict_SetItemString(d,"WXK_F10", SWIG_From_int((int)WXK_F10)); | |
43091 | PyDict_SetItemString(d,"WXK_F11", SWIG_From_int((int)WXK_F11)); | |
43092 | PyDict_SetItemString(d,"WXK_F12", SWIG_From_int((int)WXK_F12)); | |
43093 | PyDict_SetItemString(d,"WXK_F13", SWIG_From_int((int)WXK_F13)); | |
43094 | PyDict_SetItemString(d,"WXK_F14", SWIG_From_int((int)WXK_F14)); | |
43095 | PyDict_SetItemString(d,"WXK_F15", SWIG_From_int((int)WXK_F15)); | |
43096 | PyDict_SetItemString(d,"WXK_F16", SWIG_From_int((int)WXK_F16)); | |
43097 | PyDict_SetItemString(d,"WXK_F17", SWIG_From_int((int)WXK_F17)); | |
43098 | PyDict_SetItemString(d,"WXK_F18", SWIG_From_int((int)WXK_F18)); | |
43099 | PyDict_SetItemString(d,"WXK_F19", SWIG_From_int((int)WXK_F19)); | |
43100 | PyDict_SetItemString(d,"WXK_F20", SWIG_From_int((int)WXK_F20)); | |
43101 | PyDict_SetItemString(d,"WXK_F21", SWIG_From_int((int)WXK_F21)); | |
43102 | PyDict_SetItemString(d,"WXK_F22", SWIG_From_int((int)WXK_F22)); | |
43103 | PyDict_SetItemString(d,"WXK_F23", SWIG_From_int((int)WXK_F23)); | |
43104 | PyDict_SetItemString(d,"WXK_F24", SWIG_From_int((int)WXK_F24)); | |
43105 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_From_int((int)WXK_NUMLOCK)); | |
43106 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_From_int((int)WXK_SCROLL)); | |
43107 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_From_int((int)WXK_PAGEUP)); | |
43108 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_From_int((int)WXK_PAGEDOWN)); | |
43109 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_From_int((int)WXK_NUMPAD_SPACE)); | |
43110 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_From_int((int)WXK_NUMPAD_TAB)); | |
43111 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_From_int((int)WXK_NUMPAD_ENTER)); | |
43112 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_From_int((int)WXK_NUMPAD_F1)); | |
43113 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_From_int((int)WXK_NUMPAD_F2)); | |
43114 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_From_int((int)WXK_NUMPAD_F3)); | |
43115 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_From_int((int)WXK_NUMPAD_F4)); | |
43116 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_From_int((int)WXK_NUMPAD_HOME)); | |
43117 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_From_int((int)WXK_NUMPAD_LEFT)); | |
43118 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_From_int((int)WXK_NUMPAD_UP)); | |
43119 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_From_int((int)WXK_NUMPAD_RIGHT)); | |
43120 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_From_int((int)WXK_NUMPAD_DOWN)); | |
43121 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_From_int((int)WXK_NUMPAD_PRIOR)); | |
43122 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_From_int((int)WXK_NUMPAD_PAGEUP)); | |
43123 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_From_int((int)WXK_NUMPAD_NEXT)); | |
43124 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_From_int((int)WXK_NUMPAD_PAGEDOWN)); | |
43125 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_From_int((int)WXK_NUMPAD_END)); | |
43126 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_From_int((int)WXK_NUMPAD_BEGIN)); | |
43127 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_From_int((int)WXK_NUMPAD_INSERT)); | |
43128 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_From_int((int)WXK_NUMPAD_DELETE)); | |
43129 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_From_int((int)WXK_NUMPAD_EQUAL)); | |
43130 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_From_int((int)WXK_NUMPAD_MULTIPLY)); | |
43131 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_From_int((int)WXK_NUMPAD_ADD)); | |
43132 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_From_int((int)WXK_NUMPAD_SEPARATOR)); | |
43133 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_From_int((int)WXK_NUMPAD_SUBTRACT)); | |
43134 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_From_int((int)WXK_NUMPAD_DECIMAL)); | |
43135 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_From_int((int)WXK_NUMPAD_DIVIDE)); | |
43136 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_From_int((int)WXK_WINDOWS_LEFT)); | |
43137 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_From_int((int)WXK_WINDOWS_RIGHT)); | |
43138 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_From_int((int)WXK_WINDOWS_MENU)); | |
43139 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_From_int((int)wxPAPER_NONE)); | |
43140 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_From_int((int)wxPAPER_LETTER)); | |
43141 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_From_int((int)wxPAPER_LEGAL)); | |
43142 | PyDict_SetItemString(d,"PAPER_A4", SWIG_From_int((int)wxPAPER_A4)); | |
43143 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_From_int((int)wxPAPER_CSHEET)); | |
43144 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_From_int((int)wxPAPER_DSHEET)); | |
43145 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_From_int((int)wxPAPER_ESHEET)); | |
43146 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_From_int((int)wxPAPER_LETTERSMALL)); | |
43147 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_From_int((int)wxPAPER_TABLOID)); | |
43148 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_From_int((int)wxPAPER_LEDGER)); | |
43149 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_From_int((int)wxPAPER_STATEMENT)); | |
43150 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_From_int((int)wxPAPER_EXECUTIVE)); | |
43151 | PyDict_SetItemString(d,"PAPER_A3", SWIG_From_int((int)wxPAPER_A3)); | |
43152 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_From_int((int)wxPAPER_A4SMALL)); | |
43153 | PyDict_SetItemString(d,"PAPER_A5", SWIG_From_int((int)wxPAPER_A5)); | |
43154 | PyDict_SetItemString(d,"PAPER_B4", SWIG_From_int((int)wxPAPER_B4)); | |
43155 | PyDict_SetItemString(d,"PAPER_B5", SWIG_From_int((int)wxPAPER_B5)); | |
43156 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_From_int((int)wxPAPER_FOLIO)); | |
43157 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_From_int((int)wxPAPER_QUARTO)); | |
43158 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_From_int((int)wxPAPER_10X14)); | |
43159 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_From_int((int)wxPAPER_11X17)); | |
43160 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_From_int((int)wxPAPER_NOTE)); | |
43161 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_From_int((int)wxPAPER_ENV_9)); | |
43162 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_From_int((int)wxPAPER_ENV_10)); | |
43163 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_From_int((int)wxPAPER_ENV_11)); | |
43164 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_From_int((int)wxPAPER_ENV_12)); | |
43165 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_From_int((int)wxPAPER_ENV_14)); | |
43166 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_From_int((int)wxPAPER_ENV_DL)); | |
43167 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_From_int((int)wxPAPER_ENV_C5)); | |
43168 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_From_int((int)wxPAPER_ENV_C3)); | |
43169 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_From_int((int)wxPAPER_ENV_C4)); | |
43170 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_From_int((int)wxPAPER_ENV_C6)); | |
43171 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_From_int((int)wxPAPER_ENV_C65)); | |
43172 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_From_int((int)wxPAPER_ENV_B4)); | |
43173 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_From_int((int)wxPAPER_ENV_B5)); | |
43174 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_From_int((int)wxPAPER_ENV_B6)); | |
43175 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_From_int((int)wxPAPER_ENV_ITALY)); | |
43176 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_From_int((int)wxPAPER_ENV_MONARCH)); | |
43177 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_From_int((int)wxPAPER_ENV_PERSONAL)); | |
43178 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_From_int((int)wxPAPER_FANFOLD_US)); | |
43179 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_From_int((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
43180 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_From_int((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
43181 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_From_int((int)wxPAPER_ISO_B4)); | |
43182 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_From_int((int)wxPAPER_JAPANESE_POSTCARD)); | |
43183 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_From_int((int)wxPAPER_9X11)); | |
43184 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_From_int((int)wxPAPER_10X11)); | |
43185 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_From_int((int)wxPAPER_15X11)); | |
43186 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_From_int((int)wxPAPER_ENV_INVITE)); | |
43187 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_From_int((int)wxPAPER_LETTER_EXTRA)); | |
43188 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_From_int((int)wxPAPER_LEGAL_EXTRA)); | |
43189 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_From_int((int)wxPAPER_TABLOID_EXTRA)); | |
43190 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_From_int((int)wxPAPER_A4_EXTRA)); | |
43191 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_From_int((int)wxPAPER_LETTER_TRANSVERSE)); | |
43192 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_From_int((int)wxPAPER_A4_TRANSVERSE)); | |
43193 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_From_int((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
43194 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_From_int((int)wxPAPER_A_PLUS)); | |
43195 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_From_int((int)wxPAPER_B_PLUS)); | |
43196 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_From_int((int)wxPAPER_LETTER_PLUS)); | |
43197 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_From_int((int)wxPAPER_A4_PLUS)); | |
43198 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_From_int((int)wxPAPER_A5_TRANSVERSE)); | |
43199 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_From_int((int)wxPAPER_B5_TRANSVERSE)); | |
43200 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_From_int((int)wxPAPER_A3_EXTRA)); | |
43201 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_From_int((int)wxPAPER_A5_EXTRA)); | |
43202 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_From_int((int)wxPAPER_B5_EXTRA)); | |
43203 | PyDict_SetItemString(d,"PAPER_A2", SWIG_From_int((int)wxPAPER_A2)); | |
43204 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_From_int((int)wxPAPER_A3_TRANSVERSE)); | |
43205 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_From_int((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
43206 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_From_int((int)wxDUPLEX_SIMPLEX)); | |
43207 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_From_int((int)wxDUPLEX_HORIZONTAL)); | |
43208 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_From_int((int)wxDUPLEX_VERTICAL)); | |
43209 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_From_int((int)wxITEM_SEPARATOR)); | |
43210 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_From_int((int)wxITEM_NORMAL)); | |
43211 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_From_int((int)wxITEM_CHECK)); | |
43212 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_From_int((int)wxITEM_RADIO)); | |
43213 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_From_int((int)wxITEM_MAX)); | |
43214 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_From_int((int)wxHT_NOWHERE)); | |
43215 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_From_int((int)wxHT_SCROLLBAR_FIRST)); | |
43216 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
43217 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
43218 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
43219 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
43220 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_From_int((int)wxHT_SCROLLBAR_THUMB)); | |
43221 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_From_int((int)wxHT_SCROLLBAR_BAR_1)); | |
43222 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_From_int((int)wxHT_SCROLLBAR_BAR_2)); | |
43223 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_From_int((int)wxHT_SCROLLBAR_LAST)); | |
43224 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_From_int((int)wxHT_WINDOW_OUTSIDE)); | |
43225 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_From_int((int)wxHT_WINDOW_INSIDE)); | |
43226 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_From_int((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
43227 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_From_int((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
43228 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_From_int((int)wxHT_WINDOW_CORNER)); | |
43229 | PyDict_SetItemString(d,"HT_MAX", SWIG_From_int((int)wxHT_MAX)); | |
43230 | PyDict_SetItemString(d,"MOD_NONE", SWIG_From_int((int)wxMOD_NONE)); | |
43231 | PyDict_SetItemString(d,"MOD_ALT", SWIG_From_int((int)wxMOD_ALT)); | |
43232 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_From_int((int)wxMOD_CONTROL)); | |
43233 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_From_int((int)wxMOD_SHIFT)); | |
43234 | PyDict_SetItemString(d,"MOD_WIN", SWIG_From_int((int)wxMOD_WIN)); | |
43235 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_From_int((int)wxUPDATE_UI_NONE)); | |
43236 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_From_int((int)wxUPDATE_UI_RECURSE)); | |
43237 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_From_int((int)wxUPDATE_UI_FROMIDLE)); | |
d55e5bfc RD |
43238 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
43239 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); | |
c370783e RD |
43240 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_From_int((int)wxBITMAP_TYPE_INVALID)); |
43241 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_From_int((int)wxBITMAP_TYPE_BMP)); | |
43242 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_From_int((int)wxBITMAP_TYPE_ICO)); | |
43243 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_From_int((int)wxBITMAP_TYPE_CUR)); | |
43244 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_From_int((int)wxBITMAP_TYPE_XBM)); | |
43245 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_From_int((int)wxBITMAP_TYPE_XBM_DATA)); | |
43246 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_From_int((int)wxBITMAP_TYPE_XPM)); | |
43247 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_From_int((int)wxBITMAP_TYPE_XPM_DATA)); | |
43248 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_From_int((int)wxBITMAP_TYPE_TIF)); | |
43249 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_From_int((int)wxBITMAP_TYPE_GIF)); | |
43250 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_From_int((int)wxBITMAP_TYPE_PNG)); | |
43251 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_From_int((int)wxBITMAP_TYPE_JPEG)); | |
43252 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_From_int((int)wxBITMAP_TYPE_PNM)); | |
43253 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_From_int((int)wxBITMAP_TYPE_PCX)); | |
43254 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_From_int((int)wxBITMAP_TYPE_PICT)); | |
43255 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_From_int((int)wxBITMAP_TYPE_ICON)); | |
43256 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_From_int((int)wxBITMAP_TYPE_ANI)); | |
43257 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_From_int((int)wxBITMAP_TYPE_IFF)); | |
43258 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_From_int((int)wxBITMAP_TYPE_MACCURSOR)); | |
43259 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_From_int((int)wxBITMAP_TYPE_ANY)); | |
43260 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_From_int((int)wxCURSOR_NONE)); | |
43261 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_From_int((int)wxCURSOR_ARROW)); | |
43262 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_From_int((int)wxCURSOR_RIGHT_ARROW)); | |
43263 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_From_int((int)wxCURSOR_BULLSEYE)); | |
43264 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_From_int((int)wxCURSOR_CHAR)); | |
43265 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_From_int((int)wxCURSOR_CROSS)); | |
43266 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_From_int((int)wxCURSOR_HAND)); | |
43267 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_From_int((int)wxCURSOR_IBEAM)); | |
43268 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_From_int((int)wxCURSOR_LEFT_BUTTON)); | |
43269 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_From_int((int)wxCURSOR_MAGNIFIER)); | |
43270 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_From_int((int)wxCURSOR_MIDDLE_BUTTON)); | |
43271 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_From_int((int)wxCURSOR_NO_ENTRY)); | |
43272 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_From_int((int)wxCURSOR_PAINT_BRUSH)); | |
43273 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_From_int((int)wxCURSOR_PENCIL)); | |
43274 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_From_int((int)wxCURSOR_POINT_LEFT)); | |
43275 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_From_int((int)wxCURSOR_POINT_RIGHT)); | |
43276 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_From_int((int)wxCURSOR_QUESTION_ARROW)); | |
43277 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_From_int((int)wxCURSOR_RIGHT_BUTTON)); | |
43278 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_From_int((int)wxCURSOR_SIZENESW)); | |
43279 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_From_int((int)wxCURSOR_SIZENS)); | |
43280 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_From_int((int)wxCURSOR_SIZENWSE)); | |
43281 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_From_int((int)wxCURSOR_SIZEWE)); | |
43282 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_From_int((int)wxCURSOR_SIZING)); | |
43283 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_From_int((int)wxCURSOR_SPRAYCAN)); | |
43284 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_From_int((int)wxCURSOR_WAIT)); | |
43285 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_From_int((int)wxCURSOR_WATCH)); | |
43286 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_From_int((int)wxCURSOR_BLANK)); | |
43287 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_From_int((int)wxCURSOR_DEFAULT)); | |
43288 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_From_int((int)wxCURSOR_COPY_ARROW)); | |
43289 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_From_int((int)wxCURSOR_ARROWWAIT)); | |
43290 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_From_int((int)wxCURSOR_MAX)); | |
d55e5bfc RD |
43291 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); |
43292 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
c370783e RD |
43293 | PyDict_SetItemString(d,"FromStart", SWIG_From_int((int)wxFromStart)); |
43294 | PyDict_SetItemString(d,"FromCurrent", SWIG_From_int((int)wxFromCurrent)); | |
43295 | PyDict_SetItemString(d,"FromEnd", SWIG_From_int((int)wxFromEnd)); | |
d55e5bfc RD |
43296 | |
43297 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
43298 | ||
43299 | ||
43300 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
43301 | ||
43302 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
43303 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
43304 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
43305 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
43306 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
43307 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
c370783e RD |
43308 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_From_int((int)wxIMAGE_RESOLUTION_INCHES)); |
43309 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_From_int((int)wxIMAGE_RESOLUTION_CM)); | |
43310 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_From_int((int)wxBMP_24BPP)); | |
43311 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_From_int((int)wxBMP_8BPP)); | |
43312 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_From_int((int)wxBMP_8BPP_GREY)); | |
43313 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_From_int((int)wxBMP_8BPP_GRAY)); | |
43314 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_From_int((int)wxBMP_8BPP_RED)); | |
43315 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_From_int((int)wxBMP_8BPP_PALETTE)); | |
43316 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_From_int((int)wxBMP_4BPP)); | |
43317 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_From_int((int)wxBMP_1BPP)); | |
43318 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_From_int((int)wxBMP_1BPP_BW)); | |
43319 | PyDict_SetItemString(d,"QUANTIZE_INCLUDE_WINDOWS_COLOURS", SWIG_From_int((int)wxQUANTIZE_INCLUDE_WINDOWS_COLOURS)); | |
43320 | PyDict_SetItemString(d,"QUANTIZE_FILL_DESTINATION_IMAGE", SWIG_From_int((int)wxQUANTIZE_FILL_DESTINATION_IMAGE)); | |
43321 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_From_int((int)wxEVENT_PROPAGATE_NONE)); | |
43322 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_From_int((int)wxEVENT_PROPAGATE_MAX)); | |
d55e5bfc RD |
43323 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); |
43324 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
43325 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
43326 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
43327 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
43328 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
43329 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
43330 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
43331 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
43332 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
43333 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
43334 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
43335 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
43336 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
43337 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
43338 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
43339 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
43340 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
43341 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
43342 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
43343 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
43344 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
43345 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
43346 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
43347 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
43348 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
43349 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
43350 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
43351 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
43352 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
43353 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
43354 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
43355 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
43356 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
43357 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
43358 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
43359 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
43360 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
43361 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
43362 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
43363 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
43364 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
43365 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
43366 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
43367 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
43368 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
43369 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
43370 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
43371 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
43372 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
43373 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
43374 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
43375 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
43376 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
43377 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
43378 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
43379 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
43380 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
43381 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
43382 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
43383 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
43384 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
43385 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
43386 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
43387 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
43388 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
43389 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
43390 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
43391 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
43392 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
43393 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
43394 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
43395 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
43396 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
43397 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
43398 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
43399 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
43400 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
43401 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
43402 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
43403 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
43404 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
43405 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
43406 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
43407 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
43408 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
43409 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
43410 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
43411 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
43412 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
43413 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
43414 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
43415 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
43416 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
43417 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
43418 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
43419 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
43420 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
43421 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
43422 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
43423 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
43424 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
43425 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
43426 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
43427 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
43428 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
43429 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
43430 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
43431 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
43432 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
43433 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
43434 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
43435 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
43436 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
c370783e RD |
43437 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_From_int((int)wxMOUSE_BTN_ANY)); |
43438 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_From_int((int)wxMOUSE_BTN_NONE)); | |
43439 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_From_int((int)wxMOUSE_BTN_LEFT)); | |
43440 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_From_int((int)wxMOUSE_BTN_MIDDLE)); | |
43441 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_From_int((int)wxMOUSE_BTN_RIGHT)); | |
43442 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_From_int((int)wxUPDATE_UI_PROCESS_ALL)); | |
43443 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_From_int((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
43444 | PyDict_SetItemString(d,"NavigationKeyEvent_IsBackward", SWIG_From_int((int)wxNavigationKeyEvent::IsBackward)); | |
43445 | PyDict_SetItemString(d,"NavigationKeyEvent_IsForward", SWIG_From_int((int)wxNavigationKeyEvent::IsForward)); | |
43446 | PyDict_SetItemString(d,"NavigationKeyEvent_WinChange", SWIG_From_int((int)wxNavigationKeyEvent::WinChange)); | |
43447 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_From_int((int)wxIDLE_PROCESS_ALL)); | |
43448 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_From_int((int)wxIDLE_PROCESS_SPECIFIED)); | |
43449 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_From_int((int)wxPYAPP_ASSERT_SUPPRESS)); | |
43450 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_From_int((int)wxPYAPP_ASSERT_EXCEPTION)); | |
43451 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_From_int((int)wxPYAPP_ASSERT_DIALOG)); | |
43452 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_From_int((int)wxPYAPP_ASSERT_LOG)); | |
43453 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_From_int((int)wxPRINT_WINDOWS)); | |
43454 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_From_int((int)wxPRINT_POSTSCRIPT)); | |
d55e5bfc RD |
43455 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); |
43456 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); | |
c370783e RD |
43457 | PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_From_int((int)wxWINDOW_VARIANT_NORMAL)); |
43458 | PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_From_int((int)wxWINDOW_VARIANT_SMALL)); | |
43459 | PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_From_int((int)wxWINDOW_VARIANT_MINI)); | |
43460 | PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_From_int((int)wxWINDOW_VARIANT_LARGE)); | |
43461 | PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_From_int((int)wxWINDOW_VARIANT_MAX)); | |
d55e5bfc RD |
43462 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); |
43463 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); | |
c370783e RD |
43464 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_From_int((int)wxFLEX_GROWMODE_NONE)); |
43465 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_From_int((int)wxFLEX_GROWMODE_SPECIFIED)); | |
43466 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_From_int((int)wxFLEX_GROWMODE_ALL)); | |
d55e5bfc | 43467 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); |
c370783e RD |
43468 | PyDict_SetItemString(d,"Left", SWIG_From_int((int)wxLeft)); |
43469 | PyDict_SetItemString(d,"Top", SWIG_From_int((int)wxTop)); | |
43470 | PyDict_SetItemString(d,"Right", SWIG_From_int((int)wxRight)); | |
43471 | PyDict_SetItemString(d,"Bottom", SWIG_From_int((int)wxBottom)); | |
43472 | PyDict_SetItemString(d,"Width", SWIG_From_int((int)wxWidth)); | |
43473 | PyDict_SetItemString(d,"Height", SWIG_From_int((int)wxHeight)); | |
43474 | PyDict_SetItemString(d,"Centre", SWIG_From_int((int)wxCentre)); | |
43475 | PyDict_SetItemString(d,"Center", SWIG_From_int((int)wxCenter)); | |
43476 | PyDict_SetItemString(d,"CentreX", SWIG_From_int((int)wxCentreX)); | |
43477 | PyDict_SetItemString(d,"CentreY", SWIG_From_int((int)wxCentreY)); | |
43478 | PyDict_SetItemString(d,"Unconstrained", SWIG_From_int((int)wxUnconstrained)); | |
43479 | PyDict_SetItemString(d,"AsIs", SWIG_From_int((int)wxAsIs)); | |
43480 | PyDict_SetItemString(d,"PercentOf", SWIG_From_int((int)wxPercentOf)); | |
43481 | PyDict_SetItemString(d,"Above", SWIG_From_int((int)wxAbove)); | |
43482 | PyDict_SetItemString(d,"Below", SWIG_From_int((int)wxBelow)); | |
43483 | PyDict_SetItemString(d,"LeftOf", SWIG_From_int((int)wxLeftOf)); | |
43484 | PyDict_SetItemString(d,"RightOf", SWIG_From_int((int)wxRightOf)); | |
43485 | PyDict_SetItemString(d,"SameAs", SWIG_From_int((int)wxSameAs)); | |
43486 | PyDict_SetItemString(d,"Absolute", SWIG_From_int((int)wxAbsolute)); | |
d55e5bfc RD |
43487 | |
43488 | // Initialize threading, some globals and such | |
43489 | __wxPyPreStart(d); | |
43490 | ||
43491 | ||
43492 | // Although these are defined in __version__ they need to be here too so | |
43493 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
43494 | // versions match. | |
43495 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
43496 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
43497 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
43498 | ||
43499 | } | |
43500 |