]>
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 | 1258 | } |
03e46024 RD |
1259 | wxImage *new_wxImage(int width,int height,unsigned char *data,unsigned char *alpha){ |
1260 | // Copy the source data so the wxImage can clean it up later | |
1261 | unsigned char* dcopy = (unsigned char*)malloc(width*height*3); | |
1262 | if (dcopy == NULL) { | |
1263 | PyErr_NoMemory(); | |
1264 | return NULL; | |
1265 | } | |
1266 | memcpy(dcopy, data, width*height*3); | |
1267 | unsigned char* acopy = (unsigned char*)malloc(width*height); | |
1268 | if (acopy == NULL) { | |
1269 | PyErr_NoMemory(); | |
1270 | return NULL; | |
1271 | } | |
1272 | memcpy(acopy, alpha, width*height); | |
1273 | ||
1274 | return new wxImage(width, height, dcopy, acopy, false); | |
1275 | } | |
d55e5bfc RD |
1276 | wxSize wxImage_GetSize(wxImage *self){ |
1277 | wxSize size(self->GetWidth(), self->GetHeight()); | |
1278 | return size; | |
1279 | } | |
1280 | PyObject *wxImage_GetData(wxImage *self){ | |
1281 | unsigned char* data = self->GetData(); | |
1282 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1283 | PyObject* rv; | |
1284 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len)); | |
1285 | return rv; | |
1286 | } | |
1287 | void wxImage_SetData(wxImage *self,PyObject *data){ | |
1288 | unsigned char* dataPtr; | |
1289 | ||
1290 | if (! PyString_Check(data)) { | |
b411df4a RD |
1291 | wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError, |
1292 | "Expected string object")); | |
d55e5bfc RD |
1293 | return /* NULL */ ; |
1294 | } | |
1295 | ||
1296 | size_t len = self->GetWidth() * self->GetHeight() * 3; | |
1297 | dataPtr = (unsigned char*) malloc(len); | |
1298 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1299 | self->SetData(dataPtr); | |
1300 | // wxImage takes ownership of dataPtr... | |
1301 | } | |
1302 | PyObject *wxImage_GetDataBuffer(wxImage *self){ | |
1303 | unsigned char* data = self->GetData(); | |
1304 | int len = self->GetWidth() * self->GetHeight() * 3; | |
1305 | PyObject* rv; | |
1306 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1307 | return rv; | |
1308 | } | |
1309 | void wxImage_SetDataBuffer(wxImage *self,PyObject *data){ | |
1310 | unsigned char* buffer; | |
1311 | int size; | |
1312 | ||
1313 | bool blocked = wxPyBeginBlockThreads(); | |
1314 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1315 | goto done; | |
1316 | ||
1317 | if (size != self->GetWidth() * self->GetHeight() * 3) { | |
1318 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1319 | goto done; | |
1320 | } | |
1321 | self->SetData(buffer); | |
1322 | done: | |
1323 | wxPyEndBlockThreads(blocked); | |
1324 | } | |
1325 | PyObject *wxImage_GetAlphaData(wxImage *self){ | |
1326 | unsigned char* data = self->GetAlpha(); | |
1327 | if (! data) { | |
1328 | RETURN_NONE(); | |
1329 | } else { | |
1330 | int len = self->GetWidth() * self->GetHeight(); | |
1331 | PyObject* rv; | |
1332 | wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) ); | |
1333 | return rv; | |
1334 | } | |
1335 | } | |
1336 | void wxImage_SetAlphaData(wxImage *self,PyObject *data){ | |
1337 | unsigned char* dataPtr; | |
1338 | ||
1339 | if (! PyString_Check(data)) { | |
1340 | PyErr_SetString(PyExc_TypeError, "Expected string object"); | |
1341 | return /* NULL */ ; | |
1342 | } | |
1343 | ||
1344 | size_t len = self->GetWidth() * self->GetHeight(); | |
1345 | dataPtr = (unsigned char*) malloc(len); | |
1346 | wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) ); | |
1347 | self->SetAlpha(dataPtr); | |
1348 | // wxImage takes ownership of dataPtr... | |
1349 | } | |
1350 | PyObject *wxImage_GetAlphaBuffer(wxImage *self){ | |
1351 | unsigned char* data = self->GetAlpha(); | |
1352 | int len = self->GetWidth() * self->GetHeight(); | |
1353 | PyObject* rv; | |
1354 | wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) ); | |
1355 | return rv; | |
1356 | } | |
1357 | void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){ | |
1358 | unsigned char* buffer; | |
1359 | int size; | |
1360 | ||
1361 | bool blocked = wxPyBeginBlockThreads(); | |
1362 | if (!PyArg_Parse(data, "t#", &buffer, &size)) | |
1363 | goto done; | |
1364 | ||
1365 | if (size != self->GetWidth() * self->GetHeight()) { | |
1366 | PyErr_SetString(PyExc_TypeError, "Incorrect buffer size"); | |
1367 | goto done; | |
1368 | } | |
1369 | self->SetAlpha(buffer); | |
1370 | done: | |
1371 | wxPyEndBlockThreads(blocked); | |
1372 | } | |
1373 | ||
c370783e RD |
1374 | SWIGSTATICINLINE(unsigned long) |
1375 | SWIG_As_unsigned_SS_long(PyObject* obj) | |
d55e5bfc | 1376 | { |
c370783e RD |
1377 | unsigned long v; |
1378 | if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1379 | /* | |
1380 | this is needed to make valgrind/purify happier. the other | |
1381 | solution is throw an exception, but since this code should work | |
1382 | with plain C .... | |
1383 | */ | |
1384 | memset((void*)&v, 0, sizeof(unsigned long)); | |
d55e5bfc | 1385 | } |
c370783e RD |
1386 | return v; |
1387 | } | |
1388 | ||
1389 | ||
1390 | SWIGSTATICINLINE(int) | |
1391 | SWIG_Check_unsigned_SS_long(PyObject* obj) | |
1392 | { | |
1393 | return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0); | |
d55e5bfc RD |
1394 | } |
1395 | ||
44bf767a RD |
1396 | wxBitmap wxImage_ConvertToBitmap(wxImage *self,int depth){ |
1397 | wxBitmap bitmap(*self, depth); | |
d55e5bfc RD |
1398 | return bitmap; |
1399 | } | |
1400 | wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){ | |
1401 | wxImage mono = self->ConvertToMono( red, green, blue ); | |
1402 | wxBitmap bitmap( mono, 1 ); | |
1403 | return bitmap; | |
1404 | } | |
1405 | static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT); | |
1406 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X); | |
1407 | static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y); | |
1408 | static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION); | |
1409 | static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT); | |
c0de73ae RD |
1410 | |
1411 | #include <wx/quantize.h> | |
1412 | ||
1413 | bool Quantize_Quantize(wxImage const &src,wxImage &dest,int desiredNoColours,int flags){ | |
1414 | return wxQuantize::Quantize(src, dest, | |
1415 | //NULL, // palette | |
1416 | desiredNoColours, | |
1417 | NULL, // eightBitData | |
1418 | flags); | |
1419 | } | |
d55e5bfc RD |
1420 | void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){ |
1421 | if (PyCallable_Check(func)) { | |
1422 | self->Connect(id, lastId, eventType, | |
1423 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
1424 | new wxPyCallback(func)); | |
1425 | } | |
1426 | else if (func == Py_None) { | |
1427 | self->Disconnect(id, lastId, eventType, | |
1428 | (wxObjectEventFunction) | |
1429 | &wxPyCallback::EventThunker); | |
1430 | } | |
1431 | else { | |
1432 | wxPyBLOCK_THREADS( | |
1433 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None.")); | |
1434 | } | |
1435 | } | |
1436 | bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){ | |
1437 | return self->Disconnect(id, lastId, eventType, | |
1438 | (wxObjectEventFunction) | |
1439 | &wxPyCallback::EventThunker); | |
1440 | } | |
1441 | void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){ | |
1442 | if (_self && _self != Py_None) { | |
1443 | self->SetClientObject(new wxPyOORClientData(_self)); | |
1444 | } | |
1445 | else { | |
1446 | wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject(); | |
1447 | if (data) { | |
1448 | self->SetClientObject(NULL); // This will delete it too | |
1449 | } | |
1450 | } | |
1451 | } | |
c370783e | 1452 | |
bb4524c4 | 1453 | int wxKeyEvent_GetUnicodeKey(wxKeyEvent *self){ |
d55e5bfc | 1454 | #if wxUSE_UNICODE |
bb4524c4 | 1455 | return self->GetUnicodeKey(); |
d55e5bfc RD |
1456 | #else |
1457 | return 0; | |
1458 | #endif | |
1459 | } | |
1460 | ||
1461 | #if UINT_MAX < LONG_MAX | |
c370783e RD |
1462 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
1463 | #define SWIG_From_unsigned_SS_int SWIG_From_long | |
1464 | /*@@*/ | |
d55e5bfc | 1465 | #else |
c370783e RD |
1466 | /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/ |
1467 | #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long | |
1468 | /*@@*/ | |
d55e5bfc RD |
1469 | #endif |
1470 | ||
1471 | ||
1472 | #if UINT_MAX != ULONG_MAX | |
c370783e RD |
1473 | SWIGSTATICINLINE(int) |
1474 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
d55e5bfc | 1475 | { |
c370783e RD |
1476 | const char* errmsg = val ? "unsigned int" : 0; |
1477 | unsigned long v; | |
1478 | if (SWIG_AsVal_unsigned_SS_long(obj, &v)) { | |
1479 | if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) { | |
1480 | if (val) *val = swig_numeric_cast(v, unsigned int); | |
1481 | return 1; | |
1482 | } | |
1483 | } else { | |
1484 | PyErr_Clear(); | |
1485 | } | |
1486 | if (val) { | |
1487 | PyErr_SetString(PyExc_TypeError, "an unsigned int is expected"); | |
1488 | } | |
1489 | return 0; | |
d55e5bfc RD |
1490 | } |
1491 | #else | |
c370783e RD |
1492 | SWIGSTATICINLINE(unsigned int) |
1493 | SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val) | |
1494 | { | |
1495 | return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val); | |
1496 | } | |
d55e5bfc RD |
1497 | #endif |
1498 | ||
1499 | ||
c370783e RD |
1500 | SWIGSTATICINLINE(unsigned int) |
1501 | SWIG_As_unsigned_SS_int(PyObject* obj) | |
d55e5bfc | 1502 | { |
c370783e RD |
1503 | unsigned int v; |
1504 | if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) { | |
1505 | /* | |
1506 | this is needed to make valgrind/purify happier. the other | |
1507 | solution is throw an exception, but since this code should work | |
1508 | with plain C .... | |
1509 | */ | |
1510 | memset((void*)&v, 0, sizeof(unsigned int)); | |
d55e5bfc | 1511 | } |
c370783e RD |
1512 | return v; |
1513 | } | |
1514 | ||
1515 | ||
1516 | SWIGSTATICINLINE(int) | |
1517 | SWIG_Check_unsigned_SS_int(PyObject* obj) | |
1518 | { | |
1519 | return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0); | |
d55e5bfc RD |
1520 | } |
1521 | ||
1522 | void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){ | |
1523 | self->m_size = size; | |
1524 | } | |
1525 | void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){ | |
1526 | self->m_pos = pos; | |
1527 | } | |
1528 | PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){ | |
1529 | int count = self->GetNumberOfFiles(); | |
1530 | wxString* files = self->GetFiles(); | |
1531 | PyObject* list = PyList_New(count); | |
1532 | ||
1533 | if (!list) { | |
1534 | PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!"); | |
1535 | return NULL; | |
1536 | } | |
1537 | ||
1538 | for (int i=0; i<count; i++) { | |
1539 | PyList_SetItem(list, i, wx2PyString(files[i])); | |
1540 | } | |
1541 | return list; | |
1542 | } | |
1543 | ||
1544 | ||
1545 | wxPyApp *new_wxPyApp(){ | |
1546 | wxPythonApp = new wxPyApp(); | |
1547 | return wxPythonApp; | |
1548 | } | |
1549 | int PyApp_GetComCtl32Version(){ wxPyRaiseNotImplemented(); return 0; } | |
1550 | ||
1551 | void wxApp_CleanUp() { | |
1552 | __wxPyCleanup(); | |
1553 | } | |
1554 | ||
1555 | ||
a5ee0656 | 1556 | wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; } |
d55e5bfc RD |
1557 | |
1558 | ||
5cbf236d RD |
1559 | SWIGSTATICINLINE(int) |
1560 | SWIG_AsCharPtr(PyObject *obj, char **val) | |
1561 | { | |
1562 | char* cptr = 0; | |
1563 | if (SWIG_AsCharPtrAndSize(obj, &cptr, (size_t*)(0))) { | |
1564 | if (val) *val = cptr; | |
1565 | return 1; | |
1566 | } | |
1567 | if (val) { | |
1568 | PyErr_SetString(PyExc_TypeError, "a char* is expected"); | |
1569 | } | |
1570 | return 0; | |
1571 | } | |
1572 | ||
1573 | ||
1574 | SWIGSTATICINLINE(PyObject *) | |
1575 | SWIG_FromCharPtr(const char* cptr) | |
1576 | { | |
1577 | if (cptr) { | |
1578 | size_t size = strlen(cptr); | |
1579 | if (size > INT_MAX) { | |
1580 | return SWIG_NewPointerObj(swig_const_cast(cptr,char*), | |
1581 | SWIG_TypeQuery("char *"), 0); | |
1582 | } else { | |
1583 | if (size != 0) { | |
1584 | return PyString_FromStringAndSize(cptr, size); | |
1585 | } else { | |
1586 | return PyString_FromString(cptr); | |
1587 | } | |
1588 | } | |
1589 | } | |
1590 | Py_INCREF(Py_None); | |
1591 | return Py_None; | |
1592 | } | |
1593 | ||
1594 | ||
b411df4a RD |
1595 | #ifdef __WXMAC__ |
1596 | ||
1597 | // A dummy class that raises an exception if used... | |
1598 | class wxEventLoop | |
1599 | { | |
1600 | public: | |
1601 | wxEventLoop() { wxPyRaiseNotImplemented(); } | |
1602 | int Run() { return 0; } | |
1603 | void Exit(int rc = 0) {} | |
1604 | bool Pending() const { return false; } | |
1605 | bool Dispatch() { return false; } | |
1606 | bool IsRunning() const { return false; } | |
1607 | static wxEventLoop *GetActive() { wxPyRaiseNotImplemented(); return NULL; } | |
1608 | static void SetActive(wxEventLoop* loop) { wxPyRaiseNotImplemented(); } | |
1609 | }; | |
1610 | ||
1611 | #else | |
1612 | ||
1613 | #include <wx/evtloop.h> | |
1614 | ||
1615 | #endif | |
1616 | ||
1617 | ||
d55e5bfc RD |
1618 | |
1619 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
1620 | wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; } | |
f20a2e1f | 1621 | void delete_wxVisualAttributes(wxVisualAttributes *self){ delete self; } |
d55e5bfc RD |
1622 | PyObject *wxWindow_GetChildren(wxWindow *self){ |
1623 | wxWindowList& list = self->GetChildren(); | |
1624 | return wxPy_ConvertList(&list); | |
1625 | } | |
1626 | bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){ | |
1627 | #if wxUSE_HOTKEY | |
1628 | return self->RegisterHotKey(hotkeyId, modifiers, keycode); | |
1629 | #else | |
b411df4a | 1630 | return false; |
d55e5bfc RD |
1631 | #endif |
1632 | } | |
1633 | bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){ | |
1634 | ||
1635 | ||
1636 | ||
b411df4a | 1637 | return false; |
d55e5bfc RD |
1638 | |
1639 | } | |
1640 | long wxWindow_GetHandle(wxWindow *self){ | |
1641 | return wxPyGetWinHandle(self); | |
1642 | } | |
629e65c2 RD |
1643 | void wxWindow_AssociateHandle(wxWindow *self,long handle){ |
1644 | self->AssociateHandle((WXWidget)handle); | |
1645 | } | |
d55e5bfc RD |
1646 | |
1647 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
1648 | return wxWindow::FindWindowById(id, parent); | |
1649 | } | |
1650 | ||
1651 | wxWindow* wxFindWindowByName( const wxString& name, | |
1652 | const wxWindow *parent = NULL ) { | |
1653 | return wxWindow::FindWindowByName(name, parent); | |
1654 | } | |
1655 | ||
1656 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
1657 | const wxWindow *parent = NULL ) { | |
1658 | return wxWindow::FindWindowByLabel(label, parent); | |
1659 | } | |
1660 | ||
1661 | ||
1662 | #ifdef __WXMSW__ | |
1663 | #include <wx/msw/private.h> // to get wxGetWindowId | |
1664 | #endif | |
1665 | ||
1666 | ||
1667 | wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) { | |
1668 | #ifdef __WXMSW__ | |
1669 | WXHWND hWnd = (WXHWND)_hWnd; | |
1670 | long id = wxGetWindowId(hWnd); | |
1671 | wxWindow* win = new wxWindow; | |
1672 | parent->AddChild(win); | |
1673 | win->SetEventHandler(win); | |
1674 | win->SetHWND(hWnd); | |
1675 | win->SetId(id); | |
1676 | win->SubclassWin(hWnd); | |
1677 | win->AdoptAttributesFromHWND(); | |
1678 | win->SetupColours(); | |
1679 | return win; | |
1680 | #else | |
1681 | wxPyRaiseNotImplemented(); | |
1682 | return NULL; | |
1683 | #endif | |
1684 | } | |
1685 | ||
1686 | ||
1687 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
1688 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
1689 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
1690 | ||
1691 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
1692 | ||
1693 | void wxMenu_Destroy(wxMenu *self){ delete self; } | |
1694 | PyObject *wxMenu_GetMenuItems(wxMenu *self){ | |
1695 | wxMenuItemList& list = self->GetMenuItems(); | |
1696 | return wxPy_ConvertList(&list); | |
1697 | } | |
1698 | int MenuItem_GetDefaultMarginWidth(){ return 0; } | |
1699 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
1700 | int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){ | |
1701 | if (clientData) { | |
1702 | wxPyClientData* data = new wxPyClientData(clientData); | |
1703 | return self->Append(item, data); | |
1704 | } else | |
1705 | return self->Append(item); | |
1706 | } | |
1707 | int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){ | |
1708 | if (clientData) { | |
1709 | wxPyClientData* data = new wxPyClientData(clientData); | |
1710 | return self->Insert(item, pos, data); | |
1711 | } else | |
1712 | return self->Insert(item, pos); | |
1713 | } | |
1714 | PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){ | |
1715 | wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n); | |
1716 | if (data) { | |
1717 | Py_INCREF(data->m_obj); | |
1718 | return data->m_obj; | |
1719 | } else { | |
1720 | Py_INCREF(Py_None); | |
1721 | return Py_None; | |
1722 | } | |
1723 | } | |
1724 | void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){ | |
1725 | wxPyClientData* data = new wxPyClientData(clientData); | |
1726 | self->SetClientObject(n, data); | |
1727 | } | |
1728 | ||
1729 | ||
bfddbb17 RD |
1730 | wxSizerItem *new_wxSizerItem(wxWindow *window,int proportion,int flag,int border,PyObject *userData){ |
1731 | wxPyUserData* data = NULL; | |
1732 | if ( userData ) { | |
1733 | bool blocked = wxPyBeginBlockThreads(); | |
1734 | data = new wxPyUserData(userData); | |
1735 | wxPyEndBlockThreads(blocked); | |
1736 | } | |
1737 | return new wxSizerItem(window, proportion, flag, border, data); | |
1738 | } | |
1739 | wxSizerItem *new_wxSizerItem(int width,int height,int proportion,int flag,int border,PyObject *userData){ | |
1740 | wxPyUserData* data = NULL; | |
1741 | if ( userData ) { | |
1742 | bool blocked = wxPyBeginBlockThreads(); | |
1743 | data = new wxPyUserData(userData); | |
1744 | wxPyEndBlockThreads(blocked); | |
1745 | } | |
1746 | return new wxSizerItem(width, height, proportion, flag, border, data); | |
1747 | } | |
1748 | wxSizerItem *new_wxSizerItem(wxSizer *sizer,int proportion,int flag,int border,PyObject *userData){ | |
1749 | wxPyUserData* data = NULL; | |
1750 | if ( userData ) { | |
1751 | bool blocked = wxPyBeginBlockThreads(); | |
1752 | data = new wxPyUserData(userData); | |
1753 | wxPyEndBlockThreads(blocked); | |
1754 | } | |
1755 | return new wxSizerItem(sizer, proportion, flag, border, data); | |
1756 | } | |
d55e5bfc RD |
1757 | |
1758 | #include <float.h> | |
c370783e RD |
1759 | SWIGSTATICINLINE(int) |
1760 | SWIG_CheckDoubleInRange(double value, double min_value, | |
1761 | double max_value, const char* errmsg) | |
1762 | { | |
1763 | if (value < min_value) { | |
1764 | if (errmsg) { | |
1765 | PyErr_Format(PyExc_OverflowError, | |
1766 | "value %g is less than %s minimum %g", | |
1767 | value, errmsg, min_value); | |
1768 | } | |
1769 | return 0; | |
1770 | } else if (value > max_value) { | |
1771 | if (errmsg) { | |
1772 | PyErr_Format(PyExc_OverflowError, | |
1773 | "value %g is greater than %s maximum %g", | |
1774 | value, errmsg, max_value); | |
1775 | } | |
1776 | return 0; | |
1777 | } | |
1778 | return 1; | |
1779 | } | |
1780 | ||
d55e5bfc | 1781 | |
c370783e RD |
1782 | SWIGSTATICINLINE(int) |
1783 | SWIG_AsVal_float(PyObject *obj, float *val) | |
d55e5bfc | 1784 | { |
c370783e RD |
1785 | const char* errmsg = val ? "float" : 0; |
1786 | double v; | |
1787 | if (SWIG_AsVal_double(obj, &v)) { | |
1788 | if (SWIG_CheckDoubleInRange(v, -FLT_MAX, FLT_MAX, errmsg)) { | |
1789 | if (val) *val = v; | |
1790 | return 1; | |
d55e5bfc | 1791 | } else { |
c370783e | 1792 | return 0; |
d55e5bfc | 1793 | } |
c370783e RD |
1794 | } else { |
1795 | PyErr_Clear(); | |
d55e5bfc | 1796 | } |
c370783e RD |
1797 | if (val) { |
1798 | PyErr_SetString(PyExc_TypeError, "a float is expected"); | |
1799 | } | |
1800 | return 0; | |
d55e5bfc RD |
1801 | } |
1802 | ||
1803 | ||
1804 | SWIGSTATICINLINE(float) | |
c370783e | 1805 | SWIG_As_float(PyObject* obj) |
d55e5bfc | 1806 | { |
c370783e RD |
1807 | float v; |
1808 | if (!SWIG_AsVal_float(obj, &v)) { | |
1809 | /* | |
1810 | this is needed to make valgrind/purify happier. the other | |
1811 | solution is throw an exception, but since this code should work | |
1812 | with plain C .... | |
1813 | */ | |
1814 | memset((void*)&v, 0, sizeof(float)); | |
1815 | } | |
1816 | return v; | |
d55e5bfc RD |
1817 | } |
1818 | ||
c370783e | 1819 | |
d55e5bfc | 1820 | SWIGSTATICINLINE(int) |
c370783e | 1821 | SWIG_Check_float(PyObject* obj) |
d55e5bfc | 1822 | { |
c370783e | 1823 | return SWIG_AsVal_float(obj, (float*)0); |
d55e5bfc RD |
1824 | } |
1825 | ||
1826 | PyObject *wxSizerItem_GetUserData(wxSizerItem *self){ | |
1827 | wxPyUserData* data = (wxPyUserData*)self->GetUserData(); | |
1828 | if (data) { | |
1829 | Py_INCREF(data->m_obj); | |
1830 | return data->m_obj; | |
1831 | } else { | |
1832 | Py_INCREF(Py_None); | |
1833 | return Py_None; | |
1834 | } | |
1835 | } | |
1836 | ||
1837 | // Figure out the type of the sizer item | |
1838 | ||
1839 | struct wxPySizerItemInfo { | |
1840 | wxPySizerItemInfo() | |
b411df4a RD |
1841 | : window(NULL), sizer(NULL), gotSize(false), |
1842 | size(wxDefaultSize), gotPos(false), pos(-1) | |
d55e5bfc RD |
1843 | {} |
1844 | ||
1845 | wxWindow* window; | |
1846 | wxSizer* sizer; | |
1847 | bool gotSize; | |
1848 | wxSize size; | |
1849 | bool gotPos; | |
1850 | int pos; | |
1851 | }; | |
1852 | ||
1853 | static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) { | |
1854 | ||
1855 | wxPySizerItemInfo info; | |
1856 | wxSize size; | |
1857 | wxSize* sizePtr = &size; | |
1858 | ||
1859 | // Find out what the type of the item is | |
1860 | // try wxWindow | |
1861 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) { | |
1862 | PyErr_Clear(); | |
1863 | info.window = NULL; | |
1864 | ||
1865 | // try wxSizer | |
1866 | if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) { | |
1867 | PyErr_Clear(); | |
1868 | info.sizer = NULL; | |
1869 | ||
1870 | // try wxSize or (w,h) | |
1871 | if ( checkSize && wxSize_helper(item, &sizePtr)) { | |
1872 | info.size = *sizePtr; | |
b411df4a | 1873 | info.gotSize = true; |
d55e5bfc RD |
1874 | } |
1875 | ||
1876 | // or a single int | |
1877 | if (checkIdx && PyInt_Check(item)) { | |
1878 | info.pos = PyInt_AsLong(item); | |
b411df4a | 1879 | info.gotPos = true; |
d55e5bfc RD |
1880 | } |
1881 | } | |
1882 | } | |
1883 | ||
1884 | if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) { | |
1885 | // no expected type, figure out what kind of error message to generate | |
1886 | if ( !checkSize && !checkIdx ) | |
1887 | PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item"); | |
1888 | else if ( checkSize && !checkIdx ) | |
1889 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item"); | |
1890 | else if ( !checkSize && checkIdx) | |
1891 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item"); | |
1892 | else | |
1893 | // can this one happen? | |
1894 | PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item"); | |
1895 | } | |
1896 | ||
1897 | return info; | |
1898 | } | |
1899 | ||
1900 | void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){ | |
b0f7404b RD |
1901 | if (!self->GetClientObject()) |
1902 | self->SetClientObject(new wxPyOORClientData(_self)); | |
d55e5bfc | 1903 | } |
070c48b4 | 1904 | wxSizerItem *wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ |
d55e5bfc RD |
1905 | |
1906 | wxPyUserData* data = NULL; | |
1907 | bool blocked = wxPyBeginBlockThreads(); | |
b411df4a | 1908 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
1909 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1910 | data = new wxPyUserData(userData); | |
1911 | wxPyEndBlockThreads(blocked); | |
1912 | ||
1913 | // Now call the real Add method if a valid item type was found | |
1914 | if ( info.window ) | |
070c48b4 | 1915 | return self->Add(info.window, proportion, flag, border, data); |
d55e5bfc | 1916 | else if ( info.sizer ) |
070c48b4 | 1917 | return self->Add(info.sizer, proportion, flag, border, data); |
d55e5bfc | 1918 | else if (info.gotSize) |
070c48b4 RD |
1919 | return self->Add(info.size.GetWidth(), info.size.GetHeight(), |
1920 | proportion, flag, border, data); | |
1921 | else | |
1922 | return NULL; | |
d55e5bfc | 1923 | } |
070c48b4 | 1924 | wxSizerItem *wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){ |
d55e5bfc RD |
1925 | |
1926 | wxPyUserData* data = NULL; | |
1927 | bool blocked = wxPyBeginBlockThreads(); | |
b411df4a | 1928 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
1929 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1930 | data = new wxPyUserData(userData); | |
1931 | wxPyEndBlockThreads(blocked); | |
1932 | ||
1933 | // Now call the real Insert method if a valid item type was found | |
1934 | if ( info.window ) | |
070c48b4 | 1935 | return self->Insert(before, info.window, proportion, flag, border, data); |
d55e5bfc | 1936 | else if ( info.sizer ) |
070c48b4 | 1937 | return self->Insert(before, info.sizer, proportion, flag, border, data); |
d55e5bfc | 1938 | else if (info.gotSize) |
070c48b4 RD |
1939 | return self->Insert(before, info.size.GetWidth(), info.size.GetHeight(), |
1940 | proportion, flag, border, data); | |
1941 | else | |
1942 | return NULL; | |
d55e5bfc | 1943 | } |
070c48b4 | 1944 | wxSizerItem *wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){ |
d55e5bfc RD |
1945 | |
1946 | wxPyUserData* data = NULL; | |
1947 | bool blocked = wxPyBeginBlockThreads(); | |
b411df4a | 1948 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
1949 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
1950 | data = new wxPyUserData(userData); | |
1951 | wxPyEndBlockThreads(blocked); | |
1952 | ||
1953 | // Now call the real Prepend method if a valid item type was found | |
1954 | if ( info.window ) | |
070c48b4 | 1955 | return self->Prepend(info.window, proportion, flag, border, data); |
d55e5bfc | 1956 | else if ( info.sizer ) |
070c48b4 | 1957 | return self->Prepend(info.sizer, proportion, flag, border, data); |
d55e5bfc | 1958 | else if (info.gotSize) |
070c48b4 RD |
1959 | return self->Prepend(info.size.GetWidth(), info.size.GetHeight(), |
1960 | proportion, flag, border, data); | |
1961 | else | |
1962 | return NULL; | |
d55e5bfc RD |
1963 | } |
1964 | bool wxSizer_Remove(wxSizer *self,PyObject *item){ | |
1965 | bool blocked = wxPyBeginBlockThreads(); | |
b411df4a | 1966 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
d55e5bfc RD |
1967 | wxPyEndBlockThreads(blocked); |
1968 | if ( info.window ) | |
1969 | return self->Remove(info.window); | |
1970 | else if ( info.sizer ) | |
1971 | return self->Remove(info.sizer); | |
1972 | else if ( info.gotPos ) | |
1973 | return self->Remove(info.pos); | |
1974 | else | |
b411df4a | 1975 | return false; |
d55e5bfc | 1976 | } |
1a6bba1e RD |
1977 | bool wxSizer_Detach(wxSizer *self,PyObject *item){ |
1978 | bool blocked = wxPyBeginBlockThreads(); | |
b411df4a | 1979 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
1a6bba1e RD |
1980 | wxPyEndBlockThreads(blocked); |
1981 | if ( info.window ) | |
1982 | return self->Detach(info.window); | |
1983 | else if ( info.sizer ) | |
1984 | return self->Detach(info.sizer); | |
1985 | else if ( info.gotPos ) | |
1986 | return self->Detach(info.pos); | |
1987 | else | |
b411df4a | 1988 | return false; |
1a6bba1e | 1989 | } |
070c48b4 RD |
1990 | wxSizerItem *wxSizer_GetItem(wxSizer *self,PyObject *item){ |
1991 | bool blocked = wxPyBeginBlockThreads(); | |
1992 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); | |
1993 | wxPyEndBlockThreads(blocked); | |
1994 | if ( info.window ) | |
1995 | return self->GetItem(info.window); | |
1996 | else if ( info.sizer ) | |
1997 | return self->GetItem(info.sizer); | |
1998 | else if ( info.gotPos ) | |
1999 | return self->GetItem(info.pos); | |
2000 | else | |
2001 | return NULL; | |
2002 | } | |
d55e5bfc RD |
2003 | void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){ |
2004 | bool blocked = wxPyBeginBlockThreads(); | |
b411df4a | 2005 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
d55e5bfc RD |
2006 | wxPyEndBlockThreads(blocked); |
2007 | if ( info.window ) | |
2008 | self->SetItemMinSize(info.window, size); | |
2009 | else if ( info.sizer ) | |
2010 | self->SetItemMinSize(info.sizer, size); | |
2011 | else if ( info.gotPos ) | |
2012 | self->SetItemMinSize(info.pos, size); | |
2013 | } | |
2014 | PyObject *wxSizer_GetChildren(wxSizer *self){ | |
2015 | wxSizerItemList& list = self->GetChildren(); | |
2016 | return wxPy_ConvertList(&list); | |
2017 | } | |
629e65c2 | 2018 | bool wxSizer_Show(wxSizer *self,PyObject *item,bool show,bool recursive){ |
d6c14a4c | 2019 | bool blocked = wxPyBeginBlockThreads(); |
b411df4a | 2020 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true); |
d6c14a4c | 2021 | wxPyEndBlockThreads(blocked); |
d55e5bfc | 2022 | if ( info.window ) |
629e65c2 | 2023 | return self->Show(info.window, show, recursive); |
d55e5bfc | 2024 | else if ( info.sizer ) |
629e65c2 | 2025 | return self->Show(info.sizer, show, recursive); |
bfddbb17 | 2026 | else if ( info.gotPos ) |
629e65c2 | 2027 | return self->Show(info.pos, show); |
b411df4a RD |
2028 | else |
2029 | return false; | |
d55e5bfc RD |
2030 | } |
2031 | bool wxSizer_IsShown(wxSizer *self,PyObject *item){ | |
d6c14a4c | 2032 | bool blocked = wxPyBeginBlockThreads(); |
b411df4a | 2033 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, false); |
d6c14a4c | 2034 | wxPyEndBlockThreads(blocked); |
d55e5bfc RD |
2035 | if ( info.window ) |
2036 | return self->IsShown(info.window); | |
2037 | else if ( info.sizer ) | |
2038 | return self->IsShown(info.sizer); | |
bfddbb17 RD |
2039 | else if ( info.gotPos ) |
2040 | return self->IsShown(info.pos); | |
d55e5bfc | 2041 | else |
b411df4a | 2042 | return false; |
d55e5bfc RD |
2043 | } |
2044 | ||
2045 | // See pyclasses.h | |
2046 | IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes); | |
2047 | IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin); | |
2048 | IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer); | |
2049 | ||
2050 | ||
2051 | ||
2052 | ||
2053 | bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj) | |
2054 | { | |
2055 | if (source == Py_None) { | |
2056 | **obj = wxGBPosition(-1,-1); | |
b411df4a | 2057 | return true; |
d55e5bfc RD |
2058 | } |
2059 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition")); | |
2060 | } | |
2061 | ||
2062 | bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj) | |
2063 | { | |
2064 | if (source == Py_None) { | |
2065 | **obj = wxGBSpan(-1,-1); | |
b411df4a | 2066 | return true; |
d55e5bfc RD |
2067 | } |
2068 | return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan")); | |
2069 | } | |
2070 | ||
2071 | ||
2072 | void wxGBPosition_Set(wxGBPosition *self,int row,int col){ | |
2073 | self->SetRow(row); | |
2074 | self->SetCol(col); | |
2075 | } | |
2076 | PyObject *wxGBPosition_Get(wxGBPosition *self){ | |
2077 | bool blocked = wxPyBeginBlockThreads(); | |
2078 | PyObject* tup = PyTuple_New(2); | |
2079 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow())); | |
2080 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol())); | |
2081 | wxPyEndBlockThreads(blocked); | |
2082 | return tup; | |
2083 | } | |
2084 | void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){ | |
2085 | self->SetRowspan(rowspan); | |
2086 | self->SetColspan(colspan); | |
2087 | } | |
2088 | PyObject *wxGBSpan_Get(wxGBSpan *self){ | |
2089 | bool blocked = wxPyBeginBlockThreads(); | |
2090 | PyObject* tup = PyTuple_New(2); | |
2091 | PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan())); | |
2092 | PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan())); | |
2093 | wxPyEndBlockThreads(blocked); | |
2094 | return tup; | |
2095 | } | |
bfddbb17 RD |
2096 | wxGBSizerItem *new_wxGBSizerItem(wxWindow *window,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ |
2097 | wxPyUserData* data = NULL; | |
2098 | if ( userData ) { | |
2099 | bool blocked = wxPyBeginBlockThreads(); | |
2100 | data = new wxPyUserData(userData); | |
2101 | wxPyEndBlockThreads(blocked); | |
2102 | } | |
2103 | return new wxGBSizerItem(window, pos, span, flag, border, data); | |
2104 | } | |
2105 | wxGBSizerItem *new_wxGBSizerItem(wxSizer *sizer,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
2106 | wxPyUserData* data = NULL; | |
2107 | if ( userData ) { | |
2108 | bool blocked = wxPyBeginBlockThreads(); | |
2109 | data = new wxPyUserData(userData); | |
2110 | wxPyEndBlockThreads(blocked); | |
2111 | } | |
2112 | return new wxGBSizerItem(sizer, pos, span, flag, border, data); | |
2113 | } | |
2114 | wxGBSizerItem *new_wxGBSizerItem(int width,int height,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ | |
2115 | wxPyUserData* data = NULL; | |
2116 | if ( userData ) { | |
2117 | bool blocked = wxPyBeginBlockThreads(); | |
2118 | data = new wxPyUserData(userData); | |
2119 | wxPyEndBlockThreads(blocked); | |
2120 | } | |
2121 | return new wxGBSizerItem(width, height, pos, span, flag, border, data); | |
2122 | } | |
2123 | wxGBPosition wxGBSizerItem_GetEndPos(wxGBSizerItem *self){ | |
2124 | int row, col; | |
2125 | self->GetEndPos(row, col); | |
2126 | return wxGBPosition(row, col); | |
2127 | } | |
070c48b4 | 2128 | wxGBSizerItem *wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){ |
d55e5bfc RD |
2129 | |
2130 | wxPyUserData* data = NULL; | |
2131 | bool blocked = wxPyBeginBlockThreads(); | |
b411df4a | 2132 | wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false); |
d55e5bfc RD |
2133 | if ( userData && (info.window || info.sizer || info.gotSize) ) |
2134 | data = new wxPyUserData(userData); | |
2135 | wxPyEndBlockThreads(blocked); | |
2136 | ||
2137 | // Now call the real Add method if a valid item type was found | |
2138 | if ( info.window ) | |
070c48b4 | 2139 | return (wxGBSizerItem*)self->Add(info.window, pos, span, flag, border, data); |
d55e5bfc | 2140 | else if ( info.sizer ) |
070c48b4 | 2141 | return (wxGBSizerItem*)self->Add(info.sizer, pos, span, flag, border, data); |
d55e5bfc | 2142 | else if (info.gotSize) |
070c48b4 RD |
2143 | return (wxGBSizerItem*)self->Add(info.size.GetWidth(), info.size.GetHeight(), |
2144 | pos, span, flag, border, data); | |
2145 | return NULL; | |
d55e5bfc RD |
2146 | } |
2147 | ||
2148 | ||
2149 | #ifdef __cplusplus | |
2150 | extern "C" { | |
2151 | #endif | |
c370783e | 2152 | static int _wrap_EmptyString_set(PyObject *) { |
d55e5bfc RD |
2153 | PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only."); |
2154 | return 1; | |
2155 | } | |
2156 | ||
2157 | ||
2158 | static PyObject *_wrap_EmptyString_get() { | |
2159 | PyObject *pyobj; | |
2160 | ||
2161 | { | |
2162 | #if wxUSE_UNICODE | |
2163 | pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
2164 | #else | |
2165 | pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len()); | |
2166 | #endif | |
2167 | } | |
2168 | return pyobj; | |
2169 | } | |
2170 | ||
2171 | ||
c370783e | 2172 | static PyObject *_wrap_Object_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2173 | PyObject *resultobj; |
2174 | wxObject *arg1 = (wxObject *) 0 ; | |
2175 | wxString result; | |
2176 | PyObject * obj0 = 0 ; | |
2177 | char *kwnames[] = { | |
2178 | (char *) "self", NULL | |
2179 | }; | |
2180 | ||
2181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail; | |
2182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, | |
2183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2184 | { | |
2185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2186 | result = wxObject_GetClassName(arg1); | |
2187 | ||
2188 | wxPyEndAllowThreads(__tstate); | |
2189 | if (PyErr_Occurred()) SWIG_fail; | |
2190 | } | |
2191 | { | |
2192 | #if wxUSE_UNICODE | |
2193 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2194 | #else | |
2195 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2196 | #endif | |
2197 | } | |
2198 | return resultobj; | |
2199 | fail: | |
2200 | return NULL; | |
2201 | } | |
2202 | ||
2203 | ||
c370783e | 2204 | static PyObject *_wrap_Object_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2205 | PyObject *resultobj; |
2206 | wxObject *arg1 = (wxObject *) 0 ; | |
2207 | PyObject * obj0 = 0 ; | |
2208 | char *kwnames[] = { | |
2209 | (char *) "self", NULL | |
2210 | }; | |
2211 | ||
2212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail; | |
2213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject, | |
2214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2215 | { | |
2216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2217 | wxObject_Destroy(arg1); | |
2218 | ||
2219 | wxPyEndAllowThreads(__tstate); | |
2220 | if (PyErr_Occurred()) SWIG_fail; | |
2221 | } | |
2222 | Py_INCREF(Py_None); resultobj = Py_None; | |
2223 | return resultobj; | |
2224 | fail: | |
2225 | return NULL; | |
2226 | } | |
2227 | ||
2228 | ||
c370783e | 2229 | static PyObject * Object_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2230 | PyObject *obj; |
2231 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2232 | SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj); | |
2233 | Py_INCREF(obj); | |
2234 | return Py_BuildValue((char *)""); | |
2235 | } | |
c370783e | 2236 | static PyObject *_wrap_Size_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2237 | PyObject *resultobj; |
2238 | wxSize *arg1 = (wxSize *) 0 ; | |
2239 | int arg2 ; | |
2240 | PyObject * obj0 = 0 ; | |
2241 | PyObject * obj1 = 0 ; | |
2242 | char *kwnames[] = { | |
2243 | (char *) "self",(char *) "x", NULL | |
2244 | }; | |
2245 | ||
2246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail; | |
2247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2249 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2250 | if (PyErr_Occurred()) SWIG_fail; |
2251 | if (arg1) (arg1)->x = arg2; | |
2252 | ||
2253 | Py_INCREF(Py_None); resultobj = Py_None; | |
2254 | return resultobj; | |
2255 | fail: | |
2256 | return NULL; | |
2257 | } | |
2258 | ||
2259 | ||
c370783e | 2260 | static PyObject *_wrap_Size_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2261 | PyObject *resultobj; |
2262 | wxSize *arg1 = (wxSize *) 0 ; | |
2263 | int result; | |
2264 | PyObject * obj0 = 0 ; | |
2265 | char *kwnames[] = { | |
2266 | (char *) "self", NULL | |
2267 | }; | |
2268 | ||
2269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail; | |
2270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2272 | result = (int) ((arg1)->x); | |
2273 | ||
c370783e | 2274 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2275 | return resultobj; |
2276 | fail: | |
2277 | return NULL; | |
2278 | } | |
2279 | ||
2280 | ||
c370783e | 2281 | static PyObject *_wrap_Size_height_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2282 | PyObject *resultobj; |
2283 | wxSize *arg1 = (wxSize *) 0 ; | |
2284 | int arg2 ; | |
2285 | PyObject * obj0 = 0 ; | |
2286 | PyObject * obj1 = 0 ; | |
2287 | char *kwnames[] = { | |
2288 | (char *) "self",(char *) "y", NULL | |
2289 | }; | |
2290 | ||
2291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail; | |
2292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2294 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2295 | if (PyErr_Occurred()) SWIG_fail; |
2296 | if (arg1) (arg1)->y = arg2; | |
2297 | ||
2298 | Py_INCREF(Py_None); resultobj = Py_None; | |
2299 | return resultobj; | |
2300 | fail: | |
2301 | return NULL; | |
2302 | } | |
2303 | ||
2304 | ||
c370783e | 2305 | static PyObject *_wrap_Size_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2306 | PyObject *resultobj; |
2307 | wxSize *arg1 = (wxSize *) 0 ; | |
2308 | int result; | |
2309 | PyObject * obj0 = 0 ; | |
2310 | char *kwnames[] = { | |
2311 | (char *) "self", NULL | |
2312 | }; | |
2313 | ||
2314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail; | |
2315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2317 | result = (int) ((arg1)->y); | |
2318 | ||
c370783e | 2319 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2320 | return resultobj; |
2321 | fail: | |
2322 | return NULL; | |
2323 | } | |
2324 | ||
2325 | ||
c370783e | 2326 | static PyObject *_wrap_new_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2327 | PyObject *resultobj; |
2328 | int arg1 = (int) 0 ; | |
2329 | int arg2 = (int) 0 ; | |
2330 | wxSize *result; | |
2331 | PyObject * obj0 = 0 ; | |
2332 | PyObject * obj1 = 0 ; | |
2333 | char *kwnames[] = { | |
2334 | (char *) "w",(char *) "h", NULL | |
2335 | }; | |
2336 | ||
2337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail; | |
2338 | if (obj0) { | |
c370783e | 2339 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
2340 | if (PyErr_Occurred()) SWIG_fail; |
2341 | } | |
2342 | if (obj1) { | |
c370783e | 2343 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2344 | if (PyErr_Occurred()) SWIG_fail; |
2345 | } | |
2346 | { | |
2347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2348 | result = (wxSize *)new wxSize(arg1,arg2); | |
2349 | ||
2350 | wxPyEndAllowThreads(__tstate); | |
2351 | if (PyErr_Occurred()) SWIG_fail; | |
2352 | } | |
2353 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1); | |
2354 | return resultobj; | |
2355 | fail: | |
2356 | return NULL; | |
2357 | } | |
2358 | ||
2359 | ||
c370783e | 2360 | static PyObject *_wrap_delete_Size(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2361 | PyObject *resultobj; |
2362 | wxSize *arg1 = (wxSize *) 0 ; | |
2363 | PyObject * obj0 = 0 ; | |
2364 | char *kwnames[] = { | |
2365 | (char *) "self", NULL | |
2366 | }; | |
2367 | ||
2368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail; | |
2369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2371 | { | |
2372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2373 | delete arg1; | |
2374 | ||
2375 | wxPyEndAllowThreads(__tstate); | |
2376 | if (PyErr_Occurred()) SWIG_fail; | |
2377 | } | |
2378 | Py_INCREF(Py_None); resultobj = Py_None; | |
2379 | return resultobj; | |
2380 | fail: | |
2381 | return NULL; | |
2382 | } | |
2383 | ||
2384 | ||
c370783e | 2385 | static PyObject *_wrap_Size___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2386 | PyObject *resultobj; |
2387 | wxSize *arg1 = (wxSize *) 0 ; | |
2388 | wxSize *arg2 = 0 ; | |
2389 | bool result; | |
2390 | wxSize temp2 ; | |
2391 | PyObject * obj0 = 0 ; | |
2392 | PyObject * obj1 = 0 ; | |
2393 | char *kwnames[] = { | |
2394 | (char *) "self",(char *) "sz", NULL | |
2395 | }; | |
2396 | ||
2397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2400 | { | |
2401 | arg2 = &temp2; | |
2402 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2403 | } | |
2404 | { | |
2405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2406 | result = (bool)(arg1)->operator ==((wxSize const &)*arg2); | |
2407 | ||
2408 | wxPyEndAllowThreads(__tstate); | |
2409 | if (PyErr_Occurred()) SWIG_fail; | |
2410 | } | |
2411 | { | |
2412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2413 | } | |
2414 | return resultobj; | |
2415 | fail: | |
2416 | return NULL; | |
2417 | } | |
2418 | ||
2419 | ||
c370783e | 2420 | static PyObject *_wrap_Size___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2421 | PyObject *resultobj; |
2422 | wxSize *arg1 = (wxSize *) 0 ; | |
2423 | wxSize *arg2 = 0 ; | |
2424 | bool 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___ne__",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 = (bool)(arg1)->operator !=((wxSize const &)*arg2); | |
2442 | ||
2443 | wxPyEndAllowThreads(__tstate); | |
2444 | if (PyErr_Occurred()) SWIG_fail; | |
2445 | } | |
2446 | { | |
2447 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2448 | } | |
2449 | return resultobj; | |
2450 | fail: | |
2451 | return NULL; | |
2452 | } | |
2453 | ||
2454 | ||
c370783e | 2455 | static PyObject *_wrap_Size___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2456 | PyObject *resultobj; |
2457 | wxSize *arg1 = (wxSize *) 0 ; | |
2458 | wxSize *arg2 = 0 ; | |
2459 | wxSize result; | |
2460 | wxSize temp2 ; | |
2461 | PyObject * obj0 = 0 ; | |
2462 | PyObject * obj1 = 0 ; | |
2463 | char *kwnames[] = { | |
2464 | (char *) "self",(char *) "sz", NULL | |
2465 | }; | |
2466 | ||
2467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail; | |
2468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2470 | { | |
2471 | arg2 = &temp2; | |
2472 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2473 | } | |
2474 | { | |
2475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2476 | result = (arg1)->operator +((wxSize const &)*arg2); | |
2477 | ||
2478 | wxPyEndAllowThreads(__tstate); | |
2479 | if (PyErr_Occurred()) SWIG_fail; | |
2480 | } | |
2481 | { | |
2482 | wxSize * resultptr; | |
2483 | resultptr = new wxSize((wxSize &) result); | |
2484 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2485 | } | |
2486 | return resultobj; | |
2487 | fail: | |
2488 | return NULL; | |
2489 | } | |
2490 | ||
2491 | ||
c370783e | 2492 | static PyObject *_wrap_Size___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2493 | PyObject *resultobj; |
2494 | wxSize *arg1 = (wxSize *) 0 ; | |
2495 | wxSize *arg2 = 0 ; | |
2496 | wxSize result; | |
2497 | wxSize temp2 ; | |
2498 | PyObject * obj0 = 0 ; | |
2499 | PyObject * obj1 = 0 ; | |
2500 | char *kwnames[] = { | |
2501 | (char *) "self",(char *) "sz", NULL | |
2502 | }; | |
2503 | ||
2504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail; | |
2505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2507 | { | |
2508 | arg2 = &temp2; | |
2509 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2510 | } | |
2511 | { | |
2512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2513 | result = (arg1)->operator -((wxSize const &)*arg2); | |
2514 | ||
2515 | wxPyEndAllowThreads(__tstate); | |
2516 | if (PyErr_Occurred()) SWIG_fail; | |
2517 | } | |
2518 | { | |
2519 | wxSize * resultptr; | |
2520 | resultptr = new wxSize((wxSize &) result); | |
2521 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
2522 | } | |
2523 | return resultobj; | |
2524 | fail: | |
2525 | return NULL; | |
2526 | } | |
2527 | ||
2528 | ||
c370783e | 2529 | static PyObject *_wrap_Size_IncTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2530 | PyObject *resultobj; |
2531 | wxSize *arg1 = (wxSize *) 0 ; | |
2532 | wxSize *arg2 = 0 ; | |
2533 | wxSize temp2 ; | |
2534 | PyObject * obj0 = 0 ; | |
2535 | PyObject * obj1 = 0 ; | |
2536 | char *kwnames[] = { | |
2537 | (char *) "self",(char *) "sz", NULL | |
2538 | }; | |
2539 | ||
2540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail; | |
2541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2543 | { | |
2544 | arg2 = &temp2; | |
2545 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2546 | } | |
2547 | { | |
2548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2549 | (arg1)->IncTo((wxSize const &)*arg2); | |
2550 | ||
2551 | wxPyEndAllowThreads(__tstate); | |
2552 | if (PyErr_Occurred()) SWIG_fail; | |
2553 | } | |
2554 | Py_INCREF(Py_None); resultobj = Py_None; | |
2555 | return resultobj; | |
2556 | fail: | |
2557 | return NULL; | |
2558 | } | |
2559 | ||
2560 | ||
c370783e | 2561 | static PyObject *_wrap_Size_DecTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2562 | PyObject *resultobj; |
2563 | wxSize *arg1 = (wxSize *) 0 ; | |
2564 | wxSize *arg2 = 0 ; | |
2565 | wxSize temp2 ; | |
2566 | PyObject * obj0 = 0 ; | |
2567 | PyObject * obj1 = 0 ; | |
2568 | char *kwnames[] = { | |
2569 | (char *) "self",(char *) "sz", NULL | |
2570 | }; | |
2571 | ||
2572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail; | |
2573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2575 | { | |
2576 | arg2 = &temp2; | |
2577 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2578 | } | |
2579 | { | |
2580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2581 | (arg1)->DecTo((wxSize const &)*arg2); | |
2582 | ||
2583 | wxPyEndAllowThreads(__tstate); | |
2584 | if (PyErr_Occurred()) SWIG_fail; | |
2585 | } | |
2586 | Py_INCREF(Py_None); resultobj = Py_None; | |
2587 | return resultobj; | |
2588 | fail: | |
2589 | return NULL; | |
2590 | } | |
2591 | ||
2592 | ||
c370783e | 2593 | static PyObject *_wrap_Size_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2594 | PyObject *resultobj; |
2595 | wxSize *arg1 = (wxSize *) 0 ; | |
2596 | int arg2 ; | |
2597 | int arg3 ; | |
2598 | PyObject * obj0 = 0 ; | |
2599 | PyObject * obj1 = 0 ; | |
2600 | PyObject * obj2 = 0 ; | |
2601 | char *kwnames[] = { | |
2602 | (char *) "self",(char *) "w",(char *) "h", NULL | |
2603 | }; | |
2604 | ||
2605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2608 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 2609 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 2610 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
2611 | if (PyErr_Occurred()) SWIG_fail; |
2612 | { | |
2613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2614 | (arg1)->Set(arg2,arg3); | |
2615 | ||
2616 | wxPyEndAllowThreads(__tstate); | |
2617 | if (PyErr_Occurred()) SWIG_fail; | |
2618 | } | |
2619 | Py_INCREF(Py_None); resultobj = Py_None; | |
2620 | return resultobj; | |
2621 | fail: | |
2622 | return NULL; | |
2623 | } | |
2624 | ||
2625 | ||
c370783e | 2626 | static PyObject *_wrap_Size_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2627 | PyObject *resultobj; |
2628 | wxSize *arg1 = (wxSize *) 0 ; | |
2629 | int arg2 ; | |
2630 | PyObject * obj0 = 0 ; | |
2631 | PyObject * obj1 = 0 ; | |
2632 | char *kwnames[] = { | |
2633 | (char *) "self",(char *) "w", NULL | |
2634 | }; | |
2635 | ||
2636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
2637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2639 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2640 | if (PyErr_Occurred()) SWIG_fail; |
2641 | { | |
2642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2643 | (arg1)->SetWidth(arg2); | |
2644 | ||
2645 | wxPyEndAllowThreads(__tstate); | |
2646 | if (PyErr_Occurred()) SWIG_fail; | |
2647 | } | |
2648 | Py_INCREF(Py_None); resultobj = Py_None; | |
2649 | return resultobj; | |
2650 | fail: | |
2651 | return NULL; | |
2652 | } | |
2653 | ||
2654 | ||
c370783e | 2655 | static PyObject *_wrap_Size_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2656 | PyObject *resultobj; |
2657 | wxSize *arg1 = (wxSize *) 0 ; | |
2658 | int arg2 ; | |
2659 | PyObject * obj0 = 0 ; | |
2660 | PyObject * obj1 = 0 ; | |
2661 | char *kwnames[] = { | |
2662 | (char *) "self",(char *) "h", NULL | |
2663 | }; | |
2664 | ||
2665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
2666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2668 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
2669 | if (PyErr_Occurred()) SWIG_fail; |
2670 | { | |
2671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2672 | (arg1)->SetHeight(arg2); | |
2673 | ||
2674 | wxPyEndAllowThreads(__tstate); | |
2675 | if (PyErr_Occurred()) SWIG_fail; | |
2676 | } | |
2677 | Py_INCREF(Py_None); resultobj = Py_None; | |
2678 | return resultobj; | |
2679 | fail: | |
2680 | return NULL; | |
2681 | } | |
2682 | ||
2683 | ||
c370783e | 2684 | static PyObject *_wrap_Size_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2685 | PyObject *resultobj; |
2686 | wxSize *arg1 = (wxSize *) 0 ; | |
2687 | int result; | |
2688 | PyObject * obj0 = 0 ; | |
2689 | char *kwnames[] = { | |
2690 | (char *) "self", NULL | |
2691 | }; | |
2692 | ||
2693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail; | |
2694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2696 | { | |
2697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2698 | result = (int)((wxSize const *)arg1)->GetWidth(); | |
2699 | ||
2700 | wxPyEndAllowThreads(__tstate); | |
2701 | if (PyErr_Occurred()) SWIG_fail; | |
2702 | } | |
c370783e | 2703 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2704 | return resultobj; |
2705 | fail: | |
2706 | return NULL; | |
2707 | } | |
2708 | ||
2709 | ||
c370783e | 2710 | static PyObject *_wrap_Size_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2711 | PyObject *resultobj; |
2712 | wxSize *arg1 = (wxSize *) 0 ; | |
2713 | int result; | |
2714 | PyObject * obj0 = 0 ; | |
2715 | char *kwnames[] = { | |
2716 | (char *) "self", NULL | |
2717 | }; | |
2718 | ||
2719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail; | |
2720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2722 | { | |
2723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2724 | result = (int)((wxSize const *)arg1)->GetHeight(); | |
2725 | ||
2726 | wxPyEndAllowThreads(__tstate); | |
2727 | if (PyErr_Occurred()) SWIG_fail; | |
2728 | } | |
c370783e | 2729 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
2730 | return resultobj; |
2731 | fail: | |
2732 | return NULL; | |
2733 | } | |
2734 | ||
2735 | ||
c370783e | 2736 | static PyObject *_wrap_Size_IsFullySpecified(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2737 | PyObject *resultobj; |
2738 | wxSize *arg1 = (wxSize *) 0 ; | |
2739 | bool result; | |
2740 | PyObject * obj0 = 0 ; | |
2741 | char *kwnames[] = { | |
2742 | (char *) "self", NULL | |
2743 | }; | |
2744 | ||
2745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail; | |
2746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2748 | { | |
2749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2750 | result = (bool)((wxSize const *)arg1)->IsFullySpecified(); | |
2751 | ||
2752 | wxPyEndAllowThreads(__tstate); | |
2753 | if (PyErr_Occurred()) SWIG_fail; | |
2754 | } | |
2755 | { | |
2756 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2757 | } | |
2758 | return resultobj; | |
2759 | fail: | |
2760 | return NULL; | |
2761 | } | |
2762 | ||
2763 | ||
c370783e | 2764 | static PyObject *_wrap_Size_SetDefaults(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2765 | PyObject *resultobj; |
2766 | wxSize *arg1 = (wxSize *) 0 ; | |
2767 | wxSize *arg2 = 0 ; | |
2768 | wxSize temp2 ; | |
2769 | PyObject * obj0 = 0 ; | |
2770 | PyObject * obj1 = 0 ; | |
2771 | char *kwnames[] = { | |
2772 | (char *) "self",(char *) "size", NULL | |
2773 | }; | |
2774 | ||
2775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail; | |
2776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2778 | { | |
2779 | arg2 = &temp2; | |
2780 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
2781 | } | |
2782 | { | |
2783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2784 | (arg1)->SetDefaults((wxSize const &)*arg2); | |
2785 | ||
2786 | wxPyEndAllowThreads(__tstate); | |
2787 | if (PyErr_Occurred()) SWIG_fail; | |
2788 | } | |
2789 | Py_INCREF(Py_None); resultobj = Py_None; | |
2790 | return resultobj; | |
2791 | fail: | |
2792 | return NULL; | |
2793 | } | |
2794 | ||
2795 | ||
c370783e | 2796 | static PyObject *_wrap_Size_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2797 | PyObject *resultobj; |
2798 | wxSize *arg1 = (wxSize *) 0 ; | |
2799 | PyObject *result; | |
2800 | PyObject * obj0 = 0 ; | |
2801 | char *kwnames[] = { | |
2802 | (char *) "self", NULL | |
2803 | }; | |
2804 | ||
2805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail; | |
2806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize, | |
2807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2808 | { | |
2809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2810 | result = (PyObject *)wxSize_Get(arg1); | |
2811 | ||
2812 | wxPyEndAllowThreads(__tstate); | |
2813 | if (PyErr_Occurred()) SWIG_fail; | |
2814 | } | |
2815 | resultobj = result; | |
2816 | return resultobj; | |
2817 | fail: | |
2818 | return NULL; | |
2819 | } | |
2820 | ||
2821 | ||
c370783e | 2822 | static PyObject * Size_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
2823 | PyObject *obj; |
2824 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2825 | SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj); | |
2826 | Py_INCREF(obj); | |
2827 | return Py_BuildValue((char *)""); | |
2828 | } | |
c370783e | 2829 | static PyObject *_wrap_RealPoint_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2830 | PyObject *resultobj; |
2831 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2832 | double arg2 ; | |
2833 | PyObject * obj0 = 0 ; | |
2834 | PyObject * obj1 = 0 ; | |
2835 | char *kwnames[] = { | |
2836 | (char *) "self",(char *) "x", NULL | |
2837 | }; | |
2838 | ||
2839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail; | |
2840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2842 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
2843 | if (PyErr_Occurred()) SWIG_fail; |
2844 | if (arg1) (arg1)->x = arg2; | |
2845 | ||
2846 | Py_INCREF(Py_None); resultobj = Py_None; | |
2847 | return resultobj; | |
2848 | fail: | |
2849 | return NULL; | |
2850 | } | |
2851 | ||
2852 | ||
c370783e | 2853 | static PyObject *_wrap_RealPoint_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2854 | PyObject *resultobj; |
2855 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2856 | double result; | |
2857 | PyObject * obj0 = 0 ; | |
2858 | char *kwnames[] = { | |
2859 | (char *) "self", NULL | |
2860 | }; | |
2861 | ||
2862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail; | |
2863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2865 | result = (double) ((arg1)->x); | |
2866 | ||
c370783e | 2867 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
2868 | return resultobj; |
2869 | fail: | |
2870 | return NULL; | |
2871 | } | |
2872 | ||
2873 | ||
c370783e | 2874 | static PyObject *_wrap_RealPoint_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2875 | PyObject *resultobj; |
2876 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2877 | double arg2 ; | |
2878 | PyObject * obj0 = 0 ; | |
2879 | PyObject * obj1 = 0 ; | |
2880 | char *kwnames[] = { | |
2881 | (char *) "self",(char *) "y", NULL | |
2882 | }; | |
2883 | ||
2884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail; | |
2885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 2887 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
2888 | if (PyErr_Occurred()) SWIG_fail; |
2889 | if (arg1) (arg1)->y = arg2; | |
2890 | ||
2891 | Py_INCREF(Py_None); resultobj = Py_None; | |
2892 | return resultobj; | |
2893 | fail: | |
2894 | return NULL; | |
2895 | } | |
2896 | ||
2897 | ||
c370783e | 2898 | static PyObject *_wrap_RealPoint_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2899 | PyObject *resultobj; |
2900 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2901 | double result; | |
2902 | PyObject * obj0 = 0 ; | |
2903 | char *kwnames[] = { | |
2904 | (char *) "self", NULL | |
2905 | }; | |
2906 | ||
2907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail; | |
2908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2910 | result = (double) ((arg1)->y); | |
2911 | ||
c370783e | 2912 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
2913 | return resultobj; |
2914 | fail: | |
2915 | return NULL; | |
2916 | } | |
2917 | ||
2918 | ||
c370783e | 2919 | static PyObject *_wrap_new_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2920 | PyObject *resultobj; |
2921 | double arg1 = (double) 0.0 ; | |
2922 | double arg2 = (double) 0.0 ; | |
2923 | wxRealPoint *result; | |
2924 | PyObject * obj0 = 0 ; | |
2925 | PyObject * obj1 = 0 ; | |
2926 | char *kwnames[] = { | |
2927 | (char *) "x",(char *) "y", NULL | |
2928 | }; | |
2929 | ||
2930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail; | |
2931 | if (obj0) { | |
c370783e | 2932 | arg1 = (double)SWIG_As_double(obj0); |
d55e5bfc RD |
2933 | if (PyErr_Occurred()) SWIG_fail; |
2934 | } | |
2935 | if (obj1) { | |
c370783e | 2936 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
2937 | if (PyErr_Occurred()) SWIG_fail; |
2938 | } | |
2939 | { | |
2940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2941 | result = (wxRealPoint *)new wxRealPoint(arg1,arg2); | |
2942 | ||
2943 | wxPyEndAllowThreads(__tstate); | |
2944 | if (PyErr_Occurred()) SWIG_fail; | |
2945 | } | |
2946 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1); | |
2947 | return resultobj; | |
2948 | fail: | |
2949 | return NULL; | |
2950 | } | |
2951 | ||
2952 | ||
c370783e | 2953 | static PyObject *_wrap_delete_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2954 | PyObject *resultobj; |
2955 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2956 | PyObject * obj0 = 0 ; | |
2957 | char *kwnames[] = { | |
2958 | (char *) "self", NULL | |
2959 | }; | |
2960 | ||
2961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail; | |
2962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2964 | { | |
2965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2966 | delete arg1; | |
2967 | ||
2968 | wxPyEndAllowThreads(__tstate); | |
2969 | if (PyErr_Occurred()) SWIG_fail; | |
2970 | } | |
2971 | Py_INCREF(Py_None); resultobj = Py_None; | |
2972 | return resultobj; | |
2973 | fail: | |
2974 | return NULL; | |
2975 | } | |
2976 | ||
2977 | ||
c370783e | 2978 | static PyObject *_wrap_RealPoint___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
2979 | PyObject *resultobj; |
2980 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
2981 | wxRealPoint *arg2 = 0 ; | |
2982 | bool result; | |
2983 | wxRealPoint temp2 ; | |
2984 | PyObject * obj0 = 0 ; | |
2985 | PyObject * obj1 = 0 ; | |
2986 | char *kwnames[] = { | |
2987 | (char *) "self",(char *) "pt", NULL | |
2988 | }; | |
2989 | ||
2990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
2992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2993 | { | |
2994 | arg2 = &temp2; | |
2995 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
2996 | } | |
2997 | { | |
2998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2999 | result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2); | |
3000 | ||
3001 | wxPyEndAllowThreads(__tstate); | |
3002 | if (PyErr_Occurred()) SWIG_fail; | |
3003 | } | |
3004 | { | |
3005 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3006 | } | |
3007 | return resultobj; | |
3008 | fail: | |
3009 | return NULL; | |
3010 | } | |
3011 | ||
3012 | ||
c370783e | 3013 | static PyObject *_wrap_RealPoint___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3014 | PyObject *resultobj; |
3015 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3016 | wxRealPoint *arg2 = 0 ; | |
3017 | bool 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___ne__",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 = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2); | |
3035 | ||
3036 | wxPyEndAllowThreads(__tstate); | |
3037 | if (PyErr_Occurred()) SWIG_fail; | |
3038 | } | |
3039 | { | |
3040 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3041 | } | |
3042 | return resultobj; | |
3043 | fail: | |
3044 | return NULL; | |
3045 | } | |
3046 | ||
3047 | ||
c370783e | 3048 | static PyObject *_wrap_RealPoint___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3049 | PyObject *resultobj; |
3050 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3051 | wxRealPoint *arg2 = 0 ; | |
3052 | wxRealPoint result; | |
3053 | wxRealPoint temp2 ; | |
3054 | PyObject * obj0 = 0 ; | |
3055 | PyObject * obj1 = 0 ; | |
3056 | char *kwnames[] = { | |
3057 | (char *) "self",(char *) "pt", NULL | |
3058 | }; | |
3059 | ||
3060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail; | |
3061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3063 | { | |
3064 | arg2 = &temp2; | |
3065 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
3066 | } | |
3067 | { | |
3068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3069 | result = (arg1)->operator +((wxRealPoint const &)*arg2); | |
3070 | ||
3071 | wxPyEndAllowThreads(__tstate); | |
3072 | if (PyErr_Occurred()) SWIG_fail; | |
3073 | } | |
3074 | { | |
3075 | wxRealPoint * resultptr; | |
3076 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
3077 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); | |
3078 | } | |
3079 | return resultobj; | |
3080 | fail: | |
3081 | return NULL; | |
3082 | } | |
3083 | ||
3084 | ||
c370783e | 3085 | static PyObject *_wrap_RealPoint___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3086 | PyObject *resultobj; |
3087 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3088 | wxRealPoint *arg2 = 0 ; | |
3089 | wxRealPoint result; | |
3090 | wxRealPoint temp2 ; | |
3091 | PyObject * obj0 = 0 ; | |
3092 | PyObject * obj1 = 0 ; | |
3093 | char *kwnames[] = { | |
3094 | (char *) "self",(char *) "pt", NULL | |
3095 | }; | |
3096 | ||
3097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail; | |
3098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3100 | { | |
3101 | arg2 = &temp2; | |
3102 | if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail; | |
3103 | } | |
3104 | { | |
3105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3106 | result = (arg1)->operator -((wxRealPoint const &)*arg2); | |
3107 | ||
3108 | wxPyEndAllowThreads(__tstate); | |
3109 | if (PyErr_Occurred()) SWIG_fail; | |
3110 | } | |
3111 | { | |
3112 | wxRealPoint * resultptr; | |
3113 | resultptr = new wxRealPoint((wxRealPoint &) result); | |
3114 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1); | |
3115 | } | |
3116 | return resultobj; | |
3117 | fail: | |
3118 | return NULL; | |
3119 | } | |
3120 | ||
3121 | ||
c370783e | 3122 | static PyObject *_wrap_RealPoint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3123 | PyObject *resultobj; |
3124 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3125 | double arg2 ; | |
3126 | double arg3 ; | |
3127 | PyObject * obj0 = 0 ; | |
3128 | PyObject * obj1 = 0 ; | |
3129 | PyObject * obj2 = 0 ; | |
3130 | char *kwnames[] = { | |
3131 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3132 | }; | |
3133 | ||
3134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3137 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc | 3138 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3139 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
3140 | if (PyErr_Occurred()) SWIG_fail; |
3141 | { | |
3142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3143 | wxRealPoint_Set(arg1,arg2,arg3); | |
3144 | ||
3145 | wxPyEndAllowThreads(__tstate); | |
3146 | if (PyErr_Occurred()) SWIG_fail; | |
3147 | } | |
3148 | Py_INCREF(Py_None); resultobj = Py_None; | |
3149 | return resultobj; | |
3150 | fail: | |
3151 | return NULL; | |
3152 | } | |
3153 | ||
3154 | ||
c370783e | 3155 | static PyObject *_wrap_RealPoint_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3156 | PyObject *resultobj; |
3157 | wxRealPoint *arg1 = (wxRealPoint *) 0 ; | |
3158 | PyObject *result; | |
3159 | PyObject * obj0 = 0 ; | |
3160 | char *kwnames[] = { | |
3161 | (char *) "self", NULL | |
3162 | }; | |
3163 | ||
3164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail; | |
3165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint, | |
3166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3167 | { | |
3168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3169 | result = (PyObject *)wxRealPoint_Get(arg1); | |
3170 | ||
3171 | wxPyEndAllowThreads(__tstate); | |
3172 | if (PyErr_Occurred()) SWIG_fail; | |
3173 | } | |
3174 | resultobj = result; | |
3175 | return resultobj; | |
3176 | fail: | |
3177 | return NULL; | |
3178 | } | |
3179 | ||
3180 | ||
c370783e | 3181 | static PyObject * RealPoint_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3182 | PyObject *obj; |
3183 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3184 | SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj); | |
3185 | Py_INCREF(obj); | |
3186 | return Py_BuildValue((char *)""); | |
3187 | } | |
c370783e | 3188 | static PyObject *_wrap_Point_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3189 | PyObject *resultobj; |
3190 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3191 | int arg2 ; | |
3192 | PyObject * obj0 = 0 ; | |
3193 | PyObject * obj1 = 0 ; | |
3194 | char *kwnames[] = { | |
3195 | (char *) "self",(char *) "x", NULL | |
3196 | }; | |
3197 | ||
3198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail; | |
3199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3201 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3202 | if (PyErr_Occurred()) SWIG_fail; |
3203 | if (arg1) (arg1)->x = arg2; | |
3204 | ||
3205 | Py_INCREF(Py_None); resultobj = Py_None; | |
3206 | return resultobj; | |
3207 | fail: | |
3208 | return NULL; | |
3209 | } | |
3210 | ||
3211 | ||
c370783e | 3212 | static PyObject *_wrap_Point_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3213 | PyObject *resultobj; |
3214 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3215 | int result; | |
3216 | PyObject * obj0 = 0 ; | |
3217 | char *kwnames[] = { | |
3218 | (char *) "self", NULL | |
3219 | }; | |
3220 | ||
3221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail; | |
3222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3224 | result = (int) ((arg1)->x); | |
3225 | ||
c370783e | 3226 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3227 | return resultobj; |
3228 | fail: | |
3229 | return NULL; | |
3230 | } | |
3231 | ||
3232 | ||
c370783e | 3233 | static PyObject *_wrap_Point_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3234 | PyObject *resultobj; |
3235 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3236 | int arg2 ; | |
3237 | PyObject * obj0 = 0 ; | |
3238 | PyObject * obj1 = 0 ; | |
3239 | char *kwnames[] = { | |
3240 | (char *) "self",(char *) "y", NULL | |
3241 | }; | |
3242 | ||
3243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail; | |
3244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3246 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3247 | if (PyErr_Occurred()) SWIG_fail; |
3248 | if (arg1) (arg1)->y = arg2; | |
3249 | ||
3250 | Py_INCREF(Py_None); resultobj = Py_None; | |
3251 | return resultobj; | |
3252 | fail: | |
3253 | return NULL; | |
3254 | } | |
3255 | ||
3256 | ||
c370783e | 3257 | static PyObject *_wrap_Point_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3258 | PyObject *resultobj; |
3259 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3260 | int result; | |
3261 | PyObject * obj0 = 0 ; | |
3262 | char *kwnames[] = { | |
3263 | (char *) "self", NULL | |
3264 | }; | |
3265 | ||
3266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail; | |
3267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3269 | result = (int) ((arg1)->y); | |
3270 | ||
c370783e | 3271 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3272 | return resultobj; |
3273 | fail: | |
3274 | return NULL; | |
3275 | } | |
3276 | ||
3277 | ||
c370783e | 3278 | static PyObject *_wrap_new_Point(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3279 | PyObject *resultobj; |
3280 | int arg1 = (int) 0 ; | |
3281 | int arg2 = (int) 0 ; | |
3282 | wxPoint *result; | |
3283 | PyObject * obj0 = 0 ; | |
3284 | PyObject * obj1 = 0 ; | |
3285 | char *kwnames[] = { | |
3286 | (char *) "x",(char *) "y", NULL | |
3287 | }; | |
3288 | ||
3289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail; | |
3290 | if (obj0) { | |
c370783e | 3291 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
3292 | if (PyErr_Occurred()) SWIG_fail; |
3293 | } | |
3294 | if (obj1) { | |
c370783e | 3295 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3296 | if (PyErr_Occurred()) SWIG_fail; |
3297 | } | |
3298 | { | |
3299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3300 | result = (wxPoint *)new wxPoint(arg1,arg2); | |
3301 | ||
3302 | wxPyEndAllowThreads(__tstate); | |
3303 | if (PyErr_Occurred()) SWIG_fail; | |
3304 | } | |
3305 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); | |
3306 | return resultobj; | |
3307 | fail: | |
3308 | return NULL; | |
3309 | } | |
3310 | ||
3311 | ||
c370783e | 3312 | static PyObject *_wrap_delete_Point(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3313 | PyObject *resultobj; |
3314 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3315 | PyObject * obj0 = 0 ; | |
3316 | char *kwnames[] = { | |
3317 | (char *) "self", NULL | |
3318 | }; | |
3319 | ||
3320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail; | |
3321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3323 | { | |
3324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3325 | delete arg1; | |
3326 | ||
3327 | wxPyEndAllowThreads(__tstate); | |
3328 | if (PyErr_Occurred()) SWIG_fail; | |
3329 | } | |
3330 | Py_INCREF(Py_None); resultobj = Py_None; | |
3331 | return resultobj; | |
3332 | fail: | |
3333 | return NULL; | |
3334 | } | |
3335 | ||
3336 | ||
c370783e | 3337 | static PyObject *_wrap_Point___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3338 | PyObject *resultobj; |
3339 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3340 | wxPoint *arg2 = 0 ; | |
3341 | bool result; | |
3342 | wxPoint temp2 ; | |
3343 | PyObject * obj0 = 0 ; | |
3344 | PyObject * obj1 = 0 ; | |
3345 | char *kwnames[] = { | |
3346 | (char *) "self",(char *) "pt", NULL | |
3347 | }; | |
3348 | ||
3349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail; | |
3350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3352 | { | |
3353 | arg2 = &temp2; | |
3354 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3355 | } | |
3356 | { | |
3357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3358 | result = (bool)(arg1)->operator ==((wxPoint const &)*arg2); | |
3359 | ||
3360 | wxPyEndAllowThreads(__tstate); | |
3361 | if (PyErr_Occurred()) SWIG_fail; | |
3362 | } | |
3363 | { | |
3364 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3365 | } | |
3366 | return resultobj; | |
3367 | fail: | |
3368 | return NULL; | |
3369 | } | |
3370 | ||
3371 | ||
c370783e | 3372 | static PyObject *_wrap_Point___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3373 | PyObject *resultobj; |
3374 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3375 | wxPoint *arg2 = 0 ; | |
3376 | bool 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___ne__",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 = (bool)(arg1)->operator !=((wxPoint const &)*arg2); | |
3394 | ||
3395 | wxPyEndAllowThreads(__tstate); | |
3396 | if (PyErr_Occurred()) SWIG_fail; | |
3397 | } | |
3398 | { | |
3399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3400 | } | |
3401 | return resultobj; | |
3402 | fail: | |
3403 | return NULL; | |
3404 | } | |
3405 | ||
3406 | ||
c370783e | 3407 | static PyObject *_wrap_Point___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3408 | PyObject *resultobj; |
3409 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3410 | wxPoint *arg2 = 0 ; | |
3411 | wxPoint result; | |
3412 | wxPoint temp2 ; | |
3413 | PyObject * obj0 = 0 ; | |
3414 | PyObject * obj1 = 0 ; | |
3415 | char *kwnames[] = { | |
3416 | (char *) "self",(char *) "pt", NULL | |
3417 | }; | |
3418 | ||
3419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail; | |
3420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3422 | { | |
3423 | arg2 = &temp2; | |
3424 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3425 | } | |
3426 | { | |
3427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3428 | result = (arg1)->operator +((wxPoint const &)*arg2); | |
3429 | ||
3430 | wxPyEndAllowThreads(__tstate); | |
3431 | if (PyErr_Occurred()) SWIG_fail; | |
3432 | } | |
3433 | { | |
3434 | wxPoint * resultptr; | |
3435 | resultptr = new wxPoint((wxPoint &) result); | |
3436 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3437 | } | |
3438 | return resultobj; | |
3439 | fail: | |
3440 | return NULL; | |
3441 | } | |
3442 | ||
3443 | ||
c370783e | 3444 | static PyObject *_wrap_Point___sub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3445 | PyObject *resultobj; |
3446 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3447 | wxPoint *arg2 = 0 ; | |
3448 | wxPoint result; | |
3449 | wxPoint temp2 ; | |
3450 | PyObject * obj0 = 0 ; | |
3451 | PyObject * obj1 = 0 ; | |
3452 | char *kwnames[] = { | |
3453 | (char *) "self",(char *) "pt", NULL | |
3454 | }; | |
3455 | ||
3456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail; | |
3457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3459 | { | |
3460 | arg2 = &temp2; | |
3461 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3462 | } | |
3463 | { | |
3464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3465 | result = (arg1)->operator -((wxPoint const &)*arg2); | |
3466 | ||
3467 | wxPyEndAllowThreads(__tstate); | |
3468 | if (PyErr_Occurred()) SWIG_fail; | |
3469 | } | |
3470 | { | |
3471 | wxPoint * resultptr; | |
3472 | resultptr = new wxPoint((wxPoint &) result); | |
3473 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
3474 | } | |
3475 | return resultobj; | |
3476 | fail: | |
3477 | return NULL; | |
3478 | } | |
3479 | ||
3480 | ||
c370783e | 3481 | static PyObject *_wrap_Point___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3482 | PyObject *resultobj; |
3483 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3484 | wxPoint *arg2 = 0 ; | |
3485 | wxPoint *result; | |
3486 | wxPoint temp2 ; | |
3487 | PyObject * obj0 = 0 ; | |
3488 | PyObject * obj1 = 0 ; | |
3489 | char *kwnames[] = { | |
3490 | (char *) "self",(char *) "pt", NULL | |
3491 | }; | |
3492 | ||
3493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
3494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
c370783e | 3495 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
3496 | { |
3497 | arg2 = &temp2; | |
3498 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3499 | } | |
3500 | { | |
3501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3502 | { | |
3503 | wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2); | |
3504 | result = (wxPoint *) &_result_ref; | |
3505 | } | |
3506 | ||
3507 | wxPyEndAllowThreads(__tstate); | |
3508 | if (PyErr_Occurred()) SWIG_fail; | |
3509 | } | |
c370783e | 3510 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d55e5bfc RD |
3511 | return resultobj; |
3512 | fail: | |
3513 | return NULL; | |
3514 | } | |
3515 | ||
3516 | ||
c370783e | 3517 | static PyObject *_wrap_Point___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3518 | PyObject *resultobj; |
3519 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3520 | wxPoint *arg2 = 0 ; | |
3521 | wxPoint *result; | |
3522 | wxPoint temp2 ; | |
3523 | PyObject * obj0 = 0 ; | |
3524 | PyObject * obj1 = 0 ; | |
3525 | char *kwnames[] = { | |
3526 | (char *) "self",(char *) "pt", NULL | |
3527 | }; | |
3528 | ||
3529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail; | |
3530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
c370783e | 3531 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
3532 | { |
3533 | arg2 = &temp2; | |
3534 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3535 | } | |
3536 | { | |
3537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3538 | { | |
3539 | wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2); | |
3540 | result = (wxPoint *) &_result_ref; | |
3541 | } | |
3542 | ||
3543 | wxPyEndAllowThreads(__tstate); | |
3544 | if (PyErr_Occurred()) SWIG_fail; | |
3545 | } | |
c370783e | 3546 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1); |
d55e5bfc RD |
3547 | return resultobj; |
3548 | fail: | |
3549 | return NULL; | |
3550 | } | |
3551 | ||
3552 | ||
c370783e | 3553 | static PyObject *_wrap_Point_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3554 | PyObject *resultobj; |
3555 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3556 | long arg2 ; | |
3557 | long arg3 ; | |
3558 | PyObject * obj0 = 0 ; | |
3559 | PyObject * obj1 = 0 ; | |
3560 | PyObject * obj2 = 0 ; | |
3561 | char *kwnames[] = { | |
3562 | (char *) "self",(char *) "x",(char *) "y", NULL | |
3563 | }; | |
3564 | ||
3565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3568 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc | 3569 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 3570 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
3571 | if (PyErr_Occurred()) SWIG_fail; |
3572 | { | |
3573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3574 | wxPoint_Set(arg1,arg2,arg3); | |
3575 | ||
3576 | wxPyEndAllowThreads(__tstate); | |
3577 | if (PyErr_Occurred()) SWIG_fail; | |
3578 | } | |
3579 | Py_INCREF(Py_None); resultobj = Py_None; | |
3580 | return resultobj; | |
3581 | fail: | |
3582 | return NULL; | |
3583 | } | |
3584 | ||
3585 | ||
c370783e | 3586 | static PyObject *_wrap_Point_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3587 | PyObject *resultobj; |
3588 | wxPoint *arg1 = (wxPoint *) 0 ; | |
3589 | PyObject *result; | |
3590 | PyObject * obj0 = 0 ; | |
3591 | char *kwnames[] = { | |
3592 | (char *) "self", NULL | |
3593 | }; | |
3594 | ||
3595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail; | |
3596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint, | |
3597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3598 | { | |
3599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3600 | result = (PyObject *)wxPoint_Get(arg1); | |
3601 | ||
3602 | wxPyEndAllowThreads(__tstate); | |
3603 | if (PyErr_Occurred()) SWIG_fail; | |
3604 | } | |
3605 | resultobj = result; | |
3606 | return resultobj; | |
3607 | fail: | |
3608 | return NULL; | |
3609 | } | |
3610 | ||
3611 | ||
c370783e | 3612 | static PyObject * Point_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
3613 | PyObject *obj; |
3614 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3615 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj); | |
3616 | Py_INCREF(obj); | |
3617 | return Py_BuildValue((char *)""); | |
3618 | } | |
c370783e | 3619 | static PyObject *_wrap_new_Rect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3620 | PyObject *resultobj; |
3621 | int arg1 = (int) 0 ; | |
3622 | int arg2 = (int) 0 ; | |
3623 | int arg3 = (int) 0 ; | |
3624 | int arg4 = (int) 0 ; | |
3625 | wxRect *result; | |
3626 | PyObject * obj0 = 0 ; | |
3627 | PyObject * obj1 = 0 ; | |
3628 | PyObject * obj2 = 0 ; | |
3629 | PyObject * obj3 = 0 ; | |
3630 | char *kwnames[] = { | |
3631 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
3632 | }; | |
3633 | ||
3634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3635 | if (obj0) { | |
c370783e | 3636 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
3637 | if (PyErr_Occurred()) SWIG_fail; |
3638 | } | |
3639 | if (obj1) { | |
c370783e | 3640 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3641 | if (PyErr_Occurred()) SWIG_fail; |
3642 | } | |
3643 | if (obj2) { | |
c370783e | 3644 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
3645 | if (PyErr_Occurred()) SWIG_fail; |
3646 | } | |
3647 | if (obj3) { | |
c370783e | 3648 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
3649 | if (PyErr_Occurred()) SWIG_fail; |
3650 | } | |
3651 | { | |
3652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3653 | result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4); | |
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_new_RectPP(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3666 | PyObject *resultobj; |
3667 | wxPoint *arg1 = 0 ; | |
3668 | wxPoint *arg2 = 0 ; | |
3669 | wxRect *result; | |
3670 | wxPoint temp1 ; | |
3671 | wxPoint temp2 ; | |
3672 | PyObject * obj0 = 0 ; | |
3673 | PyObject * obj1 = 0 ; | |
3674 | char *kwnames[] = { | |
3675 | (char *) "topLeft",(char *) "bottomRight", NULL | |
3676 | }; | |
3677 | ||
3678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail; | |
3679 | { | |
3680 | arg1 = &temp1; | |
3681 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3682 | } | |
3683 | { | |
3684 | arg2 = &temp2; | |
3685 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
3686 | } | |
3687 | { | |
3688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3689 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2); | |
3690 | ||
3691 | wxPyEndAllowThreads(__tstate); | |
3692 | if (PyErr_Occurred()) SWIG_fail; | |
3693 | } | |
3694 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3695 | return resultobj; | |
3696 | fail: | |
3697 | return NULL; | |
3698 | } | |
3699 | ||
3700 | ||
c370783e | 3701 | static PyObject *_wrap_new_RectPS(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3702 | PyObject *resultobj; |
3703 | wxPoint *arg1 = 0 ; | |
3704 | wxSize *arg2 = 0 ; | |
3705 | wxRect *result; | |
3706 | wxPoint temp1 ; | |
3707 | wxSize temp2 ; | |
3708 | PyObject * obj0 = 0 ; | |
3709 | PyObject * obj1 = 0 ; | |
3710 | char *kwnames[] = { | |
3711 | (char *) "pos",(char *) "size", NULL | |
3712 | }; | |
3713 | ||
3714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail; | |
3715 | { | |
3716 | arg1 = &temp1; | |
3717 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
3718 | } | |
3719 | { | |
3720 | arg2 = &temp2; | |
3721 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
3722 | } | |
3723 | { | |
3724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3725 | result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2); | |
3726 | ||
3727 | wxPyEndAllowThreads(__tstate); | |
3728 | if (PyErr_Occurred()) SWIG_fail; | |
3729 | } | |
3730 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3731 | return resultobj; | |
3732 | fail: | |
3733 | return NULL; | |
3734 | } | |
3735 | ||
3736 | ||
070c48b4 RD |
3737 | static PyObject *_wrap_new_RectS(PyObject *, PyObject *args, PyObject *kwargs) { |
3738 | PyObject *resultobj; | |
3739 | wxSize *arg1 = 0 ; | |
3740 | wxRect *result; | |
3741 | wxSize temp1 ; | |
3742 | PyObject * obj0 = 0 ; | |
3743 | char *kwnames[] = { | |
3744 | (char *) "size", NULL | |
3745 | }; | |
3746 | ||
3747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RectS",kwnames,&obj0)) goto fail; | |
3748 | { | |
3749 | arg1 = &temp1; | |
3750 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
3751 | } | |
3752 | { | |
3753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3754 | result = (wxRect *)new wxRect((wxSize const &)*arg1); | |
3755 | ||
3756 | wxPyEndAllowThreads(__tstate); | |
3757 | if (PyErr_Occurred()) SWIG_fail; | |
3758 | } | |
3759 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); | |
3760 | return resultobj; | |
3761 | fail: | |
3762 | return NULL; | |
3763 | } | |
3764 | ||
3765 | ||
c370783e | 3766 | static PyObject *_wrap_delete_Rect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3767 | PyObject *resultobj; |
3768 | wxRect *arg1 = (wxRect *) 0 ; | |
3769 | PyObject * obj0 = 0 ; | |
3770 | char *kwnames[] = { | |
3771 | (char *) "self", NULL | |
3772 | }; | |
3773 | ||
3774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail; | |
3775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3777 | { | |
3778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3779 | delete arg1; | |
3780 | ||
3781 | wxPyEndAllowThreads(__tstate); | |
3782 | if (PyErr_Occurred()) SWIG_fail; | |
3783 | } | |
3784 | Py_INCREF(Py_None); resultobj = Py_None; | |
3785 | return resultobj; | |
3786 | fail: | |
3787 | return NULL; | |
3788 | } | |
3789 | ||
3790 | ||
c370783e | 3791 | static PyObject *_wrap_Rect_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3792 | PyObject *resultobj; |
3793 | wxRect *arg1 = (wxRect *) 0 ; | |
3794 | int result; | |
3795 | PyObject * obj0 = 0 ; | |
3796 | char *kwnames[] = { | |
3797 | (char *) "self", NULL | |
3798 | }; | |
3799 | ||
3800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail; | |
3801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3803 | { | |
3804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3805 | result = (int)((wxRect const *)arg1)->GetX(); | |
3806 | ||
3807 | wxPyEndAllowThreads(__tstate); | |
3808 | if (PyErr_Occurred()) SWIG_fail; | |
3809 | } | |
c370783e | 3810 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3811 | return resultobj; |
3812 | fail: | |
3813 | return NULL; | |
3814 | } | |
3815 | ||
3816 | ||
c370783e | 3817 | static PyObject *_wrap_Rect_SetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3818 | PyObject *resultobj; |
3819 | wxRect *arg1 = (wxRect *) 0 ; | |
3820 | int arg2 ; | |
3821 | PyObject * obj0 = 0 ; | |
3822 | PyObject * obj1 = 0 ; | |
3823 | char *kwnames[] = { | |
3824 | (char *) "self",(char *) "x", NULL | |
3825 | }; | |
3826 | ||
3827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail; | |
3828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3830 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3831 | if (PyErr_Occurred()) SWIG_fail; |
3832 | { | |
3833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3834 | (arg1)->SetX(arg2); | |
3835 | ||
3836 | wxPyEndAllowThreads(__tstate); | |
3837 | if (PyErr_Occurred()) SWIG_fail; | |
3838 | } | |
3839 | Py_INCREF(Py_None); resultobj = Py_None; | |
3840 | return resultobj; | |
3841 | fail: | |
3842 | return NULL; | |
3843 | } | |
3844 | ||
3845 | ||
c370783e | 3846 | static PyObject *_wrap_Rect_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3847 | PyObject *resultobj; |
3848 | wxRect *arg1 = (wxRect *) 0 ; | |
3849 | int result; | |
3850 | PyObject * obj0 = 0 ; | |
3851 | char *kwnames[] = { | |
3852 | (char *) "self", NULL | |
3853 | }; | |
3854 | ||
3855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail; | |
3856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3858 | { | |
3859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3860 | result = (int)(arg1)->GetY(); | |
3861 | ||
3862 | wxPyEndAllowThreads(__tstate); | |
3863 | if (PyErr_Occurred()) SWIG_fail; | |
3864 | } | |
c370783e | 3865 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3866 | return resultobj; |
3867 | fail: | |
3868 | return NULL; | |
3869 | } | |
3870 | ||
3871 | ||
c370783e | 3872 | static PyObject *_wrap_Rect_SetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3873 | PyObject *resultobj; |
3874 | wxRect *arg1 = (wxRect *) 0 ; | |
3875 | int arg2 ; | |
3876 | PyObject * obj0 = 0 ; | |
3877 | PyObject * obj1 = 0 ; | |
3878 | char *kwnames[] = { | |
3879 | (char *) "self",(char *) "y", NULL | |
3880 | }; | |
3881 | ||
3882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail; | |
3883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3885 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3886 | if (PyErr_Occurred()) SWIG_fail; |
3887 | { | |
3888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3889 | (arg1)->SetY(arg2); | |
3890 | ||
3891 | wxPyEndAllowThreads(__tstate); | |
3892 | if (PyErr_Occurred()) SWIG_fail; | |
3893 | } | |
3894 | Py_INCREF(Py_None); resultobj = Py_None; | |
3895 | return resultobj; | |
3896 | fail: | |
3897 | return NULL; | |
3898 | } | |
3899 | ||
3900 | ||
c370783e | 3901 | static PyObject *_wrap_Rect_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3902 | PyObject *resultobj; |
3903 | wxRect *arg1 = (wxRect *) 0 ; | |
3904 | int result; | |
3905 | PyObject * obj0 = 0 ; | |
3906 | char *kwnames[] = { | |
3907 | (char *) "self", NULL | |
3908 | }; | |
3909 | ||
3910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail; | |
3911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3913 | { | |
3914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3915 | result = (int)((wxRect const *)arg1)->GetWidth(); | |
3916 | ||
3917 | wxPyEndAllowThreads(__tstate); | |
3918 | if (PyErr_Occurred()) SWIG_fail; | |
3919 | } | |
c370783e | 3920 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3921 | return resultobj; |
3922 | fail: | |
3923 | return NULL; | |
3924 | } | |
3925 | ||
3926 | ||
c370783e | 3927 | static PyObject *_wrap_Rect_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3928 | PyObject *resultobj; |
3929 | wxRect *arg1 = (wxRect *) 0 ; | |
3930 | int arg2 ; | |
3931 | PyObject * obj0 = 0 ; | |
3932 | PyObject * obj1 = 0 ; | |
3933 | char *kwnames[] = { | |
3934 | (char *) "self",(char *) "w", NULL | |
3935 | }; | |
3936 | ||
3937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
3938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3940 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3941 | if (PyErr_Occurred()) SWIG_fail; |
3942 | { | |
3943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3944 | (arg1)->SetWidth(arg2); | |
3945 | ||
3946 | wxPyEndAllowThreads(__tstate); | |
3947 | if (PyErr_Occurred()) SWIG_fail; | |
3948 | } | |
3949 | Py_INCREF(Py_None); resultobj = Py_None; | |
3950 | return resultobj; | |
3951 | fail: | |
3952 | return NULL; | |
3953 | } | |
3954 | ||
3955 | ||
c370783e | 3956 | static PyObject *_wrap_Rect_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3957 | PyObject *resultobj; |
3958 | wxRect *arg1 = (wxRect *) 0 ; | |
3959 | int result; | |
3960 | PyObject * obj0 = 0 ; | |
3961 | char *kwnames[] = { | |
3962 | (char *) "self", NULL | |
3963 | }; | |
3964 | ||
3965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail; | |
3966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3968 | { | |
3969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3970 | result = (int)((wxRect const *)arg1)->GetHeight(); | |
3971 | ||
3972 | wxPyEndAllowThreads(__tstate); | |
3973 | if (PyErr_Occurred()) SWIG_fail; | |
3974 | } | |
c370783e | 3975 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
3976 | return resultobj; |
3977 | fail: | |
3978 | return NULL; | |
3979 | } | |
3980 | ||
3981 | ||
c370783e | 3982 | static PyObject *_wrap_Rect_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
3983 | PyObject *resultobj; |
3984 | wxRect *arg1 = (wxRect *) 0 ; | |
3985 | int arg2 ; | |
3986 | PyObject * obj0 = 0 ; | |
3987 | PyObject * obj1 = 0 ; | |
3988 | char *kwnames[] = { | |
3989 | (char *) "self",(char *) "h", NULL | |
3990 | }; | |
3991 | ||
3992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail; | |
3993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
3994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 3995 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
3996 | if (PyErr_Occurred()) SWIG_fail; |
3997 | { | |
3998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3999 | (arg1)->SetHeight(arg2); | |
4000 | ||
4001 | wxPyEndAllowThreads(__tstate); | |
4002 | if (PyErr_Occurred()) SWIG_fail; | |
4003 | } | |
4004 | Py_INCREF(Py_None); resultobj = Py_None; | |
4005 | return resultobj; | |
4006 | fail: | |
4007 | return NULL; | |
4008 | } | |
4009 | ||
4010 | ||
c370783e | 4011 | static PyObject *_wrap_Rect_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4012 | PyObject *resultobj; |
4013 | wxRect *arg1 = (wxRect *) 0 ; | |
4014 | wxPoint result; | |
4015 | PyObject * obj0 = 0 ; | |
4016 | char *kwnames[] = { | |
4017 | (char *) "self", NULL | |
4018 | }; | |
4019 | ||
4020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail; | |
4021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4023 | { | |
4024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4025 | result = ((wxRect const *)arg1)->GetPosition(); | |
4026 | ||
4027 | wxPyEndAllowThreads(__tstate); | |
4028 | if (PyErr_Occurred()) SWIG_fail; | |
4029 | } | |
4030 | { | |
4031 | wxPoint * resultptr; | |
4032 | resultptr = new wxPoint((wxPoint &) result); | |
4033 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
4034 | } | |
4035 | return resultobj; | |
4036 | fail: | |
4037 | return NULL; | |
4038 | } | |
4039 | ||
4040 | ||
c370783e | 4041 | static PyObject *_wrap_Rect_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4042 | PyObject *resultobj; |
4043 | wxRect *arg1 = (wxRect *) 0 ; | |
4044 | wxPoint *arg2 = 0 ; | |
4045 | wxPoint temp2 ; | |
4046 | PyObject * obj0 = 0 ; | |
4047 | PyObject * obj1 = 0 ; | |
4048 | char *kwnames[] = { | |
4049 | (char *) "self",(char *) "p", NULL | |
4050 | }; | |
4051 | ||
4052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
4053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4055 | { | |
4056 | arg2 = &temp2; | |
4057 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4058 | } | |
4059 | { | |
4060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4061 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
4062 | ||
4063 | wxPyEndAllowThreads(__tstate); | |
4064 | if (PyErr_Occurred()) SWIG_fail; | |
4065 | } | |
4066 | Py_INCREF(Py_None); resultobj = Py_None; | |
4067 | return resultobj; | |
4068 | fail: | |
4069 | return NULL; | |
4070 | } | |
4071 | ||
4072 | ||
c370783e | 4073 | static PyObject *_wrap_Rect_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4074 | PyObject *resultobj; |
4075 | wxRect *arg1 = (wxRect *) 0 ; | |
4076 | wxSize result; | |
4077 | PyObject * obj0 = 0 ; | |
4078 | char *kwnames[] = { | |
4079 | (char *) "self", NULL | |
4080 | }; | |
4081 | ||
4082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail; | |
4083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4085 | { | |
4086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4087 | result = ((wxRect const *)arg1)->GetSize(); | |
4088 | ||
4089 | wxPyEndAllowThreads(__tstate); | |
4090 | if (PyErr_Occurred()) SWIG_fail; | |
4091 | } | |
4092 | { | |
4093 | wxSize * resultptr; | |
4094 | resultptr = new wxSize((wxSize &) result); | |
4095 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
4096 | } | |
4097 | return resultobj; | |
4098 | fail: | |
4099 | return NULL; | |
4100 | } | |
4101 | ||
4102 | ||
c370783e | 4103 | static PyObject *_wrap_Rect_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4104 | PyObject *resultobj; |
4105 | wxRect *arg1 = (wxRect *) 0 ; | |
4106 | wxSize *arg2 = 0 ; | |
4107 | wxSize temp2 ; | |
4108 | PyObject * obj0 = 0 ; | |
4109 | PyObject * obj1 = 0 ; | |
4110 | char *kwnames[] = { | |
4111 | (char *) "self",(char *) "s", NULL | |
4112 | }; | |
4113 | ||
4114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
4115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4117 | { | |
4118 | arg2 = &temp2; | |
4119 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
4120 | } | |
4121 | { | |
4122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4123 | (arg1)->SetSize((wxSize const &)*arg2); | |
4124 | ||
4125 | wxPyEndAllowThreads(__tstate); | |
4126 | if (PyErr_Occurred()) SWIG_fail; | |
4127 | } | |
4128 | Py_INCREF(Py_None); resultobj = Py_None; | |
4129 | return resultobj; | |
4130 | fail: | |
4131 | return NULL; | |
4132 | } | |
4133 | ||
4134 | ||
c370783e | 4135 | static PyObject *_wrap_Rect_GetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4136 | PyObject *resultobj; |
4137 | wxRect *arg1 = (wxRect *) 0 ; | |
4138 | wxPoint result; | |
4139 | PyObject * obj0 = 0 ; | |
4140 | char *kwnames[] = { | |
4141 | (char *) "self", NULL | |
4142 | }; | |
4143 | ||
4144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail; | |
4145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4147 | { | |
4148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4149 | result = ((wxRect const *)arg1)->GetTopLeft(); | |
4150 | ||
4151 | wxPyEndAllowThreads(__tstate); | |
4152 | if (PyErr_Occurred()) SWIG_fail; | |
4153 | } | |
4154 | { | |
4155 | wxPoint * resultptr; | |
4156 | resultptr = new wxPoint((wxPoint &) result); | |
4157 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
4158 | } | |
4159 | return resultobj; | |
4160 | fail: | |
4161 | return NULL; | |
4162 | } | |
4163 | ||
4164 | ||
c370783e | 4165 | static PyObject *_wrap_Rect_SetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4166 | PyObject *resultobj; |
4167 | wxRect *arg1 = (wxRect *) 0 ; | |
4168 | wxPoint *arg2 = 0 ; | |
4169 | wxPoint temp2 ; | |
4170 | PyObject * obj0 = 0 ; | |
4171 | PyObject * obj1 = 0 ; | |
4172 | char *kwnames[] = { | |
4173 | (char *) "self",(char *) "p", NULL | |
4174 | }; | |
4175 | ||
4176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail; | |
4177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4179 | { | |
4180 | arg2 = &temp2; | |
4181 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4182 | } | |
4183 | { | |
4184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4185 | (arg1)->SetTopLeft((wxPoint const &)*arg2); | |
4186 | ||
4187 | wxPyEndAllowThreads(__tstate); | |
4188 | if (PyErr_Occurred()) SWIG_fail; | |
4189 | } | |
4190 | Py_INCREF(Py_None); resultobj = Py_None; | |
4191 | return resultobj; | |
4192 | fail: | |
4193 | return NULL; | |
4194 | } | |
4195 | ||
4196 | ||
c370783e | 4197 | static PyObject *_wrap_Rect_GetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4198 | PyObject *resultobj; |
4199 | wxRect *arg1 = (wxRect *) 0 ; | |
4200 | wxPoint result; | |
4201 | PyObject * obj0 = 0 ; | |
4202 | char *kwnames[] = { | |
4203 | (char *) "self", NULL | |
4204 | }; | |
4205 | ||
4206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail; | |
4207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4209 | { | |
4210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4211 | result = ((wxRect const *)arg1)->GetBottomRight(); | |
4212 | ||
4213 | wxPyEndAllowThreads(__tstate); | |
4214 | if (PyErr_Occurred()) SWIG_fail; | |
4215 | } | |
4216 | { | |
4217 | wxPoint * resultptr; | |
4218 | resultptr = new wxPoint((wxPoint &) result); | |
4219 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
4220 | } | |
4221 | return resultobj; | |
4222 | fail: | |
4223 | return NULL; | |
4224 | } | |
4225 | ||
4226 | ||
c370783e | 4227 | static PyObject *_wrap_Rect_SetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4228 | PyObject *resultobj; |
4229 | wxRect *arg1 = (wxRect *) 0 ; | |
4230 | wxPoint *arg2 = 0 ; | |
4231 | wxPoint temp2 ; | |
4232 | PyObject * obj0 = 0 ; | |
4233 | PyObject * obj1 = 0 ; | |
4234 | char *kwnames[] = { | |
4235 | (char *) "self",(char *) "p", NULL | |
4236 | }; | |
4237 | ||
4238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail; | |
4239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4241 | { | |
4242 | arg2 = &temp2; | |
4243 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4244 | } | |
4245 | { | |
4246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4247 | (arg1)->SetBottomRight((wxPoint const &)*arg2); | |
4248 | ||
4249 | wxPyEndAllowThreads(__tstate); | |
4250 | if (PyErr_Occurred()) SWIG_fail; | |
4251 | } | |
4252 | Py_INCREF(Py_None); resultobj = Py_None; | |
4253 | return resultobj; | |
4254 | fail: | |
4255 | return NULL; | |
4256 | } | |
4257 | ||
4258 | ||
c370783e | 4259 | static PyObject *_wrap_Rect_GetLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4260 | PyObject *resultobj; |
4261 | wxRect *arg1 = (wxRect *) 0 ; | |
4262 | int result; | |
4263 | PyObject * obj0 = 0 ; | |
4264 | char *kwnames[] = { | |
4265 | (char *) "self", NULL | |
4266 | }; | |
4267 | ||
4268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail; | |
4269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4271 | { | |
4272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4273 | result = (int)((wxRect const *)arg1)->GetLeft(); | |
4274 | ||
4275 | wxPyEndAllowThreads(__tstate); | |
4276 | if (PyErr_Occurred()) SWIG_fail; | |
4277 | } | |
c370783e | 4278 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4279 | return resultobj; |
4280 | fail: | |
4281 | return NULL; | |
4282 | } | |
4283 | ||
4284 | ||
c370783e | 4285 | static PyObject *_wrap_Rect_GetTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4286 | PyObject *resultobj; |
4287 | wxRect *arg1 = (wxRect *) 0 ; | |
4288 | int result; | |
4289 | PyObject * obj0 = 0 ; | |
4290 | char *kwnames[] = { | |
4291 | (char *) "self", NULL | |
4292 | }; | |
4293 | ||
4294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail; | |
4295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4297 | { | |
4298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4299 | result = (int)((wxRect const *)arg1)->GetTop(); | |
4300 | ||
4301 | wxPyEndAllowThreads(__tstate); | |
4302 | if (PyErr_Occurred()) SWIG_fail; | |
4303 | } | |
c370783e | 4304 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4305 | return resultobj; |
4306 | fail: | |
4307 | return NULL; | |
4308 | } | |
4309 | ||
4310 | ||
c370783e | 4311 | static PyObject *_wrap_Rect_GetBottom(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4312 | PyObject *resultobj; |
4313 | wxRect *arg1 = (wxRect *) 0 ; | |
4314 | int result; | |
4315 | PyObject * obj0 = 0 ; | |
4316 | char *kwnames[] = { | |
4317 | (char *) "self", NULL | |
4318 | }; | |
4319 | ||
4320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail; | |
4321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4323 | { | |
4324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4325 | result = (int)((wxRect const *)arg1)->GetBottom(); | |
4326 | ||
4327 | wxPyEndAllowThreads(__tstate); | |
4328 | if (PyErr_Occurred()) SWIG_fail; | |
4329 | } | |
c370783e | 4330 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4331 | return resultobj; |
4332 | fail: | |
4333 | return NULL; | |
4334 | } | |
4335 | ||
4336 | ||
c370783e | 4337 | static PyObject *_wrap_Rect_GetRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4338 | PyObject *resultobj; |
4339 | wxRect *arg1 = (wxRect *) 0 ; | |
4340 | int result; | |
4341 | PyObject * obj0 = 0 ; | |
4342 | char *kwnames[] = { | |
4343 | (char *) "self", NULL | |
4344 | }; | |
4345 | ||
4346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail; | |
4347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4349 | { | |
4350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4351 | result = (int)((wxRect const *)arg1)->GetRight(); | |
4352 | ||
4353 | wxPyEndAllowThreads(__tstate); | |
4354 | if (PyErr_Occurred()) SWIG_fail; | |
4355 | } | |
c370783e | 4356 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4357 | return resultobj; |
4358 | fail: | |
4359 | return NULL; | |
4360 | } | |
4361 | ||
4362 | ||
c370783e | 4363 | static PyObject *_wrap_Rect_SetLeft(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4364 | PyObject *resultobj; |
4365 | wxRect *arg1 = (wxRect *) 0 ; | |
4366 | int arg2 ; | |
4367 | PyObject * obj0 = 0 ; | |
4368 | PyObject * obj1 = 0 ; | |
4369 | char *kwnames[] = { | |
4370 | (char *) "self",(char *) "left", NULL | |
4371 | }; | |
4372 | ||
4373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail; | |
4374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4376 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4377 | if (PyErr_Occurred()) SWIG_fail; |
4378 | { | |
4379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4380 | (arg1)->SetLeft(arg2); | |
4381 | ||
4382 | wxPyEndAllowThreads(__tstate); | |
4383 | if (PyErr_Occurred()) SWIG_fail; | |
4384 | } | |
4385 | Py_INCREF(Py_None); resultobj = Py_None; | |
4386 | return resultobj; | |
4387 | fail: | |
4388 | return NULL; | |
4389 | } | |
4390 | ||
4391 | ||
c370783e | 4392 | static PyObject *_wrap_Rect_SetRight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4393 | PyObject *resultobj; |
4394 | wxRect *arg1 = (wxRect *) 0 ; | |
4395 | int arg2 ; | |
4396 | PyObject * obj0 = 0 ; | |
4397 | PyObject * obj1 = 0 ; | |
4398 | char *kwnames[] = { | |
4399 | (char *) "self",(char *) "right", NULL | |
4400 | }; | |
4401 | ||
4402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail; | |
4403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4405 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4406 | if (PyErr_Occurred()) SWIG_fail; |
4407 | { | |
4408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4409 | (arg1)->SetRight(arg2); | |
4410 | ||
4411 | wxPyEndAllowThreads(__tstate); | |
4412 | if (PyErr_Occurred()) SWIG_fail; | |
4413 | } | |
4414 | Py_INCREF(Py_None); resultobj = Py_None; | |
4415 | return resultobj; | |
4416 | fail: | |
4417 | return NULL; | |
4418 | } | |
4419 | ||
4420 | ||
c370783e | 4421 | static PyObject *_wrap_Rect_SetTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4422 | PyObject *resultobj; |
4423 | wxRect *arg1 = (wxRect *) 0 ; | |
4424 | int arg2 ; | |
4425 | PyObject * obj0 = 0 ; | |
4426 | PyObject * obj1 = 0 ; | |
4427 | char *kwnames[] = { | |
4428 | (char *) "self",(char *) "top", NULL | |
4429 | }; | |
4430 | ||
4431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail; | |
4432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4434 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4435 | if (PyErr_Occurred()) SWIG_fail; |
4436 | { | |
4437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4438 | (arg1)->SetTop(arg2); | |
4439 | ||
4440 | wxPyEndAllowThreads(__tstate); | |
4441 | if (PyErr_Occurred()) SWIG_fail; | |
4442 | } | |
4443 | Py_INCREF(Py_None); resultobj = Py_None; | |
4444 | return resultobj; | |
4445 | fail: | |
4446 | return NULL; | |
4447 | } | |
4448 | ||
4449 | ||
c370783e | 4450 | static PyObject *_wrap_Rect_SetBottom(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4451 | PyObject *resultobj; |
4452 | wxRect *arg1 = (wxRect *) 0 ; | |
4453 | int arg2 ; | |
4454 | PyObject * obj0 = 0 ; | |
4455 | PyObject * obj1 = 0 ; | |
4456 | char *kwnames[] = { | |
4457 | (char *) "self",(char *) "bottom", NULL | |
4458 | }; | |
4459 | ||
4460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail; | |
4461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4463 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4464 | if (PyErr_Occurred()) SWIG_fail; |
4465 | { | |
4466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4467 | (arg1)->SetBottom(arg2); | |
4468 | ||
4469 | wxPyEndAllowThreads(__tstate); | |
4470 | if (PyErr_Occurred()) SWIG_fail; | |
4471 | } | |
4472 | Py_INCREF(Py_None); resultobj = Py_None; | |
4473 | return resultobj; | |
4474 | fail: | |
4475 | return NULL; | |
4476 | } | |
4477 | ||
4478 | ||
c370783e | 4479 | static PyObject *_wrap_Rect_Inflate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4480 | PyObject *resultobj; |
4481 | wxRect *arg1 = (wxRect *) 0 ; | |
4482 | int arg2 ; | |
4483 | int arg3 ; | |
4484 | wxRect *result; | |
4485 | PyObject * obj0 = 0 ; | |
4486 | PyObject * obj1 = 0 ; | |
4487 | PyObject * obj2 = 0 ; | |
4488 | char *kwnames[] = { | |
4489 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4490 | }; | |
4491 | ||
4492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4495 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4496 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 4497 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4498 | if (PyErr_Occurred()) SWIG_fail; |
4499 | { | |
4500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4501 | { | |
4502 | wxRect &_result_ref = (arg1)->Inflate(arg2,arg3); | |
4503 | result = (wxRect *) &_result_ref; | |
4504 | } | |
4505 | ||
4506 | wxPyEndAllowThreads(__tstate); | |
4507 | if (PyErr_Occurred()) SWIG_fail; | |
4508 | } | |
4509 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
4510 | return resultobj; | |
4511 | fail: | |
4512 | return NULL; | |
4513 | } | |
4514 | ||
4515 | ||
c370783e | 4516 | static PyObject *_wrap_Rect_Deflate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4517 | PyObject *resultobj; |
4518 | wxRect *arg1 = (wxRect *) 0 ; | |
4519 | int arg2 ; | |
4520 | int arg3 ; | |
4521 | wxRect *result; | |
4522 | PyObject * obj0 = 0 ; | |
4523 | PyObject * obj1 = 0 ; | |
4524 | PyObject * obj2 = 0 ; | |
4525 | char *kwnames[] = { | |
4526 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4527 | }; | |
4528 | ||
4529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4532 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4533 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 4534 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4535 | if (PyErr_Occurred()) SWIG_fail; |
4536 | { | |
4537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4538 | { | |
4539 | wxRect &_result_ref = (arg1)->Deflate(arg2,arg3); | |
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_OffsetXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4554 | PyObject *resultobj; |
4555 | wxRect *arg1 = (wxRect *) 0 ; | |
4556 | int arg2 ; | |
4557 | int arg3 ; | |
4558 | PyObject * obj0 = 0 ; | |
4559 | PyObject * obj1 = 0 ; | |
4560 | PyObject * obj2 = 0 ; | |
4561 | char *kwnames[] = { | |
4562 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
4563 | }; | |
4564 | ||
4565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4568 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4569 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 4570 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4571 | if (PyErr_Occurred()) SWIG_fail; |
4572 | { | |
4573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4574 | (arg1)->Offset(arg2,arg3); | |
4575 | ||
4576 | wxPyEndAllowThreads(__tstate); | |
4577 | if (PyErr_Occurred()) SWIG_fail; | |
4578 | } | |
4579 | Py_INCREF(Py_None); resultobj = Py_None; | |
4580 | return resultobj; | |
4581 | fail: | |
4582 | return NULL; | |
4583 | } | |
4584 | ||
4585 | ||
c370783e | 4586 | static PyObject *_wrap_Rect_Offset(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4587 | PyObject *resultobj; |
4588 | wxRect *arg1 = (wxRect *) 0 ; | |
4589 | wxPoint *arg2 = 0 ; | |
4590 | wxPoint temp2 ; | |
4591 | PyObject * obj0 = 0 ; | |
4592 | PyObject * obj1 = 0 ; | |
4593 | char *kwnames[] = { | |
4594 | (char *) "self",(char *) "pt", NULL | |
4595 | }; | |
4596 | ||
4597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail; | |
4598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4600 | { | |
4601 | arg2 = &temp2; | |
4602 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4603 | } | |
4604 | { | |
4605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4606 | (arg1)->Offset((wxPoint const &)*arg2); | |
4607 | ||
4608 | wxPyEndAllowThreads(__tstate); | |
4609 | if (PyErr_Occurred()) SWIG_fail; | |
4610 | } | |
4611 | Py_INCREF(Py_None); resultobj = Py_None; | |
4612 | return resultobj; | |
4613 | fail: | |
4614 | return NULL; | |
4615 | } | |
4616 | ||
4617 | ||
c370783e | 4618 | static PyObject *_wrap_Rect_Intersect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4619 | PyObject *resultobj; |
4620 | wxRect *arg1 = (wxRect *) 0 ; | |
4621 | wxRect *arg2 = 0 ; | |
5cbf236d | 4622 | wxRect result; |
d55e5bfc RD |
4623 | wxRect temp2 ; |
4624 | PyObject * obj0 = 0 ; | |
4625 | PyObject * obj1 = 0 ; | |
4626 | char *kwnames[] = { | |
4627 | (char *) "self",(char *) "rect", NULL | |
4628 | }; | |
4629 | ||
4630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail; | |
4631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4633 | { | |
4634 | arg2 = &temp2; | |
4635 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4636 | } | |
4637 | { | |
4638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5cbf236d | 4639 | result = (arg1)->Intersect((wxRect const &)*arg2); |
d55e5bfc RD |
4640 | |
4641 | wxPyEndAllowThreads(__tstate); | |
4642 | if (PyErr_Occurred()) SWIG_fail; | |
4643 | } | |
5cbf236d RD |
4644 | { |
4645 | wxRect * resultptr; | |
4646 | resultptr = new wxRect((wxRect &) result); | |
4647 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4648 | } | |
4649 | return resultobj; | |
4650 | fail: | |
4651 | return NULL; | |
4652 | } | |
4653 | ||
4654 | ||
4655 | static PyObject *_wrap_Rect_Union(PyObject *, PyObject *args, PyObject *kwargs) { | |
4656 | PyObject *resultobj; | |
4657 | wxRect *arg1 = (wxRect *) 0 ; | |
4658 | wxRect *arg2 = 0 ; | |
4659 | wxRect result; | |
4660 | wxRect temp2 ; | |
4661 | PyObject * obj0 = 0 ; | |
4662 | PyObject * obj1 = 0 ; | |
4663 | char *kwnames[] = { | |
4664 | (char *) "self",(char *) "rect", NULL | |
4665 | }; | |
4666 | ||
4667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Union",kwnames,&obj0,&obj1)) goto fail; | |
4668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4670 | { | |
4671 | arg2 = &temp2; | |
4672 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4673 | } | |
4674 | { | |
4675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4676 | result = (arg1)->Union((wxRect const &)*arg2); | |
4677 | ||
4678 | wxPyEndAllowThreads(__tstate); | |
4679 | if (PyErr_Occurred()) SWIG_fail; | |
4680 | } | |
4681 | { | |
4682 | wxRect * resultptr; | |
4683 | resultptr = new wxRect((wxRect &) result); | |
4684 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4685 | } | |
d55e5bfc RD |
4686 | return resultobj; |
4687 | fail: | |
4688 | return NULL; | |
4689 | } | |
4690 | ||
4691 | ||
c370783e | 4692 | static PyObject *_wrap_Rect___add__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4693 | PyObject *resultobj; |
4694 | wxRect *arg1 = (wxRect *) 0 ; | |
4695 | wxRect *arg2 = 0 ; | |
4696 | wxRect result; | |
4697 | wxRect temp2 ; | |
4698 | PyObject * obj0 = 0 ; | |
4699 | PyObject * obj1 = 0 ; | |
4700 | char *kwnames[] = { | |
4701 | (char *) "self",(char *) "rect", NULL | |
4702 | }; | |
4703 | ||
4704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail; | |
4705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4707 | { | |
4708 | arg2 = &temp2; | |
4709 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4710 | } | |
4711 | { | |
4712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4713 | result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2); | |
4714 | ||
4715 | wxPyEndAllowThreads(__tstate); | |
4716 | if (PyErr_Occurred()) SWIG_fail; | |
4717 | } | |
4718 | { | |
4719 | wxRect * resultptr; | |
4720 | resultptr = new wxRect((wxRect &) result); | |
4721 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
4722 | } | |
4723 | return resultobj; | |
4724 | fail: | |
4725 | return NULL; | |
4726 | } | |
4727 | ||
4728 | ||
c370783e | 4729 | static PyObject *_wrap_Rect___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4730 | PyObject *resultobj; |
4731 | wxRect *arg1 = (wxRect *) 0 ; | |
4732 | wxRect *arg2 = 0 ; | |
4733 | wxRect *result; | |
4734 | wxRect temp2 ; | |
4735 | PyObject * obj0 = 0 ; | |
4736 | PyObject * obj1 = 0 ; | |
4737 | char *kwnames[] = { | |
4738 | (char *) "self",(char *) "rect", NULL | |
4739 | }; | |
4740 | ||
4741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
4742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
c370783e | 4743 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
4744 | { |
4745 | arg2 = &temp2; | |
4746 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4747 | } | |
4748 | { | |
4749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4750 | { | |
4751 | wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2); | |
4752 | result = (wxRect *) &_result_ref; | |
4753 | } | |
4754 | ||
4755 | wxPyEndAllowThreads(__tstate); | |
4756 | if (PyErr_Occurred()) SWIG_fail; | |
4757 | } | |
c370783e | 4758 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1); |
d55e5bfc RD |
4759 | return resultobj; |
4760 | fail: | |
4761 | return NULL; | |
4762 | } | |
4763 | ||
4764 | ||
c370783e | 4765 | static PyObject *_wrap_Rect___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4766 | PyObject *resultobj; |
4767 | wxRect *arg1 = (wxRect *) 0 ; | |
4768 | wxRect *arg2 = 0 ; | |
4769 | bool result; | |
4770 | wxRect temp2 ; | |
4771 | PyObject * obj0 = 0 ; | |
4772 | PyObject * obj1 = 0 ; | |
4773 | char *kwnames[] = { | |
4774 | (char *) "self",(char *) "rect", NULL | |
4775 | }; | |
4776 | ||
4777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail; | |
4778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4780 | { | |
4781 | arg2 = &temp2; | |
4782 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4783 | } | |
4784 | { | |
4785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4786 | result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2); | |
4787 | ||
4788 | wxPyEndAllowThreads(__tstate); | |
4789 | if (PyErr_Occurred()) SWIG_fail; | |
4790 | } | |
4791 | { | |
4792 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4793 | } | |
4794 | return resultobj; | |
4795 | fail: | |
4796 | return NULL; | |
4797 | } | |
4798 | ||
4799 | ||
c370783e | 4800 | static PyObject *_wrap_Rect___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4801 | PyObject *resultobj; |
4802 | wxRect *arg1 = (wxRect *) 0 ; | |
4803 | wxRect *arg2 = 0 ; | |
4804 | bool result; | |
4805 | wxRect temp2 ; | |
4806 | PyObject * obj0 = 0 ; | |
4807 | PyObject * obj1 = 0 ; | |
4808 | char *kwnames[] = { | |
4809 | (char *) "self",(char *) "rect", NULL | |
4810 | }; | |
4811 | ||
4812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail; | |
4813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4815 | { | |
4816 | arg2 = &temp2; | |
4817 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4818 | } | |
4819 | { | |
4820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4821 | result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2); | |
4822 | ||
4823 | wxPyEndAllowThreads(__tstate); | |
4824 | if (PyErr_Occurred()) SWIG_fail; | |
4825 | } | |
4826 | { | |
4827 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4828 | } | |
4829 | return resultobj; | |
4830 | fail: | |
4831 | return NULL; | |
4832 | } | |
4833 | ||
4834 | ||
c370783e | 4835 | static PyObject *_wrap_Rect_InsideXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4836 | PyObject *resultobj; |
4837 | wxRect *arg1 = (wxRect *) 0 ; | |
4838 | int arg2 ; | |
4839 | int arg3 ; | |
4840 | bool result; | |
4841 | PyObject * obj0 = 0 ; | |
4842 | PyObject * obj1 = 0 ; | |
4843 | PyObject * obj2 = 0 ; | |
4844 | char *kwnames[] = { | |
4845 | (char *) "self",(char *) "x",(char *) "y", NULL | |
4846 | }; | |
4847 | ||
4848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4851 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 4852 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 4853 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
4854 | if (PyErr_Occurred()) SWIG_fail; |
4855 | { | |
4856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4857 | result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3); | |
4858 | ||
4859 | wxPyEndAllowThreads(__tstate); | |
4860 | if (PyErr_Occurred()) SWIG_fail; | |
4861 | } | |
4862 | { | |
4863 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4864 | } | |
4865 | return resultobj; | |
4866 | fail: | |
4867 | return NULL; | |
4868 | } | |
4869 | ||
4870 | ||
c370783e | 4871 | static PyObject *_wrap_Rect_Inside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4872 | PyObject *resultobj; |
4873 | wxRect *arg1 = (wxRect *) 0 ; | |
4874 | wxPoint *arg2 = 0 ; | |
4875 | bool result; | |
4876 | wxPoint temp2 ; | |
4877 | PyObject * obj0 = 0 ; | |
4878 | PyObject * obj1 = 0 ; | |
4879 | char *kwnames[] = { | |
4880 | (char *) "self",(char *) "pt", NULL | |
4881 | }; | |
4882 | ||
4883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail; | |
4884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4886 | { | |
4887 | arg2 = &temp2; | |
4888 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
4889 | } | |
4890 | { | |
4891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4892 | result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2); | |
4893 | ||
4894 | wxPyEndAllowThreads(__tstate); | |
4895 | if (PyErr_Occurred()) SWIG_fail; | |
4896 | } | |
4897 | { | |
4898 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4899 | } | |
4900 | return resultobj; | |
4901 | fail: | |
4902 | return NULL; | |
4903 | } | |
4904 | ||
4905 | ||
c370783e | 4906 | static PyObject *_wrap_Rect_Intersects(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4907 | PyObject *resultobj; |
4908 | wxRect *arg1 = (wxRect *) 0 ; | |
4909 | wxRect *arg2 = 0 ; | |
4910 | bool result; | |
4911 | wxRect temp2 ; | |
4912 | PyObject * obj0 = 0 ; | |
4913 | PyObject * obj1 = 0 ; | |
4914 | char *kwnames[] = { | |
4915 | (char *) "self",(char *) "rect", NULL | |
4916 | }; | |
4917 | ||
4918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail; | |
4919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4921 | { | |
4922 | arg2 = &temp2; | |
4923 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
4924 | } | |
4925 | { | |
4926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4927 | result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2); | |
4928 | ||
4929 | wxPyEndAllowThreads(__tstate); | |
4930 | if (PyErr_Occurred()) SWIG_fail; | |
4931 | } | |
4932 | { | |
4933 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4934 | } | |
4935 | return resultobj; | |
4936 | fail: | |
4937 | return NULL; | |
4938 | } | |
4939 | ||
4940 | ||
c370783e | 4941 | static PyObject *_wrap_Rect_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4942 | PyObject *resultobj; |
4943 | wxRect *arg1 = (wxRect *) 0 ; | |
4944 | int arg2 ; | |
4945 | PyObject * obj0 = 0 ; | |
4946 | PyObject * obj1 = 0 ; | |
4947 | char *kwnames[] = { | |
4948 | (char *) "self",(char *) "x", NULL | |
4949 | }; | |
4950 | ||
4951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail; | |
4952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4954 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
4955 | if (PyErr_Occurred()) SWIG_fail; |
4956 | if (arg1) (arg1)->x = arg2; | |
4957 | ||
4958 | Py_INCREF(Py_None); resultobj = Py_None; | |
4959 | return resultobj; | |
4960 | fail: | |
4961 | return NULL; | |
4962 | } | |
4963 | ||
4964 | ||
c370783e | 4965 | static PyObject *_wrap_Rect_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4966 | PyObject *resultobj; |
4967 | wxRect *arg1 = (wxRect *) 0 ; | |
4968 | int result; | |
4969 | PyObject * obj0 = 0 ; | |
4970 | char *kwnames[] = { | |
4971 | (char *) "self", NULL | |
4972 | }; | |
4973 | ||
4974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail; | |
4975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4977 | result = (int) ((arg1)->x); | |
4978 | ||
c370783e | 4979 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
4980 | return resultobj; |
4981 | fail: | |
4982 | return NULL; | |
4983 | } | |
4984 | ||
4985 | ||
c370783e | 4986 | static PyObject *_wrap_Rect_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
4987 | PyObject *resultobj; |
4988 | wxRect *arg1 = (wxRect *) 0 ; | |
4989 | int arg2 ; | |
4990 | PyObject * obj0 = 0 ; | |
4991 | PyObject * obj1 = 0 ; | |
4992 | char *kwnames[] = { | |
4993 | (char *) "self",(char *) "y", NULL | |
4994 | }; | |
4995 | ||
4996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail; | |
4997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
4998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 4999 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5000 | if (PyErr_Occurred()) SWIG_fail; |
5001 | if (arg1) (arg1)->y = arg2; | |
5002 | ||
5003 | Py_INCREF(Py_None); resultobj = Py_None; | |
5004 | return resultobj; | |
5005 | fail: | |
5006 | return NULL; | |
5007 | } | |
5008 | ||
5009 | ||
c370783e | 5010 | static PyObject *_wrap_Rect_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5011 | PyObject *resultobj; |
5012 | wxRect *arg1 = (wxRect *) 0 ; | |
5013 | int result; | |
5014 | PyObject * obj0 = 0 ; | |
5015 | char *kwnames[] = { | |
5016 | (char *) "self", NULL | |
5017 | }; | |
5018 | ||
5019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail; | |
5020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5022 | result = (int) ((arg1)->y); | |
5023 | ||
c370783e | 5024 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5025 | return resultobj; |
5026 | fail: | |
5027 | return NULL; | |
5028 | } | |
5029 | ||
5030 | ||
c370783e | 5031 | static PyObject *_wrap_Rect_width_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5032 | PyObject *resultobj; |
5033 | wxRect *arg1 = (wxRect *) 0 ; | |
5034 | int arg2 ; | |
5035 | PyObject * obj0 = 0 ; | |
5036 | PyObject * obj1 = 0 ; | |
5037 | char *kwnames[] = { | |
5038 | (char *) "self",(char *) "width", NULL | |
5039 | }; | |
5040 | ||
5041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail; | |
5042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5044 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5045 | if (PyErr_Occurred()) SWIG_fail; |
5046 | if (arg1) (arg1)->width = arg2; | |
5047 | ||
5048 | Py_INCREF(Py_None); resultobj = Py_None; | |
5049 | return resultobj; | |
5050 | fail: | |
5051 | return NULL; | |
5052 | } | |
5053 | ||
5054 | ||
c370783e | 5055 | static PyObject *_wrap_Rect_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5056 | PyObject *resultobj; |
5057 | wxRect *arg1 = (wxRect *) 0 ; | |
5058 | int result; | |
5059 | PyObject * obj0 = 0 ; | |
5060 | char *kwnames[] = { | |
5061 | (char *) "self", NULL | |
5062 | }; | |
5063 | ||
5064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail; | |
5065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5067 | result = (int) ((arg1)->width); | |
5068 | ||
c370783e | 5069 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5070 | return resultobj; |
5071 | fail: | |
5072 | return NULL; | |
5073 | } | |
5074 | ||
5075 | ||
c370783e | 5076 | static PyObject *_wrap_Rect_height_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5077 | PyObject *resultobj; |
5078 | wxRect *arg1 = (wxRect *) 0 ; | |
5079 | int arg2 ; | |
5080 | PyObject * obj0 = 0 ; | |
5081 | PyObject * obj1 = 0 ; | |
5082 | char *kwnames[] = { | |
5083 | (char *) "self",(char *) "height", NULL | |
5084 | }; | |
5085 | ||
5086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail; | |
5087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5089 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5090 | if (PyErr_Occurred()) SWIG_fail; |
5091 | if (arg1) (arg1)->height = arg2; | |
5092 | ||
5093 | Py_INCREF(Py_None); resultobj = Py_None; | |
5094 | return resultobj; | |
5095 | fail: | |
5096 | return NULL; | |
5097 | } | |
5098 | ||
5099 | ||
c370783e | 5100 | static PyObject *_wrap_Rect_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5101 | PyObject *resultobj; |
5102 | wxRect *arg1 = (wxRect *) 0 ; | |
5103 | int result; | |
5104 | PyObject * obj0 = 0 ; | |
5105 | char *kwnames[] = { | |
5106 | (char *) "self", NULL | |
5107 | }; | |
5108 | ||
5109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail; | |
5110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5112 | result = (int) ((arg1)->height); | |
5113 | ||
c370783e | 5114 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
5115 | return resultobj; |
5116 | fail: | |
5117 | return NULL; | |
5118 | } | |
5119 | ||
5120 | ||
c370783e | 5121 | static PyObject *_wrap_Rect_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5122 | PyObject *resultobj; |
5123 | wxRect *arg1 = (wxRect *) 0 ; | |
5124 | int arg2 = (int) 0 ; | |
5125 | int arg3 = (int) 0 ; | |
5126 | int arg4 = (int) 0 ; | |
5127 | int arg5 = (int) 0 ; | |
5128 | PyObject * obj0 = 0 ; | |
5129 | PyObject * obj1 = 0 ; | |
5130 | PyObject * obj2 = 0 ; | |
5131 | PyObject * obj3 = 0 ; | |
5132 | PyObject * obj4 = 0 ; | |
5133 | char *kwnames[] = { | |
5134 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
5135 | }; | |
5136 | ||
5137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
5138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5140 | if (obj1) { | |
c370783e | 5141 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
5142 | if (PyErr_Occurred()) SWIG_fail; |
5143 | } | |
5144 | if (obj2) { | |
c370783e | 5145 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
5146 | if (PyErr_Occurred()) SWIG_fail; |
5147 | } | |
5148 | if (obj3) { | |
c370783e | 5149 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
5150 | if (PyErr_Occurred()) SWIG_fail; |
5151 | } | |
5152 | if (obj4) { | |
c370783e | 5153 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
5154 | if (PyErr_Occurred()) SWIG_fail; |
5155 | } | |
5156 | { | |
5157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5158 | wxRect_Set(arg1,arg2,arg3,arg4,arg5); | |
5159 | ||
5160 | wxPyEndAllowThreads(__tstate); | |
5161 | if (PyErr_Occurred()) SWIG_fail; | |
5162 | } | |
5163 | Py_INCREF(Py_None); resultobj = Py_None; | |
5164 | return resultobj; | |
5165 | fail: | |
5166 | return NULL; | |
5167 | } | |
5168 | ||
5169 | ||
c370783e | 5170 | static PyObject *_wrap_Rect_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5171 | PyObject *resultobj; |
5172 | wxRect *arg1 = (wxRect *) 0 ; | |
5173 | PyObject *result; | |
5174 | PyObject * obj0 = 0 ; | |
5175 | char *kwnames[] = { | |
5176 | (char *) "self", NULL | |
5177 | }; | |
5178 | ||
5179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail; | |
5180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5182 | { | |
5183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5184 | result = (PyObject *)wxRect_Get(arg1); | |
5185 | ||
5186 | wxPyEndAllowThreads(__tstate); | |
5187 | if (PyErr_Occurred()) SWIG_fail; | |
5188 | } | |
5189 | resultobj = result; | |
5190 | return resultobj; | |
5191 | fail: | |
5192 | return NULL; | |
5193 | } | |
5194 | ||
5195 | ||
c370783e | 5196 | static PyObject * Rect_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
5197 | PyObject *obj; |
5198 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5199 | SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj); | |
5200 | Py_INCREF(obj); | |
5201 | return Py_BuildValue((char *)""); | |
5202 | } | |
c370783e | 5203 | static PyObject *_wrap_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5204 | PyObject *resultobj; |
5205 | wxRect *arg1 = (wxRect *) 0 ; | |
5206 | wxRect *arg2 = (wxRect *) 0 ; | |
5207 | PyObject *result; | |
5208 | PyObject * obj0 = 0 ; | |
5209 | PyObject * obj1 = 0 ; | |
5210 | char *kwnames[] = { | |
5211 | (char *) "r1",(char *) "r2", NULL | |
5212 | }; | |
5213 | ||
5214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail; | |
5215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect, | |
5216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5217 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
5218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5219 | { | |
0439c23b | 5220 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5222 | result = (PyObject *)wxIntersectRect(arg1,arg2); | |
5223 | ||
5224 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5225 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5226 | } |
5227 | resultobj = result; | |
5228 | return resultobj; | |
5229 | fail: | |
5230 | return NULL; | |
5231 | } | |
5232 | ||
5233 | ||
c370783e | 5234 | static PyObject *_wrap_new_Point2D(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5235 | PyObject *resultobj; |
5236 | double arg1 = (double) 0.0 ; | |
5237 | double arg2 = (double) 0.0 ; | |
5238 | wxPoint2D *result; | |
5239 | PyObject * obj0 = 0 ; | |
5240 | PyObject * obj1 = 0 ; | |
5241 | char *kwnames[] = { | |
5242 | (char *) "x",(char *) "y", NULL | |
5243 | }; | |
5244 | ||
5245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail; | |
5246 | if (obj0) { | |
c370783e | 5247 | arg1 = (double)SWIG_As_double(obj0); |
d55e5bfc RD |
5248 | if (PyErr_Occurred()) SWIG_fail; |
5249 | } | |
5250 | if (obj1) { | |
c370783e | 5251 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5252 | if (PyErr_Occurred()) SWIG_fail; |
5253 | } | |
5254 | { | |
5255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5256 | result = (wxPoint2D *)new wxPoint2D(arg1,arg2); | |
5257 | ||
5258 | wxPyEndAllowThreads(__tstate); | |
5259 | if (PyErr_Occurred()) SWIG_fail; | |
5260 | } | |
5261 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
5262 | return resultobj; | |
5263 | fail: | |
5264 | return NULL; | |
5265 | } | |
5266 | ||
5267 | ||
c370783e | 5268 | static PyObject *_wrap_new_Point2DCopy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5269 | PyObject *resultobj; |
5270 | wxPoint2D *arg1 = 0 ; | |
5271 | wxPoint2D *result; | |
5272 | wxPoint2D temp1 ; | |
5273 | PyObject * obj0 = 0 ; | |
5274 | char *kwnames[] = { | |
5275 | (char *) "pt", NULL | |
5276 | }; | |
5277 | ||
5278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail; | |
5279 | { | |
5280 | arg1 = &temp1; | |
5281 | if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail; | |
5282 | } | |
5283 | { | |
5284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5285 | result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1); | |
5286 | ||
5287 | wxPyEndAllowThreads(__tstate); | |
5288 | if (PyErr_Occurred()) SWIG_fail; | |
5289 | } | |
5290 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
5291 | return resultobj; | |
5292 | fail: | |
5293 | return NULL; | |
5294 | } | |
5295 | ||
5296 | ||
c370783e | 5297 | static PyObject *_wrap_new_Point2DFromPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5298 | PyObject *resultobj; |
5299 | wxPoint *arg1 = 0 ; | |
5300 | wxPoint2D *result; | |
5301 | wxPoint temp1 ; | |
5302 | PyObject * obj0 = 0 ; | |
5303 | char *kwnames[] = { | |
5304 | (char *) "pt", NULL | |
5305 | }; | |
5306 | ||
5307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail; | |
5308 | { | |
5309 | arg1 = &temp1; | |
5310 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
5311 | } | |
5312 | { | |
5313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5314 | result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1); | |
5315 | ||
5316 | wxPyEndAllowThreads(__tstate); | |
5317 | if (PyErr_Occurred()) SWIG_fail; | |
5318 | } | |
5319 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); | |
5320 | return resultobj; | |
5321 | fail: | |
5322 | return NULL; | |
5323 | } | |
5324 | ||
5325 | ||
c370783e | 5326 | static PyObject *_wrap_Point2D_GetFloor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5327 | PyObject *resultobj; |
5328 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5329 | int *arg2 = (int *) 0 ; | |
5330 | int *arg3 = (int *) 0 ; | |
5331 | int temp2 ; | |
c370783e | 5332 | int res2 = 0 ; |
d55e5bfc | 5333 | int temp3 ; |
c370783e | 5334 | int res3 = 0 ; |
d55e5bfc RD |
5335 | PyObject * obj0 = 0 ; |
5336 | char *kwnames[] = { | |
5337 | (char *) "self", NULL | |
5338 | }; | |
5339 | ||
c370783e RD |
5340 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5341 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail; |
5343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5345 | { | |
5346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5347 | ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3); | |
5348 | ||
5349 | wxPyEndAllowThreads(__tstate); | |
5350 | if (PyErr_Occurred()) SWIG_fail; | |
5351 | } | |
5352 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
5353 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5354 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5355 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5356 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5357 | return resultobj; |
5358 | fail: | |
5359 | return NULL; | |
5360 | } | |
5361 | ||
5362 | ||
c370783e | 5363 | static PyObject *_wrap_Point2D_GetRounded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5364 | PyObject *resultobj; |
5365 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5366 | int *arg2 = (int *) 0 ; | |
5367 | int *arg3 = (int *) 0 ; | |
5368 | int temp2 ; | |
c370783e | 5369 | int res2 = 0 ; |
d55e5bfc | 5370 | int temp3 ; |
c370783e | 5371 | int res3 = 0 ; |
d55e5bfc RD |
5372 | PyObject * obj0 = 0 ; |
5373 | char *kwnames[] = { | |
5374 | (char *) "self", NULL | |
5375 | }; | |
5376 | ||
c370783e RD |
5377 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
5378 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
5379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail; |
5380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5382 | { | |
5383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5384 | ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3); | |
5385 | ||
5386 | wxPyEndAllowThreads(__tstate); | |
5387 | if (PyErr_Occurred()) SWIG_fail; | |
5388 | } | |
5389 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
5390 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
5391 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
5392 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
5393 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
5394 | return resultobj; |
5395 | fail: | |
5396 | return NULL; | |
5397 | } | |
5398 | ||
5399 | ||
c370783e | 5400 | static PyObject *_wrap_Point2D_GetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5401 | PyObject *resultobj; |
5402 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5403 | double result; | |
5404 | PyObject * obj0 = 0 ; | |
5405 | char *kwnames[] = { | |
5406 | (char *) "self", NULL | |
5407 | }; | |
5408 | ||
5409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail; | |
5410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5412 | { | |
5413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5414 | result = (double)((wxPoint2D const *)arg1)->GetVectorLength(); | |
5415 | ||
5416 | wxPyEndAllowThreads(__tstate); | |
5417 | if (PyErr_Occurred()) SWIG_fail; | |
5418 | } | |
c370783e | 5419 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5420 | return resultobj; |
5421 | fail: | |
5422 | return NULL; | |
5423 | } | |
5424 | ||
5425 | ||
c370783e | 5426 | static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5427 | PyObject *resultobj; |
5428 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5429 | double result; | |
5430 | PyObject * obj0 = 0 ; | |
5431 | char *kwnames[] = { | |
5432 | (char *) "self", NULL | |
5433 | }; | |
5434 | ||
5435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail; | |
5436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5438 | { | |
5439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5440 | result = (double)((wxPoint2D const *)arg1)->GetVectorAngle(); | |
5441 | ||
5442 | wxPyEndAllowThreads(__tstate); | |
5443 | if (PyErr_Occurred()) SWIG_fail; | |
5444 | } | |
c370783e | 5445 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5446 | return resultobj; |
5447 | fail: | |
5448 | return NULL; | |
5449 | } | |
5450 | ||
5451 | ||
c370783e | 5452 | static PyObject *_wrap_Point2D_SetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5453 | PyObject *resultobj; |
5454 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5455 | double arg2 ; | |
5456 | PyObject * obj0 = 0 ; | |
5457 | PyObject * obj1 = 0 ; | |
5458 | char *kwnames[] = { | |
5459 | (char *) "self",(char *) "length", NULL | |
5460 | }; | |
5461 | ||
5462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail; | |
5463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5465 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5466 | if (PyErr_Occurred()) SWIG_fail; |
5467 | { | |
5468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5469 | (arg1)->SetVectorLength(arg2); | |
5470 | ||
5471 | wxPyEndAllowThreads(__tstate); | |
5472 | if (PyErr_Occurred()) SWIG_fail; | |
5473 | } | |
5474 | Py_INCREF(Py_None); resultobj = Py_None; | |
5475 | return resultobj; | |
5476 | fail: | |
5477 | return NULL; | |
5478 | } | |
5479 | ||
5480 | ||
c370783e | 5481 | static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5482 | PyObject *resultobj; |
5483 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5484 | double arg2 ; | |
5485 | PyObject * obj0 = 0 ; | |
5486 | PyObject * obj1 = 0 ; | |
5487 | char *kwnames[] = { | |
5488 | (char *) "self",(char *) "degrees", NULL | |
5489 | }; | |
5490 | ||
5491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail; | |
5492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5494 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5495 | if (PyErr_Occurred()) SWIG_fail; |
5496 | { | |
5497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5498 | (arg1)->SetVectorAngle(arg2); | |
5499 | ||
5500 | wxPyEndAllowThreads(__tstate); | |
5501 | if (PyErr_Occurred()) SWIG_fail; | |
5502 | } | |
5503 | Py_INCREF(Py_None); resultobj = Py_None; | |
5504 | return resultobj; | |
5505 | fail: | |
5506 | return NULL; | |
5507 | } | |
5508 | ||
5509 | ||
c370783e | 5510 | static PyObject *_wrap_Point2D_GetDistance(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5511 | PyObject *resultobj; |
5512 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5513 | wxPoint2D *arg2 = 0 ; | |
5514 | double result; | |
5515 | wxPoint2D temp2 ; | |
5516 | PyObject * obj0 = 0 ; | |
5517 | PyObject * obj1 = 0 ; | |
5518 | char *kwnames[] = { | |
5519 | (char *) "self",(char *) "pt", NULL | |
5520 | }; | |
5521 | ||
5522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail; | |
5523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5525 | { | |
5526 | arg2 = &temp2; | |
5527 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5528 | } | |
5529 | { | |
5530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5531 | result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2); | |
5532 | ||
5533 | wxPyEndAllowThreads(__tstate); | |
5534 | if (PyErr_Occurred()) SWIG_fail; | |
5535 | } | |
c370783e | 5536 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5537 | return resultobj; |
5538 | fail: | |
5539 | return NULL; | |
5540 | } | |
5541 | ||
5542 | ||
c370783e | 5543 | static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5544 | PyObject *resultobj; |
5545 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5546 | wxPoint2D *arg2 = 0 ; | |
5547 | double result; | |
5548 | wxPoint2D temp2 ; | |
5549 | PyObject * obj0 = 0 ; | |
5550 | PyObject * obj1 = 0 ; | |
5551 | char *kwnames[] = { | |
5552 | (char *) "self",(char *) "pt", NULL | |
5553 | }; | |
5554 | ||
5555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail; | |
5556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5558 | { | |
5559 | arg2 = &temp2; | |
5560 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5561 | } | |
5562 | { | |
5563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5564 | result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2); | |
5565 | ||
5566 | wxPyEndAllowThreads(__tstate); | |
5567 | if (PyErr_Occurred()) SWIG_fail; | |
5568 | } | |
c370783e | 5569 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5570 | return resultobj; |
5571 | fail: | |
5572 | return NULL; | |
5573 | } | |
5574 | ||
5575 | ||
c370783e | 5576 | static PyObject *_wrap_Point2D_GetDotProduct(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5577 | PyObject *resultobj; |
5578 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5579 | wxPoint2D *arg2 = 0 ; | |
5580 | double result; | |
5581 | wxPoint2D temp2 ; | |
5582 | PyObject * obj0 = 0 ; | |
5583 | PyObject * obj1 = 0 ; | |
5584 | char *kwnames[] = { | |
5585 | (char *) "self",(char *) "vec", NULL | |
5586 | }; | |
5587 | ||
5588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail; | |
5589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5591 | { | |
5592 | arg2 = &temp2; | |
5593 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5594 | } | |
5595 | { | |
5596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5597 | result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2); | |
5598 | ||
5599 | wxPyEndAllowThreads(__tstate); | |
5600 | if (PyErr_Occurred()) SWIG_fail; | |
5601 | } | |
c370783e | 5602 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5603 | return resultobj; |
5604 | fail: | |
5605 | return NULL; | |
5606 | } | |
5607 | ||
5608 | ||
c370783e | 5609 | static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5610 | PyObject *resultobj; |
5611 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5612 | wxPoint2D *arg2 = 0 ; | |
5613 | double result; | |
5614 | wxPoint2D temp2 ; | |
5615 | PyObject * obj0 = 0 ; | |
5616 | PyObject * obj1 = 0 ; | |
5617 | char *kwnames[] = { | |
5618 | (char *) "self",(char *) "vec", NULL | |
5619 | }; | |
5620 | ||
5621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail; | |
5622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5624 | { | |
5625 | arg2 = &temp2; | |
5626 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5627 | } | |
5628 | { | |
5629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5630 | result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2); | |
5631 | ||
5632 | wxPyEndAllowThreads(__tstate); | |
5633 | if (PyErr_Occurred()) SWIG_fail; | |
5634 | } | |
c370783e | 5635 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5636 | return resultobj; |
5637 | fail: | |
5638 | return NULL; | |
5639 | } | |
5640 | ||
5641 | ||
c370783e | 5642 | static PyObject *_wrap_Point2D___neg__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5643 | PyObject *resultobj; |
5644 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5645 | wxPoint2D result; | |
5646 | PyObject * obj0 = 0 ; | |
5647 | char *kwnames[] = { | |
5648 | (char *) "self", NULL | |
5649 | }; | |
5650 | ||
5651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail; | |
5652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5654 | { | |
5655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5656 | result = (arg1)->operator -(); | |
5657 | ||
5658 | wxPyEndAllowThreads(__tstate); | |
5659 | if (PyErr_Occurred()) SWIG_fail; | |
5660 | } | |
5661 | { | |
5662 | wxPoint2D * resultptr; | |
5663 | resultptr = new wxPoint2D((wxPoint2D &) result); | |
5664 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1); | |
5665 | } | |
5666 | return resultobj; | |
5667 | fail: | |
5668 | return NULL; | |
5669 | } | |
5670 | ||
5671 | ||
c370783e | 5672 | static PyObject *_wrap_Point2D___iadd__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5673 | PyObject *resultobj; |
5674 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5675 | wxPoint2D *arg2 = 0 ; | |
5676 | wxPoint2D *result; | |
5677 | wxPoint2D temp2 ; | |
5678 | PyObject * obj0 = 0 ; | |
5679 | PyObject * obj1 = 0 ; | |
5680 | char *kwnames[] = { | |
5681 | (char *) "self",(char *) "pt", NULL | |
5682 | }; | |
5683 | ||
5684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail; | |
5685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c370783e | 5686 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5687 | { |
5688 | arg2 = &temp2; | |
5689 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5690 | } | |
5691 | { | |
5692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5693 | { | |
5694 | wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2); | |
5695 | result = (wxPoint2D *) &_result_ref; | |
5696 | } | |
5697 | ||
5698 | wxPyEndAllowThreads(__tstate); | |
5699 | if (PyErr_Occurred()) SWIG_fail; | |
5700 | } | |
c370783e | 5701 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5702 | return resultobj; |
5703 | fail: | |
5704 | return NULL; | |
5705 | } | |
5706 | ||
5707 | ||
c370783e | 5708 | static PyObject *_wrap_Point2D___isub__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5709 | PyObject *resultobj; |
5710 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5711 | wxPoint2D *arg2 = 0 ; | |
5712 | wxPoint2D *result; | |
5713 | wxPoint2D temp2 ; | |
5714 | PyObject * obj0 = 0 ; | |
5715 | PyObject * obj1 = 0 ; | |
5716 | char *kwnames[] = { | |
5717 | (char *) "self",(char *) "pt", NULL | |
5718 | }; | |
5719 | ||
5720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail; | |
5721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c370783e | 5722 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5723 | { |
5724 | arg2 = &temp2; | |
5725 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5726 | } | |
5727 | { | |
5728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5729 | { | |
5730 | wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2); | |
5731 | result = (wxPoint2D *) &_result_ref; | |
5732 | } | |
5733 | ||
5734 | wxPyEndAllowThreads(__tstate); | |
5735 | if (PyErr_Occurred()) SWIG_fail; | |
5736 | } | |
c370783e | 5737 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5738 | return resultobj; |
5739 | fail: | |
5740 | return NULL; | |
5741 | } | |
5742 | ||
5743 | ||
c370783e | 5744 | static PyObject *_wrap_Point2D___imul__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5745 | PyObject *resultobj; |
5746 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5747 | wxPoint2D *arg2 = 0 ; | |
5748 | wxPoint2D *result; | |
5749 | wxPoint2D temp2 ; | |
5750 | PyObject * obj0 = 0 ; | |
5751 | PyObject * obj1 = 0 ; | |
5752 | char *kwnames[] = { | |
5753 | (char *) "self",(char *) "pt", NULL | |
5754 | }; | |
5755 | ||
5756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail; | |
5757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c370783e | 5758 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5759 | { |
5760 | arg2 = &temp2; | |
5761 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5762 | } | |
5763 | { | |
5764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5765 | { | |
5766 | wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2); | |
5767 | result = (wxPoint2D *) &_result_ref; | |
5768 | } | |
5769 | ||
5770 | wxPyEndAllowThreads(__tstate); | |
5771 | if (PyErr_Occurred()) SWIG_fail; | |
5772 | } | |
c370783e | 5773 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5774 | return resultobj; |
5775 | fail: | |
5776 | return NULL; | |
5777 | } | |
5778 | ||
5779 | ||
c370783e | 5780 | static PyObject *_wrap_Point2D___idiv__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5781 | PyObject *resultobj; |
5782 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5783 | wxPoint2D *arg2 = 0 ; | |
5784 | wxPoint2D *result; | |
5785 | wxPoint2D temp2 ; | |
5786 | PyObject * obj0 = 0 ; | |
5787 | PyObject * obj1 = 0 ; | |
5788 | char *kwnames[] = { | |
5789 | (char *) "self",(char *) "pt", NULL | |
5790 | }; | |
5791 | ||
5792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail; | |
5793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
c370783e | 5794 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; |
d55e5bfc RD |
5795 | { |
5796 | arg2 = &temp2; | |
5797 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5798 | } | |
5799 | { | |
5800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5801 | { | |
5802 | wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2); | |
5803 | result = (wxPoint2D *) &_result_ref; | |
5804 | } | |
5805 | ||
5806 | wxPyEndAllowThreads(__tstate); | |
5807 | if (PyErr_Occurred()) SWIG_fail; | |
5808 | } | |
c370783e | 5809 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1); |
d55e5bfc RD |
5810 | return resultobj; |
5811 | fail: | |
5812 | return NULL; | |
5813 | } | |
5814 | ||
5815 | ||
c370783e | 5816 | static PyObject *_wrap_Point2D___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5817 | PyObject *resultobj; |
5818 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5819 | wxPoint2D *arg2 = 0 ; | |
5820 | bool result; | |
5821 | wxPoint2D temp2 ; | |
5822 | PyObject * obj0 = 0 ; | |
5823 | PyObject * obj1 = 0 ; | |
5824 | char *kwnames[] = { | |
5825 | (char *) "self",(char *) "pt", NULL | |
5826 | }; | |
5827 | ||
5828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail; | |
5829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5831 | { | |
5832 | arg2 = &temp2; | |
5833 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5834 | } | |
5835 | { | |
5836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5837 | result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2); | |
5838 | ||
5839 | wxPyEndAllowThreads(__tstate); | |
5840 | if (PyErr_Occurred()) SWIG_fail; | |
5841 | } | |
5842 | { | |
5843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5844 | } | |
5845 | return resultobj; | |
5846 | fail: | |
5847 | return NULL; | |
5848 | } | |
5849 | ||
5850 | ||
c370783e | 5851 | static PyObject *_wrap_Point2D___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5852 | PyObject *resultobj; |
5853 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5854 | wxPoint2D *arg2 = 0 ; | |
5855 | bool result; | |
5856 | wxPoint2D temp2 ; | |
5857 | PyObject * obj0 = 0 ; | |
5858 | PyObject * obj1 = 0 ; | |
5859 | char *kwnames[] = { | |
5860 | (char *) "self",(char *) "pt", NULL | |
5861 | }; | |
5862 | ||
5863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail; | |
5864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5866 | { | |
5867 | arg2 = &temp2; | |
5868 | if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail; | |
5869 | } | |
5870 | { | |
5871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5872 | result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2); | |
5873 | ||
5874 | wxPyEndAllowThreads(__tstate); | |
5875 | if (PyErr_Occurred()) SWIG_fail; | |
5876 | } | |
5877 | { | |
5878 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5879 | } | |
5880 | return resultobj; | |
5881 | fail: | |
5882 | return NULL; | |
5883 | } | |
5884 | ||
5885 | ||
c370783e | 5886 | static PyObject *_wrap_Point2D_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5887 | PyObject *resultobj; |
5888 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5889 | double arg2 ; | |
5890 | PyObject * obj0 = 0 ; | |
5891 | PyObject * obj1 = 0 ; | |
5892 | char *kwnames[] = { | |
5893 | (char *) "self",(char *) "m_x", NULL | |
5894 | }; | |
5895 | ||
5896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail; | |
5897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5899 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5900 | if (PyErr_Occurred()) SWIG_fail; |
5901 | if (arg1) (arg1)->m_x = arg2; | |
5902 | ||
5903 | Py_INCREF(Py_None); resultobj = Py_None; | |
5904 | return resultobj; | |
5905 | fail: | |
5906 | return NULL; | |
5907 | } | |
5908 | ||
5909 | ||
c370783e | 5910 | static PyObject *_wrap_Point2D_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5911 | PyObject *resultobj; |
5912 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5913 | double result; | |
5914 | PyObject * obj0 = 0 ; | |
5915 | char *kwnames[] = { | |
5916 | (char *) "self", NULL | |
5917 | }; | |
5918 | ||
5919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail; | |
5920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5922 | result = (double) ((arg1)->m_x); | |
5923 | ||
c370783e | 5924 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5925 | return resultobj; |
5926 | fail: | |
5927 | return NULL; | |
5928 | } | |
5929 | ||
5930 | ||
c370783e | 5931 | static PyObject *_wrap_Point2D_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5932 | PyObject *resultobj; |
5933 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5934 | double arg2 ; | |
5935 | PyObject * obj0 = 0 ; | |
5936 | PyObject * obj1 = 0 ; | |
5937 | char *kwnames[] = { | |
5938 | (char *) "self",(char *) "m_y", NULL | |
5939 | }; | |
5940 | ||
5941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail; | |
5942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 5944 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5945 | if (PyErr_Occurred()) SWIG_fail; |
5946 | if (arg1) (arg1)->m_y = arg2; | |
5947 | ||
5948 | Py_INCREF(Py_None); resultobj = Py_None; | |
5949 | return resultobj; | |
5950 | fail: | |
5951 | return NULL; | |
5952 | } | |
5953 | ||
5954 | ||
c370783e | 5955 | static PyObject *_wrap_Point2D_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5956 | PyObject *resultobj; |
5957 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5958 | double result; | |
5959 | PyObject * obj0 = 0 ; | |
5960 | char *kwnames[] = { | |
5961 | (char *) "self", NULL | |
5962 | }; | |
5963 | ||
5964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail; | |
5965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5967 | result = (double) ((arg1)->m_y); | |
5968 | ||
c370783e | 5969 | resultobj = SWIG_From_double((double)result); |
d55e5bfc RD |
5970 | return resultobj; |
5971 | fail: | |
5972 | return NULL; | |
5973 | } | |
5974 | ||
5975 | ||
c370783e | 5976 | static PyObject *_wrap_Point2D_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
5977 | PyObject *resultobj; |
5978 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
5979 | double arg2 = (double) 0 ; | |
5980 | double arg3 = (double) 0 ; | |
5981 | PyObject * obj0 = 0 ; | |
5982 | PyObject * obj1 = 0 ; | |
5983 | PyObject * obj2 = 0 ; | |
5984 | char *kwnames[] = { | |
5985 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5986 | }; | |
5987 | ||
5988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
5990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5991 | if (obj1) { | |
c370783e | 5992 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
5993 | if (PyErr_Occurred()) SWIG_fail; |
5994 | } | |
5995 | if (obj2) { | |
c370783e | 5996 | arg3 = (double)SWIG_As_double(obj2); |
d55e5bfc RD |
5997 | if (PyErr_Occurred()) SWIG_fail; |
5998 | } | |
5999 | { | |
6000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6001 | wxPoint2D_Set(arg1,arg2,arg3); | |
6002 | ||
6003 | wxPyEndAllowThreads(__tstate); | |
6004 | if (PyErr_Occurred()) SWIG_fail; | |
6005 | } | |
6006 | Py_INCREF(Py_None); resultobj = Py_None; | |
6007 | return resultobj; | |
6008 | fail: | |
6009 | return NULL; | |
6010 | } | |
6011 | ||
6012 | ||
c370783e | 6013 | static PyObject *_wrap_Point2D_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6014 | PyObject *resultobj; |
6015 | wxPoint2D *arg1 = (wxPoint2D *) 0 ; | |
6016 | PyObject *result; | |
6017 | PyObject * obj0 = 0 ; | |
6018 | char *kwnames[] = { | |
6019 | (char *) "self", NULL | |
6020 | }; | |
6021 | ||
6022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail; | |
6023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D, | |
6024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6025 | { | |
6026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6027 | result = (PyObject *)wxPoint2D_Get(arg1); | |
6028 | ||
6029 | wxPyEndAllowThreads(__tstate); | |
6030 | if (PyErr_Occurred()) SWIG_fail; | |
6031 | } | |
6032 | resultobj = result; | |
6033 | return resultobj; | |
6034 | fail: | |
6035 | return NULL; | |
6036 | } | |
6037 | ||
6038 | ||
c370783e | 6039 | static PyObject * Point2D_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6040 | PyObject *obj; |
6041 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6042 | SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj); | |
6043 | Py_INCREF(obj); | |
6044 | return Py_BuildValue((char *)""); | |
6045 | } | |
c370783e | 6046 | static int _wrap_DefaultPosition_set(PyObject *) { |
d55e5bfc RD |
6047 | PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only."); |
6048 | return 1; | |
6049 | } | |
6050 | ||
6051 | ||
6052 | static PyObject *_wrap_DefaultPosition_get() { | |
6053 | PyObject *pyobj; | |
6054 | ||
6055 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0); | |
6056 | return pyobj; | |
6057 | } | |
6058 | ||
6059 | ||
c370783e | 6060 | static int _wrap_DefaultSize_set(PyObject *) { |
d55e5bfc RD |
6061 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only."); |
6062 | return 1; | |
6063 | } | |
6064 | ||
6065 | ||
6066 | static PyObject *_wrap_DefaultSize_get() { | |
6067 | PyObject *pyobj; | |
6068 | ||
6069 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0); | |
6070 | return pyobj; | |
6071 | } | |
6072 | ||
6073 | ||
c370783e | 6074 | static PyObject *_wrap_new_InputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6075 | PyObject *resultobj; |
6076 | PyObject *arg1 = (PyObject *) 0 ; | |
6077 | wxPyInputStream *result; | |
6078 | PyObject * obj0 = 0 ; | |
6079 | char *kwnames[] = { | |
6080 | (char *) "p", NULL | |
6081 | }; | |
6082 | ||
6083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail; | |
6084 | arg1 = obj0; | |
6085 | { | |
6086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6087 | result = (wxPyInputStream *)new_wxPyInputStream(arg1); | |
6088 | ||
6089 | wxPyEndAllowThreads(__tstate); | |
6090 | if (PyErr_Occurred()) SWIG_fail; | |
6091 | } | |
6092 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1); | |
6093 | return resultobj; | |
6094 | fail: | |
6095 | return NULL; | |
6096 | } | |
6097 | ||
6098 | ||
8fb0e70a RD |
6099 | static PyObject *_wrap_delete_InputStream(PyObject *, PyObject *args, PyObject *kwargs) { |
6100 | PyObject *resultobj; | |
6101 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6102 | PyObject * obj0 = 0 ; | |
6103 | char *kwnames[] = { | |
6104 | (char *) "self", NULL | |
6105 | }; | |
6106 | ||
6107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_InputStream",kwnames,&obj0)) goto fail; | |
6108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6110 | { | |
6111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6112 | delete arg1; | |
6113 | ||
6114 | wxPyEndAllowThreads(__tstate); | |
6115 | if (PyErr_Occurred()) SWIG_fail; | |
6116 | } | |
6117 | Py_INCREF(Py_None); resultobj = Py_None; | |
6118 | return resultobj; | |
6119 | fail: | |
6120 | return NULL; | |
6121 | } | |
6122 | ||
6123 | ||
c370783e | 6124 | static PyObject *_wrap_InputStream_close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6125 | PyObject *resultobj; |
6126 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6127 | PyObject * obj0 = 0 ; | |
6128 | char *kwnames[] = { | |
6129 | (char *) "self", NULL | |
6130 | }; | |
6131 | ||
6132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail; | |
6133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6135 | { | |
6136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6137 | (arg1)->close(); | |
6138 | ||
6139 | wxPyEndAllowThreads(__tstate); | |
6140 | if (PyErr_Occurred()) SWIG_fail; | |
6141 | } | |
6142 | Py_INCREF(Py_None); resultobj = Py_None; | |
6143 | return resultobj; | |
6144 | fail: | |
6145 | return NULL; | |
6146 | } | |
6147 | ||
6148 | ||
c370783e | 6149 | static PyObject *_wrap_InputStream_flush(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6150 | PyObject *resultobj; |
6151 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6152 | PyObject * obj0 = 0 ; | |
6153 | char *kwnames[] = { | |
6154 | (char *) "self", NULL | |
6155 | }; | |
6156 | ||
6157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail; | |
6158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6160 | { | |
6161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6162 | (arg1)->flush(); | |
6163 | ||
6164 | wxPyEndAllowThreads(__tstate); | |
6165 | if (PyErr_Occurred()) SWIG_fail; | |
6166 | } | |
6167 | Py_INCREF(Py_None); resultobj = Py_None; | |
6168 | return resultobj; | |
6169 | fail: | |
6170 | return NULL; | |
6171 | } | |
6172 | ||
6173 | ||
c370783e | 6174 | static PyObject *_wrap_InputStream_eof(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6175 | PyObject *resultobj; |
6176 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6177 | bool result; | |
6178 | PyObject * obj0 = 0 ; | |
6179 | char *kwnames[] = { | |
6180 | (char *) "self", NULL | |
6181 | }; | |
6182 | ||
6183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail; | |
6184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6186 | { | |
6187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6188 | result = (bool)(arg1)->eof(); | |
6189 | ||
6190 | wxPyEndAllowThreads(__tstate); | |
6191 | if (PyErr_Occurred()) SWIG_fail; | |
6192 | } | |
6193 | { | |
6194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6195 | } | |
6196 | return resultobj; | |
6197 | fail: | |
6198 | return NULL; | |
6199 | } | |
6200 | ||
6201 | ||
c370783e | 6202 | static PyObject *_wrap_InputStream_read(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6203 | PyObject *resultobj; |
6204 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6205 | int arg2 = (int) -1 ; | |
6206 | PyObject *result; | |
6207 | PyObject * obj0 = 0 ; | |
6208 | PyObject * obj1 = 0 ; | |
6209 | char *kwnames[] = { | |
6210 | (char *) "self",(char *) "size", NULL | |
6211 | }; | |
6212 | ||
6213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail; | |
6214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6216 | if (obj1) { | |
c370783e | 6217 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6218 | if (PyErr_Occurred()) SWIG_fail; |
6219 | } | |
6220 | { | |
6221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6222 | result = (PyObject *)(arg1)->read(arg2); | |
6223 | ||
6224 | wxPyEndAllowThreads(__tstate); | |
6225 | if (PyErr_Occurred()) SWIG_fail; | |
6226 | } | |
6227 | resultobj = result; | |
6228 | return resultobj; | |
6229 | fail: | |
6230 | return NULL; | |
6231 | } | |
6232 | ||
6233 | ||
c370783e | 6234 | static PyObject *_wrap_InputStream_readline(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6235 | PyObject *resultobj; |
6236 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6237 | int arg2 = (int) -1 ; | |
6238 | PyObject *result; | |
6239 | PyObject * obj0 = 0 ; | |
6240 | PyObject * obj1 = 0 ; | |
6241 | char *kwnames[] = { | |
6242 | (char *) "self",(char *) "size", NULL | |
6243 | }; | |
6244 | ||
6245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail; | |
6246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6248 | if (obj1) { | |
c370783e | 6249 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6250 | if (PyErr_Occurred()) SWIG_fail; |
6251 | } | |
6252 | { | |
6253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6254 | result = (PyObject *)(arg1)->readline(arg2); | |
6255 | ||
6256 | wxPyEndAllowThreads(__tstate); | |
6257 | if (PyErr_Occurred()) SWIG_fail; | |
6258 | } | |
6259 | resultobj = result; | |
6260 | return resultobj; | |
6261 | fail: | |
6262 | return NULL; | |
6263 | } | |
6264 | ||
6265 | ||
c370783e | 6266 | static PyObject *_wrap_InputStream_readlines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6267 | PyObject *resultobj; |
6268 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6269 | int arg2 = (int) -1 ; | |
6270 | PyObject *result; | |
6271 | PyObject * obj0 = 0 ; | |
6272 | PyObject * obj1 = 0 ; | |
6273 | char *kwnames[] = { | |
6274 | (char *) "self",(char *) "sizehint", NULL | |
6275 | }; | |
6276 | ||
6277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail; | |
6278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6280 | if (obj1) { | |
c370783e | 6281 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6282 | if (PyErr_Occurred()) SWIG_fail; |
6283 | } | |
6284 | { | |
6285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6286 | result = (PyObject *)(arg1)->readlines(arg2); | |
6287 | ||
6288 | wxPyEndAllowThreads(__tstate); | |
6289 | if (PyErr_Occurred()) SWIG_fail; | |
6290 | } | |
6291 | resultobj = result; | |
6292 | return resultobj; | |
6293 | fail: | |
6294 | return NULL; | |
6295 | } | |
6296 | ||
6297 | ||
c370783e | 6298 | static PyObject *_wrap_InputStream_seek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6299 | PyObject *resultobj; |
6300 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6301 | int arg2 ; | |
6302 | int arg3 = (int) 0 ; | |
6303 | PyObject * obj0 = 0 ; | |
6304 | PyObject * obj1 = 0 ; | |
6305 | PyObject * obj2 = 0 ; | |
6306 | char *kwnames[] = { | |
6307 | (char *) "self",(char *) "offset",(char *) "whence", NULL | |
6308 | }; | |
6309 | ||
6310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6313 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
6314 | if (PyErr_Occurred()) SWIG_fail; |
6315 | if (obj2) { | |
c370783e | 6316 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6317 | if (PyErr_Occurred()) SWIG_fail; |
6318 | } | |
6319 | { | |
6320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6321 | (arg1)->seek(arg2,arg3); | |
6322 | ||
6323 | wxPyEndAllowThreads(__tstate); | |
6324 | if (PyErr_Occurred()) SWIG_fail; | |
6325 | } | |
6326 | Py_INCREF(Py_None); resultobj = Py_None; | |
6327 | return resultobj; | |
6328 | fail: | |
6329 | return NULL; | |
6330 | } | |
6331 | ||
6332 | ||
c370783e | 6333 | static PyObject *_wrap_InputStream_tell(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6334 | PyObject *resultobj; |
6335 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6336 | int result; | |
6337 | PyObject * obj0 = 0 ; | |
6338 | char *kwnames[] = { | |
6339 | (char *) "self", NULL | |
6340 | }; | |
6341 | ||
6342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail; | |
6343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6345 | { | |
6346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6347 | result = (int)(arg1)->tell(); | |
6348 | ||
6349 | wxPyEndAllowThreads(__tstate); | |
6350 | if (PyErr_Occurred()) SWIG_fail; | |
6351 | } | |
c370783e | 6352 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
6353 | return resultobj; |
6354 | fail: | |
6355 | return NULL; | |
6356 | } | |
6357 | ||
6358 | ||
c370783e | 6359 | static PyObject *_wrap_InputStream_Peek(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6360 | PyObject *resultobj; |
6361 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6362 | char result; | |
6363 | PyObject * obj0 = 0 ; | |
6364 | char *kwnames[] = { | |
6365 | (char *) "self", NULL | |
6366 | }; | |
6367 | ||
6368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail; | |
6369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6371 | { | |
6372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6373 | result = (char)(arg1)->Peek(); | |
6374 | ||
6375 | wxPyEndAllowThreads(__tstate); | |
6376 | if (PyErr_Occurred()) SWIG_fail; | |
6377 | } | |
c370783e | 6378 | resultobj = SWIG_From_char((char)result); |
d55e5bfc RD |
6379 | return resultobj; |
6380 | fail: | |
6381 | return NULL; | |
6382 | } | |
6383 | ||
6384 | ||
c370783e | 6385 | static PyObject *_wrap_InputStream_GetC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6386 | PyObject *resultobj; |
6387 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6388 | char result; | |
6389 | PyObject * obj0 = 0 ; | |
6390 | char *kwnames[] = { | |
6391 | (char *) "self", NULL | |
6392 | }; | |
6393 | ||
6394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail; | |
6395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6397 | { | |
6398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6399 | result = (char)(arg1)->GetC(); | |
6400 | ||
6401 | wxPyEndAllowThreads(__tstate); | |
6402 | if (PyErr_Occurred()) SWIG_fail; | |
6403 | } | |
c370783e | 6404 | resultobj = SWIG_From_char((char)result); |
d55e5bfc RD |
6405 | return resultobj; |
6406 | fail: | |
6407 | return NULL; | |
6408 | } | |
6409 | ||
6410 | ||
c370783e | 6411 | static PyObject *_wrap_InputStream_LastRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6412 | PyObject *resultobj; |
6413 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6414 | size_t result; | |
6415 | PyObject * obj0 = 0 ; | |
6416 | char *kwnames[] = { | |
6417 | (char *) "self", NULL | |
6418 | }; | |
6419 | ||
6420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail; | |
6421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6423 | { | |
6424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6425 | result = (size_t)(arg1)->LastRead(); | |
6426 | ||
6427 | wxPyEndAllowThreads(__tstate); | |
6428 | if (PyErr_Occurred()) SWIG_fail; | |
6429 | } | |
c370783e | 6430 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
6431 | return resultobj; |
6432 | fail: | |
6433 | return NULL; | |
6434 | } | |
6435 | ||
6436 | ||
c370783e | 6437 | static PyObject *_wrap_InputStream_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6438 | PyObject *resultobj; |
6439 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6440 | bool result; | |
6441 | PyObject * obj0 = 0 ; | |
6442 | char *kwnames[] = { | |
6443 | (char *) "self", NULL | |
6444 | }; | |
6445 | ||
6446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail; | |
6447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6449 | { | |
6450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6451 | result = (bool)(arg1)->CanRead(); | |
6452 | ||
6453 | wxPyEndAllowThreads(__tstate); | |
6454 | if (PyErr_Occurred()) SWIG_fail; | |
6455 | } | |
6456 | { | |
6457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6458 | } | |
6459 | return resultobj; | |
6460 | fail: | |
6461 | return NULL; | |
6462 | } | |
6463 | ||
6464 | ||
c370783e | 6465 | static PyObject *_wrap_InputStream_Eof(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6466 | PyObject *resultobj; |
6467 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6468 | bool result; | |
6469 | PyObject * obj0 = 0 ; | |
6470 | char *kwnames[] = { | |
6471 | (char *) "self", NULL | |
6472 | }; | |
6473 | ||
6474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail; | |
6475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6477 | { | |
6478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6479 | result = (bool)(arg1)->Eof(); | |
6480 | ||
6481 | wxPyEndAllowThreads(__tstate); | |
6482 | if (PyErr_Occurred()) SWIG_fail; | |
6483 | } | |
6484 | { | |
6485 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6486 | } | |
6487 | return resultobj; | |
6488 | fail: | |
6489 | return NULL; | |
6490 | } | |
6491 | ||
6492 | ||
c370783e | 6493 | static PyObject *_wrap_InputStream_Ungetch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6494 | PyObject *resultobj; |
6495 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6496 | char arg2 ; | |
6497 | bool result; | |
6498 | PyObject * obj0 = 0 ; | |
6499 | PyObject * obj1 = 0 ; | |
6500 | char *kwnames[] = { | |
6501 | (char *) "self",(char *) "c", NULL | |
6502 | }; | |
6503 | ||
6504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail; | |
6505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6507 | arg2 = (char)SWIG_As_char(obj1); |
d55e5bfc RD |
6508 | if (PyErr_Occurred()) SWIG_fail; |
6509 | { | |
6510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6511 | result = (bool)(arg1)->Ungetch(arg2); | |
6512 | ||
6513 | wxPyEndAllowThreads(__tstate); | |
6514 | if (PyErr_Occurred()) SWIG_fail; | |
6515 | } | |
6516 | { | |
6517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6518 | } | |
6519 | return resultobj; | |
6520 | fail: | |
6521 | return NULL; | |
6522 | } | |
6523 | ||
6524 | ||
c370783e | 6525 | static PyObject *_wrap_InputStream_SeekI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6526 | PyObject *resultobj; |
6527 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6528 | long arg2 ; | |
6529 | int arg3 = (int) wxFromStart ; | |
6530 | long result; | |
6531 | PyObject * obj0 = 0 ; | |
6532 | PyObject * obj1 = 0 ; | |
6533 | PyObject * obj2 = 0 ; | |
6534 | char *kwnames[] = { | |
6535 | (char *) "self",(char *) "pos",(char *) "mode", NULL | |
6536 | }; | |
6537 | ||
6538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 6541 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
6542 | if (PyErr_Occurred()) SWIG_fail; |
6543 | if (obj2) { | |
c370783e | 6544 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
6545 | if (PyErr_Occurred()) SWIG_fail; |
6546 | } | |
6547 | { | |
6548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6549 | result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3); | |
6550 | ||
6551 | wxPyEndAllowThreads(__tstate); | |
6552 | if (PyErr_Occurred()) SWIG_fail; | |
6553 | } | |
c370783e | 6554 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
6555 | return resultobj; |
6556 | fail: | |
6557 | return NULL; | |
6558 | } | |
6559 | ||
6560 | ||
c370783e | 6561 | static PyObject *_wrap_InputStream_TellI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6562 | PyObject *resultobj; |
6563 | wxPyInputStream *arg1 = (wxPyInputStream *) 0 ; | |
6564 | long result; | |
6565 | PyObject * obj0 = 0 ; | |
6566 | char *kwnames[] = { | |
6567 | (char *) "self", NULL | |
6568 | }; | |
6569 | ||
6570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail; | |
6571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream, | |
6572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6573 | { | |
6574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6575 | result = (long)(arg1)->TellI(); | |
6576 | ||
6577 | wxPyEndAllowThreads(__tstate); | |
6578 | if (PyErr_Occurred()) SWIG_fail; | |
6579 | } | |
c370783e | 6580 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
6581 | return resultobj; |
6582 | fail: | |
6583 | return NULL; | |
6584 | } | |
6585 | ||
6586 | ||
c370783e | 6587 | static PyObject * InputStream_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6588 | PyObject *obj; |
6589 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6590 | SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj); | |
6591 | Py_INCREF(obj); | |
6592 | return Py_BuildValue((char *)""); | |
6593 | } | |
c370783e | 6594 | static PyObject *_wrap_OutputStream_write(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6595 | PyObject *resultobj; |
6596 | wxOutputStream *arg1 = (wxOutputStream *) 0 ; | |
6597 | PyObject *arg2 = (PyObject *) 0 ; | |
6598 | PyObject * obj0 = 0 ; | |
6599 | PyObject * obj1 = 0 ; | |
6600 | char *kwnames[] = { | |
6601 | (char *) "self",(char *) "obj", NULL | |
6602 | }; | |
6603 | ||
6604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail; | |
6605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream, | |
6606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6607 | arg2 = obj1; | |
6608 | { | |
6609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6610 | wxOutputStream_write(arg1,arg2); | |
6611 | ||
6612 | wxPyEndAllowThreads(__tstate); | |
6613 | if (PyErr_Occurred()) SWIG_fail; | |
6614 | } | |
6615 | Py_INCREF(Py_None); resultobj = Py_None; | |
6616 | return resultobj; | |
6617 | fail: | |
6618 | return NULL; | |
6619 | } | |
6620 | ||
6621 | ||
c370783e | 6622 | static PyObject * OutputStream_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6623 | PyObject *obj; |
6624 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6625 | SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj); | |
6626 | Py_INCREF(obj); | |
6627 | return Py_BuildValue((char *)""); | |
6628 | } | |
c370783e | 6629 | static PyObject *_wrap_new_FSFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6630 | PyObject *resultobj; |
6631 | wxInputStream *arg1 = (wxInputStream *) 0 ; | |
6632 | wxString *arg2 = 0 ; | |
6633 | wxString *arg3 = 0 ; | |
6634 | wxString *arg4 = 0 ; | |
6635 | wxDateTime arg5 ; | |
6636 | wxFSFile *result; | |
6637 | wxPyInputStream *temp1 ; | |
6638 | bool created1 ; | |
b411df4a RD |
6639 | bool temp2 = false ; |
6640 | bool temp3 = false ; | |
6641 | bool temp4 = false ; | |
d55e5bfc RD |
6642 | wxDateTime *argp5 ; |
6643 | PyObject * obj0 = 0 ; | |
6644 | PyObject * obj1 = 0 ; | |
6645 | PyObject * obj2 = 0 ; | |
6646 | PyObject * obj3 = 0 ; | |
6647 | PyObject * obj4 = 0 ; | |
6648 | char *kwnames[] = { | |
6649 | (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL | |
6650 | }; | |
6651 | ||
6652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
6653 | { | |
6654 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
6655 | arg1 = temp1->m_wxis; | |
b411df4a | 6656 | created1 = false; |
d55e5bfc RD |
6657 | } else { |
6658 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
b411df4a | 6659 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
6660 | if (arg1 == NULL) { |
6661 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
6662 | SWIG_fail; | |
6663 | } | |
b411df4a | 6664 | created1 = true; |
d55e5bfc RD |
6665 | } |
6666 | } | |
6667 | { | |
6668 | arg2 = wxString_in_helper(obj1); | |
6669 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 6670 | temp2 = true; |
d55e5bfc RD |
6671 | } |
6672 | { | |
6673 | arg3 = wxString_in_helper(obj2); | |
6674 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 6675 | temp3 = true; |
d55e5bfc RD |
6676 | } |
6677 | { | |
6678 | arg4 = wxString_in_helper(obj3); | |
6679 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 6680 | temp4 = true; |
d55e5bfc RD |
6681 | } |
6682 | if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime, | |
6683 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
6684 | arg5 = *argp5; | |
6685 | { | |
6686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6687 | result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5); | |
6688 | ||
6689 | wxPyEndAllowThreads(__tstate); | |
6690 | if (PyErr_Occurred()) SWIG_fail; | |
6691 | } | |
6692 | { | |
412d302d | 6693 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
6694 | } |
6695 | { | |
6696 | if (created1) | |
6697 | delete arg1; | |
6698 | } | |
6699 | { | |
6700 | if (temp2) | |
6701 | delete arg2; | |
6702 | } | |
6703 | { | |
6704 | if (temp3) | |
6705 | delete arg3; | |
6706 | } | |
6707 | { | |
6708 | if (temp4) | |
6709 | delete arg4; | |
6710 | } | |
6711 | return resultobj; | |
6712 | fail: | |
6713 | { | |
6714 | if (created1) | |
6715 | delete arg1; | |
6716 | } | |
6717 | { | |
6718 | if (temp2) | |
6719 | delete arg2; | |
6720 | } | |
6721 | { | |
6722 | if (temp3) | |
6723 | delete arg3; | |
6724 | } | |
6725 | { | |
6726 | if (temp4) | |
6727 | delete arg4; | |
6728 | } | |
6729 | return NULL; | |
6730 | } | |
6731 | ||
6732 | ||
c370783e | 6733 | static PyObject *_wrap_delete_FSFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6734 | PyObject *resultobj; |
6735 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6736 | PyObject * obj0 = 0 ; | |
6737 | char *kwnames[] = { | |
6738 | (char *) "self", NULL | |
6739 | }; | |
6740 | ||
6741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",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 | delete arg1; | |
6747 | ||
6748 | wxPyEndAllowThreads(__tstate); | |
6749 | if (PyErr_Occurred()) SWIG_fail; | |
6750 | } | |
6751 | Py_INCREF(Py_None); resultobj = Py_None; | |
6752 | return resultobj; | |
6753 | fail: | |
6754 | return NULL; | |
6755 | } | |
6756 | ||
6757 | ||
c370783e | 6758 | static PyObject *_wrap_FSFile_GetStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6759 | PyObject *resultobj; |
6760 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6761 | wxInputStream *result; | |
6762 | PyObject * obj0 = 0 ; | |
6763 | char *kwnames[] = { | |
6764 | (char *) "self", NULL | |
6765 | }; | |
6766 | ||
6767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail; | |
6768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6770 | { | |
6771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6772 | result = (wxInputStream *)(arg1)->GetStream(); | |
6773 | ||
6774 | wxPyEndAllowThreads(__tstate); | |
6775 | if (PyErr_Occurred()) SWIG_fail; | |
6776 | } | |
6777 | { | |
6778 | wxPyInputStream * _ptr = NULL; | |
6779 | ||
6780 | if (result) { | |
6781 | _ptr = new wxPyInputStream(result); | |
6782 | } | |
fc71d09b | 6783 | resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0); |
d55e5bfc RD |
6784 | } |
6785 | return resultobj; | |
6786 | fail: | |
6787 | return NULL; | |
6788 | } | |
6789 | ||
6790 | ||
c370783e | 6791 | static PyObject *_wrap_FSFile_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6792 | PyObject *resultobj; |
6793 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6794 | wxString *result; | |
6795 | PyObject * obj0 = 0 ; | |
6796 | char *kwnames[] = { | |
6797 | (char *) "self", NULL | |
6798 | }; | |
6799 | ||
6800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail; | |
6801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6803 | { | |
6804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6805 | { | |
6806 | wxString const &_result_ref = (arg1)->GetMimeType(); | |
6807 | result = (wxString *) &_result_ref; | |
6808 | } | |
6809 | ||
6810 | wxPyEndAllowThreads(__tstate); | |
6811 | if (PyErr_Occurred()) SWIG_fail; | |
6812 | } | |
6813 | { | |
6814 | #if wxUSE_UNICODE | |
6815 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6816 | #else | |
6817 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6818 | #endif | |
6819 | } | |
6820 | return resultobj; | |
6821 | fail: | |
6822 | return NULL; | |
6823 | } | |
6824 | ||
6825 | ||
c370783e | 6826 | static PyObject *_wrap_FSFile_GetLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6827 | PyObject *resultobj; |
6828 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6829 | wxString *result; | |
6830 | PyObject * obj0 = 0 ; | |
6831 | char *kwnames[] = { | |
6832 | (char *) "self", NULL | |
6833 | }; | |
6834 | ||
6835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail; | |
6836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6838 | { | |
6839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6840 | { | |
6841 | wxString const &_result_ref = (arg1)->GetLocation(); | |
6842 | result = (wxString *) &_result_ref; | |
6843 | } | |
6844 | ||
6845 | wxPyEndAllowThreads(__tstate); | |
6846 | if (PyErr_Occurred()) SWIG_fail; | |
6847 | } | |
6848 | { | |
6849 | #if wxUSE_UNICODE | |
6850 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6851 | #else | |
6852 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6853 | #endif | |
6854 | } | |
6855 | return resultobj; | |
6856 | fail: | |
6857 | return NULL; | |
6858 | } | |
6859 | ||
6860 | ||
c370783e | 6861 | static PyObject *_wrap_FSFile_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6862 | PyObject *resultobj; |
6863 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6864 | wxString *result; | |
6865 | PyObject * obj0 = 0 ; | |
6866 | char *kwnames[] = { | |
6867 | (char *) "self", NULL | |
6868 | }; | |
6869 | ||
6870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail; | |
6871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6873 | { | |
6874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6875 | { | |
6876 | wxString const &_result_ref = (arg1)->GetAnchor(); | |
6877 | result = (wxString *) &_result_ref; | |
6878 | } | |
6879 | ||
6880 | wxPyEndAllowThreads(__tstate); | |
6881 | if (PyErr_Occurred()) SWIG_fail; | |
6882 | } | |
6883 | { | |
6884 | #if wxUSE_UNICODE | |
6885 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
6886 | #else | |
6887 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
6888 | #endif | |
6889 | } | |
6890 | return resultobj; | |
6891 | fail: | |
6892 | return NULL; | |
6893 | } | |
6894 | ||
6895 | ||
c370783e | 6896 | static PyObject *_wrap_FSFile_GetModificationTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6897 | PyObject *resultobj; |
6898 | wxFSFile *arg1 = (wxFSFile *) 0 ; | |
6899 | wxDateTime result; | |
6900 | PyObject * obj0 = 0 ; | |
6901 | char *kwnames[] = { | |
6902 | (char *) "self", NULL | |
6903 | }; | |
6904 | ||
6905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail; | |
6906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile, | |
6907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6908 | { | |
6909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6910 | result = (arg1)->GetModificationTime(); | |
6911 | ||
6912 | wxPyEndAllowThreads(__tstate); | |
6913 | if (PyErr_Occurred()) SWIG_fail; | |
6914 | } | |
6915 | { | |
6916 | wxDateTime * resultptr; | |
6917 | resultptr = new wxDateTime((wxDateTime &) result); | |
6918 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1); | |
6919 | } | |
6920 | return resultobj; | |
6921 | fail: | |
6922 | return NULL; | |
6923 | } | |
6924 | ||
6925 | ||
c370783e | 6926 | static PyObject * FSFile_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6927 | PyObject *obj; |
6928 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6929 | SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj); | |
6930 | Py_INCREF(obj); | |
6931 | return Py_BuildValue((char *)""); | |
6932 | } | |
c370783e | 6933 | static PyObject * CPPFileSystemHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
6934 | PyObject *obj; |
6935 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6936 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj); | |
6937 | Py_INCREF(obj); | |
6938 | return Py_BuildValue((char *)""); | |
6939 | } | |
c370783e | 6940 | static PyObject *_wrap_new_FileSystemHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6941 | PyObject *resultobj; |
6942 | wxPyFileSystemHandler *result; | |
6943 | char *kwnames[] = { | |
6944 | NULL | |
6945 | }; | |
6946 | ||
6947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail; | |
6948 | { | |
6949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6950 | result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler(); | |
6951 | ||
6952 | wxPyEndAllowThreads(__tstate); | |
6953 | if (PyErr_Occurred()) SWIG_fail; | |
6954 | } | |
6955 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1); | |
6956 | return resultobj; | |
6957 | fail: | |
6958 | return NULL; | |
6959 | } | |
6960 | ||
6961 | ||
c370783e | 6962 | static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6963 | PyObject *resultobj; |
6964 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6965 | PyObject *arg2 = (PyObject *) 0 ; | |
6966 | PyObject *arg3 = (PyObject *) 0 ; | |
6967 | PyObject * obj0 = 0 ; | |
6968 | PyObject * obj1 = 0 ; | |
6969 | PyObject * obj2 = 0 ; | |
6970 | char *kwnames[] = { | |
6971 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
6972 | }; | |
6973 | ||
6974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
6976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6977 | arg2 = obj1; | |
6978 | arg3 = obj2; | |
6979 | { | |
6980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6981 | (arg1)->_setCallbackInfo(arg2,arg3); | |
6982 | ||
6983 | wxPyEndAllowThreads(__tstate); | |
6984 | if (PyErr_Occurred()) SWIG_fail; | |
6985 | } | |
6986 | Py_INCREF(Py_None); resultobj = Py_None; | |
6987 | return resultobj; | |
6988 | fail: | |
6989 | return NULL; | |
6990 | } | |
6991 | ||
6992 | ||
c370783e | 6993 | static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
6994 | PyObject *resultobj; |
6995 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
6996 | wxString *arg2 = 0 ; | |
6997 | bool result; | |
b411df4a | 6998 | bool temp2 = false ; |
d55e5bfc RD |
6999 | PyObject * obj0 = 0 ; |
7000 | PyObject * obj1 = 0 ; | |
7001 | char *kwnames[] = { | |
7002 | (char *) "self",(char *) "location", NULL | |
7003 | }; | |
7004 | ||
7005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7008 | { | |
7009 | arg2 = wxString_in_helper(obj1); | |
7010 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7011 | temp2 = true; |
d55e5bfc RD |
7012 | } |
7013 | { | |
7014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7015 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7016 | ||
7017 | wxPyEndAllowThreads(__tstate); | |
7018 | if (PyErr_Occurred()) SWIG_fail; | |
7019 | } | |
7020 | { | |
7021 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7022 | } | |
7023 | { | |
7024 | if (temp2) | |
7025 | delete arg2; | |
7026 | } | |
7027 | return resultobj; | |
7028 | fail: | |
7029 | { | |
7030 | if (temp2) | |
7031 | delete arg2; | |
7032 | } | |
7033 | return NULL; | |
7034 | } | |
7035 | ||
7036 | ||
c370783e | 7037 | static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7038 | PyObject *resultobj; |
7039 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7040 | wxFileSystem *arg2 = 0 ; | |
7041 | wxString *arg3 = 0 ; | |
7042 | wxFSFile *result; | |
b411df4a | 7043 | bool temp3 = false ; |
d55e5bfc RD |
7044 | PyObject * obj0 = 0 ; |
7045 | PyObject * obj1 = 0 ; | |
7046 | PyObject * obj2 = 0 ; | |
7047 | char *kwnames[] = { | |
7048 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7049 | }; | |
7050 | ||
7051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7054 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7055 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7056 | SWIG_fail; | |
7057 | if (arg2 == NULL) { | |
7058 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7059 | SWIG_fail; | |
7060 | } | |
7061 | { | |
7062 | arg3 = wxString_in_helper(obj2); | |
7063 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 7064 | temp3 = true; |
d55e5bfc RD |
7065 | } |
7066 | { | |
7067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7068 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7069 | ||
7070 | wxPyEndAllowThreads(__tstate); | |
7071 | if (PyErr_Occurred()) SWIG_fail; | |
7072 | } | |
7073 | { | |
4cf4100f | 7074 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7075 | } |
7076 | { | |
7077 | if (temp3) | |
7078 | delete arg3; | |
7079 | } | |
7080 | return resultobj; | |
7081 | fail: | |
7082 | { | |
7083 | if (temp3) | |
7084 | delete arg3; | |
7085 | } | |
7086 | return NULL; | |
7087 | } | |
7088 | ||
7089 | ||
c370783e | 7090 | static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7091 | PyObject *resultobj; |
7092 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7093 | wxString *arg2 = 0 ; | |
7094 | int arg3 = (int) 0 ; | |
7095 | wxString result; | |
b411df4a | 7096 | bool temp2 = false ; |
d55e5bfc RD |
7097 | PyObject * obj0 = 0 ; |
7098 | PyObject * obj1 = 0 ; | |
7099 | PyObject * obj2 = 0 ; | |
7100 | char *kwnames[] = { | |
7101 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7102 | }; | |
7103 | ||
7104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7107 | { | |
7108 | arg2 = wxString_in_helper(obj1); | |
7109 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7110 | temp2 = true; |
d55e5bfc RD |
7111 | } |
7112 | if (obj2) { | |
c370783e | 7113 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
7114 | if (PyErr_Occurred()) SWIG_fail; |
7115 | } | |
7116 | { | |
7117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7118 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7119 | ||
7120 | wxPyEndAllowThreads(__tstate); | |
7121 | if (PyErr_Occurred()) SWIG_fail; | |
7122 | } | |
7123 | { | |
7124 | #if wxUSE_UNICODE | |
7125 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7126 | #else | |
7127 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7128 | #endif | |
7129 | } | |
7130 | { | |
7131 | if (temp2) | |
7132 | delete arg2; | |
7133 | } | |
7134 | return resultobj; | |
7135 | fail: | |
7136 | { | |
7137 | if (temp2) | |
7138 | delete arg2; | |
7139 | } | |
7140 | return NULL; | |
7141 | } | |
7142 | ||
7143 | ||
c370783e | 7144 | static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7145 | PyObject *resultobj; |
7146 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7147 | wxString result; | |
7148 | PyObject * obj0 = 0 ; | |
7149 | char *kwnames[] = { | |
7150 | (char *) "self", NULL | |
7151 | }; | |
7152 | ||
7153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail; | |
7154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7156 | { | |
7157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7158 | result = (arg1)->FindNext(); | |
7159 | ||
7160 | wxPyEndAllowThreads(__tstate); | |
7161 | if (PyErr_Occurred()) SWIG_fail; | |
7162 | } | |
7163 | { | |
7164 | #if wxUSE_UNICODE | |
7165 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7166 | #else | |
7167 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7168 | #endif | |
7169 | } | |
7170 | return resultobj; | |
7171 | fail: | |
7172 | return NULL; | |
7173 | } | |
7174 | ||
7175 | ||
c370783e | 7176 | static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7177 | PyObject *resultobj; |
7178 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7179 | wxString *arg2 = 0 ; | |
7180 | wxString result; | |
b411df4a | 7181 | bool temp2 = false ; |
d55e5bfc RD |
7182 | PyObject * obj0 = 0 ; |
7183 | PyObject * obj1 = 0 ; | |
7184 | char *kwnames[] = { | |
7185 | (char *) "self",(char *) "location", NULL | |
7186 | }; | |
7187 | ||
7188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail; | |
7189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7191 | { | |
7192 | arg2 = wxString_in_helper(obj1); | |
7193 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7194 | temp2 = true; |
d55e5bfc RD |
7195 | } |
7196 | { | |
7197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7198 | result = (arg1)->GetProtocol((wxString const &)*arg2); | |
7199 | ||
7200 | wxPyEndAllowThreads(__tstate); | |
7201 | if (PyErr_Occurred()) SWIG_fail; | |
7202 | } | |
7203 | { | |
7204 | #if wxUSE_UNICODE | |
7205 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7206 | #else | |
7207 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7208 | #endif | |
7209 | } | |
7210 | { | |
7211 | if (temp2) | |
7212 | delete arg2; | |
7213 | } | |
7214 | return resultobj; | |
7215 | fail: | |
7216 | { | |
7217 | if (temp2) | |
7218 | delete arg2; | |
7219 | } | |
7220 | return NULL; | |
7221 | } | |
7222 | ||
7223 | ||
c370783e | 7224 | static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7225 | PyObject *resultobj; |
7226 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7227 | wxString *arg2 = 0 ; | |
7228 | wxString result; | |
b411df4a | 7229 | bool temp2 = false ; |
d55e5bfc RD |
7230 | PyObject * obj0 = 0 ; |
7231 | PyObject * obj1 = 0 ; | |
7232 | char *kwnames[] = { | |
7233 | (char *) "self",(char *) "location", NULL | |
7234 | }; | |
7235 | ||
7236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail; | |
7237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7239 | { | |
7240 | arg2 = wxString_in_helper(obj1); | |
7241 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7242 | temp2 = true; |
d55e5bfc RD |
7243 | } |
7244 | { | |
7245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7246 | result = (arg1)->GetLeftLocation((wxString const &)*arg2); | |
7247 | ||
7248 | wxPyEndAllowThreads(__tstate); | |
7249 | if (PyErr_Occurred()) SWIG_fail; | |
7250 | } | |
7251 | { | |
7252 | #if wxUSE_UNICODE | |
7253 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7254 | #else | |
7255 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7256 | #endif | |
7257 | } | |
7258 | { | |
7259 | if (temp2) | |
7260 | delete arg2; | |
7261 | } | |
7262 | return resultobj; | |
7263 | fail: | |
7264 | { | |
7265 | if (temp2) | |
7266 | delete arg2; | |
7267 | } | |
7268 | return NULL; | |
7269 | } | |
7270 | ||
7271 | ||
c370783e | 7272 | static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7273 | PyObject *resultobj; |
7274 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7275 | wxString *arg2 = 0 ; | |
7276 | wxString result; | |
b411df4a | 7277 | bool temp2 = false ; |
d55e5bfc RD |
7278 | PyObject * obj0 = 0 ; |
7279 | PyObject * obj1 = 0 ; | |
7280 | char *kwnames[] = { | |
7281 | (char *) "self",(char *) "location", NULL | |
7282 | }; | |
7283 | ||
7284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail; | |
7285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7287 | { | |
7288 | arg2 = wxString_in_helper(obj1); | |
7289 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7290 | temp2 = true; |
d55e5bfc RD |
7291 | } |
7292 | { | |
7293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7294 | result = (arg1)->GetAnchor((wxString const &)*arg2); | |
7295 | ||
7296 | wxPyEndAllowThreads(__tstate); | |
7297 | if (PyErr_Occurred()) SWIG_fail; | |
7298 | } | |
7299 | { | |
7300 | #if wxUSE_UNICODE | |
7301 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7302 | #else | |
7303 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7304 | #endif | |
7305 | } | |
7306 | { | |
7307 | if (temp2) | |
7308 | delete arg2; | |
7309 | } | |
7310 | return resultobj; | |
7311 | fail: | |
7312 | { | |
7313 | if (temp2) | |
7314 | delete arg2; | |
7315 | } | |
7316 | return NULL; | |
7317 | } | |
7318 | ||
7319 | ||
c370783e | 7320 | static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7321 | PyObject *resultobj; |
7322 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7323 | wxString *arg2 = 0 ; | |
7324 | wxString result; | |
b411df4a | 7325 | bool temp2 = false ; |
d55e5bfc RD |
7326 | PyObject * obj0 = 0 ; |
7327 | PyObject * obj1 = 0 ; | |
7328 | char *kwnames[] = { | |
7329 | (char *) "self",(char *) "location", NULL | |
7330 | }; | |
7331 | ||
7332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail; | |
7333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7335 | { | |
7336 | arg2 = wxString_in_helper(obj1); | |
7337 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7338 | temp2 = true; |
d55e5bfc RD |
7339 | } |
7340 | { | |
7341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7342 | result = (arg1)->GetRightLocation((wxString const &)*arg2); | |
7343 | ||
7344 | wxPyEndAllowThreads(__tstate); | |
7345 | if (PyErr_Occurred()) SWIG_fail; | |
7346 | } | |
7347 | { | |
7348 | #if wxUSE_UNICODE | |
7349 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7350 | #else | |
7351 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7352 | #endif | |
7353 | } | |
7354 | { | |
7355 | if (temp2) | |
7356 | delete arg2; | |
7357 | } | |
7358 | return resultobj; | |
7359 | fail: | |
7360 | { | |
7361 | if (temp2) | |
7362 | delete arg2; | |
7363 | } | |
7364 | return NULL; | |
7365 | } | |
7366 | ||
7367 | ||
c370783e | 7368 | static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7369 | PyObject *resultobj; |
7370 | wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ; | |
7371 | wxString *arg2 = 0 ; | |
7372 | wxString result; | |
b411df4a | 7373 | bool temp2 = false ; |
d55e5bfc RD |
7374 | PyObject * obj0 = 0 ; |
7375 | PyObject * obj1 = 0 ; | |
7376 | char *kwnames[] = { | |
7377 | (char *) "self",(char *) "location", NULL | |
7378 | }; | |
7379 | ||
7380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail; | |
7381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler, | |
7382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7383 | { | |
7384 | arg2 = wxString_in_helper(obj1); | |
7385 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7386 | temp2 = true; |
d55e5bfc RD |
7387 | } |
7388 | { | |
7389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7390 | result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2); | |
7391 | ||
7392 | wxPyEndAllowThreads(__tstate); | |
7393 | if (PyErr_Occurred()) SWIG_fail; | |
7394 | } | |
7395 | { | |
7396 | #if wxUSE_UNICODE | |
7397 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7398 | #else | |
7399 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7400 | #endif | |
7401 | } | |
7402 | { | |
7403 | if (temp2) | |
7404 | delete arg2; | |
7405 | } | |
7406 | return resultobj; | |
7407 | fail: | |
7408 | { | |
7409 | if (temp2) | |
7410 | delete arg2; | |
7411 | } | |
7412 | return NULL; | |
7413 | } | |
7414 | ||
7415 | ||
c370783e | 7416 | static PyObject * FileSystemHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7417 | PyObject *obj; |
7418 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7419 | SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj); | |
7420 | Py_INCREF(obj); | |
7421 | return Py_BuildValue((char *)""); | |
7422 | } | |
c370783e | 7423 | static PyObject *_wrap_new_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7424 | PyObject *resultobj; |
7425 | wxFileSystem *result; | |
7426 | char *kwnames[] = { | |
7427 | NULL | |
7428 | }; | |
7429 | ||
7430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail; | |
7431 | { | |
7432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7433 | result = (wxFileSystem *)new wxFileSystem(); | |
7434 | ||
7435 | wxPyEndAllowThreads(__tstate); | |
7436 | if (PyErr_Occurred()) SWIG_fail; | |
7437 | } | |
7438 | { | |
412d302d | 7439 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7440 | } |
7441 | return resultobj; | |
7442 | fail: | |
7443 | return NULL; | |
7444 | } | |
7445 | ||
7446 | ||
c370783e | 7447 | static PyObject *_wrap_delete_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7448 | PyObject *resultobj; |
7449 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7450 | PyObject * obj0 = 0 ; | |
7451 | char *kwnames[] = { | |
7452 | (char *) "self", NULL | |
7453 | }; | |
7454 | ||
7455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail; | |
7456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7458 | { | |
7459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7460 | delete arg1; | |
7461 | ||
7462 | wxPyEndAllowThreads(__tstate); | |
7463 | if (PyErr_Occurred()) SWIG_fail; | |
7464 | } | |
7465 | Py_INCREF(Py_None); resultobj = Py_None; | |
7466 | return resultobj; | |
7467 | fail: | |
7468 | return NULL; | |
7469 | } | |
7470 | ||
7471 | ||
c370783e | 7472 | static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7473 | PyObject *resultobj; |
7474 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7475 | wxString *arg2 = 0 ; | |
b411df4a RD |
7476 | bool arg3 = (bool) false ; |
7477 | bool temp2 = false ; | |
d55e5bfc RD |
7478 | PyObject * obj0 = 0 ; |
7479 | PyObject * obj1 = 0 ; | |
7480 | PyObject * obj2 = 0 ; | |
7481 | char *kwnames[] = { | |
7482 | (char *) "self",(char *) "location",(char *) "is_dir", NULL | |
7483 | }; | |
7484 | ||
7485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7488 | { | |
7489 | arg2 = wxString_in_helper(obj1); | |
7490 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7491 | temp2 = true; |
d55e5bfc RD |
7492 | } |
7493 | if (obj2) { | |
c370783e | 7494 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
7495 | if (PyErr_Occurred()) SWIG_fail; |
7496 | } | |
7497 | { | |
7498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7499 | (arg1)->ChangePathTo((wxString const &)*arg2,arg3); | |
7500 | ||
7501 | wxPyEndAllowThreads(__tstate); | |
7502 | if (PyErr_Occurred()) SWIG_fail; | |
7503 | } | |
7504 | Py_INCREF(Py_None); resultobj = Py_None; | |
7505 | { | |
7506 | if (temp2) | |
7507 | delete arg2; | |
7508 | } | |
7509 | return resultobj; | |
7510 | fail: | |
7511 | { | |
7512 | if (temp2) | |
7513 | delete arg2; | |
7514 | } | |
7515 | return NULL; | |
7516 | } | |
7517 | ||
7518 | ||
c370783e | 7519 | static PyObject *_wrap_FileSystem_GetPath(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7520 | PyObject *resultobj; |
7521 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7522 | wxString result; | |
7523 | PyObject * obj0 = 0 ; | |
7524 | char *kwnames[] = { | |
7525 | (char *) "self", NULL | |
7526 | }; | |
7527 | ||
7528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail; | |
7529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7531 | { | |
7532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7533 | result = (arg1)->GetPath(); | |
7534 | ||
7535 | wxPyEndAllowThreads(__tstate); | |
7536 | if (PyErr_Occurred()) SWIG_fail; | |
7537 | } | |
7538 | { | |
7539 | #if wxUSE_UNICODE | |
7540 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7541 | #else | |
7542 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7543 | #endif | |
7544 | } | |
7545 | return resultobj; | |
7546 | fail: | |
7547 | return NULL; | |
7548 | } | |
7549 | ||
7550 | ||
c370783e | 7551 | static PyObject *_wrap_FileSystem_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7552 | PyObject *resultobj; |
7553 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7554 | wxString *arg2 = 0 ; | |
7555 | wxFSFile *result; | |
b411df4a | 7556 | bool temp2 = false ; |
d55e5bfc RD |
7557 | PyObject * obj0 = 0 ; |
7558 | PyObject * obj1 = 0 ; | |
7559 | char *kwnames[] = { | |
7560 | (char *) "self",(char *) "location", NULL | |
7561 | }; | |
7562 | ||
7563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail; | |
7564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7566 | { | |
7567 | arg2 = wxString_in_helper(obj1); | |
7568 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7569 | temp2 = true; |
d55e5bfc RD |
7570 | } |
7571 | { | |
7572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7573 | result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2); | |
7574 | ||
7575 | wxPyEndAllowThreads(__tstate); | |
7576 | if (PyErr_Occurred()) SWIG_fail; | |
7577 | } | |
7578 | { | |
4cf4100f | 7579 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7580 | } |
7581 | { | |
7582 | if (temp2) | |
7583 | delete arg2; | |
7584 | } | |
7585 | return resultobj; | |
7586 | fail: | |
7587 | { | |
7588 | if (temp2) | |
7589 | delete arg2; | |
7590 | } | |
7591 | return NULL; | |
7592 | } | |
7593 | ||
7594 | ||
c370783e | 7595 | static PyObject *_wrap_FileSystem_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7596 | PyObject *resultobj; |
7597 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7598 | wxString *arg2 = 0 ; | |
7599 | int arg3 = (int) 0 ; | |
7600 | wxString result; | |
b411df4a | 7601 | bool temp2 = false ; |
d55e5bfc RD |
7602 | PyObject * obj0 = 0 ; |
7603 | PyObject * obj1 = 0 ; | |
7604 | PyObject * obj2 = 0 ; | |
7605 | char *kwnames[] = { | |
7606 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
7607 | }; | |
7608 | ||
7609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7612 | { | |
7613 | arg2 = wxString_in_helper(obj1); | |
7614 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7615 | temp2 = true; |
d55e5bfc RD |
7616 | } |
7617 | if (obj2) { | |
c370783e | 7618 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
7619 | if (PyErr_Occurred()) SWIG_fail; |
7620 | } | |
7621 | { | |
7622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7623 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
7624 | ||
7625 | wxPyEndAllowThreads(__tstate); | |
7626 | if (PyErr_Occurred()) SWIG_fail; | |
7627 | } | |
7628 | { | |
7629 | #if wxUSE_UNICODE | |
7630 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7631 | #else | |
7632 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7633 | #endif | |
7634 | } | |
7635 | { | |
7636 | if (temp2) | |
7637 | delete arg2; | |
7638 | } | |
7639 | return resultobj; | |
7640 | fail: | |
7641 | { | |
7642 | if (temp2) | |
7643 | delete arg2; | |
7644 | } | |
7645 | return NULL; | |
7646 | } | |
7647 | ||
7648 | ||
c370783e | 7649 | static PyObject *_wrap_FileSystem_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7650 | PyObject *resultobj; |
7651 | wxFileSystem *arg1 = (wxFileSystem *) 0 ; | |
7652 | wxString result; | |
7653 | PyObject * obj0 = 0 ; | |
7654 | char *kwnames[] = { | |
7655 | (char *) "self", NULL | |
7656 | }; | |
7657 | ||
7658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail; | |
7659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem, | |
7660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7661 | { | |
7662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7663 | result = (arg1)->FindNext(); | |
7664 | ||
7665 | wxPyEndAllowThreads(__tstate); | |
7666 | if (PyErr_Occurred()) SWIG_fail; | |
7667 | } | |
7668 | { | |
7669 | #if wxUSE_UNICODE | |
7670 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7671 | #else | |
7672 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7673 | #endif | |
7674 | } | |
7675 | return resultobj; | |
7676 | fail: | |
7677 | return NULL; | |
7678 | } | |
7679 | ||
7680 | ||
c370783e | 7681 | static PyObject *_wrap_FileSystem_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7682 | PyObject *resultobj; |
7683 | wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ; | |
7684 | PyObject * obj0 = 0 ; | |
7685 | char *kwnames[] = { | |
7686 | (char *) "handler", NULL | |
7687 | }; | |
7688 | ||
7689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail; | |
7690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler, | |
7691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7692 | { | |
7693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7694 | wxFileSystem::AddHandler(arg1); | |
7695 | ||
7696 | wxPyEndAllowThreads(__tstate); | |
7697 | if (PyErr_Occurred()) SWIG_fail; | |
7698 | } | |
7699 | Py_INCREF(Py_None); resultobj = Py_None; | |
7700 | return resultobj; | |
7701 | fail: | |
7702 | return NULL; | |
7703 | } | |
7704 | ||
7705 | ||
c370783e | 7706 | static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7707 | PyObject *resultobj; |
7708 | char *kwnames[] = { | |
7709 | NULL | |
7710 | }; | |
7711 | ||
7712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail; | |
7713 | { | |
7714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7715 | wxFileSystem::CleanUpHandlers(); | |
7716 | ||
7717 | wxPyEndAllowThreads(__tstate); | |
7718 | if (PyErr_Occurred()) SWIG_fail; | |
7719 | } | |
7720 | Py_INCREF(Py_None); resultobj = Py_None; | |
7721 | return resultobj; | |
7722 | fail: | |
7723 | return NULL; | |
7724 | } | |
7725 | ||
7726 | ||
c370783e | 7727 | static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7728 | PyObject *resultobj; |
7729 | wxString *arg1 = 0 ; | |
7730 | wxString result; | |
b411df4a | 7731 | bool temp1 = false ; |
d55e5bfc RD |
7732 | PyObject * obj0 = 0 ; |
7733 | char *kwnames[] = { | |
7734 | (char *) "filename", NULL | |
7735 | }; | |
7736 | ||
7737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail; | |
7738 | { | |
7739 | arg1 = wxString_in_helper(obj0); | |
7740 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 7741 | temp1 = true; |
d55e5bfc RD |
7742 | } |
7743 | { | |
7744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7745 | result = wxFileSystem::FileNameToURL((wxString const &)*arg1); | |
7746 | ||
7747 | wxPyEndAllowThreads(__tstate); | |
7748 | if (PyErr_Occurred()) SWIG_fail; | |
7749 | } | |
7750 | { | |
7751 | #if wxUSE_UNICODE | |
7752 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7753 | #else | |
7754 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7755 | #endif | |
7756 | } | |
7757 | { | |
7758 | if (temp1) | |
7759 | delete arg1; | |
7760 | } | |
7761 | return resultobj; | |
7762 | fail: | |
7763 | { | |
7764 | if (temp1) | |
7765 | delete arg1; | |
7766 | } | |
7767 | return NULL; | |
7768 | } | |
7769 | ||
7770 | ||
c370783e | 7771 | static PyObject *_wrap_FileSystem_URLToFileName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7772 | PyObject *resultobj; |
7773 | wxString *arg1 = 0 ; | |
7774 | wxString result; | |
b411df4a | 7775 | bool temp1 = false ; |
d55e5bfc RD |
7776 | PyObject * obj0 = 0 ; |
7777 | char *kwnames[] = { | |
7778 | (char *) "url", NULL | |
7779 | }; | |
7780 | ||
7781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail; | |
7782 | { | |
7783 | arg1 = wxString_in_helper(obj0); | |
7784 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 7785 | temp1 = true; |
d55e5bfc RD |
7786 | } |
7787 | { | |
7788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b411df4a | 7789 | result = FileSystem_URLToFileName((wxString const &)*arg1); |
d55e5bfc RD |
7790 | |
7791 | wxPyEndAllowThreads(__tstate); | |
7792 | if (PyErr_Occurred()) SWIG_fail; | |
7793 | } | |
7794 | { | |
7795 | #if wxUSE_UNICODE | |
7796 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7797 | #else | |
7798 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7799 | #endif | |
7800 | } | |
7801 | { | |
7802 | if (temp1) | |
7803 | delete arg1; | |
7804 | } | |
7805 | return resultobj; | |
7806 | fail: | |
7807 | { | |
7808 | if (temp1) | |
7809 | delete arg1; | |
7810 | } | |
7811 | return NULL; | |
7812 | } | |
7813 | ||
7814 | ||
b411df4a RD |
7815 | static PyObject * FileSystem_swigregister(PyObject *, PyObject *args) { |
7816 | PyObject *obj; | |
7817 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7818 | SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj); | |
7819 | Py_INCREF(obj); | |
7820 | return Py_BuildValue((char *)""); | |
7821 | } | |
c370783e | 7822 | static PyObject *_wrap_new_InternetFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7823 | PyObject *resultobj; |
7824 | wxInternetFSHandler *result; | |
7825 | char *kwnames[] = { | |
7826 | NULL | |
7827 | }; | |
7828 | ||
7829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail; | |
7830 | { | |
7831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7832 | result = (wxInternetFSHandler *)new wxInternetFSHandler(); | |
7833 | ||
7834 | wxPyEndAllowThreads(__tstate); | |
7835 | if (PyErr_Occurred()) SWIG_fail; | |
7836 | } | |
7837 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1); | |
7838 | return resultobj; | |
7839 | fail: | |
7840 | return NULL; | |
7841 | } | |
7842 | ||
7843 | ||
c370783e | 7844 | static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7845 | PyObject *resultobj; |
7846 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7847 | wxString *arg2 = 0 ; | |
7848 | bool result; | |
b411df4a | 7849 | bool temp2 = false ; |
d55e5bfc RD |
7850 | PyObject * obj0 = 0 ; |
7851 | PyObject * obj1 = 0 ; | |
7852 | char *kwnames[] = { | |
7853 | (char *) "self",(char *) "location", NULL | |
7854 | }; | |
7855 | ||
7856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, | |
7858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7859 | { | |
7860 | arg2 = wxString_in_helper(obj1); | |
7861 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7862 | temp2 = true; |
d55e5bfc RD |
7863 | } |
7864 | { | |
7865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7866 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7867 | ||
7868 | wxPyEndAllowThreads(__tstate); | |
7869 | if (PyErr_Occurred()) SWIG_fail; | |
7870 | } | |
7871 | { | |
7872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7873 | } | |
7874 | { | |
7875 | if (temp2) | |
7876 | delete arg2; | |
7877 | } | |
7878 | return resultobj; | |
7879 | fail: | |
7880 | { | |
7881 | if (temp2) | |
7882 | delete arg2; | |
7883 | } | |
7884 | return NULL; | |
7885 | } | |
7886 | ||
7887 | ||
c370783e | 7888 | static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7889 | PyObject *resultobj; |
7890 | wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ; | |
7891 | wxFileSystem *arg2 = 0 ; | |
7892 | wxString *arg3 = 0 ; | |
7893 | wxFSFile *result; | |
b411df4a | 7894 | bool temp3 = false ; |
d55e5bfc RD |
7895 | PyObject * obj0 = 0 ; |
7896 | PyObject * obj1 = 0 ; | |
7897 | PyObject * obj2 = 0 ; | |
7898 | char *kwnames[] = { | |
7899 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
7900 | }; | |
7901 | ||
7902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler, | |
7904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7905 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
7906 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7907 | SWIG_fail; | |
7908 | if (arg2 == NULL) { | |
7909 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7910 | SWIG_fail; | |
7911 | } | |
7912 | { | |
7913 | arg3 = wxString_in_helper(obj2); | |
7914 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 7915 | temp3 = true; |
d55e5bfc RD |
7916 | } |
7917 | { | |
7918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7919 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
7920 | ||
7921 | wxPyEndAllowThreads(__tstate); | |
7922 | if (PyErr_Occurred()) SWIG_fail; | |
7923 | } | |
7924 | { | |
4cf4100f | 7925 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
7926 | } |
7927 | { | |
7928 | if (temp3) | |
7929 | delete arg3; | |
7930 | } | |
7931 | return resultobj; | |
7932 | fail: | |
7933 | { | |
7934 | if (temp3) | |
7935 | delete arg3; | |
7936 | } | |
7937 | return NULL; | |
7938 | } | |
7939 | ||
7940 | ||
c370783e | 7941 | static PyObject * InternetFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
7942 | PyObject *obj; |
7943 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7944 | SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj); | |
7945 | Py_INCREF(obj); | |
7946 | return Py_BuildValue((char *)""); | |
7947 | } | |
c370783e | 7948 | static PyObject *_wrap_new_ZipFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7949 | PyObject *resultobj; |
7950 | wxZipFSHandler *result; | |
7951 | char *kwnames[] = { | |
7952 | NULL | |
7953 | }; | |
7954 | ||
7955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail; | |
7956 | { | |
7957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7958 | result = (wxZipFSHandler *)new wxZipFSHandler(); | |
7959 | ||
7960 | wxPyEndAllowThreads(__tstate); | |
7961 | if (PyErr_Occurred()) SWIG_fail; | |
7962 | } | |
7963 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1); | |
7964 | return resultobj; | |
7965 | fail: | |
7966 | return NULL; | |
7967 | } | |
7968 | ||
7969 | ||
c370783e | 7970 | static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
7971 | PyObject *resultobj; |
7972 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
7973 | wxString *arg2 = 0 ; | |
7974 | bool result; | |
b411df4a | 7975 | bool temp2 = false ; |
d55e5bfc RD |
7976 | PyObject * obj0 = 0 ; |
7977 | PyObject * obj1 = 0 ; | |
7978 | char *kwnames[] = { | |
7979 | (char *) "self",(char *) "location", NULL | |
7980 | }; | |
7981 | ||
7982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
7983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
7984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7985 | { | |
7986 | arg2 = wxString_in_helper(obj1); | |
7987 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 7988 | temp2 = true; |
d55e5bfc RD |
7989 | } |
7990 | { | |
7991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7992 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
7993 | ||
7994 | wxPyEndAllowThreads(__tstate); | |
7995 | if (PyErr_Occurred()) SWIG_fail; | |
7996 | } | |
7997 | { | |
7998 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7999 | } | |
8000 | { | |
8001 | if (temp2) | |
8002 | delete arg2; | |
8003 | } | |
8004 | return resultobj; | |
8005 | fail: | |
8006 | { | |
8007 | if (temp2) | |
8008 | delete arg2; | |
8009 | } | |
8010 | return NULL; | |
8011 | } | |
8012 | ||
8013 | ||
c370783e | 8014 | static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8015 | PyObject *resultobj; |
8016 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
8017 | wxFileSystem *arg2 = 0 ; | |
8018 | wxString *arg3 = 0 ; | |
8019 | wxFSFile *result; | |
b411df4a | 8020 | bool temp3 = false ; |
d55e5bfc RD |
8021 | PyObject * obj0 = 0 ; |
8022 | PyObject * obj1 = 0 ; | |
8023 | PyObject * obj2 = 0 ; | |
8024 | char *kwnames[] = { | |
8025 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
8026 | }; | |
8027 | ||
8028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
8030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8031 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
8032 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8033 | SWIG_fail; | |
8034 | if (arg2 == NULL) { | |
8035 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8036 | SWIG_fail; | |
8037 | } | |
8038 | { | |
8039 | arg3 = wxString_in_helper(obj2); | |
8040 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 8041 | temp3 = true; |
d55e5bfc RD |
8042 | } |
8043 | { | |
8044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8045 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
8046 | ||
8047 | wxPyEndAllowThreads(__tstate); | |
8048 | if (PyErr_Occurred()) SWIG_fail; | |
8049 | } | |
8050 | { | |
4cf4100f | 8051 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
8052 | } |
8053 | { | |
8054 | if (temp3) | |
8055 | delete arg3; | |
8056 | } | |
8057 | return resultobj; | |
8058 | fail: | |
8059 | { | |
8060 | if (temp3) | |
8061 | delete arg3; | |
8062 | } | |
8063 | return NULL; | |
8064 | } | |
8065 | ||
8066 | ||
c370783e | 8067 | static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8068 | PyObject *resultobj; |
8069 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
8070 | wxString *arg2 = 0 ; | |
8071 | int arg3 = (int) 0 ; | |
8072 | wxString result; | |
b411df4a | 8073 | bool temp2 = false ; |
d55e5bfc RD |
8074 | PyObject * obj0 = 0 ; |
8075 | PyObject * obj1 = 0 ; | |
8076 | PyObject * obj2 = 0 ; | |
8077 | char *kwnames[] = { | |
8078 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
8079 | }; | |
8080 | ||
8081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
8083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8084 | { | |
8085 | arg2 = wxString_in_helper(obj1); | |
8086 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8087 | temp2 = true; |
d55e5bfc RD |
8088 | } |
8089 | if (obj2) { | |
c370783e | 8090 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
8091 | if (PyErr_Occurred()) SWIG_fail; |
8092 | } | |
8093 | { | |
8094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8095 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8096 | ||
8097 | wxPyEndAllowThreads(__tstate); | |
8098 | if (PyErr_Occurred()) SWIG_fail; | |
8099 | } | |
8100 | { | |
8101 | #if wxUSE_UNICODE | |
8102 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8103 | #else | |
8104 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8105 | #endif | |
8106 | } | |
8107 | { | |
8108 | if (temp2) | |
8109 | delete arg2; | |
8110 | } | |
8111 | return resultobj; | |
8112 | fail: | |
8113 | { | |
8114 | if (temp2) | |
8115 | delete arg2; | |
8116 | } | |
8117 | return NULL; | |
8118 | } | |
8119 | ||
8120 | ||
c370783e | 8121 | static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8122 | PyObject *resultobj; |
8123 | wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ; | |
8124 | wxString result; | |
8125 | PyObject * obj0 = 0 ; | |
8126 | char *kwnames[] = { | |
8127 | (char *) "self", NULL | |
8128 | }; | |
8129 | ||
8130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
8131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler, | |
8132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8133 | { | |
8134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8135 | result = (arg1)->FindNext(); | |
8136 | ||
8137 | wxPyEndAllowThreads(__tstate); | |
8138 | if (PyErr_Occurred()) SWIG_fail; | |
8139 | } | |
8140 | { | |
8141 | #if wxUSE_UNICODE | |
8142 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8143 | #else | |
8144 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8145 | #endif | |
8146 | } | |
8147 | return resultobj; | |
8148 | fail: | |
8149 | return NULL; | |
8150 | } | |
8151 | ||
8152 | ||
c370783e | 8153 | static PyObject * ZipFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8154 | PyObject *obj; |
8155 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8156 | SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj); | |
8157 | Py_INCREF(obj); | |
8158 | return Py_BuildValue((char *)""); | |
8159 | } | |
c370783e | 8160 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8161 | PyObject *resultobj; |
8162 | wxString *arg1 = 0 ; | |
8163 | wxImage *arg2 = 0 ; | |
8164 | long arg3 ; | |
b411df4a | 8165 | bool temp1 = false ; |
d55e5bfc RD |
8166 | PyObject * obj0 = 0 ; |
8167 | PyObject * obj1 = 0 ; | |
8168 | PyObject * obj2 = 0 ; | |
8169 | char *kwnames[] = { | |
8170 | (char *) "filename",(char *) "image",(char *) "type", NULL | |
8171 | }; | |
8172 | ||
8173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8174 | { | |
8175 | arg1 = wxString_in_helper(obj0); | |
8176 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8177 | temp1 = true; |
d55e5bfc RD |
8178 | } |
8179 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
8180 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8181 | SWIG_fail; | |
8182 | if (arg2 == NULL) { | |
8183 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8184 | SWIG_fail; | |
8185 | } | |
c370783e | 8186 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
8187 | if (PyErr_Occurred()) SWIG_fail; |
8188 | { | |
8189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8190 | __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3); | |
8191 | ||
8192 | wxPyEndAllowThreads(__tstate); | |
8193 | if (PyErr_Occurred()) SWIG_fail; | |
8194 | } | |
8195 | Py_INCREF(Py_None); resultobj = Py_None; | |
8196 | { | |
8197 | if (temp1) | |
8198 | delete arg1; | |
8199 | } | |
8200 | return resultobj; | |
8201 | fail: | |
8202 | { | |
8203 | if (temp1) | |
8204 | delete arg1; | |
8205 | } | |
8206 | return NULL; | |
8207 | } | |
8208 | ||
8209 | ||
c370783e | 8210 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8211 | PyObject *resultobj; |
8212 | wxString *arg1 = 0 ; | |
8213 | wxBitmap *arg2 = 0 ; | |
8214 | long arg3 ; | |
b411df4a | 8215 | bool temp1 = false ; |
d55e5bfc RD |
8216 | PyObject * obj0 = 0 ; |
8217 | PyObject * obj1 = 0 ; | |
8218 | PyObject * obj2 = 0 ; | |
8219 | char *kwnames[] = { | |
8220 | (char *) "filename",(char *) "bitmap",(char *) "type", NULL | |
8221 | }; | |
8222 | ||
8223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8224 | { | |
8225 | arg1 = wxString_in_helper(obj0); | |
8226 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8227 | temp1 = true; |
d55e5bfc RD |
8228 | } |
8229 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
8230 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8231 | SWIG_fail; | |
8232 | if (arg2 == NULL) { | |
8233 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8234 | SWIG_fail; | |
8235 | } | |
c370783e | 8236 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
8237 | if (PyErr_Occurred()) SWIG_fail; |
8238 | { | |
8239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8240 | __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3); | |
8241 | ||
8242 | wxPyEndAllowThreads(__tstate); | |
8243 | if (PyErr_Occurred()) SWIG_fail; | |
8244 | } | |
8245 | Py_INCREF(Py_None); resultobj = Py_None; | |
8246 | { | |
8247 | if (temp1) | |
8248 | delete arg1; | |
8249 | } | |
8250 | return resultobj; | |
8251 | fail: | |
8252 | { | |
8253 | if (temp1) | |
8254 | delete arg1; | |
8255 | } | |
8256 | return NULL; | |
8257 | } | |
8258 | ||
8259 | ||
c370783e | 8260 | static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8261 | PyObject *resultobj; |
8262 | wxString *arg1 = 0 ; | |
8263 | PyObject *arg2 = (PyObject *) 0 ; | |
b411df4a | 8264 | bool temp1 = false ; |
d55e5bfc RD |
8265 | PyObject * obj0 = 0 ; |
8266 | PyObject * obj1 = 0 ; | |
8267 | char *kwnames[] = { | |
8268 | (char *) "filename",(char *) "data", NULL | |
8269 | }; | |
8270 | ||
8271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail; | |
8272 | { | |
8273 | arg1 = wxString_in_helper(obj0); | |
8274 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8275 | temp1 = true; |
d55e5bfc RD |
8276 | } |
8277 | arg2 = obj1; | |
8278 | { | |
8279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8280 | __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2); | |
8281 | ||
8282 | wxPyEndAllowThreads(__tstate); | |
8283 | if (PyErr_Occurred()) SWIG_fail; | |
8284 | } | |
8285 | Py_INCREF(Py_None); resultobj = Py_None; | |
8286 | { | |
8287 | if (temp1) | |
8288 | delete arg1; | |
8289 | } | |
8290 | return resultobj; | |
8291 | fail: | |
8292 | { | |
8293 | if (temp1) | |
8294 | delete arg1; | |
8295 | } | |
8296 | return NULL; | |
8297 | } | |
8298 | ||
8299 | ||
c370783e | 8300 | static PyObject *_wrap_new_MemoryFSHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8301 | PyObject *resultobj; |
8302 | wxMemoryFSHandler *result; | |
8303 | char *kwnames[] = { | |
8304 | NULL | |
8305 | }; | |
8306 | ||
8307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail; | |
8308 | { | |
8309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8310 | result = (wxMemoryFSHandler *)new wxMemoryFSHandler(); | |
8311 | ||
8312 | wxPyEndAllowThreads(__tstate); | |
8313 | if (PyErr_Occurred()) SWIG_fail; | |
8314 | } | |
8315 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1); | |
8316 | return resultobj; | |
8317 | fail: | |
8318 | return NULL; | |
8319 | } | |
8320 | ||
8321 | ||
c370783e | 8322 | static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8323 | PyObject *resultobj; |
8324 | wxString *arg1 = 0 ; | |
b411df4a | 8325 | bool temp1 = false ; |
d55e5bfc RD |
8326 | PyObject * obj0 = 0 ; |
8327 | char *kwnames[] = { | |
8328 | (char *) "filename", NULL | |
8329 | }; | |
8330 | ||
8331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail; | |
8332 | { | |
8333 | arg1 = wxString_in_helper(obj0); | |
8334 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 8335 | temp1 = true; |
d55e5bfc RD |
8336 | } |
8337 | { | |
8338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8339 | wxMemoryFSHandler::RemoveFile((wxString const &)*arg1); | |
8340 | ||
8341 | wxPyEndAllowThreads(__tstate); | |
8342 | if (PyErr_Occurred()) SWIG_fail; | |
8343 | } | |
8344 | Py_INCREF(Py_None); resultobj = Py_None; | |
8345 | { | |
8346 | if (temp1) | |
8347 | delete arg1; | |
8348 | } | |
8349 | return resultobj; | |
8350 | fail: | |
8351 | { | |
8352 | if (temp1) | |
8353 | delete arg1; | |
8354 | } | |
8355 | return NULL; | |
8356 | } | |
8357 | ||
8358 | ||
c370783e | 8359 | static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8360 | PyObject *resultobj; |
8361 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8362 | wxString *arg2 = 0 ; | |
8363 | bool result; | |
b411df4a | 8364 | bool temp2 = false ; |
d55e5bfc RD |
8365 | PyObject * obj0 = 0 ; |
8366 | PyObject * obj1 = 0 ; | |
8367 | char *kwnames[] = { | |
8368 | (char *) "self",(char *) "location", NULL | |
8369 | }; | |
8370 | ||
8371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail; | |
8372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8374 | { | |
8375 | arg2 = wxString_in_helper(obj1); | |
8376 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8377 | temp2 = true; |
d55e5bfc RD |
8378 | } |
8379 | { | |
8380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8381 | result = (bool)(arg1)->CanOpen((wxString const &)*arg2); | |
8382 | ||
8383 | wxPyEndAllowThreads(__tstate); | |
8384 | if (PyErr_Occurred()) SWIG_fail; | |
8385 | } | |
8386 | { | |
8387 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8388 | } | |
8389 | { | |
8390 | if (temp2) | |
8391 | delete arg2; | |
8392 | } | |
8393 | return resultobj; | |
8394 | fail: | |
8395 | { | |
8396 | if (temp2) | |
8397 | delete arg2; | |
8398 | } | |
8399 | return NULL; | |
8400 | } | |
8401 | ||
8402 | ||
c370783e | 8403 | static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8404 | PyObject *resultobj; |
8405 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8406 | wxFileSystem *arg2 = 0 ; | |
8407 | wxString *arg3 = 0 ; | |
8408 | wxFSFile *result; | |
b411df4a | 8409 | bool temp3 = false ; |
d55e5bfc RD |
8410 | PyObject * obj0 = 0 ; |
8411 | PyObject * obj1 = 0 ; | |
8412 | PyObject * obj2 = 0 ; | |
8413 | char *kwnames[] = { | |
8414 | (char *) "self",(char *) "fs",(char *) "location", NULL | |
8415 | }; | |
8416 | ||
8417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8420 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem, | |
8421 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8422 | SWIG_fail; | |
8423 | if (arg2 == NULL) { | |
8424 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8425 | SWIG_fail; | |
8426 | } | |
8427 | { | |
8428 | arg3 = wxString_in_helper(obj2); | |
8429 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 8430 | temp3 = true; |
d55e5bfc RD |
8431 | } |
8432 | { | |
8433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8434 | result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3); | |
8435 | ||
8436 | wxPyEndAllowThreads(__tstate); | |
8437 | if (PyErr_Occurred()) SWIG_fail; | |
8438 | } | |
8439 | { | |
4cf4100f | 8440 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
8441 | } |
8442 | { | |
8443 | if (temp3) | |
8444 | delete arg3; | |
8445 | } | |
8446 | return resultobj; | |
8447 | fail: | |
8448 | { | |
8449 | if (temp3) | |
8450 | delete arg3; | |
8451 | } | |
8452 | return NULL; | |
8453 | } | |
8454 | ||
8455 | ||
c370783e | 8456 | static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8457 | PyObject *resultobj; |
8458 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8459 | wxString *arg2 = 0 ; | |
8460 | int arg3 = (int) 0 ; | |
8461 | wxString result; | |
b411df4a | 8462 | bool temp2 = false ; |
d55e5bfc RD |
8463 | PyObject * obj0 = 0 ; |
8464 | PyObject * obj1 = 0 ; | |
8465 | PyObject * obj2 = 0 ; | |
8466 | char *kwnames[] = { | |
8467 | (char *) "self",(char *) "spec",(char *) "flags", NULL | |
8468 | }; | |
8469 | ||
8470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8473 | { | |
8474 | arg2 = wxString_in_helper(obj1); | |
8475 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8476 | temp2 = true; |
d55e5bfc RD |
8477 | } |
8478 | if (obj2) { | |
c370783e | 8479 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
8480 | if (PyErr_Occurred()) SWIG_fail; |
8481 | } | |
8482 | { | |
8483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8484 | result = (arg1)->FindFirst((wxString const &)*arg2,arg3); | |
8485 | ||
8486 | wxPyEndAllowThreads(__tstate); | |
8487 | if (PyErr_Occurred()) SWIG_fail; | |
8488 | } | |
8489 | { | |
8490 | #if wxUSE_UNICODE | |
8491 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8492 | #else | |
8493 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8494 | #endif | |
8495 | } | |
8496 | { | |
8497 | if (temp2) | |
8498 | delete arg2; | |
8499 | } | |
8500 | return resultobj; | |
8501 | fail: | |
8502 | { | |
8503 | if (temp2) | |
8504 | delete arg2; | |
8505 | } | |
8506 | return NULL; | |
8507 | } | |
8508 | ||
8509 | ||
c370783e | 8510 | static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8511 | PyObject *resultobj; |
8512 | wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ; | |
8513 | wxString result; | |
8514 | PyObject * obj0 = 0 ; | |
8515 | char *kwnames[] = { | |
8516 | (char *) "self", NULL | |
8517 | }; | |
8518 | ||
8519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail; | |
8520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler, | |
8521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8522 | { | |
8523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8524 | result = (arg1)->FindNext(); | |
8525 | ||
8526 | wxPyEndAllowThreads(__tstate); | |
8527 | if (PyErr_Occurred()) SWIG_fail; | |
8528 | } | |
8529 | { | |
8530 | #if wxUSE_UNICODE | |
8531 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8532 | #else | |
8533 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8534 | #endif | |
8535 | } | |
8536 | return resultobj; | |
8537 | fail: | |
8538 | return NULL; | |
8539 | } | |
8540 | ||
8541 | ||
c370783e | 8542 | static PyObject * MemoryFSHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8543 | PyObject *obj; |
8544 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8545 | SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj); | |
8546 | Py_INCREF(obj); | |
8547 | return Py_BuildValue((char *)""); | |
8548 | } | |
c370783e | 8549 | static PyObject *_wrap_ImageHandler_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8550 | PyObject *resultobj; |
8551 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8552 | wxString result; | |
8553 | PyObject * obj0 = 0 ; | |
8554 | char *kwnames[] = { | |
8555 | (char *) "self", NULL | |
8556 | }; | |
8557 | ||
8558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail; | |
8559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8561 | { | |
8562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8563 | result = (arg1)->GetName(); | |
8564 | ||
8565 | wxPyEndAllowThreads(__tstate); | |
8566 | if (PyErr_Occurred()) SWIG_fail; | |
8567 | } | |
8568 | { | |
8569 | #if wxUSE_UNICODE | |
8570 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8571 | #else | |
8572 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8573 | #endif | |
8574 | } | |
8575 | return resultobj; | |
8576 | fail: | |
8577 | return NULL; | |
8578 | } | |
8579 | ||
8580 | ||
c370783e | 8581 | static PyObject *_wrap_ImageHandler_GetExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8582 | PyObject *resultobj; |
8583 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8584 | wxString result; | |
8585 | PyObject * obj0 = 0 ; | |
8586 | char *kwnames[] = { | |
8587 | (char *) "self", NULL | |
8588 | }; | |
8589 | ||
8590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail; | |
8591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8593 | { | |
8594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8595 | result = (arg1)->GetExtension(); | |
8596 | ||
8597 | wxPyEndAllowThreads(__tstate); | |
8598 | if (PyErr_Occurred()) SWIG_fail; | |
8599 | } | |
8600 | { | |
8601 | #if wxUSE_UNICODE | |
8602 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8603 | #else | |
8604 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8605 | #endif | |
8606 | } | |
8607 | return resultobj; | |
8608 | fail: | |
8609 | return NULL; | |
8610 | } | |
8611 | ||
8612 | ||
c370783e | 8613 | static PyObject *_wrap_ImageHandler_GetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8614 | PyObject *resultobj; |
8615 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8616 | long result; | |
8617 | PyObject * obj0 = 0 ; | |
8618 | char *kwnames[] = { | |
8619 | (char *) "self", NULL | |
8620 | }; | |
8621 | ||
8622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail; | |
8623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8625 | { | |
8626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8627 | result = (long)(arg1)->GetType(); | |
8628 | ||
8629 | wxPyEndAllowThreads(__tstate); | |
8630 | if (PyErr_Occurred()) SWIG_fail; | |
8631 | } | |
c370783e | 8632 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
8633 | return resultobj; |
8634 | fail: | |
8635 | return NULL; | |
8636 | } | |
8637 | ||
8638 | ||
c370783e | 8639 | static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8640 | PyObject *resultobj; |
8641 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8642 | wxString result; | |
8643 | PyObject * obj0 = 0 ; | |
8644 | char *kwnames[] = { | |
8645 | (char *) "self", NULL | |
8646 | }; | |
8647 | ||
8648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail; | |
8649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8651 | { | |
8652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8653 | result = (arg1)->GetMimeType(); | |
8654 | ||
8655 | wxPyEndAllowThreads(__tstate); | |
8656 | if (PyErr_Occurred()) SWIG_fail; | |
8657 | } | |
8658 | { | |
8659 | #if wxUSE_UNICODE | |
8660 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8661 | #else | |
8662 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8663 | #endif | |
8664 | } | |
8665 | return resultobj; | |
8666 | fail: | |
8667 | return NULL; | |
8668 | } | |
8669 | ||
8670 | ||
c370783e | 8671 | static PyObject *_wrap_ImageHandler_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8672 | PyObject *resultobj; |
8673 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8674 | wxString *arg2 = 0 ; | |
8675 | bool result; | |
b411df4a | 8676 | bool temp2 = false ; |
d55e5bfc RD |
8677 | PyObject * obj0 = 0 ; |
8678 | PyObject * obj1 = 0 ; | |
8679 | char *kwnames[] = { | |
8680 | (char *) "self",(char *) "name", NULL | |
8681 | }; | |
8682 | ||
8683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail; | |
8684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8686 | { | |
8687 | arg2 = wxString_in_helper(obj1); | |
8688 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8689 | temp2 = true; |
d55e5bfc RD |
8690 | } |
8691 | { | |
8692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8693 | result = (bool)(arg1)->CanRead((wxString const &)*arg2); | |
8694 | ||
8695 | wxPyEndAllowThreads(__tstate); | |
8696 | if (PyErr_Occurred()) SWIG_fail; | |
8697 | } | |
8698 | { | |
8699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8700 | } | |
8701 | { | |
8702 | if (temp2) | |
8703 | delete arg2; | |
8704 | } | |
8705 | return resultobj; | |
8706 | fail: | |
8707 | { | |
8708 | if (temp2) | |
8709 | delete arg2; | |
8710 | } | |
8711 | return NULL; | |
8712 | } | |
8713 | ||
8714 | ||
c370783e | 8715 | static PyObject *_wrap_ImageHandler_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8716 | PyObject *resultobj; |
8717 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8718 | wxString *arg2 = 0 ; | |
b411df4a | 8719 | bool temp2 = false ; |
d55e5bfc RD |
8720 | PyObject * obj0 = 0 ; |
8721 | PyObject * obj1 = 0 ; | |
8722 | char *kwnames[] = { | |
8723 | (char *) "self",(char *) "name", NULL | |
8724 | }; | |
8725 | ||
8726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail; | |
8727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8729 | { | |
8730 | arg2 = wxString_in_helper(obj1); | |
8731 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8732 | temp2 = true; |
d55e5bfc RD |
8733 | } |
8734 | { | |
8735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8736 | (arg1)->SetName((wxString const &)*arg2); | |
8737 | ||
8738 | wxPyEndAllowThreads(__tstate); | |
8739 | if (PyErr_Occurred()) SWIG_fail; | |
8740 | } | |
8741 | Py_INCREF(Py_None); resultobj = Py_None; | |
8742 | { | |
8743 | if (temp2) | |
8744 | delete arg2; | |
8745 | } | |
8746 | return resultobj; | |
8747 | fail: | |
8748 | { | |
8749 | if (temp2) | |
8750 | delete arg2; | |
8751 | } | |
8752 | return NULL; | |
8753 | } | |
8754 | ||
8755 | ||
c370783e | 8756 | static PyObject *_wrap_ImageHandler_SetExtension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8757 | PyObject *resultobj; |
8758 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8759 | wxString *arg2 = 0 ; | |
b411df4a | 8760 | bool temp2 = false ; |
d55e5bfc RD |
8761 | PyObject * obj0 = 0 ; |
8762 | PyObject * obj1 = 0 ; | |
8763 | char *kwnames[] = { | |
8764 | (char *) "self",(char *) "extension", NULL | |
8765 | }; | |
8766 | ||
8767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail; | |
8768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8770 | { | |
8771 | arg2 = wxString_in_helper(obj1); | |
8772 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8773 | temp2 = true; |
d55e5bfc RD |
8774 | } |
8775 | { | |
8776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8777 | (arg1)->SetExtension((wxString const &)*arg2); | |
8778 | ||
8779 | wxPyEndAllowThreads(__tstate); | |
8780 | if (PyErr_Occurred()) SWIG_fail; | |
8781 | } | |
8782 | Py_INCREF(Py_None); resultobj = Py_None; | |
8783 | { | |
8784 | if (temp2) | |
8785 | delete arg2; | |
8786 | } | |
8787 | return resultobj; | |
8788 | fail: | |
8789 | { | |
8790 | if (temp2) | |
8791 | delete arg2; | |
8792 | } | |
8793 | return NULL; | |
8794 | } | |
8795 | ||
8796 | ||
c370783e | 8797 | static PyObject *_wrap_ImageHandler_SetType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8798 | PyObject *resultobj; |
8799 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8800 | long arg2 ; | |
8801 | PyObject * obj0 = 0 ; | |
8802 | PyObject * obj1 = 0 ; | |
8803 | char *kwnames[] = { | |
8804 | (char *) "self",(char *) "type", NULL | |
8805 | }; | |
8806 | ||
8807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail; | |
8808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 8810 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
8811 | if (PyErr_Occurred()) SWIG_fail; |
8812 | { | |
8813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8814 | (arg1)->SetType(arg2); | |
8815 | ||
8816 | wxPyEndAllowThreads(__tstate); | |
8817 | if (PyErr_Occurred()) SWIG_fail; | |
8818 | } | |
8819 | Py_INCREF(Py_None); resultobj = Py_None; | |
8820 | return resultobj; | |
8821 | fail: | |
8822 | return NULL; | |
8823 | } | |
8824 | ||
8825 | ||
c370783e | 8826 | static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8827 | PyObject *resultobj; |
8828 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
8829 | wxString *arg2 = 0 ; | |
b411df4a | 8830 | bool temp2 = false ; |
d55e5bfc RD |
8831 | PyObject * obj0 = 0 ; |
8832 | PyObject * obj1 = 0 ; | |
8833 | char *kwnames[] = { | |
8834 | (char *) "self",(char *) "mimetype", NULL | |
8835 | }; | |
8836 | ||
8837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail; | |
8838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
8839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8840 | { | |
8841 | arg2 = wxString_in_helper(obj1); | |
8842 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 8843 | temp2 = true; |
d55e5bfc RD |
8844 | } |
8845 | { | |
8846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8847 | (arg1)->SetMimeType((wxString const &)*arg2); | |
8848 | ||
8849 | wxPyEndAllowThreads(__tstate); | |
8850 | if (PyErr_Occurred()) SWIG_fail; | |
8851 | } | |
8852 | Py_INCREF(Py_None); resultobj = Py_None; | |
8853 | { | |
8854 | if (temp2) | |
8855 | delete arg2; | |
8856 | } | |
8857 | return resultobj; | |
8858 | fail: | |
8859 | { | |
8860 | if (temp2) | |
8861 | delete arg2; | |
8862 | } | |
8863 | return NULL; | |
8864 | } | |
8865 | ||
8866 | ||
c370783e | 8867 | static PyObject * ImageHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8868 | PyObject *obj; |
8869 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8870 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj); | |
8871 | Py_INCREF(obj); | |
8872 | return Py_BuildValue((char *)""); | |
8873 | } | |
c370783e | 8874 | static PyObject *_wrap_new_ImageHistogram(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8875 | PyObject *resultobj; |
8876 | wxImageHistogram *result; | |
8877 | char *kwnames[] = { | |
8878 | NULL | |
8879 | }; | |
8880 | ||
8881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail; | |
8882 | { | |
8883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8884 | result = (wxImageHistogram *)new wxImageHistogram(); | |
8885 | ||
8886 | wxPyEndAllowThreads(__tstate); | |
8887 | if (PyErr_Occurred()) SWIG_fail; | |
8888 | } | |
8889 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1); | |
8890 | return resultobj; | |
8891 | fail: | |
8892 | return NULL; | |
8893 | } | |
8894 | ||
8895 | ||
c370783e | 8896 | static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8897 | PyObject *resultobj; |
8898 | unsigned char arg1 ; | |
8899 | unsigned char arg2 ; | |
8900 | unsigned char arg3 ; | |
8901 | unsigned long result; | |
8902 | PyObject * obj0 = 0 ; | |
8903 | PyObject * obj1 = 0 ; | |
8904 | PyObject * obj2 = 0 ; | |
8905 | char *kwnames[] = { | |
8906 | (char *) "r",(char *) "g",(char *) "b", NULL | |
8907 | }; | |
8908 | ||
8909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c370783e | 8910 | arg1 = (unsigned char)SWIG_As_unsigned_SS_char(obj0); |
d55e5bfc | 8911 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8912 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 8913 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 8914 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc RD |
8915 | if (PyErr_Occurred()) SWIG_fail; |
8916 | { | |
8917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8918 | result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3); | |
8919 | ||
8920 | wxPyEndAllowThreads(__tstate); | |
8921 | if (PyErr_Occurred()) SWIG_fail; | |
8922 | } | |
c370783e | 8923 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
8924 | return resultobj; |
8925 | fail: | |
8926 | return NULL; | |
8927 | } | |
8928 | ||
8929 | ||
c370783e | 8930 | static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
8931 | PyObject *resultobj; |
8932 | wxImageHistogram *arg1 = (wxImageHistogram *) 0 ; | |
8933 | unsigned char *arg2 = (unsigned char *) 0 ; | |
8934 | unsigned char *arg3 = (unsigned char *) 0 ; | |
8935 | unsigned char *arg4 = (unsigned char *) 0 ; | |
8936 | unsigned char arg5 = (unsigned char) 1 ; | |
8937 | unsigned char arg6 = (unsigned char) 0 ; | |
8938 | unsigned char arg7 = (unsigned char) 0 ; | |
8939 | bool result; | |
8940 | unsigned char temp2 ; | |
c370783e | 8941 | int res2 = 0 ; |
d55e5bfc | 8942 | unsigned char temp3 ; |
c370783e | 8943 | int res3 = 0 ; |
d55e5bfc | 8944 | unsigned char temp4 ; |
c370783e | 8945 | int res4 = 0 ; |
d55e5bfc RD |
8946 | PyObject * obj0 = 0 ; |
8947 | PyObject * obj1 = 0 ; | |
8948 | PyObject * obj2 = 0 ; | |
8949 | PyObject * obj3 = 0 ; | |
8950 | char *kwnames[] = { | |
8951 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
8952 | }; | |
8953 | ||
c370783e RD |
8954 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
8955 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
8956 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
8957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
8958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram, | |
8959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8960 | if (obj1) { | |
c370783e | 8961 | arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc RD |
8962 | if (PyErr_Occurred()) SWIG_fail; |
8963 | } | |
8964 | if (obj2) { | |
c370783e | 8965 | arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc RD |
8966 | if (PyErr_Occurred()) SWIG_fail; |
8967 | } | |
8968 | if (obj3) { | |
c370783e | 8969 | arg7 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
8970 | if (PyErr_Occurred()) SWIG_fail; |
8971 | } | |
8972 | { | |
8973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8974 | result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
8975 | ||
8976 | wxPyEndAllowThreads(__tstate); | |
8977 | if (PyErr_Occurred()) SWIG_fail; | |
8978 | } | |
8979 | { | |
8980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8981 | } | |
c370783e RD |
8982 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
8983 | SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, 0))); | |
8984 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
8985 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0))); | |
8986 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
8987 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0))); | |
d55e5bfc RD |
8988 | return resultobj; |
8989 | fail: | |
8990 | return NULL; | |
8991 | } | |
8992 | ||
8993 | ||
c370783e | 8994 | static PyObject * ImageHistogram_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
8995 | PyObject *obj; |
8996 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8997 | SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj); | |
8998 | Py_INCREF(obj); | |
8999 | return Py_BuildValue((char *)""); | |
9000 | } | |
c370783e | 9001 | static PyObject *_wrap_new_Image(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9002 | PyObject *resultobj; |
9003 | wxString *arg1 = 0 ; | |
9004 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9005 | int arg3 = (int) -1 ; | |
9006 | wxImage *result; | |
b411df4a | 9007 | bool temp1 = false ; |
d55e5bfc RD |
9008 | PyObject * obj0 = 0 ; |
9009 | PyObject * obj1 = 0 ; | |
9010 | PyObject * obj2 = 0 ; | |
9011 | char *kwnames[] = { | |
9012 | (char *) "name",(char *) "type",(char *) "index", NULL | |
9013 | }; | |
9014 | ||
9015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9016 | { | |
9017 | arg1 = wxString_in_helper(obj0); | |
9018 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 9019 | temp1 = true; |
d55e5bfc RD |
9020 | } |
9021 | if (obj1) { | |
c370783e | 9022 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
9023 | if (PyErr_Occurred()) SWIG_fail; |
9024 | } | |
9025 | if (obj2) { | |
c370783e | 9026 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9027 | if (PyErr_Occurred()) SWIG_fail; |
9028 | } | |
9029 | { | |
9030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9031 | result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3); | |
9032 | ||
9033 | wxPyEndAllowThreads(__tstate); | |
9034 | if (PyErr_Occurred()) SWIG_fail; | |
9035 | } | |
9036 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9037 | { | |
9038 | if (temp1) | |
9039 | delete arg1; | |
9040 | } | |
9041 | return resultobj; | |
9042 | fail: | |
9043 | { | |
9044 | if (temp1) | |
9045 | delete arg1; | |
9046 | } | |
9047 | return NULL; | |
9048 | } | |
9049 | ||
9050 | ||
c370783e | 9051 | static PyObject *_wrap_delete_Image(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9052 | PyObject *resultobj; |
9053 | wxImage *arg1 = (wxImage *) 0 ; | |
9054 | PyObject * obj0 = 0 ; | |
9055 | char *kwnames[] = { | |
9056 | (char *) "self", NULL | |
9057 | }; | |
9058 | ||
9059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail; | |
9060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9062 | { | |
9063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9064 | delete arg1; | |
9065 | ||
9066 | wxPyEndAllowThreads(__tstate); | |
9067 | if (PyErr_Occurred()) SWIG_fail; | |
9068 | } | |
9069 | Py_INCREF(Py_None); resultobj = Py_None; | |
9070 | return resultobj; | |
9071 | fail: | |
9072 | return NULL; | |
9073 | } | |
9074 | ||
9075 | ||
c370783e | 9076 | static PyObject *_wrap_new_ImageFromMime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9077 | PyObject *resultobj; |
9078 | wxString *arg1 = 0 ; | |
9079 | wxString *arg2 = 0 ; | |
9080 | int arg3 = (int) -1 ; | |
9081 | wxImage *result; | |
b411df4a RD |
9082 | bool temp1 = false ; |
9083 | bool temp2 = false ; | |
d55e5bfc RD |
9084 | PyObject * obj0 = 0 ; |
9085 | PyObject * obj1 = 0 ; | |
9086 | PyObject * obj2 = 0 ; | |
9087 | char *kwnames[] = { | |
9088 | (char *) "name",(char *) "mimetype",(char *) "index", NULL | |
9089 | }; | |
9090 | ||
9091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9092 | { | |
9093 | arg1 = wxString_in_helper(obj0); | |
9094 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 9095 | temp1 = true; |
d55e5bfc RD |
9096 | } |
9097 | { | |
9098 | arg2 = wxString_in_helper(obj1); | |
9099 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 9100 | temp2 = true; |
d55e5bfc RD |
9101 | } |
9102 | if (obj2) { | |
c370783e | 9103 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9104 | if (PyErr_Occurred()) SWIG_fail; |
9105 | } | |
9106 | { | |
9107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9108 | result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
9109 | ||
9110 | wxPyEndAllowThreads(__tstate); | |
9111 | if (PyErr_Occurred()) SWIG_fail; | |
9112 | } | |
9113 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9114 | { | |
9115 | if (temp1) | |
9116 | delete arg1; | |
9117 | } | |
9118 | { | |
9119 | if (temp2) | |
9120 | delete arg2; | |
9121 | } | |
9122 | return resultobj; | |
9123 | fail: | |
9124 | { | |
9125 | if (temp1) | |
9126 | delete arg1; | |
9127 | } | |
9128 | { | |
9129 | if (temp2) | |
9130 | delete arg2; | |
9131 | } | |
9132 | return NULL; | |
9133 | } | |
9134 | ||
9135 | ||
c370783e | 9136 | static PyObject *_wrap_new_ImageFromStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9137 | PyObject *resultobj; |
9138 | wxInputStream *arg1 = 0 ; | |
9139 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
9140 | int arg3 = (int) -1 ; | |
9141 | wxImage *result; | |
9142 | wxPyInputStream *temp1 ; | |
9143 | bool created1 ; | |
9144 | PyObject * obj0 = 0 ; | |
9145 | PyObject * obj1 = 0 ; | |
9146 | PyObject * obj2 = 0 ; | |
9147 | char *kwnames[] = { | |
9148 | (char *) "stream",(char *) "type",(char *) "index", NULL | |
9149 | }; | |
9150 | ||
9151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9152 | { | |
9153 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9154 | arg1 = temp1->m_wxis; | |
b411df4a | 9155 | created1 = false; |
d55e5bfc RD |
9156 | } else { |
9157 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
b411df4a | 9158 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
9159 | if (arg1 == NULL) { |
9160 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9161 | SWIG_fail; | |
9162 | } | |
b411df4a | 9163 | created1 = true; |
d55e5bfc RD |
9164 | } |
9165 | } | |
9166 | if (obj1) { | |
c370783e | 9167 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
9168 | if (PyErr_Occurred()) SWIG_fail; |
9169 | } | |
9170 | if (obj2) { | |
c370783e | 9171 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9172 | if (PyErr_Occurred()) SWIG_fail; |
9173 | } | |
9174 | { | |
9175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9176 | result = (wxImage *)new wxImage(*arg1,arg2,arg3); | |
9177 | ||
9178 | wxPyEndAllowThreads(__tstate); | |
9179 | if (PyErr_Occurred()) SWIG_fail; | |
9180 | } | |
9181 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9182 | { | |
9183 | if (created1) | |
9184 | delete arg1; | |
9185 | } | |
9186 | return resultobj; | |
9187 | fail: | |
9188 | { | |
9189 | if (created1) | |
9190 | delete arg1; | |
9191 | } | |
9192 | return NULL; | |
9193 | } | |
9194 | ||
9195 | ||
c370783e | 9196 | static PyObject *_wrap_new_ImageFromStreamMime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9197 | PyObject *resultobj; |
9198 | wxInputStream *arg1 = 0 ; | |
9199 | wxString *arg2 = 0 ; | |
9200 | int arg3 = (int) -1 ; | |
9201 | wxImage *result; | |
9202 | wxPyInputStream *temp1 ; | |
9203 | bool created1 ; | |
b411df4a | 9204 | bool temp2 = false ; |
d55e5bfc RD |
9205 | PyObject * obj0 = 0 ; |
9206 | PyObject * obj1 = 0 ; | |
9207 | PyObject * obj2 = 0 ; | |
9208 | char *kwnames[] = { | |
9209 | (char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
9210 | }; | |
9211 | ||
9212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9213 | { | |
9214 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
9215 | arg1 = temp1->m_wxis; | |
b411df4a | 9216 | created1 = false; |
d55e5bfc RD |
9217 | } else { |
9218 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
b411df4a | 9219 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
9220 | if (arg1 == NULL) { |
9221 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
9222 | SWIG_fail; | |
9223 | } | |
b411df4a | 9224 | created1 = true; |
d55e5bfc RD |
9225 | } |
9226 | } | |
9227 | { | |
9228 | arg2 = wxString_in_helper(obj1); | |
9229 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 9230 | temp2 = true; |
d55e5bfc RD |
9231 | } |
9232 | if (obj2) { | |
c370783e | 9233 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9234 | if (PyErr_Occurred()) SWIG_fail; |
9235 | } | |
9236 | { | |
9237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9238 | result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3); | |
9239 | ||
9240 | wxPyEndAllowThreads(__tstate); | |
9241 | if (PyErr_Occurred()) SWIG_fail; | |
9242 | } | |
9243 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9244 | { | |
9245 | if (created1) | |
9246 | delete arg1; | |
9247 | } | |
9248 | { | |
9249 | if (temp2) | |
9250 | delete arg2; | |
9251 | } | |
9252 | return resultobj; | |
9253 | fail: | |
9254 | { | |
9255 | if (created1) | |
9256 | delete arg1; | |
9257 | } | |
9258 | { | |
9259 | if (temp2) | |
9260 | delete arg2; | |
9261 | } | |
9262 | return NULL; | |
9263 | } | |
9264 | ||
9265 | ||
c370783e | 9266 | static PyObject *_wrap_new_EmptyImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9267 | PyObject *resultobj; |
9268 | int arg1 = (int) 0 ; | |
9269 | int arg2 = (int) 0 ; | |
b411df4a | 9270 | bool arg3 = (bool) true ; |
d55e5bfc RD |
9271 | wxImage *result; |
9272 | PyObject * obj0 = 0 ; | |
9273 | PyObject * obj1 = 0 ; | |
9274 | PyObject * obj2 = 0 ; | |
d6c14a4c RD |
9275 | char *kwnames[] = { |
9276 | (char *) "width",(char *) "height",(char *) "clear", NULL | |
9277 | }; | |
d55e5bfc | 9278 | |
d6c14a4c | 9279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc | 9280 | if (obj0) { |
c370783e | 9281 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
9282 | if (PyErr_Occurred()) SWIG_fail; |
9283 | } | |
9284 | if (obj1) { | |
c370783e | 9285 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9286 | if (PyErr_Occurred()) SWIG_fail; |
9287 | } | |
9288 | if (obj2) { | |
c370783e | 9289 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
9290 | if (PyErr_Occurred()) SWIG_fail; |
9291 | } | |
9292 | { | |
9293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 9294 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); |
d55e5bfc RD |
9295 | |
9296 | wxPyEndAllowThreads(__tstate); | |
9297 | if (PyErr_Occurred()) SWIG_fail; | |
9298 | } | |
9299 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9300 | return resultobj; | |
9301 | fail: | |
9302 | return NULL; | |
9303 | } | |
9304 | ||
9305 | ||
c370783e | 9306 | static PyObject *_wrap_new_ImageFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9307 | PyObject *resultobj; |
9308 | wxBitmap *arg1 = 0 ; | |
9309 | wxImage *result; | |
9310 | PyObject * obj0 = 0 ; | |
9311 | char *kwnames[] = { | |
9312 | (char *) "bitmap", NULL | |
9313 | }; | |
9314 | ||
9315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail; | |
9316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
9317 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9318 | SWIG_fail; | |
9319 | if (arg1 == NULL) { | |
9320 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9321 | SWIG_fail; | |
9322 | } | |
9323 | { | |
0439c23b | 9324 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
9325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9326 | result = (wxImage *)new_wxImage((wxBitmap const &)*arg1); | |
9327 | ||
9328 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9329 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
9330 | } |
9331 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9332 | return resultobj; | |
9333 | fail: | |
9334 | return NULL; | |
9335 | } | |
9336 | ||
9337 | ||
c370783e | 9338 | static PyObject *_wrap_new_ImageFromData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9339 | PyObject *resultobj; |
9340 | int arg1 ; | |
9341 | int arg2 ; | |
9342 | unsigned char *arg3 = (unsigned char *) 0 ; | |
9343 | wxImage *result; | |
9344 | PyObject * obj0 = 0 ; | |
9345 | PyObject * obj1 = 0 ; | |
9346 | PyObject * obj2 = 0 ; | |
9347 | char *kwnames[] = { | |
9348 | (char *) "width",(char *) "height",(char *) "data", NULL | |
9349 | }; | |
9350 | ||
9351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
c370783e | 9352 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 9353 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9354 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
9355 | if (PyErr_Occurred()) SWIG_fail; |
9356 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
9357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9358 | { | |
9359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9360 | result = (wxImage *)new_wxImage(arg1,arg2,arg3); | |
9361 | ||
9362 | wxPyEndAllowThreads(__tstate); | |
9363 | if (PyErr_Occurred()) SWIG_fail; | |
9364 | } | |
9365 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9366 | return resultobj; | |
9367 | fail: | |
9368 | return NULL; | |
9369 | } | |
9370 | ||
9371 | ||
03e46024 RD |
9372 | static PyObject *_wrap_new_ImageFromDataWithAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
9373 | PyObject *resultobj; | |
9374 | int arg1 ; | |
9375 | int arg2 ; | |
9376 | unsigned char *arg3 = (unsigned char *) 0 ; | |
9377 | unsigned char *arg4 = (unsigned char *) 0 ; | |
9378 | wxImage *result; | |
9379 | PyObject * obj0 = 0 ; | |
9380 | PyObject * obj1 = 0 ; | |
9381 | PyObject * obj2 = 0 ; | |
9382 | PyObject * obj3 = 0 ; | |
9383 | char *kwnames[] = { | |
9384 | (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL | |
9385 | }; | |
9386 | ||
9387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_ImageFromDataWithAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9388 | arg1 = (int)SWIG_As_int(obj0); | |
9389 | if (PyErr_Occurred()) SWIG_fail; | |
9390 | arg2 = (int)SWIG_As_int(obj1); | |
9391 | if (PyErr_Occurred()) SWIG_fail; | |
9392 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char, | |
9393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9394 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char, | |
9395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9396 | { | |
9397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9398 | result = (wxImage *)new_wxImage(arg1,arg2,arg3,arg4); | |
9399 | ||
9400 | wxPyEndAllowThreads(__tstate); | |
9401 | if (PyErr_Occurred()) SWIG_fail; | |
9402 | } | |
9403 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1); | |
9404 | return resultobj; | |
9405 | fail: | |
9406 | return NULL; | |
9407 | } | |
9408 | ||
9409 | ||
c370783e | 9410 | static PyObject *_wrap_Image_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9411 | PyObject *resultobj; |
9412 | wxImage *arg1 = (wxImage *) 0 ; | |
9413 | int arg2 ; | |
9414 | int arg3 ; | |
9415 | PyObject * obj0 = 0 ; | |
9416 | PyObject * obj1 = 0 ; | |
9417 | PyObject * obj2 = 0 ; | |
9418 | char *kwnames[] = { | |
9419 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9420 | }; | |
9421 | ||
9422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9425 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9426 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9427 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9428 | if (PyErr_Occurred()) SWIG_fail; |
9429 | { | |
9430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9431 | (arg1)->Create(arg2,arg3); | |
9432 | ||
9433 | wxPyEndAllowThreads(__tstate); | |
9434 | if (PyErr_Occurred()) SWIG_fail; | |
9435 | } | |
9436 | Py_INCREF(Py_None); resultobj = Py_None; | |
9437 | return resultobj; | |
9438 | fail: | |
9439 | return NULL; | |
9440 | } | |
9441 | ||
9442 | ||
c370783e | 9443 | static PyObject *_wrap_Image_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9444 | PyObject *resultobj; |
9445 | wxImage *arg1 = (wxImage *) 0 ; | |
9446 | PyObject * obj0 = 0 ; | |
9447 | char *kwnames[] = { | |
9448 | (char *) "self", NULL | |
9449 | }; | |
9450 | ||
9451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail; | |
9452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9454 | { | |
9455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9456 | (arg1)->Destroy(); | |
9457 | ||
9458 | wxPyEndAllowThreads(__tstate); | |
9459 | if (PyErr_Occurred()) SWIG_fail; | |
9460 | } | |
9461 | Py_INCREF(Py_None); resultobj = Py_None; | |
9462 | return resultobj; | |
9463 | fail: | |
9464 | return NULL; | |
9465 | } | |
9466 | ||
9467 | ||
c370783e | 9468 | static PyObject *_wrap_Image_Scale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9469 | PyObject *resultobj; |
9470 | wxImage *arg1 = (wxImage *) 0 ; | |
9471 | int arg2 ; | |
9472 | int arg3 ; | |
9473 | SwigValueWrapper< wxImage > result; | |
9474 | PyObject * obj0 = 0 ; | |
9475 | PyObject * obj1 = 0 ; | |
9476 | PyObject * obj2 = 0 ; | |
9477 | char *kwnames[] = { | |
9478 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9479 | }; | |
9480 | ||
9481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9484 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9485 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9486 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9487 | if (PyErr_Occurred()) SWIG_fail; |
9488 | { | |
9489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9490 | result = (arg1)->Scale(arg2,arg3); | |
9491 | ||
9492 | wxPyEndAllowThreads(__tstate); | |
9493 | if (PyErr_Occurred()) SWIG_fail; | |
9494 | } | |
9495 | { | |
9496 | wxImage * resultptr; | |
9497 | resultptr = new wxImage((wxImage &) result); | |
9498 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
9499 | } | |
9500 | return resultobj; | |
9501 | fail: | |
9502 | return NULL; | |
9503 | } | |
9504 | ||
9505 | ||
c370783e | 9506 | static PyObject *_wrap_Image_ShrinkBy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9507 | PyObject *resultobj; |
9508 | wxImage *arg1 = (wxImage *) 0 ; | |
9509 | int arg2 ; | |
9510 | int arg3 ; | |
9511 | SwigValueWrapper< wxImage > result; | |
9512 | PyObject * obj0 = 0 ; | |
9513 | PyObject * obj1 = 0 ; | |
9514 | PyObject * obj2 = 0 ; | |
9515 | char *kwnames[] = { | |
9516 | (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL | |
9517 | }; | |
9518 | ||
9519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9522 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9523 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9524 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9525 | if (PyErr_Occurred()) SWIG_fail; |
9526 | { | |
9527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9528 | result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3); | |
9529 | ||
9530 | wxPyEndAllowThreads(__tstate); | |
9531 | if (PyErr_Occurred()) SWIG_fail; | |
9532 | } | |
9533 | { | |
9534 | wxImage * resultptr; | |
9535 | resultptr = new wxImage((wxImage &) result); | |
9536 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
9537 | } | |
9538 | return resultobj; | |
9539 | fail: | |
9540 | return NULL; | |
9541 | } | |
9542 | ||
9543 | ||
c370783e | 9544 | static PyObject *_wrap_Image_Rescale(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9545 | PyObject *resultobj; |
9546 | wxImage *arg1 = (wxImage *) 0 ; | |
9547 | int arg2 ; | |
9548 | int arg3 ; | |
9549 | wxImage *result; | |
9550 | PyObject * obj0 = 0 ; | |
9551 | PyObject * obj1 = 0 ; | |
9552 | PyObject * obj2 = 0 ; | |
9553 | char *kwnames[] = { | |
9554 | (char *) "self",(char *) "width",(char *) "height", NULL | |
9555 | }; | |
9556 | ||
9557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9560 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9561 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9562 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9563 | if (PyErr_Occurred()) SWIG_fail; |
9564 | { | |
9565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9566 | { | |
9567 | wxImage &_result_ref = (arg1)->Rescale(arg2,arg3); | |
9568 | result = (wxImage *) &_result_ref; | |
9569 | } | |
9570 | ||
9571 | wxPyEndAllowThreads(__tstate); | |
9572 | if (PyErr_Occurred()) SWIG_fail; | |
9573 | } | |
9574 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0); | |
9575 | return resultobj; | |
9576 | fail: | |
9577 | return NULL; | |
9578 | } | |
9579 | ||
9580 | ||
c370783e | 9581 | static PyObject *_wrap_Image_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9582 | PyObject *resultobj; |
9583 | wxImage *arg1 = (wxImage *) 0 ; | |
9584 | int arg2 ; | |
9585 | int arg3 ; | |
9586 | unsigned char arg4 ; | |
9587 | unsigned char arg5 ; | |
9588 | unsigned char arg6 ; | |
9589 | PyObject * obj0 = 0 ; | |
9590 | PyObject * obj1 = 0 ; | |
9591 | PyObject * obj2 = 0 ; | |
9592 | PyObject * obj3 = 0 ; | |
9593 | PyObject * obj4 = 0 ; | |
9594 | PyObject * obj5 = 0 ; | |
9595 | char *kwnames[] = { | |
9596 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL | |
9597 | }; | |
9598 | ||
9599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
9600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9602 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9603 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9604 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 9605 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9606 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc | 9607 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9608 | arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj4); |
d55e5bfc | 9609 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9610 | arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj5); |
d55e5bfc RD |
9611 | if (PyErr_Occurred()) SWIG_fail; |
9612 | { | |
9613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9614 | (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6); | |
9615 | ||
9616 | wxPyEndAllowThreads(__tstate); | |
9617 | if (PyErr_Occurred()) SWIG_fail; | |
9618 | } | |
9619 | Py_INCREF(Py_None); resultobj = Py_None; | |
9620 | return resultobj; | |
9621 | fail: | |
9622 | return NULL; | |
9623 | } | |
9624 | ||
9625 | ||
c370783e | 9626 | static PyObject *_wrap_Image_GetRed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9627 | PyObject *resultobj; |
9628 | wxImage *arg1 = (wxImage *) 0 ; | |
9629 | int arg2 ; | |
9630 | int arg3 ; | |
9631 | unsigned char result; | |
9632 | PyObject * obj0 = 0 ; | |
9633 | PyObject * obj1 = 0 ; | |
9634 | PyObject * obj2 = 0 ; | |
9635 | char *kwnames[] = { | |
9636 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9637 | }; | |
9638 | ||
9639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9642 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9643 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9644 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9645 | if (PyErr_Occurred()) SWIG_fail; |
9646 | { | |
9647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9648 | result = (unsigned char)(arg1)->GetRed(arg2,arg3); | |
9649 | ||
9650 | wxPyEndAllowThreads(__tstate); | |
9651 | if (PyErr_Occurred()) SWIG_fail; | |
9652 | } | |
c370783e | 9653 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9654 | return resultobj; |
9655 | fail: | |
9656 | return NULL; | |
9657 | } | |
9658 | ||
9659 | ||
c370783e | 9660 | static PyObject *_wrap_Image_GetGreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9661 | PyObject *resultobj; |
9662 | wxImage *arg1 = (wxImage *) 0 ; | |
9663 | int arg2 ; | |
9664 | int arg3 ; | |
9665 | unsigned char result; | |
9666 | PyObject * obj0 = 0 ; | |
9667 | PyObject * obj1 = 0 ; | |
9668 | PyObject * obj2 = 0 ; | |
9669 | char *kwnames[] = { | |
9670 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9671 | }; | |
9672 | ||
9673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9676 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9677 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9678 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9679 | if (PyErr_Occurred()) SWIG_fail; |
9680 | { | |
9681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9682 | result = (unsigned char)(arg1)->GetGreen(arg2,arg3); | |
9683 | ||
9684 | wxPyEndAllowThreads(__tstate); | |
9685 | if (PyErr_Occurred()) SWIG_fail; | |
9686 | } | |
c370783e | 9687 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9688 | return resultobj; |
9689 | fail: | |
9690 | return NULL; | |
9691 | } | |
9692 | ||
9693 | ||
c370783e | 9694 | static PyObject *_wrap_Image_GetBlue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9695 | PyObject *resultobj; |
9696 | wxImage *arg1 = (wxImage *) 0 ; | |
9697 | int arg2 ; | |
9698 | int arg3 ; | |
9699 | unsigned char result; | |
9700 | PyObject * obj0 = 0 ; | |
9701 | PyObject * obj1 = 0 ; | |
9702 | PyObject * obj2 = 0 ; | |
9703 | char *kwnames[] = { | |
9704 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9705 | }; | |
9706 | ||
9707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9710 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9711 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9712 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9713 | if (PyErr_Occurred()) SWIG_fail; |
9714 | { | |
9715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9716 | result = (unsigned char)(arg1)->GetBlue(arg2,arg3); | |
9717 | ||
9718 | wxPyEndAllowThreads(__tstate); | |
9719 | if (PyErr_Occurred()) SWIG_fail; | |
9720 | } | |
c370783e | 9721 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9722 | return resultobj; |
9723 | fail: | |
9724 | return NULL; | |
9725 | } | |
9726 | ||
9727 | ||
c370783e | 9728 | static PyObject *_wrap_Image_SetAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9729 | PyObject *resultobj; |
9730 | wxImage *arg1 = (wxImage *) 0 ; | |
9731 | int arg2 ; | |
9732 | int arg3 ; | |
9733 | unsigned char arg4 ; | |
9734 | PyObject * obj0 = 0 ; | |
9735 | PyObject * obj1 = 0 ; | |
9736 | PyObject * obj2 = 0 ; | |
9737 | PyObject * obj3 = 0 ; | |
9738 | char *kwnames[] = { | |
9739 | (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL | |
9740 | }; | |
9741 | ||
9742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9745 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9746 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9747 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 9748 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9749 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
9750 | if (PyErr_Occurred()) SWIG_fail; |
9751 | { | |
9752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9753 | (arg1)->SetAlpha(arg2,arg3,arg4); | |
9754 | ||
9755 | wxPyEndAllowThreads(__tstate); | |
9756 | if (PyErr_Occurred()) SWIG_fail; | |
9757 | } | |
9758 | Py_INCREF(Py_None); resultobj = Py_None; | |
9759 | return resultobj; | |
9760 | fail: | |
9761 | return NULL; | |
9762 | } | |
9763 | ||
9764 | ||
c370783e | 9765 | static PyObject *_wrap_Image_GetAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9766 | PyObject *resultobj; |
9767 | wxImage *arg1 = (wxImage *) 0 ; | |
9768 | int arg2 ; | |
9769 | int arg3 ; | |
9770 | unsigned char result; | |
9771 | PyObject * obj0 = 0 ; | |
9772 | PyObject * obj1 = 0 ; | |
9773 | PyObject * obj2 = 0 ; | |
9774 | char *kwnames[] = { | |
9775 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9776 | }; | |
9777 | ||
9778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 9781 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 9782 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9783 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
9784 | if (PyErr_Occurred()) SWIG_fail; |
9785 | { | |
9786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9787 | result = (unsigned char)(arg1)->GetAlpha(arg2,arg3); | |
9788 | ||
9789 | wxPyEndAllowThreads(__tstate); | |
9790 | if (PyErr_Occurred()) SWIG_fail; | |
9791 | } | |
c370783e | 9792 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
9793 | return resultobj; |
9794 | fail: | |
9795 | return NULL; | |
9796 | } | |
9797 | ||
9798 | ||
c370783e | 9799 | static PyObject *_wrap_Image_HasAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9800 | PyObject *resultobj; |
9801 | wxImage *arg1 = (wxImage *) 0 ; | |
9802 | bool result; | |
9803 | PyObject * obj0 = 0 ; | |
9804 | char *kwnames[] = { | |
9805 | (char *) "self", NULL | |
9806 | }; | |
9807 | ||
9808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail; | |
9809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9811 | { | |
9812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9813 | result = (bool)(arg1)->HasAlpha(); | |
9814 | ||
9815 | wxPyEndAllowThreads(__tstate); | |
9816 | if (PyErr_Occurred()) SWIG_fail; | |
9817 | } | |
9818 | { | |
9819 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9820 | } | |
9821 | return resultobj; | |
9822 | fail: | |
9823 | return NULL; | |
9824 | } | |
9825 | ||
9826 | ||
c370783e | 9827 | static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9828 | PyObject *resultobj; |
9829 | wxImage *arg1 = (wxImage *) 0 ; | |
9830 | byte *arg2 = (byte *) 0 ; | |
9831 | byte *arg3 = (byte *) 0 ; | |
9832 | byte *arg4 = (byte *) 0 ; | |
9833 | byte arg5 = (byte) 0 ; | |
9834 | byte arg6 = (byte) 0 ; | |
9835 | byte arg7 = (byte) 0 ; | |
9836 | bool result; | |
9837 | byte temp2 ; | |
c370783e | 9838 | int res2 = 0 ; |
d55e5bfc | 9839 | byte temp3 ; |
c370783e | 9840 | int res3 = 0 ; |
d55e5bfc | 9841 | byte temp4 ; |
c370783e | 9842 | int res4 = 0 ; |
d55e5bfc RD |
9843 | PyObject * obj0 = 0 ; |
9844 | PyObject * obj1 = 0 ; | |
9845 | PyObject * obj2 = 0 ; | |
9846 | PyObject * obj3 = 0 ; | |
9847 | char *kwnames[] = { | |
9848 | (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL | |
9849 | }; | |
9850 | ||
c370783e RD |
9851 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
9852 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
9853 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
9854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
9855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9857 | if (obj1) { | |
c370783e | 9858 | arg5 = (byte)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc RD |
9859 | if (PyErr_Occurred()) SWIG_fail; |
9860 | } | |
9861 | if (obj2) { | |
c370783e | 9862 | arg6 = (byte)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc RD |
9863 | if (PyErr_Occurred()) SWIG_fail; |
9864 | } | |
9865 | if (obj3) { | |
c370783e | 9866 | arg7 = (byte)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
9867 | if (PyErr_Occurred()) SWIG_fail; |
9868 | } | |
9869 | { | |
9870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9871 | result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7); | |
9872 | ||
9873 | wxPyEndAllowThreads(__tstate); | |
9874 | if (PyErr_Occurred()) SWIG_fail; | |
9875 | } | |
9876 | { | |
9877 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9878 | } | |
c370783e RD |
9879 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
9880 | SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_byte, 0))); | |
9881 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
9882 | SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0))); | |
9883 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
9884 | SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0))); | |
d55e5bfc RD |
9885 | return resultobj; |
9886 | fail: | |
9887 | return NULL; | |
9888 | } | |
9889 | ||
9890 | ||
c370783e | 9891 | static PyObject *_wrap_Image_ConvertAlphaToMask(PyObject *, PyObject *args, PyObject *kwargs) { |
4cf4100f RD |
9892 | PyObject *resultobj; |
9893 | wxImage *arg1 = (wxImage *) 0 ; | |
9894 | byte arg2 = (byte) 128 ; | |
9895 | bool result; | |
9896 | PyObject * obj0 = 0 ; | |
9897 | PyObject * obj1 = 0 ; | |
9898 | char *kwnames[] = { | |
9899 | (char *) "self",(char *) "threshold", NULL | |
9900 | }; | |
9901 | ||
9902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertAlphaToMask",kwnames,&obj0,&obj1)) goto fail; | |
9903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9905 | if (obj1) { | |
c370783e | 9906 | arg2 = (byte)SWIG_As_unsigned_SS_char(obj1); |
4cf4100f RD |
9907 | if (PyErr_Occurred()) SWIG_fail; |
9908 | } | |
9909 | { | |
9910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9911 | result = (bool)(arg1)->ConvertAlphaToMask(arg2); | |
9912 | ||
9913 | wxPyEndAllowThreads(__tstate); | |
9914 | if (PyErr_Occurred()) SWIG_fail; | |
9915 | } | |
9916 | { | |
9917 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9918 | } | |
9919 | return resultobj; | |
9920 | fail: | |
9921 | return NULL; | |
9922 | } | |
9923 | ||
9924 | ||
8fb0e70a RD |
9925 | static PyObject *_wrap_Image_ConvertColourToAlpha(PyObject *, PyObject *args, PyObject *kwargs) { |
9926 | PyObject *resultobj; | |
9927 | wxImage *arg1 = (wxImage *) 0 ; | |
9928 | unsigned char arg2 ; | |
9929 | unsigned char arg3 ; | |
9930 | unsigned char arg4 ; | |
9931 | bool result; | |
9932 | PyObject * obj0 = 0 ; | |
9933 | PyObject * obj1 = 0 ; | |
9934 | PyObject * obj2 = 0 ; | |
9935 | PyObject * obj3 = 0 ; | |
9936 | char *kwnames[] = { | |
9937 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
9938 | }; | |
9939 | ||
9940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertColourToAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9943 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); | |
9944 | if (PyErr_Occurred()) SWIG_fail; | |
9945 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); | |
9946 | if (PyErr_Occurred()) SWIG_fail; | |
9947 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); | |
9948 | if (PyErr_Occurred()) SWIG_fail; | |
9949 | { | |
9950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9951 | result = (bool)(arg1)->ConvertColourToAlpha(arg2,arg3,arg4); | |
9952 | ||
9953 | wxPyEndAllowThreads(__tstate); | |
9954 | if (PyErr_Occurred()) SWIG_fail; | |
9955 | } | |
9956 | { | |
9957 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9958 | } | |
9959 | return resultobj; | |
9960 | fail: | |
9961 | return NULL; | |
9962 | } | |
9963 | ||
9964 | ||
c370783e | 9965 | static PyObject *_wrap_Image_SetMaskFromImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
9966 | PyObject *resultobj; |
9967 | wxImage *arg1 = (wxImage *) 0 ; | |
9968 | wxImage *arg2 = 0 ; | |
9969 | byte arg3 ; | |
9970 | byte arg4 ; | |
9971 | byte arg5 ; | |
9972 | bool result; | |
9973 | PyObject * obj0 = 0 ; | |
9974 | PyObject * obj1 = 0 ; | |
9975 | PyObject * obj2 = 0 ; | |
9976 | PyObject * obj3 = 0 ; | |
9977 | PyObject * obj4 = 0 ; | |
9978 | char *kwnames[] = { | |
9979 | (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL | |
9980 | }; | |
9981 | ||
9982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
9983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
9984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9985 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
9986 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9987 | SWIG_fail; | |
9988 | if (arg2 == NULL) { | |
9989 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9990 | SWIG_fail; | |
9991 | } | |
c370783e | 9992 | arg3 = (byte)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 9993 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9994 | arg4 = (byte)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc | 9995 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 9996 | arg5 = (byte)SWIG_As_unsigned_SS_char(obj4); |
d55e5bfc RD |
9997 | if (PyErr_Occurred()) SWIG_fail; |
9998 | { | |
9999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10000 | result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5); | |
10001 | ||
10002 | wxPyEndAllowThreads(__tstate); | |
10003 | if (PyErr_Occurred()) SWIG_fail; | |
10004 | } | |
10005 | { | |
10006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10007 | } | |
10008 | return resultobj; | |
10009 | fail: | |
10010 | return NULL; | |
10011 | } | |
10012 | ||
10013 | ||
c370783e | 10014 | static PyObject *_wrap_Image_CanRead(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10015 | PyObject *resultobj; |
10016 | wxString *arg1 = 0 ; | |
10017 | bool result; | |
b411df4a | 10018 | bool temp1 = false ; |
d55e5bfc RD |
10019 | PyObject * obj0 = 0 ; |
10020 | char *kwnames[] = { | |
10021 | (char *) "name", NULL | |
10022 | }; | |
10023 | ||
10024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail; | |
10025 | { | |
10026 | arg1 = wxString_in_helper(obj0); | |
10027 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 10028 | temp1 = true; |
d55e5bfc RD |
10029 | } |
10030 | { | |
10031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10032 | result = (bool)wxImage::CanRead((wxString const &)*arg1); | |
10033 | ||
10034 | wxPyEndAllowThreads(__tstate); | |
10035 | if (PyErr_Occurred()) SWIG_fail; | |
10036 | } | |
10037 | { | |
10038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10039 | } | |
10040 | { | |
10041 | if (temp1) | |
10042 | delete arg1; | |
10043 | } | |
10044 | return resultobj; | |
10045 | fail: | |
10046 | { | |
10047 | if (temp1) | |
10048 | delete arg1; | |
10049 | } | |
10050 | return NULL; | |
10051 | } | |
10052 | ||
10053 | ||
c370783e | 10054 | static PyObject *_wrap_Image_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10055 | PyObject *resultobj; |
10056 | wxString *arg1 = 0 ; | |
10057 | long arg2 = (long) wxBITMAP_TYPE_ANY ; | |
10058 | int result; | |
b411df4a | 10059 | bool temp1 = false ; |
d55e5bfc RD |
10060 | PyObject * obj0 = 0 ; |
10061 | PyObject * obj1 = 0 ; | |
10062 | char *kwnames[] = { | |
10063 | (char *) "name",(char *) "type", NULL | |
10064 | }; | |
10065 | ||
10066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail; | |
10067 | { | |
10068 | arg1 = wxString_in_helper(obj0); | |
10069 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 10070 | temp1 = true; |
d55e5bfc RD |
10071 | } |
10072 | if (obj1) { | |
c370783e | 10073 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
10074 | if (PyErr_Occurred()) SWIG_fail; |
10075 | } | |
10076 | { | |
10077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10078 | result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2); | |
10079 | ||
10080 | wxPyEndAllowThreads(__tstate); | |
10081 | if (PyErr_Occurred()) SWIG_fail; | |
10082 | } | |
c370783e | 10083 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10084 | { |
10085 | if (temp1) | |
10086 | delete arg1; | |
10087 | } | |
10088 | return resultobj; | |
10089 | fail: | |
10090 | { | |
10091 | if (temp1) | |
10092 | delete arg1; | |
10093 | } | |
10094 | return NULL; | |
10095 | } | |
10096 | ||
10097 | ||
c370783e | 10098 | static PyObject *_wrap_Image_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10099 | PyObject *resultobj; |
10100 | wxImage *arg1 = (wxImage *) 0 ; | |
10101 | wxString *arg2 = 0 ; | |
10102 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
10103 | int arg4 = (int) -1 ; | |
10104 | bool result; | |
b411df4a | 10105 | bool temp2 = false ; |
d55e5bfc RD |
10106 | PyObject * obj0 = 0 ; |
10107 | PyObject * obj1 = 0 ; | |
10108 | PyObject * obj2 = 0 ; | |
10109 | PyObject * obj3 = 0 ; | |
10110 | char *kwnames[] = { | |
10111 | (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL | |
10112 | }; | |
10113 | ||
10114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10117 | { | |
10118 | arg2 = wxString_in_helper(obj1); | |
10119 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 10120 | temp2 = true; |
d55e5bfc RD |
10121 | } |
10122 | if (obj2) { | |
c370783e | 10123 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
10124 | if (PyErr_Occurred()) SWIG_fail; |
10125 | } | |
10126 | if (obj3) { | |
c370783e | 10127 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10128 | if (PyErr_Occurred()) SWIG_fail; |
10129 | } | |
10130 | { | |
10131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10132 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4); | |
10133 | ||
10134 | wxPyEndAllowThreads(__tstate); | |
10135 | if (PyErr_Occurred()) SWIG_fail; | |
10136 | } | |
10137 | { | |
10138 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10139 | } | |
10140 | { | |
10141 | if (temp2) | |
10142 | delete arg2; | |
10143 | } | |
10144 | return resultobj; | |
10145 | fail: | |
10146 | { | |
10147 | if (temp2) | |
10148 | delete arg2; | |
10149 | } | |
10150 | return NULL; | |
10151 | } | |
10152 | ||
10153 | ||
c370783e | 10154 | static PyObject *_wrap_Image_LoadMimeFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10155 | PyObject *resultobj; |
10156 | wxImage *arg1 = (wxImage *) 0 ; | |
10157 | wxString *arg2 = 0 ; | |
10158 | wxString *arg3 = 0 ; | |
10159 | int arg4 = (int) -1 ; | |
10160 | bool result; | |
b411df4a RD |
10161 | bool temp2 = false ; |
10162 | bool temp3 = false ; | |
d55e5bfc RD |
10163 | PyObject * obj0 = 0 ; |
10164 | PyObject * obj1 = 0 ; | |
10165 | PyObject * obj2 = 0 ; | |
10166 | PyObject * obj3 = 0 ; | |
10167 | char *kwnames[] = { | |
10168 | (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL | |
10169 | }; | |
10170 | ||
10171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10174 | { | |
10175 | arg2 = wxString_in_helper(obj1); | |
10176 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 10177 | temp2 = true; |
d55e5bfc RD |
10178 | } |
10179 | { | |
10180 | arg3 = wxString_in_helper(obj2); | |
10181 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 10182 | temp3 = true; |
d55e5bfc RD |
10183 | } |
10184 | if (obj3) { | |
c370783e | 10185 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10186 | if (PyErr_Occurred()) SWIG_fail; |
10187 | } | |
10188 | { | |
10189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10190 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4); | |
10191 | ||
10192 | wxPyEndAllowThreads(__tstate); | |
10193 | if (PyErr_Occurred()) SWIG_fail; | |
10194 | } | |
10195 | { | |
10196 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10197 | } | |
10198 | { | |
10199 | if (temp2) | |
10200 | delete arg2; | |
10201 | } | |
10202 | { | |
10203 | if (temp3) | |
10204 | delete arg3; | |
10205 | } | |
10206 | return resultobj; | |
10207 | fail: | |
10208 | { | |
10209 | if (temp2) | |
10210 | delete arg2; | |
10211 | } | |
10212 | { | |
10213 | if (temp3) | |
10214 | delete arg3; | |
10215 | } | |
10216 | return NULL; | |
10217 | } | |
10218 | ||
10219 | ||
c370783e | 10220 | static PyObject *_wrap_Image_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10221 | PyObject *resultobj; |
10222 | wxImage *arg1 = (wxImage *) 0 ; | |
10223 | wxString *arg2 = 0 ; | |
10224 | int arg3 ; | |
10225 | bool result; | |
b411df4a | 10226 | bool temp2 = false ; |
d55e5bfc RD |
10227 | PyObject * obj0 = 0 ; |
10228 | PyObject * obj1 = 0 ; | |
10229 | PyObject * obj2 = 0 ; | |
10230 | char *kwnames[] = { | |
10231 | (char *) "self",(char *) "name",(char *) "type", NULL | |
10232 | }; | |
10233 | ||
10234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10237 | { | |
10238 | arg2 = wxString_in_helper(obj1); | |
10239 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 10240 | temp2 = true; |
d55e5bfc | 10241 | } |
c370783e | 10242 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
10243 | if (PyErr_Occurred()) SWIG_fail; |
10244 | { | |
10245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10246 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3); | |
10247 | ||
10248 | wxPyEndAllowThreads(__tstate); | |
10249 | if (PyErr_Occurred()) SWIG_fail; | |
10250 | } | |
10251 | { | |
10252 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10253 | } | |
10254 | { | |
10255 | if (temp2) | |
10256 | delete arg2; | |
10257 | } | |
10258 | return resultobj; | |
10259 | fail: | |
10260 | { | |
10261 | if (temp2) | |
10262 | delete arg2; | |
10263 | } | |
10264 | return NULL; | |
10265 | } | |
10266 | ||
10267 | ||
c370783e | 10268 | static PyObject *_wrap_Image_SaveMimeFile(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10269 | PyObject *resultobj; |
10270 | wxImage *arg1 = (wxImage *) 0 ; | |
10271 | wxString *arg2 = 0 ; | |
10272 | wxString *arg3 = 0 ; | |
10273 | bool result; | |
b411df4a RD |
10274 | bool temp2 = false ; |
10275 | bool temp3 = false ; | |
d55e5bfc RD |
10276 | PyObject * obj0 = 0 ; |
10277 | PyObject * obj1 = 0 ; | |
10278 | PyObject * obj2 = 0 ; | |
10279 | char *kwnames[] = { | |
10280 | (char *) "self",(char *) "name",(char *) "mimetype", NULL | |
10281 | }; | |
10282 | ||
10283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10286 | { | |
10287 | arg2 = wxString_in_helper(obj1); | |
10288 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 10289 | temp2 = true; |
d55e5bfc RD |
10290 | } |
10291 | { | |
10292 | arg3 = wxString_in_helper(obj2); | |
10293 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 10294 | temp3 = true; |
d55e5bfc RD |
10295 | } |
10296 | { | |
10297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10298 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3); | |
10299 | ||
10300 | wxPyEndAllowThreads(__tstate); | |
10301 | if (PyErr_Occurred()) SWIG_fail; | |
10302 | } | |
10303 | { | |
10304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10305 | } | |
10306 | { | |
10307 | if (temp2) | |
10308 | delete arg2; | |
10309 | } | |
10310 | { | |
10311 | if (temp3) | |
10312 | delete arg3; | |
10313 | } | |
10314 | return resultobj; | |
10315 | fail: | |
10316 | { | |
10317 | if (temp2) | |
10318 | delete arg2; | |
10319 | } | |
10320 | { | |
10321 | if (temp3) | |
10322 | delete arg3; | |
10323 | } | |
10324 | return NULL; | |
10325 | } | |
10326 | ||
10327 | ||
c370783e | 10328 | static PyObject *_wrap_Image_CanReadStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10329 | PyObject *resultobj; |
10330 | wxInputStream *arg1 = 0 ; | |
10331 | bool result; | |
10332 | wxPyInputStream *temp1 ; | |
10333 | bool created1 ; | |
10334 | PyObject * obj0 = 0 ; | |
10335 | char *kwnames[] = { | |
10336 | (char *) "stream", NULL | |
10337 | }; | |
10338 | ||
10339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail; | |
10340 | { | |
10341 | if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) { | |
10342 | arg1 = temp1->m_wxis; | |
b411df4a | 10343 | created1 = false; |
d55e5bfc RD |
10344 | } else { |
10345 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
b411df4a | 10346 | arg1 = wxPyCBInputStream_create(obj0, false); |
d55e5bfc RD |
10347 | if (arg1 == NULL) { |
10348 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10349 | SWIG_fail; | |
10350 | } | |
b411df4a | 10351 | created1 = true; |
d55e5bfc RD |
10352 | } |
10353 | } | |
10354 | { | |
10355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10356 | result = (bool)wxImage::CanRead(*arg1); | |
10357 | ||
10358 | wxPyEndAllowThreads(__tstate); | |
10359 | if (PyErr_Occurred()) SWIG_fail; | |
10360 | } | |
10361 | { | |
10362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10363 | } | |
10364 | { | |
10365 | if (created1) | |
10366 | delete arg1; | |
10367 | } | |
10368 | return resultobj; | |
10369 | fail: | |
10370 | { | |
10371 | if (created1) | |
10372 | delete arg1; | |
10373 | } | |
10374 | return NULL; | |
10375 | } | |
10376 | ||
10377 | ||
c370783e | 10378 | static PyObject *_wrap_Image_LoadStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10379 | PyObject *resultobj; |
10380 | wxImage *arg1 = (wxImage *) 0 ; | |
10381 | wxInputStream *arg2 = 0 ; | |
10382 | long arg3 = (long) wxBITMAP_TYPE_ANY ; | |
10383 | int arg4 = (int) -1 ; | |
10384 | bool result; | |
10385 | wxPyInputStream *temp2 ; | |
10386 | bool created2 ; | |
10387 | PyObject * obj0 = 0 ; | |
10388 | PyObject * obj1 = 0 ; | |
10389 | PyObject * obj2 = 0 ; | |
10390 | PyObject * obj3 = 0 ; | |
10391 | char *kwnames[] = { | |
10392 | (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL | |
10393 | }; | |
10394 | ||
10395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10398 | { | |
10399 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
10400 | arg2 = temp2->m_wxis; | |
b411df4a | 10401 | created2 = false; |
d55e5bfc RD |
10402 | } else { |
10403 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
b411df4a | 10404 | arg2 = wxPyCBInputStream_create(obj1, false); |
d55e5bfc RD |
10405 | if (arg2 == NULL) { |
10406 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10407 | SWIG_fail; | |
10408 | } | |
b411df4a | 10409 | created2 = true; |
d55e5bfc RD |
10410 | } |
10411 | } | |
10412 | if (obj2) { | |
c370783e | 10413 | arg3 = (long)SWIG_As_long(obj2); |
d55e5bfc RD |
10414 | if (PyErr_Occurred()) SWIG_fail; |
10415 | } | |
10416 | if (obj3) { | |
c370783e | 10417 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10418 | if (PyErr_Occurred()) SWIG_fail; |
10419 | } | |
10420 | { | |
10421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10422 | result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4); | |
10423 | ||
10424 | wxPyEndAllowThreads(__tstate); | |
10425 | if (PyErr_Occurred()) SWIG_fail; | |
10426 | } | |
10427 | { | |
10428 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10429 | } | |
10430 | { | |
10431 | if (created2) | |
10432 | delete arg2; | |
10433 | } | |
10434 | return resultobj; | |
10435 | fail: | |
10436 | { | |
10437 | if (created2) | |
10438 | delete arg2; | |
10439 | } | |
10440 | return NULL; | |
10441 | } | |
10442 | ||
10443 | ||
c370783e | 10444 | static PyObject *_wrap_Image_LoadMimeStream(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10445 | PyObject *resultobj; |
10446 | wxImage *arg1 = (wxImage *) 0 ; | |
10447 | wxInputStream *arg2 = 0 ; | |
10448 | wxString *arg3 = 0 ; | |
10449 | int arg4 = (int) -1 ; | |
10450 | bool result; | |
10451 | wxPyInputStream *temp2 ; | |
10452 | bool created2 ; | |
b411df4a | 10453 | bool temp3 = false ; |
d55e5bfc RD |
10454 | PyObject * obj0 = 0 ; |
10455 | PyObject * obj1 = 0 ; | |
10456 | PyObject * obj2 = 0 ; | |
10457 | PyObject * obj3 = 0 ; | |
10458 | char *kwnames[] = { | |
10459 | (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL | |
10460 | }; | |
10461 | ||
10462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10465 | { | |
10466 | if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) { | |
10467 | arg2 = temp2->m_wxis; | |
b411df4a | 10468 | created2 = false; |
d55e5bfc RD |
10469 | } else { |
10470 | PyErr_Clear(); // clear the failure of the wxPyConvert above | |
b411df4a | 10471 | arg2 = wxPyCBInputStream_create(obj1, false); |
d55e5bfc RD |
10472 | if (arg2 == NULL) { |
10473 | PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object."); | |
10474 | SWIG_fail; | |
10475 | } | |
b411df4a | 10476 | created2 = true; |
d55e5bfc RD |
10477 | } |
10478 | } | |
10479 | { | |
10480 | arg3 = wxString_in_helper(obj2); | |
10481 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 10482 | temp3 = true; |
d55e5bfc RD |
10483 | } |
10484 | if (obj3) { | |
c370783e | 10485 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10486 | if (PyErr_Occurred()) SWIG_fail; |
10487 | } | |
10488 | { | |
10489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10490 | result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4); | |
10491 | ||
10492 | wxPyEndAllowThreads(__tstate); | |
10493 | if (PyErr_Occurred()) SWIG_fail; | |
10494 | } | |
10495 | { | |
10496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10497 | } | |
10498 | { | |
10499 | if (created2) | |
10500 | delete arg2; | |
10501 | } | |
10502 | { | |
10503 | if (temp3) | |
10504 | delete arg3; | |
10505 | } | |
10506 | return resultobj; | |
10507 | fail: | |
10508 | { | |
10509 | if (created2) | |
10510 | delete arg2; | |
10511 | } | |
10512 | { | |
10513 | if (temp3) | |
10514 | delete arg3; | |
10515 | } | |
10516 | return NULL; | |
10517 | } | |
10518 | ||
10519 | ||
c370783e | 10520 | static PyObject *_wrap_Image_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10521 | PyObject *resultobj; |
10522 | wxImage *arg1 = (wxImage *) 0 ; | |
10523 | bool result; | |
10524 | PyObject * obj0 = 0 ; | |
10525 | char *kwnames[] = { | |
10526 | (char *) "self", NULL | |
10527 | }; | |
10528 | ||
10529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail; | |
10530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10532 | { | |
10533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10534 | result = (bool)(arg1)->Ok(); | |
10535 | ||
10536 | wxPyEndAllowThreads(__tstate); | |
10537 | if (PyErr_Occurred()) SWIG_fail; | |
10538 | } | |
10539 | { | |
10540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10541 | } | |
10542 | return resultobj; | |
10543 | fail: | |
10544 | return NULL; | |
10545 | } | |
10546 | ||
10547 | ||
c370783e | 10548 | static PyObject *_wrap_Image_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10549 | PyObject *resultobj; |
10550 | wxImage *arg1 = (wxImage *) 0 ; | |
10551 | int result; | |
10552 | PyObject * obj0 = 0 ; | |
10553 | char *kwnames[] = { | |
10554 | (char *) "self", NULL | |
10555 | }; | |
10556 | ||
10557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail; | |
10558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10560 | { | |
10561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10562 | result = (int)(arg1)->GetWidth(); | |
10563 | ||
10564 | wxPyEndAllowThreads(__tstate); | |
10565 | if (PyErr_Occurred()) SWIG_fail; | |
10566 | } | |
c370783e | 10567 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10568 | return resultobj; |
10569 | fail: | |
10570 | return NULL; | |
10571 | } | |
10572 | ||
10573 | ||
c370783e | 10574 | static PyObject *_wrap_Image_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10575 | PyObject *resultobj; |
10576 | wxImage *arg1 = (wxImage *) 0 ; | |
10577 | int result; | |
10578 | PyObject * obj0 = 0 ; | |
10579 | char *kwnames[] = { | |
10580 | (char *) "self", NULL | |
10581 | }; | |
10582 | ||
10583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail; | |
10584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10586 | { | |
10587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10588 | result = (int)(arg1)->GetHeight(); | |
10589 | ||
10590 | wxPyEndAllowThreads(__tstate); | |
10591 | if (PyErr_Occurred()) SWIG_fail; | |
10592 | } | |
c370783e | 10593 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
10594 | return resultobj; |
10595 | fail: | |
10596 | return NULL; | |
10597 | } | |
10598 | ||
10599 | ||
c370783e | 10600 | static PyObject *_wrap_Image_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10601 | PyObject *resultobj; |
10602 | wxImage *arg1 = (wxImage *) 0 ; | |
10603 | wxSize result; | |
10604 | PyObject * obj0 = 0 ; | |
10605 | char *kwnames[] = { | |
10606 | (char *) "self", NULL | |
10607 | }; | |
10608 | ||
10609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail; | |
10610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10612 | { | |
10613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10614 | result = wxImage_GetSize(arg1); | |
10615 | ||
10616 | wxPyEndAllowThreads(__tstate); | |
10617 | if (PyErr_Occurred()) SWIG_fail; | |
10618 | } | |
10619 | { | |
10620 | wxSize * resultptr; | |
10621 | resultptr = new wxSize((wxSize &) result); | |
10622 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
10623 | } | |
10624 | return resultobj; | |
10625 | fail: | |
10626 | return NULL; | |
10627 | } | |
10628 | ||
10629 | ||
c370783e | 10630 | static PyObject *_wrap_Image_GetSubImage(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10631 | PyObject *resultobj; |
10632 | wxImage *arg1 = (wxImage *) 0 ; | |
10633 | wxRect *arg2 = 0 ; | |
10634 | SwigValueWrapper< wxImage > result; | |
10635 | wxRect temp2 ; | |
10636 | PyObject * obj0 = 0 ; | |
10637 | PyObject * obj1 = 0 ; | |
10638 | char *kwnames[] = { | |
10639 | (char *) "self",(char *) "rect", NULL | |
10640 | }; | |
10641 | ||
10642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail; | |
10643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10645 | { | |
10646 | arg2 = &temp2; | |
10647 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10648 | } | |
10649 | { | |
10650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10651 | result = (arg1)->GetSubImage((wxRect const &)*arg2); | |
10652 | ||
10653 | wxPyEndAllowThreads(__tstate); | |
10654 | if (PyErr_Occurred()) SWIG_fail; | |
10655 | } | |
10656 | { | |
10657 | wxImage * resultptr; | |
10658 | resultptr = new wxImage((wxImage &) result); | |
10659 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10660 | } | |
10661 | return resultobj; | |
10662 | fail: | |
10663 | return NULL; | |
10664 | } | |
10665 | ||
10666 | ||
c370783e | 10667 | static PyObject *_wrap_Image_Copy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10668 | PyObject *resultobj; |
10669 | wxImage *arg1 = (wxImage *) 0 ; | |
10670 | SwigValueWrapper< wxImage > result; | |
10671 | PyObject * obj0 = 0 ; | |
10672 | char *kwnames[] = { | |
10673 | (char *) "self", NULL | |
10674 | }; | |
10675 | ||
10676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail; | |
10677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10679 | { | |
10680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10681 | result = (arg1)->Copy(); | |
10682 | ||
10683 | wxPyEndAllowThreads(__tstate); | |
10684 | if (PyErr_Occurred()) SWIG_fail; | |
10685 | } | |
10686 | { | |
10687 | wxImage * resultptr; | |
10688 | resultptr = new wxImage((wxImage &) result); | |
10689 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
10690 | } | |
10691 | return resultobj; | |
10692 | fail: | |
10693 | return NULL; | |
10694 | } | |
10695 | ||
10696 | ||
c370783e | 10697 | static PyObject *_wrap_Image_Paste(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10698 | PyObject *resultobj; |
10699 | wxImage *arg1 = (wxImage *) 0 ; | |
10700 | wxImage *arg2 = 0 ; | |
10701 | int arg3 ; | |
10702 | int arg4 ; | |
10703 | PyObject * obj0 = 0 ; | |
10704 | PyObject * obj1 = 0 ; | |
10705 | PyObject * obj2 = 0 ; | |
10706 | PyObject * obj3 = 0 ; | |
10707 | char *kwnames[] = { | |
10708 | (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL | |
10709 | }; | |
10710 | ||
10711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10714 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
10715 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10716 | SWIG_fail; | |
10717 | if (arg2 == NULL) { | |
10718 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10719 | SWIG_fail; | |
10720 | } | |
c370783e | 10721 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 10722 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 10723 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
10724 | if (PyErr_Occurred()) SWIG_fail; |
10725 | { | |
10726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10727 | (arg1)->Paste((wxImage const &)*arg2,arg3,arg4); | |
10728 | ||
10729 | wxPyEndAllowThreads(__tstate); | |
10730 | if (PyErr_Occurred()) SWIG_fail; | |
10731 | } | |
10732 | Py_INCREF(Py_None); resultobj = Py_None; | |
10733 | return resultobj; | |
10734 | fail: | |
10735 | return NULL; | |
10736 | } | |
10737 | ||
10738 | ||
c370783e | 10739 | static PyObject *_wrap_Image_GetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10740 | PyObject *resultobj; |
10741 | wxImage *arg1 = (wxImage *) 0 ; | |
10742 | PyObject *result; | |
10743 | PyObject * obj0 = 0 ; | |
10744 | char *kwnames[] = { | |
10745 | (char *) "self", NULL | |
10746 | }; | |
10747 | ||
10748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail; | |
10749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10751 | { | |
10752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10753 | result = (PyObject *)wxImage_GetData(arg1); | |
10754 | ||
10755 | wxPyEndAllowThreads(__tstate); | |
10756 | if (PyErr_Occurred()) SWIG_fail; | |
10757 | } | |
10758 | resultobj = result; | |
10759 | return resultobj; | |
10760 | fail: | |
10761 | return NULL; | |
10762 | } | |
10763 | ||
10764 | ||
c370783e | 10765 | static PyObject *_wrap_Image_SetData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10766 | PyObject *resultobj; |
10767 | wxImage *arg1 = (wxImage *) 0 ; | |
10768 | PyObject *arg2 = (PyObject *) 0 ; | |
10769 | PyObject * obj0 = 0 ; | |
10770 | PyObject * obj1 = 0 ; | |
10771 | char *kwnames[] = { | |
10772 | (char *) "self",(char *) "data", NULL | |
10773 | }; | |
10774 | ||
10775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail; | |
10776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10778 | arg2 = obj1; | |
10779 | { | |
10780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10781 | wxImage_SetData(arg1,arg2); | |
10782 | ||
10783 | wxPyEndAllowThreads(__tstate); | |
10784 | if (PyErr_Occurred()) SWIG_fail; | |
10785 | } | |
10786 | Py_INCREF(Py_None); resultobj = Py_None; | |
10787 | return resultobj; | |
10788 | fail: | |
10789 | return NULL; | |
10790 | } | |
10791 | ||
10792 | ||
c370783e | 10793 | static PyObject *_wrap_Image_GetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10794 | PyObject *resultobj; |
10795 | wxImage *arg1 = (wxImage *) 0 ; | |
10796 | PyObject *result; | |
10797 | PyObject * obj0 = 0 ; | |
10798 | char *kwnames[] = { | |
10799 | (char *) "self", NULL | |
10800 | }; | |
10801 | ||
10802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail; | |
10803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10805 | { | |
10806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10807 | result = (PyObject *)wxImage_GetDataBuffer(arg1); | |
10808 | ||
10809 | wxPyEndAllowThreads(__tstate); | |
10810 | if (PyErr_Occurred()) SWIG_fail; | |
10811 | } | |
10812 | resultobj = result; | |
10813 | return resultobj; | |
10814 | fail: | |
10815 | return NULL; | |
10816 | } | |
10817 | ||
10818 | ||
c370783e | 10819 | static PyObject *_wrap_Image_SetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10820 | PyObject *resultobj; |
10821 | wxImage *arg1 = (wxImage *) 0 ; | |
10822 | PyObject *arg2 = (PyObject *) 0 ; | |
10823 | PyObject * obj0 = 0 ; | |
10824 | PyObject * obj1 = 0 ; | |
10825 | char *kwnames[] = { | |
10826 | (char *) "self",(char *) "data", NULL | |
10827 | }; | |
10828 | ||
10829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail; | |
10830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10832 | arg2 = obj1; | |
10833 | { | |
10834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10835 | wxImage_SetDataBuffer(arg1,arg2); | |
10836 | ||
10837 | wxPyEndAllowThreads(__tstate); | |
10838 | if (PyErr_Occurred()) SWIG_fail; | |
10839 | } | |
10840 | Py_INCREF(Py_None); resultobj = Py_None; | |
10841 | return resultobj; | |
10842 | fail: | |
10843 | return NULL; | |
10844 | } | |
10845 | ||
10846 | ||
c370783e | 10847 | static PyObject *_wrap_Image_GetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10848 | PyObject *resultobj; |
10849 | wxImage *arg1 = (wxImage *) 0 ; | |
10850 | PyObject *result; | |
10851 | PyObject * obj0 = 0 ; | |
10852 | char *kwnames[] = { | |
10853 | (char *) "self", NULL | |
10854 | }; | |
10855 | ||
10856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail; | |
10857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10859 | { | |
10860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10861 | result = (PyObject *)wxImage_GetAlphaData(arg1); | |
10862 | ||
10863 | wxPyEndAllowThreads(__tstate); | |
10864 | if (PyErr_Occurred()) SWIG_fail; | |
10865 | } | |
10866 | resultobj = result; | |
10867 | return resultobj; | |
10868 | fail: | |
10869 | return NULL; | |
10870 | } | |
10871 | ||
10872 | ||
c370783e | 10873 | static PyObject *_wrap_Image_SetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10874 | PyObject *resultobj; |
10875 | wxImage *arg1 = (wxImage *) 0 ; | |
10876 | PyObject *arg2 = (PyObject *) 0 ; | |
10877 | PyObject * obj0 = 0 ; | |
10878 | PyObject * obj1 = 0 ; | |
10879 | char *kwnames[] = { | |
10880 | (char *) "self",(char *) "data", NULL | |
10881 | }; | |
10882 | ||
10883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail; | |
10884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10886 | arg2 = obj1; | |
10887 | { | |
10888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10889 | wxImage_SetAlphaData(arg1,arg2); | |
10890 | ||
10891 | wxPyEndAllowThreads(__tstate); | |
10892 | if (PyErr_Occurred()) SWIG_fail; | |
10893 | } | |
10894 | Py_INCREF(Py_None); resultobj = Py_None; | |
10895 | return resultobj; | |
10896 | fail: | |
10897 | return NULL; | |
10898 | } | |
10899 | ||
10900 | ||
c370783e | 10901 | static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10902 | PyObject *resultobj; |
10903 | wxImage *arg1 = (wxImage *) 0 ; | |
10904 | PyObject *result; | |
10905 | PyObject * obj0 = 0 ; | |
10906 | char *kwnames[] = { | |
10907 | (char *) "self", NULL | |
10908 | }; | |
10909 | ||
10910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail; | |
10911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10913 | { | |
10914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10915 | result = (PyObject *)wxImage_GetAlphaBuffer(arg1); | |
10916 | ||
10917 | wxPyEndAllowThreads(__tstate); | |
10918 | if (PyErr_Occurred()) SWIG_fail; | |
10919 | } | |
10920 | resultobj = result; | |
10921 | return resultobj; | |
10922 | fail: | |
10923 | return NULL; | |
10924 | } | |
10925 | ||
10926 | ||
c370783e | 10927 | static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10928 | PyObject *resultobj; |
10929 | wxImage *arg1 = (wxImage *) 0 ; | |
10930 | PyObject *arg2 = (PyObject *) 0 ; | |
10931 | PyObject * obj0 = 0 ; | |
10932 | PyObject * obj1 = 0 ; | |
10933 | char *kwnames[] = { | |
10934 | (char *) "self",(char *) "data", NULL | |
10935 | }; | |
10936 | ||
10937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail; | |
10938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10940 | arg2 = obj1; | |
10941 | { | |
10942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10943 | wxImage_SetAlphaBuffer(arg1,arg2); | |
10944 | ||
10945 | wxPyEndAllowThreads(__tstate); | |
10946 | if (PyErr_Occurred()) SWIG_fail; | |
10947 | } | |
10948 | Py_INCREF(Py_None); resultobj = Py_None; | |
10949 | return resultobj; | |
10950 | fail: | |
10951 | return NULL; | |
10952 | } | |
10953 | ||
10954 | ||
c370783e | 10955 | static PyObject *_wrap_Image_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10956 | PyObject *resultobj; |
10957 | wxImage *arg1 = (wxImage *) 0 ; | |
10958 | unsigned char arg2 ; | |
10959 | unsigned char arg3 ; | |
10960 | unsigned char arg4 ; | |
10961 | PyObject * obj0 = 0 ; | |
10962 | PyObject * obj1 = 0 ; | |
10963 | PyObject * obj2 = 0 ; | |
10964 | PyObject * obj3 = 0 ; | |
10965 | char *kwnames[] = { | |
10966 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
10967 | }; | |
10968 | ||
10969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
10970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
10971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 10972 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 10973 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 10974 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 10975 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 10976 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
10977 | if (PyErr_Occurred()) SWIG_fail; |
10978 | { | |
10979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10980 | (arg1)->SetMaskColour(arg2,arg3,arg4); | |
10981 | ||
10982 | wxPyEndAllowThreads(__tstate); | |
10983 | if (PyErr_Occurred()) SWIG_fail; | |
10984 | } | |
10985 | Py_INCREF(Py_None); resultobj = Py_None; | |
10986 | return resultobj; | |
10987 | fail: | |
10988 | return NULL; | |
10989 | } | |
10990 | ||
10991 | ||
c370783e | 10992 | static PyObject *_wrap_Image_GetMaskRed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
10993 | PyObject *resultobj; |
10994 | wxImage *arg1 = (wxImage *) 0 ; | |
10995 | unsigned char result; | |
10996 | PyObject * obj0 = 0 ; | |
10997 | char *kwnames[] = { | |
10998 | (char *) "self", NULL | |
10999 | }; | |
11000 | ||
11001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail; | |
11002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11004 | { | |
11005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11006 | result = (unsigned char)(arg1)->GetMaskRed(); | |
11007 | ||
11008 | wxPyEndAllowThreads(__tstate); | |
11009 | if (PyErr_Occurred()) SWIG_fail; | |
11010 | } | |
c370783e | 11011 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
11012 | return resultobj; |
11013 | fail: | |
11014 | return NULL; | |
11015 | } | |
11016 | ||
11017 | ||
c370783e | 11018 | static PyObject *_wrap_Image_GetMaskGreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11019 | PyObject *resultobj; |
11020 | wxImage *arg1 = (wxImage *) 0 ; | |
11021 | unsigned char result; | |
11022 | PyObject * obj0 = 0 ; | |
11023 | char *kwnames[] = { | |
11024 | (char *) "self", NULL | |
11025 | }; | |
11026 | ||
11027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail; | |
11028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11030 | { | |
11031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11032 | result = (unsigned char)(arg1)->GetMaskGreen(); | |
11033 | ||
11034 | wxPyEndAllowThreads(__tstate); | |
11035 | if (PyErr_Occurred()) SWIG_fail; | |
11036 | } | |
c370783e | 11037 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
11038 | return resultobj; |
11039 | fail: | |
11040 | return NULL; | |
11041 | } | |
11042 | ||
11043 | ||
c370783e | 11044 | static PyObject *_wrap_Image_GetMaskBlue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11045 | PyObject *resultobj; |
11046 | wxImage *arg1 = (wxImage *) 0 ; | |
11047 | unsigned char result; | |
11048 | PyObject * obj0 = 0 ; | |
11049 | char *kwnames[] = { | |
11050 | (char *) "self", NULL | |
11051 | }; | |
11052 | ||
11053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail; | |
11054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11056 | { | |
11057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11058 | result = (unsigned char)(arg1)->GetMaskBlue(); | |
11059 | ||
11060 | wxPyEndAllowThreads(__tstate); | |
11061 | if (PyErr_Occurred()) SWIG_fail; | |
11062 | } | |
c370783e | 11063 | resultobj = SWIG_From_unsigned_SS_char((unsigned char)result); |
d55e5bfc RD |
11064 | return resultobj; |
11065 | fail: | |
11066 | return NULL; | |
11067 | } | |
11068 | ||
11069 | ||
c370783e | 11070 | static PyObject *_wrap_Image_SetMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11071 | PyObject *resultobj; |
11072 | wxImage *arg1 = (wxImage *) 0 ; | |
b411df4a | 11073 | bool arg2 = (bool) true ; |
d55e5bfc RD |
11074 | PyObject * obj0 = 0 ; |
11075 | PyObject * obj1 = 0 ; | |
11076 | char *kwnames[] = { | |
11077 | (char *) "self",(char *) "mask", NULL | |
11078 | }; | |
11079 | ||
11080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
11081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11083 | if (obj1) { | |
c370783e | 11084 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
11085 | if (PyErr_Occurred()) SWIG_fail; |
11086 | } | |
11087 | { | |
11088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11089 | (arg1)->SetMask(arg2); | |
11090 | ||
11091 | wxPyEndAllowThreads(__tstate); | |
11092 | if (PyErr_Occurred()) SWIG_fail; | |
11093 | } | |
11094 | Py_INCREF(Py_None); resultobj = Py_None; | |
11095 | return resultobj; | |
11096 | fail: | |
11097 | return NULL; | |
11098 | } | |
11099 | ||
11100 | ||
c370783e | 11101 | static PyObject *_wrap_Image_HasMask(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11102 | PyObject *resultobj; |
11103 | wxImage *arg1 = (wxImage *) 0 ; | |
11104 | bool result; | |
11105 | PyObject * obj0 = 0 ; | |
11106 | char *kwnames[] = { | |
11107 | (char *) "self", NULL | |
11108 | }; | |
11109 | ||
11110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail; | |
11111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11113 | { | |
11114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11115 | result = (bool)(arg1)->HasMask(); | |
11116 | ||
11117 | wxPyEndAllowThreads(__tstate); | |
11118 | if (PyErr_Occurred()) SWIG_fail; | |
11119 | } | |
11120 | { | |
11121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11122 | } | |
11123 | return resultobj; | |
11124 | fail: | |
11125 | return NULL; | |
11126 | } | |
11127 | ||
11128 | ||
c370783e | 11129 | static PyObject *_wrap_Image_Rotate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11130 | PyObject *resultobj; |
11131 | wxImage *arg1 = (wxImage *) 0 ; | |
11132 | double arg2 ; | |
11133 | wxPoint *arg3 = 0 ; | |
b411df4a | 11134 | bool arg4 = (bool) true ; |
d55e5bfc RD |
11135 | wxPoint *arg5 = (wxPoint *) NULL ; |
11136 | SwigValueWrapper< wxImage > result; | |
11137 | wxPoint temp3 ; | |
11138 | PyObject * obj0 = 0 ; | |
11139 | PyObject * obj1 = 0 ; | |
11140 | PyObject * obj2 = 0 ; | |
11141 | PyObject * obj3 = 0 ; | |
11142 | PyObject * obj4 = 0 ; | |
11143 | char *kwnames[] = { | |
11144 | (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL | |
11145 | }; | |
11146 | ||
11147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
11148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11150 | arg2 = (double)SWIG_As_double(obj1); |
d55e5bfc RD |
11151 | if (PyErr_Occurred()) SWIG_fail; |
11152 | { | |
11153 | arg3 = &temp3; | |
11154 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
11155 | } | |
11156 | if (obj3) { | |
c370783e | 11157 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
11158 | if (PyErr_Occurred()) SWIG_fail; |
11159 | } | |
11160 | if (obj4) { | |
11161 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint, | |
11162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11163 | } | |
11164 | { | |
11165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11166 | result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5); | |
11167 | ||
11168 | wxPyEndAllowThreads(__tstate); | |
11169 | if (PyErr_Occurred()) SWIG_fail; | |
11170 | } | |
11171 | { | |
11172 | wxImage * resultptr; | |
11173 | resultptr = new wxImage((wxImage &) result); | |
11174 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
11175 | } | |
11176 | return resultobj; | |
11177 | fail: | |
11178 | return NULL; | |
11179 | } | |
11180 | ||
11181 | ||
c370783e | 11182 | static PyObject *_wrap_Image_Rotate90(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11183 | PyObject *resultobj; |
11184 | wxImage *arg1 = (wxImage *) 0 ; | |
b411df4a | 11185 | bool arg2 = (bool) true ; |
d55e5bfc RD |
11186 | SwigValueWrapper< wxImage > result; |
11187 | PyObject * obj0 = 0 ; | |
11188 | PyObject * obj1 = 0 ; | |
11189 | char *kwnames[] = { | |
11190 | (char *) "self",(char *) "clockwise", NULL | |
11191 | }; | |
11192 | ||
11193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail; | |
11194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11196 | if (obj1) { | |
c370783e | 11197 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
11198 | if (PyErr_Occurred()) SWIG_fail; |
11199 | } | |
11200 | { | |
11201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11202 | result = (arg1)->Rotate90(arg2); | |
11203 | ||
11204 | wxPyEndAllowThreads(__tstate); | |
11205 | if (PyErr_Occurred()) SWIG_fail; | |
11206 | } | |
11207 | { | |
11208 | wxImage * resultptr; | |
11209 | resultptr = new wxImage((wxImage &) result); | |
11210 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
11211 | } | |
11212 | return resultobj; | |
11213 | fail: | |
11214 | return NULL; | |
11215 | } | |
11216 | ||
11217 | ||
c370783e | 11218 | static PyObject *_wrap_Image_Mirror(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11219 | PyObject *resultobj; |
11220 | wxImage *arg1 = (wxImage *) 0 ; | |
b411df4a | 11221 | bool arg2 = (bool) true ; |
d55e5bfc RD |
11222 | SwigValueWrapper< wxImage > result; |
11223 | PyObject * obj0 = 0 ; | |
11224 | PyObject * obj1 = 0 ; | |
11225 | char *kwnames[] = { | |
11226 | (char *) "self",(char *) "horizontally", NULL | |
11227 | }; | |
11228 | ||
11229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail; | |
11230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11232 | if (obj1) { | |
c370783e | 11233 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
11234 | if (PyErr_Occurred()) SWIG_fail; |
11235 | } | |
11236 | { | |
11237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11238 | result = (arg1)->Mirror(arg2); | |
11239 | ||
11240 | wxPyEndAllowThreads(__tstate); | |
11241 | if (PyErr_Occurred()) SWIG_fail; | |
11242 | } | |
11243 | { | |
11244 | wxImage * resultptr; | |
11245 | resultptr = new wxImage((wxImage &) result); | |
11246 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
11247 | } | |
11248 | return resultobj; | |
11249 | fail: | |
11250 | return NULL; | |
11251 | } | |
11252 | ||
11253 | ||
c370783e | 11254 | static PyObject *_wrap_Image_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11255 | PyObject *resultobj; |
11256 | wxImage *arg1 = (wxImage *) 0 ; | |
11257 | unsigned char arg2 ; | |
11258 | unsigned char arg3 ; | |
11259 | unsigned char arg4 ; | |
11260 | unsigned char arg5 ; | |
11261 | unsigned char arg6 ; | |
11262 | unsigned char arg7 ; | |
11263 | PyObject * obj0 = 0 ; | |
11264 | PyObject * obj1 = 0 ; | |
11265 | PyObject * obj2 = 0 ; | |
11266 | PyObject * obj3 = 0 ; | |
11267 | PyObject * obj4 = 0 ; | |
11268 | PyObject * obj5 = 0 ; | |
11269 | PyObject * obj6 = 0 ; | |
11270 | char *kwnames[] = { | |
11271 | (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL | |
11272 | }; | |
11273 | ||
11274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
11275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11277 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 11278 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11279 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 11280 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11281 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc | 11282 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11283 | arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj4); |
d55e5bfc | 11284 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11285 | arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj5); |
d55e5bfc | 11286 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11287 | arg7 = (unsigned char)SWIG_As_unsigned_SS_char(obj6); |
d55e5bfc RD |
11288 | if (PyErr_Occurred()) SWIG_fail; |
11289 | { | |
11290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11291 | (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7); | |
11292 | ||
11293 | wxPyEndAllowThreads(__tstate); | |
11294 | if (PyErr_Occurred()) SWIG_fail; | |
11295 | } | |
11296 | Py_INCREF(Py_None); resultobj = Py_None; | |
11297 | return resultobj; | |
11298 | fail: | |
11299 | return NULL; | |
11300 | } | |
11301 | ||
11302 | ||
c370783e | 11303 | static PyObject *_wrap_Image_ConvertToMono(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11304 | PyObject *resultobj; |
11305 | wxImage *arg1 = (wxImage *) 0 ; | |
11306 | unsigned char arg2 ; | |
11307 | unsigned char arg3 ; | |
11308 | unsigned char arg4 ; | |
11309 | SwigValueWrapper< wxImage > result; | |
11310 | PyObject * obj0 = 0 ; | |
11311 | PyObject * obj1 = 0 ; | |
11312 | PyObject * obj2 = 0 ; | |
11313 | PyObject * obj3 = 0 ; | |
11314 | char *kwnames[] = { | |
11315 | (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL | |
11316 | }; | |
11317 | ||
11318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11321 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 11322 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11323 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 11324 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11325 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
11326 | if (PyErr_Occurred()) SWIG_fail; |
11327 | { | |
11328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11329 | result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4); | |
11330 | ||
11331 | wxPyEndAllowThreads(__tstate); | |
11332 | if (PyErr_Occurred()) SWIG_fail; | |
11333 | } | |
11334 | { | |
11335 | wxImage * resultptr; | |
11336 | resultptr = new wxImage((wxImage &) result); | |
11337 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1); | |
11338 | } | |
11339 | return resultobj; | |
11340 | fail: | |
11341 | return NULL; | |
11342 | } | |
11343 | ||
11344 | ||
c370783e | 11345 | static PyObject *_wrap_Image_SetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11346 | PyObject *resultobj; |
11347 | wxImage *arg1 = (wxImage *) 0 ; | |
11348 | wxString *arg2 = 0 ; | |
11349 | wxString *arg3 = 0 ; | |
b411df4a RD |
11350 | bool temp2 = false ; |
11351 | bool temp3 = false ; | |
d55e5bfc RD |
11352 | PyObject * obj0 = 0 ; |
11353 | PyObject * obj1 = 0 ; | |
11354 | PyObject * obj2 = 0 ; | |
11355 | char *kwnames[] = { | |
11356 | (char *) "self",(char *) "name",(char *) "value", NULL | |
11357 | }; | |
11358 | ||
11359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11362 | { | |
11363 | arg2 = wxString_in_helper(obj1); | |
11364 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 11365 | temp2 = true; |
d55e5bfc RD |
11366 | } |
11367 | { | |
11368 | arg3 = wxString_in_helper(obj2); | |
11369 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 11370 | temp3 = true; |
d55e5bfc RD |
11371 | } |
11372 | { | |
11373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11374 | (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3); | |
11375 | ||
11376 | wxPyEndAllowThreads(__tstate); | |
11377 | if (PyErr_Occurred()) SWIG_fail; | |
11378 | } | |
11379 | Py_INCREF(Py_None); resultobj = Py_None; | |
11380 | { | |
11381 | if (temp2) | |
11382 | delete arg2; | |
11383 | } | |
11384 | { | |
11385 | if (temp3) | |
11386 | delete arg3; | |
11387 | } | |
11388 | return resultobj; | |
11389 | fail: | |
11390 | { | |
11391 | if (temp2) | |
11392 | delete arg2; | |
11393 | } | |
11394 | { | |
11395 | if (temp3) | |
11396 | delete arg3; | |
11397 | } | |
11398 | return NULL; | |
11399 | } | |
11400 | ||
11401 | ||
c370783e | 11402 | static PyObject *_wrap_Image_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11403 | PyObject *resultobj; |
11404 | wxImage *arg1 = (wxImage *) 0 ; | |
11405 | wxString *arg2 = 0 ; | |
11406 | int arg3 ; | |
b411df4a | 11407 | bool temp2 = false ; |
d55e5bfc RD |
11408 | PyObject * obj0 = 0 ; |
11409 | PyObject * obj1 = 0 ; | |
11410 | PyObject * obj2 = 0 ; | |
11411 | char *kwnames[] = { | |
11412 | (char *) "self",(char *) "name",(char *) "value", NULL | |
11413 | }; | |
11414 | ||
11415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11418 | { | |
11419 | arg2 = wxString_in_helper(obj1); | |
11420 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 11421 | temp2 = true; |
d55e5bfc | 11422 | } |
c370783e | 11423 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
11424 | if (PyErr_Occurred()) SWIG_fail; |
11425 | { | |
11426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11427 | (arg1)->SetOption((wxString const &)*arg2,arg3); | |
11428 | ||
11429 | wxPyEndAllowThreads(__tstate); | |
11430 | if (PyErr_Occurred()) SWIG_fail; | |
11431 | } | |
11432 | Py_INCREF(Py_None); resultobj = Py_None; | |
11433 | { | |
11434 | if (temp2) | |
11435 | delete arg2; | |
11436 | } | |
11437 | return resultobj; | |
11438 | fail: | |
11439 | { | |
11440 | if (temp2) | |
11441 | delete arg2; | |
11442 | } | |
11443 | return NULL; | |
11444 | } | |
11445 | ||
11446 | ||
c370783e | 11447 | static PyObject *_wrap_Image_GetOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11448 | PyObject *resultobj; |
11449 | wxImage *arg1 = (wxImage *) 0 ; | |
11450 | wxString *arg2 = 0 ; | |
11451 | wxString result; | |
b411df4a | 11452 | bool temp2 = false ; |
d55e5bfc RD |
11453 | PyObject * obj0 = 0 ; |
11454 | PyObject * obj1 = 0 ; | |
11455 | char *kwnames[] = { | |
11456 | (char *) "self",(char *) "name", NULL | |
11457 | }; | |
11458 | ||
11459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail; | |
11460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11462 | { | |
11463 | arg2 = wxString_in_helper(obj1); | |
11464 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 11465 | temp2 = true; |
d55e5bfc RD |
11466 | } |
11467 | { | |
11468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11469 | result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2); | |
11470 | ||
11471 | wxPyEndAllowThreads(__tstate); | |
11472 | if (PyErr_Occurred()) SWIG_fail; | |
11473 | } | |
11474 | { | |
11475 | #if wxUSE_UNICODE | |
11476 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11477 | #else | |
11478 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11479 | #endif | |
11480 | } | |
11481 | { | |
11482 | if (temp2) | |
11483 | delete arg2; | |
11484 | } | |
11485 | return resultobj; | |
11486 | fail: | |
11487 | { | |
11488 | if (temp2) | |
11489 | delete arg2; | |
11490 | } | |
11491 | return NULL; | |
11492 | } | |
11493 | ||
11494 | ||
c370783e | 11495 | static PyObject *_wrap_Image_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11496 | PyObject *resultobj; |
11497 | wxImage *arg1 = (wxImage *) 0 ; | |
11498 | wxString *arg2 = 0 ; | |
11499 | int result; | |
b411df4a | 11500 | bool temp2 = false ; |
d55e5bfc RD |
11501 | PyObject * obj0 = 0 ; |
11502 | PyObject * obj1 = 0 ; | |
11503 | char *kwnames[] = { | |
11504 | (char *) "self",(char *) "name", NULL | |
11505 | }; | |
11506 | ||
11507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail; | |
11508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11510 | { | |
11511 | arg2 = wxString_in_helper(obj1); | |
11512 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 11513 | temp2 = true; |
d55e5bfc RD |
11514 | } |
11515 | { | |
11516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11517 | result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2); | |
11518 | ||
11519 | wxPyEndAllowThreads(__tstate); | |
11520 | if (PyErr_Occurred()) SWIG_fail; | |
11521 | } | |
c370783e | 11522 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
11523 | { |
11524 | if (temp2) | |
11525 | delete arg2; | |
11526 | } | |
11527 | return resultobj; | |
11528 | fail: | |
11529 | { | |
11530 | if (temp2) | |
11531 | delete arg2; | |
11532 | } | |
11533 | return NULL; | |
11534 | } | |
11535 | ||
11536 | ||
c370783e | 11537 | static PyObject *_wrap_Image_HasOption(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11538 | PyObject *resultobj; |
11539 | wxImage *arg1 = (wxImage *) 0 ; | |
11540 | wxString *arg2 = 0 ; | |
11541 | bool result; | |
b411df4a | 11542 | bool temp2 = false ; |
d55e5bfc RD |
11543 | PyObject * obj0 = 0 ; |
11544 | PyObject * obj1 = 0 ; | |
11545 | char *kwnames[] = { | |
11546 | (char *) "self",(char *) "name", NULL | |
11547 | }; | |
11548 | ||
11549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail; | |
11550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11552 | { | |
11553 | arg2 = wxString_in_helper(obj1); | |
11554 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 11555 | temp2 = true; |
d55e5bfc RD |
11556 | } |
11557 | { | |
11558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11559 | result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2); | |
11560 | ||
11561 | wxPyEndAllowThreads(__tstate); | |
11562 | if (PyErr_Occurred()) SWIG_fail; | |
11563 | } | |
11564 | { | |
11565 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11566 | } | |
11567 | { | |
11568 | if (temp2) | |
11569 | delete arg2; | |
11570 | } | |
11571 | return resultobj; | |
11572 | fail: | |
11573 | { | |
11574 | if (temp2) | |
11575 | delete arg2; | |
11576 | } | |
11577 | return NULL; | |
11578 | } | |
11579 | ||
11580 | ||
c370783e | 11581 | static PyObject *_wrap_Image_CountColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11582 | PyObject *resultobj; |
11583 | wxImage *arg1 = (wxImage *) 0 ; | |
11584 | unsigned long arg2 = (unsigned long) (unsigned long) -1 ; | |
11585 | unsigned long result; | |
11586 | PyObject * obj0 = 0 ; | |
11587 | PyObject * obj1 = 0 ; | |
11588 | char *kwnames[] = { | |
11589 | (char *) "self",(char *) "stopafter", NULL | |
11590 | }; | |
11591 | ||
11592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail; | |
11593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11595 | if (obj1) { | |
c370783e | 11596 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
11597 | if (PyErr_Occurred()) SWIG_fail; |
11598 | } | |
11599 | { | |
11600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11601 | result = (unsigned long)(arg1)->CountColours(arg2); | |
11602 | ||
11603 | wxPyEndAllowThreads(__tstate); | |
11604 | if (PyErr_Occurred()) SWIG_fail; | |
11605 | } | |
c370783e | 11606 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
11607 | return resultobj; |
11608 | fail: | |
11609 | return NULL; | |
11610 | } | |
11611 | ||
11612 | ||
c370783e | 11613 | static PyObject *_wrap_Image_ComputeHistogram(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11614 | PyObject *resultobj; |
11615 | wxImage *arg1 = (wxImage *) 0 ; | |
11616 | wxImageHistogram *arg2 = 0 ; | |
11617 | unsigned long result; | |
11618 | PyObject * obj0 = 0 ; | |
11619 | PyObject * obj1 = 0 ; | |
11620 | char *kwnames[] = { | |
11621 | (char *) "self",(char *) "h", NULL | |
11622 | }; | |
11623 | ||
11624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail; | |
11625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11627 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram, | |
11628 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11629 | SWIG_fail; | |
11630 | if (arg2 == NULL) { | |
11631 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11632 | SWIG_fail; | |
11633 | } | |
11634 | { | |
11635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11636 | result = (unsigned long)(arg1)->ComputeHistogram(*arg2); | |
11637 | ||
11638 | wxPyEndAllowThreads(__tstate); | |
11639 | if (PyErr_Occurred()) SWIG_fail; | |
11640 | } | |
c370783e | 11641 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
11642 | return resultobj; |
11643 | fail: | |
11644 | return NULL; | |
11645 | } | |
11646 | ||
11647 | ||
c370783e | 11648 | static PyObject *_wrap_Image_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11649 | PyObject *resultobj; |
11650 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11651 | PyObject * obj0 = 0 ; | |
11652 | char *kwnames[] = { | |
11653 | (char *) "handler", NULL | |
11654 | }; | |
11655 | ||
11656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail; | |
11657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
11658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11659 | { | |
11660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11661 | wxImage::AddHandler(arg1); | |
11662 | ||
11663 | wxPyEndAllowThreads(__tstate); | |
11664 | if (PyErr_Occurred()) SWIG_fail; | |
11665 | } | |
11666 | Py_INCREF(Py_None); resultobj = Py_None; | |
11667 | return resultobj; | |
11668 | fail: | |
11669 | return NULL; | |
11670 | } | |
11671 | ||
11672 | ||
c370783e | 11673 | static PyObject *_wrap_Image_InsertHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11674 | PyObject *resultobj; |
11675 | wxImageHandler *arg1 = (wxImageHandler *) 0 ; | |
11676 | PyObject * obj0 = 0 ; | |
11677 | char *kwnames[] = { | |
11678 | (char *) "handler", NULL | |
11679 | }; | |
11680 | ||
11681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail; | |
11682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler, | |
11683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11684 | { | |
11685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11686 | wxImage::InsertHandler(arg1); | |
11687 | ||
11688 | wxPyEndAllowThreads(__tstate); | |
11689 | if (PyErr_Occurred()) SWIG_fail; | |
11690 | } | |
11691 | Py_INCREF(Py_None); resultobj = Py_None; | |
11692 | return resultobj; | |
11693 | fail: | |
11694 | return NULL; | |
11695 | } | |
11696 | ||
11697 | ||
c370783e | 11698 | static PyObject *_wrap_Image_RemoveHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11699 | PyObject *resultobj; |
11700 | wxString *arg1 = 0 ; | |
11701 | bool result; | |
b411df4a | 11702 | bool temp1 = false ; |
d55e5bfc RD |
11703 | PyObject * obj0 = 0 ; |
11704 | char *kwnames[] = { | |
11705 | (char *) "name", NULL | |
11706 | }; | |
11707 | ||
11708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail; | |
11709 | { | |
11710 | arg1 = wxString_in_helper(obj0); | |
11711 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 11712 | temp1 = true; |
d55e5bfc RD |
11713 | } |
11714 | { | |
11715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11716 | result = (bool)wxImage::RemoveHandler((wxString const &)*arg1); | |
11717 | ||
11718 | wxPyEndAllowThreads(__tstate); | |
11719 | if (PyErr_Occurred()) SWIG_fail; | |
11720 | } | |
11721 | { | |
11722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11723 | } | |
11724 | { | |
11725 | if (temp1) | |
11726 | delete arg1; | |
11727 | } | |
11728 | return resultobj; | |
11729 | fail: | |
11730 | { | |
11731 | if (temp1) | |
11732 | delete arg1; | |
11733 | } | |
11734 | return NULL; | |
11735 | } | |
11736 | ||
11737 | ||
c370783e | 11738 | static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11739 | PyObject *resultobj; |
11740 | wxString result; | |
11741 | char *kwnames[] = { | |
11742 | NULL | |
11743 | }; | |
11744 | ||
11745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail; | |
11746 | { | |
11747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11748 | result = wxImage::GetImageExtWildcard(); | |
11749 | ||
11750 | wxPyEndAllowThreads(__tstate); | |
11751 | if (PyErr_Occurred()) SWIG_fail; | |
11752 | } | |
11753 | { | |
11754 | #if wxUSE_UNICODE | |
11755 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11756 | #else | |
11757 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11758 | #endif | |
11759 | } | |
11760 | return resultobj; | |
11761 | fail: | |
11762 | return NULL; | |
11763 | } | |
11764 | ||
11765 | ||
c370783e | 11766 | static PyObject *_wrap_Image_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11767 | PyObject *resultobj; |
11768 | wxImage *arg1 = (wxImage *) 0 ; | |
44bf767a | 11769 | int arg2 = (int) -1 ; |
d55e5bfc RD |
11770 | wxBitmap result; |
11771 | PyObject * obj0 = 0 ; | |
44bf767a | 11772 | PyObject * obj1 = 0 ; |
d55e5bfc | 11773 | char *kwnames[] = { |
44bf767a | 11774 | (char *) "self",(char *) "depth", NULL |
d55e5bfc RD |
11775 | }; |
11776 | ||
44bf767a | 11777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertToBitmap",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
11778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, |
11779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
44bf767a RD |
11780 | if (obj1) { |
11781 | arg2 = (int)SWIG_As_int(obj1); | |
11782 | if (PyErr_Occurred()) SWIG_fail; | |
11783 | } | |
d55e5bfc | 11784 | { |
0439c23b | 11785 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 11786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
44bf767a | 11787 | result = wxImage_ConvertToBitmap(arg1,arg2); |
d55e5bfc RD |
11788 | |
11789 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11790 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11791 | } |
11792 | { | |
11793 | wxBitmap * resultptr; | |
11794 | resultptr = new wxBitmap((wxBitmap &) result); | |
11795 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
11796 | } | |
11797 | return resultobj; | |
11798 | fail: | |
11799 | return NULL; | |
11800 | } | |
11801 | ||
11802 | ||
c370783e | 11803 | static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11804 | PyObject *resultobj; |
11805 | wxImage *arg1 = (wxImage *) 0 ; | |
11806 | unsigned char arg2 ; | |
11807 | unsigned char arg3 ; | |
11808 | unsigned char arg4 ; | |
11809 | wxBitmap result; | |
11810 | PyObject * obj0 = 0 ; | |
11811 | PyObject * obj1 = 0 ; | |
11812 | PyObject * obj2 = 0 ; | |
11813 | PyObject * obj3 = 0 ; | |
11814 | char *kwnames[] = { | |
11815 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
11816 | }; | |
11817 | ||
11818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
11820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 11821 | arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1); |
d55e5bfc | 11822 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11823 | arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2); |
d55e5bfc | 11824 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 11825 | arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3); |
d55e5bfc RD |
11826 | if (PyErr_Occurred()) SWIG_fail; |
11827 | { | |
0439c23b | 11828 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11830 | result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4); | |
11831 | ||
11832 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11833 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11834 | } |
11835 | { | |
11836 | wxBitmap * resultptr; | |
11837 | resultptr = new wxBitmap((wxBitmap &) result); | |
11838 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
11839 | } | |
11840 | return resultobj; | |
11841 | fail: | |
11842 | return NULL; | |
11843 | } | |
11844 | ||
11845 | ||
c370783e | 11846 | static PyObject * Image_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11847 | PyObject *obj; |
11848 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11849 | SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj); | |
11850 | Py_INCREF(obj); | |
11851 | return Py_BuildValue((char *)""); | |
11852 | } | |
c370783e | 11853 | static int _wrap_NullImage_set(PyObject *) { |
d55e5bfc RD |
11854 | PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only."); |
11855 | return 1; | |
11856 | } | |
11857 | ||
11858 | ||
11859 | static PyObject *_wrap_NullImage_get() { | |
11860 | PyObject *pyobj; | |
11861 | ||
11862 | pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0); | |
11863 | return pyobj; | |
11864 | } | |
11865 | ||
11866 | ||
c370783e | 11867 | static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *) { |
d55e5bfc RD |
11868 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only."); |
11869 | return 1; | |
11870 | } | |
11871 | ||
11872 | ||
11873 | static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() { | |
11874 | PyObject *pyobj; | |
11875 | ||
11876 | { | |
11877 | #if wxUSE_UNICODE | |
11878 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11879 | #else | |
11880 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len()); | |
11881 | #endif | |
11882 | } | |
11883 | return pyobj; | |
11884 | } | |
11885 | ||
11886 | ||
c370783e | 11887 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *) { |
d55e5bfc RD |
11888 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only."); |
11889 | return 1; | |
11890 | } | |
11891 | ||
11892 | ||
11893 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() { | |
11894 | PyObject *pyobj; | |
11895 | ||
11896 | { | |
11897 | #if wxUSE_UNICODE | |
11898 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11899 | #else | |
11900 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len()); | |
11901 | #endif | |
11902 | } | |
11903 | return pyobj; | |
11904 | } | |
11905 | ||
11906 | ||
c370783e | 11907 | static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *) { |
d55e5bfc RD |
11908 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only."); |
11909 | return 1; | |
11910 | } | |
11911 | ||
11912 | ||
11913 | static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() { | |
11914 | PyObject *pyobj; | |
11915 | ||
11916 | { | |
11917 | #if wxUSE_UNICODE | |
11918 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11919 | #else | |
11920 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len()); | |
11921 | #endif | |
11922 | } | |
11923 | return pyobj; | |
11924 | } | |
11925 | ||
11926 | ||
c370783e | 11927 | static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *) { |
d55e5bfc RD |
11928 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only."); |
11929 | return 1; | |
11930 | } | |
11931 | ||
11932 | ||
11933 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() { | |
11934 | PyObject *pyobj; | |
11935 | ||
11936 | { | |
11937 | #if wxUSE_UNICODE | |
11938 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11939 | #else | |
11940 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len()); | |
11941 | #endif | |
11942 | } | |
11943 | return pyobj; | |
11944 | } | |
11945 | ||
11946 | ||
c370783e | 11947 | static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *) { |
d55e5bfc RD |
11948 | PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only."); |
11949 | return 1; | |
11950 | } | |
11951 | ||
11952 | ||
11953 | static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() { | |
11954 | PyObject *pyobj; | |
11955 | ||
11956 | { | |
11957 | #if wxUSE_UNICODE | |
11958 | pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11959 | #else | |
11960 | pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len()); | |
11961 | #endif | |
11962 | } | |
11963 | return pyobj; | |
11964 | } | |
11965 | ||
11966 | ||
c370783e | 11967 | static PyObject *_wrap_new_BMPHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11968 | PyObject *resultobj; |
11969 | wxBMPHandler *result; | |
11970 | char *kwnames[] = { | |
11971 | NULL | |
11972 | }; | |
11973 | ||
11974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail; | |
11975 | { | |
11976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11977 | result = (wxBMPHandler *)new wxBMPHandler(); | |
11978 | ||
11979 | wxPyEndAllowThreads(__tstate); | |
11980 | if (PyErr_Occurred()) SWIG_fail; | |
11981 | } | |
11982 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1); | |
11983 | return resultobj; | |
11984 | fail: | |
11985 | return NULL; | |
11986 | } | |
11987 | ||
11988 | ||
c370783e | 11989 | static PyObject * BMPHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
11990 | PyObject *obj; |
11991 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11992 | SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj); | |
11993 | Py_INCREF(obj); | |
11994 | return Py_BuildValue((char *)""); | |
11995 | } | |
c370783e | 11996 | static PyObject *_wrap_new_ICOHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
11997 | PyObject *resultobj; |
11998 | wxICOHandler *result; | |
11999 | char *kwnames[] = { | |
12000 | NULL | |
12001 | }; | |
12002 | ||
12003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail; | |
12004 | { | |
12005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12006 | result = (wxICOHandler *)new wxICOHandler(); | |
12007 | ||
12008 | wxPyEndAllowThreads(__tstate); | |
12009 | if (PyErr_Occurred()) SWIG_fail; | |
12010 | } | |
12011 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1); | |
12012 | return resultobj; | |
12013 | fail: | |
12014 | return NULL; | |
12015 | } | |
12016 | ||
12017 | ||
c370783e | 12018 | static PyObject * ICOHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12019 | PyObject *obj; |
12020 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12021 | SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj); | |
12022 | Py_INCREF(obj); | |
12023 | return Py_BuildValue((char *)""); | |
12024 | } | |
c370783e | 12025 | static PyObject *_wrap_new_CURHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12026 | PyObject *resultobj; |
12027 | wxCURHandler *result; | |
12028 | char *kwnames[] = { | |
12029 | NULL | |
12030 | }; | |
12031 | ||
12032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail; | |
12033 | { | |
12034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12035 | result = (wxCURHandler *)new wxCURHandler(); | |
12036 | ||
12037 | wxPyEndAllowThreads(__tstate); | |
12038 | if (PyErr_Occurred()) SWIG_fail; | |
12039 | } | |
12040 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1); | |
12041 | return resultobj; | |
12042 | fail: | |
12043 | return NULL; | |
12044 | } | |
12045 | ||
12046 | ||
c370783e | 12047 | static PyObject * CURHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12048 | PyObject *obj; |
12049 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12050 | SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj); | |
12051 | Py_INCREF(obj); | |
12052 | return Py_BuildValue((char *)""); | |
12053 | } | |
c370783e | 12054 | static PyObject *_wrap_new_ANIHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12055 | PyObject *resultobj; |
12056 | wxANIHandler *result; | |
12057 | char *kwnames[] = { | |
12058 | NULL | |
12059 | }; | |
12060 | ||
12061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail; | |
12062 | { | |
12063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12064 | result = (wxANIHandler *)new wxANIHandler(); | |
12065 | ||
12066 | wxPyEndAllowThreads(__tstate); | |
12067 | if (PyErr_Occurred()) SWIG_fail; | |
12068 | } | |
12069 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1); | |
12070 | return resultobj; | |
12071 | fail: | |
12072 | return NULL; | |
12073 | } | |
12074 | ||
12075 | ||
c370783e | 12076 | static PyObject * ANIHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12077 | PyObject *obj; |
12078 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12079 | SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj); | |
12080 | Py_INCREF(obj); | |
12081 | return Py_BuildValue((char *)""); | |
12082 | } | |
c370783e | 12083 | static PyObject *_wrap_new_PNGHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12084 | PyObject *resultobj; |
12085 | wxPNGHandler *result; | |
12086 | char *kwnames[] = { | |
12087 | NULL | |
12088 | }; | |
12089 | ||
12090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail; | |
12091 | { | |
12092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12093 | result = (wxPNGHandler *)new wxPNGHandler(); | |
12094 | ||
12095 | wxPyEndAllowThreads(__tstate); | |
12096 | if (PyErr_Occurred()) SWIG_fail; | |
12097 | } | |
12098 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1); | |
12099 | return resultobj; | |
12100 | fail: | |
12101 | return NULL; | |
12102 | } | |
12103 | ||
12104 | ||
c370783e | 12105 | static PyObject * PNGHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12106 | PyObject *obj; |
12107 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12108 | SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj); | |
12109 | Py_INCREF(obj); | |
12110 | return Py_BuildValue((char *)""); | |
12111 | } | |
c370783e | 12112 | static PyObject *_wrap_new_GIFHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12113 | PyObject *resultobj; |
12114 | wxGIFHandler *result; | |
12115 | char *kwnames[] = { | |
12116 | NULL | |
12117 | }; | |
12118 | ||
12119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail; | |
12120 | { | |
12121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12122 | result = (wxGIFHandler *)new wxGIFHandler(); | |
12123 | ||
12124 | wxPyEndAllowThreads(__tstate); | |
12125 | if (PyErr_Occurred()) SWIG_fail; | |
12126 | } | |
12127 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1); | |
12128 | return resultobj; | |
12129 | fail: | |
12130 | return NULL; | |
12131 | } | |
12132 | ||
12133 | ||
c370783e | 12134 | static PyObject * GIFHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12135 | PyObject *obj; |
12136 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12137 | SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj); | |
12138 | Py_INCREF(obj); | |
12139 | return Py_BuildValue((char *)""); | |
12140 | } | |
c370783e | 12141 | static PyObject *_wrap_new_PCXHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12142 | PyObject *resultobj; |
12143 | wxPCXHandler *result; | |
12144 | char *kwnames[] = { | |
12145 | NULL | |
12146 | }; | |
12147 | ||
12148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail; | |
12149 | { | |
12150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12151 | result = (wxPCXHandler *)new wxPCXHandler(); | |
12152 | ||
12153 | wxPyEndAllowThreads(__tstate); | |
12154 | if (PyErr_Occurred()) SWIG_fail; | |
12155 | } | |
12156 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1); | |
12157 | return resultobj; | |
12158 | fail: | |
12159 | return NULL; | |
12160 | } | |
12161 | ||
12162 | ||
c370783e | 12163 | static PyObject * PCXHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12164 | PyObject *obj; |
12165 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12166 | SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj); | |
12167 | Py_INCREF(obj); | |
12168 | return Py_BuildValue((char *)""); | |
12169 | } | |
c370783e | 12170 | static PyObject *_wrap_new_JPEGHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12171 | PyObject *resultobj; |
12172 | wxJPEGHandler *result; | |
12173 | char *kwnames[] = { | |
12174 | NULL | |
12175 | }; | |
12176 | ||
12177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail; | |
12178 | { | |
12179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12180 | result = (wxJPEGHandler *)new wxJPEGHandler(); | |
12181 | ||
12182 | wxPyEndAllowThreads(__tstate); | |
12183 | if (PyErr_Occurred()) SWIG_fail; | |
12184 | } | |
12185 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1); | |
12186 | return resultobj; | |
12187 | fail: | |
12188 | return NULL; | |
12189 | } | |
12190 | ||
12191 | ||
c370783e | 12192 | static PyObject * JPEGHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12193 | PyObject *obj; |
12194 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12195 | SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj); | |
12196 | Py_INCREF(obj); | |
12197 | return Py_BuildValue((char *)""); | |
12198 | } | |
c370783e | 12199 | static PyObject *_wrap_new_PNMHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12200 | PyObject *resultobj; |
12201 | wxPNMHandler *result; | |
12202 | char *kwnames[] = { | |
12203 | NULL | |
12204 | }; | |
12205 | ||
12206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail; | |
12207 | { | |
12208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12209 | result = (wxPNMHandler *)new wxPNMHandler(); | |
12210 | ||
12211 | wxPyEndAllowThreads(__tstate); | |
12212 | if (PyErr_Occurred()) SWIG_fail; | |
12213 | } | |
12214 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1); | |
12215 | return resultobj; | |
12216 | fail: | |
12217 | return NULL; | |
12218 | } | |
12219 | ||
12220 | ||
c370783e | 12221 | static PyObject * PNMHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12222 | PyObject *obj; |
12223 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12224 | SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj); | |
12225 | Py_INCREF(obj); | |
12226 | return Py_BuildValue((char *)""); | |
12227 | } | |
c370783e | 12228 | static PyObject *_wrap_new_XPMHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12229 | PyObject *resultobj; |
12230 | wxXPMHandler *result; | |
12231 | char *kwnames[] = { | |
12232 | NULL | |
12233 | }; | |
12234 | ||
12235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail; | |
12236 | { | |
12237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12238 | result = (wxXPMHandler *)new wxXPMHandler(); | |
12239 | ||
12240 | wxPyEndAllowThreads(__tstate); | |
12241 | if (PyErr_Occurred()) SWIG_fail; | |
12242 | } | |
12243 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1); | |
12244 | return resultobj; | |
12245 | fail: | |
12246 | return NULL; | |
12247 | } | |
12248 | ||
12249 | ||
c370783e | 12250 | static PyObject * XPMHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12251 | PyObject *obj; |
12252 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12253 | SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj); | |
12254 | Py_INCREF(obj); | |
12255 | return Py_BuildValue((char *)""); | |
12256 | } | |
c370783e | 12257 | static PyObject *_wrap_new_TIFFHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12258 | PyObject *resultobj; |
12259 | wxTIFFHandler *result; | |
12260 | char *kwnames[] = { | |
12261 | NULL | |
12262 | }; | |
12263 | ||
12264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail; | |
12265 | { | |
12266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12267 | result = (wxTIFFHandler *)new wxTIFFHandler(); | |
12268 | ||
12269 | wxPyEndAllowThreads(__tstate); | |
12270 | if (PyErr_Occurred()) SWIG_fail; | |
12271 | } | |
12272 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1); | |
12273 | return resultobj; | |
12274 | fail: | |
12275 | return NULL; | |
12276 | } | |
12277 | ||
12278 | ||
c370783e | 12279 | static PyObject * TIFFHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12280 | PyObject *obj; |
12281 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12282 | SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj); | |
12283 | Py_INCREF(obj); | |
12284 | return Py_BuildValue((char *)""); | |
12285 | } | |
c370783e | 12286 | static PyObject *_wrap_Quantize_Quantize(PyObject *, PyObject *args, PyObject *kwargs) { |
c0de73ae RD |
12287 | PyObject *resultobj; |
12288 | wxImage *arg1 = 0 ; | |
12289 | wxImage *arg2 = 0 ; | |
12290 | int arg3 = (int) 236 ; | |
12291 | int arg4 = (int) wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE ; | |
12292 | bool result; | |
12293 | PyObject * obj0 = 0 ; | |
12294 | PyObject * obj1 = 0 ; | |
12295 | PyObject * obj2 = 0 ; | |
12296 | PyObject * obj3 = 0 ; | |
12297 | char *kwnames[] = { | |
12298 | (char *) "src",(char *) "dest",(char *) "desiredNoColours",(char *) "flags", NULL | |
12299 | }; | |
12300 | ||
12301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Quantize_Quantize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage, | |
12303 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12304 | SWIG_fail; | |
12305 | if (arg1 == NULL) { | |
12306 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12307 | SWIG_fail; | |
12308 | } | |
12309 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage, | |
12310 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12311 | SWIG_fail; | |
12312 | if (arg2 == NULL) { | |
12313 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12314 | SWIG_fail; | |
12315 | } | |
12316 | if (obj2) { | |
c370783e | 12317 | arg3 = (int)SWIG_As_int(obj2); |
c0de73ae RD |
12318 | if (PyErr_Occurred()) SWIG_fail; |
12319 | } | |
12320 | if (obj3) { | |
c370783e | 12321 | arg4 = (int)SWIG_As_int(obj3); |
c0de73ae RD |
12322 | if (PyErr_Occurred()) SWIG_fail; |
12323 | } | |
12324 | { | |
12325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12326 | result = (bool)Quantize_Quantize((wxImage const &)*arg1,*arg2,arg3,arg4); | |
12327 | ||
12328 | wxPyEndAllowThreads(__tstate); | |
12329 | if (PyErr_Occurred()) SWIG_fail; | |
12330 | } | |
12331 | { | |
12332 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12333 | } | |
12334 | return resultobj; | |
12335 | fail: | |
12336 | return NULL; | |
12337 | } | |
12338 | ||
12339 | ||
c370783e | 12340 | static PyObject * Quantize_swigregister(PyObject *, PyObject *args) { |
c0de73ae RD |
12341 | PyObject *obj; |
12342 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12343 | SWIG_TypeClientData(SWIGTYPE_p_wxQuantize, obj); | |
12344 | Py_INCREF(obj); | |
12345 | return Py_BuildValue((char *)""); | |
12346 | } | |
c370783e | 12347 | static PyObject *_wrap_new_EvtHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12348 | PyObject *resultobj; |
12349 | wxEvtHandler *result; | |
12350 | char *kwnames[] = { | |
12351 | NULL | |
12352 | }; | |
12353 | ||
12354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail; | |
12355 | { | |
12356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12357 | result = (wxEvtHandler *)new wxEvtHandler(); | |
12358 | ||
12359 | wxPyEndAllowThreads(__tstate); | |
12360 | if (PyErr_Occurred()) SWIG_fail; | |
12361 | } | |
b0f7404b | 12362 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvtHandler, 1); |
d55e5bfc RD |
12363 | return resultobj; |
12364 | fail: | |
12365 | return NULL; | |
12366 | } | |
12367 | ||
12368 | ||
c370783e | 12369 | static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12370 | PyObject *resultobj; |
12371 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12372 | wxEvtHandler *result; | |
12373 | PyObject * obj0 = 0 ; | |
12374 | char *kwnames[] = { | |
12375 | (char *) "self", NULL | |
12376 | }; | |
12377 | ||
12378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail; | |
12379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12381 | { | |
12382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12383 | result = (wxEvtHandler *)(arg1)->GetNextHandler(); | |
12384 | ||
12385 | wxPyEndAllowThreads(__tstate); | |
12386 | if (PyErr_Occurred()) SWIG_fail; | |
12387 | } | |
12388 | { | |
412d302d | 12389 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
12390 | } |
12391 | return resultobj; | |
12392 | fail: | |
12393 | return NULL; | |
12394 | } | |
12395 | ||
12396 | ||
c370783e | 12397 | static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12398 | PyObject *resultobj; |
12399 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12400 | wxEvtHandler *result; | |
12401 | PyObject * obj0 = 0 ; | |
12402 | char *kwnames[] = { | |
12403 | (char *) "self", NULL | |
12404 | }; | |
12405 | ||
12406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail; | |
12407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12409 | { | |
12410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12411 | result = (wxEvtHandler *)(arg1)->GetPreviousHandler(); | |
12412 | ||
12413 | wxPyEndAllowThreads(__tstate); | |
12414 | if (PyErr_Occurred()) SWIG_fail; | |
12415 | } | |
12416 | { | |
412d302d | 12417 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
12418 | } |
12419 | return resultobj; | |
12420 | fail: | |
12421 | return NULL; | |
12422 | } | |
12423 | ||
12424 | ||
c370783e | 12425 | static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12426 | PyObject *resultobj; |
12427 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12428 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
12429 | PyObject * obj0 = 0 ; | |
12430 | PyObject * obj1 = 0 ; | |
12431 | char *kwnames[] = { | |
12432 | (char *) "self",(char *) "handler", NULL | |
12433 | }; | |
12434 | ||
12435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail; | |
12436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12438 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
12439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12440 | { | |
12441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12442 | (arg1)->SetNextHandler(arg2); | |
12443 | ||
12444 | wxPyEndAllowThreads(__tstate); | |
12445 | if (PyErr_Occurred()) SWIG_fail; | |
12446 | } | |
12447 | Py_INCREF(Py_None); resultobj = Py_None; | |
12448 | return resultobj; | |
12449 | fail: | |
12450 | return NULL; | |
12451 | } | |
12452 | ||
12453 | ||
c370783e | 12454 | static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12455 | PyObject *resultobj; |
12456 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12457 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
12458 | PyObject * obj0 = 0 ; | |
12459 | PyObject * obj1 = 0 ; | |
12460 | char *kwnames[] = { | |
12461 | (char *) "self",(char *) "handler", NULL | |
12462 | }; | |
12463 | ||
12464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail; | |
12465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12467 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
12468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12469 | { | |
12470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12471 | (arg1)->SetPreviousHandler(arg2); | |
12472 | ||
12473 | wxPyEndAllowThreads(__tstate); | |
12474 | if (PyErr_Occurred()) SWIG_fail; | |
12475 | } | |
12476 | Py_INCREF(Py_None); resultobj = Py_None; | |
12477 | return resultobj; | |
12478 | fail: | |
12479 | return NULL; | |
12480 | } | |
12481 | ||
12482 | ||
c370783e | 12483 | static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12484 | PyObject *resultobj; |
12485 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12486 | bool result; | |
12487 | PyObject * obj0 = 0 ; | |
12488 | char *kwnames[] = { | |
12489 | (char *) "self", NULL | |
12490 | }; | |
12491 | ||
12492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail; | |
12493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12495 | { | |
12496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12497 | result = (bool)(arg1)->GetEvtHandlerEnabled(); | |
12498 | ||
12499 | wxPyEndAllowThreads(__tstate); | |
12500 | if (PyErr_Occurred()) SWIG_fail; | |
12501 | } | |
12502 | { | |
12503 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12504 | } | |
12505 | return resultobj; | |
12506 | fail: | |
12507 | return NULL; | |
12508 | } | |
12509 | ||
12510 | ||
c370783e | 12511 | static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12512 | PyObject *resultobj; |
12513 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12514 | bool arg2 ; | |
12515 | PyObject * obj0 = 0 ; | |
12516 | PyObject * obj1 = 0 ; | |
12517 | char *kwnames[] = { | |
12518 | (char *) "self",(char *) "enabled", NULL | |
12519 | }; | |
12520 | ||
12521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail; | |
12522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12524 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
12525 | if (PyErr_Occurred()) SWIG_fail; |
12526 | { | |
12527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12528 | (arg1)->SetEvtHandlerEnabled(arg2); | |
12529 | ||
12530 | wxPyEndAllowThreads(__tstate); | |
12531 | if (PyErr_Occurred()) SWIG_fail; | |
12532 | } | |
12533 | Py_INCREF(Py_None); resultobj = Py_None; | |
12534 | return resultobj; | |
12535 | fail: | |
12536 | return NULL; | |
12537 | } | |
12538 | ||
12539 | ||
c370783e | 12540 | static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12541 | PyObject *resultobj; |
12542 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12543 | wxEvent *arg2 = 0 ; | |
12544 | bool result; | |
12545 | PyObject * obj0 = 0 ; | |
12546 | PyObject * obj1 = 0 ; | |
12547 | char *kwnames[] = { | |
12548 | (char *) "self",(char *) "event", NULL | |
12549 | }; | |
12550 | ||
12551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail; | |
12552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12554 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
12555 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12556 | SWIG_fail; | |
12557 | if (arg2 == NULL) { | |
12558 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12559 | SWIG_fail; | |
12560 | } | |
12561 | { | |
12562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12563 | result = (bool)(arg1)->ProcessEvent(*arg2); | |
12564 | ||
12565 | wxPyEndAllowThreads(__tstate); | |
12566 | if (PyErr_Occurred()) SWIG_fail; | |
12567 | } | |
12568 | { | |
12569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12570 | } | |
12571 | return resultobj; | |
12572 | fail: | |
12573 | return NULL; | |
12574 | } | |
12575 | ||
12576 | ||
c370783e | 12577 | static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12578 | PyObject *resultobj; |
12579 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12580 | wxEvent *arg2 = 0 ; | |
12581 | PyObject * obj0 = 0 ; | |
12582 | PyObject * obj1 = 0 ; | |
12583 | char *kwnames[] = { | |
12584 | (char *) "self",(char *) "event", NULL | |
12585 | }; | |
12586 | ||
12587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail; | |
12588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12590 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
12591 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12592 | SWIG_fail; | |
12593 | if (arg2 == NULL) { | |
12594 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12595 | SWIG_fail; | |
12596 | } | |
12597 | { | |
12598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12599 | (arg1)->AddPendingEvent(*arg2); | |
12600 | ||
12601 | wxPyEndAllowThreads(__tstate); | |
12602 | if (PyErr_Occurred()) SWIG_fail; | |
12603 | } | |
12604 | Py_INCREF(Py_None); resultobj = Py_None; | |
12605 | return resultobj; | |
12606 | fail: | |
12607 | return NULL; | |
12608 | } | |
12609 | ||
12610 | ||
c370783e | 12611 | static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12612 | PyObject *resultobj; |
12613 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12614 | PyObject * obj0 = 0 ; | |
12615 | char *kwnames[] = { | |
12616 | (char *) "self", NULL | |
12617 | }; | |
12618 | ||
12619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
12620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12622 | { | |
12623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12624 | (arg1)->ProcessPendingEvents(); | |
12625 | ||
12626 | wxPyEndAllowThreads(__tstate); | |
12627 | if (PyErr_Occurred()) SWIG_fail; | |
12628 | } | |
12629 | Py_INCREF(Py_None); resultobj = Py_None; | |
12630 | return resultobj; | |
12631 | fail: | |
12632 | return NULL; | |
12633 | } | |
12634 | ||
12635 | ||
c370783e | 12636 | static PyObject *_wrap_EvtHandler_Connect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12637 | PyObject *resultobj; |
12638 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12639 | int arg2 ; | |
12640 | int arg3 ; | |
12641 | int arg4 ; | |
12642 | PyObject *arg5 = (PyObject *) 0 ; | |
12643 | PyObject * obj0 = 0 ; | |
12644 | PyObject * obj1 = 0 ; | |
12645 | PyObject * obj2 = 0 ; | |
12646 | PyObject * obj3 = 0 ; | |
12647 | PyObject * obj4 = 0 ; | |
12648 | char *kwnames[] = { | |
12649 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL | |
12650 | }; | |
12651 | ||
12652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
12653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12655 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 12656 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12657 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 12658 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 12659 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
12660 | if (PyErr_Occurred()) SWIG_fail; |
12661 | arg5 = obj4; | |
12662 | { | |
12663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12664 | wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5); | |
12665 | ||
12666 | wxPyEndAllowThreads(__tstate); | |
12667 | if (PyErr_Occurred()) SWIG_fail; | |
12668 | } | |
12669 | Py_INCREF(Py_None); resultobj = Py_None; | |
12670 | return resultobj; | |
12671 | fail: | |
12672 | return NULL; | |
12673 | } | |
12674 | ||
12675 | ||
c370783e | 12676 | static PyObject *_wrap_EvtHandler_Disconnect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12677 | PyObject *resultobj; |
12678 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12679 | int arg2 ; | |
12680 | int arg3 = (int) -1 ; | |
12681 | wxEventType arg4 = (wxEventType) wxEVT_NULL ; | |
12682 | bool result; | |
12683 | PyObject * obj0 = 0 ; | |
12684 | PyObject * obj1 = 0 ; | |
12685 | PyObject * obj2 = 0 ; | |
12686 | PyObject * obj3 = 0 ; | |
12687 | char *kwnames[] = { | |
12688 | (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL | |
12689 | }; | |
12690 | ||
12691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12694 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
12695 | if (PyErr_Occurred()) SWIG_fail; |
12696 | if (obj2) { | |
c370783e | 12697 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
12698 | if (PyErr_Occurred()) SWIG_fail; |
12699 | } | |
12700 | if (obj3) { | |
c370783e | 12701 | arg4 = (wxEventType)SWIG_As_int(obj3); |
d55e5bfc RD |
12702 | if (PyErr_Occurred()) SWIG_fail; |
12703 | } | |
12704 | { | |
12705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12706 | result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4); | |
12707 | ||
12708 | wxPyEndAllowThreads(__tstate); | |
12709 | if (PyErr_Occurred()) SWIG_fail; | |
12710 | } | |
12711 | { | |
12712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12713 | } | |
12714 | return resultobj; | |
12715 | fail: | |
12716 | return NULL; | |
12717 | } | |
12718 | ||
12719 | ||
c370783e | 12720 | static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12721 | PyObject *resultobj; |
12722 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
12723 | PyObject *arg2 = (PyObject *) 0 ; | |
12724 | PyObject * obj0 = 0 ; | |
12725 | PyObject * obj1 = 0 ; | |
12726 | char *kwnames[] = { | |
12727 | (char *) "self",(char *) "_self", NULL | |
12728 | }; | |
12729 | ||
12730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
12731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
12732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12733 | arg2 = obj1; | |
12734 | { | |
12735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12736 | wxEvtHandler__setOORInfo(arg1,arg2); | |
12737 | ||
12738 | wxPyEndAllowThreads(__tstate); | |
12739 | if (PyErr_Occurred()) SWIG_fail; | |
12740 | } | |
12741 | Py_INCREF(Py_None); resultobj = Py_None; | |
12742 | return resultobj; | |
12743 | fail: | |
12744 | return NULL; | |
12745 | } | |
12746 | ||
12747 | ||
c370783e | 12748 | static PyObject * EvtHandler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
12749 | PyObject *obj; |
12750 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12751 | SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj); | |
12752 | Py_INCREF(obj); | |
12753 | return Py_BuildValue((char *)""); | |
12754 | } | |
c370783e | 12755 | static PyObject *_wrap_NewEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12756 | PyObject *resultobj; |
12757 | wxEventType result; | |
12758 | char *kwnames[] = { | |
12759 | NULL | |
12760 | }; | |
12761 | ||
12762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail; | |
12763 | { | |
12764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12765 | result = (wxEventType)wxNewEventType(); | |
12766 | ||
12767 | wxPyEndAllowThreads(__tstate); | |
12768 | if (PyErr_Occurred()) SWIG_fail; | |
12769 | } | |
c370783e | 12770 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12771 | return resultobj; |
12772 | fail: | |
12773 | return NULL; | |
12774 | } | |
12775 | ||
12776 | ||
c370783e | 12777 | static PyObject *_wrap_delete_Event(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12778 | PyObject *resultobj; |
12779 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12780 | PyObject * obj0 = 0 ; | |
12781 | char *kwnames[] = { | |
12782 | (char *) "self", NULL | |
12783 | }; | |
12784 | ||
12785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail; | |
12786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12788 | { | |
12789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12790 | delete arg1; | |
12791 | ||
12792 | wxPyEndAllowThreads(__tstate); | |
12793 | if (PyErr_Occurred()) SWIG_fail; | |
12794 | } | |
12795 | Py_INCREF(Py_None); resultobj = Py_None; | |
12796 | return resultobj; | |
12797 | fail: | |
12798 | return NULL; | |
12799 | } | |
12800 | ||
12801 | ||
c370783e | 12802 | static PyObject *_wrap_Event_SetEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12803 | PyObject *resultobj; |
12804 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12805 | wxEventType arg2 ; | |
12806 | PyObject * obj0 = 0 ; | |
12807 | PyObject * obj1 = 0 ; | |
12808 | char *kwnames[] = { | |
12809 | (char *) "self",(char *) "typ", NULL | |
12810 | }; | |
12811 | ||
12812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail; | |
12813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 12815 | arg2 = (wxEventType)SWIG_As_int(obj1); |
d55e5bfc RD |
12816 | if (PyErr_Occurred()) SWIG_fail; |
12817 | { | |
12818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12819 | (arg1)->SetEventType(arg2); | |
12820 | ||
12821 | wxPyEndAllowThreads(__tstate); | |
12822 | if (PyErr_Occurred()) SWIG_fail; | |
12823 | } | |
12824 | Py_INCREF(Py_None); resultobj = Py_None; | |
12825 | return resultobj; | |
12826 | fail: | |
12827 | return NULL; | |
12828 | } | |
12829 | ||
12830 | ||
c370783e | 12831 | static PyObject *_wrap_Event_GetEventType(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12832 | PyObject *resultobj; |
12833 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12834 | wxEventType result; | |
12835 | PyObject * obj0 = 0 ; | |
12836 | char *kwnames[] = { | |
12837 | (char *) "self", NULL | |
12838 | }; | |
12839 | ||
12840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail; | |
12841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12843 | { | |
12844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12845 | result = (wxEventType)((wxEvent const *)arg1)->GetEventType(); | |
12846 | ||
12847 | wxPyEndAllowThreads(__tstate); | |
12848 | if (PyErr_Occurred()) SWIG_fail; | |
12849 | } | |
c370783e | 12850 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12851 | return resultobj; |
12852 | fail: | |
12853 | return NULL; | |
12854 | } | |
12855 | ||
12856 | ||
c370783e | 12857 | static PyObject *_wrap_Event_GetEventObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12858 | PyObject *resultobj; |
12859 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12860 | wxObject *result; | |
12861 | PyObject * obj0 = 0 ; | |
12862 | char *kwnames[] = { | |
12863 | (char *) "self", NULL | |
12864 | }; | |
12865 | ||
12866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail; | |
12867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12869 | { | |
12870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12871 | result = (wxObject *)((wxEvent const *)arg1)->GetEventObject(); | |
12872 | ||
12873 | wxPyEndAllowThreads(__tstate); | |
12874 | if (PyErr_Occurred()) SWIG_fail; | |
12875 | } | |
12876 | { | |
412d302d | 12877 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
12878 | } |
12879 | return resultobj; | |
12880 | fail: | |
12881 | return NULL; | |
12882 | } | |
12883 | ||
12884 | ||
c370783e | 12885 | static PyObject *_wrap_Event_SetEventObject(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12886 | PyObject *resultobj; |
12887 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12888 | wxObject *arg2 = (wxObject *) 0 ; | |
12889 | PyObject * obj0 = 0 ; | |
12890 | PyObject * obj1 = 0 ; | |
12891 | char *kwnames[] = { | |
12892 | (char *) "self",(char *) "obj", NULL | |
12893 | }; | |
12894 | ||
12895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail; | |
12896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12898 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject, | |
12899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12900 | { | |
12901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12902 | (arg1)->SetEventObject(arg2); | |
12903 | ||
12904 | wxPyEndAllowThreads(__tstate); | |
12905 | if (PyErr_Occurred()) SWIG_fail; | |
12906 | } | |
12907 | Py_INCREF(Py_None); resultobj = Py_None; | |
12908 | return resultobj; | |
12909 | fail: | |
12910 | return NULL; | |
12911 | } | |
12912 | ||
12913 | ||
c370783e | 12914 | static PyObject *_wrap_Event_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12915 | PyObject *resultobj; |
12916 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12917 | long result; | |
12918 | PyObject * obj0 = 0 ; | |
12919 | char *kwnames[] = { | |
12920 | (char *) "self", NULL | |
12921 | }; | |
12922 | ||
12923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail; | |
12924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12926 | { | |
12927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12928 | result = (long)((wxEvent const *)arg1)->GetTimestamp(); | |
12929 | ||
12930 | wxPyEndAllowThreads(__tstate); | |
12931 | if (PyErr_Occurred()) SWIG_fail; | |
12932 | } | |
c370783e | 12933 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
12934 | return resultobj; |
12935 | fail: | |
12936 | return NULL; | |
12937 | } | |
12938 | ||
12939 | ||
c370783e | 12940 | static PyObject *_wrap_Event_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12941 | PyObject *resultobj; |
12942 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12943 | long arg2 = (long) 0 ; | |
12944 | PyObject * obj0 = 0 ; | |
12945 | PyObject * obj1 = 0 ; | |
12946 | char *kwnames[] = { | |
12947 | (char *) "self",(char *) "ts", NULL | |
12948 | }; | |
12949 | ||
12950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail; | |
12951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12953 | if (obj1) { | |
c370783e | 12954 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
12955 | if (PyErr_Occurred()) SWIG_fail; |
12956 | } | |
12957 | { | |
12958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12959 | (arg1)->SetTimestamp(arg2); | |
12960 | ||
12961 | wxPyEndAllowThreads(__tstate); | |
12962 | if (PyErr_Occurred()) SWIG_fail; | |
12963 | } | |
12964 | Py_INCREF(Py_None); resultobj = Py_None; | |
12965 | return resultobj; | |
12966 | fail: | |
12967 | return NULL; | |
12968 | } | |
12969 | ||
12970 | ||
c370783e | 12971 | static PyObject *_wrap_Event_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12972 | PyObject *resultobj; |
12973 | wxEvent *arg1 = (wxEvent *) 0 ; | |
12974 | int result; | |
12975 | PyObject * obj0 = 0 ; | |
12976 | char *kwnames[] = { | |
12977 | (char *) "self", NULL | |
12978 | }; | |
12979 | ||
12980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail; | |
12981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
12982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12983 | { | |
12984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12985 | result = (int)((wxEvent const *)arg1)->GetId(); | |
12986 | ||
12987 | wxPyEndAllowThreads(__tstate); | |
12988 | if (PyErr_Occurred()) SWIG_fail; | |
12989 | } | |
c370783e | 12990 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
12991 | return resultobj; |
12992 | fail: | |
12993 | return NULL; | |
12994 | } | |
12995 | ||
12996 | ||
c370783e | 12997 | static PyObject *_wrap_Event_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
12998 | PyObject *resultobj; |
12999 | wxEvent *arg1 = (wxEvent *) 0 ; | |
13000 | int arg2 ; | |
13001 | PyObject * obj0 = 0 ; | |
13002 | PyObject * obj1 = 0 ; | |
13003 | char *kwnames[] = { | |
13004 | (char *) "self",(char *) "Id", NULL | |
13005 | }; | |
13006 | ||
13007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail; | |
13008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13010 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13011 | if (PyErr_Occurred()) SWIG_fail; |
13012 | { | |
13013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13014 | (arg1)->SetId(arg2); | |
13015 | ||
13016 | wxPyEndAllowThreads(__tstate); | |
13017 | if (PyErr_Occurred()) SWIG_fail; | |
13018 | } | |
13019 | Py_INCREF(Py_None); resultobj = Py_None; | |
13020 | return resultobj; | |
13021 | fail: | |
13022 | return NULL; | |
13023 | } | |
13024 | ||
13025 | ||
c370783e | 13026 | static PyObject *_wrap_Event_IsCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13027 | PyObject *resultobj; |
13028 | wxEvent *arg1 = (wxEvent *) 0 ; | |
13029 | bool result; | |
13030 | PyObject * obj0 = 0 ; | |
13031 | char *kwnames[] = { | |
13032 | (char *) "self", NULL | |
13033 | }; | |
13034 | ||
13035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail; | |
13036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13038 | { | |
13039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13040 | result = (bool)((wxEvent const *)arg1)->IsCommandEvent(); | |
13041 | ||
13042 | wxPyEndAllowThreads(__tstate); | |
13043 | if (PyErr_Occurred()) SWIG_fail; | |
13044 | } | |
13045 | { | |
13046 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13047 | } | |
13048 | return resultobj; | |
13049 | fail: | |
13050 | return NULL; | |
13051 | } | |
13052 | ||
13053 | ||
c370783e | 13054 | static PyObject *_wrap_Event_Skip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13055 | PyObject *resultobj; |
13056 | wxEvent *arg1 = (wxEvent *) 0 ; | |
b411df4a | 13057 | bool arg2 = (bool) true ; |
d55e5bfc RD |
13058 | PyObject * obj0 = 0 ; |
13059 | PyObject * obj1 = 0 ; | |
13060 | char *kwnames[] = { | |
13061 | (char *) "self",(char *) "skip", NULL | |
13062 | }; | |
13063 | ||
13064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail; | |
13065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13067 | if (obj1) { | |
c370783e | 13068 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
13069 | if (PyErr_Occurred()) SWIG_fail; |
13070 | } | |
13071 | { | |
13072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13073 | (arg1)->Skip(arg2); | |
13074 | ||
13075 | wxPyEndAllowThreads(__tstate); | |
13076 | if (PyErr_Occurred()) SWIG_fail; | |
13077 | } | |
13078 | Py_INCREF(Py_None); resultobj = Py_None; | |
13079 | return resultobj; | |
13080 | fail: | |
13081 | return NULL; | |
13082 | } | |
13083 | ||
13084 | ||
c370783e | 13085 | static PyObject *_wrap_Event_GetSkipped(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13086 | PyObject *resultobj; |
13087 | wxEvent *arg1 = (wxEvent *) 0 ; | |
13088 | bool result; | |
13089 | PyObject * obj0 = 0 ; | |
13090 | char *kwnames[] = { | |
13091 | (char *) "self", NULL | |
13092 | }; | |
13093 | ||
13094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail; | |
13095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13097 | { | |
13098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13099 | result = (bool)((wxEvent const *)arg1)->GetSkipped(); | |
13100 | ||
13101 | wxPyEndAllowThreads(__tstate); | |
13102 | if (PyErr_Occurred()) SWIG_fail; | |
13103 | } | |
13104 | { | |
13105 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13106 | } | |
13107 | return resultobj; | |
13108 | fail: | |
13109 | return NULL; | |
13110 | } | |
13111 | ||
13112 | ||
c370783e | 13113 | static PyObject *_wrap_Event_ShouldPropagate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13114 | PyObject *resultobj; |
13115 | wxEvent *arg1 = (wxEvent *) 0 ; | |
13116 | bool result; | |
13117 | PyObject * obj0 = 0 ; | |
13118 | char *kwnames[] = { | |
13119 | (char *) "self", NULL | |
13120 | }; | |
13121 | ||
13122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail; | |
13123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13125 | { | |
13126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13127 | result = (bool)((wxEvent const *)arg1)->ShouldPropagate(); | |
13128 | ||
13129 | wxPyEndAllowThreads(__tstate); | |
13130 | if (PyErr_Occurred()) SWIG_fail; | |
13131 | } | |
13132 | { | |
13133 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13134 | } | |
13135 | return resultobj; | |
13136 | fail: | |
13137 | return NULL; | |
13138 | } | |
13139 | ||
13140 | ||
c370783e | 13141 | static PyObject *_wrap_Event_StopPropagation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13142 | PyObject *resultobj; |
13143 | wxEvent *arg1 = (wxEvent *) 0 ; | |
13144 | int result; | |
13145 | PyObject * obj0 = 0 ; | |
13146 | char *kwnames[] = { | |
13147 | (char *) "self", NULL | |
13148 | }; | |
13149 | ||
13150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail; | |
13151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13153 | { | |
13154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13155 | result = (int)(arg1)->StopPropagation(); | |
13156 | ||
13157 | wxPyEndAllowThreads(__tstate); | |
13158 | if (PyErr_Occurred()) SWIG_fail; | |
13159 | } | |
c370783e | 13160 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13161 | return resultobj; |
13162 | fail: | |
13163 | return NULL; | |
13164 | } | |
13165 | ||
13166 | ||
c370783e | 13167 | static PyObject *_wrap_Event_ResumePropagation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13168 | PyObject *resultobj; |
13169 | wxEvent *arg1 = (wxEvent *) 0 ; | |
13170 | int arg2 ; | |
13171 | PyObject * obj0 = 0 ; | |
13172 | PyObject * obj1 = 0 ; | |
13173 | char *kwnames[] = { | |
13174 | (char *) "self",(char *) "propagationLevel", NULL | |
13175 | }; | |
13176 | ||
13177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail; | |
13178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13180 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13181 | if (PyErr_Occurred()) SWIG_fail; |
13182 | { | |
13183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13184 | (arg1)->ResumePropagation(arg2); | |
13185 | ||
13186 | wxPyEndAllowThreads(__tstate); | |
13187 | if (PyErr_Occurred()) SWIG_fail; | |
13188 | } | |
13189 | Py_INCREF(Py_None); resultobj = Py_None; | |
13190 | return resultobj; | |
13191 | fail: | |
13192 | return NULL; | |
13193 | } | |
13194 | ||
13195 | ||
c370783e | 13196 | static PyObject *_wrap_Event_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13197 | PyObject *resultobj; |
13198 | wxEvent *arg1 = (wxEvent *) 0 ; | |
13199 | wxEvent *result; | |
13200 | PyObject * obj0 = 0 ; | |
13201 | char *kwnames[] = { | |
13202 | (char *) "self", NULL | |
13203 | }; | |
13204 | ||
13205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail; | |
13206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13208 | { | |
13209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13210 | result = (wxEvent *)(arg1)->Clone(); | |
13211 | ||
13212 | wxPyEndAllowThreads(__tstate); | |
13213 | if (PyErr_Occurred()) SWIG_fail; | |
13214 | } | |
13215 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
13216 | return resultobj; | |
13217 | fail: | |
13218 | return NULL; | |
13219 | } | |
13220 | ||
13221 | ||
c370783e | 13222 | static PyObject * Event_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13223 | PyObject *obj; |
13224 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13225 | SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj); | |
13226 | Py_INCREF(obj); | |
13227 | return Py_BuildValue((char *)""); | |
13228 | } | |
c370783e | 13229 | static PyObject *_wrap_new_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13230 | PyObject *resultobj; |
13231 | wxEvent *arg1 = 0 ; | |
13232 | wxPropagationDisabler *result; | |
13233 | PyObject * obj0 = 0 ; | |
13234 | char *kwnames[] = { | |
13235 | (char *) "event", NULL | |
13236 | }; | |
13237 | ||
13238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail; | |
13239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13240 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13241 | SWIG_fail; | |
13242 | if (arg1 == NULL) { | |
13243 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13244 | SWIG_fail; | |
13245 | } | |
13246 | { | |
13247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13248 | result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1); | |
13249 | ||
13250 | wxPyEndAllowThreads(__tstate); | |
13251 | if (PyErr_Occurred()) SWIG_fail; | |
13252 | } | |
13253 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1); | |
13254 | return resultobj; | |
13255 | fail: | |
13256 | return NULL; | |
13257 | } | |
13258 | ||
13259 | ||
c370783e | 13260 | static PyObject *_wrap_delete_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13261 | PyObject *resultobj; |
13262 | wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ; | |
13263 | PyObject * obj0 = 0 ; | |
13264 | char *kwnames[] = { | |
13265 | (char *) "self", NULL | |
13266 | }; | |
13267 | ||
13268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail; | |
13269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler, | |
13270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13271 | { | |
13272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13273 | delete arg1; | |
13274 | ||
13275 | wxPyEndAllowThreads(__tstate); | |
13276 | if (PyErr_Occurred()) SWIG_fail; | |
13277 | } | |
13278 | Py_INCREF(Py_None); resultobj = Py_None; | |
13279 | return resultobj; | |
13280 | fail: | |
13281 | return NULL; | |
13282 | } | |
13283 | ||
13284 | ||
c370783e | 13285 | static PyObject * PropagationDisabler_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13286 | PyObject *obj; |
13287 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13288 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj); | |
13289 | Py_INCREF(obj); | |
13290 | return Py_BuildValue((char *)""); | |
13291 | } | |
c370783e | 13292 | static PyObject *_wrap_new_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13293 | PyObject *resultobj; |
13294 | wxEvent *arg1 = 0 ; | |
13295 | wxPropagateOnce *result; | |
13296 | PyObject * obj0 = 0 ; | |
13297 | char *kwnames[] = { | |
13298 | (char *) "event", NULL | |
13299 | }; | |
13300 | ||
13301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail; | |
13302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent, | |
13303 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13304 | SWIG_fail; | |
13305 | if (arg1 == NULL) { | |
13306 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13307 | SWIG_fail; | |
13308 | } | |
13309 | { | |
13310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13311 | result = (wxPropagateOnce *)new wxPropagateOnce(*arg1); | |
13312 | ||
13313 | wxPyEndAllowThreads(__tstate); | |
13314 | if (PyErr_Occurred()) SWIG_fail; | |
13315 | } | |
13316 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1); | |
13317 | return resultobj; | |
13318 | fail: | |
13319 | return NULL; | |
13320 | } | |
13321 | ||
13322 | ||
c370783e | 13323 | static PyObject *_wrap_delete_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13324 | PyObject *resultobj; |
13325 | wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ; | |
13326 | PyObject * obj0 = 0 ; | |
13327 | char *kwnames[] = { | |
13328 | (char *) "self", NULL | |
13329 | }; | |
13330 | ||
13331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail; | |
13332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce, | |
13333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13334 | { | |
13335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13336 | delete arg1; | |
13337 | ||
13338 | wxPyEndAllowThreads(__tstate); | |
13339 | if (PyErr_Occurred()) SWIG_fail; | |
13340 | } | |
13341 | Py_INCREF(Py_None); resultobj = Py_None; | |
13342 | return resultobj; | |
13343 | fail: | |
13344 | return NULL; | |
13345 | } | |
13346 | ||
13347 | ||
c370783e | 13348 | static PyObject * PropagateOnce_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13349 | PyObject *obj; |
13350 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13351 | SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj); | |
13352 | Py_INCREF(obj); | |
13353 | return Py_BuildValue((char *)""); | |
13354 | } | |
c370783e | 13355 | static PyObject *_wrap_new_CommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13356 | PyObject *resultobj; |
13357 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13358 | int arg2 = (int) 0 ; | |
13359 | wxCommandEvent *result; | |
13360 | PyObject * obj0 = 0 ; | |
13361 | PyObject * obj1 = 0 ; | |
13362 | char *kwnames[] = { | |
13363 | (char *) "commandType",(char *) "winid", NULL | |
13364 | }; | |
13365 | ||
13366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
13367 | if (obj0) { | |
c370783e | 13368 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13369 | if (PyErr_Occurred()) SWIG_fail; |
13370 | } | |
13371 | if (obj1) { | |
c370783e | 13372 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13373 | if (PyErr_Occurred()) SWIG_fail; |
13374 | } | |
13375 | { | |
13376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13377 | result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2); | |
13378 | ||
13379 | wxPyEndAllowThreads(__tstate); | |
13380 | if (PyErr_Occurred()) SWIG_fail; | |
13381 | } | |
13382 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1); | |
13383 | return resultobj; | |
13384 | fail: | |
13385 | return NULL; | |
13386 | } | |
13387 | ||
13388 | ||
c370783e | 13389 | static PyObject *_wrap_CommandEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13390 | PyObject *resultobj; |
13391 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13392 | int result; | |
13393 | PyObject * obj0 = 0 ; | |
13394 | char *kwnames[] = { | |
13395 | (char *) "self", NULL | |
13396 | }; | |
13397 | ||
13398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail; | |
13399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13401 | { | |
13402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13403 | result = (int)((wxCommandEvent const *)arg1)->GetSelection(); | |
13404 | ||
13405 | wxPyEndAllowThreads(__tstate); | |
13406 | if (PyErr_Occurred()) SWIG_fail; | |
13407 | } | |
c370783e | 13408 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13409 | return resultobj; |
13410 | fail: | |
13411 | return NULL; | |
13412 | } | |
13413 | ||
13414 | ||
c370783e | 13415 | static PyObject *_wrap_CommandEvent_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13416 | PyObject *resultobj; |
13417 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13418 | wxString *arg2 = 0 ; | |
b411df4a | 13419 | bool temp2 = false ; |
d55e5bfc RD |
13420 | PyObject * obj0 = 0 ; |
13421 | PyObject * obj1 = 0 ; | |
13422 | char *kwnames[] = { | |
13423 | (char *) "self",(char *) "s", NULL | |
13424 | }; | |
13425 | ||
13426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail; | |
13427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13429 | { | |
13430 | arg2 = wxString_in_helper(obj1); | |
13431 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 13432 | temp2 = true; |
d55e5bfc RD |
13433 | } |
13434 | { | |
13435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13436 | (arg1)->SetString((wxString const &)*arg2); | |
13437 | ||
13438 | wxPyEndAllowThreads(__tstate); | |
13439 | if (PyErr_Occurred()) SWIG_fail; | |
13440 | } | |
13441 | Py_INCREF(Py_None); resultobj = Py_None; | |
13442 | { | |
13443 | if (temp2) | |
13444 | delete arg2; | |
13445 | } | |
13446 | return resultobj; | |
13447 | fail: | |
13448 | { | |
13449 | if (temp2) | |
13450 | delete arg2; | |
13451 | } | |
13452 | return NULL; | |
13453 | } | |
13454 | ||
13455 | ||
c370783e | 13456 | static PyObject *_wrap_CommandEvent_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13457 | PyObject *resultobj; |
13458 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13459 | wxString result; | |
13460 | PyObject * obj0 = 0 ; | |
13461 | char *kwnames[] = { | |
13462 | (char *) "self", NULL | |
13463 | }; | |
13464 | ||
13465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail; | |
13466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13468 | { | |
13469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13470 | result = ((wxCommandEvent const *)arg1)->GetString(); | |
13471 | ||
13472 | wxPyEndAllowThreads(__tstate); | |
13473 | if (PyErr_Occurred()) SWIG_fail; | |
13474 | } | |
13475 | { | |
13476 | #if wxUSE_UNICODE | |
13477 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13478 | #else | |
13479 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13480 | #endif | |
13481 | } | |
13482 | return resultobj; | |
13483 | fail: | |
13484 | return NULL; | |
13485 | } | |
13486 | ||
13487 | ||
c370783e | 13488 | static PyObject *_wrap_CommandEvent_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13489 | PyObject *resultobj; |
13490 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13491 | bool result; | |
13492 | PyObject * obj0 = 0 ; | |
13493 | char *kwnames[] = { | |
13494 | (char *) "self", NULL | |
13495 | }; | |
13496 | ||
13497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail; | |
13498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13500 | { | |
13501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13502 | result = (bool)((wxCommandEvent const *)arg1)->IsChecked(); | |
13503 | ||
13504 | wxPyEndAllowThreads(__tstate); | |
13505 | if (PyErr_Occurred()) SWIG_fail; | |
13506 | } | |
13507 | { | |
13508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13509 | } | |
13510 | return resultobj; | |
13511 | fail: | |
13512 | return NULL; | |
13513 | } | |
13514 | ||
13515 | ||
c370783e | 13516 | static PyObject *_wrap_CommandEvent_IsSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13517 | PyObject *resultobj; |
13518 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13519 | bool result; | |
13520 | PyObject * obj0 = 0 ; | |
13521 | char *kwnames[] = { | |
13522 | (char *) "self", NULL | |
13523 | }; | |
13524 | ||
13525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail; | |
13526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13528 | { | |
13529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13530 | result = (bool)((wxCommandEvent const *)arg1)->IsSelection(); | |
13531 | ||
13532 | wxPyEndAllowThreads(__tstate); | |
13533 | if (PyErr_Occurred()) SWIG_fail; | |
13534 | } | |
13535 | { | |
13536 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13537 | } | |
13538 | return resultobj; | |
13539 | fail: | |
13540 | return NULL; | |
13541 | } | |
13542 | ||
13543 | ||
c370783e | 13544 | static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13545 | PyObject *resultobj; |
13546 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13547 | long arg2 ; | |
13548 | PyObject * obj0 = 0 ; | |
13549 | PyObject * obj1 = 0 ; | |
13550 | char *kwnames[] = { | |
13551 | (char *) "self",(char *) "extraLong", NULL | |
13552 | }; | |
13553 | ||
13554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail; | |
13555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13557 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
13558 | if (PyErr_Occurred()) SWIG_fail; |
13559 | { | |
13560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13561 | (arg1)->SetExtraLong(arg2); | |
13562 | ||
13563 | wxPyEndAllowThreads(__tstate); | |
13564 | if (PyErr_Occurred()) SWIG_fail; | |
13565 | } | |
13566 | Py_INCREF(Py_None); resultobj = Py_None; | |
13567 | return resultobj; | |
13568 | fail: | |
13569 | return NULL; | |
13570 | } | |
13571 | ||
13572 | ||
c370783e | 13573 | static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13574 | PyObject *resultobj; |
13575 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13576 | long result; | |
13577 | PyObject * obj0 = 0 ; | |
13578 | char *kwnames[] = { | |
13579 | (char *) "self", NULL | |
13580 | }; | |
13581 | ||
13582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail; | |
13583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13585 | { | |
13586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13587 | result = (long)((wxCommandEvent const *)arg1)->GetExtraLong(); | |
13588 | ||
13589 | wxPyEndAllowThreads(__tstate); | |
13590 | if (PyErr_Occurred()) SWIG_fail; | |
13591 | } | |
c370783e | 13592 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
13593 | return resultobj; |
13594 | fail: | |
13595 | return NULL; | |
13596 | } | |
13597 | ||
13598 | ||
c370783e | 13599 | static PyObject *_wrap_CommandEvent_SetInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13600 | PyObject *resultobj; |
13601 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13602 | int arg2 ; | |
13603 | PyObject * obj0 = 0 ; | |
13604 | PyObject * obj1 = 0 ; | |
13605 | char *kwnames[] = { | |
13606 | (char *) "self",(char *) "i", NULL | |
13607 | }; | |
13608 | ||
13609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail; | |
13610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13612 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13613 | if (PyErr_Occurred()) SWIG_fail; |
13614 | { | |
13615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13616 | (arg1)->SetInt(arg2); | |
13617 | ||
13618 | wxPyEndAllowThreads(__tstate); | |
13619 | if (PyErr_Occurred()) SWIG_fail; | |
13620 | } | |
13621 | Py_INCREF(Py_None); resultobj = Py_None; | |
13622 | return resultobj; | |
13623 | fail: | |
13624 | return NULL; | |
13625 | } | |
13626 | ||
13627 | ||
c370783e | 13628 | static PyObject *_wrap_CommandEvent_GetInt(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13629 | PyObject *resultobj; |
13630 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13631 | long result; | |
13632 | PyObject * obj0 = 0 ; | |
13633 | char *kwnames[] = { | |
13634 | (char *) "self", NULL | |
13635 | }; | |
13636 | ||
13637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail; | |
13638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13640 | { | |
13641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13642 | result = (long)((wxCommandEvent const *)arg1)->GetInt(); | |
13643 | ||
13644 | wxPyEndAllowThreads(__tstate); | |
13645 | if (PyErr_Occurred()) SWIG_fail; | |
13646 | } | |
c370783e | 13647 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
13648 | return resultobj; |
13649 | fail: | |
13650 | return NULL; | |
13651 | } | |
13652 | ||
13653 | ||
c370783e | 13654 | static PyObject *_wrap_CommandEvent_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13655 | PyObject *resultobj; |
13656 | wxCommandEvent *arg1 = (wxCommandEvent *) 0 ; | |
13657 | wxEvent *result; | |
13658 | PyObject * obj0 = 0 ; | |
13659 | char *kwnames[] = { | |
13660 | (char *) "self", NULL | |
13661 | }; | |
13662 | ||
13663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail; | |
13664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent, | |
13665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13666 | { | |
13667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13668 | result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone(); | |
13669 | ||
13670 | wxPyEndAllowThreads(__tstate); | |
13671 | if (PyErr_Occurred()) SWIG_fail; | |
13672 | } | |
13673 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0); | |
13674 | return resultobj; | |
13675 | fail: | |
13676 | return NULL; | |
13677 | } | |
13678 | ||
13679 | ||
c370783e | 13680 | static PyObject * CommandEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13681 | PyObject *obj; |
13682 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13683 | SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj); | |
13684 | Py_INCREF(obj); | |
13685 | return Py_BuildValue((char *)""); | |
13686 | } | |
c370783e | 13687 | static PyObject *_wrap_new_NotifyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13688 | PyObject *resultobj; |
13689 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13690 | int arg2 = (int) 0 ; | |
13691 | wxNotifyEvent *result; | |
13692 | PyObject * obj0 = 0 ; | |
13693 | PyObject * obj1 = 0 ; | |
13694 | char *kwnames[] = { | |
13695 | (char *) "commandType",(char *) "winid", NULL | |
13696 | }; | |
13697 | ||
13698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail; | |
13699 | if (obj0) { | |
c370783e | 13700 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13701 | if (PyErr_Occurred()) SWIG_fail; |
13702 | } | |
13703 | if (obj1) { | |
c370783e | 13704 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13705 | if (PyErr_Occurred()) SWIG_fail; |
13706 | } | |
13707 | { | |
13708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13709 | result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2); | |
13710 | ||
13711 | wxPyEndAllowThreads(__tstate); | |
13712 | if (PyErr_Occurred()) SWIG_fail; | |
13713 | } | |
13714 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1); | |
13715 | return resultobj; | |
13716 | fail: | |
13717 | return NULL; | |
13718 | } | |
13719 | ||
13720 | ||
c370783e | 13721 | static PyObject *_wrap_NotifyEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13722 | PyObject *resultobj; |
13723 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13724 | PyObject * obj0 = 0 ; | |
13725 | char *kwnames[] = { | |
13726 | (char *) "self", NULL | |
13727 | }; | |
13728 | ||
13729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail; | |
13730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13732 | { | |
13733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13734 | (arg1)->Veto(); | |
13735 | ||
13736 | wxPyEndAllowThreads(__tstate); | |
13737 | if (PyErr_Occurred()) SWIG_fail; | |
13738 | } | |
13739 | Py_INCREF(Py_None); resultobj = Py_None; | |
13740 | return resultobj; | |
13741 | fail: | |
13742 | return NULL; | |
13743 | } | |
13744 | ||
13745 | ||
c370783e | 13746 | static PyObject *_wrap_NotifyEvent_Allow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13747 | PyObject *resultobj; |
13748 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13749 | PyObject * obj0 = 0 ; | |
13750 | char *kwnames[] = { | |
13751 | (char *) "self", NULL | |
13752 | }; | |
13753 | ||
13754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail; | |
13755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13757 | { | |
13758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13759 | (arg1)->Allow(); | |
13760 | ||
13761 | wxPyEndAllowThreads(__tstate); | |
13762 | if (PyErr_Occurred()) SWIG_fail; | |
13763 | } | |
13764 | Py_INCREF(Py_None); resultobj = Py_None; | |
13765 | return resultobj; | |
13766 | fail: | |
13767 | return NULL; | |
13768 | } | |
13769 | ||
13770 | ||
c370783e | 13771 | static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13772 | PyObject *resultobj; |
13773 | wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ; | |
13774 | bool result; | |
13775 | PyObject * obj0 = 0 ; | |
13776 | char *kwnames[] = { | |
13777 | (char *) "self", NULL | |
13778 | }; | |
13779 | ||
13780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail; | |
13781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent, | |
13782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13783 | { | |
13784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13785 | result = (bool)(arg1)->IsAllowed(); | |
13786 | ||
13787 | wxPyEndAllowThreads(__tstate); | |
13788 | if (PyErr_Occurred()) SWIG_fail; | |
13789 | } | |
13790 | { | |
13791 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13792 | } | |
13793 | return resultobj; | |
13794 | fail: | |
13795 | return NULL; | |
13796 | } | |
13797 | ||
13798 | ||
c370783e | 13799 | static PyObject * NotifyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13800 | PyObject *obj; |
13801 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13802 | SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj); | |
13803 | Py_INCREF(obj); | |
13804 | return Py_BuildValue((char *)""); | |
13805 | } | |
c370783e | 13806 | static PyObject *_wrap_new_ScrollEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13807 | PyObject *resultobj; |
13808 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13809 | int arg2 = (int) 0 ; | |
13810 | int arg3 = (int) 0 ; | |
13811 | int arg4 = (int) 0 ; | |
13812 | wxScrollEvent *result; | |
13813 | PyObject * obj0 = 0 ; | |
13814 | PyObject * obj1 = 0 ; | |
13815 | PyObject * obj2 = 0 ; | |
13816 | PyObject * obj3 = 0 ; | |
13817 | char *kwnames[] = { | |
13818 | (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL | |
13819 | }; | |
13820 | ||
13821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
13822 | if (obj0) { | |
c370783e | 13823 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13824 | if (PyErr_Occurred()) SWIG_fail; |
13825 | } | |
13826 | if (obj1) { | |
c370783e | 13827 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13828 | if (PyErr_Occurred()) SWIG_fail; |
13829 | } | |
13830 | if (obj2) { | |
c370783e | 13831 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13832 | if (PyErr_Occurred()) SWIG_fail; |
13833 | } | |
13834 | if (obj3) { | |
c370783e | 13835 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
13836 | if (PyErr_Occurred()) SWIG_fail; |
13837 | } | |
13838 | { | |
13839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13840 | result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4); | |
13841 | ||
13842 | wxPyEndAllowThreads(__tstate); | |
13843 | if (PyErr_Occurred()) SWIG_fail; | |
13844 | } | |
13845 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1); | |
13846 | return resultobj; | |
13847 | fail: | |
13848 | return NULL; | |
13849 | } | |
13850 | ||
13851 | ||
c370783e | 13852 | static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13853 | PyObject *resultobj; |
13854 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13855 | int result; | |
13856 | PyObject * obj0 = 0 ; | |
13857 | char *kwnames[] = { | |
13858 | (char *) "self", NULL | |
13859 | }; | |
13860 | ||
13861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
13862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13864 | { | |
13865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13866 | result = (int)((wxScrollEvent const *)arg1)->GetOrientation(); | |
13867 | ||
13868 | wxPyEndAllowThreads(__tstate); | |
13869 | if (PyErr_Occurred()) SWIG_fail; | |
13870 | } | |
c370783e | 13871 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13872 | return resultobj; |
13873 | fail: | |
13874 | return NULL; | |
13875 | } | |
13876 | ||
13877 | ||
c370783e | 13878 | static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13879 | PyObject *resultobj; |
13880 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13881 | int result; | |
13882 | PyObject * obj0 = 0 ; | |
13883 | char *kwnames[] = { | |
13884 | (char *) "self", NULL | |
13885 | }; | |
13886 | ||
13887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail; | |
13888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13890 | { | |
13891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13892 | result = (int)((wxScrollEvent const *)arg1)->GetPosition(); | |
13893 | ||
13894 | wxPyEndAllowThreads(__tstate); | |
13895 | if (PyErr_Occurred()) SWIG_fail; | |
13896 | } | |
c370783e | 13897 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
13898 | return resultobj; |
13899 | fail: | |
13900 | return NULL; | |
13901 | } | |
13902 | ||
13903 | ||
c370783e | 13904 | static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13905 | PyObject *resultobj; |
13906 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13907 | int arg2 ; | |
13908 | PyObject * obj0 = 0 ; | |
13909 | PyObject * obj1 = 0 ; | |
13910 | char *kwnames[] = { | |
13911 | (char *) "self",(char *) "orient", NULL | |
13912 | }; | |
13913 | ||
13914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
13915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13917 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13918 | if (PyErr_Occurred()) SWIG_fail; |
13919 | { | |
13920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13921 | (arg1)->SetOrientation(arg2); | |
13922 | ||
13923 | wxPyEndAllowThreads(__tstate); | |
13924 | if (PyErr_Occurred()) SWIG_fail; | |
13925 | } | |
13926 | Py_INCREF(Py_None); resultobj = Py_None; | |
13927 | return resultobj; | |
13928 | fail: | |
13929 | return NULL; | |
13930 | } | |
13931 | ||
13932 | ||
c370783e | 13933 | static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13934 | PyObject *resultobj; |
13935 | wxScrollEvent *arg1 = (wxScrollEvent *) 0 ; | |
13936 | int arg2 ; | |
13937 | PyObject * obj0 = 0 ; | |
13938 | PyObject * obj1 = 0 ; | |
13939 | char *kwnames[] = { | |
13940 | (char *) "self",(char *) "pos", NULL | |
13941 | }; | |
13942 | ||
13943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
13944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent, | |
13945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 13946 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13947 | if (PyErr_Occurred()) SWIG_fail; |
13948 | { | |
13949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13950 | (arg1)->SetPosition(arg2); | |
13951 | ||
13952 | wxPyEndAllowThreads(__tstate); | |
13953 | if (PyErr_Occurred()) SWIG_fail; | |
13954 | } | |
13955 | Py_INCREF(Py_None); resultobj = Py_None; | |
13956 | return resultobj; | |
13957 | fail: | |
13958 | return NULL; | |
13959 | } | |
13960 | ||
13961 | ||
c370783e | 13962 | static PyObject * ScrollEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
13963 | PyObject *obj; |
13964 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13965 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj); | |
13966 | Py_INCREF(obj); | |
13967 | return Py_BuildValue((char *)""); | |
13968 | } | |
c370783e | 13969 | static PyObject *_wrap_new_ScrollWinEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
13970 | PyObject *resultobj; |
13971 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13972 | int arg2 = (int) 0 ; | |
13973 | int arg3 = (int) 0 ; | |
13974 | wxScrollWinEvent *result; | |
13975 | PyObject * obj0 = 0 ; | |
13976 | PyObject * obj1 = 0 ; | |
13977 | PyObject * obj2 = 0 ; | |
13978 | char *kwnames[] = { | |
13979 | (char *) "commandType",(char *) "pos",(char *) "orient", NULL | |
13980 | }; | |
13981 | ||
13982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13983 | if (obj0) { | |
c370783e | 13984 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
13985 | if (PyErr_Occurred()) SWIG_fail; |
13986 | } | |
13987 | if (obj1) { | |
c370783e | 13988 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
13989 | if (PyErr_Occurred()) SWIG_fail; |
13990 | } | |
13991 | if (obj2) { | |
c370783e | 13992 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
13993 | if (PyErr_Occurred()) SWIG_fail; |
13994 | } | |
13995 | { | |
13996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13997 | result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3); | |
13998 | ||
13999 | wxPyEndAllowThreads(__tstate); | |
14000 | if (PyErr_Occurred()) SWIG_fail; | |
14001 | } | |
14002 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1); | |
14003 | return resultobj; | |
14004 | fail: | |
14005 | return NULL; | |
14006 | } | |
14007 | ||
14008 | ||
c370783e | 14009 | static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14010 | PyObject *resultobj; |
14011 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
14012 | int result; | |
14013 | PyObject * obj0 = 0 ; | |
14014 | char *kwnames[] = { | |
14015 | (char *) "self", NULL | |
14016 | }; | |
14017 | ||
14018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail; | |
14019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
14020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14021 | { | |
14022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14023 | result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation(); | |
14024 | ||
14025 | wxPyEndAllowThreads(__tstate); | |
14026 | if (PyErr_Occurred()) SWIG_fail; | |
14027 | } | |
c370783e | 14028 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14029 | return resultobj; |
14030 | fail: | |
14031 | return NULL; | |
14032 | } | |
14033 | ||
14034 | ||
c370783e | 14035 | static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14036 | PyObject *resultobj; |
14037 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
14038 | int result; | |
14039 | PyObject * obj0 = 0 ; | |
14040 | char *kwnames[] = { | |
14041 | (char *) "self", NULL | |
14042 | }; | |
14043 | ||
14044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
14046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14047 | { | |
14048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14049 | result = (int)((wxScrollWinEvent const *)arg1)->GetPosition(); | |
14050 | ||
14051 | wxPyEndAllowThreads(__tstate); | |
14052 | if (PyErr_Occurred()) SWIG_fail; | |
14053 | } | |
c370783e | 14054 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14055 | return resultobj; |
14056 | fail: | |
14057 | return NULL; | |
14058 | } | |
14059 | ||
14060 | ||
c370783e | 14061 | static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14062 | PyObject *resultobj; |
14063 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
14064 | int arg2 ; | |
14065 | PyObject * obj0 = 0 ; | |
14066 | PyObject * obj1 = 0 ; | |
14067 | char *kwnames[] = { | |
14068 | (char *) "self",(char *) "orient", NULL | |
14069 | }; | |
14070 | ||
14071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
14072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
14073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14074 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14075 | if (PyErr_Occurred()) SWIG_fail; |
14076 | { | |
14077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14078 | (arg1)->SetOrientation(arg2); | |
14079 | ||
14080 | wxPyEndAllowThreads(__tstate); | |
14081 | if (PyErr_Occurred()) SWIG_fail; | |
14082 | } | |
14083 | Py_INCREF(Py_None); resultobj = Py_None; | |
14084 | return resultobj; | |
14085 | fail: | |
14086 | return NULL; | |
14087 | } | |
14088 | ||
14089 | ||
c370783e | 14090 | static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14091 | PyObject *resultobj; |
14092 | wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ; | |
14093 | int arg2 ; | |
14094 | PyObject * obj0 = 0 ; | |
14095 | PyObject * obj1 = 0 ; | |
14096 | char *kwnames[] = { | |
14097 | (char *) "self",(char *) "pos", NULL | |
14098 | }; | |
14099 | ||
14100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
14101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent, | |
14102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14103 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14104 | if (PyErr_Occurred()) SWIG_fail; |
14105 | { | |
14106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14107 | (arg1)->SetPosition(arg2); | |
14108 | ||
14109 | wxPyEndAllowThreads(__tstate); | |
14110 | if (PyErr_Occurred()) SWIG_fail; | |
14111 | } | |
14112 | Py_INCREF(Py_None); resultobj = Py_None; | |
14113 | return resultobj; | |
14114 | fail: | |
14115 | return NULL; | |
14116 | } | |
14117 | ||
14118 | ||
c370783e | 14119 | static PyObject * ScrollWinEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
14120 | PyObject *obj; |
14121 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14122 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj); | |
14123 | Py_INCREF(obj); | |
14124 | return Py_BuildValue((char *)""); | |
14125 | } | |
c370783e | 14126 | static PyObject *_wrap_new_MouseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14127 | PyObject *resultobj; |
14128 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14129 | wxMouseEvent *result; | |
14130 | PyObject * obj0 = 0 ; | |
14131 | char *kwnames[] = { | |
14132 | (char *) "mouseType", NULL | |
14133 | }; | |
14134 | ||
14135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail; | |
14136 | if (obj0) { | |
c370783e | 14137 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
14138 | if (PyErr_Occurred()) SWIG_fail; |
14139 | } | |
14140 | { | |
14141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14142 | result = (wxMouseEvent *)new wxMouseEvent(arg1); | |
14143 | ||
14144 | wxPyEndAllowThreads(__tstate); | |
14145 | if (PyErr_Occurred()) SWIG_fail; | |
14146 | } | |
14147 | { | |
412d302d | 14148 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
14149 | } |
14150 | return resultobj; | |
14151 | fail: | |
14152 | return NULL; | |
14153 | } | |
14154 | ||
14155 | ||
c370783e | 14156 | static PyObject *_wrap_MouseEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14157 | PyObject *resultobj; |
14158 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14159 | bool result; | |
14160 | PyObject * obj0 = 0 ; | |
14161 | char *kwnames[] = { | |
14162 | (char *) "self", NULL | |
14163 | }; | |
14164 | ||
14165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail; | |
14166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14168 | { | |
14169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14170 | result = (bool)((wxMouseEvent const *)arg1)->IsButton(); | |
14171 | ||
14172 | wxPyEndAllowThreads(__tstate); | |
14173 | if (PyErr_Occurred()) SWIG_fail; | |
14174 | } | |
14175 | { | |
14176 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14177 | } | |
14178 | return resultobj; | |
14179 | fail: | |
14180 | return NULL; | |
14181 | } | |
14182 | ||
14183 | ||
c370783e | 14184 | static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14185 | PyObject *resultobj; |
14186 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14187 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
14188 | bool result; | |
14189 | PyObject * obj0 = 0 ; | |
14190 | PyObject * obj1 = 0 ; | |
14191 | char *kwnames[] = { | |
14192 | (char *) "self",(char *) "but", NULL | |
14193 | }; | |
14194 | ||
14195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail; | |
14196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14198 | if (obj1) { | |
c370783e | 14199 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14200 | if (PyErr_Occurred()) SWIG_fail; |
14201 | } | |
14202 | { | |
14203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14204 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2); | |
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_ButtonDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14219 | PyObject *resultobj; |
14220 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14221 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
14222 | bool result; | |
14223 | PyObject * obj0 = 0 ; | |
14224 | PyObject * obj1 = 0 ; | |
14225 | char *kwnames[] = { | |
14226 | (char *) "self",(char *) "but", NULL | |
14227 | }; | |
14228 | ||
14229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail; | |
14230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14232 | if (obj1) { | |
c370783e | 14233 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14234 | if (PyErr_Occurred()) SWIG_fail; |
14235 | } | |
14236 | { | |
14237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14238 | result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2); | |
14239 | ||
14240 | wxPyEndAllowThreads(__tstate); | |
14241 | if (PyErr_Occurred()) SWIG_fail; | |
14242 | } | |
14243 | { | |
14244 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14245 | } | |
14246 | return resultobj; | |
14247 | fail: | |
14248 | return NULL; | |
14249 | } | |
14250 | ||
14251 | ||
c370783e | 14252 | static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14253 | PyObject *resultobj; |
14254 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14255 | int arg2 = (int) wxMOUSE_BTN_ANY ; | |
14256 | bool result; | |
14257 | PyObject * obj0 = 0 ; | |
14258 | PyObject * obj1 = 0 ; | |
14259 | char *kwnames[] = { | |
14260 | (char *) "self",(char *) "but", NULL | |
14261 | }; | |
14262 | ||
14263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail; | |
14264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14266 | if (obj1) { | |
c370783e | 14267 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14268 | if (PyErr_Occurred()) SWIG_fail; |
14269 | } | |
14270 | { | |
14271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14272 | result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2); | |
14273 | ||
14274 | wxPyEndAllowThreads(__tstate); | |
14275 | if (PyErr_Occurred()) SWIG_fail; | |
14276 | } | |
14277 | { | |
14278 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14279 | } | |
14280 | return resultobj; | |
14281 | fail: | |
14282 | return NULL; | |
14283 | } | |
14284 | ||
14285 | ||
c370783e | 14286 | static PyObject *_wrap_MouseEvent_Button(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14287 | PyObject *resultobj; |
14288 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14289 | int arg2 ; | |
14290 | bool result; | |
14291 | PyObject * obj0 = 0 ; | |
14292 | PyObject * obj1 = 0 ; | |
14293 | char *kwnames[] = { | |
14294 | (char *) "self",(char *) "but", NULL | |
14295 | }; | |
14296 | ||
14297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail; | |
14298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14300 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14301 | if (PyErr_Occurred()) SWIG_fail; |
14302 | { | |
14303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14304 | result = (bool)((wxMouseEvent const *)arg1)->Button(arg2); | |
14305 | ||
14306 | wxPyEndAllowThreads(__tstate); | |
14307 | if (PyErr_Occurred()) SWIG_fail; | |
14308 | } | |
14309 | { | |
14310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14311 | } | |
14312 | return resultobj; | |
14313 | fail: | |
14314 | return NULL; | |
14315 | } | |
14316 | ||
14317 | ||
c370783e | 14318 | static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14319 | PyObject *resultobj; |
14320 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14321 | int arg2 ; | |
14322 | bool result; | |
14323 | PyObject * obj0 = 0 ; | |
14324 | PyObject * obj1 = 0 ; | |
14325 | char *kwnames[] = { | |
14326 | (char *) "self",(char *) "but", NULL | |
14327 | }; | |
14328 | ||
14329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail; | |
14330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 14332 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
14333 | if (PyErr_Occurred()) SWIG_fail; |
14334 | { | |
14335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14336 | result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2); | |
14337 | ||
14338 | wxPyEndAllowThreads(__tstate); | |
14339 | if (PyErr_Occurred()) SWIG_fail; | |
14340 | } | |
14341 | { | |
14342 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14343 | } | |
14344 | return resultobj; | |
14345 | fail: | |
14346 | return NULL; | |
14347 | } | |
14348 | ||
14349 | ||
c370783e | 14350 | static PyObject *_wrap_MouseEvent_GetButton(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14351 | PyObject *resultobj; |
14352 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14353 | int result; | |
14354 | PyObject * obj0 = 0 ; | |
14355 | char *kwnames[] = { | |
14356 | (char *) "self", NULL | |
14357 | }; | |
14358 | ||
14359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail; | |
14360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14362 | { | |
14363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14364 | result = (int)((wxMouseEvent const *)arg1)->GetButton(); | |
14365 | ||
14366 | wxPyEndAllowThreads(__tstate); | |
14367 | if (PyErr_Occurred()) SWIG_fail; | |
14368 | } | |
c370783e | 14369 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
14370 | return resultobj; |
14371 | fail: | |
14372 | return NULL; | |
14373 | } | |
14374 | ||
14375 | ||
c370783e | 14376 | static PyObject *_wrap_MouseEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14377 | PyObject *resultobj; |
14378 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14379 | bool result; | |
14380 | PyObject * obj0 = 0 ; | |
14381 | char *kwnames[] = { | |
14382 | (char *) "self", NULL | |
14383 | }; | |
14384 | ||
14385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail; | |
14386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14388 | { | |
14389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14390 | result = (bool)((wxMouseEvent const *)arg1)->ControlDown(); | |
14391 | ||
14392 | wxPyEndAllowThreads(__tstate); | |
14393 | if (PyErr_Occurred()) SWIG_fail; | |
14394 | } | |
14395 | { | |
14396 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14397 | } | |
14398 | return resultobj; | |
14399 | fail: | |
14400 | return NULL; | |
14401 | } | |
14402 | ||
14403 | ||
c370783e | 14404 | static PyObject *_wrap_MouseEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14405 | PyObject *resultobj; |
14406 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14407 | bool result; | |
14408 | PyObject * obj0 = 0 ; | |
14409 | char *kwnames[] = { | |
14410 | (char *) "self", NULL | |
14411 | }; | |
14412 | ||
14413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail; | |
14414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14416 | { | |
14417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14418 | result = (bool)((wxMouseEvent const *)arg1)->MetaDown(); | |
14419 | ||
14420 | wxPyEndAllowThreads(__tstate); | |
14421 | if (PyErr_Occurred()) SWIG_fail; | |
14422 | } | |
14423 | { | |
14424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14425 | } | |
14426 | return resultobj; | |
14427 | fail: | |
14428 | return NULL; | |
14429 | } | |
14430 | ||
14431 | ||
c370783e | 14432 | static PyObject *_wrap_MouseEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14433 | PyObject *resultobj; |
14434 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14435 | bool result; | |
14436 | PyObject * obj0 = 0 ; | |
14437 | char *kwnames[] = { | |
14438 | (char *) "self", NULL | |
14439 | }; | |
14440 | ||
14441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail; | |
14442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14444 | { | |
14445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14446 | result = (bool)((wxMouseEvent const *)arg1)->AltDown(); | |
14447 | ||
14448 | wxPyEndAllowThreads(__tstate); | |
14449 | if (PyErr_Occurred()) SWIG_fail; | |
14450 | } | |
14451 | { | |
14452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14453 | } | |
14454 | return resultobj; | |
14455 | fail: | |
14456 | return NULL; | |
14457 | } | |
14458 | ||
14459 | ||
c370783e | 14460 | static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14461 | PyObject *resultobj; |
14462 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14463 | bool result; | |
14464 | PyObject * obj0 = 0 ; | |
14465 | char *kwnames[] = { | |
14466 | (char *) "self", NULL | |
14467 | }; | |
14468 | ||
14469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
14470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14472 | { | |
14473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14474 | result = (bool)((wxMouseEvent const *)arg1)->ShiftDown(); | |
14475 | ||
14476 | wxPyEndAllowThreads(__tstate); | |
14477 | if (PyErr_Occurred()) SWIG_fail; | |
14478 | } | |
14479 | { | |
14480 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14481 | } | |
14482 | return resultobj; | |
14483 | fail: | |
14484 | return NULL; | |
14485 | } | |
14486 | ||
14487 | ||
c370783e | 14488 | static PyObject *_wrap_MouseEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) { |
412d302d RD |
14489 | PyObject *resultobj; |
14490 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14491 | bool result; | |
14492 | PyObject * obj0 = 0 ; | |
14493 | char *kwnames[] = { | |
14494 | (char *) "self", NULL | |
14495 | }; | |
14496 | ||
14497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_CmdDown",kwnames,&obj0)) goto fail; | |
14498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14500 | { | |
14501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14502 | result = (bool)((wxMouseEvent const *)arg1)->CmdDown(); | |
14503 | ||
14504 | wxPyEndAllowThreads(__tstate); | |
14505 | if (PyErr_Occurred()) SWIG_fail; | |
14506 | } | |
14507 | { | |
14508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14509 | } | |
14510 | return resultobj; | |
14511 | fail: | |
14512 | return NULL; | |
14513 | } | |
14514 | ||
14515 | ||
c370783e | 14516 | static PyObject *_wrap_MouseEvent_LeftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14517 | PyObject *resultobj; |
14518 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14519 | bool result; | |
14520 | PyObject * obj0 = 0 ; | |
14521 | char *kwnames[] = { | |
14522 | (char *) "self", NULL | |
14523 | }; | |
14524 | ||
14525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail; | |
14526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14528 | { | |
14529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14530 | result = (bool)((wxMouseEvent const *)arg1)->LeftDown(); | |
14531 | ||
14532 | wxPyEndAllowThreads(__tstate); | |
14533 | if (PyErr_Occurred()) SWIG_fail; | |
14534 | } | |
14535 | { | |
14536 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14537 | } | |
14538 | return resultobj; | |
14539 | fail: | |
14540 | return NULL; | |
14541 | } | |
14542 | ||
14543 | ||
c370783e | 14544 | static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14545 | PyObject *resultobj; |
14546 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14547 | bool result; | |
14548 | PyObject * obj0 = 0 ; | |
14549 | char *kwnames[] = { | |
14550 | (char *) "self", NULL | |
14551 | }; | |
14552 | ||
14553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail; | |
14554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14556 | { | |
14557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14558 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDown(); | |
14559 | ||
14560 | wxPyEndAllowThreads(__tstate); | |
14561 | if (PyErr_Occurred()) SWIG_fail; | |
14562 | } | |
14563 | { | |
14564 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14565 | } | |
14566 | return resultobj; | |
14567 | fail: | |
14568 | return NULL; | |
14569 | } | |
14570 | ||
14571 | ||
c370783e | 14572 | static PyObject *_wrap_MouseEvent_RightDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14573 | PyObject *resultobj; |
14574 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14575 | bool result; | |
14576 | PyObject * obj0 = 0 ; | |
14577 | char *kwnames[] = { | |
14578 | (char *) "self", NULL | |
14579 | }; | |
14580 | ||
14581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail; | |
14582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14584 | { | |
14585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14586 | result = (bool)((wxMouseEvent const *)arg1)->RightDown(); | |
14587 | ||
14588 | wxPyEndAllowThreads(__tstate); | |
14589 | if (PyErr_Occurred()) SWIG_fail; | |
14590 | } | |
14591 | { | |
14592 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14593 | } | |
14594 | return resultobj; | |
14595 | fail: | |
14596 | return NULL; | |
14597 | } | |
14598 | ||
14599 | ||
c370783e | 14600 | static PyObject *_wrap_MouseEvent_LeftUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14601 | PyObject *resultobj; |
14602 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14603 | bool result; | |
14604 | PyObject * obj0 = 0 ; | |
14605 | char *kwnames[] = { | |
14606 | (char *) "self", NULL | |
14607 | }; | |
14608 | ||
14609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail; | |
14610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14612 | { | |
14613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14614 | result = (bool)((wxMouseEvent const *)arg1)->LeftUp(); | |
14615 | ||
14616 | wxPyEndAllowThreads(__tstate); | |
14617 | if (PyErr_Occurred()) SWIG_fail; | |
14618 | } | |
14619 | { | |
14620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14621 | } | |
14622 | return resultobj; | |
14623 | fail: | |
14624 | return NULL; | |
14625 | } | |
14626 | ||
14627 | ||
c370783e | 14628 | static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14629 | PyObject *resultobj; |
14630 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14631 | bool result; | |
14632 | PyObject * obj0 = 0 ; | |
14633 | char *kwnames[] = { | |
14634 | (char *) "self", NULL | |
14635 | }; | |
14636 | ||
14637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail; | |
14638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14640 | { | |
14641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14642 | result = (bool)((wxMouseEvent const *)arg1)->MiddleUp(); | |
14643 | ||
14644 | wxPyEndAllowThreads(__tstate); | |
14645 | if (PyErr_Occurred()) SWIG_fail; | |
14646 | } | |
14647 | { | |
14648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14649 | } | |
14650 | return resultobj; | |
14651 | fail: | |
14652 | return NULL; | |
14653 | } | |
14654 | ||
14655 | ||
c370783e | 14656 | static PyObject *_wrap_MouseEvent_RightUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14657 | PyObject *resultobj; |
14658 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14659 | bool result; | |
14660 | PyObject * obj0 = 0 ; | |
14661 | char *kwnames[] = { | |
14662 | (char *) "self", NULL | |
14663 | }; | |
14664 | ||
14665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail; | |
14666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14668 | { | |
14669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14670 | result = (bool)((wxMouseEvent const *)arg1)->RightUp(); | |
14671 | ||
14672 | wxPyEndAllowThreads(__tstate); | |
14673 | if (PyErr_Occurred()) SWIG_fail; | |
14674 | } | |
14675 | { | |
14676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14677 | } | |
14678 | return resultobj; | |
14679 | fail: | |
14680 | return NULL; | |
14681 | } | |
14682 | ||
14683 | ||
c370783e | 14684 | static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14685 | PyObject *resultobj; |
14686 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14687 | bool result; | |
14688 | PyObject * obj0 = 0 ; | |
14689 | char *kwnames[] = { | |
14690 | (char *) "self", NULL | |
14691 | }; | |
14692 | ||
14693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail; | |
14694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14696 | { | |
14697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14698 | result = (bool)((wxMouseEvent const *)arg1)->LeftDClick(); | |
14699 | ||
14700 | wxPyEndAllowThreads(__tstate); | |
14701 | if (PyErr_Occurred()) SWIG_fail; | |
14702 | } | |
14703 | { | |
14704 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14705 | } | |
14706 | return resultobj; | |
14707 | fail: | |
14708 | return NULL; | |
14709 | } | |
14710 | ||
14711 | ||
c370783e | 14712 | static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14713 | PyObject *resultobj; |
14714 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14715 | bool result; | |
14716 | PyObject * obj0 = 0 ; | |
14717 | char *kwnames[] = { | |
14718 | (char *) "self", NULL | |
14719 | }; | |
14720 | ||
14721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail; | |
14722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14724 | { | |
14725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14726 | result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick(); | |
14727 | ||
14728 | wxPyEndAllowThreads(__tstate); | |
14729 | if (PyErr_Occurred()) SWIG_fail; | |
14730 | } | |
14731 | { | |
14732 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14733 | } | |
14734 | return resultobj; | |
14735 | fail: | |
14736 | return NULL; | |
14737 | } | |
14738 | ||
14739 | ||
c370783e | 14740 | static PyObject *_wrap_MouseEvent_RightDClick(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14741 | PyObject *resultobj; |
14742 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14743 | bool result; | |
14744 | PyObject * obj0 = 0 ; | |
14745 | char *kwnames[] = { | |
14746 | (char *) "self", NULL | |
14747 | }; | |
14748 | ||
14749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail; | |
14750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14752 | { | |
14753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14754 | result = (bool)((wxMouseEvent const *)arg1)->RightDClick(); | |
14755 | ||
14756 | wxPyEndAllowThreads(__tstate); | |
14757 | if (PyErr_Occurred()) SWIG_fail; | |
14758 | } | |
14759 | { | |
14760 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14761 | } | |
14762 | return resultobj; | |
14763 | fail: | |
14764 | return NULL; | |
14765 | } | |
14766 | ||
14767 | ||
c370783e | 14768 | static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14769 | PyObject *resultobj; |
14770 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14771 | bool result; | |
14772 | PyObject * obj0 = 0 ; | |
14773 | char *kwnames[] = { | |
14774 | (char *) "self", NULL | |
14775 | }; | |
14776 | ||
14777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail; | |
14778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14780 | { | |
14781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14782 | result = (bool)(arg1)->LeftIsDown(); | |
14783 | ||
14784 | wxPyEndAllowThreads(__tstate); | |
14785 | if (PyErr_Occurred()) SWIG_fail; | |
14786 | } | |
14787 | { | |
14788 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14789 | } | |
14790 | return resultobj; | |
14791 | fail: | |
14792 | return NULL; | |
14793 | } | |
14794 | ||
14795 | ||
c370783e | 14796 | static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14797 | PyObject *resultobj; |
14798 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14799 | bool result; | |
14800 | PyObject * obj0 = 0 ; | |
14801 | char *kwnames[] = { | |
14802 | (char *) "self", NULL | |
14803 | }; | |
14804 | ||
14805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail; | |
14806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14808 | { | |
14809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14810 | result = (bool)(arg1)->MiddleIsDown(); | |
14811 | ||
14812 | wxPyEndAllowThreads(__tstate); | |
14813 | if (PyErr_Occurred()) SWIG_fail; | |
14814 | } | |
14815 | { | |
14816 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14817 | } | |
14818 | return resultobj; | |
14819 | fail: | |
14820 | return NULL; | |
14821 | } | |
14822 | ||
14823 | ||
c370783e | 14824 | static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14825 | PyObject *resultobj; |
14826 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14827 | bool result; | |
14828 | PyObject * obj0 = 0 ; | |
14829 | char *kwnames[] = { | |
14830 | (char *) "self", NULL | |
14831 | }; | |
14832 | ||
14833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail; | |
14834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14836 | { | |
14837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14838 | result = (bool)(arg1)->RightIsDown(); | |
14839 | ||
14840 | wxPyEndAllowThreads(__tstate); | |
14841 | if (PyErr_Occurred()) SWIG_fail; | |
14842 | } | |
14843 | { | |
14844 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14845 | } | |
14846 | return resultobj; | |
14847 | fail: | |
14848 | return NULL; | |
14849 | } | |
14850 | ||
14851 | ||
c370783e | 14852 | static PyObject *_wrap_MouseEvent_Dragging(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14853 | PyObject *resultobj; |
14854 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14855 | bool result; | |
14856 | PyObject * obj0 = 0 ; | |
14857 | char *kwnames[] = { | |
14858 | (char *) "self", NULL | |
14859 | }; | |
14860 | ||
14861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail; | |
14862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14864 | { | |
14865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14866 | result = (bool)((wxMouseEvent const *)arg1)->Dragging(); | |
14867 | ||
14868 | wxPyEndAllowThreads(__tstate); | |
14869 | if (PyErr_Occurred()) SWIG_fail; | |
14870 | } | |
14871 | { | |
14872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14873 | } | |
14874 | return resultobj; | |
14875 | fail: | |
14876 | return NULL; | |
14877 | } | |
14878 | ||
14879 | ||
c370783e | 14880 | static PyObject *_wrap_MouseEvent_Moving(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14881 | PyObject *resultobj; |
14882 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14883 | bool result; | |
14884 | PyObject * obj0 = 0 ; | |
14885 | char *kwnames[] = { | |
14886 | (char *) "self", NULL | |
14887 | }; | |
14888 | ||
14889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",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 = (bool)((wxMouseEvent const *)arg1)->Moving(); | |
14895 | ||
14896 | wxPyEndAllowThreads(__tstate); | |
14897 | if (PyErr_Occurred()) SWIG_fail; | |
14898 | } | |
14899 | { | |
14900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14901 | } | |
14902 | return resultobj; | |
14903 | fail: | |
14904 | return NULL; | |
14905 | } | |
14906 | ||
14907 | ||
c370783e | 14908 | static PyObject *_wrap_MouseEvent_Entering(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14909 | PyObject *resultobj; |
14910 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14911 | bool result; | |
14912 | PyObject * obj0 = 0 ; | |
14913 | char *kwnames[] = { | |
14914 | (char *) "self", NULL | |
14915 | }; | |
14916 | ||
14917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail; | |
14918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14920 | { | |
14921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14922 | result = (bool)((wxMouseEvent const *)arg1)->Entering(); | |
14923 | ||
14924 | wxPyEndAllowThreads(__tstate); | |
14925 | if (PyErr_Occurred()) SWIG_fail; | |
14926 | } | |
14927 | { | |
14928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14929 | } | |
14930 | return resultobj; | |
14931 | fail: | |
14932 | return NULL; | |
14933 | } | |
14934 | ||
14935 | ||
c370783e | 14936 | static PyObject *_wrap_MouseEvent_Leaving(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14937 | PyObject *resultobj; |
14938 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14939 | bool result; | |
14940 | PyObject * obj0 = 0 ; | |
14941 | char *kwnames[] = { | |
14942 | (char *) "self", NULL | |
14943 | }; | |
14944 | ||
14945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail; | |
14946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14948 | { | |
14949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14950 | result = (bool)((wxMouseEvent const *)arg1)->Leaving(); | |
14951 | ||
14952 | wxPyEndAllowThreads(__tstate); | |
14953 | if (PyErr_Occurred()) SWIG_fail; | |
14954 | } | |
14955 | { | |
14956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14957 | } | |
14958 | return resultobj; | |
14959 | fail: | |
14960 | return NULL; | |
14961 | } | |
14962 | ||
14963 | ||
c370783e | 14964 | static PyObject *_wrap_MouseEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14965 | PyObject *resultobj; |
14966 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14967 | wxPoint result; | |
14968 | PyObject * obj0 = 0 ; | |
14969 | char *kwnames[] = { | |
14970 | (char *) "self", NULL | |
14971 | }; | |
14972 | ||
14973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail; | |
14974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
14975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14976 | { | |
14977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14978 | result = (arg1)->GetPosition(); | |
14979 | ||
14980 | wxPyEndAllowThreads(__tstate); | |
14981 | if (PyErr_Occurred()) SWIG_fail; | |
14982 | } | |
14983 | { | |
14984 | wxPoint * resultptr; | |
14985 | resultptr = new wxPoint((wxPoint &) result); | |
14986 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
14987 | } | |
14988 | return resultobj; | |
14989 | fail: | |
14990 | return NULL; | |
14991 | } | |
14992 | ||
14993 | ||
c370783e | 14994 | static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
14995 | PyObject *resultobj; |
14996 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
14997 | long *arg2 = (long *) 0 ; | |
14998 | long *arg3 = (long *) 0 ; | |
14999 | long temp2 ; | |
c370783e | 15000 | int res2 = 0 ; |
d55e5bfc | 15001 | long temp3 ; |
c370783e | 15002 | int res3 = 0 ; |
d55e5bfc RD |
15003 | PyObject * obj0 = 0 ; |
15004 | char *kwnames[] = { | |
15005 | (char *) "self", NULL | |
15006 | }; | |
15007 | ||
c370783e RD |
15008 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
15009 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
15010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail; |
15011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15013 | { | |
15014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15015 | (arg1)->GetPosition(arg2,arg3); | |
15016 | ||
15017 | wxPyEndAllowThreads(__tstate); | |
15018 | if (PyErr_Occurred()) SWIG_fail; | |
15019 | } | |
15020 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
15021 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
15022 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
15023 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
15024 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
15025 | return resultobj; |
15026 | fail: | |
15027 | return NULL; | |
15028 | } | |
15029 | ||
15030 | ||
c370783e | 15031 | static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15032 | PyObject *resultobj; |
15033 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15034 | wxDC *arg2 = 0 ; | |
15035 | wxPoint result; | |
15036 | PyObject * obj0 = 0 ; | |
15037 | PyObject * obj1 = 0 ; | |
15038 | char *kwnames[] = { | |
15039 | (char *) "self",(char *) "dc", NULL | |
15040 | }; | |
15041 | ||
15042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail; | |
15043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15045 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
15046 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15047 | SWIG_fail; | |
15048 | if (arg2 == NULL) { | |
15049 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15050 | SWIG_fail; | |
15051 | } | |
15052 | { | |
15053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15054 | result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2); | |
15055 | ||
15056 | wxPyEndAllowThreads(__tstate); | |
15057 | if (PyErr_Occurred()) SWIG_fail; | |
15058 | } | |
15059 | { | |
15060 | wxPoint * resultptr; | |
15061 | resultptr = new wxPoint((wxPoint &) result); | |
15062 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
15063 | } | |
15064 | return resultobj; | |
15065 | fail: | |
15066 | return NULL; | |
15067 | } | |
15068 | ||
15069 | ||
c370783e | 15070 | static PyObject *_wrap_MouseEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15071 | PyObject *resultobj; |
15072 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15073 | int result; | |
15074 | PyObject * obj0 = 0 ; | |
15075 | char *kwnames[] = { | |
15076 | (char *) "self", NULL | |
15077 | }; | |
15078 | ||
15079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail; | |
15080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15082 | { | |
15083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15084 | result = (int)((wxMouseEvent const *)arg1)->GetX(); | |
15085 | ||
15086 | wxPyEndAllowThreads(__tstate); | |
15087 | if (PyErr_Occurred()) SWIG_fail; | |
15088 | } | |
c370783e | 15089 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15090 | return resultobj; |
15091 | fail: | |
15092 | return NULL; | |
15093 | } | |
15094 | ||
15095 | ||
c370783e | 15096 | static PyObject *_wrap_MouseEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15097 | PyObject *resultobj; |
15098 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15099 | int result; | |
15100 | PyObject * obj0 = 0 ; | |
15101 | char *kwnames[] = { | |
15102 | (char *) "self", NULL | |
15103 | }; | |
15104 | ||
15105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail; | |
15106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15108 | { | |
15109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15110 | result = (int)((wxMouseEvent const *)arg1)->GetY(); | |
15111 | ||
15112 | wxPyEndAllowThreads(__tstate); | |
15113 | if (PyErr_Occurred()) SWIG_fail; | |
15114 | } | |
c370783e | 15115 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15116 | return resultobj; |
15117 | fail: | |
15118 | return NULL; | |
15119 | } | |
15120 | ||
15121 | ||
c370783e | 15122 | static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15123 | PyObject *resultobj; |
15124 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15125 | int result; | |
15126 | PyObject * obj0 = 0 ; | |
15127 | char *kwnames[] = { | |
15128 | (char *) "self", NULL | |
15129 | }; | |
15130 | ||
15131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail; | |
15132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15134 | { | |
15135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15136 | result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation(); | |
15137 | ||
15138 | wxPyEndAllowThreads(__tstate); | |
15139 | if (PyErr_Occurred()) SWIG_fail; | |
15140 | } | |
c370783e | 15141 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15142 | return resultobj; |
15143 | fail: | |
15144 | return NULL; | |
15145 | } | |
15146 | ||
15147 | ||
c370783e | 15148 | static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15149 | PyObject *resultobj; |
15150 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15151 | int result; | |
15152 | PyObject * obj0 = 0 ; | |
15153 | char *kwnames[] = { | |
15154 | (char *) "self", NULL | |
15155 | }; | |
15156 | ||
15157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail; | |
15158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15160 | { | |
15161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15162 | result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta(); | |
15163 | ||
15164 | wxPyEndAllowThreads(__tstate); | |
15165 | if (PyErr_Occurred()) SWIG_fail; | |
15166 | } | |
c370783e | 15167 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15168 | return resultobj; |
15169 | fail: | |
15170 | return NULL; | |
15171 | } | |
15172 | ||
15173 | ||
c370783e | 15174 | static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15175 | PyObject *resultobj; |
15176 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15177 | int result; | |
15178 | PyObject * obj0 = 0 ; | |
15179 | char *kwnames[] = { | |
15180 | (char *) "self", NULL | |
15181 | }; | |
15182 | ||
15183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail; | |
15184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15186 | { | |
15187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15188 | result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction(); | |
15189 | ||
15190 | wxPyEndAllowThreads(__tstate); | |
15191 | if (PyErr_Occurred()) SWIG_fail; | |
15192 | } | |
c370783e | 15193 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15194 | return resultobj; |
15195 | fail: | |
15196 | return NULL; | |
15197 | } | |
15198 | ||
15199 | ||
c370783e | 15200 | static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15201 | PyObject *resultobj; |
15202 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15203 | bool result; | |
15204 | PyObject * obj0 = 0 ; | |
15205 | char *kwnames[] = { | |
15206 | (char *) "self", NULL | |
15207 | }; | |
15208 | ||
15209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail; | |
15210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15212 | { | |
15213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15214 | result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll(); | |
15215 | ||
15216 | wxPyEndAllowThreads(__tstate); | |
15217 | if (PyErr_Occurred()) SWIG_fail; | |
15218 | } | |
15219 | { | |
15220 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15221 | } | |
15222 | return resultobj; | |
15223 | fail: | |
15224 | return NULL; | |
15225 | } | |
15226 | ||
15227 | ||
c370783e | 15228 | static PyObject *_wrap_MouseEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15229 | PyObject *resultobj; |
15230 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15231 | int arg2 ; | |
15232 | PyObject * obj0 = 0 ; | |
15233 | PyObject * obj1 = 0 ; | |
15234 | char *kwnames[] = { | |
15235 | (char *) "self",(char *) "m_x", NULL | |
15236 | }; | |
15237 | ||
15238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
15239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15241 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15242 | if (PyErr_Occurred()) SWIG_fail; |
15243 | if (arg1) (arg1)->m_x = arg2; | |
15244 | ||
15245 | Py_INCREF(Py_None); resultobj = Py_None; | |
15246 | return resultobj; | |
15247 | fail: | |
15248 | return NULL; | |
15249 | } | |
15250 | ||
15251 | ||
c370783e | 15252 | static PyObject *_wrap_MouseEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15253 | PyObject *resultobj; |
15254 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15255 | int result; | |
15256 | PyObject * obj0 = 0 ; | |
15257 | char *kwnames[] = { | |
15258 | (char *) "self", NULL | |
15259 | }; | |
15260 | ||
15261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail; | |
15262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15264 | result = (int) ((arg1)->m_x); | |
15265 | ||
c370783e | 15266 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15267 | return resultobj; |
15268 | fail: | |
15269 | return NULL; | |
15270 | } | |
15271 | ||
15272 | ||
c370783e | 15273 | static PyObject *_wrap_MouseEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15274 | PyObject *resultobj; |
15275 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15276 | int arg2 ; | |
15277 | PyObject * obj0 = 0 ; | |
15278 | PyObject * obj1 = 0 ; | |
15279 | char *kwnames[] = { | |
15280 | (char *) "self",(char *) "m_y", NULL | |
15281 | }; | |
15282 | ||
15283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
15284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15286 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15287 | if (PyErr_Occurred()) SWIG_fail; |
15288 | if (arg1) (arg1)->m_y = arg2; | |
15289 | ||
15290 | Py_INCREF(Py_None); resultobj = Py_None; | |
15291 | return resultobj; | |
15292 | fail: | |
15293 | return NULL; | |
15294 | } | |
15295 | ||
15296 | ||
c370783e | 15297 | static PyObject *_wrap_MouseEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15298 | PyObject *resultobj; |
15299 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15300 | int result; | |
15301 | PyObject * obj0 = 0 ; | |
15302 | char *kwnames[] = { | |
15303 | (char *) "self", NULL | |
15304 | }; | |
15305 | ||
15306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail; | |
15307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15309 | result = (int) ((arg1)->m_y); | |
15310 | ||
c370783e | 15311 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15312 | return resultobj; |
15313 | fail: | |
15314 | return NULL; | |
15315 | } | |
15316 | ||
15317 | ||
c370783e | 15318 | static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15319 | PyObject *resultobj; |
15320 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15321 | bool arg2 ; | |
15322 | PyObject * obj0 = 0 ; | |
15323 | PyObject * obj1 = 0 ; | |
15324 | char *kwnames[] = { | |
15325 | (char *) "self",(char *) "m_leftDown", NULL | |
15326 | }; | |
15327 | ||
15328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15331 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15332 | if (PyErr_Occurred()) SWIG_fail; |
15333 | if (arg1) (arg1)->m_leftDown = arg2; | |
15334 | ||
15335 | Py_INCREF(Py_None); resultobj = Py_None; | |
15336 | return resultobj; | |
15337 | fail: | |
15338 | return NULL; | |
15339 | } | |
15340 | ||
15341 | ||
c370783e | 15342 | static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15343 | PyObject *resultobj; |
15344 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15345 | bool result; | |
15346 | PyObject * obj0 = 0 ; | |
15347 | char *kwnames[] = { | |
15348 | (char *) "self", NULL | |
15349 | }; | |
15350 | ||
15351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail; | |
15352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15354 | result = (bool) ((arg1)->m_leftDown); | |
15355 | ||
15356 | { | |
15357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15358 | } | |
15359 | return resultobj; | |
15360 | fail: | |
15361 | return NULL; | |
15362 | } | |
15363 | ||
15364 | ||
c370783e | 15365 | static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15366 | PyObject *resultobj; |
15367 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15368 | bool arg2 ; | |
15369 | PyObject * obj0 = 0 ; | |
15370 | PyObject * obj1 = 0 ; | |
15371 | char *kwnames[] = { | |
15372 | (char *) "self",(char *) "m_middleDown", NULL | |
15373 | }; | |
15374 | ||
15375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15378 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15379 | if (PyErr_Occurred()) SWIG_fail; |
15380 | if (arg1) (arg1)->m_middleDown = arg2; | |
15381 | ||
15382 | Py_INCREF(Py_None); resultobj = Py_None; | |
15383 | return resultobj; | |
15384 | fail: | |
15385 | return NULL; | |
15386 | } | |
15387 | ||
15388 | ||
c370783e | 15389 | static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15390 | PyObject *resultobj; |
15391 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15392 | bool result; | |
15393 | PyObject * obj0 = 0 ; | |
15394 | char *kwnames[] = { | |
15395 | (char *) "self", NULL | |
15396 | }; | |
15397 | ||
15398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail; | |
15399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15401 | result = (bool) ((arg1)->m_middleDown); | |
15402 | ||
15403 | { | |
15404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15405 | } | |
15406 | return resultobj; | |
15407 | fail: | |
15408 | return NULL; | |
15409 | } | |
15410 | ||
15411 | ||
c370783e | 15412 | static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15413 | PyObject *resultobj; |
15414 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15415 | bool arg2 ; | |
15416 | PyObject * obj0 = 0 ; | |
15417 | PyObject * obj1 = 0 ; | |
15418 | char *kwnames[] = { | |
15419 | (char *) "self",(char *) "m_rightDown", NULL | |
15420 | }; | |
15421 | ||
15422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15425 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15426 | if (PyErr_Occurred()) SWIG_fail; |
15427 | if (arg1) (arg1)->m_rightDown = arg2; | |
15428 | ||
15429 | Py_INCREF(Py_None); resultobj = Py_None; | |
15430 | return resultobj; | |
15431 | fail: | |
15432 | return NULL; | |
15433 | } | |
15434 | ||
15435 | ||
c370783e | 15436 | static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15437 | PyObject *resultobj; |
15438 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15439 | bool result; | |
15440 | PyObject * obj0 = 0 ; | |
15441 | char *kwnames[] = { | |
15442 | (char *) "self", NULL | |
15443 | }; | |
15444 | ||
15445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail; | |
15446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15448 | result = (bool) ((arg1)->m_rightDown); | |
15449 | ||
15450 | { | |
15451 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15452 | } | |
15453 | return resultobj; | |
15454 | fail: | |
15455 | return NULL; | |
15456 | } | |
15457 | ||
15458 | ||
c370783e | 15459 | static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15460 | PyObject *resultobj; |
15461 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15462 | bool arg2 ; | |
15463 | PyObject * obj0 = 0 ; | |
15464 | PyObject * obj1 = 0 ; | |
15465 | char *kwnames[] = { | |
15466 | (char *) "self",(char *) "m_controlDown", NULL | |
15467 | }; | |
15468 | ||
15469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15472 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15473 | if (PyErr_Occurred()) SWIG_fail; |
15474 | if (arg1) (arg1)->m_controlDown = arg2; | |
15475 | ||
15476 | Py_INCREF(Py_None); resultobj = Py_None; | |
15477 | return resultobj; | |
15478 | fail: | |
15479 | return NULL; | |
15480 | } | |
15481 | ||
15482 | ||
c370783e | 15483 | static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15484 | PyObject *resultobj; |
15485 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15486 | bool result; | |
15487 | PyObject * obj0 = 0 ; | |
15488 | char *kwnames[] = { | |
15489 | (char *) "self", NULL | |
15490 | }; | |
15491 | ||
15492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
15493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15495 | result = (bool) ((arg1)->m_controlDown); | |
15496 | ||
15497 | { | |
15498 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15499 | } | |
15500 | return resultobj; | |
15501 | fail: | |
15502 | return NULL; | |
15503 | } | |
15504 | ||
15505 | ||
c370783e | 15506 | static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15507 | PyObject *resultobj; |
15508 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15509 | bool arg2 ; | |
15510 | PyObject * obj0 = 0 ; | |
15511 | PyObject * obj1 = 0 ; | |
15512 | char *kwnames[] = { | |
15513 | (char *) "self",(char *) "m_shiftDown", NULL | |
15514 | }; | |
15515 | ||
15516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15519 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15520 | if (PyErr_Occurred()) SWIG_fail; |
15521 | if (arg1) (arg1)->m_shiftDown = arg2; | |
15522 | ||
15523 | Py_INCREF(Py_None); resultobj = Py_None; | |
15524 | return resultobj; | |
15525 | fail: | |
15526 | return NULL; | |
15527 | } | |
15528 | ||
15529 | ||
c370783e | 15530 | static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15531 | PyObject *resultobj; |
15532 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15533 | bool result; | |
15534 | PyObject * obj0 = 0 ; | |
15535 | char *kwnames[] = { | |
15536 | (char *) "self", NULL | |
15537 | }; | |
15538 | ||
15539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
15540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15542 | result = (bool) ((arg1)->m_shiftDown); | |
15543 | ||
15544 | { | |
15545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15546 | } | |
15547 | return resultobj; | |
15548 | fail: | |
15549 | return NULL; | |
15550 | } | |
15551 | ||
15552 | ||
c370783e | 15553 | static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15554 | PyObject *resultobj; |
15555 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15556 | bool arg2 ; | |
15557 | PyObject * obj0 = 0 ; | |
15558 | PyObject * obj1 = 0 ; | |
15559 | char *kwnames[] = { | |
15560 | (char *) "self",(char *) "m_altDown", NULL | |
15561 | }; | |
15562 | ||
15563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15566 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15567 | if (PyErr_Occurred()) SWIG_fail; |
15568 | if (arg1) (arg1)->m_altDown = arg2; | |
15569 | ||
15570 | Py_INCREF(Py_None); resultobj = Py_None; | |
15571 | return resultobj; | |
15572 | fail: | |
15573 | return NULL; | |
15574 | } | |
15575 | ||
15576 | ||
c370783e | 15577 | static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15578 | PyObject *resultobj; |
15579 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15580 | bool result; | |
15581 | PyObject * obj0 = 0 ; | |
15582 | char *kwnames[] = { | |
15583 | (char *) "self", NULL | |
15584 | }; | |
15585 | ||
15586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
15587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15589 | result = (bool) ((arg1)->m_altDown); | |
15590 | ||
15591 | { | |
15592 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15593 | } | |
15594 | return resultobj; | |
15595 | fail: | |
15596 | return NULL; | |
15597 | } | |
15598 | ||
15599 | ||
c370783e | 15600 | static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15601 | PyObject *resultobj; |
15602 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15603 | bool arg2 ; | |
15604 | PyObject * obj0 = 0 ; | |
15605 | PyObject * obj1 = 0 ; | |
15606 | char *kwnames[] = { | |
15607 | (char *) "self",(char *) "m_metaDown", NULL | |
15608 | }; | |
15609 | ||
15610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
15611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15613 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
15614 | if (PyErr_Occurred()) SWIG_fail; |
15615 | if (arg1) (arg1)->m_metaDown = arg2; | |
15616 | ||
15617 | Py_INCREF(Py_None); resultobj = Py_None; | |
15618 | return resultobj; | |
15619 | fail: | |
15620 | return NULL; | |
15621 | } | |
15622 | ||
15623 | ||
c370783e | 15624 | static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15625 | PyObject *resultobj; |
15626 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15627 | bool result; | |
15628 | PyObject * obj0 = 0 ; | |
15629 | char *kwnames[] = { | |
15630 | (char *) "self", NULL | |
15631 | }; | |
15632 | ||
15633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
15634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15636 | result = (bool) ((arg1)->m_metaDown); | |
15637 | ||
15638 | { | |
15639 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15640 | } | |
15641 | return resultobj; | |
15642 | fail: | |
15643 | return NULL; | |
15644 | } | |
15645 | ||
15646 | ||
c370783e | 15647 | static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15648 | PyObject *resultobj; |
15649 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15650 | int arg2 ; | |
15651 | PyObject * obj0 = 0 ; | |
15652 | PyObject * obj1 = 0 ; | |
15653 | char *kwnames[] = { | |
15654 | (char *) "self",(char *) "m_wheelRotation", NULL | |
15655 | }; | |
15656 | ||
15657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail; | |
15658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15660 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15661 | if (PyErr_Occurred()) SWIG_fail; |
15662 | if (arg1) (arg1)->m_wheelRotation = arg2; | |
15663 | ||
15664 | Py_INCREF(Py_None); resultobj = Py_None; | |
15665 | return resultobj; | |
15666 | fail: | |
15667 | return NULL; | |
15668 | } | |
15669 | ||
15670 | ||
c370783e | 15671 | static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15672 | PyObject *resultobj; |
15673 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15674 | int result; | |
15675 | PyObject * obj0 = 0 ; | |
15676 | char *kwnames[] = { | |
15677 | (char *) "self", NULL | |
15678 | }; | |
15679 | ||
15680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail; | |
15681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15683 | result = (int) ((arg1)->m_wheelRotation); | |
15684 | ||
c370783e | 15685 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15686 | return resultobj; |
15687 | fail: | |
15688 | return NULL; | |
15689 | } | |
15690 | ||
15691 | ||
c370783e | 15692 | static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15693 | PyObject *resultobj; |
15694 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15695 | int arg2 ; | |
15696 | PyObject * obj0 = 0 ; | |
15697 | PyObject * obj1 = 0 ; | |
15698 | char *kwnames[] = { | |
15699 | (char *) "self",(char *) "m_wheelDelta", NULL | |
15700 | }; | |
15701 | ||
15702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail; | |
15703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15705 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15706 | if (PyErr_Occurred()) SWIG_fail; |
15707 | if (arg1) (arg1)->m_wheelDelta = arg2; | |
15708 | ||
15709 | Py_INCREF(Py_None); resultobj = Py_None; | |
15710 | return resultobj; | |
15711 | fail: | |
15712 | return NULL; | |
15713 | } | |
15714 | ||
15715 | ||
c370783e | 15716 | static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15717 | PyObject *resultobj; |
15718 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15719 | int result; | |
15720 | PyObject * obj0 = 0 ; | |
15721 | char *kwnames[] = { | |
15722 | (char *) "self", NULL | |
15723 | }; | |
15724 | ||
15725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail; | |
15726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15728 | result = (int) ((arg1)->m_wheelDelta); | |
15729 | ||
c370783e | 15730 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15731 | return resultobj; |
15732 | fail: | |
15733 | return NULL; | |
15734 | } | |
15735 | ||
15736 | ||
c370783e | 15737 | static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15738 | PyObject *resultobj; |
15739 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15740 | int arg2 ; | |
15741 | PyObject * obj0 = 0 ; | |
15742 | PyObject * obj1 = 0 ; | |
15743 | char *kwnames[] = { | |
15744 | (char *) "self",(char *) "m_linesPerAction", NULL | |
15745 | }; | |
15746 | ||
15747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail; | |
15748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 15750 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15751 | if (PyErr_Occurred()) SWIG_fail; |
15752 | if (arg1) (arg1)->m_linesPerAction = arg2; | |
15753 | ||
15754 | Py_INCREF(Py_None); resultobj = Py_None; | |
15755 | return resultobj; | |
15756 | fail: | |
15757 | return NULL; | |
15758 | } | |
15759 | ||
15760 | ||
c370783e | 15761 | static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15762 | PyObject *resultobj; |
15763 | wxMouseEvent *arg1 = (wxMouseEvent *) 0 ; | |
15764 | int result; | |
15765 | PyObject * obj0 = 0 ; | |
15766 | char *kwnames[] = { | |
15767 | (char *) "self", NULL | |
15768 | }; | |
15769 | ||
15770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail; | |
15771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent, | |
15772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15773 | result = (int) ((arg1)->m_linesPerAction); | |
15774 | ||
c370783e | 15775 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15776 | return resultobj; |
15777 | fail: | |
15778 | return NULL; | |
15779 | } | |
15780 | ||
15781 | ||
c370783e | 15782 | static PyObject * MouseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15783 | PyObject *obj; |
15784 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15785 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj); | |
15786 | Py_INCREF(obj); | |
15787 | return Py_BuildValue((char *)""); | |
15788 | } | |
c370783e | 15789 | static PyObject *_wrap_new_SetCursorEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15790 | PyObject *resultobj; |
15791 | int arg1 = (int) 0 ; | |
15792 | int arg2 = (int) 0 ; | |
15793 | wxSetCursorEvent *result; | |
15794 | PyObject * obj0 = 0 ; | |
15795 | PyObject * obj1 = 0 ; | |
15796 | char *kwnames[] = { | |
15797 | (char *) "x",(char *) "y", NULL | |
15798 | }; | |
15799 | ||
15800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail; | |
15801 | if (obj0) { | |
c370783e | 15802 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
15803 | if (PyErr_Occurred()) SWIG_fail; |
15804 | } | |
15805 | if (obj1) { | |
c370783e | 15806 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
15807 | if (PyErr_Occurred()) SWIG_fail; |
15808 | } | |
15809 | { | |
15810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15811 | result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2); | |
15812 | ||
15813 | wxPyEndAllowThreads(__tstate); | |
15814 | if (PyErr_Occurred()) SWIG_fail; | |
15815 | } | |
15816 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1); | |
15817 | return resultobj; | |
15818 | fail: | |
15819 | return NULL; | |
15820 | } | |
15821 | ||
15822 | ||
c370783e | 15823 | static PyObject *_wrap_SetCursorEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15824 | PyObject *resultobj; |
15825 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15826 | int result; | |
15827 | PyObject * obj0 = 0 ; | |
15828 | char *kwnames[] = { | |
15829 | (char *) "self", NULL | |
15830 | }; | |
15831 | ||
15832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail; | |
15833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15835 | { | |
15836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15837 | result = (int)((wxSetCursorEvent const *)arg1)->GetX(); | |
15838 | ||
15839 | wxPyEndAllowThreads(__tstate); | |
15840 | if (PyErr_Occurred()) SWIG_fail; | |
15841 | } | |
c370783e | 15842 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15843 | return resultobj; |
15844 | fail: | |
15845 | return NULL; | |
15846 | } | |
15847 | ||
15848 | ||
c370783e | 15849 | static PyObject *_wrap_SetCursorEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15850 | PyObject *resultobj; |
15851 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15852 | int result; | |
15853 | PyObject * obj0 = 0 ; | |
15854 | char *kwnames[] = { | |
15855 | (char *) "self", NULL | |
15856 | }; | |
15857 | ||
15858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail; | |
15859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15861 | { | |
15862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15863 | result = (int)((wxSetCursorEvent const *)arg1)->GetY(); | |
15864 | ||
15865 | wxPyEndAllowThreads(__tstate); | |
15866 | if (PyErr_Occurred()) SWIG_fail; | |
15867 | } | |
c370783e | 15868 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
15869 | return resultobj; |
15870 | fail: | |
15871 | return NULL; | |
15872 | } | |
15873 | ||
15874 | ||
c370783e | 15875 | static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15876 | PyObject *resultobj; |
15877 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15878 | wxCursor *arg2 = 0 ; | |
15879 | PyObject * obj0 = 0 ; | |
15880 | PyObject * obj1 = 0 ; | |
15881 | char *kwnames[] = { | |
15882 | (char *) "self",(char *) "cursor", NULL | |
15883 | }; | |
15884 | ||
15885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
15886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15888 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
15889 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15890 | SWIG_fail; | |
15891 | if (arg2 == NULL) { | |
15892 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15893 | SWIG_fail; | |
15894 | } | |
15895 | { | |
15896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15897 | (arg1)->SetCursor((wxCursor const &)*arg2); | |
15898 | ||
15899 | wxPyEndAllowThreads(__tstate); | |
15900 | if (PyErr_Occurred()) SWIG_fail; | |
15901 | } | |
15902 | Py_INCREF(Py_None); resultobj = Py_None; | |
15903 | return resultobj; | |
15904 | fail: | |
15905 | return NULL; | |
15906 | } | |
15907 | ||
15908 | ||
c370783e | 15909 | static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15910 | PyObject *resultobj; |
15911 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15912 | wxCursor *result; | |
15913 | PyObject * obj0 = 0 ; | |
15914 | char *kwnames[] = { | |
15915 | (char *) "self", NULL | |
15916 | }; | |
15917 | ||
15918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail; | |
15919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15921 | { | |
15922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15923 | { | |
15924 | wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor(); | |
15925 | result = (wxCursor *) &_result_ref; | |
15926 | } | |
15927 | ||
15928 | wxPyEndAllowThreads(__tstate); | |
15929 | if (PyErr_Occurred()) SWIG_fail; | |
15930 | } | |
15931 | { | |
15932 | wxCursor* resultptr = new wxCursor(*result); | |
15933 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
15934 | } | |
15935 | return resultobj; | |
15936 | fail: | |
15937 | return NULL; | |
15938 | } | |
15939 | ||
15940 | ||
c370783e | 15941 | static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15942 | PyObject *resultobj; |
15943 | wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ; | |
15944 | bool result; | |
15945 | PyObject * obj0 = 0 ; | |
15946 | char *kwnames[] = { | |
15947 | (char *) "self", NULL | |
15948 | }; | |
15949 | ||
15950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail; | |
15951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent, | |
15952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15953 | { | |
15954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15955 | result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor(); | |
15956 | ||
15957 | wxPyEndAllowThreads(__tstate); | |
15958 | if (PyErr_Occurred()) SWIG_fail; | |
15959 | } | |
15960 | { | |
15961 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15962 | } | |
15963 | return resultobj; | |
15964 | fail: | |
15965 | return NULL; | |
15966 | } | |
15967 | ||
15968 | ||
c370783e | 15969 | static PyObject * SetCursorEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
15970 | PyObject *obj; |
15971 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15972 | SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj); | |
15973 | Py_INCREF(obj); | |
15974 | return Py_BuildValue((char *)""); | |
15975 | } | |
c370783e | 15976 | static PyObject *_wrap_new_KeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
15977 | PyObject *resultobj; |
15978 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15979 | wxKeyEvent *result; | |
15980 | PyObject * obj0 = 0 ; | |
15981 | char *kwnames[] = { | |
15982 | (char *) "keyType", NULL | |
15983 | }; | |
15984 | ||
15985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail; | |
15986 | if (obj0) { | |
c370783e | 15987 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
15988 | if (PyErr_Occurred()) SWIG_fail; |
15989 | } | |
15990 | { | |
15991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15992 | result = (wxKeyEvent *)new wxKeyEvent(arg1); | |
15993 | ||
15994 | wxPyEndAllowThreads(__tstate); | |
15995 | if (PyErr_Occurred()) SWIG_fail; | |
15996 | } | |
15997 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1); | |
15998 | return resultobj; | |
15999 | fail: | |
16000 | return NULL; | |
16001 | } | |
16002 | ||
16003 | ||
c370783e | 16004 | static PyObject *_wrap_KeyEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16005 | PyObject *resultobj; |
16006 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16007 | bool result; | |
16008 | PyObject * obj0 = 0 ; | |
16009 | char *kwnames[] = { | |
16010 | (char *) "self", NULL | |
16011 | }; | |
16012 | ||
16013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail; | |
16014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16016 | { | |
16017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16018 | result = (bool)((wxKeyEvent const *)arg1)->ControlDown(); | |
16019 | ||
16020 | wxPyEndAllowThreads(__tstate); | |
16021 | if (PyErr_Occurred()) SWIG_fail; | |
16022 | } | |
16023 | { | |
16024 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16025 | } | |
16026 | return resultobj; | |
16027 | fail: | |
16028 | return NULL; | |
16029 | } | |
16030 | ||
16031 | ||
c370783e | 16032 | static PyObject *_wrap_KeyEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16033 | PyObject *resultobj; |
16034 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16035 | bool result; | |
16036 | PyObject * obj0 = 0 ; | |
16037 | char *kwnames[] = { | |
16038 | (char *) "self", NULL | |
16039 | }; | |
16040 | ||
16041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail; | |
16042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16044 | { | |
16045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16046 | result = (bool)((wxKeyEvent const *)arg1)->MetaDown(); | |
16047 | ||
16048 | wxPyEndAllowThreads(__tstate); | |
16049 | if (PyErr_Occurred()) SWIG_fail; | |
16050 | } | |
16051 | { | |
16052 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16053 | } | |
16054 | return resultobj; | |
16055 | fail: | |
16056 | return NULL; | |
16057 | } | |
16058 | ||
16059 | ||
c370783e | 16060 | static PyObject *_wrap_KeyEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16061 | PyObject *resultobj; |
16062 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16063 | bool result; | |
16064 | PyObject * obj0 = 0 ; | |
16065 | char *kwnames[] = { | |
16066 | (char *) "self", NULL | |
16067 | }; | |
16068 | ||
16069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail; | |
16070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16072 | { | |
16073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16074 | result = (bool)((wxKeyEvent const *)arg1)->AltDown(); | |
16075 | ||
16076 | wxPyEndAllowThreads(__tstate); | |
16077 | if (PyErr_Occurred()) SWIG_fail; | |
16078 | } | |
16079 | { | |
16080 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16081 | } | |
16082 | return resultobj; | |
16083 | fail: | |
16084 | return NULL; | |
16085 | } | |
16086 | ||
16087 | ||
c370783e | 16088 | static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16089 | PyObject *resultobj; |
16090 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16091 | bool result; | |
16092 | PyObject * obj0 = 0 ; | |
16093 | char *kwnames[] = { | |
16094 | (char *) "self", NULL | |
16095 | }; | |
16096 | ||
16097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail; | |
16098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16100 | { | |
16101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16102 | result = (bool)((wxKeyEvent const *)arg1)->ShiftDown(); | |
16103 | ||
16104 | wxPyEndAllowThreads(__tstate); | |
16105 | if (PyErr_Occurred()) SWIG_fail; | |
16106 | } | |
16107 | { | |
16108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16109 | } | |
16110 | return resultobj; | |
16111 | fail: | |
16112 | return NULL; | |
16113 | } | |
16114 | ||
16115 | ||
c370783e | 16116 | static PyObject *_wrap_KeyEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) { |
412d302d RD |
16117 | PyObject *resultobj; |
16118 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16119 | bool result; | |
16120 | PyObject * obj0 = 0 ; | |
16121 | char *kwnames[] = { | |
16122 | (char *) "self", NULL | |
16123 | }; | |
16124 | ||
16125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_CmdDown",kwnames,&obj0)) goto fail; | |
16126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16128 | { | |
16129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16130 | result = (bool)((wxKeyEvent const *)arg1)->CmdDown(); | |
16131 | ||
16132 | wxPyEndAllowThreads(__tstate); | |
16133 | if (PyErr_Occurred()) SWIG_fail; | |
16134 | } | |
16135 | { | |
16136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16137 | } | |
16138 | return resultobj; | |
16139 | fail: | |
16140 | return NULL; | |
16141 | } | |
16142 | ||
16143 | ||
c370783e | 16144 | static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16145 | PyObject *resultobj; |
16146 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16147 | bool result; | |
16148 | PyObject * obj0 = 0 ; | |
16149 | char *kwnames[] = { | |
16150 | (char *) "self", NULL | |
16151 | }; | |
16152 | ||
16153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail; | |
16154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16156 | { | |
16157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16158 | result = (bool)((wxKeyEvent const *)arg1)->HasModifiers(); | |
16159 | ||
16160 | wxPyEndAllowThreads(__tstate); | |
16161 | if (PyErr_Occurred()) SWIG_fail; | |
16162 | } | |
16163 | { | |
16164 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16165 | } | |
16166 | return resultobj; | |
16167 | fail: | |
16168 | return NULL; | |
16169 | } | |
16170 | ||
16171 | ||
c370783e | 16172 | static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16173 | PyObject *resultobj; |
16174 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16175 | int result; | |
16176 | PyObject * obj0 = 0 ; | |
16177 | char *kwnames[] = { | |
16178 | (char *) "self", NULL | |
16179 | }; | |
16180 | ||
16181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
16182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16184 | { | |
16185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16186 | result = (int)((wxKeyEvent const *)arg1)->GetKeyCode(); | |
16187 | ||
16188 | wxPyEndAllowThreads(__tstate); | |
16189 | if (PyErr_Occurred()) SWIG_fail; | |
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_GetUnicodeKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16199 | PyObject *resultobj; |
16200 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16201 | int result; | |
16202 | PyObject * obj0 = 0 ; | |
16203 | char *kwnames[] = { | |
16204 | (char *) "self", NULL | |
16205 | }; | |
16206 | ||
bb4524c4 | 16207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUnicodeKey",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
16208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, |
16209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16210 | { | |
16211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bb4524c4 | 16212 | result = (int)wxKeyEvent_GetUnicodeKey(arg1); |
d55e5bfc RD |
16213 | |
16214 | wxPyEndAllowThreads(__tstate); | |
16215 | if (PyErr_Occurred()) SWIG_fail; | |
16216 | } | |
c370783e | 16217 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16218 | return resultobj; |
16219 | fail: | |
16220 | return NULL; | |
16221 | } | |
16222 | ||
16223 | ||
c370783e | 16224 | static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16225 | PyObject *resultobj; |
16226 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16227 | unsigned int result; | |
16228 | PyObject * obj0 = 0 ; | |
16229 | char *kwnames[] = { | |
16230 | (char *) "self", NULL | |
16231 | }; | |
16232 | ||
16233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail; | |
16234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16236 | { | |
16237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16238 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode(); | |
16239 | ||
16240 | wxPyEndAllowThreads(__tstate); | |
16241 | if (PyErr_Occurred()) SWIG_fail; | |
16242 | } | |
c370783e | 16243 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16244 | return resultobj; |
16245 | fail: | |
16246 | return NULL; | |
16247 | } | |
16248 | ||
16249 | ||
c370783e | 16250 | static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16251 | PyObject *resultobj; |
16252 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16253 | unsigned int result; | |
16254 | PyObject * obj0 = 0 ; | |
16255 | char *kwnames[] = { | |
16256 | (char *) "self", NULL | |
16257 | }; | |
16258 | ||
16259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail; | |
16260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16262 | { | |
16263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16264 | result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags(); | |
16265 | ||
16266 | wxPyEndAllowThreads(__tstate); | |
16267 | if (PyErr_Occurred()) SWIG_fail; | |
16268 | } | |
c370783e | 16269 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16270 | return resultobj; |
16271 | fail: | |
16272 | return NULL; | |
16273 | } | |
16274 | ||
16275 | ||
c370783e | 16276 | static PyObject *_wrap_KeyEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16277 | PyObject *resultobj; |
16278 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16279 | wxPoint result; | |
16280 | PyObject * obj0 = 0 ; | |
16281 | char *kwnames[] = { | |
16282 | (char *) "self", NULL | |
16283 | }; | |
16284 | ||
16285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail; | |
16286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16288 | { | |
16289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16290 | result = (arg1)->GetPosition(); | |
16291 | ||
16292 | wxPyEndAllowThreads(__tstate); | |
16293 | if (PyErr_Occurred()) SWIG_fail; | |
16294 | } | |
16295 | { | |
16296 | wxPoint * resultptr; | |
16297 | resultptr = new wxPoint((wxPoint &) result); | |
16298 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
16299 | } | |
16300 | return resultobj; | |
16301 | fail: | |
16302 | return NULL; | |
16303 | } | |
16304 | ||
16305 | ||
c370783e | 16306 | static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16307 | PyObject *resultobj; |
16308 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16309 | long *arg2 = (long *) 0 ; | |
16310 | long *arg3 = (long *) 0 ; | |
16311 | long temp2 ; | |
c370783e | 16312 | int res2 = 0 ; |
d55e5bfc | 16313 | long temp3 ; |
c370783e | 16314 | int res3 = 0 ; |
d55e5bfc RD |
16315 | PyObject * obj0 = 0 ; |
16316 | char *kwnames[] = { | |
16317 | (char *) "self", NULL | |
16318 | }; | |
16319 | ||
c370783e RD |
16320 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
16321 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
16322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail; |
16323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16325 | { | |
16326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16327 | (arg1)->GetPosition(arg2,arg3); | |
16328 | ||
16329 | wxPyEndAllowThreads(__tstate); | |
16330 | if (PyErr_Occurred()) SWIG_fail; | |
16331 | } | |
16332 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
16333 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
16334 | SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0))); | |
16335 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
16336 | SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0))); | |
d55e5bfc RD |
16337 | return resultobj; |
16338 | fail: | |
16339 | return NULL; | |
16340 | } | |
16341 | ||
16342 | ||
c370783e | 16343 | static PyObject *_wrap_KeyEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16344 | PyObject *resultobj; |
16345 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16346 | int result; | |
16347 | PyObject * obj0 = 0 ; | |
16348 | char *kwnames[] = { | |
16349 | (char *) "self", NULL | |
16350 | }; | |
16351 | ||
16352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail; | |
16353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16355 | { | |
16356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16357 | result = (int)((wxKeyEvent const *)arg1)->GetX(); | |
16358 | ||
16359 | wxPyEndAllowThreads(__tstate); | |
16360 | if (PyErr_Occurred()) SWIG_fail; | |
16361 | } | |
c370783e | 16362 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16363 | return resultobj; |
16364 | fail: | |
16365 | return NULL; | |
16366 | } | |
16367 | ||
16368 | ||
c370783e | 16369 | static PyObject *_wrap_KeyEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16370 | PyObject *resultobj; |
16371 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16372 | int result; | |
16373 | PyObject * obj0 = 0 ; | |
16374 | char *kwnames[] = { | |
16375 | (char *) "self", NULL | |
16376 | }; | |
16377 | ||
16378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail; | |
16379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16381 | { | |
16382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16383 | result = (int)((wxKeyEvent const *)arg1)->GetY(); | |
16384 | ||
16385 | wxPyEndAllowThreads(__tstate); | |
16386 | if (PyErr_Occurred()) SWIG_fail; | |
16387 | } | |
c370783e | 16388 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16389 | return resultobj; |
16390 | fail: | |
16391 | return NULL; | |
16392 | } | |
16393 | ||
16394 | ||
c370783e | 16395 | static PyObject *_wrap_KeyEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16396 | PyObject *resultobj; |
16397 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16398 | int arg2 ; | |
16399 | PyObject * obj0 = 0 ; | |
16400 | PyObject * obj1 = 0 ; | |
16401 | char *kwnames[] = { | |
16402 | (char *) "self",(char *) "m_x", NULL | |
16403 | }; | |
16404 | ||
16405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail; | |
16406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16408 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16409 | if (PyErr_Occurred()) SWIG_fail; |
16410 | if (arg1) (arg1)->m_x = arg2; | |
16411 | ||
16412 | Py_INCREF(Py_None); resultobj = Py_None; | |
16413 | return resultobj; | |
16414 | fail: | |
16415 | return NULL; | |
16416 | } | |
16417 | ||
16418 | ||
c370783e | 16419 | static PyObject *_wrap_KeyEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16420 | PyObject *resultobj; |
16421 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16422 | int result; | |
16423 | PyObject * obj0 = 0 ; | |
16424 | char *kwnames[] = { | |
16425 | (char *) "self", NULL | |
16426 | }; | |
16427 | ||
16428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail; | |
16429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16431 | result = (int) ((arg1)->m_x); | |
16432 | ||
c370783e | 16433 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16434 | return resultobj; |
16435 | fail: | |
16436 | return NULL; | |
16437 | } | |
16438 | ||
16439 | ||
c370783e | 16440 | static PyObject *_wrap_KeyEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16441 | PyObject *resultobj; |
16442 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16443 | int arg2 ; | |
16444 | PyObject * obj0 = 0 ; | |
16445 | PyObject * obj1 = 0 ; | |
16446 | char *kwnames[] = { | |
16447 | (char *) "self",(char *) "m_y", NULL | |
16448 | }; | |
16449 | ||
16450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail; | |
16451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16453 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16454 | if (PyErr_Occurred()) SWIG_fail; |
16455 | if (arg1) (arg1)->m_y = arg2; | |
16456 | ||
16457 | Py_INCREF(Py_None); resultobj = Py_None; | |
16458 | return resultobj; | |
16459 | fail: | |
16460 | return NULL; | |
16461 | } | |
16462 | ||
16463 | ||
c370783e | 16464 | static PyObject *_wrap_KeyEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16465 | PyObject *resultobj; |
16466 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16467 | int result; | |
16468 | PyObject * obj0 = 0 ; | |
16469 | char *kwnames[] = { | |
16470 | (char *) "self", NULL | |
16471 | }; | |
16472 | ||
16473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail; | |
16474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16476 | result = (int) ((arg1)->m_y); | |
16477 | ||
c370783e | 16478 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
16479 | return resultobj; |
16480 | fail: | |
16481 | return NULL; | |
16482 | } | |
16483 | ||
16484 | ||
c370783e | 16485 | static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16486 | PyObject *resultobj; |
16487 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16488 | long arg2 ; | |
16489 | PyObject * obj0 = 0 ; | |
16490 | PyObject * obj1 = 0 ; | |
16491 | char *kwnames[] = { | |
16492 | (char *) "self",(char *) "m_keyCode", NULL | |
16493 | }; | |
16494 | ||
16495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16498 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
16499 | if (PyErr_Occurred()) SWIG_fail; |
16500 | if (arg1) (arg1)->m_keyCode = arg2; | |
16501 | ||
16502 | Py_INCREF(Py_None); resultobj = Py_None; | |
16503 | return resultobj; | |
16504 | fail: | |
16505 | return NULL; | |
16506 | } | |
16507 | ||
16508 | ||
c370783e | 16509 | static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16510 | PyObject *resultobj; |
16511 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16512 | long result; | |
16513 | PyObject * obj0 = 0 ; | |
16514 | char *kwnames[] = { | |
16515 | (char *) "self", NULL | |
16516 | }; | |
16517 | ||
16518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail; | |
16519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16521 | result = (long) ((arg1)->m_keyCode); | |
16522 | ||
c370783e | 16523 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
16524 | return resultobj; |
16525 | fail: | |
16526 | return NULL; | |
16527 | } | |
16528 | ||
16529 | ||
c370783e | 16530 | static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16531 | PyObject *resultobj; |
16532 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16533 | bool arg2 ; | |
16534 | PyObject * obj0 = 0 ; | |
16535 | PyObject * obj1 = 0 ; | |
16536 | char *kwnames[] = { | |
16537 | (char *) "self",(char *) "m_controlDown", NULL | |
16538 | }; | |
16539 | ||
16540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16543 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16544 | if (PyErr_Occurred()) SWIG_fail; |
16545 | if (arg1) (arg1)->m_controlDown = arg2; | |
16546 | ||
16547 | Py_INCREF(Py_None); resultobj = Py_None; | |
16548 | return resultobj; | |
16549 | fail: | |
16550 | return NULL; | |
16551 | } | |
16552 | ||
16553 | ||
c370783e | 16554 | static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16555 | PyObject *resultobj; |
16556 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16557 | bool result; | |
16558 | PyObject * obj0 = 0 ; | |
16559 | char *kwnames[] = { | |
16560 | (char *) "self", NULL | |
16561 | }; | |
16562 | ||
16563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail; | |
16564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16566 | result = (bool) ((arg1)->m_controlDown); | |
16567 | ||
16568 | { | |
16569 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16570 | } | |
16571 | return resultobj; | |
16572 | fail: | |
16573 | return NULL; | |
16574 | } | |
16575 | ||
16576 | ||
c370783e | 16577 | static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16578 | PyObject *resultobj; |
16579 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16580 | bool arg2 ; | |
16581 | PyObject * obj0 = 0 ; | |
16582 | PyObject * obj1 = 0 ; | |
16583 | char *kwnames[] = { | |
16584 | (char *) "self",(char *) "m_shiftDown", NULL | |
16585 | }; | |
16586 | ||
16587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16590 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16591 | if (PyErr_Occurred()) SWIG_fail; |
16592 | if (arg1) (arg1)->m_shiftDown = arg2; | |
16593 | ||
16594 | Py_INCREF(Py_None); resultobj = Py_None; | |
16595 | return resultobj; | |
16596 | fail: | |
16597 | return NULL; | |
16598 | } | |
16599 | ||
16600 | ||
c370783e | 16601 | static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16602 | PyObject *resultobj; |
16603 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16604 | bool result; | |
16605 | PyObject * obj0 = 0 ; | |
16606 | char *kwnames[] = { | |
16607 | (char *) "self", NULL | |
16608 | }; | |
16609 | ||
16610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail; | |
16611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16613 | result = (bool) ((arg1)->m_shiftDown); | |
16614 | ||
16615 | { | |
16616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16617 | } | |
16618 | return resultobj; | |
16619 | fail: | |
16620 | return NULL; | |
16621 | } | |
16622 | ||
16623 | ||
c370783e | 16624 | static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16625 | PyObject *resultobj; |
16626 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16627 | bool arg2 ; | |
16628 | PyObject * obj0 = 0 ; | |
16629 | PyObject * obj1 = 0 ; | |
16630 | char *kwnames[] = { | |
16631 | (char *) "self",(char *) "m_altDown", NULL | |
16632 | }; | |
16633 | ||
16634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16637 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16638 | if (PyErr_Occurred()) SWIG_fail; |
16639 | if (arg1) (arg1)->m_altDown = arg2; | |
16640 | ||
16641 | Py_INCREF(Py_None); resultobj = Py_None; | |
16642 | return resultobj; | |
16643 | fail: | |
16644 | return NULL; | |
16645 | } | |
16646 | ||
16647 | ||
c370783e | 16648 | static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16649 | PyObject *resultobj; |
16650 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16651 | bool result; | |
16652 | PyObject * obj0 = 0 ; | |
16653 | char *kwnames[] = { | |
16654 | (char *) "self", NULL | |
16655 | }; | |
16656 | ||
16657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail; | |
16658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16660 | result = (bool) ((arg1)->m_altDown); | |
16661 | ||
16662 | { | |
16663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16664 | } | |
16665 | return resultobj; | |
16666 | fail: | |
16667 | return NULL; | |
16668 | } | |
16669 | ||
16670 | ||
c370783e | 16671 | static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16672 | PyObject *resultobj; |
16673 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16674 | bool arg2 ; | |
16675 | PyObject * obj0 = 0 ; | |
16676 | PyObject * obj1 = 0 ; | |
16677 | char *kwnames[] = { | |
16678 | (char *) "self",(char *) "m_metaDown", NULL | |
16679 | }; | |
16680 | ||
16681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail; | |
16682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16684 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16685 | if (PyErr_Occurred()) SWIG_fail; |
16686 | if (arg1) (arg1)->m_metaDown = arg2; | |
16687 | ||
16688 | Py_INCREF(Py_None); resultobj = Py_None; | |
16689 | return resultobj; | |
16690 | fail: | |
16691 | return NULL; | |
16692 | } | |
16693 | ||
16694 | ||
c370783e | 16695 | static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16696 | PyObject *resultobj; |
16697 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16698 | bool result; | |
16699 | PyObject * obj0 = 0 ; | |
16700 | char *kwnames[] = { | |
16701 | (char *) "self", NULL | |
16702 | }; | |
16703 | ||
16704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail; | |
16705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16707 | result = (bool) ((arg1)->m_metaDown); | |
16708 | ||
16709 | { | |
16710 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16711 | } | |
16712 | return resultobj; | |
16713 | fail: | |
16714 | return NULL; | |
16715 | } | |
16716 | ||
16717 | ||
c370783e | 16718 | static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16719 | PyObject *resultobj; |
16720 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16721 | bool arg2 ; | |
16722 | PyObject * obj0 = 0 ; | |
16723 | PyObject * obj1 = 0 ; | |
16724 | char *kwnames[] = { | |
16725 | (char *) "self",(char *) "m_scanCode", NULL | |
16726 | }; | |
16727 | ||
16728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16731 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
16732 | if (PyErr_Occurred()) SWIG_fail; |
16733 | if (arg1) (arg1)->m_scanCode = arg2; | |
16734 | ||
16735 | Py_INCREF(Py_None); resultobj = Py_None; | |
16736 | return resultobj; | |
16737 | fail: | |
16738 | return NULL; | |
16739 | } | |
16740 | ||
16741 | ||
c370783e | 16742 | static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16743 | PyObject *resultobj; |
16744 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16745 | bool result; | |
16746 | PyObject * obj0 = 0 ; | |
16747 | char *kwnames[] = { | |
16748 | (char *) "self", NULL | |
16749 | }; | |
16750 | ||
16751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail; | |
16752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16754 | result = (bool) ((arg1)->m_scanCode); | |
16755 | ||
16756 | { | |
16757 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16758 | } | |
16759 | return resultobj; | |
16760 | fail: | |
16761 | return NULL; | |
16762 | } | |
16763 | ||
16764 | ||
c370783e | 16765 | static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16766 | PyObject *resultobj; |
16767 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16768 | unsigned int arg2 ; | |
16769 | PyObject * obj0 = 0 ; | |
16770 | PyObject * obj1 = 0 ; | |
16771 | char *kwnames[] = { | |
16772 | (char *) "self",(char *) "m_rawCode", NULL | |
16773 | }; | |
16774 | ||
16775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail; | |
16776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16778 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
16779 | if (PyErr_Occurred()) SWIG_fail; |
16780 | if (arg1) (arg1)->m_rawCode = arg2; | |
16781 | ||
16782 | Py_INCREF(Py_None); resultobj = Py_None; | |
16783 | return resultobj; | |
16784 | fail: | |
16785 | return NULL; | |
16786 | } | |
16787 | ||
16788 | ||
c370783e | 16789 | static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16790 | PyObject *resultobj; |
16791 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16792 | unsigned int result; | |
16793 | PyObject * obj0 = 0 ; | |
16794 | char *kwnames[] = { | |
16795 | (char *) "self", NULL | |
16796 | }; | |
16797 | ||
16798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail; | |
16799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16801 | result = (unsigned int) ((arg1)->m_rawCode); | |
16802 | ||
c370783e | 16803 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16804 | return resultobj; |
16805 | fail: | |
16806 | return NULL; | |
16807 | } | |
16808 | ||
16809 | ||
c370783e | 16810 | static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16811 | PyObject *resultobj; |
16812 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16813 | unsigned int arg2 ; | |
16814 | PyObject * obj0 = 0 ; | |
16815 | PyObject * obj1 = 0 ; | |
16816 | char *kwnames[] = { | |
16817 | (char *) "self",(char *) "m_rawFlags", NULL | |
16818 | }; | |
16819 | ||
16820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail; | |
16821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 16823 | arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1); |
d55e5bfc RD |
16824 | if (PyErr_Occurred()) SWIG_fail; |
16825 | if (arg1) (arg1)->m_rawFlags = arg2; | |
16826 | ||
16827 | Py_INCREF(Py_None); resultobj = Py_None; | |
16828 | return resultobj; | |
16829 | fail: | |
16830 | return NULL; | |
16831 | } | |
16832 | ||
16833 | ||
c370783e | 16834 | static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16835 | PyObject *resultobj; |
16836 | wxKeyEvent *arg1 = (wxKeyEvent *) 0 ; | |
16837 | unsigned int result; | |
16838 | PyObject * obj0 = 0 ; | |
16839 | char *kwnames[] = { | |
16840 | (char *) "self", NULL | |
16841 | }; | |
16842 | ||
16843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail; | |
16844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent, | |
16845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16846 | result = (unsigned int) ((arg1)->m_rawFlags); | |
16847 | ||
c370783e | 16848 | resultobj = SWIG_From_unsigned_SS_int((unsigned int)result); |
d55e5bfc RD |
16849 | return resultobj; |
16850 | fail: | |
16851 | return NULL; | |
16852 | } | |
16853 | ||
16854 | ||
c370783e | 16855 | static PyObject * KeyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
16856 | PyObject *obj; |
16857 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16858 | SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj); | |
16859 | Py_INCREF(obj); | |
16860 | return Py_BuildValue((char *)""); | |
16861 | } | |
c370783e | 16862 | static PyObject *_wrap_new_SizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16863 | PyObject *resultobj; |
16864 | wxSize const &arg1_defvalue = wxDefaultSize ; | |
16865 | wxSize *arg1 = (wxSize *) &arg1_defvalue ; | |
16866 | int arg2 = (int) 0 ; | |
16867 | wxSizeEvent *result; | |
16868 | wxSize temp1 ; | |
16869 | PyObject * obj0 = 0 ; | |
16870 | PyObject * obj1 = 0 ; | |
16871 | char *kwnames[] = { | |
16872 | (char *) "sz",(char *) "winid", NULL | |
16873 | }; | |
16874 | ||
16875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
16876 | if (obj0) { | |
16877 | { | |
16878 | arg1 = &temp1; | |
16879 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
16880 | } | |
16881 | } | |
16882 | if (obj1) { | |
c370783e | 16883 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
16884 | if (PyErr_Occurred()) SWIG_fail; |
16885 | } | |
16886 | { | |
16887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16888 | result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2); | |
16889 | ||
16890 | wxPyEndAllowThreads(__tstate); | |
16891 | if (PyErr_Occurred()) SWIG_fail; | |
16892 | } | |
16893 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1); | |
16894 | return resultobj; | |
16895 | fail: | |
16896 | return NULL; | |
16897 | } | |
16898 | ||
16899 | ||
c370783e | 16900 | static PyObject *_wrap_SizeEvent_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16901 | PyObject *resultobj; |
16902 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16903 | wxSize result; | |
16904 | PyObject * obj0 = 0 ; | |
16905 | char *kwnames[] = { | |
16906 | (char *) "self", NULL | |
16907 | }; | |
16908 | ||
16909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail; | |
16910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16912 | { | |
16913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16914 | result = ((wxSizeEvent const *)arg1)->GetSize(); | |
16915 | ||
16916 | wxPyEndAllowThreads(__tstate); | |
16917 | if (PyErr_Occurred()) SWIG_fail; | |
16918 | } | |
16919 | { | |
16920 | wxSize * resultptr; | |
16921 | resultptr = new wxSize((wxSize &) result); | |
16922 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
16923 | } | |
16924 | return resultobj; | |
16925 | fail: | |
16926 | return NULL; | |
16927 | } | |
16928 | ||
16929 | ||
c370783e | 16930 | static PyObject *_wrap_SizeEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16931 | PyObject *resultobj; |
16932 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16933 | wxRect result; | |
16934 | PyObject * obj0 = 0 ; | |
16935 | char *kwnames[] = { | |
16936 | (char *) "self", NULL | |
16937 | }; | |
16938 | ||
16939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail; | |
16940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16942 | { | |
16943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16944 | result = ((wxSizeEvent const *)arg1)->GetRect(); | |
16945 | ||
16946 | wxPyEndAllowThreads(__tstate); | |
16947 | if (PyErr_Occurred()) SWIG_fail; | |
16948 | } | |
16949 | { | |
16950 | wxRect * resultptr; | |
16951 | resultptr = new wxRect((wxRect &) result); | |
16952 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
16953 | } | |
16954 | return resultobj; | |
16955 | fail: | |
16956 | return NULL; | |
16957 | } | |
16958 | ||
16959 | ||
c370783e | 16960 | static PyObject *_wrap_SizeEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16961 | PyObject *resultobj; |
16962 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16963 | wxRect arg2 ; | |
16964 | wxRect *argp2 ; | |
16965 | PyObject * obj0 = 0 ; | |
16966 | PyObject * obj1 = 0 ; | |
16967 | char *kwnames[] = { | |
16968 | (char *) "self",(char *) "rect", NULL | |
16969 | }; | |
16970 | ||
16971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
16972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
16973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16974 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
16975 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
16976 | arg2 = *argp2; | |
16977 | { | |
16978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16979 | (arg1)->SetRect(arg2); | |
16980 | ||
16981 | wxPyEndAllowThreads(__tstate); | |
16982 | if (PyErr_Occurred()) SWIG_fail; | |
16983 | } | |
16984 | Py_INCREF(Py_None); resultobj = Py_None; | |
16985 | return resultobj; | |
16986 | fail: | |
16987 | return NULL; | |
16988 | } | |
16989 | ||
16990 | ||
c370783e | 16991 | static PyObject *_wrap_SizeEvent_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
16992 | PyObject *resultobj; |
16993 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
16994 | wxSize arg2 ; | |
16995 | wxSize *argp2 ; | |
16996 | PyObject * obj0 = 0 ; | |
16997 | PyObject * obj1 = 0 ; | |
16998 | char *kwnames[] = { | |
16999 | (char *) "self",(char *) "size", NULL | |
17000 | }; | |
17001 | ||
17002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
17003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
17004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17005 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
17006 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
17007 | arg2 = *argp2; | |
17008 | { | |
17009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17010 | wxSizeEvent_SetSize(arg1,arg2); | |
17011 | ||
17012 | wxPyEndAllowThreads(__tstate); | |
17013 | if (PyErr_Occurred()) SWIG_fail; | |
17014 | } | |
17015 | Py_INCREF(Py_None); resultobj = Py_None; | |
17016 | return resultobj; | |
17017 | fail: | |
17018 | return NULL; | |
17019 | } | |
17020 | ||
17021 | ||
c370783e | 17022 | static PyObject *_wrap_SizeEvent_m_size_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17023 | PyObject *resultobj; |
17024 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
17025 | wxSize *arg2 = (wxSize *) 0 ; | |
17026 | PyObject * obj0 = 0 ; | |
17027 | PyObject * obj1 = 0 ; | |
17028 | char *kwnames[] = { | |
17029 | (char *) "self",(char *) "m_size", NULL | |
17030 | }; | |
17031 | ||
17032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail; | |
17033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
17034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17035 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize, | |
17036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17037 | if (arg1) (arg1)->m_size = *arg2; | |
17038 | ||
17039 | Py_INCREF(Py_None); resultobj = Py_None; | |
17040 | return resultobj; | |
17041 | fail: | |
17042 | return NULL; | |
17043 | } | |
17044 | ||
17045 | ||
c370783e | 17046 | static PyObject *_wrap_SizeEvent_m_size_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17047 | PyObject *resultobj; |
17048 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
17049 | wxSize *result; | |
17050 | PyObject * obj0 = 0 ; | |
17051 | char *kwnames[] = { | |
17052 | (char *) "self", NULL | |
17053 | }; | |
17054 | ||
17055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail; | |
17056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
17057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17058 | result = (wxSize *)& ((arg1)->m_size); | |
17059 | ||
17060 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
17061 | return resultobj; | |
17062 | fail: | |
17063 | return NULL; | |
17064 | } | |
17065 | ||
17066 | ||
c370783e | 17067 | static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17068 | PyObject *resultobj; |
17069 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
17070 | wxRect *arg2 = (wxRect *) 0 ; | |
17071 | PyObject * obj0 = 0 ; | |
17072 | PyObject * obj1 = 0 ; | |
17073 | char *kwnames[] = { | |
17074 | (char *) "self",(char *) "m_rect", NULL | |
17075 | }; | |
17076 | ||
17077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
17078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
17079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17080 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
17081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17082 | if (arg1) (arg1)->m_rect = *arg2; | |
17083 | ||
17084 | Py_INCREF(Py_None); resultobj = Py_None; | |
17085 | return resultobj; | |
17086 | fail: | |
17087 | return NULL; | |
17088 | } | |
17089 | ||
17090 | ||
c370783e | 17091 | static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17092 | PyObject *resultobj; |
17093 | wxSizeEvent *arg1 = (wxSizeEvent *) 0 ; | |
17094 | wxRect *result; | |
17095 | PyObject * obj0 = 0 ; | |
17096 | char *kwnames[] = { | |
17097 | (char *) "self", NULL | |
17098 | }; | |
17099 | ||
17100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
17101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent, | |
17102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17103 | result = (wxRect *)& ((arg1)->m_rect); | |
17104 | ||
17105 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
17106 | return resultobj; | |
17107 | fail: | |
17108 | return NULL; | |
17109 | } | |
17110 | ||
17111 | ||
c370783e | 17112 | static PyObject * SizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17113 | PyObject *obj; |
17114 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17115 | SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj); | |
17116 | Py_INCREF(obj); | |
17117 | return Py_BuildValue((char *)""); | |
17118 | } | |
c370783e | 17119 | static PyObject *_wrap_new_MoveEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17120 | PyObject *resultobj; |
17121 | wxPoint const &arg1_defvalue = wxDefaultPosition ; | |
17122 | wxPoint *arg1 = (wxPoint *) &arg1_defvalue ; | |
17123 | int arg2 = (int) 0 ; | |
17124 | wxMoveEvent *result; | |
17125 | wxPoint temp1 ; | |
17126 | PyObject * obj0 = 0 ; | |
17127 | PyObject * obj1 = 0 ; | |
17128 | char *kwnames[] = { | |
17129 | (char *) "pos",(char *) "winid", NULL | |
17130 | }; | |
17131 | ||
17132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail; | |
17133 | if (obj0) { | |
17134 | { | |
17135 | arg1 = &temp1; | |
17136 | if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail; | |
17137 | } | |
17138 | } | |
17139 | if (obj1) { | |
c370783e | 17140 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17141 | if (PyErr_Occurred()) SWIG_fail; |
17142 | } | |
17143 | { | |
17144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17145 | result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2); | |
17146 | ||
17147 | wxPyEndAllowThreads(__tstate); | |
17148 | if (PyErr_Occurred()) SWIG_fail; | |
17149 | } | |
17150 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1); | |
17151 | return resultobj; | |
17152 | fail: | |
17153 | return NULL; | |
17154 | } | |
17155 | ||
17156 | ||
c370783e | 17157 | static PyObject *_wrap_MoveEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17158 | PyObject *resultobj; |
17159 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17160 | wxPoint result; | |
17161 | PyObject * obj0 = 0 ; | |
17162 | char *kwnames[] = { | |
17163 | (char *) "self", NULL | |
17164 | }; | |
17165 | ||
17166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail; | |
17167 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17168 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17169 | { | |
17170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17171 | result = ((wxMoveEvent const *)arg1)->GetPosition(); | |
17172 | ||
17173 | wxPyEndAllowThreads(__tstate); | |
17174 | if (PyErr_Occurred()) SWIG_fail; | |
17175 | } | |
17176 | { | |
17177 | wxPoint * resultptr; | |
17178 | resultptr = new wxPoint((wxPoint &) result); | |
17179 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
17180 | } | |
17181 | return resultobj; | |
17182 | fail: | |
17183 | return NULL; | |
17184 | } | |
17185 | ||
17186 | ||
c370783e | 17187 | static PyObject *_wrap_MoveEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17188 | PyObject *resultobj; |
17189 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17190 | wxRect result; | |
17191 | PyObject * obj0 = 0 ; | |
17192 | char *kwnames[] = { | |
17193 | (char *) "self", NULL | |
17194 | }; | |
17195 | ||
17196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail; | |
17197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17199 | { | |
17200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17201 | result = ((wxMoveEvent const *)arg1)->GetRect(); | |
17202 | ||
17203 | wxPyEndAllowThreads(__tstate); | |
17204 | if (PyErr_Occurred()) SWIG_fail; | |
17205 | } | |
17206 | { | |
17207 | wxRect * resultptr; | |
17208 | resultptr = new wxRect((wxRect &) result); | |
17209 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
17210 | } | |
17211 | return resultobj; | |
17212 | fail: | |
17213 | return NULL; | |
17214 | } | |
17215 | ||
17216 | ||
c370783e | 17217 | static PyObject *_wrap_MoveEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17218 | PyObject *resultobj; |
17219 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17220 | wxRect arg2 ; | |
17221 | wxRect *argp2 ; | |
17222 | PyObject * obj0 = 0 ; | |
17223 | PyObject * obj1 = 0 ; | |
17224 | char *kwnames[] = { | |
17225 | (char *) "self",(char *) "rect", NULL | |
17226 | }; | |
17227 | ||
17228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail; | |
17229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17231 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect, | |
17232 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
17233 | arg2 = *argp2; | |
17234 | { | |
17235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17236 | (arg1)->SetRect(arg2); | |
17237 | ||
17238 | wxPyEndAllowThreads(__tstate); | |
17239 | if (PyErr_Occurred()) SWIG_fail; | |
17240 | } | |
17241 | Py_INCREF(Py_None); resultobj = Py_None; | |
17242 | return resultobj; | |
17243 | fail: | |
17244 | return NULL; | |
17245 | } | |
17246 | ||
17247 | ||
c370783e | 17248 | static PyObject *_wrap_MoveEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17249 | PyObject *resultobj; |
17250 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17251 | wxPoint arg2 ; | |
17252 | wxPoint *argp2 ; | |
17253 | PyObject * obj0 = 0 ; | |
17254 | PyObject * obj1 = 0 ; | |
17255 | char *kwnames[] = { | |
17256 | (char *) "self",(char *) "pos", NULL | |
17257 | }; | |
17258 | ||
17259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
17260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17262 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
17263 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
17264 | arg2 = *argp2; | |
17265 | { | |
17266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17267 | wxMoveEvent_SetPosition(arg1,arg2); | |
17268 | ||
17269 | wxPyEndAllowThreads(__tstate); | |
17270 | if (PyErr_Occurred()) SWIG_fail; | |
17271 | } | |
17272 | Py_INCREF(Py_None); resultobj = Py_None; | |
17273 | return resultobj; | |
17274 | fail: | |
17275 | return NULL; | |
17276 | } | |
17277 | ||
17278 | ||
c370783e | 17279 | static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17280 | PyObject *resultobj; |
17281 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17282 | wxPoint *arg2 = (wxPoint *) 0 ; | |
17283 | PyObject * obj0 = 0 ; | |
17284 | PyObject * obj1 = 0 ; | |
17285 | char *kwnames[] = { | |
17286 | (char *) "self",(char *) "m_pos", NULL | |
17287 | }; | |
17288 | ||
17289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail; | |
17290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17292 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
17293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17294 | if (arg1) (arg1)->m_pos = *arg2; | |
17295 | ||
17296 | Py_INCREF(Py_None); resultobj = Py_None; | |
17297 | return resultobj; | |
17298 | fail: | |
17299 | return NULL; | |
17300 | } | |
17301 | ||
17302 | ||
c370783e | 17303 | static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17304 | PyObject *resultobj; |
17305 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17306 | wxPoint *result; | |
17307 | PyObject * obj0 = 0 ; | |
17308 | char *kwnames[] = { | |
17309 | (char *) "self", NULL | |
17310 | }; | |
17311 | ||
17312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail; | |
17313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17315 | result = (wxPoint *)& ((arg1)->m_pos); | |
17316 | ||
17317 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
17318 | return resultobj; | |
17319 | fail: | |
17320 | return NULL; | |
17321 | } | |
17322 | ||
17323 | ||
c370783e | 17324 | static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17325 | PyObject *resultobj; |
17326 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17327 | wxRect *arg2 = (wxRect *) 0 ; | |
17328 | PyObject * obj0 = 0 ; | |
17329 | PyObject * obj1 = 0 ; | |
17330 | char *kwnames[] = { | |
17331 | (char *) "self",(char *) "m_rect", NULL | |
17332 | }; | |
17333 | ||
17334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail; | |
17335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17337 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect, | |
17338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17339 | if (arg1) (arg1)->m_rect = *arg2; | |
17340 | ||
17341 | Py_INCREF(Py_None); resultobj = Py_None; | |
17342 | return resultobj; | |
17343 | fail: | |
17344 | return NULL; | |
17345 | } | |
17346 | ||
17347 | ||
c370783e | 17348 | static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17349 | PyObject *resultobj; |
17350 | wxMoveEvent *arg1 = (wxMoveEvent *) 0 ; | |
17351 | wxRect *result; | |
17352 | PyObject * obj0 = 0 ; | |
17353 | char *kwnames[] = { | |
17354 | (char *) "self", NULL | |
17355 | }; | |
17356 | ||
17357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail; | |
17358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent, | |
17359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17360 | result = (wxRect *)& ((arg1)->m_rect); | |
17361 | ||
17362 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0); | |
17363 | return resultobj; | |
17364 | fail: | |
17365 | return NULL; | |
17366 | } | |
17367 | ||
17368 | ||
c370783e | 17369 | static PyObject * MoveEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17370 | PyObject *obj; |
17371 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17372 | SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj); | |
17373 | Py_INCREF(obj); | |
17374 | return Py_BuildValue((char *)""); | |
17375 | } | |
c370783e | 17376 | static PyObject *_wrap_new_PaintEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17377 | PyObject *resultobj; |
17378 | int arg1 = (int) 0 ; | |
17379 | wxPaintEvent *result; | |
17380 | PyObject * obj0 = 0 ; | |
17381 | char *kwnames[] = { | |
17382 | (char *) "Id", NULL | |
17383 | }; | |
17384 | ||
17385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail; | |
17386 | if (obj0) { | |
c370783e | 17387 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17388 | if (PyErr_Occurred()) SWIG_fail; |
17389 | } | |
17390 | { | |
17391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17392 | result = (wxPaintEvent *)new wxPaintEvent(arg1); | |
17393 | ||
17394 | wxPyEndAllowThreads(__tstate); | |
17395 | if (PyErr_Occurred()) SWIG_fail; | |
17396 | } | |
17397 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1); | |
17398 | return resultobj; | |
17399 | fail: | |
17400 | return NULL; | |
17401 | } | |
17402 | ||
17403 | ||
c370783e | 17404 | static PyObject * PaintEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17405 | PyObject *obj; |
17406 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17407 | SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj); | |
17408 | Py_INCREF(obj); | |
17409 | return Py_BuildValue((char *)""); | |
17410 | } | |
c370783e | 17411 | static PyObject *_wrap_new_NcPaintEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17412 | PyObject *resultobj; |
17413 | int arg1 = (int) 0 ; | |
17414 | wxNcPaintEvent *result; | |
17415 | PyObject * obj0 = 0 ; | |
17416 | char *kwnames[] = { | |
17417 | (char *) "winid", NULL | |
17418 | }; | |
17419 | ||
17420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail; | |
17421 | if (obj0) { | |
c370783e | 17422 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17423 | if (PyErr_Occurred()) SWIG_fail; |
17424 | } | |
17425 | { | |
17426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17427 | result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1); | |
17428 | ||
17429 | wxPyEndAllowThreads(__tstate); | |
17430 | if (PyErr_Occurred()) SWIG_fail; | |
17431 | } | |
17432 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1); | |
17433 | return resultobj; | |
17434 | fail: | |
17435 | return NULL; | |
17436 | } | |
17437 | ||
17438 | ||
c370783e | 17439 | static PyObject * NcPaintEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17440 | PyObject *obj; |
17441 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17442 | SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj); | |
17443 | Py_INCREF(obj); | |
17444 | return Py_BuildValue((char *)""); | |
17445 | } | |
c370783e | 17446 | static PyObject *_wrap_new_EraseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17447 | PyObject *resultobj; |
17448 | int arg1 = (int) 0 ; | |
17449 | wxDC *arg2 = (wxDC *) (wxDC *) NULL ; | |
17450 | wxEraseEvent *result; | |
17451 | PyObject * obj0 = 0 ; | |
17452 | PyObject * obj1 = 0 ; | |
17453 | char *kwnames[] = { | |
17454 | (char *) "Id",(char *) "dc", NULL | |
17455 | }; | |
17456 | ||
17457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail; | |
17458 | if (obj0) { | |
c370783e | 17459 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17460 | if (PyErr_Occurred()) SWIG_fail; |
17461 | } | |
17462 | if (obj1) { | |
17463 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
17464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17465 | } | |
17466 | { | |
17467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17468 | result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2); | |
17469 | ||
17470 | wxPyEndAllowThreads(__tstate); | |
17471 | if (PyErr_Occurred()) SWIG_fail; | |
17472 | } | |
17473 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1); | |
17474 | return resultobj; | |
17475 | fail: | |
17476 | return NULL; | |
17477 | } | |
17478 | ||
17479 | ||
c370783e | 17480 | static PyObject *_wrap_EraseEvent_GetDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17481 | PyObject *resultobj; |
17482 | wxEraseEvent *arg1 = (wxEraseEvent *) 0 ; | |
17483 | wxDC *result; | |
17484 | PyObject * obj0 = 0 ; | |
17485 | char *kwnames[] = { | |
17486 | (char *) "self", NULL | |
17487 | }; | |
17488 | ||
17489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail; | |
17490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent, | |
17491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17492 | { | |
17493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17494 | result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC(); | |
17495 | ||
17496 | wxPyEndAllowThreads(__tstate); | |
17497 | if (PyErr_Occurred()) SWIG_fail; | |
17498 | } | |
17499 | { | |
412d302d | 17500 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17501 | } |
17502 | return resultobj; | |
17503 | fail: | |
17504 | return NULL; | |
17505 | } | |
17506 | ||
17507 | ||
c370783e | 17508 | static PyObject * EraseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17509 | PyObject *obj; |
17510 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17511 | SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj); | |
17512 | Py_INCREF(obj); | |
17513 | return Py_BuildValue((char *)""); | |
17514 | } | |
c370783e | 17515 | static PyObject *_wrap_new_FocusEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17516 | PyObject *resultobj; |
17517 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17518 | int arg2 = (int) 0 ; | |
17519 | wxFocusEvent *result; | |
17520 | PyObject * obj0 = 0 ; | |
17521 | PyObject * obj1 = 0 ; | |
17522 | char *kwnames[] = { | |
17523 | (char *) "type",(char *) "winid", NULL | |
17524 | }; | |
17525 | ||
17526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail; | |
17527 | if (obj0) { | |
c370783e | 17528 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17529 | if (PyErr_Occurred()) SWIG_fail; |
17530 | } | |
17531 | if (obj1) { | |
c370783e | 17532 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17533 | if (PyErr_Occurred()) SWIG_fail; |
17534 | } | |
17535 | { | |
17536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17537 | result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2); | |
17538 | ||
17539 | wxPyEndAllowThreads(__tstate); | |
17540 | if (PyErr_Occurred()) SWIG_fail; | |
17541 | } | |
17542 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1); | |
17543 | return resultobj; | |
17544 | fail: | |
17545 | return NULL; | |
17546 | } | |
17547 | ||
17548 | ||
c370783e | 17549 | static PyObject *_wrap_FocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17550 | PyObject *resultobj; |
17551 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
17552 | wxWindow *result; | |
17553 | PyObject * obj0 = 0 ; | |
17554 | char *kwnames[] = { | |
17555 | (char *) "self", NULL | |
17556 | }; | |
17557 | ||
17558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
17559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, | |
17560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17561 | { | |
17562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17563 | result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow(); | |
17564 | ||
17565 | wxPyEndAllowThreads(__tstate); | |
17566 | if (PyErr_Occurred()) SWIG_fail; | |
17567 | } | |
17568 | { | |
412d302d | 17569 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17570 | } |
17571 | return resultobj; | |
17572 | fail: | |
17573 | return NULL; | |
17574 | } | |
17575 | ||
17576 | ||
c370783e | 17577 | static PyObject *_wrap_FocusEvent_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17578 | PyObject *resultobj; |
17579 | wxFocusEvent *arg1 = (wxFocusEvent *) 0 ; | |
17580 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17581 | PyObject * obj0 = 0 ; | |
17582 | PyObject * obj1 = 0 ; | |
17583 | char *kwnames[] = { | |
17584 | (char *) "self",(char *) "win", NULL | |
17585 | }; | |
17586 | ||
17587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
17588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent, | |
17589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17590 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17592 | { | |
17593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17594 | (arg1)->SetWindow(arg2); | |
17595 | ||
17596 | wxPyEndAllowThreads(__tstate); | |
17597 | if (PyErr_Occurred()) SWIG_fail; | |
17598 | } | |
17599 | Py_INCREF(Py_None); resultobj = Py_None; | |
17600 | return resultobj; | |
17601 | fail: | |
17602 | return NULL; | |
17603 | } | |
17604 | ||
17605 | ||
c370783e | 17606 | static PyObject * FocusEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17607 | PyObject *obj; |
17608 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17609 | SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj); | |
17610 | Py_INCREF(obj); | |
17611 | return Py_BuildValue((char *)""); | |
17612 | } | |
c370783e | 17613 | static PyObject *_wrap_new_ChildFocusEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17614 | PyObject *resultobj; |
17615 | wxWindow *arg1 = (wxWindow *) NULL ; | |
17616 | wxChildFocusEvent *result; | |
17617 | PyObject * obj0 = 0 ; | |
17618 | char *kwnames[] = { | |
17619 | (char *) "win", NULL | |
17620 | }; | |
17621 | ||
17622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail; | |
17623 | if (obj0) { | |
17624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
17625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17626 | } | |
17627 | { | |
17628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17629 | result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1); | |
17630 | ||
17631 | wxPyEndAllowThreads(__tstate); | |
17632 | if (PyErr_Occurred()) SWIG_fail; | |
17633 | } | |
17634 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1); | |
17635 | return resultobj; | |
17636 | fail: | |
17637 | return NULL; | |
17638 | } | |
17639 | ||
17640 | ||
c370783e | 17641 | static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17642 | PyObject *resultobj; |
17643 | wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ; | |
17644 | wxWindow *result; | |
17645 | PyObject * obj0 = 0 ; | |
17646 | char *kwnames[] = { | |
17647 | (char *) "self", NULL | |
17648 | }; | |
17649 | ||
17650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail; | |
17651 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent, | |
17652 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17653 | { | |
17654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17655 | result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow(); | |
17656 | ||
17657 | wxPyEndAllowThreads(__tstate); | |
17658 | if (PyErr_Occurred()) SWIG_fail; | |
17659 | } | |
17660 | { | |
412d302d | 17661 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17662 | } |
17663 | return resultobj; | |
17664 | fail: | |
17665 | return NULL; | |
17666 | } | |
17667 | ||
17668 | ||
c370783e | 17669 | static PyObject * ChildFocusEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17670 | PyObject *obj; |
17671 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17672 | SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj); | |
17673 | Py_INCREF(obj); | |
17674 | return Py_BuildValue((char *)""); | |
17675 | } | |
c370783e | 17676 | static PyObject *_wrap_new_ActivateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17677 | PyObject *resultobj; |
17678 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
b411df4a | 17679 | bool arg2 = (bool) true ; |
d55e5bfc RD |
17680 | int arg3 = (int) 0 ; |
17681 | wxActivateEvent *result; | |
17682 | PyObject * obj0 = 0 ; | |
17683 | PyObject * obj1 = 0 ; | |
17684 | PyObject * obj2 = 0 ; | |
17685 | char *kwnames[] = { | |
17686 | (char *) "type",(char *) "active",(char *) "Id", NULL | |
17687 | }; | |
17688 | ||
17689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17690 | if (obj0) { | |
c370783e | 17691 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17692 | if (PyErr_Occurred()) SWIG_fail; |
17693 | } | |
17694 | if (obj1) { | |
c370783e | 17695 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17696 | if (PyErr_Occurred()) SWIG_fail; |
17697 | } | |
17698 | if (obj2) { | |
c370783e | 17699 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
17700 | if (PyErr_Occurred()) SWIG_fail; |
17701 | } | |
17702 | { | |
17703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17704 | result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3); | |
17705 | ||
17706 | wxPyEndAllowThreads(__tstate); | |
17707 | if (PyErr_Occurred()) SWIG_fail; | |
17708 | } | |
17709 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1); | |
17710 | return resultobj; | |
17711 | fail: | |
17712 | return NULL; | |
17713 | } | |
17714 | ||
17715 | ||
c370783e | 17716 | static PyObject *_wrap_ActivateEvent_GetActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17717 | PyObject *resultobj; |
17718 | wxActivateEvent *arg1 = (wxActivateEvent *) 0 ; | |
17719 | bool result; | |
17720 | PyObject * obj0 = 0 ; | |
17721 | char *kwnames[] = { | |
17722 | (char *) "self", NULL | |
17723 | }; | |
17724 | ||
17725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail; | |
17726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent, | |
17727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17728 | { | |
17729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17730 | result = (bool)((wxActivateEvent const *)arg1)->GetActive(); | |
17731 | ||
17732 | wxPyEndAllowThreads(__tstate); | |
17733 | if (PyErr_Occurred()) SWIG_fail; | |
17734 | } | |
17735 | { | |
17736 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17737 | } | |
17738 | return resultobj; | |
17739 | fail: | |
17740 | return NULL; | |
17741 | } | |
17742 | ||
17743 | ||
c370783e | 17744 | static PyObject * ActivateEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17745 | PyObject *obj; |
17746 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17747 | SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj); | |
17748 | Py_INCREF(obj); | |
17749 | return Py_BuildValue((char *)""); | |
17750 | } | |
c370783e | 17751 | static PyObject *_wrap_new_InitDialogEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17752 | PyObject *resultobj; |
17753 | int arg1 = (int) 0 ; | |
17754 | wxInitDialogEvent *result; | |
17755 | PyObject * obj0 = 0 ; | |
17756 | char *kwnames[] = { | |
17757 | (char *) "Id", NULL | |
17758 | }; | |
17759 | ||
17760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail; | |
17761 | if (obj0) { | |
c370783e | 17762 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
17763 | if (PyErr_Occurred()) SWIG_fail; |
17764 | } | |
17765 | { | |
17766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17767 | result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1); | |
17768 | ||
17769 | wxPyEndAllowThreads(__tstate); | |
17770 | if (PyErr_Occurred()) SWIG_fail; | |
17771 | } | |
17772 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1); | |
17773 | return resultobj; | |
17774 | fail: | |
17775 | return NULL; | |
17776 | } | |
17777 | ||
17778 | ||
c370783e | 17779 | static PyObject * InitDialogEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17780 | PyObject *obj; |
17781 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17782 | SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj); | |
17783 | Py_INCREF(obj); | |
17784 | return Py_BuildValue((char *)""); | |
17785 | } | |
c370783e | 17786 | static PyObject *_wrap_new_MenuEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17787 | PyObject *resultobj; |
17788 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17789 | int arg2 = (int) 0 ; | |
17790 | wxMenu *arg3 = (wxMenu *) NULL ; | |
17791 | wxMenuEvent *result; | |
17792 | PyObject * obj0 = 0 ; | |
17793 | PyObject * obj1 = 0 ; | |
17794 | PyObject * obj2 = 0 ; | |
17795 | char *kwnames[] = { | |
17796 | (char *) "type",(char *) "winid",(char *) "menu", NULL | |
17797 | }; | |
17798 | ||
17799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17800 | if (obj0) { | |
c370783e | 17801 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17802 | if (PyErr_Occurred()) SWIG_fail; |
17803 | } | |
17804 | if (obj1) { | |
c370783e | 17805 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17806 | if (PyErr_Occurred()) SWIG_fail; |
17807 | } | |
17808 | if (obj2) { | |
17809 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
17810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17811 | } | |
17812 | { | |
17813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17814 | result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3); | |
17815 | ||
17816 | wxPyEndAllowThreads(__tstate); | |
17817 | if (PyErr_Occurred()) SWIG_fail; | |
17818 | } | |
17819 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1); | |
17820 | return resultobj; | |
17821 | fail: | |
17822 | return NULL; | |
17823 | } | |
17824 | ||
17825 | ||
c370783e | 17826 | static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17827 | PyObject *resultobj; |
17828 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17829 | int result; | |
17830 | PyObject * obj0 = 0 ; | |
17831 | char *kwnames[] = { | |
17832 | (char *) "self", NULL | |
17833 | }; | |
17834 | ||
17835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail; | |
17836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17838 | { | |
17839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17840 | result = (int)((wxMenuEvent const *)arg1)->GetMenuId(); | |
17841 | ||
17842 | wxPyEndAllowThreads(__tstate); | |
17843 | if (PyErr_Occurred()) SWIG_fail; | |
17844 | } | |
c370783e | 17845 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
17846 | return resultobj; |
17847 | fail: | |
17848 | return NULL; | |
17849 | } | |
17850 | ||
17851 | ||
c370783e | 17852 | static PyObject *_wrap_MenuEvent_IsPopup(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17853 | PyObject *resultobj; |
17854 | wxMenuEvent *arg1 = (wxMenuEvent *) 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:MenuEvent_IsPopup",kwnames,&obj0)) goto fail; | |
17862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17864 | { | |
17865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17866 | result = (bool)((wxMenuEvent const *)arg1)->IsPopup(); | |
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 *_wrap_MenuEvent_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17881 | PyObject *resultobj; |
17882 | wxMenuEvent *arg1 = (wxMenuEvent *) 0 ; | |
17883 | wxMenu *result; | |
17884 | PyObject * obj0 = 0 ; | |
17885 | char *kwnames[] = { | |
17886 | (char *) "self", NULL | |
17887 | }; | |
17888 | ||
17889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail; | |
17890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent, | |
17891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17892 | { | |
17893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17894 | result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu(); | |
17895 | ||
17896 | wxPyEndAllowThreads(__tstate); | |
17897 | if (PyErr_Occurred()) SWIG_fail; | |
17898 | } | |
17899 | { | |
412d302d | 17900 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17901 | } |
17902 | return resultobj; | |
17903 | fail: | |
17904 | return NULL; | |
17905 | } | |
17906 | ||
17907 | ||
c370783e | 17908 | static PyObject * MenuEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
17909 | PyObject *obj; |
17910 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17911 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj); | |
17912 | Py_INCREF(obj); | |
17913 | return Py_BuildValue((char *)""); | |
17914 | } | |
c370783e | 17915 | static PyObject *_wrap_new_CloseEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17916 | PyObject *resultobj; |
17917 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17918 | int arg2 = (int) 0 ; | |
17919 | wxCloseEvent *result; | |
17920 | PyObject * obj0 = 0 ; | |
17921 | PyObject * obj1 = 0 ; | |
17922 | char *kwnames[] = { | |
17923 | (char *) "type",(char *) "winid", NULL | |
17924 | }; | |
17925 | ||
17926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail; | |
17927 | if (obj0) { | |
c370783e | 17928 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
17929 | if (PyErr_Occurred()) SWIG_fail; |
17930 | } | |
17931 | if (obj1) { | |
c370783e | 17932 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
17933 | if (PyErr_Occurred()) SWIG_fail; |
17934 | } | |
17935 | { | |
17936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17937 | result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2); | |
17938 | ||
17939 | wxPyEndAllowThreads(__tstate); | |
17940 | if (PyErr_Occurred()) SWIG_fail; | |
17941 | } | |
17942 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1); | |
17943 | return resultobj; | |
17944 | fail: | |
17945 | return NULL; | |
17946 | } | |
17947 | ||
17948 | ||
c370783e | 17949 | static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17950 | PyObject *resultobj; |
17951 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17952 | bool arg2 ; | |
17953 | PyObject * obj0 = 0 ; | |
17954 | PyObject * obj1 = 0 ; | |
17955 | char *kwnames[] = { | |
17956 | (char *) "self",(char *) "logOff", NULL | |
17957 | }; | |
17958 | ||
17959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail; | |
17960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 17962 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
17963 | if (PyErr_Occurred()) SWIG_fail; |
17964 | { | |
17965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17966 | (arg1)->SetLoggingOff(arg2); | |
17967 | ||
17968 | wxPyEndAllowThreads(__tstate); | |
17969 | if (PyErr_Occurred()) SWIG_fail; | |
17970 | } | |
17971 | Py_INCREF(Py_None); resultobj = Py_None; | |
17972 | return resultobj; | |
17973 | fail: | |
17974 | return NULL; | |
17975 | } | |
17976 | ||
17977 | ||
c370783e | 17978 | static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
17979 | PyObject *resultobj; |
17980 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
17981 | bool result; | |
17982 | PyObject * obj0 = 0 ; | |
17983 | char *kwnames[] = { | |
17984 | (char *) "self", NULL | |
17985 | }; | |
17986 | ||
17987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail; | |
17988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
17989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17990 | { | |
17991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17992 | result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff(); | |
17993 | ||
17994 | wxPyEndAllowThreads(__tstate); | |
17995 | if (PyErr_Occurred()) SWIG_fail; | |
17996 | } | |
17997 | { | |
17998 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17999 | } | |
18000 | return resultobj; | |
18001 | fail: | |
18002 | return NULL; | |
18003 | } | |
18004 | ||
18005 | ||
c370783e | 18006 | static PyObject *_wrap_CloseEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18007 | PyObject *resultobj; |
18008 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
b411df4a | 18009 | bool arg2 = (bool) true ; |
d55e5bfc RD |
18010 | PyObject * obj0 = 0 ; |
18011 | PyObject * obj1 = 0 ; | |
18012 | char *kwnames[] = { | |
18013 | (char *) "self",(char *) "veto", NULL | |
18014 | }; | |
18015 | ||
18016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail; | |
18017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
18018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18019 | if (obj1) { | |
c370783e | 18020 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18021 | if (PyErr_Occurred()) SWIG_fail; |
18022 | } | |
18023 | { | |
18024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18025 | (arg1)->Veto(arg2); | |
18026 | ||
18027 | wxPyEndAllowThreads(__tstate); | |
18028 | if (PyErr_Occurred()) SWIG_fail; | |
18029 | } | |
18030 | Py_INCREF(Py_None); resultobj = Py_None; | |
18031 | return resultobj; | |
18032 | fail: | |
18033 | return NULL; | |
18034 | } | |
18035 | ||
18036 | ||
c370783e | 18037 | static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18038 | PyObject *resultobj; |
18039 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
18040 | bool arg2 ; | |
18041 | PyObject * obj0 = 0 ; | |
18042 | PyObject * obj1 = 0 ; | |
18043 | char *kwnames[] = { | |
18044 | (char *) "self",(char *) "canVeto", NULL | |
18045 | }; | |
18046 | ||
18047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail; | |
18048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
18049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18050 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18051 | if (PyErr_Occurred()) SWIG_fail; |
18052 | { | |
18053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18054 | (arg1)->SetCanVeto(arg2); | |
18055 | ||
18056 | wxPyEndAllowThreads(__tstate); | |
18057 | if (PyErr_Occurred()) SWIG_fail; | |
18058 | } | |
18059 | Py_INCREF(Py_None); resultobj = Py_None; | |
18060 | return resultobj; | |
18061 | fail: | |
18062 | return NULL; | |
18063 | } | |
18064 | ||
18065 | ||
c370783e | 18066 | static PyObject *_wrap_CloseEvent_CanVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18067 | PyObject *resultobj; |
18068 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
18069 | bool result; | |
18070 | PyObject * obj0 = 0 ; | |
18071 | char *kwnames[] = { | |
18072 | (char *) "self", NULL | |
18073 | }; | |
18074 | ||
18075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail; | |
18076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
18077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18078 | { | |
18079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18080 | result = (bool)((wxCloseEvent const *)arg1)->CanVeto(); | |
18081 | ||
18082 | wxPyEndAllowThreads(__tstate); | |
18083 | if (PyErr_Occurred()) SWIG_fail; | |
18084 | } | |
18085 | { | |
18086 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18087 | } | |
18088 | return resultobj; | |
18089 | fail: | |
18090 | return NULL; | |
18091 | } | |
18092 | ||
18093 | ||
c370783e | 18094 | static PyObject *_wrap_CloseEvent_GetVeto(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18095 | PyObject *resultobj; |
18096 | wxCloseEvent *arg1 = (wxCloseEvent *) 0 ; | |
18097 | bool result; | |
18098 | PyObject * obj0 = 0 ; | |
18099 | char *kwnames[] = { | |
18100 | (char *) "self", NULL | |
18101 | }; | |
18102 | ||
18103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail; | |
18104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent, | |
18105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18106 | { | |
18107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18108 | result = (bool)((wxCloseEvent const *)arg1)->GetVeto(); | |
18109 | ||
18110 | wxPyEndAllowThreads(__tstate); | |
18111 | if (PyErr_Occurred()) SWIG_fail; | |
18112 | } | |
18113 | { | |
18114 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18115 | } | |
18116 | return resultobj; | |
18117 | fail: | |
18118 | return NULL; | |
18119 | } | |
18120 | ||
18121 | ||
c370783e | 18122 | static PyObject * CloseEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18123 | PyObject *obj; |
18124 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18125 | SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj); | |
18126 | Py_INCREF(obj); | |
18127 | return Py_BuildValue((char *)""); | |
18128 | } | |
c370783e | 18129 | static PyObject *_wrap_new_ShowEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18130 | PyObject *resultobj; |
18131 | int arg1 = (int) 0 ; | |
b411df4a | 18132 | bool arg2 = (bool) false ; |
d55e5bfc RD |
18133 | wxShowEvent *result; |
18134 | PyObject * obj0 = 0 ; | |
18135 | PyObject * obj1 = 0 ; | |
18136 | char *kwnames[] = { | |
18137 | (char *) "winid",(char *) "show", NULL | |
18138 | }; | |
18139 | ||
18140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail; | |
18141 | if (obj0) { | |
c370783e | 18142 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18143 | if (PyErr_Occurred()) SWIG_fail; |
18144 | } | |
18145 | if (obj1) { | |
c370783e | 18146 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18147 | if (PyErr_Occurred()) SWIG_fail; |
18148 | } | |
18149 | { | |
18150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18151 | result = (wxShowEvent *)new wxShowEvent(arg1,arg2); | |
18152 | ||
18153 | wxPyEndAllowThreads(__tstate); | |
18154 | if (PyErr_Occurred()) SWIG_fail; | |
18155 | } | |
18156 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1); | |
18157 | return resultobj; | |
18158 | fail: | |
18159 | return NULL; | |
18160 | } | |
18161 | ||
18162 | ||
c370783e | 18163 | static PyObject *_wrap_ShowEvent_SetShow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18164 | PyObject *resultobj; |
18165 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
18166 | bool arg2 ; | |
18167 | PyObject * obj0 = 0 ; | |
18168 | PyObject * obj1 = 0 ; | |
18169 | char *kwnames[] = { | |
18170 | (char *) "self",(char *) "show", NULL | |
18171 | }; | |
18172 | ||
18173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail; | |
18174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, | |
18175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18176 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18177 | if (PyErr_Occurred()) SWIG_fail; |
18178 | { | |
18179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18180 | (arg1)->SetShow(arg2); | |
18181 | ||
18182 | wxPyEndAllowThreads(__tstate); | |
18183 | if (PyErr_Occurred()) SWIG_fail; | |
18184 | } | |
18185 | Py_INCREF(Py_None); resultobj = Py_None; | |
18186 | return resultobj; | |
18187 | fail: | |
18188 | return NULL; | |
18189 | } | |
18190 | ||
18191 | ||
c370783e | 18192 | static PyObject *_wrap_ShowEvent_GetShow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18193 | PyObject *resultobj; |
18194 | wxShowEvent *arg1 = (wxShowEvent *) 0 ; | |
18195 | bool result; | |
18196 | PyObject * obj0 = 0 ; | |
18197 | char *kwnames[] = { | |
18198 | (char *) "self", NULL | |
18199 | }; | |
18200 | ||
18201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail; | |
18202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent, | |
18203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18204 | { | |
18205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18206 | result = (bool)((wxShowEvent const *)arg1)->GetShow(); | |
18207 | ||
18208 | wxPyEndAllowThreads(__tstate); | |
18209 | if (PyErr_Occurred()) SWIG_fail; | |
18210 | } | |
18211 | { | |
18212 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18213 | } | |
18214 | return resultobj; | |
18215 | fail: | |
18216 | return NULL; | |
18217 | } | |
18218 | ||
18219 | ||
c370783e | 18220 | static PyObject * ShowEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18221 | PyObject *obj; |
18222 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18223 | SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj); | |
18224 | Py_INCREF(obj); | |
18225 | return Py_BuildValue((char *)""); | |
18226 | } | |
c370783e | 18227 | static PyObject *_wrap_new_IconizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18228 | PyObject *resultobj; |
18229 | int arg1 = (int) 0 ; | |
b411df4a | 18230 | bool arg2 = (bool) true ; |
d55e5bfc RD |
18231 | wxIconizeEvent *result; |
18232 | PyObject * obj0 = 0 ; | |
18233 | PyObject * obj1 = 0 ; | |
18234 | char *kwnames[] = { | |
18235 | (char *) "id",(char *) "iconized", NULL | |
18236 | }; | |
18237 | ||
18238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail; | |
18239 | if (obj0) { | |
c370783e | 18240 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18241 | if (PyErr_Occurred()) SWIG_fail; |
18242 | } | |
18243 | if (obj1) { | |
c370783e | 18244 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18245 | if (PyErr_Occurred()) SWIG_fail; |
18246 | } | |
18247 | { | |
18248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18249 | result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2); | |
18250 | ||
18251 | wxPyEndAllowThreads(__tstate); | |
18252 | if (PyErr_Occurred()) SWIG_fail; | |
18253 | } | |
18254 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1); | |
18255 | return resultobj; | |
18256 | fail: | |
18257 | return NULL; | |
18258 | } | |
18259 | ||
18260 | ||
c370783e | 18261 | static PyObject *_wrap_IconizeEvent_Iconized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18262 | PyObject *resultobj; |
18263 | wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ; | |
18264 | bool result; | |
18265 | PyObject * obj0 = 0 ; | |
18266 | char *kwnames[] = { | |
18267 | (char *) "self", NULL | |
18268 | }; | |
18269 | ||
18270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail; | |
18271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent, | |
18272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18273 | { | |
18274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18275 | result = (bool)(arg1)->Iconized(); | |
18276 | ||
18277 | wxPyEndAllowThreads(__tstate); | |
18278 | if (PyErr_Occurred()) SWIG_fail; | |
18279 | } | |
18280 | { | |
18281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18282 | } | |
18283 | return resultobj; | |
18284 | fail: | |
18285 | return NULL; | |
18286 | } | |
18287 | ||
18288 | ||
c370783e | 18289 | static PyObject * IconizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18290 | PyObject *obj; |
18291 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18292 | SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj); | |
18293 | Py_INCREF(obj); | |
18294 | return Py_BuildValue((char *)""); | |
18295 | } | |
c370783e | 18296 | static PyObject *_wrap_new_MaximizeEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18297 | PyObject *resultobj; |
18298 | int arg1 = (int) 0 ; | |
18299 | wxMaximizeEvent *result; | |
18300 | PyObject * obj0 = 0 ; | |
18301 | char *kwnames[] = { | |
18302 | (char *) "id", NULL | |
18303 | }; | |
18304 | ||
18305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail; | |
18306 | if (obj0) { | |
c370783e | 18307 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18308 | if (PyErr_Occurred()) SWIG_fail; |
18309 | } | |
18310 | { | |
18311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18312 | result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1); | |
18313 | ||
18314 | wxPyEndAllowThreads(__tstate); | |
18315 | if (PyErr_Occurred()) SWIG_fail; | |
18316 | } | |
18317 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1); | |
18318 | return resultobj; | |
18319 | fail: | |
18320 | return NULL; | |
18321 | } | |
18322 | ||
18323 | ||
c370783e | 18324 | static PyObject * MaximizeEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18325 | PyObject *obj; |
18326 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18327 | SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj); | |
18328 | Py_INCREF(obj); | |
18329 | return Py_BuildValue((char *)""); | |
18330 | } | |
c370783e | 18331 | static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18332 | PyObject *resultobj; |
18333 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
18334 | wxPoint result; | |
18335 | PyObject * obj0 = 0 ; | |
18336 | char *kwnames[] = { | |
18337 | (char *) "self", NULL | |
18338 | }; | |
18339 | ||
18340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail; | |
18341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
18342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18343 | { | |
18344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18345 | result = (arg1)->GetPosition(); | |
18346 | ||
18347 | wxPyEndAllowThreads(__tstate); | |
18348 | if (PyErr_Occurred()) SWIG_fail; | |
18349 | } | |
18350 | { | |
18351 | wxPoint * resultptr; | |
18352 | resultptr = new wxPoint((wxPoint &) result); | |
18353 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
18354 | } | |
18355 | return resultobj; | |
18356 | fail: | |
18357 | return NULL; | |
18358 | } | |
18359 | ||
18360 | ||
c370783e | 18361 | static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18362 | PyObject *resultobj; |
18363 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
18364 | int result; | |
18365 | PyObject * obj0 = 0 ; | |
18366 | char *kwnames[] = { | |
18367 | (char *) "self", NULL | |
18368 | }; | |
18369 | ||
18370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail; | |
18371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
18372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18373 | { | |
18374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18375 | result = (int)(arg1)->GetNumberOfFiles(); | |
18376 | ||
18377 | wxPyEndAllowThreads(__tstate); | |
18378 | if (PyErr_Occurred()) SWIG_fail; | |
18379 | } | |
c370783e | 18380 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18381 | return resultobj; |
18382 | fail: | |
18383 | return NULL; | |
18384 | } | |
18385 | ||
18386 | ||
c370783e | 18387 | static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18388 | PyObject *resultobj; |
18389 | wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ; | |
18390 | PyObject *result; | |
18391 | PyObject * obj0 = 0 ; | |
18392 | char *kwnames[] = { | |
18393 | (char *) "self", NULL | |
18394 | }; | |
18395 | ||
18396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail; | |
18397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent, | |
18398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18399 | { | |
18400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18401 | result = (PyObject *)wxDropFilesEvent_GetFiles(arg1); | |
18402 | ||
18403 | wxPyEndAllowThreads(__tstate); | |
18404 | if (PyErr_Occurred()) SWIG_fail; | |
18405 | } | |
18406 | resultobj = result; | |
18407 | return resultobj; | |
18408 | fail: | |
18409 | return NULL; | |
18410 | } | |
18411 | ||
18412 | ||
c370783e | 18413 | static PyObject * DropFilesEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18414 | PyObject *obj; |
18415 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18416 | SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj); | |
18417 | Py_INCREF(obj); | |
18418 | return Py_BuildValue((char *)""); | |
18419 | } | |
c370783e | 18420 | static PyObject *_wrap_new_UpdateUIEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18421 | PyObject *resultobj; |
18422 | int arg1 = (int) 0 ; | |
18423 | wxUpdateUIEvent *result; | |
18424 | PyObject * obj0 = 0 ; | |
18425 | char *kwnames[] = { | |
18426 | (char *) "commandId", NULL | |
18427 | }; | |
18428 | ||
18429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail; | |
18430 | if (obj0) { | |
c370783e | 18431 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18432 | if (PyErr_Occurred()) SWIG_fail; |
18433 | } | |
18434 | { | |
18435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18436 | result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1); | |
18437 | ||
18438 | wxPyEndAllowThreads(__tstate); | |
18439 | if (PyErr_Occurred()) SWIG_fail; | |
18440 | } | |
18441 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1); | |
18442 | return resultobj; | |
18443 | fail: | |
18444 | return NULL; | |
18445 | } | |
18446 | ||
18447 | ||
c370783e | 18448 | static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18449 | PyObject *resultobj; |
18450 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18451 | bool result; | |
18452 | PyObject * obj0 = 0 ; | |
18453 | char *kwnames[] = { | |
18454 | (char *) "self", NULL | |
18455 | }; | |
18456 | ||
18457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail; | |
18458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18460 | { | |
18461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18462 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked(); | |
18463 | ||
18464 | wxPyEndAllowThreads(__tstate); | |
18465 | if (PyErr_Occurred()) SWIG_fail; | |
18466 | } | |
18467 | { | |
18468 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18469 | } | |
18470 | return resultobj; | |
18471 | fail: | |
18472 | return NULL; | |
18473 | } | |
18474 | ||
18475 | ||
c370783e | 18476 | static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18477 | PyObject *resultobj; |
18478 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18479 | bool result; | |
18480 | PyObject * obj0 = 0 ; | |
18481 | char *kwnames[] = { | |
18482 | (char *) "self", NULL | |
18483 | }; | |
18484 | ||
18485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail; | |
18486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18488 | { | |
18489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18490 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled(); | |
18491 | ||
18492 | wxPyEndAllowThreads(__tstate); | |
18493 | if (PyErr_Occurred()) SWIG_fail; | |
18494 | } | |
18495 | { | |
18496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18497 | } | |
18498 | return resultobj; | |
18499 | fail: | |
18500 | return NULL; | |
18501 | } | |
18502 | ||
18503 | ||
c370783e | 18504 | static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18505 | PyObject *resultobj; |
18506 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18507 | wxString result; | |
18508 | PyObject * obj0 = 0 ; | |
18509 | char *kwnames[] = { | |
18510 | (char *) "self", NULL | |
18511 | }; | |
18512 | ||
18513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail; | |
18514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18516 | { | |
18517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18518 | result = ((wxUpdateUIEvent const *)arg1)->GetText(); | |
18519 | ||
18520 | wxPyEndAllowThreads(__tstate); | |
18521 | if (PyErr_Occurred()) SWIG_fail; | |
18522 | } | |
18523 | { | |
18524 | #if wxUSE_UNICODE | |
18525 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18526 | #else | |
18527 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18528 | #endif | |
18529 | } | |
18530 | return resultobj; | |
18531 | fail: | |
18532 | return NULL; | |
18533 | } | |
18534 | ||
18535 | ||
c370783e | 18536 | static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18537 | PyObject *resultobj; |
18538 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18539 | bool result; | |
18540 | PyObject * obj0 = 0 ; | |
18541 | char *kwnames[] = { | |
18542 | (char *) "self", NULL | |
18543 | }; | |
18544 | ||
18545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail; | |
18546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18548 | { | |
18549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18550 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText(); | |
18551 | ||
18552 | wxPyEndAllowThreads(__tstate); | |
18553 | if (PyErr_Occurred()) SWIG_fail; | |
18554 | } | |
18555 | { | |
18556 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18557 | } | |
18558 | return resultobj; | |
18559 | fail: | |
18560 | return NULL; | |
18561 | } | |
18562 | ||
18563 | ||
c370783e | 18564 | static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18565 | PyObject *resultobj; |
18566 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18567 | bool result; | |
18568 | PyObject * obj0 = 0 ; | |
18569 | char *kwnames[] = { | |
18570 | (char *) "self", NULL | |
18571 | }; | |
18572 | ||
18573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail; | |
18574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18576 | { | |
18577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18578 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked(); | |
18579 | ||
18580 | wxPyEndAllowThreads(__tstate); | |
18581 | if (PyErr_Occurred()) SWIG_fail; | |
18582 | } | |
18583 | { | |
18584 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18585 | } | |
18586 | return resultobj; | |
18587 | fail: | |
18588 | return NULL; | |
18589 | } | |
18590 | ||
18591 | ||
c370783e | 18592 | static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18593 | PyObject *resultobj; |
18594 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18595 | bool result; | |
18596 | PyObject * obj0 = 0 ; | |
18597 | char *kwnames[] = { | |
18598 | (char *) "self", NULL | |
18599 | }; | |
18600 | ||
18601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail; | |
18602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18604 | { | |
18605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18606 | result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled(); | |
18607 | ||
18608 | wxPyEndAllowThreads(__tstate); | |
18609 | if (PyErr_Occurred()) SWIG_fail; | |
18610 | } | |
18611 | { | |
18612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18613 | } | |
18614 | return resultobj; | |
18615 | fail: | |
18616 | return NULL; | |
18617 | } | |
18618 | ||
18619 | ||
c370783e | 18620 | static PyObject *_wrap_UpdateUIEvent_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18621 | PyObject *resultobj; |
18622 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18623 | bool arg2 ; | |
18624 | PyObject * obj0 = 0 ; | |
18625 | PyObject * obj1 = 0 ; | |
18626 | char *kwnames[] = { | |
18627 | (char *) "self",(char *) "check", NULL | |
18628 | }; | |
18629 | ||
18630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail; | |
18631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18633 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18634 | if (PyErr_Occurred()) SWIG_fail; |
18635 | { | |
18636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18637 | (arg1)->Check(arg2); | |
18638 | ||
18639 | wxPyEndAllowThreads(__tstate); | |
18640 | if (PyErr_Occurred()) SWIG_fail; | |
18641 | } | |
18642 | Py_INCREF(Py_None); resultobj = Py_None; | |
18643 | return resultobj; | |
18644 | fail: | |
18645 | return NULL; | |
18646 | } | |
18647 | ||
18648 | ||
c370783e | 18649 | static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18650 | PyObject *resultobj; |
18651 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18652 | bool arg2 ; | |
18653 | PyObject * obj0 = 0 ; | |
18654 | PyObject * obj1 = 0 ; | |
18655 | char *kwnames[] = { | |
18656 | (char *) "self",(char *) "enable", NULL | |
18657 | }; | |
18658 | ||
18659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail; | |
18660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 18662 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
18663 | if (PyErr_Occurred()) SWIG_fail; |
18664 | { | |
18665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18666 | (arg1)->Enable(arg2); | |
18667 | ||
18668 | wxPyEndAllowThreads(__tstate); | |
18669 | if (PyErr_Occurred()) SWIG_fail; | |
18670 | } | |
18671 | Py_INCREF(Py_None); resultobj = Py_None; | |
18672 | return resultobj; | |
18673 | fail: | |
18674 | return NULL; | |
18675 | } | |
18676 | ||
18677 | ||
c370783e | 18678 | static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18679 | PyObject *resultobj; |
18680 | wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ; | |
18681 | wxString *arg2 = 0 ; | |
b411df4a | 18682 | bool temp2 = false ; |
d55e5bfc RD |
18683 | PyObject * obj0 = 0 ; |
18684 | PyObject * obj1 = 0 ; | |
18685 | char *kwnames[] = { | |
18686 | (char *) "self",(char *) "text", NULL | |
18687 | }; | |
18688 | ||
18689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail; | |
18690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent, | |
18691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18692 | { | |
18693 | arg2 = wxString_in_helper(obj1); | |
18694 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 18695 | temp2 = true; |
d55e5bfc RD |
18696 | } |
18697 | { | |
18698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18699 | (arg1)->SetText((wxString const &)*arg2); | |
18700 | ||
18701 | wxPyEndAllowThreads(__tstate); | |
18702 | if (PyErr_Occurred()) SWIG_fail; | |
18703 | } | |
18704 | Py_INCREF(Py_None); resultobj = Py_None; | |
18705 | { | |
18706 | if (temp2) | |
18707 | delete arg2; | |
18708 | } | |
18709 | return resultobj; | |
18710 | fail: | |
18711 | { | |
18712 | if (temp2) | |
18713 | delete arg2; | |
18714 | } | |
18715 | return NULL; | |
18716 | } | |
18717 | ||
18718 | ||
c370783e | 18719 | static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18720 | PyObject *resultobj; |
18721 | long arg1 ; | |
18722 | PyObject * obj0 = 0 ; | |
18723 | char *kwnames[] = { | |
18724 | (char *) "updateInterval", NULL | |
18725 | }; | |
18726 | ||
18727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail; | |
c370783e | 18728 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
18729 | if (PyErr_Occurred()) SWIG_fail; |
18730 | { | |
18731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18732 | wxUpdateUIEvent::SetUpdateInterval(arg1); | |
18733 | ||
18734 | wxPyEndAllowThreads(__tstate); | |
18735 | if (PyErr_Occurred()) SWIG_fail; | |
18736 | } | |
18737 | Py_INCREF(Py_None); resultobj = Py_None; | |
18738 | return resultobj; | |
18739 | fail: | |
18740 | return NULL; | |
18741 | } | |
18742 | ||
18743 | ||
c370783e | 18744 | static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18745 | PyObject *resultobj; |
18746 | long result; | |
18747 | char *kwnames[] = { | |
18748 | NULL | |
18749 | }; | |
18750 | ||
18751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail; | |
18752 | { | |
18753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18754 | result = (long)wxUpdateUIEvent::GetUpdateInterval(); | |
18755 | ||
18756 | wxPyEndAllowThreads(__tstate); | |
18757 | if (PyErr_Occurred()) SWIG_fail; | |
18758 | } | |
c370783e | 18759 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
18760 | return resultobj; |
18761 | fail: | |
18762 | return NULL; | |
18763 | } | |
18764 | ||
18765 | ||
c370783e | 18766 | static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18767 | PyObject *resultobj; |
18768 | wxWindow *arg1 = (wxWindow *) 0 ; | |
18769 | bool result; | |
18770 | PyObject * obj0 = 0 ; | |
18771 | char *kwnames[] = { | |
18772 | (char *) "win", NULL | |
18773 | }; | |
18774 | ||
18775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail; | |
18776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
18777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18778 | { | |
18779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18780 | result = (bool)wxUpdateUIEvent::CanUpdate(arg1); | |
18781 | ||
18782 | wxPyEndAllowThreads(__tstate); | |
18783 | if (PyErr_Occurred()) SWIG_fail; | |
18784 | } | |
18785 | { | |
18786 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18787 | } | |
18788 | return resultobj; | |
18789 | fail: | |
18790 | return NULL; | |
18791 | } | |
18792 | ||
18793 | ||
c370783e | 18794 | static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18795 | PyObject *resultobj; |
18796 | char *kwnames[] = { | |
18797 | NULL | |
18798 | }; | |
18799 | ||
18800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail; | |
18801 | { | |
18802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18803 | wxUpdateUIEvent::ResetUpdateTime(); | |
18804 | ||
18805 | wxPyEndAllowThreads(__tstate); | |
18806 | if (PyErr_Occurred()) SWIG_fail; | |
18807 | } | |
18808 | Py_INCREF(Py_None); resultobj = Py_None; | |
18809 | return resultobj; | |
18810 | fail: | |
18811 | return NULL; | |
18812 | } | |
18813 | ||
18814 | ||
c370783e | 18815 | static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18816 | PyObject *resultobj; |
18817 | int arg1 ; | |
18818 | PyObject * obj0 = 0 ; | |
18819 | char *kwnames[] = { | |
18820 | (char *) "mode", NULL | |
18821 | }; | |
18822 | ||
18823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail; | |
c370783e | 18824 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18825 | if (PyErr_Occurred()) SWIG_fail; |
18826 | { | |
18827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18828 | wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1); | |
18829 | ||
18830 | wxPyEndAllowThreads(__tstate); | |
18831 | if (PyErr_Occurred()) SWIG_fail; | |
18832 | } | |
18833 | Py_INCREF(Py_None); resultobj = Py_None; | |
18834 | return resultobj; | |
18835 | fail: | |
18836 | return NULL; | |
18837 | } | |
18838 | ||
18839 | ||
c370783e | 18840 | static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18841 | PyObject *resultobj; |
18842 | int result; | |
18843 | char *kwnames[] = { | |
18844 | NULL | |
18845 | }; | |
18846 | ||
18847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail; | |
18848 | { | |
18849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18850 | result = (int)wxUpdateUIEvent::GetMode(); | |
18851 | ||
18852 | wxPyEndAllowThreads(__tstate); | |
18853 | if (PyErr_Occurred()) SWIG_fail; | |
18854 | } | |
c370783e | 18855 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
18856 | return resultobj; |
18857 | fail: | |
18858 | return NULL; | |
18859 | } | |
18860 | ||
18861 | ||
c370783e | 18862 | static PyObject * UpdateUIEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18863 | PyObject *obj; |
18864 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18865 | SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj); | |
18866 | Py_INCREF(obj); | |
18867 | return Py_BuildValue((char *)""); | |
18868 | } | |
c370783e | 18869 | static PyObject *_wrap_new_SysColourChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18870 | PyObject *resultobj; |
18871 | wxSysColourChangedEvent *result; | |
18872 | char *kwnames[] = { | |
18873 | NULL | |
18874 | }; | |
18875 | ||
18876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail; | |
18877 | { | |
18878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18879 | result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent(); | |
18880 | ||
18881 | wxPyEndAllowThreads(__tstate); | |
18882 | if (PyErr_Occurred()) SWIG_fail; | |
18883 | } | |
18884 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1); | |
18885 | return resultobj; | |
18886 | fail: | |
18887 | return NULL; | |
18888 | } | |
18889 | ||
18890 | ||
c370783e | 18891 | static PyObject * SysColourChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18892 | PyObject *obj; |
18893 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18894 | SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj); | |
18895 | Py_INCREF(obj); | |
18896 | return Py_BuildValue((char *)""); | |
18897 | } | |
c370783e | 18898 | static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18899 | PyObject *resultobj; |
18900 | int arg1 = (int) 0 ; | |
18901 | wxWindow *arg2 = (wxWindow *) NULL ; | |
18902 | wxMouseCaptureChangedEvent *result; | |
18903 | PyObject * obj0 = 0 ; | |
18904 | PyObject * obj1 = 0 ; | |
18905 | char *kwnames[] = { | |
18906 | (char *) "winid",(char *) "gainedCapture", NULL | |
18907 | }; | |
18908 | ||
18909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail; | |
18910 | if (obj0) { | |
c370783e | 18911 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
18912 | if (PyErr_Occurred()) SWIG_fail; |
18913 | } | |
18914 | if (obj1) { | |
18915 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18917 | } | |
18918 | { | |
18919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18920 | result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2); | |
18921 | ||
18922 | wxPyEndAllowThreads(__tstate); | |
18923 | if (PyErr_Occurred()) SWIG_fail; | |
18924 | } | |
18925 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1); | |
18926 | return resultobj; | |
18927 | fail: | |
18928 | return NULL; | |
18929 | } | |
18930 | ||
18931 | ||
c370783e | 18932 | static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18933 | PyObject *resultobj; |
18934 | wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ; | |
18935 | wxWindow *result; | |
18936 | PyObject * obj0 = 0 ; | |
18937 | char *kwnames[] = { | |
18938 | (char *) "self", NULL | |
18939 | }; | |
18940 | ||
18941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail; | |
18942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent, | |
18943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18944 | { | |
18945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18946 | result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow(); | |
18947 | ||
18948 | wxPyEndAllowThreads(__tstate); | |
18949 | if (PyErr_Occurred()) SWIG_fail; | |
18950 | } | |
18951 | { | |
412d302d | 18952 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18953 | } |
18954 | return resultobj; | |
18955 | fail: | |
18956 | return NULL; | |
18957 | } | |
18958 | ||
18959 | ||
c370783e | 18960 | static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18961 | PyObject *obj; |
18962 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18963 | SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj); | |
18964 | Py_INCREF(obj); | |
18965 | return Py_BuildValue((char *)""); | |
18966 | } | |
c370783e | 18967 | static PyObject *_wrap_new_DisplayChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18968 | PyObject *resultobj; |
18969 | wxDisplayChangedEvent *result; | |
18970 | char *kwnames[] = { | |
18971 | NULL | |
18972 | }; | |
18973 | ||
18974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail; | |
18975 | { | |
18976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18977 | result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent(); | |
18978 | ||
18979 | wxPyEndAllowThreads(__tstate); | |
18980 | if (PyErr_Occurred()) SWIG_fail; | |
18981 | } | |
18982 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1); | |
18983 | return resultobj; | |
18984 | fail: | |
18985 | return NULL; | |
18986 | } | |
18987 | ||
18988 | ||
c370783e | 18989 | static PyObject * DisplayChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
18990 | PyObject *obj; |
18991 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18992 | SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj); | |
18993 | Py_INCREF(obj); | |
18994 | return Py_BuildValue((char *)""); | |
18995 | } | |
c370783e | 18996 | static PyObject *_wrap_new_PaletteChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
18997 | PyObject *resultobj; |
18998 | int arg1 = (int) 0 ; | |
18999 | wxPaletteChangedEvent *result; | |
19000 | PyObject * obj0 = 0 ; | |
19001 | char *kwnames[] = { | |
19002 | (char *) "id", NULL | |
19003 | }; | |
19004 | ||
19005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail; | |
19006 | if (obj0) { | |
c370783e | 19007 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
19008 | if (PyErr_Occurred()) SWIG_fail; |
19009 | } | |
19010 | { | |
19011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19012 | result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1); | |
19013 | ||
19014 | wxPyEndAllowThreads(__tstate); | |
19015 | if (PyErr_Occurred()) SWIG_fail; | |
19016 | } | |
19017 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1); | |
19018 | return resultobj; | |
19019 | fail: | |
19020 | return NULL; | |
19021 | } | |
19022 | ||
19023 | ||
c370783e | 19024 | static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19025 | PyObject *resultobj; |
19026 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
19027 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19028 | PyObject * obj0 = 0 ; | |
19029 | PyObject * obj1 = 0 ; | |
19030 | char *kwnames[] = { | |
19031 | (char *) "self",(char *) "win", NULL | |
19032 | }; | |
19033 | ||
19034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail; | |
19035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, | |
19036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19037 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19039 | { | |
19040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19041 | (arg1)->SetChangedWindow(arg2); | |
19042 | ||
19043 | wxPyEndAllowThreads(__tstate); | |
19044 | if (PyErr_Occurred()) SWIG_fail; | |
19045 | } | |
19046 | Py_INCREF(Py_None); resultobj = Py_None; | |
19047 | return resultobj; | |
19048 | fail: | |
19049 | return NULL; | |
19050 | } | |
19051 | ||
19052 | ||
c370783e | 19053 | static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19054 | PyObject *resultobj; |
19055 | wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ; | |
19056 | wxWindow *result; | |
19057 | PyObject * obj0 = 0 ; | |
19058 | char *kwnames[] = { | |
19059 | (char *) "self", NULL | |
19060 | }; | |
19061 | ||
19062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail; | |
19063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent, | |
19064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19065 | { | |
19066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19067 | result = (wxWindow *)(arg1)->GetChangedWindow(); | |
19068 | ||
19069 | wxPyEndAllowThreads(__tstate); | |
19070 | if (PyErr_Occurred()) SWIG_fail; | |
19071 | } | |
19072 | { | |
412d302d | 19073 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19074 | } |
19075 | return resultobj; | |
19076 | fail: | |
19077 | return NULL; | |
19078 | } | |
19079 | ||
19080 | ||
c370783e | 19081 | static PyObject * PaletteChangedEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19082 | PyObject *obj; |
19083 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19084 | SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj); | |
19085 | Py_INCREF(obj); | |
19086 | return Py_BuildValue((char *)""); | |
19087 | } | |
c370783e | 19088 | static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19089 | PyObject *resultobj; |
19090 | int arg1 = (int) 0 ; | |
19091 | wxQueryNewPaletteEvent *result; | |
19092 | PyObject * obj0 = 0 ; | |
19093 | char *kwnames[] = { | |
19094 | (char *) "winid", NULL | |
19095 | }; | |
19096 | ||
19097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail; | |
19098 | if (obj0) { | |
c370783e | 19099 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
19100 | if (PyErr_Occurred()) SWIG_fail; |
19101 | } | |
19102 | { | |
19103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19104 | result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1); | |
19105 | ||
19106 | wxPyEndAllowThreads(__tstate); | |
19107 | if (PyErr_Occurred()) SWIG_fail; | |
19108 | } | |
19109 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1); | |
19110 | return resultobj; | |
19111 | fail: | |
19112 | return NULL; | |
19113 | } | |
19114 | ||
19115 | ||
c370783e | 19116 | static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19117 | PyObject *resultobj; |
19118 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
19119 | bool arg2 ; | |
19120 | PyObject * obj0 = 0 ; | |
19121 | PyObject * obj1 = 0 ; | |
19122 | char *kwnames[] = { | |
19123 | (char *) "self",(char *) "realized", NULL | |
19124 | }; | |
19125 | ||
19126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail; | |
19127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, | |
19128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19129 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19130 | if (PyErr_Occurred()) SWIG_fail; |
19131 | { | |
19132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19133 | (arg1)->SetPaletteRealized(arg2); | |
19134 | ||
19135 | wxPyEndAllowThreads(__tstate); | |
19136 | if (PyErr_Occurred()) SWIG_fail; | |
19137 | } | |
19138 | Py_INCREF(Py_None); resultobj = Py_None; | |
19139 | return resultobj; | |
19140 | fail: | |
19141 | return NULL; | |
19142 | } | |
19143 | ||
19144 | ||
c370783e | 19145 | static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19146 | PyObject *resultobj; |
19147 | wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ; | |
19148 | bool result; | |
19149 | PyObject * obj0 = 0 ; | |
19150 | char *kwnames[] = { | |
19151 | (char *) "self", NULL | |
19152 | }; | |
19153 | ||
19154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail; | |
19155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent, | |
19156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19157 | { | |
19158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19159 | result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized(); | |
19160 | ||
19161 | wxPyEndAllowThreads(__tstate); | |
19162 | if (PyErr_Occurred()) SWIG_fail; | |
19163 | } | |
19164 | { | |
19165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19166 | } | |
19167 | return resultobj; | |
19168 | fail: | |
19169 | return NULL; | |
19170 | } | |
19171 | ||
19172 | ||
c370783e | 19173 | static PyObject * QueryNewPaletteEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19174 | PyObject *obj; |
19175 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19176 | SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj); | |
19177 | Py_INCREF(obj); | |
19178 | return Py_BuildValue((char *)""); | |
19179 | } | |
c370783e | 19180 | static PyObject *_wrap_new_NavigationKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19181 | PyObject *resultobj; |
19182 | wxNavigationKeyEvent *result; | |
19183 | char *kwnames[] = { | |
19184 | NULL | |
19185 | }; | |
19186 | ||
19187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail; | |
19188 | { | |
19189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19190 | result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent(); | |
19191 | ||
19192 | wxPyEndAllowThreads(__tstate); | |
19193 | if (PyErr_Occurred()) SWIG_fail; | |
19194 | } | |
19195 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1); | |
19196 | return resultobj; | |
19197 | fail: | |
19198 | return NULL; | |
19199 | } | |
19200 | ||
19201 | ||
c370783e | 19202 | static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19203 | PyObject *resultobj; |
19204 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19205 | bool result; | |
19206 | PyObject * obj0 = 0 ; | |
19207 | char *kwnames[] = { | |
19208 | (char *) "self", NULL | |
19209 | }; | |
19210 | ||
19211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail; | |
19212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19214 | { | |
19215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19216 | result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection(); | |
19217 | ||
19218 | wxPyEndAllowThreads(__tstate); | |
19219 | if (PyErr_Occurred()) SWIG_fail; | |
19220 | } | |
19221 | { | |
19222 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19223 | } | |
19224 | return resultobj; | |
19225 | fail: | |
19226 | return NULL; | |
19227 | } | |
19228 | ||
19229 | ||
c370783e | 19230 | static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19231 | PyObject *resultobj; |
19232 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19233 | bool arg2 ; | |
19234 | PyObject * obj0 = 0 ; | |
19235 | PyObject * obj1 = 0 ; | |
19236 | char *kwnames[] = { | |
908b74cd | 19237 | (char *) "self",(char *) "forward", NULL |
d55e5bfc RD |
19238 | }; |
19239 | ||
19240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail; | |
19241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19243 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19244 | if (PyErr_Occurred()) SWIG_fail; |
19245 | { | |
19246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19247 | (arg1)->SetDirection(arg2); | |
19248 | ||
19249 | wxPyEndAllowThreads(__tstate); | |
19250 | if (PyErr_Occurred()) SWIG_fail; | |
19251 | } | |
19252 | Py_INCREF(Py_None); resultobj = Py_None; | |
19253 | return resultobj; | |
19254 | fail: | |
19255 | return NULL; | |
19256 | } | |
19257 | ||
19258 | ||
c370783e | 19259 | static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19260 | PyObject *resultobj; |
19261 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19262 | bool result; | |
19263 | PyObject * obj0 = 0 ; | |
19264 | char *kwnames[] = { | |
19265 | (char *) "self", NULL | |
19266 | }; | |
19267 | ||
19268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail; | |
19269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19271 | { | |
19272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19273 | result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange(); | |
19274 | ||
19275 | wxPyEndAllowThreads(__tstate); | |
19276 | if (PyErr_Occurred()) SWIG_fail; | |
19277 | } | |
19278 | { | |
19279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19280 | } | |
19281 | return resultobj; | |
19282 | fail: | |
19283 | return NULL; | |
19284 | } | |
19285 | ||
19286 | ||
c370783e | 19287 | static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19288 | PyObject *resultobj; |
19289 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19290 | bool arg2 ; | |
19291 | PyObject * obj0 = 0 ; | |
19292 | PyObject * obj1 = 0 ; | |
19293 | char *kwnames[] = { | |
908b74cd | 19294 | (char *) "self",(char *) "ischange", NULL |
d55e5bfc RD |
19295 | }; |
19296 | ||
19297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail; | |
19298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19300 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19301 | if (PyErr_Occurred()) SWIG_fail; |
19302 | { | |
19303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19304 | (arg1)->SetWindowChange(arg2); | |
19305 | ||
19306 | wxPyEndAllowThreads(__tstate); | |
19307 | if (PyErr_Occurred()) SWIG_fail; | |
19308 | } | |
19309 | Py_INCREF(Py_None); resultobj = Py_None; | |
19310 | return resultobj; | |
19311 | fail: | |
19312 | return NULL; | |
19313 | } | |
19314 | ||
19315 | ||
c370783e | 19316 | static PyObject *_wrap_NavigationKeyEvent_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
19317 | PyObject *resultobj; |
19318 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19319 | long arg2 ; | |
19320 | PyObject * obj0 = 0 ; | |
19321 | PyObject * obj1 = 0 ; | |
19322 | char *kwnames[] = { | |
19323 | (char *) "self",(char *) "flags", NULL | |
19324 | }; | |
19325 | ||
19326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
19327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 19329 | arg2 = (long)SWIG_As_long(obj1); |
908b74cd RD |
19330 | if (PyErr_Occurred()) SWIG_fail; |
19331 | { | |
19332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19333 | (arg1)->SetFlags(arg2); | |
19334 | ||
19335 | wxPyEndAllowThreads(__tstate); | |
19336 | if (PyErr_Occurred()) SWIG_fail; | |
19337 | } | |
19338 | Py_INCREF(Py_None); resultobj = Py_None; | |
19339 | return resultobj; | |
19340 | fail: | |
19341 | return NULL; | |
19342 | } | |
19343 | ||
19344 | ||
c370783e | 19345 | static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19346 | PyObject *resultobj; |
19347 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19348 | wxWindow *result; | |
19349 | PyObject * obj0 = 0 ; | |
19350 | char *kwnames[] = { | |
19351 | (char *) "self", NULL | |
19352 | }; | |
19353 | ||
19354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail; | |
19355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19357 | { | |
19358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19359 | result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus(); | |
19360 | ||
19361 | wxPyEndAllowThreads(__tstate); | |
19362 | if (PyErr_Occurred()) SWIG_fail; | |
19363 | } | |
19364 | { | |
412d302d | 19365 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19366 | } |
19367 | return resultobj; | |
19368 | fail: | |
19369 | return NULL; | |
19370 | } | |
19371 | ||
19372 | ||
c370783e | 19373 | static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19374 | PyObject *resultobj; |
19375 | wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ; | |
19376 | wxWindow *arg2 = (wxWindow *) 0 ; | |
19377 | PyObject * obj0 = 0 ; | |
19378 | PyObject * obj1 = 0 ; | |
19379 | char *kwnames[] = { | |
19380 | (char *) "self",(char *) "win", NULL | |
19381 | }; | |
19382 | ||
19383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail; | |
19384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent, | |
19385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19386 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
19387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19388 | { | |
19389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19390 | (arg1)->SetCurrentFocus(arg2); | |
19391 | ||
19392 | wxPyEndAllowThreads(__tstate); | |
19393 | if (PyErr_Occurred()) SWIG_fail; | |
19394 | } | |
19395 | Py_INCREF(Py_None); resultobj = Py_None; | |
19396 | return resultobj; | |
19397 | fail: | |
19398 | return NULL; | |
19399 | } | |
19400 | ||
19401 | ||
c370783e | 19402 | static PyObject * NavigationKeyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19403 | PyObject *obj; |
19404 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19405 | SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj); | |
19406 | Py_INCREF(obj); | |
19407 | return Py_BuildValue((char *)""); | |
19408 | } | |
c370783e | 19409 | static PyObject *_wrap_new_WindowCreateEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19410 | PyObject *resultobj; |
19411 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19412 | wxWindowCreateEvent *result; | |
19413 | PyObject * obj0 = 0 ; | |
19414 | char *kwnames[] = { | |
19415 | (char *) "win", NULL | |
19416 | }; | |
19417 | ||
19418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail; | |
19419 | if (obj0) { | |
19420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19422 | } | |
19423 | { | |
19424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19425 | result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1); | |
19426 | ||
19427 | wxPyEndAllowThreads(__tstate); | |
19428 | if (PyErr_Occurred()) SWIG_fail; | |
19429 | } | |
19430 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1); | |
19431 | return resultobj; | |
19432 | fail: | |
19433 | return NULL; | |
19434 | } | |
19435 | ||
19436 | ||
c370783e | 19437 | static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19438 | PyObject *resultobj; |
19439 | wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ; | |
19440 | wxWindow *result; | |
19441 | PyObject * obj0 = 0 ; | |
19442 | char *kwnames[] = { | |
19443 | (char *) "self", NULL | |
19444 | }; | |
19445 | ||
19446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail; | |
19447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent, | |
19448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19449 | { | |
19450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19451 | result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow(); | |
19452 | ||
19453 | wxPyEndAllowThreads(__tstate); | |
19454 | if (PyErr_Occurred()) SWIG_fail; | |
19455 | } | |
19456 | { | |
412d302d | 19457 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19458 | } |
19459 | return resultobj; | |
19460 | fail: | |
19461 | return NULL; | |
19462 | } | |
19463 | ||
19464 | ||
c370783e | 19465 | static PyObject * WindowCreateEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19466 | PyObject *obj; |
19467 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19468 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj); | |
19469 | Py_INCREF(obj); | |
19470 | return Py_BuildValue((char *)""); | |
19471 | } | |
c370783e | 19472 | static PyObject *_wrap_new_WindowDestroyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19473 | PyObject *resultobj; |
19474 | wxWindow *arg1 = (wxWindow *) NULL ; | |
19475 | wxWindowDestroyEvent *result; | |
19476 | PyObject * obj0 = 0 ; | |
19477 | char *kwnames[] = { | |
19478 | (char *) "win", NULL | |
19479 | }; | |
19480 | ||
19481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail; | |
19482 | if (obj0) { | |
19483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19485 | } | |
19486 | { | |
19487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19488 | result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1); | |
19489 | ||
19490 | wxPyEndAllowThreads(__tstate); | |
19491 | if (PyErr_Occurred()) SWIG_fail; | |
19492 | } | |
19493 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1); | |
19494 | return resultobj; | |
19495 | fail: | |
19496 | return NULL; | |
19497 | } | |
19498 | ||
19499 | ||
c370783e | 19500 | static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19501 | PyObject *resultobj; |
19502 | wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ; | |
19503 | wxWindow *result; | |
19504 | PyObject * obj0 = 0 ; | |
19505 | char *kwnames[] = { | |
19506 | (char *) "self", NULL | |
19507 | }; | |
19508 | ||
19509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail; | |
19510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent, | |
19511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19512 | { | |
19513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19514 | result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow(); | |
19515 | ||
19516 | wxPyEndAllowThreads(__tstate); | |
19517 | if (PyErr_Occurred()) SWIG_fail; | |
19518 | } | |
19519 | { | |
412d302d | 19520 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
19521 | } |
19522 | return resultobj; | |
19523 | fail: | |
19524 | return NULL; | |
19525 | } | |
19526 | ||
19527 | ||
c370783e | 19528 | static PyObject * WindowDestroyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19529 | PyObject *obj; |
19530 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19531 | SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj); | |
19532 | Py_INCREF(obj); | |
19533 | return Py_BuildValue((char *)""); | |
19534 | } | |
c370783e | 19535 | static PyObject *_wrap_new_ContextMenuEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19536 | PyObject *resultobj; |
19537 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19538 | int arg2 = (int) 0 ; | |
19539 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
19540 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19541 | wxContextMenuEvent *result; | |
19542 | wxPoint temp3 ; | |
19543 | PyObject * obj0 = 0 ; | |
19544 | PyObject * obj1 = 0 ; | |
19545 | PyObject * obj2 = 0 ; | |
19546 | char *kwnames[] = { | |
19547 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
19548 | }; | |
19549 | ||
19550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
19551 | if (obj0) { | |
c370783e | 19552 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
19553 | if (PyErr_Occurred()) SWIG_fail; |
19554 | } | |
19555 | if (obj1) { | |
c370783e | 19556 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19557 | if (PyErr_Occurred()) SWIG_fail; |
19558 | } | |
19559 | if (obj2) { | |
19560 | { | |
19561 | arg3 = &temp3; | |
19562 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19563 | } | |
19564 | } | |
19565 | { | |
19566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19567 | result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3); | |
19568 | ||
19569 | wxPyEndAllowThreads(__tstate); | |
19570 | if (PyErr_Occurred()) SWIG_fail; | |
19571 | } | |
19572 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1); | |
19573 | return resultobj; | |
19574 | fail: | |
19575 | return NULL; | |
19576 | } | |
19577 | ||
19578 | ||
c370783e | 19579 | static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19580 | PyObject *resultobj; |
19581 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
19582 | wxPoint *result; | |
19583 | PyObject * obj0 = 0 ; | |
19584 | char *kwnames[] = { | |
19585 | (char *) "self", NULL | |
19586 | }; | |
19587 | ||
19588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail; | |
19589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, | |
19590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19591 | { | |
19592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19593 | { | |
19594 | wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition(); | |
19595 | result = (wxPoint *) &_result_ref; | |
19596 | } | |
19597 | ||
19598 | wxPyEndAllowThreads(__tstate); | |
19599 | if (PyErr_Occurred()) SWIG_fail; | |
19600 | } | |
19601 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
19602 | return resultobj; | |
19603 | fail: | |
19604 | return NULL; | |
19605 | } | |
19606 | ||
19607 | ||
c370783e | 19608 | static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19609 | PyObject *resultobj; |
19610 | wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ; | |
19611 | wxPoint *arg2 = 0 ; | |
19612 | wxPoint temp2 ; | |
19613 | PyObject * obj0 = 0 ; | |
19614 | PyObject * obj1 = 0 ; | |
19615 | char *kwnames[] = { | |
19616 | (char *) "self",(char *) "pos", NULL | |
19617 | }; | |
19618 | ||
19619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
19620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent, | |
19621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19622 | { | |
19623 | arg2 = &temp2; | |
19624 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19625 | } | |
19626 | { | |
19627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19628 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
19629 | ||
19630 | wxPyEndAllowThreads(__tstate); | |
19631 | if (PyErr_Occurred()) SWIG_fail; | |
19632 | } | |
19633 | Py_INCREF(Py_None); resultobj = Py_None; | |
19634 | return resultobj; | |
19635 | fail: | |
19636 | return NULL; | |
19637 | } | |
19638 | ||
19639 | ||
c370783e | 19640 | static PyObject * ContextMenuEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19641 | PyObject *obj; |
19642 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19643 | SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj); | |
19644 | Py_INCREF(obj); | |
19645 | return Py_BuildValue((char *)""); | |
19646 | } | |
c370783e | 19647 | static PyObject *_wrap_new_IdleEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19648 | PyObject *resultobj; |
19649 | wxIdleEvent *result; | |
19650 | char *kwnames[] = { | |
19651 | NULL | |
19652 | }; | |
19653 | ||
19654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail; | |
19655 | { | |
19656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19657 | result = (wxIdleEvent *)new wxIdleEvent(); | |
19658 | ||
19659 | wxPyEndAllowThreads(__tstate); | |
19660 | if (PyErr_Occurred()) SWIG_fail; | |
19661 | } | |
19662 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1); | |
19663 | return resultobj; | |
19664 | fail: | |
19665 | return NULL; | |
19666 | } | |
19667 | ||
19668 | ||
c370783e | 19669 | static PyObject *_wrap_IdleEvent_RequestMore(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19670 | PyObject *resultobj; |
19671 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
b411df4a | 19672 | bool arg2 = (bool) true ; |
d55e5bfc RD |
19673 | PyObject * obj0 = 0 ; |
19674 | PyObject * obj1 = 0 ; | |
19675 | char *kwnames[] = { | |
19676 | (char *) "self",(char *) "needMore", NULL | |
19677 | }; | |
19678 | ||
19679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail; | |
19680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, | |
19681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19682 | if (obj1) { | |
c370783e | 19683 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
19684 | if (PyErr_Occurred()) SWIG_fail; |
19685 | } | |
19686 | { | |
19687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19688 | (arg1)->RequestMore(arg2); | |
19689 | ||
19690 | wxPyEndAllowThreads(__tstate); | |
19691 | if (PyErr_Occurred()) SWIG_fail; | |
19692 | } | |
19693 | Py_INCREF(Py_None); resultobj = Py_None; | |
19694 | return resultobj; | |
19695 | fail: | |
19696 | return NULL; | |
19697 | } | |
19698 | ||
19699 | ||
c370783e | 19700 | static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19701 | PyObject *resultobj; |
19702 | wxIdleEvent *arg1 = (wxIdleEvent *) 0 ; | |
19703 | bool result; | |
19704 | PyObject * obj0 = 0 ; | |
19705 | char *kwnames[] = { | |
19706 | (char *) "self", NULL | |
19707 | }; | |
19708 | ||
19709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail; | |
19710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent, | |
19711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19712 | { | |
19713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19714 | result = (bool)((wxIdleEvent const *)arg1)->MoreRequested(); | |
19715 | ||
19716 | wxPyEndAllowThreads(__tstate); | |
19717 | if (PyErr_Occurred()) SWIG_fail; | |
19718 | } | |
19719 | { | |
19720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19721 | } | |
19722 | return resultobj; | |
19723 | fail: | |
19724 | return NULL; | |
19725 | } | |
19726 | ||
19727 | ||
c370783e | 19728 | static PyObject *_wrap_IdleEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19729 | PyObject *resultobj; |
19730 | int arg1 ; | |
19731 | PyObject * obj0 = 0 ; | |
19732 | char *kwnames[] = { | |
19733 | (char *) "mode", NULL | |
19734 | }; | |
19735 | ||
19736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail; | |
c370783e | 19737 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
19738 | if (PyErr_Occurred()) SWIG_fail; |
19739 | { | |
19740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19741 | wxIdleEvent::SetMode((wxIdleMode )arg1); | |
19742 | ||
19743 | wxPyEndAllowThreads(__tstate); | |
19744 | if (PyErr_Occurred()) SWIG_fail; | |
19745 | } | |
19746 | Py_INCREF(Py_None); resultobj = Py_None; | |
19747 | return resultobj; | |
19748 | fail: | |
19749 | return NULL; | |
19750 | } | |
19751 | ||
19752 | ||
c370783e | 19753 | static PyObject *_wrap_IdleEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19754 | PyObject *resultobj; |
19755 | int result; | |
19756 | char *kwnames[] = { | |
19757 | NULL | |
19758 | }; | |
19759 | ||
19760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail; | |
19761 | { | |
19762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19763 | result = (int)wxIdleEvent::GetMode(); | |
19764 | ||
19765 | wxPyEndAllowThreads(__tstate); | |
19766 | if (PyErr_Occurred()) SWIG_fail; | |
19767 | } | |
c370783e | 19768 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
19769 | return resultobj; |
19770 | fail: | |
19771 | return NULL; | |
19772 | } | |
19773 | ||
19774 | ||
c370783e | 19775 | static PyObject *_wrap_IdleEvent_CanSend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19776 | PyObject *resultobj; |
19777 | wxWindow *arg1 = (wxWindow *) 0 ; | |
19778 | bool result; | |
19779 | PyObject * obj0 = 0 ; | |
19780 | char *kwnames[] = { | |
19781 | (char *) "win", NULL | |
19782 | }; | |
19783 | ||
19784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail; | |
19785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
19786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19787 | { | |
19788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19789 | result = (bool)wxIdleEvent::CanSend(arg1); | |
19790 | ||
19791 | wxPyEndAllowThreads(__tstate); | |
19792 | if (PyErr_Occurred()) SWIG_fail; | |
19793 | } | |
19794 | { | |
19795 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19796 | } | |
19797 | return resultobj; | |
19798 | fail: | |
19799 | return NULL; | |
19800 | } | |
19801 | ||
19802 | ||
c370783e | 19803 | static PyObject * IdleEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19804 | PyObject *obj; |
19805 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19806 | SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj); | |
19807 | Py_INCREF(obj); | |
19808 | return Py_BuildValue((char *)""); | |
19809 | } | |
c370783e | 19810 | static PyObject *_wrap_new_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19811 | PyObject *resultobj; |
19812 | int arg1 = (int) 0 ; | |
19813 | wxEventType arg2 = (wxEventType) wxEVT_NULL ; | |
19814 | wxPyEvent *result; | |
19815 | PyObject * obj0 = 0 ; | |
19816 | PyObject * obj1 = 0 ; | |
19817 | char *kwnames[] = { | |
19818 | (char *) "winid",(char *) "commandType", NULL | |
19819 | }; | |
19820 | ||
19821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail; | |
19822 | if (obj0) { | |
c370783e | 19823 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
19824 | if (PyErr_Occurred()) SWIG_fail; |
19825 | } | |
19826 | if (obj1) { | |
c370783e | 19827 | arg2 = (wxEventType)SWIG_As_int(obj1); |
d55e5bfc RD |
19828 | if (PyErr_Occurred()) SWIG_fail; |
19829 | } | |
19830 | { | |
19831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19832 | result = (wxPyEvent *)new wxPyEvent(arg1,arg2); | |
19833 | ||
19834 | wxPyEndAllowThreads(__tstate); | |
19835 | if (PyErr_Occurred()) SWIG_fail; | |
19836 | } | |
19837 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1); | |
19838 | return resultobj; | |
19839 | fail: | |
19840 | return NULL; | |
19841 | } | |
19842 | ||
19843 | ||
c370783e | 19844 | static PyObject *_wrap_delete_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19845 | PyObject *resultobj; |
19846 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19847 | PyObject * obj0 = 0 ; | |
19848 | char *kwnames[] = { | |
19849 | (char *) "self", NULL | |
19850 | }; | |
19851 | ||
19852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail; | |
19853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19855 | { | |
19856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19857 | delete arg1; | |
19858 | ||
19859 | wxPyEndAllowThreads(__tstate); | |
19860 | if (PyErr_Occurred()) SWIG_fail; | |
19861 | } | |
19862 | Py_INCREF(Py_None); resultobj = Py_None; | |
19863 | return resultobj; | |
19864 | fail: | |
19865 | return NULL; | |
19866 | } | |
19867 | ||
19868 | ||
c370783e | 19869 | static PyObject *_wrap_PyEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19870 | PyObject *resultobj; |
19871 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19872 | PyObject *arg2 = (PyObject *) 0 ; | |
19873 | PyObject * obj0 = 0 ; | |
19874 | PyObject * obj1 = 0 ; | |
19875 | char *kwnames[] = { | |
19876 | (char *) "self",(char *) "self", NULL | |
19877 | }; | |
19878 | ||
19879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
19880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19882 | arg2 = obj1; | |
19883 | { | |
19884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19885 | (arg1)->SetSelf(arg2); | |
19886 | ||
19887 | wxPyEndAllowThreads(__tstate); | |
19888 | if (PyErr_Occurred()) SWIG_fail; | |
19889 | } | |
19890 | Py_INCREF(Py_None); resultobj = Py_None; | |
19891 | return resultobj; | |
19892 | fail: | |
19893 | return NULL; | |
19894 | } | |
19895 | ||
19896 | ||
c370783e | 19897 | static PyObject *_wrap_PyEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19898 | PyObject *resultobj; |
19899 | wxPyEvent *arg1 = (wxPyEvent *) 0 ; | |
19900 | PyObject *result; | |
19901 | PyObject * obj0 = 0 ; | |
19902 | char *kwnames[] = { | |
19903 | (char *) "self", NULL | |
19904 | }; | |
19905 | ||
19906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail; | |
19907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent, | |
19908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19909 | { | |
19910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19911 | result = (PyObject *)(arg1)->GetSelf(); | |
19912 | ||
19913 | wxPyEndAllowThreads(__tstate); | |
19914 | if (PyErr_Occurred()) SWIG_fail; | |
19915 | } | |
19916 | resultobj = result; | |
19917 | return resultobj; | |
19918 | fail: | |
19919 | return NULL; | |
19920 | } | |
19921 | ||
19922 | ||
c370783e | 19923 | static PyObject * PyEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
19924 | PyObject *obj; |
19925 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19926 | SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj); | |
19927 | Py_INCREF(obj); | |
19928 | return Py_BuildValue((char *)""); | |
19929 | } | |
c370783e | 19930 | static PyObject *_wrap_new_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19931 | PyObject *resultobj; |
19932 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19933 | int arg2 = (int) 0 ; | |
19934 | wxPyCommandEvent *result; | |
19935 | PyObject * obj0 = 0 ; | |
19936 | PyObject * obj1 = 0 ; | |
19937 | char *kwnames[] = { | |
19938 | (char *) "commandType",(char *) "id", NULL | |
19939 | }; | |
19940 | ||
19941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail; | |
19942 | if (obj0) { | |
c370783e | 19943 | arg1 = (wxEventType)SWIG_As_int(obj0); |
d55e5bfc RD |
19944 | if (PyErr_Occurred()) SWIG_fail; |
19945 | } | |
19946 | if (obj1) { | |
c370783e | 19947 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
19948 | if (PyErr_Occurred()) SWIG_fail; |
19949 | } | |
19950 | { | |
19951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19952 | result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2); | |
19953 | ||
19954 | wxPyEndAllowThreads(__tstate); | |
19955 | if (PyErr_Occurred()) SWIG_fail; | |
19956 | } | |
19957 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1); | |
19958 | return resultobj; | |
19959 | fail: | |
19960 | return NULL; | |
19961 | } | |
19962 | ||
19963 | ||
c370783e | 19964 | static PyObject *_wrap_delete_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19965 | PyObject *resultobj; |
19966 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19967 | PyObject * obj0 = 0 ; | |
19968 | char *kwnames[] = { | |
19969 | (char *) "self", NULL | |
19970 | }; | |
19971 | ||
19972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail; | |
19973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
19974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19975 | { | |
19976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19977 | delete arg1; | |
19978 | ||
19979 | wxPyEndAllowThreads(__tstate); | |
19980 | if (PyErr_Occurred()) SWIG_fail; | |
19981 | } | |
19982 | Py_INCREF(Py_None); resultobj = Py_None; | |
19983 | return resultobj; | |
19984 | fail: | |
19985 | return NULL; | |
19986 | } | |
19987 | ||
19988 | ||
c370783e | 19989 | static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
19990 | PyObject *resultobj; |
19991 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
19992 | PyObject *arg2 = (PyObject *) 0 ; | |
19993 | PyObject * obj0 = 0 ; | |
19994 | PyObject * obj1 = 0 ; | |
19995 | char *kwnames[] = { | |
19996 | (char *) "self",(char *) "self", NULL | |
19997 | }; | |
19998 | ||
19999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail; | |
20000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
20001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20002 | arg2 = obj1; | |
20003 | { | |
20004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20005 | (arg1)->SetSelf(arg2); | |
20006 | ||
20007 | wxPyEndAllowThreads(__tstate); | |
20008 | if (PyErr_Occurred()) SWIG_fail; | |
20009 | } | |
20010 | Py_INCREF(Py_None); resultobj = Py_None; | |
20011 | return resultobj; | |
20012 | fail: | |
20013 | return NULL; | |
20014 | } | |
20015 | ||
20016 | ||
c370783e | 20017 | static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20018 | PyObject *resultobj; |
20019 | wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ; | |
20020 | PyObject *result; | |
20021 | PyObject * obj0 = 0 ; | |
20022 | char *kwnames[] = { | |
20023 | (char *) "self", NULL | |
20024 | }; | |
20025 | ||
20026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail; | |
20027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent, | |
20028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20029 | { | |
20030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20031 | result = (PyObject *)(arg1)->GetSelf(); | |
20032 | ||
20033 | wxPyEndAllowThreads(__tstate); | |
20034 | if (PyErr_Occurred()) SWIG_fail; | |
20035 | } | |
20036 | resultobj = result; | |
20037 | return resultobj; | |
20038 | fail: | |
20039 | return NULL; | |
20040 | } | |
20041 | ||
20042 | ||
c370783e | 20043 | static PyObject * PyCommandEvent_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
20044 | PyObject *obj; |
20045 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20046 | SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj); | |
20047 | Py_INCREF(obj); | |
20048 | return Py_BuildValue((char *)""); | |
20049 | } | |
c370783e | 20050 | static PyObject *_wrap_new_PyApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20051 | PyObject *resultobj; |
20052 | wxPyApp *result; | |
20053 | char *kwnames[] = { | |
20054 | NULL | |
20055 | }; | |
20056 | ||
20057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail; | |
20058 | { | |
20059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20060 | result = (wxPyApp *)new_wxPyApp(); | |
20061 | ||
20062 | wxPyEndAllowThreads(__tstate); | |
20063 | if (PyErr_Occurred()) SWIG_fail; | |
20064 | } | |
b0f7404b | 20065 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyApp, 1); |
d55e5bfc RD |
20066 | return resultobj; |
20067 | fail: | |
20068 | return NULL; | |
20069 | } | |
20070 | ||
20071 | ||
c370783e | 20072 | static PyObject *_wrap_delete_PyApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20073 | PyObject *resultobj; |
20074 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20075 | PyObject * obj0 = 0 ; | |
20076 | char *kwnames[] = { | |
20077 | (char *) "self", NULL | |
20078 | }; | |
20079 | ||
20080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail; | |
20081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20083 | { | |
20084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20085 | delete arg1; | |
20086 | ||
20087 | wxPyEndAllowThreads(__tstate); | |
20088 | if (PyErr_Occurred()) SWIG_fail; | |
20089 | } | |
20090 | Py_INCREF(Py_None); resultobj = Py_None; | |
20091 | return resultobj; | |
20092 | fail: | |
20093 | return NULL; | |
20094 | } | |
20095 | ||
20096 | ||
c370783e | 20097 | static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20098 | PyObject *resultobj; |
20099 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20100 | PyObject *arg2 = (PyObject *) 0 ; | |
20101 | PyObject *arg3 = (PyObject *) 0 ; | |
20102 | PyObject * obj0 = 0 ; | |
20103 | PyObject * obj1 = 0 ; | |
20104 | PyObject * obj2 = 0 ; | |
20105 | char *kwnames[] = { | |
20106 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
20107 | }; | |
20108 | ||
20109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20112 | arg2 = obj1; | |
20113 | arg3 = obj2; | |
20114 | { | |
20115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20116 | (arg1)->_setCallbackInfo(arg2,arg3); | |
20117 | ||
20118 | wxPyEndAllowThreads(__tstate); | |
20119 | if (PyErr_Occurred()) SWIG_fail; | |
20120 | } | |
20121 | Py_INCREF(Py_None); resultobj = Py_None; | |
20122 | return resultobj; | |
20123 | fail: | |
20124 | return NULL; | |
20125 | } | |
20126 | ||
20127 | ||
c370783e | 20128 | static PyObject *_wrap_PyApp_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20129 | PyObject *resultobj; |
20130 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20131 | wxString result; | |
20132 | PyObject * obj0 = 0 ; | |
20133 | char *kwnames[] = { | |
20134 | (char *) "self", NULL | |
20135 | }; | |
20136 | ||
20137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail; | |
20138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20140 | { | |
20141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20142 | result = ((wxPyApp const *)arg1)->GetAppName(); | |
20143 | ||
20144 | wxPyEndAllowThreads(__tstate); | |
20145 | if (PyErr_Occurred()) SWIG_fail; | |
20146 | } | |
20147 | { | |
20148 | #if wxUSE_UNICODE | |
20149 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20150 | #else | |
20151 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20152 | #endif | |
20153 | } | |
20154 | return resultobj; | |
20155 | fail: | |
20156 | return NULL; | |
20157 | } | |
20158 | ||
20159 | ||
c370783e | 20160 | static PyObject *_wrap_PyApp_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20161 | PyObject *resultobj; |
20162 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20163 | wxString *arg2 = 0 ; | |
b411df4a | 20164 | bool temp2 = false ; |
d55e5bfc RD |
20165 | PyObject * obj0 = 0 ; |
20166 | PyObject * obj1 = 0 ; | |
20167 | char *kwnames[] = { | |
20168 | (char *) "self",(char *) "name", NULL | |
20169 | }; | |
20170 | ||
20171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail; | |
20172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20174 | { | |
20175 | arg2 = wxString_in_helper(obj1); | |
20176 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 20177 | temp2 = true; |
d55e5bfc RD |
20178 | } |
20179 | { | |
20180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20181 | (arg1)->SetAppName((wxString const &)*arg2); | |
20182 | ||
20183 | wxPyEndAllowThreads(__tstate); | |
20184 | if (PyErr_Occurred()) SWIG_fail; | |
20185 | } | |
20186 | Py_INCREF(Py_None); resultobj = Py_None; | |
20187 | { | |
20188 | if (temp2) | |
20189 | delete arg2; | |
20190 | } | |
20191 | return resultobj; | |
20192 | fail: | |
20193 | { | |
20194 | if (temp2) | |
20195 | delete arg2; | |
20196 | } | |
20197 | return NULL; | |
20198 | } | |
20199 | ||
20200 | ||
c370783e | 20201 | static PyObject *_wrap_PyApp_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20202 | PyObject *resultobj; |
20203 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20204 | wxString result; | |
20205 | PyObject * obj0 = 0 ; | |
20206 | char *kwnames[] = { | |
20207 | (char *) "self", NULL | |
20208 | }; | |
20209 | ||
20210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail; | |
20211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20213 | { | |
20214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20215 | result = ((wxPyApp const *)arg1)->GetClassName(); | |
20216 | ||
20217 | wxPyEndAllowThreads(__tstate); | |
20218 | if (PyErr_Occurred()) SWIG_fail; | |
20219 | } | |
20220 | { | |
20221 | #if wxUSE_UNICODE | |
20222 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20223 | #else | |
20224 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20225 | #endif | |
20226 | } | |
20227 | return resultobj; | |
20228 | fail: | |
20229 | return NULL; | |
20230 | } | |
20231 | ||
20232 | ||
c370783e | 20233 | static PyObject *_wrap_PyApp_SetClassName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20234 | PyObject *resultobj; |
20235 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20236 | wxString *arg2 = 0 ; | |
b411df4a | 20237 | bool temp2 = false ; |
d55e5bfc RD |
20238 | PyObject * obj0 = 0 ; |
20239 | PyObject * obj1 = 0 ; | |
20240 | char *kwnames[] = { | |
20241 | (char *) "self",(char *) "name", NULL | |
20242 | }; | |
20243 | ||
20244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail; | |
20245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20247 | { | |
20248 | arg2 = wxString_in_helper(obj1); | |
20249 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 20250 | temp2 = true; |
d55e5bfc RD |
20251 | } |
20252 | { | |
20253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20254 | (arg1)->SetClassName((wxString const &)*arg2); | |
20255 | ||
20256 | wxPyEndAllowThreads(__tstate); | |
20257 | if (PyErr_Occurred()) SWIG_fail; | |
20258 | } | |
20259 | Py_INCREF(Py_None); resultobj = Py_None; | |
20260 | { | |
20261 | if (temp2) | |
20262 | delete arg2; | |
20263 | } | |
20264 | return resultobj; | |
20265 | fail: | |
20266 | { | |
20267 | if (temp2) | |
20268 | delete arg2; | |
20269 | } | |
20270 | return NULL; | |
20271 | } | |
20272 | ||
20273 | ||
c370783e | 20274 | static PyObject *_wrap_PyApp_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20275 | PyObject *resultobj; |
20276 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20277 | wxString *result; | |
20278 | PyObject * obj0 = 0 ; | |
20279 | char *kwnames[] = { | |
20280 | (char *) "self", NULL | |
20281 | }; | |
20282 | ||
20283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail; | |
20284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20286 | { | |
20287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20288 | { | |
20289 | wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName(); | |
20290 | result = (wxString *) &_result_ref; | |
20291 | } | |
20292 | ||
20293 | wxPyEndAllowThreads(__tstate); | |
20294 | if (PyErr_Occurred()) SWIG_fail; | |
20295 | } | |
20296 | { | |
20297 | #if wxUSE_UNICODE | |
20298 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20299 | #else | |
20300 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20301 | #endif | |
20302 | } | |
20303 | return resultobj; | |
20304 | fail: | |
20305 | return NULL; | |
20306 | } | |
20307 | ||
20308 | ||
c370783e | 20309 | static PyObject *_wrap_PyApp_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20310 | PyObject *resultobj; |
20311 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20312 | wxString *arg2 = 0 ; | |
b411df4a | 20313 | bool temp2 = false ; |
d55e5bfc RD |
20314 | PyObject * obj0 = 0 ; |
20315 | PyObject * obj1 = 0 ; | |
20316 | char *kwnames[] = { | |
20317 | (char *) "self",(char *) "name", NULL | |
20318 | }; | |
20319 | ||
20320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail; | |
20321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20323 | { | |
20324 | arg2 = wxString_in_helper(obj1); | |
20325 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 20326 | temp2 = true; |
d55e5bfc RD |
20327 | } |
20328 | { | |
20329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20330 | (arg1)->SetVendorName((wxString const &)*arg2); | |
20331 | ||
20332 | wxPyEndAllowThreads(__tstate); | |
20333 | if (PyErr_Occurred()) SWIG_fail; | |
20334 | } | |
20335 | Py_INCREF(Py_None); resultobj = Py_None; | |
20336 | { | |
20337 | if (temp2) | |
20338 | delete arg2; | |
20339 | } | |
20340 | return resultobj; | |
20341 | fail: | |
20342 | { | |
20343 | if (temp2) | |
20344 | delete arg2; | |
20345 | } | |
20346 | return NULL; | |
20347 | } | |
20348 | ||
20349 | ||
c370783e | 20350 | static PyObject *_wrap_PyApp_GetTraits(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20351 | PyObject *resultobj; |
20352 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20353 | wxAppTraits *result; | |
20354 | PyObject * obj0 = 0 ; | |
20355 | char *kwnames[] = { | |
20356 | (char *) "self", NULL | |
20357 | }; | |
20358 | ||
20359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail; | |
20360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20362 | { | |
20363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20364 | result = (wxAppTraits *)(arg1)->GetTraits(); | |
20365 | ||
20366 | wxPyEndAllowThreads(__tstate); | |
20367 | if (PyErr_Occurred()) SWIG_fail; | |
20368 | } | |
20369 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0); | |
20370 | return resultobj; | |
20371 | fail: | |
20372 | return NULL; | |
20373 | } | |
20374 | ||
20375 | ||
c370783e | 20376 | static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20377 | PyObject *resultobj; |
20378 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20379 | PyObject * obj0 = 0 ; | |
20380 | char *kwnames[] = { | |
20381 | (char *) "self", NULL | |
20382 | }; | |
20383 | ||
20384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail; | |
20385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20387 | { | |
20388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20389 | (arg1)->ProcessPendingEvents(); | |
20390 | ||
20391 | wxPyEndAllowThreads(__tstate); | |
20392 | if (PyErr_Occurred()) SWIG_fail; | |
20393 | } | |
20394 | Py_INCREF(Py_None); resultobj = Py_None; | |
20395 | return resultobj; | |
20396 | fail: | |
20397 | return NULL; | |
20398 | } | |
20399 | ||
20400 | ||
c370783e | 20401 | static PyObject *_wrap_PyApp_Yield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20402 | PyObject *resultobj; |
20403 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
b411df4a | 20404 | bool arg2 = (bool) false ; |
d55e5bfc RD |
20405 | bool result; |
20406 | PyObject * obj0 = 0 ; | |
20407 | PyObject * obj1 = 0 ; | |
20408 | char *kwnames[] = { | |
20409 | (char *) "self",(char *) "onlyIfNeeded", NULL | |
20410 | }; | |
20411 | ||
20412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail; | |
20413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20415 | if (obj1) { | |
c370783e | 20416 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
20417 | if (PyErr_Occurred()) SWIG_fail; |
20418 | } | |
20419 | { | |
20420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20421 | result = (bool)(arg1)->Yield(arg2); | |
20422 | ||
20423 | wxPyEndAllowThreads(__tstate); | |
20424 | if (PyErr_Occurred()) SWIG_fail; | |
20425 | } | |
20426 | { | |
20427 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20428 | } | |
20429 | return resultobj; | |
20430 | fail: | |
20431 | return NULL; | |
20432 | } | |
20433 | ||
20434 | ||
c370783e | 20435 | static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20436 | PyObject *resultobj; |
20437 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20438 | PyObject * obj0 = 0 ; | |
20439 | char *kwnames[] = { | |
20440 | (char *) "self", NULL | |
20441 | }; | |
20442 | ||
20443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail; | |
20444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20446 | { | |
20447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20448 | (arg1)->WakeUpIdle(); | |
20449 | ||
20450 | wxPyEndAllowThreads(__tstate); | |
20451 | if (PyErr_Occurred()) SWIG_fail; | |
20452 | } | |
20453 | Py_INCREF(Py_None); resultobj = Py_None; | |
20454 | return resultobj; | |
20455 | fail: | |
20456 | return NULL; | |
20457 | } | |
20458 | ||
20459 | ||
84f85550 RD |
20460 | static PyObject *_wrap_PyApp_IsMainLoopRunning(PyObject *, PyObject *args, PyObject *kwargs) { |
20461 | PyObject *resultobj; | |
20462 | bool result; | |
20463 | char *kwnames[] = { | |
20464 | NULL | |
20465 | }; | |
20466 | ||
20467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_IsMainLoopRunning",kwnames)) goto fail; | |
20468 | { | |
20469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20470 | result = (bool)wxPyApp::IsMainLoopRunning(); | |
20471 | ||
20472 | wxPyEndAllowThreads(__tstate); | |
20473 | if (PyErr_Occurred()) SWIG_fail; | |
20474 | } | |
20475 | { | |
20476 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20477 | } | |
20478 | return resultobj; | |
20479 | fail: | |
20480 | return NULL; | |
20481 | } | |
20482 | ||
20483 | ||
c370783e | 20484 | static PyObject *_wrap_PyApp_MainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20485 | PyObject *resultobj; |
20486 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20487 | int result; | |
20488 | PyObject * obj0 = 0 ; | |
20489 | char *kwnames[] = { | |
20490 | (char *) "self", NULL | |
20491 | }; | |
20492 | ||
20493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail; | |
20494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20496 | { | |
20497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20498 | result = (int)(arg1)->MainLoop(); | |
20499 | ||
20500 | wxPyEndAllowThreads(__tstate); | |
20501 | if (PyErr_Occurred()) SWIG_fail; | |
20502 | } | |
c370783e | 20503 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20504 | return resultobj; |
20505 | fail: | |
20506 | return NULL; | |
20507 | } | |
20508 | ||
20509 | ||
c370783e | 20510 | static PyObject *_wrap_PyApp_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20511 | PyObject *resultobj; |
20512 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20513 | PyObject * obj0 = 0 ; | |
20514 | char *kwnames[] = { | |
20515 | (char *) "self", NULL | |
20516 | }; | |
20517 | ||
20518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail; | |
20519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20521 | { | |
20522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20523 | (arg1)->Exit(); | |
20524 | ||
20525 | wxPyEndAllowThreads(__tstate); | |
20526 | if (PyErr_Occurred()) SWIG_fail; | |
20527 | } | |
20528 | Py_INCREF(Py_None); resultobj = Py_None; | |
20529 | return resultobj; | |
20530 | fail: | |
20531 | return NULL; | |
20532 | } | |
20533 | ||
20534 | ||
c370783e | 20535 | static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20536 | PyObject *resultobj; |
20537 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20538 | PyObject * obj0 = 0 ; | |
20539 | char *kwnames[] = { | |
20540 | (char *) "self", NULL | |
20541 | }; | |
20542 | ||
20543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail; | |
20544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20546 | { | |
20547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20548 | (arg1)->ExitMainLoop(); | |
20549 | ||
20550 | wxPyEndAllowThreads(__tstate); | |
20551 | if (PyErr_Occurred()) SWIG_fail; | |
20552 | } | |
20553 | Py_INCREF(Py_None); resultobj = Py_None; | |
20554 | return resultobj; | |
20555 | fail: | |
20556 | return NULL; | |
20557 | } | |
20558 | ||
20559 | ||
c370783e | 20560 | static PyObject *_wrap_PyApp_Pending(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20561 | PyObject *resultobj; |
20562 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20563 | bool result; | |
20564 | PyObject * obj0 = 0 ; | |
20565 | char *kwnames[] = { | |
20566 | (char *) "self", NULL | |
20567 | }; | |
20568 | ||
20569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail; | |
20570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20572 | { | |
20573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20574 | result = (bool)(arg1)->Pending(); | |
20575 | ||
20576 | wxPyEndAllowThreads(__tstate); | |
20577 | if (PyErr_Occurred()) SWIG_fail; | |
20578 | } | |
20579 | { | |
20580 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20581 | } | |
20582 | return resultobj; | |
20583 | fail: | |
20584 | return NULL; | |
20585 | } | |
20586 | ||
20587 | ||
c370783e | 20588 | static PyObject *_wrap_PyApp_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20589 | PyObject *resultobj; |
20590 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20591 | bool result; | |
20592 | PyObject * obj0 = 0 ; | |
20593 | char *kwnames[] = { | |
20594 | (char *) "self", NULL | |
20595 | }; | |
20596 | ||
20597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail; | |
20598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20600 | { | |
20601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20602 | result = (bool)(arg1)->Dispatch(); | |
20603 | ||
20604 | wxPyEndAllowThreads(__tstate); | |
20605 | if (PyErr_Occurred()) SWIG_fail; | |
20606 | } | |
20607 | { | |
20608 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20609 | } | |
20610 | return resultobj; | |
20611 | fail: | |
20612 | return NULL; | |
20613 | } | |
20614 | ||
20615 | ||
c370783e | 20616 | static PyObject *_wrap_PyApp_ProcessIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20617 | PyObject *resultobj; |
20618 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20619 | bool result; | |
20620 | PyObject * obj0 = 0 ; | |
20621 | char *kwnames[] = { | |
20622 | (char *) "self", NULL | |
20623 | }; | |
20624 | ||
20625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail; | |
20626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20628 | { | |
20629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20630 | result = (bool)(arg1)->ProcessIdle(); | |
20631 | ||
20632 | wxPyEndAllowThreads(__tstate); | |
20633 | if (PyErr_Occurred()) SWIG_fail; | |
20634 | } | |
20635 | { | |
20636 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20637 | } | |
20638 | return resultobj; | |
20639 | fail: | |
20640 | return NULL; | |
20641 | } | |
20642 | ||
20643 | ||
c370783e | 20644 | static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20645 | PyObject *resultobj; |
20646 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20647 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20648 | wxIdleEvent *arg3 = 0 ; | |
20649 | bool result; | |
20650 | PyObject * obj0 = 0 ; | |
20651 | PyObject * obj1 = 0 ; | |
20652 | PyObject * obj2 = 0 ; | |
20653 | char *kwnames[] = { | |
20654 | (char *) "self",(char *) "win",(char *) "event", NULL | |
20655 | }; | |
20656 | ||
20657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20660 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20662 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent, | |
20663 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20664 | SWIG_fail; | |
20665 | if (arg3 == NULL) { | |
20666 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20667 | SWIG_fail; | |
20668 | } | |
20669 | { | |
20670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20671 | result = (bool)(arg1)->SendIdleEvents(arg2,*arg3); | |
20672 | ||
20673 | wxPyEndAllowThreads(__tstate); | |
20674 | if (PyErr_Occurred()) SWIG_fail; | |
20675 | } | |
20676 | { | |
20677 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20678 | } | |
20679 | return resultobj; | |
20680 | fail: | |
20681 | return NULL; | |
20682 | } | |
20683 | ||
20684 | ||
c370783e | 20685 | static PyObject *_wrap_PyApp_IsActive(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20686 | PyObject *resultobj; |
20687 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20688 | bool result; | |
20689 | PyObject * obj0 = 0 ; | |
20690 | char *kwnames[] = { | |
20691 | (char *) "self", NULL | |
20692 | }; | |
20693 | ||
20694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail; | |
20695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20697 | { | |
20698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20699 | result = (bool)((wxPyApp const *)arg1)->IsActive(); | |
20700 | ||
20701 | wxPyEndAllowThreads(__tstate); | |
20702 | if (PyErr_Occurred()) SWIG_fail; | |
20703 | } | |
20704 | { | |
20705 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20706 | } | |
20707 | return resultobj; | |
20708 | fail: | |
20709 | return NULL; | |
20710 | } | |
20711 | ||
20712 | ||
c370783e | 20713 | static PyObject *_wrap_PyApp_SetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20714 | PyObject *resultobj; |
20715 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20716 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20717 | PyObject * obj0 = 0 ; | |
20718 | PyObject * obj1 = 0 ; | |
20719 | char *kwnames[] = { | |
20720 | (char *) "self",(char *) "win", NULL | |
20721 | }; | |
20722 | ||
20723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail; | |
20724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20726 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20728 | { | |
20729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20730 | (arg1)->SetTopWindow(arg2); | |
20731 | ||
20732 | wxPyEndAllowThreads(__tstate); | |
20733 | if (PyErr_Occurred()) SWIG_fail; | |
20734 | } | |
20735 | Py_INCREF(Py_None); resultobj = Py_None; | |
20736 | return resultobj; | |
20737 | fail: | |
20738 | return NULL; | |
20739 | } | |
20740 | ||
20741 | ||
c370783e | 20742 | static PyObject *_wrap_PyApp_GetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20743 | PyObject *resultobj; |
20744 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20745 | wxWindow *result; | |
20746 | PyObject * obj0 = 0 ; | |
20747 | char *kwnames[] = { | |
20748 | (char *) "self", NULL | |
20749 | }; | |
20750 | ||
20751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail; | |
20752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20754 | { | |
20755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20756 | result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow(); | |
20757 | ||
20758 | wxPyEndAllowThreads(__tstate); | |
20759 | if (PyErr_Occurred()) SWIG_fail; | |
20760 | } | |
20761 | { | |
412d302d | 20762 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
20763 | } |
20764 | return resultobj; | |
20765 | fail: | |
20766 | return NULL; | |
20767 | } | |
20768 | ||
20769 | ||
c370783e | 20770 | static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20771 | PyObject *resultobj; |
20772 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20773 | bool arg2 ; | |
20774 | PyObject * obj0 = 0 ; | |
20775 | PyObject * obj1 = 0 ; | |
20776 | char *kwnames[] = { | |
20777 | (char *) "self",(char *) "flag", NULL | |
20778 | }; | |
20779 | ||
20780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail; | |
20781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20783 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
20784 | if (PyErr_Occurred()) SWIG_fail; |
20785 | { | |
20786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20787 | (arg1)->SetExitOnFrameDelete(arg2); | |
20788 | ||
20789 | wxPyEndAllowThreads(__tstate); | |
20790 | if (PyErr_Occurred()) SWIG_fail; | |
20791 | } | |
20792 | Py_INCREF(Py_None); resultobj = Py_None; | |
20793 | return resultobj; | |
20794 | fail: | |
20795 | return NULL; | |
20796 | } | |
20797 | ||
20798 | ||
c370783e | 20799 | static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20800 | PyObject *resultobj; |
20801 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20802 | bool result; | |
20803 | PyObject * obj0 = 0 ; | |
20804 | char *kwnames[] = { | |
20805 | (char *) "self", NULL | |
20806 | }; | |
20807 | ||
20808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail; | |
20809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20811 | { | |
20812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20813 | result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete(); | |
20814 | ||
20815 | wxPyEndAllowThreads(__tstate); | |
20816 | if (PyErr_Occurred()) SWIG_fail; | |
20817 | } | |
20818 | { | |
20819 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20820 | } | |
20821 | return resultobj; | |
20822 | fail: | |
20823 | return NULL; | |
20824 | } | |
20825 | ||
20826 | ||
c370783e | 20827 | static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20828 | PyObject *resultobj; |
20829 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20830 | bool arg2 ; | |
20831 | PyObject * obj0 = 0 ; | |
20832 | PyObject * obj1 = 0 ; | |
20833 | char *kwnames[] = { | |
20834 | (char *) "self",(char *) "flag", NULL | |
20835 | }; | |
20836 | ||
20837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail; | |
20838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20840 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
20841 | if (PyErr_Occurred()) SWIG_fail; |
20842 | { | |
20843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20844 | (arg1)->SetUseBestVisual(arg2); | |
20845 | ||
20846 | wxPyEndAllowThreads(__tstate); | |
20847 | if (PyErr_Occurred()) SWIG_fail; | |
20848 | } | |
20849 | Py_INCREF(Py_None); resultobj = Py_None; | |
20850 | return resultobj; | |
20851 | fail: | |
20852 | return NULL; | |
20853 | } | |
20854 | ||
20855 | ||
c370783e | 20856 | static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20857 | PyObject *resultobj; |
20858 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20859 | bool result; | |
20860 | PyObject * obj0 = 0 ; | |
20861 | char *kwnames[] = { | |
20862 | (char *) "self", NULL | |
20863 | }; | |
20864 | ||
20865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail; | |
20866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20868 | { | |
20869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20870 | result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual(); | |
20871 | ||
20872 | wxPyEndAllowThreads(__tstate); | |
20873 | if (PyErr_Occurred()) SWIG_fail; | |
20874 | } | |
20875 | { | |
20876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20877 | } | |
20878 | return resultobj; | |
20879 | fail: | |
20880 | return NULL; | |
20881 | } | |
20882 | ||
20883 | ||
c370783e | 20884 | static PyObject *_wrap_PyApp_SetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20885 | PyObject *resultobj; |
20886 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20887 | int arg2 ; | |
20888 | PyObject * obj0 = 0 ; | |
20889 | PyObject * obj1 = 0 ; | |
20890 | char *kwnames[] = { | |
20891 | (char *) "self",(char *) "mode", NULL | |
20892 | }; | |
20893 | ||
20894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail; | |
20895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20897 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20898 | if (PyErr_Occurred()) SWIG_fail; |
20899 | { | |
20900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20901 | (arg1)->SetPrintMode(arg2); | |
20902 | ||
20903 | wxPyEndAllowThreads(__tstate); | |
20904 | if (PyErr_Occurred()) SWIG_fail; | |
20905 | } | |
20906 | Py_INCREF(Py_None); resultobj = Py_None; | |
20907 | return resultobj; | |
20908 | fail: | |
20909 | return NULL; | |
20910 | } | |
20911 | ||
20912 | ||
c370783e | 20913 | static PyObject *_wrap_PyApp_GetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20914 | PyObject *resultobj; |
20915 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20916 | int result; | |
20917 | PyObject * obj0 = 0 ; | |
20918 | char *kwnames[] = { | |
20919 | (char *) "self", NULL | |
20920 | }; | |
20921 | ||
20922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail; | |
20923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20925 | { | |
20926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20927 | result = (int)((wxPyApp const *)arg1)->GetPrintMode(); | |
20928 | ||
20929 | wxPyEndAllowThreads(__tstate); | |
20930 | if (PyErr_Occurred()) SWIG_fail; | |
20931 | } | |
c370783e | 20932 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20933 | return resultobj; |
20934 | fail: | |
20935 | return NULL; | |
20936 | } | |
20937 | ||
20938 | ||
c370783e | 20939 | static PyObject *_wrap_PyApp_SetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20940 | PyObject *resultobj; |
20941 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20942 | int arg2 ; | |
20943 | PyObject * obj0 = 0 ; | |
20944 | PyObject * obj1 = 0 ; | |
20945 | char *kwnames[] = { | |
20946 | (char *) "self",(char *) "mode", NULL | |
20947 | }; | |
20948 | ||
20949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail; | |
20950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 20952 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
20953 | if (PyErr_Occurred()) SWIG_fail; |
20954 | { | |
20955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20956 | (arg1)->SetAssertMode(arg2); | |
20957 | ||
20958 | wxPyEndAllowThreads(__tstate); | |
20959 | if (PyErr_Occurred()) SWIG_fail; | |
20960 | } | |
20961 | Py_INCREF(Py_None); resultobj = Py_None; | |
20962 | return resultobj; | |
20963 | fail: | |
20964 | return NULL; | |
20965 | } | |
20966 | ||
20967 | ||
c370783e | 20968 | static PyObject *_wrap_PyApp_GetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20969 | PyObject *resultobj; |
20970 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
20971 | int result; | |
20972 | PyObject * obj0 = 0 ; | |
20973 | char *kwnames[] = { | |
20974 | (char *) "self", NULL | |
20975 | }; | |
20976 | ||
20977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail; | |
20978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
20979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20980 | { | |
20981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20982 | result = (int)(arg1)->GetAssertMode(); | |
20983 | ||
20984 | wxPyEndAllowThreads(__tstate); | |
20985 | if (PyErr_Occurred()) SWIG_fail; | |
20986 | } | |
c370783e | 20987 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
20988 | return resultobj; |
20989 | fail: | |
20990 | return NULL; | |
20991 | } | |
20992 | ||
20993 | ||
c370783e | 20994 | static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
20995 | PyObject *resultobj; |
20996 | bool result; | |
20997 | char *kwnames[] = { | |
20998 | NULL | |
20999 | }; | |
21000 | ||
21001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail; | |
21002 | { | |
21003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21004 | result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts(); | |
21005 | ||
21006 | wxPyEndAllowThreads(__tstate); | |
21007 | if (PyErr_Occurred()) SWIG_fail; | |
21008 | } | |
21009 | { | |
21010 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21011 | } | |
21012 | return resultobj; | |
21013 | fail: | |
21014 | return NULL; | |
21015 | } | |
21016 | ||
21017 | ||
c370783e | 21018 | static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21019 | PyObject *resultobj; |
21020 | long result; | |
21021 | char *kwnames[] = { | |
21022 | NULL | |
21023 | }; | |
21024 | ||
21025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail; | |
21026 | { | |
21027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21028 | result = (long)wxPyApp::GetMacAboutMenuItemId(); | |
21029 | ||
21030 | wxPyEndAllowThreads(__tstate); | |
21031 | if (PyErr_Occurred()) SWIG_fail; | |
21032 | } | |
c370783e | 21033 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
21034 | return resultobj; |
21035 | fail: | |
21036 | return NULL; | |
21037 | } | |
21038 | ||
21039 | ||
c370783e | 21040 | static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21041 | PyObject *resultobj; |
21042 | long result; | |
21043 | char *kwnames[] = { | |
21044 | NULL | |
21045 | }; | |
21046 | ||
21047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail; | |
21048 | { | |
21049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21050 | result = (long)wxPyApp::GetMacPreferencesMenuItemId(); | |
21051 | ||
21052 | wxPyEndAllowThreads(__tstate); | |
21053 | if (PyErr_Occurred()) SWIG_fail; | |
21054 | } | |
c370783e | 21055 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
21056 | return resultobj; |
21057 | fail: | |
21058 | return NULL; | |
21059 | } | |
21060 | ||
21061 | ||
c370783e | 21062 | static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21063 | PyObject *resultobj; |
21064 | long result; | |
21065 | char *kwnames[] = { | |
21066 | NULL | |
21067 | }; | |
21068 | ||
21069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail; | |
21070 | { | |
21071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21072 | result = (long)wxPyApp::GetMacExitMenuItemId(); | |
21073 | ||
21074 | wxPyEndAllowThreads(__tstate); | |
21075 | if (PyErr_Occurred()) SWIG_fail; | |
21076 | } | |
c370783e | 21077 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
21078 | return resultobj; |
21079 | fail: | |
21080 | return NULL; | |
21081 | } | |
21082 | ||
21083 | ||
c370783e | 21084 | static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21085 | PyObject *resultobj; |
21086 | wxString result; | |
21087 | char *kwnames[] = { | |
21088 | NULL | |
21089 | }; | |
21090 | ||
21091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail; | |
21092 | { | |
21093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21094 | result = wxPyApp::GetMacHelpMenuTitleName(); | |
21095 | ||
21096 | wxPyEndAllowThreads(__tstate); | |
21097 | if (PyErr_Occurred()) SWIG_fail; | |
21098 | } | |
21099 | { | |
21100 | #if wxUSE_UNICODE | |
21101 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21102 | #else | |
21103 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21104 | #endif | |
21105 | } | |
21106 | return resultobj; | |
21107 | fail: | |
21108 | return NULL; | |
21109 | } | |
21110 | ||
21111 | ||
c370783e | 21112 | static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21113 | PyObject *resultobj; |
21114 | bool arg1 ; | |
21115 | PyObject * obj0 = 0 ; | |
21116 | char *kwnames[] = { | |
21117 | (char *) "val", NULL | |
21118 | }; | |
21119 | ||
21120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail; | |
c370783e | 21121 | arg1 = (bool)SWIG_As_bool(obj0); |
d55e5bfc RD |
21122 | if (PyErr_Occurred()) SWIG_fail; |
21123 | { | |
21124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21125 | wxPyApp::SetMacSupportPCMenuShortcuts(arg1); | |
21126 | ||
21127 | wxPyEndAllowThreads(__tstate); | |
21128 | if (PyErr_Occurred()) SWIG_fail; | |
21129 | } | |
21130 | Py_INCREF(Py_None); resultobj = Py_None; | |
21131 | return resultobj; | |
21132 | fail: | |
21133 | return NULL; | |
21134 | } | |
21135 | ||
21136 | ||
c370783e | 21137 | static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21138 | PyObject *resultobj; |
21139 | long arg1 ; | |
21140 | PyObject * obj0 = 0 ; | |
21141 | char *kwnames[] = { | |
21142 | (char *) "val", NULL | |
21143 | }; | |
21144 | ||
21145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail; | |
c370783e | 21146 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21147 | if (PyErr_Occurred()) SWIG_fail; |
21148 | { | |
21149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21150 | wxPyApp::SetMacAboutMenuItemId(arg1); | |
21151 | ||
21152 | wxPyEndAllowThreads(__tstate); | |
21153 | if (PyErr_Occurred()) SWIG_fail; | |
21154 | } | |
21155 | Py_INCREF(Py_None); resultobj = Py_None; | |
21156 | return resultobj; | |
21157 | fail: | |
21158 | return NULL; | |
21159 | } | |
21160 | ||
21161 | ||
c370783e | 21162 | static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21163 | PyObject *resultobj; |
21164 | long arg1 ; | |
21165 | PyObject * obj0 = 0 ; | |
21166 | char *kwnames[] = { | |
21167 | (char *) "val", NULL | |
21168 | }; | |
21169 | ||
21170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail; | |
c370783e | 21171 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21172 | if (PyErr_Occurred()) SWIG_fail; |
21173 | { | |
21174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21175 | wxPyApp::SetMacPreferencesMenuItemId(arg1); | |
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_PyApp_SetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21188 | PyObject *resultobj; |
21189 | long arg1 ; | |
21190 | PyObject * obj0 = 0 ; | |
21191 | char *kwnames[] = { | |
21192 | (char *) "val", NULL | |
21193 | }; | |
21194 | ||
21195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail; | |
c370783e | 21196 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
21197 | if (PyErr_Occurred()) SWIG_fail; |
21198 | { | |
21199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21200 | wxPyApp::SetMacExitMenuItemId(arg1); | |
21201 | ||
21202 | wxPyEndAllowThreads(__tstate); | |
21203 | if (PyErr_Occurred()) SWIG_fail; | |
21204 | } | |
21205 | Py_INCREF(Py_None); resultobj = Py_None; | |
21206 | return resultobj; | |
21207 | fail: | |
21208 | return NULL; | |
21209 | } | |
21210 | ||
21211 | ||
c370783e | 21212 | static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21213 | PyObject *resultobj; |
21214 | wxString *arg1 = 0 ; | |
b411df4a | 21215 | bool temp1 = false ; |
d55e5bfc RD |
21216 | PyObject * obj0 = 0 ; |
21217 | char *kwnames[] = { | |
21218 | (char *) "val", NULL | |
21219 | }; | |
21220 | ||
21221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail; | |
21222 | { | |
21223 | arg1 = wxString_in_helper(obj0); | |
21224 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 21225 | temp1 = true; |
d55e5bfc RD |
21226 | } |
21227 | { | |
21228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21229 | wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1); | |
21230 | ||
21231 | wxPyEndAllowThreads(__tstate); | |
21232 | if (PyErr_Occurred()) SWIG_fail; | |
21233 | } | |
21234 | Py_INCREF(Py_None); resultobj = Py_None; | |
21235 | { | |
21236 | if (temp1) | |
21237 | delete arg1; | |
21238 | } | |
21239 | return resultobj; | |
21240 | fail: | |
21241 | { | |
21242 | if (temp1) | |
21243 | delete arg1; | |
21244 | } | |
21245 | return NULL; | |
21246 | } | |
21247 | ||
21248 | ||
c370783e | 21249 | static PyObject *_wrap_PyApp__BootstrapApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21250 | PyObject *resultobj; |
21251 | wxPyApp *arg1 = (wxPyApp *) 0 ; | |
21252 | PyObject * obj0 = 0 ; | |
21253 | char *kwnames[] = { | |
21254 | (char *) "self", NULL | |
21255 | }; | |
21256 | ||
21257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail; | |
21258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp, | |
21259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21260 | { | |
21261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21262 | (arg1)->_BootstrapApp(); | |
21263 | ||
21264 | wxPyEndAllowThreads(__tstate); | |
21265 | if (PyErr_Occurred()) SWIG_fail; | |
21266 | } | |
21267 | Py_INCREF(Py_None); resultobj = Py_None; | |
21268 | return resultobj; | |
21269 | fail: | |
21270 | return NULL; | |
21271 | } | |
21272 | ||
21273 | ||
c370783e | 21274 | static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21275 | PyObject *resultobj; |
21276 | int result; | |
21277 | char *kwnames[] = { | |
21278 | NULL | |
21279 | }; | |
21280 | ||
21281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail; | |
21282 | { | |
21283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21284 | result = (int)PyApp_GetComCtl32Version(); | |
21285 | ||
21286 | wxPyEndAllowThreads(__tstate); | |
21287 | if (PyErr_Occurred()) SWIG_fail; | |
21288 | } | |
c370783e | 21289 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21290 | return resultobj; |
21291 | fail: | |
21292 | return NULL; | |
21293 | } | |
21294 | ||
21295 | ||
c370783e | 21296 | static PyObject * PyApp_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21297 | PyObject *obj; |
21298 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21299 | SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj); | |
21300 | Py_INCREF(obj); | |
21301 | return Py_BuildValue((char *)""); | |
21302 | } | |
c370783e | 21303 | static PyObject *_wrap_Exit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21304 | PyObject *resultobj; |
21305 | char *kwnames[] = { | |
21306 | NULL | |
21307 | }; | |
21308 | ||
21309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail; | |
21310 | { | |
21311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21312 | wxExit(); | |
21313 | ||
21314 | wxPyEndAllowThreads(__tstate); | |
21315 | if (PyErr_Occurred()) SWIG_fail; | |
21316 | } | |
21317 | Py_INCREF(Py_None); resultobj = Py_None; | |
21318 | return resultobj; | |
21319 | fail: | |
21320 | return NULL; | |
21321 | } | |
21322 | ||
21323 | ||
c370783e | 21324 | static PyObject *_wrap_Yield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21325 | PyObject *resultobj; |
21326 | bool result; | |
21327 | char *kwnames[] = { | |
21328 | NULL | |
21329 | }; | |
21330 | ||
21331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail; | |
21332 | { | |
21333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21334 | result = (bool)wxYield(); | |
21335 | ||
21336 | wxPyEndAllowThreads(__tstate); | |
21337 | if (PyErr_Occurred()) SWIG_fail; | |
21338 | } | |
21339 | { | |
21340 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21341 | } | |
21342 | return resultobj; | |
21343 | fail: | |
21344 | return NULL; | |
21345 | } | |
21346 | ||
21347 | ||
c370783e | 21348 | static PyObject *_wrap_YieldIfNeeded(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21349 | PyObject *resultobj; |
21350 | bool result; | |
21351 | char *kwnames[] = { | |
21352 | NULL | |
21353 | }; | |
21354 | ||
21355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail; | |
21356 | { | |
21357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21358 | result = (bool)wxYieldIfNeeded(); | |
21359 | ||
21360 | wxPyEndAllowThreads(__tstate); | |
21361 | if (PyErr_Occurred()) SWIG_fail; | |
21362 | } | |
21363 | { | |
21364 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21365 | } | |
21366 | return resultobj; | |
21367 | fail: | |
21368 | return NULL; | |
21369 | } | |
21370 | ||
21371 | ||
c370783e | 21372 | static PyObject *_wrap_SafeYield(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21373 | PyObject *resultobj; |
21374 | wxWindow *arg1 = (wxWindow *) NULL ; | |
b411df4a | 21375 | bool arg2 = (bool) false ; |
d55e5bfc RD |
21376 | bool result; |
21377 | PyObject * obj0 = 0 ; | |
21378 | PyObject * obj1 = 0 ; | |
21379 | char *kwnames[] = { | |
21380 | (char *) "win",(char *) "onlyIfNeeded", NULL | |
21381 | }; | |
21382 | ||
21383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail; | |
21384 | if (obj0) { | |
21385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21387 | } | |
21388 | if (obj1) { | |
c370783e | 21389 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
21390 | if (PyErr_Occurred()) SWIG_fail; |
21391 | } | |
21392 | { | |
21393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21394 | result = (bool)wxSafeYield(arg1,arg2); | |
21395 | ||
21396 | wxPyEndAllowThreads(__tstate); | |
21397 | if (PyErr_Occurred()) SWIG_fail; | |
21398 | } | |
21399 | { | |
21400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21401 | } | |
21402 | return resultobj; | |
21403 | fail: | |
21404 | return NULL; | |
21405 | } | |
21406 | ||
21407 | ||
c370783e | 21408 | static PyObject *_wrap_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21409 | PyObject *resultobj; |
21410 | char *kwnames[] = { | |
21411 | NULL | |
21412 | }; | |
21413 | ||
21414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail; | |
21415 | { | |
21416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21417 | wxWakeUpIdle(); | |
21418 | ||
21419 | wxPyEndAllowThreads(__tstate); | |
21420 | if (PyErr_Occurred()) SWIG_fail; | |
21421 | } | |
21422 | Py_INCREF(Py_None); resultobj = Py_None; | |
21423 | return resultobj; | |
21424 | fail: | |
21425 | return NULL; | |
21426 | } | |
21427 | ||
21428 | ||
c370783e | 21429 | static PyObject *_wrap_PostEvent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21430 | PyObject *resultobj; |
21431 | wxEvtHandler *arg1 = (wxEvtHandler *) 0 ; | |
21432 | wxEvent *arg2 = 0 ; | |
21433 | PyObject * obj0 = 0 ; | |
21434 | PyObject * obj1 = 0 ; | |
21435 | char *kwnames[] = { | |
21436 | (char *) "dest",(char *) "event", NULL | |
21437 | }; | |
21438 | ||
21439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail; | |
21440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler, | |
21441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21442 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent, | |
21443 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21444 | SWIG_fail; | |
21445 | if (arg2 == NULL) { | |
21446 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21447 | SWIG_fail; | |
21448 | } | |
21449 | { | |
21450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21451 | wxPostEvent(arg1,*arg2); | |
21452 | ||
21453 | wxPyEndAllowThreads(__tstate); | |
21454 | if (PyErr_Occurred()) SWIG_fail; | |
21455 | } | |
21456 | Py_INCREF(Py_None); resultobj = Py_None; | |
21457 | return resultobj; | |
21458 | fail: | |
21459 | return NULL; | |
21460 | } | |
21461 | ||
21462 | ||
c370783e | 21463 | static PyObject *_wrap_App_CleanUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21464 | PyObject *resultobj; |
21465 | char *kwnames[] = { | |
21466 | NULL | |
21467 | }; | |
21468 | ||
21469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail; | |
21470 | { | |
21471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21472 | wxApp_CleanUp(); | |
21473 | ||
21474 | wxPyEndAllowThreads(__tstate); | |
21475 | if (PyErr_Occurred()) SWIG_fail; | |
21476 | } | |
21477 | Py_INCREF(Py_None); resultobj = Py_None; | |
21478 | return resultobj; | |
21479 | fail: | |
21480 | return NULL; | |
21481 | } | |
21482 | ||
21483 | ||
c370783e | 21484 | static PyObject *_wrap_GetApp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21485 | PyObject *resultobj; |
21486 | wxPyApp *result; | |
21487 | char *kwnames[] = { | |
21488 | NULL | |
21489 | }; | |
21490 | ||
21491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail; | |
21492 | { | |
21493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a5ee0656 | 21494 | result = (wxPyApp *)wxPyGetApp(); |
d55e5bfc RD |
21495 | |
21496 | wxPyEndAllowThreads(__tstate); | |
21497 | if (PyErr_Occurred()) SWIG_fail; | |
21498 | } | |
21499 | { | |
412d302d | 21500 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21501 | } |
21502 | return resultobj; | |
21503 | fail: | |
21504 | return NULL; | |
21505 | } | |
21506 | ||
21507 | ||
5cbf236d RD |
21508 | static PyObject *_wrap_SetDefaultPyEncoding(PyObject *, PyObject *args, PyObject *kwargs) { |
21509 | PyObject *resultobj; | |
21510 | char *arg1 ; | |
21511 | PyObject * obj0 = 0 ; | |
21512 | char *kwnames[] = { | |
21513 | (char *) "encoding", NULL | |
21514 | }; | |
21515 | ||
21516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetDefaultPyEncoding",kwnames,&obj0)) goto fail; | |
21517 | if (!SWIG_AsCharPtr(obj0, (char**)&arg1)) SWIG_fail; | |
21518 | { | |
21519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21520 | wxSetDefaultPyEncoding((char const *)arg1); | |
21521 | ||
21522 | wxPyEndAllowThreads(__tstate); | |
21523 | if (PyErr_Occurred()) SWIG_fail; | |
21524 | } | |
21525 | Py_INCREF(Py_None); resultobj = Py_None; | |
21526 | return resultobj; | |
21527 | fail: | |
21528 | return NULL; | |
21529 | } | |
21530 | ||
21531 | ||
21532 | static PyObject *_wrap_GetDefaultPyEncoding(PyObject *, PyObject *args, PyObject *kwargs) { | |
21533 | PyObject *resultobj; | |
21534 | char *result; | |
21535 | char *kwnames[] = { | |
21536 | NULL | |
21537 | }; | |
21538 | ||
21539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDefaultPyEncoding",kwnames)) goto fail; | |
21540 | { | |
21541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21542 | result = (char *)wxGetDefaultPyEncoding(); | |
21543 | ||
21544 | wxPyEndAllowThreads(__tstate); | |
21545 | if (PyErr_Occurred()) SWIG_fail; | |
21546 | } | |
21547 | resultobj = SWIG_FromCharPtr(result); | |
21548 | return resultobj; | |
21549 | fail: | |
21550 | return NULL; | |
21551 | } | |
21552 | ||
21553 | ||
b411df4a RD |
21554 | static PyObject *_wrap_new_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) { |
21555 | PyObject *resultobj; | |
21556 | wxEventLoop *result; | |
21557 | char *kwnames[] = { | |
21558 | NULL | |
21559 | }; | |
21560 | ||
21561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EventLoop",kwnames)) goto fail; | |
21562 | { | |
21563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21564 | result = (wxEventLoop *)new wxEventLoop(); | |
21565 | ||
21566 | wxPyEndAllowThreads(__tstate); | |
21567 | if (PyErr_Occurred()) SWIG_fail; | |
21568 | } | |
21569 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 1); | |
21570 | return resultobj; | |
21571 | fail: | |
21572 | return NULL; | |
21573 | } | |
21574 | ||
21575 | ||
21576 | static PyObject *_wrap_delete_EventLoop(PyObject *, PyObject *args, PyObject *kwargs) { | |
21577 | PyObject *resultobj; | |
21578 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21579 | PyObject * obj0 = 0 ; | |
21580 | char *kwnames[] = { | |
21581 | (char *) "self", NULL | |
21582 | }; | |
21583 | ||
21584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EventLoop",kwnames,&obj0)) goto fail; | |
21585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21587 | { | |
21588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21589 | delete arg1; | |
21590 | ||
21591 | wxPyEndAllowThreads(__tstate); | |
21592 | if (PyErr_Occurred()) SWIG_fail; | |
21593 | } | |
21594 | Py_INCREF(Py_None); resultobj = Py_None; | |
21595 | return resultobj; | |
21596 | fail: | |
21597 | return NULL; | |
21598 | } | |
21599 | ||
21600 | ||
21601 | static PyObject *_wrap_EventLoop_Run(PyObject *, PyObject *args, PyObject *kwargs) { | |
21602 | PyObject *resultobj; | |
21603 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21604 | int result; | |
21605 | PyObject * obj0 = 0 ; | |
21606 | char *kwnames[] = { | |
21607 | (char *) "self", NULL | |
21608 | }; | |
21609 | ||
21610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Run",kwnames,&obj0)) goto fail; | |
21611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21613 | { | |
21614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21615 | result = (int)(arg1)->Run(); | |
21616 | ||
21617 | wxPyEndAllowThreads(__tstate); | |
21618 | if (PyErr_Occurred()) SWIG_fail; | |
21619 | } | |
21620 | resultobj = SWIG_From_int((int)result); | |
21621 | return resultobj; | |
21622 | fail: | |
21623 | return NULL; | |
21624 | } | |
21625 | ||
21626 | ||
21627 | static PyObject *_wrap_EventLoop_Exit(PyObject *, PyObject *args, PyObject *kwargs) { | |
21628 | PyObject *resultobj; | |
21629 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21630 | int arg2 = (int) 0 ; | |
21631 | PyObject * obj0 = 0 ; | |
21632 | PyObject * obj1 = 0 ; | |
21633 | char *kwnames[] = { | |
21634 | (char *) "self",(char *) "rc", NULL | |
21635 | }; | |
21636 | ||
21637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EventLoop_Exit",kwnames,&obj0,&obj1)) goto fail; | |
21638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21640 | if (obj1) { | |
21641 | arg2 = (int)SWIG_As_int(obj1); | |
21642 | if (PyErr_Occurred()) SWIG_fail; | |
21643 | } | |
21644 | { | |
21645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21646 | (arg1)->Exit(arg2); | |
21647 | ||
21648 | wxPyEndAllowThreads(__tstate); | |
21649 | if (PyErr_Occurred()) SWIG_fail; | |
21650 | } | |
21651 | Py_INCREF(Py_None); resultobj = Py_None; | |
21652 | return resultobj; | |
21653 | fail: | |
21654 | return NULL; | |
21655 | } | |
21656 | ||
21657 | ||
21658 | static PyObject *_wrap_EventLoop_Pending(PyObject *, PyObject *args, PyObject *kwargs) { | |
21659 | PyObject *resultobj; | |
21660 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21661 | bool result; | |
21662 | PyObject * obj0 = 0 ; | |
21663 | char *kwnames[] = { | |
21664 | (char *) "self", NULL | |
21665 | }; | |
21666 | ||
21667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Pending",kwnames,&obj0)) goto fail; | |
21668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21670 | { | |
21671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21672 | result = (bool)((wxEventLoop const *)arg1)->Pending(); | |
21673 | ||
21674 | wxPyEndAllowThreads(__tstate); | |
21675 | if (PyErr_Occurred()) SWIG_fail; | |
21676 | } | |
21677 | { | |
21678 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21679 | } | |
21680 | return resultobj; | |
21681 | fail: | |
21682 | return NULL; | |
21683 | } | |
21684 | ||
21685 | ||
21686 | static PyObject *_wrap_EventLoop_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) { | |
21687 | PyObject *resultobj; | |
21688 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21689 | bool result; | |
21690 | PyObject * obj0 = 0 ; | |
21691 | char *kwnames[] = { | |
21692 | (char *) "self", NULL | |
21693 | }; | |
21694 | ||
21695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_Dispatch",kwnames,&obj0)) goto fail; | |
21696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21698 | { | |
21699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21700 | result = (bool)(arg1)->Dispatch(); | |
21701 | ||
21702 | wxPyEndAllowThreads(__tstate); | |
21703 | if (PyErr_Occurred()) SWIG_fail; | |
21704 | } | |
21705 | { | |
21706 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21707 | } | |
21708 | return resultobj; | |
21709 | fail: | |
21710 | return NULL; | |
21711 | } | |
21712 | ||
21713 | ||
21714 | static PyObject *_wrap_EventLoop_IsRunning(PyObject *, PyObject *args, PyObject *kwargs) { | |
21715 | PyObject *resultobj; | |
21716 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21717 | bool result; | |
21718 | PyObject * obj0 = 0 ; | |
21719 | char *kwnames[] = { | |
21720 | (char *) "self", NULL | |
21721 | }; | |
21722 | ||
21723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_IsRunning",kwnames,&obj0)) goto fail; | |
21724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21726 | { | |
21727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21728 | result = (bool)((wxEventLoop const *)arg1)->IsRunning(); | |
21729 | ||
21730 | wxPyEndAllowThreads(__tstate); | |
21731 | if (PyErr_Occurred()) SWIG_fail; | |
21732 | } | |
21733 | { | |
21734 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21735 | } | |
21736 | return resultobj; | |
21737 | fail: | |
21738 | return NULL; | |
21739 | } | |
21740 | ||
21741 | ||
21742 | static PyObject *_wrap_EventLoop_GetActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
21743 | PyObject *resultobj; | |
21744 | wxEventLoop *result; | |
21745 | char *kwnames[] = { | |
21746 | NULL | |
21747 | }; | |
21748 | ||
21749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EventLoop_GetActive",kwnames)) goto fail; | |
21750 | { | |
21751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21752 | result = (wxEventLoop *)wxEventLoop::GetActive(); | |
21753 | ||
21754 | wxPyEndAllowThreads(__tstate); | |
21755 | if (PyErr_Occurred()) SWIG_fail; | |
21756 | } | |
21757 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEventLoop, 0); | |
21758 | return resultobj; | |
21759 | fail: | |
21760 | return NULL; | |
21761 | } | |
21762 | ||
21763 | ||
21764 | static PyObject *_wrap_EventLoop_SetActive(PyObject *, PyObject *args, PyObject *kwargs) { | |
21765 | PyObject *resultobj; | |
21766 | wxEventLoop *arg1 = (wxEventLoop *) 0 ; | |
21767 | PyObject * obj0 = 0 ; | |
21768 | char *kwnames[] = { | |
21769 | (char *) "loop", NULL | |
21770 | }; | |
21771 | ||
21772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_SetActive",kwnames,&obj0)) goto fail; | |
21773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEventLoop, | |
21774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21775 | { | |
21776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21777 | wxEventLoop::SetActive(arg1); | |
21778 | ||
21779 | wxPyEndAllowThreads(__tstate); | |
21780 | if (PyErr_Occurred()) SWIG_fail; | |
21781 | } | |
21782 | Py_INCREF(Py_None); resultobj = Py_None; | |
21783 | return resultobj; | |
21784 | fail: | |
21785 | return NULL; | |
21786 | } | |
21787 | ||
21788 | ||
21789 | static PyObject * EventLoop_swigregister(PyObject *, PyObject *args) { | |
21790 | PyObject *obj; | |
21791 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21792 | SWIG_TypeClientData(SWIGTYPE_p_wxEventLoop, obj); | |
21793 | Py_INCREF(obj); | |
21794 | return Py_BuildValue((char *)""); | |
21795 | } | |
c370783e | 21796 | static PyObject *_wrap_new_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21797 | PyObject *resultobj; |
21798 | int arg1 = (int) 0 ; | |
21799 | int arg2 = (int) 0 ; | |
21800 | int arg3 = (int) 0 ; | |
d55e5bfc RD |
21801 | wxAcceleratorEntry *result; |
21802 | PyObject * obj0 = 0 ; | |
21803 | PyObject * obj1 = 0 ; | |
21804 | PyObject * obj2 = 0 ; | |
d55e5bfc | 21805 | char *kwnames[] = { |
d6c14a4c | 21806 | (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL |
d55e5bfc RD |
21807 | }; |
21808 | ||
d6c14a4c | 21809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc | 21810 | if (obj0) { |
c370783e | 21811 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
21812 | if (PyErr_Occurred()) SWIG_fail; |
21813 | } | |
21814 | if (obj1) { | |
c370783e | 21815 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
21816 | if (PyErr_Occurred()) SWIG_fail; |
21817 | } | |
21818 | if (obj2) { | |
c370783e | 21819 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
21820 | if (PyErr_Occurred()) SWIG_fail; |
21821 | } | |
d55e5bfc RD |
21822 | { |
21823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 21824 | result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3); |
d55e5bfc RD |
21825 | |
21826 | wxPyEndAllowThreads(__tstate); | |
21827 | if (PyErr_Occurred()) SWIG_fail; | |
21828 | } | |
21829 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1); | |
21830 | return resultobj; | |
21831 | fail: | |
21832 | return NULL; | |
21833 | } | |
21834 | ||
21835 | ||
c370783e | 21836 | static PyObject *_wrap_delete_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21837 | PyObject *resultobj; |
21838 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21839 | PyObject * obj0 = 0 ; | |
21840 | char *kwnames[] = { | |
21841 | (char *) "self", NULL | |
21842 | }; | |
21843 | ||
21844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail; | |
21845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21847 | { | |
21848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21849 | delete arg1; | |
21850 | ||
21851 | wxPyEndAllowThreads(__tstate); | |
21852 | if (PyErr_Occurred()) SWIG_fail; | |
21853 | } | |
21854 | Py_INCREF(Py_None); resultobj = Py_None; | |
21855 | return resultobj; | |
21856 | fail: | |
21857 | return NULL; | |
21858 | } | |
21859 | ||
21860 | ||
c370783e | 21861 | static PyObject *_wrap_AcceleratorEntry_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21862 | PyObject *resultobj; |
21863 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21864 | int arg2 ; | |
21865 | int arg3 ; | |
21866 | int arg4 ; | |
d55e5bfc RD |
21867 | PyObject * obj0 = 0 ; |
21868 | PyObject * obj1 = 0 ; | |
21869 | PyObject * obj2 = 0 ; | |
21870 | PyObject * obj3 = 0 ; | |
d55e5bfc | 21871 | char *kwnames[] = { |
d6c14a4c | 21872 | (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL |
d55e5bfc RD |
21873 | }; |
21874 | ||
d6c14a4c | 21875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
21876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, |
21877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 21878 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 21879 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21880 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 21881 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 21882 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 21883 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21884 | { |
21885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d6c14a4c | 21886 | (arg1)->Set(arg2,arg3,arg4); |
d55e5bfc RD |
21887 | |
21888 | wxPyEndAllowThreads(__tstate); | |
21889 | if (PyErr_Occurred()) SWIG_fail; | |
21890 | } | |
21891 | Py_INCREF(Py_None); resultobj = Py_None; | |
21892 | return resultobj; | |
21893 | fail: | |
21894 | return NULL; | |
21895 | } | |
21896 | ||
21897 | ||
c370783e | 21898 | static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21899 | PyObject *resultobj; |
21900 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21901 | int result; | |
21902 | PyObject * obj0 = 0 ; | |
21903 | char *kwnames[] = { | |
21904 | (char *) "self", NULL | |
21905 | }; | |
21906 | ||
21907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail; | |
21908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21910 | { | |
21911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21912 | result = (int)(arg1)->GetFlags(); | |
21913 | ||
21914 | wxPyEndAllowThreads(__tstate); | |
21915 | if (PyErr_Occurred()) SWIG_fail; | |
21916 | } | |
c370783e | 21917 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21918 | return resultobj; |
21919 | fail: | |
21920 | return NULL; | |
21921 | } | |
21922 | ||
21923 | ||
c370783e | 21924 | static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21925 | PyObject *resultobj; |
21926 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21927 | int result; | |
21928 | PyObject * obj0 = 0 ; | |
21929 | char *kwnames[] = { | |
21930 | (char *) "self", NULL | |
21931 | }; | |
21932 | ||
21933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail; | |
21934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21936 | { | |
21937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21938 | result = (int)(arg1)->GetKeyCode(); | |
21939 | ||
21940 | wxPyEndAllowThreads(__tstate); | |
21941 | if (PyErr_Occurred()) SWIG_fail; | |
21942 | } | |
c370783e | 21943 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21944 | return resultobj; |
21945 | fail: | |
21946 | return NULL; | |
21947 | } | |
21948 | ||
21949 | ||
c370783e | 21950 | static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21951 | PyObject *resultobj; |
21952 | wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ; | |
21953 | int result; | |
21954 | PyObject * obj0 = 0 ; | |
21955 | char *kwnames[] = { | |
21956 | (char *) "self", NULL | |
21957 | }; | |
21958 | ||
21959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail; | |
21960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry, | |
21961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21962 | { | |
21963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21964 | result = (int)(arg1)->GetCommand(); | |
21965 | ||
21966 | wxPyEndAllowThreads(__tstate); | |
21967 | if (PyErr_Occurred()) SWIG_fail; | |
21968 | } | |
c370783e | 21969 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
21970 | return resultobj; |
21971 | fail: | |
21972 | return NULL; | |
21973 | } | |
21974 | ||
21975 | ||
c370783e | 21976 | static PyObject * AcceleratorEntry_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
21977 | PyObject *obj; |
21978 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21979 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj); | |
21980 | Py_INCREF(obj); | |
21981 | return Py_BuildValue((char *)""); | |
21982 | } | |
c370783e | 21983 | static PyObject *_wrap_new_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
21984 | PyObject *resultobj; |
21985 | int arg1 ; | |
21986 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
21987 | wxAcceleratorTable *result; | |
21988 | PyObject * obj0 = 0 ; | |
21989 | char *kwnames[] = { | |
21990 | (char *) "n", NULL | |
21991 | }; | |
21992 | ||
21993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail; | |
21994 | { | |
21995 | arg2 = wxAcceleratorEntry_LIST_helper(obj0); | |
21996 | if (arg2) arg1 = PyList_Size(obj0); | |
21997 | else arg1 = 0; | |
21998 | } | |
21999 | { | |
22000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22001 | result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2); | |
22002 | ||
22003 | wxPyEndAllowThreads(__tstate); | |
22004 | if (PyErr_Occurred()) SWIG_fail; | |
22005 | } | |
22006 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1); | |
22007 | { | |
22008 | delete [] arg2; | |
22009 | } | |
22010 | return resultobj; | |
22011 | fail: | |
22012 | { | |
22013 | delete [] arg2; | |
22014 | } | |
22015 | return NULL; | |
22016 | } | |
22017 | ||
22018 | ||
c370783e | 22019 | static PyObject *_wrap_delete_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22020 | PyObject *resultobj; |
22021 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
22022 | PyObject * obj0 = 0 ; | |
22023 | char *kwnames[] = { | |
22024 | (char *) "self", NULL | |
22025 | }; | |
22026 | ||
22027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail; | |
22028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, | |
22029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22030 | { | |
22031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22032 | delete arg1; | |
22033 | ||
22034 | wxPyEndAllowThreads(__tstate); | |
22035 | if (PyErr_Occurred()) SWIG_fail; | |
22036 | } | |
22037 | Py_INCREF(Py_None); resultobj = Py_None; | |
22038 | return resultobj; | |
22039 | fail: | |
22040 | return NULL; | |
22041 | } | |
22042 | ||
22043 | ||
c370783e | 22044 | static PyObject *_wrap_AcceleratorTable_Ok(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22045 | PyObject *resultobj; |
22046 | wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ; | |
22047 | bool result; | |
22048 | PyObject * obj0 = 0 ; | |
22049 | char *kwnames[] = { | |
22050 | (char *) "self", NULL | |
22051 | }; | |
22052 | ||
22053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail; | |
22054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable, | |
22055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22056 | { | |
22057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22058 | result = (bool)((wxAcceleratorTable const *)arg1)->Ok(); | |
22059 | ||
22060 | wxPyEndAllowThreads(__tstate); | |
22061 | if (PyErr_Occurred()) SWIG_fail; | |
22062 | } | |
22063 | { | |
22064 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22065 | } | |
22066 | return resultobj; | |
22067 | fail: | |
22068 | return NULL; | |
22069 | } | |
22070 | ||
22071 | ||
c370783e | 22072 | static PyObject * AcceleratorTable_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
22073 | PyObject *obj; |
22074 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22075 | SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj); | |
22076 | Py_INCREF(obj); | |
22077 | return Py_BuildValue((char *)""); | |
22078 | } | |
c370783e | 22079 | static int _wrap_NullAcceleratorTable_set(PyObject *) { |
d55e5bfc RD |
22080 | PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only."); |
22081 | return 1; | |
22082 | } | |
22083 | ||
22084 | ||
22085 | static PyObject *_wrap_NullAcceleratorTable_get() { | |
22086 | PyObject *pyobj; | |
22087 | ||
22088 | pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0); | |
22089 | return pyobj; | |
22090 | } | |
22091 | ||
22092 | ||
c370783e | 22093 | static PyObject *_wrap_GetAccelFromString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22094 | PyObject *resultobj; |
22095 | wxString *arg1 = 0 ; | |
22096 | wxAcceleratorEntry *result; | |
b411df4a | 22097 | bool temp1 = false ; |
d55e5bfc RD |
22098 | PyObject * obj0 = 0 ; |
22099 | char *kwnames[] = { | |
22100 | (char *) "label", NULL | |
22101 | }; | |
22102 | ||
22103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail; | |
22104 | { | |
22105 | arg1 = wxString_in_helper(obj0); | |
22106 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 22107 | temp1 = true; |
d55e5bfc RD |
22108 | } |
22109 | { | |
22110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22111 | result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1); | |
22112 | ||
22113 | wxPyEndAllowThreads(__tstate); | |
22114 | if (PyErr_Occurred()) SWIG_fail; | |
22115 | } | |
22116 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
22117 | { | |
22118 | if (temp1) | |
22119 | delete arg1; | |
22120 | } | |
22121 | return resultobj; | |
22122 | fail: | |
22123 | { | |
22124 | if (temp1) | |
22125 | delete arg1; | |
22126 | } | |
22127 | return NULL; | |
22128 | } | |
22129 | ||
22130 | ||
c370783e | 22131 | static int _wrap_PanelNameStr_set(PyObject *) { |
d55e5bfc RD |
22132 | PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only."); |
22133 | return 1; | |
22134 | } | |
22135 | ||
22136 | ||
22137 | static PyObject *_wrap_PanelNameStr_get() { | |
22138 | PyObject *pyobj; | |
22139 | ||
22140 | { | |
22141 | #if wxUSE_UNICODE | |
22142 | pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
22143 | #else | |
22144 | pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len()); | |
22145 | #endif | |
22146 | } | |
22147 | return pyobj; | |
22148 | } | |
22149 | ||
22150 | ||
c370783e | 22151 | static PyObject *_wrap_new_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22152 | PyObject *resultobj; |
22153 | wxVisualAttributes *result; | |
22154 | char *kwnames[] = { | |
22155 | NULL | |
22156 | }; | |
22157 | ||
22158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail; | |
22159 | { | |
22160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22161 | result = (wxVisualAttributes *)new_wxVisualAttributes(); | |
22162 | ||
22163 | wxPyEndAllowThreads(__tstate); | |
22164 | if (PyErr_Occurred()) SWIG_fail; | |
22165 | } | |
22166 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1); | |
22167 | return resultobj; | |
22168 | fail: | |
22169 | return NULL; | |
22170 | } | |
22171 | ||
22172 | ||
c370783e | 22173 | static PyObject *_wrap_delete_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22174 | PyObject *resultobj; |
22175 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22176 | PyObject * obj0 = 0 ; | |
22177 | char *kwnames[] = { | |
22178 | (char *) "self", NULL | |
22179 | }; | |
22180 | ||
22181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail; | |
22182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22184 | { | |
22185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22186 | delete_wxVisualAttributes(arg1); | |
22187 | ||
22188 | wxPyEndAllowThreads(__tstate); | |
22189 | if (PyErr_Occurred()) SWIG_fail; | |
22190 | } | |
22191 | Py_INCREF(Py_None); resultobj = Py_None; | |
22192 | return resultobj; | |
22193 | fail: | |
22194 | return NULL; | |
22195 | } | |
22196 | ||
22197 | ||
c370783e | 22198 | static PyObject *_wrap_VisualAttributes_font_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22199 | PyObject *resultobj; |
22200 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22201 | wxFont *arg2 = (wxFont *) 0 ; | |
22202 | PyObject * obj0 = 0 ; | |
22203 | PyObject * obj1 = 0 ; | |
22204 | char *kwnames[] = { | |
22205 | (char *) "self",(char *) "font", NULL | |
22206 | }; | |
22207 | ||
22208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail; | |
22209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22211 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
22212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22213 | if (arg1) (arg1)->font = *arg2; | |
22214 | ||
22215 | Py_INCREF(Py_None); resultobj = Py_None; | |
22216 | return resultobj; | |
22217 | fail: | |
22218 | return NULL; | |
22219 | } | |
22220 | ||
22221 | ||
c370783e | 22222 | static PyObject *_wrap_VisualAttributes_font_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22223 | PyObject *resultobj; |
22224 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22225 | wxFont *result; | |
22226 | PyObject * obj0 = 0 ; | |
22227 | char *kwnames[] = { | |
22228 | (char *) "self", NULL | |
22229 | }; | |
22230 | ||
22231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail; | |
22232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22234 | result = (wxFont *)& ((arg1)->font); | |
22235 | ||
22236 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0); | |
22237 | return resultobj; | |
22238 | fail: | |
22239 | return NULL; | |
22240 | } | |
22241 | ||
22242 | ||
c370783e | 22243 | static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22244 | PyObject *resultobj; |
22245 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22246 | wxColour *arg2 = (wxColour *) 0 ; | |
22247 | PyObject * obj0 = 0 ; | |
22248 | PyObject * obj1 = 0 ; | |
22249 | char *kwnames[] = { | |
22250 | (char *) "self",(char *) "colFg", NULL | |
22251 | }; | |
22252 | ||
22253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail; | |
22254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22256 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
22257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22258 | if (arg1) (arg1)->colFg = *arg2; | |
22259 | ||
22260 | Py_INCREF(Py_None); resultobj = Py_None; | |
22261 | return resultobj; | |
22262 | fail: | |
22263 | return NULL; | |
22264 | } | |
22265 | ||
22266 | ||
c370783e | 22267 | static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22268 | PyObject *resultobj; |
22269 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22270 | wxColour *result; | |
22271 | PyObject * obj0 = 0 ; | |
22272 | char *kwnames[] = { | |
22273 | (char *) "self", NULL | |
22274 | }; | |
22275 | ||
22276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail; | |
22277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22279 | result = (wxColour *)& ((arg1)->colFg); | |
22280 | ||
22281 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
22282 | return resultobj; | |
22283 | fail: | |
22284 | return NULL; | |
22285 | } | |
22286 | ||
22287 | ||
c370783e | 22288 | static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22289 | PyObject *resultobj; |
22290 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22291 | wxColour *arg2 = (wxColour *) 0 ; | |
22292 | PyObject * obj0 = 0 ; | |
22293 | PyObject * obj1 = 0 ; | |
22294 | char *kwnames[] = { | |
22295 | (char *) "self",(char *) "colBg", NULL | |
22296 | }; | |
22297 | ||
22298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail; | |
22299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22301 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour, | |
22302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22303 | if (arg1) (arg1)->colBg = *arg2; | |
22304 | ||
22305 | Py_INCREF(Py_None); resultobj = Py_None; | |
22306 | return resultobj; | |
22307 | fail: | |
22308 | return NULL; | |
22309 | } | |
22310 | ||
22311 | ||
c370783e | 22312 | static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22313 | PyObject *resultobj; |
22314 | wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ; | |
22315 | wxColour *result; | |
22316 | PyObject * obj0 = 0 ; | |
22317 | char *kwnames[] = { | |
22318 | (char *) "self", NULL | |
22319 | }; | |
22320 | ||
22321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail; | |
22322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes, | |
22323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22324 | result = (wxColour *)& ((arg1)->colBg); | |
22325 | ||
22326 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
22327 | return resultobj; | |
22328 | fail: | |
22329 | return NULL; | |
22330 | } | |
22331 | ||
22332 | ||
c370783e | 22333 | static PyObject * VisualAttributes_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
22334 | PyObject *obj; |
22335 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22336 | SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj); | |
22337 | Py_INCREF(obj); | |
22338 | return Py_BuildValue((char *)""); | |
22339 | } | |
c370783e | 22340 | static PyObject *_wrap_new_Window(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22341 | PyObject *resultobj; |
22342 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22343 | int arg2 = (int) (int)-1 ; | |
22344 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22345 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22346 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22347 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22348 | long arg5 = (long) 0 ; | |
22349 | wxString const &arg6_defvalue = wxPyPanelNameStr ; | |
22350 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
22351 | wxWindow *result; | |
22352 | wxPoint temp3 ; | |
22353 | wxSize temp4 ; | |
b411df4a | 22354 | bool temp6 = false ; |
d55e5bfc RD |
22355 | PyObject * obj0 = 0 ; |
22356 | PyObject * obj1 = 0 ; | |
22357 | PyObject * obj2 = 0 ; | |
22358 | PyObject * obj3 = 0 ; | |
22359 | PyObject * obj4 = 0 ; | |
22360 | PyObject * obj5 = 0 ; | |
22361 | char *kwnames[] = { | |
22362 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22363 | }; | |
22364 | ||
22365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
22366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22368 | if (obj1) { | |
c370783e | 22369 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22370 | if (PyErr_Occurred()) SWIG_fail; |
22371 | } | |
22372 | if (obj2) { | |
22373 | { | |
22374 | arg3 = &temp3; | |
22375 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22376 | } | |
22377 | } | |
22378 | if (obj3) { | |
22379 | { | |
22380 | arg4 = &temp4; | |
22381 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22382 | } | |
22383 | } | |
22384 | if (obj4) { | |
c370783e | 22385 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
22386 | if (PyErr_Occurred()) SWIG_fail; |
22387 | } | |
22388 | if (obj5) { | |
22389 | { | |
22390 | arg6 = wxString_in_helper(obj5); | |
22391 | if (arg6 == NULL) SWIG_fail; | |
b411df4a | 22392 | temp6 = true; |
d55e5bfc RD |
22393 | } |
22394 | } | |
22395 | { | |
0439c23b | 22396 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22398 | result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
22399 | ||
22400 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22401 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 22402 | } |
b0f7404b | 22403 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d55e5bfc RD |
22404 | { |
22405 | if (temp6) | |
22406 | delete arg6; | |
22407 | } | |
22408 | return resultobj; | |
22409 | fail: | |
22410 | { | |
22411 | if (temp6) | |
22412 | delete arg6; | |
22413 | } | |
22414 | return NULL; | |
22415 | } | |
22416 | ||
22417 | ||
c370783e | 22418 | static PyObject *_wrap_new_PreWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22419 | PyObject *resultobj; |
22420 | wxWindow *result; | |
22421 | char *kwnames[] = { | |
22422 | NULL | |
22423 | }; | |
22424 | ||
22425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail; | |
22426 | { | |
0439c23b | 22427 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
22428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22429 | result = (wxWindow *)new wxWindow(); | |
22430 | ||
22431 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 22432 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 22433 | } |
b0f7404b | 22434 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1); |
d55e5bfc RD |
22435 | return resultobj; |
22436 | fail: | |
22437 | return NULL; | |
22438 | } | |
22439 | ||
22440 | ||
c370783e | 22441 | static PyObject *_wrap_Window_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22442 | PyObject *resultobj; |
22443 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22444 | wxWindow *arg2 = (wxWindow *) 0 ; | |
22445 | int arg3 = (int) (int)-1 ; | |
22446 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
22447 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22448 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22449 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22450 | long arg6 = (long) 0 ; | |
22451 | wxString const &arg7_defvalue = wxPyPanelNameStr ; | |
22452 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22453 | bool result; | |
22454 | wxPoint temp4 ; | |
22455 | wxSize temp5 ; | |
b411df4a | 22456 | bool temp7 = false ; |
d55e5bfc RD |
22457 | PyObject * obj0 = 0 ; |
22458 | PyObject * obj1 = 0 ; | |
22459 | PyObject * obj2 = 0 ; | |
22460 | PyObject * obj3 = 0 ; | |
22461 | PyObject * obj4 = 0 ; | |
22462 | PyObject * obj5 = 0 ; | |
22463 | PyObject * obj6 = 0 ; | |
22464 | char *kwnames[] = { | |
22465 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
22466 | }; | |
22467 | ||
22468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22471 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22473 | if (obj2) { | |
c370783e | 22474 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
22475 | if (PyErr_Occurred()) SWIG_fail; |
22476 | } | |
22477 | if (obj3) { | |
22478 | { | |
22479 | arg4 = &temp4; | |
22480 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22481 | } | |
22482 | } | |
22483 | if (obj4) { | |
22484 | { | |
22485 | arg5 = &temp5; | |
22486 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22487 | } | |
22488 | } | |
22489 | if (obj5) { | |
c370783e | 22490 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
22491 | if (PyErr_Occurred()) SWIG_fail; |
22492 | } | |
22493 | if (obj6) { | |
22494 | { | |
22495 | arg7 = wxString_in_helper(obj6); | |
22496 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 22497 | temp7 = true; |
d55e5bfc RD |
22498 | } |
22499 | } | |
22500 | { | |
22501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22502 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
22503 | ||
22504 | wxPyEndAllowThreads(__tstate); | |
22505 | if (PyErr_Occurred()) SWIG_fail; | |
22506 | } | |
22507 | { | |
22508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22509 | } | |
22510 | { | |
22511 | if (temp7) | |
22512 | delete arg7; | |
22513 | } | |
22514 | return resultobj; | |
22515 | fail: | |
22516 | { | |
22517 | if (temp7) | |
22518 | delete arg7; | |
22519 | } | |
22520 | return NULL; | |
22521 | } | |
22522 | ||
22523 | ||
c370783e | 22524 | static PyObject *_wrap_Window_Close(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22525 | PyObject *resultobj; |
22526 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b411df4a | 22527 | bool arg2 = (bool) false ; |
d55e5bfc RD |
22528 | bool result; |
22529 | PyObject * obj0 = 0 ; | |
22530 | PyObject * obj1 = 0 ; | |
22531 | char *kwnames[] = { | |
22532 | (char *) "self",(char *) "force", NULL | |
22533 | }; | |
22534 | ||
22535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail; | |
22536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22538 | if (obj1) { | |
c370783e | 22539 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
22540 | if (PyErr_Occurred()) SWIG_fail; |
22541 | } | |
22542 | { | |
22543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22544 | result = (bool)(arg1)->Close(arg2); | |
22545 | ||
22546 | wxPyEndAllowThreads(__tstate); | |
22547 | if (PyErr_Occurred()) SWIG_fail; | |
22548 | } | |
22549 | { | |
22550 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22551 | } | |
22552 | return resultobj; | |
22553 | fail: | |
22554 | return NULL; | |
22555 | } | |
22556 | ||
22557 | ||
c370783e | 22558 | static PyObject *_wrap_Window_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22559 | PyObject *resultobj; |
22560 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22561 | bool result; | |
22562 | PyObject * obj0 = 0 ; | |
22563 | char *kwnames[] = { | |
22564 | (char *) "self", NULL | |
22565 | }; | |
22566 | ||
22567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail; | |
22568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22570 | { | |
22571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22572 | result = (bool)(arg1)->Destroy(); | |
22573 | ||
22574 | wxPyEndAllowThreads(__tstate); | |
22575 | if (PyErr_Occurred()) SWIG_fail; | |
22576 | } | |
22577 | { | |
22578 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22579 | } | |
22580 | return resultobj; | |
22581 | fail: | |
22582 | return NULL; | |
22583 | } | |
22584 | ||
22585 | ||
c370783e | 22586 | static PyObject *_wrap_Window_DestroyChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22587 | PyObject *resultobj; |
22588 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22589 | bool result; | |
22590 | PyObject * obj0 = 0 ; | |
22591 | char *kwnames[] = { | |
22592 | (char *) "self", NULL | |
22593 | }; | |
22594 | ||
22595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail; | |
22596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22598 | { | |
22599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22600 | result = (bool)(arg1)->DestroyChildren(); | |
22601 | ||
22602 | wxPyEndAllowThreads(__tstate); | |
22603 | if (PyErr_Occurred()) SWIG_fail; | |
22604 | } | |
22605 | { | |
22606 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22607 | } | |
22608 | return resultobj; | |
22609 | fail: | |
22610 | return NULL; | |
22611 | } | |
22612 | ||
22613 | ||
c370783e | 22614 | static PyObject *_wrap_Window_IsBeingDeleted(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22615 | PyObject *resultobj; |
22616 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22617 | bool result; | |
22618 | PyObject * obj0 = 0 ; | |
22619 | char *kwnames[] = { | |
22620 | (char *) "self", NULL | |
22621 | }; | |
22622 | ||
22623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail; | |
22624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22626 | { | |
22627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22628 | result = (bool)((wxWindow const *)arg1)->IsBeingDeleted(); | |
22629 | ||
22630 | wxPyEndAllowThreads(__tstate); | |
22631 | if (PyErr_Occurred()) SWIG_fail; | |
22632 | } | |
22633 | { | |
22634 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22635 | } | |
22636 | return resultobj; | |
22637 | fail: | |
22638 | return NULL; | |
22639 | } | |
22640 | ||
22641 | ||
c370783e | 22642 | static PyObject *_wrap_Window_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22643 | PyObject *resultobj; |
22644 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22645 | wxString *arg2 = 0 ; | |
b411df4a | 22646 | bool temp2 = false ; |
d55e5bfc RD |
22647 | PyObject * obj0 = 0 ; |
22648 | PyObject * obj1 = 0 ; | |
22649 | char *kwnames[] = { | |
22650 | (char *) "self",(char *) "title", NULL | |
22651 | }; | |
22652 | ||
22653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
22654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22656 | { | |
22657 | arg2 = wxString_in_helper(obj1); | |
22658 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 22659 | temp2 = true; |
d55e5bfc RD |
22660 | } |
22661 | { | |
22662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22663 | (arg1)->SetTitle((wxString const &)*arg2); | |
22664 | ||
22665 | wxPyEndAllowThreads(__tstate); | |
22666 | if (PyErr_Occurred()) SWIG_fail; | |
22667 | } | |
22668 | Py_INCREF(Py_None); resultobj = Py_None; | |
22669 | { | |
22670 | if (temp2) | |
22671 | delete arg2; | |
22672 | } | |
22673 | return resultobj; | |
22674 | fail: | |
22675 | { | |
22676 | if (temp2) | |
22677 | delete arg2; | |
22678 | } | |
22679 | return NULL; | |
22680 | } | |
22681 | ||
22682 | ||
c370783e | 22683 | static PyObject *_wrap_Window_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22684 | PyObject *resultobj; |
22685 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22686 | wxString result; | |
22687 | PyObject * obj0 = 0 ; | |
22688 | char *kwnames[] = { | |
22689 | (char *) "self", NULL | |
22690 | }; | |
22691 | ||
22692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail; | |
22693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22695 | { | |
22696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22697 | result = ((wxWindow const *)arg1)->GetTitle(); | |
22698 | ||
22699 | wxPyEndAllowThreads(__tstate); | |
22700 | if (PyErr_Occurred()) SWIG_fail; | |
22701 | } | |
22702 | { | |
22703 | #if wxUSE_UNICODE | |
22704 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22705 | #else | |
22706 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22707 | #endif | |
22708 | } | |
22709 | return resultobj; | |
22710 | fail: | |
22711 | return NULL; | |
22712 | } | |
22713 | ||
22714 | ||
c370783e | 22715 | static PyObject *_wrap_Window_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22716 | PyObject *resultobj; |
22717 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22718 | wxString *arg2 = 0 ; | |
b411df4a | 22719 | bool temp2 = false ; |
d55e5bfc RD |
22720 | PyObject * obj0 = 0 ; |
22721 | PyObject * obj1 = 0 ; | |
22722 | char *kwnames[] = { | |
22723 | (char *) "self",(char *) "label", NULL | |
22724 | }; | |
22725 | ||
22726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
22727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22729 | { | |
22730 | arg2 = wxString_in_helper(obj1); | |
22731 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 22732 | temp2 = true; |
d55e5bfc RD |
22733 | } |
22734 | { | |
22735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22736 | (arg1)->SetLabel((wxString const &)*arg2); | |
22737 | ||
22738 | wxPyEndAllowThreads(__tstate); | |
22739 | if (PyErr_Occurred()) SWIG_fail; | |
22740 | } | |
22741 | Py_INCREF(Py_None); resultobj = Py_None; | |
22742 | { | |
22743 | if (temp2) | |
22744 | delete arg2; | |
22745 | } | |
22746 | return resultobj; | |
22747 | fail: | |
22748 | { | |
22749 | if (temp2) | |
22750 | delete arg2; | |
22751 | } | |
22752 | return NULL; | |
22753 | } | |
22754 | ||
22755 | ||
c370783e | 22756 | static PyObject *_wrap_Window_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22757 | PyObject *resultobj; |
22758 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22759 | wxString result; | |
22760 | PyObject * obj0 = 0 ; | |
22761 | char *kwnames[] = { | |
22762 | (char *) "self", NULL | |
22763 | }; | |
22764 | ||
22765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail; | |
22766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22768 | { | |
22769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22770 | result = ((wxWindow const *)arg1)->GetLabel(); | |
22771 | ||
22772 | wxPyEndAllowThreads(__tstate); | |
22773 | if (PyErr_Occurred()) SWIG_fail; | |
22774 | } | |
22775 | { | |
22776 | #if wxUSE_UNICODE | |
22777 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22778 | #else | |
22779 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22780 | #endif | |
22781 | } | |
22782 | return resultobj; | |
22783 | fail: | |
22784 | return NULL; | |
22785 | } | |
22786 | ||
22787 | ||
c370783e | 22788 | static PyObject *_wrap_Window_SetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22789 | PyObject *resultobj; |
22790 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22791 | wxString *arg2 = 0 ; | |
b411df4a | 22792 | bool temp2 = false ; |
d55e5bfc RD |
22793 | PyObject * obj0 = 0 ; |
22794 | PyObject * obj1 = 0 ; | |
22795 | char *kwnames[] = { | |
22796 | (char *) "self",(char *) "name", NULL | |
22797 | }; | |
22798 | ||
22799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail; | |
22800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22802 | { | |
22803 | arg2 = wxString_in_helper(obj1); | |
22804 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 22805 | temp2 = true; |
d55e5bfc RD |
22806 | } |
22807 | { | |
22808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22809 | (arg1)->SetName((wxString const &)*arg2); | |
22810 | ||
22811 | wxPyEndAllowThreads(__tstate); | |
22812 | if (PyErr_Occurred()) SWIG_fail; | |
22813 | } | |
22814 | Py_INCREF(Py_None); resultobj = Py_None; | |
22815 | { | |
22816 | if (temp2) | |
22817 | delete arg2; | |
22818 | } | |
22819 | return resultobj; | |
22820 | fail: | |
22821 | { | |
22822 | if (temp2) | |
22823 | delete arg2; | |
22824 | } | |
22825 | return NULL; | |
22826 | } | |
22827 | ||
22828 | ||
c370783e | 22829 | static PyObject *_wrap_Window_GetName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22830 | PyObject *resultobj; |
22831 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22832 | wxString result; | |
22833 | PyObject * obj0 = 0 ; | |
22834 | char *kwnames[] = { | |
22835 | (char *) "self", NULL | |
22836 | }; | |
22837 | ||
22838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail; | |
22839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22841 | { | |
22842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22843 | result = ((wxWindow const *)arg1)->GetName(); | |
22844 | ||
22845 | wxPyEndAllowThreads(__tstate); | |
22846 | if (PyErr_Occurred()) SWIG_fail; | |
22847 | } | |
22848 | { | |
22849 | #if wxUSE_UNICODE | |
22850 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
22851 | #else | |
22852 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
22853 | #endif | |
22854 | } | |
22855 | return resultobj; | |
22856 | fail: | |
22857 | return NULL; | |
22858 | } | |
22859 | ||
22860 | ||
c370783e | 22861 | static PyObject *_wrap_Window_SetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22862 | PyObject *resultobj; |
22863 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22864 | int arg2 ; | |
22865 | PyObject * obj0 = 0 ; | |
22866 | PyObject * obj1 = 0 ; | |
22867 | char *kwnames[] = { | |
22868 | (char *) "self",(char *) "variant", NULL | |
22869 | }; | |
22870 | ||
22871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail; | |
22872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22874 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22875 | if (PyErr_Occurred()) SWIG_fail; |
22876 | { | |
22877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22878 | (arg1)->SetWindowVariant((wxWindowVariant )arg2); | |
22879 | ||
22880 | wxPyEndAllowThreads(__tstate); | |
22881 | if (PyErr_Occurred()) SWIG_fail; | |
22882 | } | |
22883 | Py_INCREF(Py_None); resultobj = Py_None; | |
22884 | return resultobj; | |
22885 | fail: | |
22886 | return NULL; | |
22887 | } | |
22888 | ||
22889 | ||
c370783e | 22890 | static PyObject *_wrap_Window_GetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22891 | PyObject *resultobj; |
22892 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22893 | int result; | |
22894 | PyObject * obj0 = 0 ; | |
22895 | char *kwnames[] = { | |
22896 | (char *) "self", NULL | |
22897 | }; | |
22898 | ||
22899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail; | |
22900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22902 | { | |
22903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22904 | result = (int)((wxWindow const *)arg1)->GetWindowVariant(); | |
22905 | ||
22906 | wxPyEndAllowThreads(__tstate); | |
22907 | if (PyErr_Occurred()) SWIG_fail; | |
22908 | } | |
c370783e | 22909 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22910 | return resultobj; |
22911 | fail: | |
22912 | return NULL; | |
22913 | } | |
22914 | ||
22915 | ||
c370783e | 22916 | static PyObject *_wrap_Window_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22917 | PyObject *resultobj; |
22918 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22919 | int arg2 ; | |
22920 | PyObject * obj0 = 0 ; | |
22921 | PyObject * obj1 = 0 ; | |
22922 | char *kwnames[] = { | |
22923 | (char *) "self",(char *) "winid", NULL | |
22924 | }; | |
22925 | ||
22926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail; | |
22927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 22929 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
22930 | if (PyErr_Occurred()) SWIG_fail; |
22931 | { | |
22932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22933 | (arg1)->SetId(arg2); | |
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_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22946 | PyObject *resultobj; |
22947 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22948 | int result; | |
22949 | PyObject * obj0 = 0 ; | |
22950 | char *kwnames[] = { | |
22951 | (char *) "self", NULL | |
22952 | }; | |
22953 | ||
22954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail; | |
22955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22957 | { | |
22958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22959 | result = (int)((wxWindow const *)arg1)->GetId(); | |
22960 | ||
22961 | wxPyEndAllowThreads(__tstate); | |
22962 | if (PyErr_Occurred()) SWIG_fail; | |
22963 | } | |
c370783e | 22964 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22965 | return resultobj; |
22966 | fail: | |
22967 | return NULL; | |
22968 | } | |
22969 | ||
22970 | ||
c370783e | 22971 | static PyObject *_wrap_Window_NewControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22972 | PyObject *resultobj; |
22973 | int result; | |
22974 | char *kwnames[] = { | |
22975 | NULL | |
22976 | }; | |
22977 | ||
22978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail; | |
22979 | { | |
22980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22981 | result = (int)wxWindow::NewControlId(); | |
22982 | ||
22983 | wxPyEndAllowThreads(__tstate); | |
22984 | if (PyErr_Occurred()) SWIG_fail; | |
22985 | } | |
c370783e | 22986 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
22987 | return resultobj; |
22988 | fail: | |
22989 | return NULL; | |
22990 | } | |
22991 | ||
22992 | ||
c370783e | 22993 | static PyObject *_wrap_Window_NextControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
22994 | PyObject *resultobj; |
22995 | int arg1 ; | |
22996 | int result; | |
22997 | PyObject * obj0 = 0 ; | |
22998 | char *kwnames[] = { | |
22999 | (char *) "winid", NULL | |
23000 | }; | |
23001 | ||
23002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail; | |
c370783e | 23003 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23004 | if (PyErr_Occurred()) SWIG_fail; |
23005 | { | |
23006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23007 | result = (int)wxWindow::NextControlId(arg1); | |
23008 | ||
23009 | wxPyEndAllowThreads(__tstate); | |
23010 | if (PyErr_Occurred()) SWIG_fail; | |
23011 | } | |
c370783e | 23012 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23013 | return resultobj; |
23014 | fail: | |
23015 | return NULL; | |
23016 | } | |
23017 | ||
23018 | ||
c370783e | 23019 | static PyObject *_wrap_Window_PrevControlId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23020 | PyObject *resultobj; |
23021 | int arg1 ; | |
23022 | int result; | |
23023 | PyObject * obj0 = 0 ; | |
23024 | char *kwnames[] = { | |
23025 | (char *) "winid", NULL | |
23026 | }; | |
23027 | ||
23028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail; | |
c370783e | 23029 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
23030 | if (PyErr_Occurred()) SWIG_fail; |
23031 | { | |
23032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23033 | result = (int)wxWindow::PrevControlId(arg1); | |
23034 | ||
23035 | wxPyEndAllowThreads(__tstate); | |
23036 | if (PyErr_Occurred()) SWIG_fail; | |
23037 | } | |
c370783e | 23038 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
23039 | return resultobj; |
23040 | fail: | |
23041 | return NULL; | |
23042 | } | |
23043 | ||
23044 | ||
c370783e | 23045 | static PyObject *_wrap_Window_SetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23046 | PyObject *resultobj; |
23047 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23048 | wxSize *arg2 = 0 ; | |
23049 | wxSize temp2 ; | |
23050 | PyObject * obj0 = 0 ; | |
23051 | PyObject * obj1 = 0 ; | |
23052 | char *kwnames[] = { | |
23053 | (char *) "self",(char *) "size", NULL | |
23054 | }; | |
23055 | ||
23056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail; | |
23057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23059 | { | |
23060 | arg2 = &temp2; | |
23061 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23062 | } | |
23063 | { | |
23064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23065 | (arg1)->SetSize((wxSize const &)*arg2); | |
23066 | ||
23067 | wxPyEndAllowThreads(__tstate); | |
23068 | if (PyErr_Occurred()) SWIG_fail; | |
23069 | } | |
23070 | Py_INCREF(Py_None); resultobj = Py_None; | |
23071 | return resultobj; | |
23072 | fail: | |
23073 | return NULL; | |
23074 | } | |
23075 | ||
23076 | ||
c370783e | 23077 | static PyObject *_wrap_Window_SetDimensions(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23078 | PyObject *resultobj; |
23079 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23080 | int arg2 ; | |
23081 | int arg3 ; | |
23082 | int arg4 ; | |
23083 | int arg5 ; | |
23084 | int arg6 = (int) wxSIZE_AUTO ; | |
23085 | PyObject * obj0 = 0 ; | |
23086 | PyObject * obj1 = 0 ; | |
23087 | PyObject * obj2 = 0 ; | |
23088 | PyObject * obj3 = 0 ; | |
23089 | PyObject * obj4 = 0 ; | |
23090 | PyObject * obj5 = 0 ; | |
23091 | char *kwnames[] = { | |
23092 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
23093 | }; | |
23094 | ||
23095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
23096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23098 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 23099 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23100 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 23101 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23102 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 23103 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23104 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
23105 | if (PyErr_Occurred()) SWIG_fail; |
23106 | if (obj5) { | |
c370783e | 23107 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
23108 | if (PyErr_Occurred()) SWIG_fail; |
23109 | } | |
23110 | { | |
23111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23112 | (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6); | |
23113 | ||
23114 | wxPyEndAllowThreads(__tstate); | |
23115 | if (PyErr_Occurred()) SWIG_fail; | |
23116 | } | |
23117 | Py_INCREF(Py_None); resultobj = Py_None; | |
23118 | return resultobj; | |
23119 | fail: | |
23120 | return NULL; | |
23121 | } | |
23122 | ||
23123 | ||
c370783e | 23124 | static PyObject *_wrap_Window_SetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23125 | PyObject *resultobj; |
23126 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23127 | wxRect *arg2 = 0 ; | |
23128 | int arg3 = (int) wxSIZE_AUTO ; | |
23129 | wxRect temp2 ; | |
23130 | PyObject * obj0 = 0 ; | |
23131 | PyObject * obj1 = 0 ; | |
23132 | PyObject * obj2 = 0 ; | |
23133 | char *kwnames[] = { | |
23134 | (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL | |
23135 | }; | |
23136 | ||
23137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23140 | { | |
23141 | arg2 = &temp2; | |
23142 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
23143 | } | |
23144 | if (obj2) { | |
c370783e | 23145 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23146 | if (PyErr_Occurred()) SWIG_fail; |
23147 | } | |
23148 | { | |
23149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23150 | (arg1)->SetSize((wxRect const &)*arg2,arg3); | |
23151 | ||
23152 | wxPyEndAllowThreads(__tstate); | |
23153 | if (PyErr_Occurred()) SWIG_fail; | |
23154 | } | |
23155 | Py_INCREF(Py_None); resultobj = Py_None; | |
23156 | return resultobj; | |
23157 | fail: | |
23158 | return NULL; | |
23159 | } | |
23160 | ||
23161 | ||
c370783e | 23162 | static PyObject *_wrap_Window_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23163 | PyObject *resultobj; |
23164 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23165 | int arg2 ; | |
23166 | int arg3 ; | |
23167 | PyObject * obj0 = 0 ; | |
23168 | PyObject * obj1 = 0 ; | |
23169 | PyObject * obj2 = 0 ; | |
23170 | char *kwnames[] = { | |
23171 | (char *) "self",(char *) "width",(char *) "height", NULL | |
23172 | }; | |
23173 | ||
23174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23177 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 23178 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23179 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23180 | if (PyErr_Occurred()) SWIG_fail; |
23181 | { | |
23182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23183 | (arg1)->SetSize(arg2,arg3); | |
23184 | ||
23185 | wxPyEndAllowThreads(__tstate); | |
23186 | if (PyErr_Occurred()) SWIG_fail; | |
23187 | } | |
23188 | Py_INCREF(Py_None); resultobj = Py_None; | |
23189 | return resultobj; | |
23190 | fail: | |
23191 | return NULL; | |
23192 | } | |
23193 | ||
23194 | ||
c370783e | 23195 | static PyObject *_wrap_Window_Move(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23196 | PyObject *resultobj; |
23197 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23198 | wxPoint *arg2 = 0 ; | |
23199 | int arg3 = (int) wxSIZE_USE_EXISTING ; | |
23200 | wxPoint temp2 ; | |
23201 | PyObject * obj0 = 0 ; | |
23202 | PyObject * obj1 = 0 ; | |
23203 | PyObject * obj2 = 0 ; | |
23204 | char *kwnames[] = { | |
23205 | (char *) "self",(char *) "pt",(char *) "flags", NULL | |
23206 | }; | |
23207 | ||
23208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23211 | { | |
23212 | arg2 = &temp2; | |
23213 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23214 | } | |
23215 | if (obj2) { | |
c370783e | 23216 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23217 | if (PyErr_Occurred()) SWIG_fail; |
23218 | } | |
23219 | { | |
23220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23221 | (arg1)->Move((wxPoint const &)*arg2,arg3); | |
23222 | ||
23223 | wxPyEndAllowThreads(__tstate); | |
23224 | if (PyErr_Occurred()) SWIG_fail; | |
23225 | } | |
23226 | Py_INCREF(Py_None); resultobj = Py_None; | |
23227 | return resultobj; | |
23228 | fail: | |
23229 | return NULL; | |
23230 | } | |
23231 | ||
23232 | ||
c370783e | 23233 | static PyObject *_wrap_Window_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23234 | PyObject *resultobj; |
23235 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23236 | int arg2 ; | |
23237 | int arg3 ; | |
23238 | int arg4 = (int) wxSIZE_USE_EXISTING ; | |
23239 | PyObject * obj0 = 0 ; | |
23240 | PyObject * obj1 = 0 ; | |
23241 | PyObject * obj2 = 0 ; | |
23242 | PyObject * obj3 = 0 ; | |
23243 | char *kwnames[] = { | |
23244 | (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL | |
23245 | }; | |
23246 | ||
23247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23250 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 23251 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23252 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23253 | if (PyErr_Occurred()) SWIG_fail; |
23254 | if (obj3) { | |
c370783e | 23255 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
23256 | if (PyErr_Occurred()) SWIG_fail; |
23257 | } | |
23258 | { | |
23259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23260 | (arg1)->Move(arg2,arg3,arg4); | |
23261 | ||
23262 | wxPyEndAllowThreads(__tstate); | |
23263 | if (PyErr_Occurred()) SWIG_fail; | |
23264 | } | |
23265 | Py_INCREF(Py_None); resultobj = Py_None; | |
23266 | return resultobj; | |
23267 | fail: | |
23268 | return NULL; | |
23269 | } | |
23270 | ||
23271 | ||
c370783e | 23272 | static PyObject *_wrap_Window_SetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) { |
f8167d6e RD |
23273 | PyObject *resultobj; |
23274 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23275 | wxSize const &arg2_defvalue = wxDefaultSize ; | |
23276 | wxSize *arg2 = (wxSize *) &arg2_defvalue ; | |
23277 | wxSize temp2 ; | |
23278 | PyObject * obj0 = 0 ; | |
23279 | PyObject * obj1 = 0 ; | |
23280 | char *kwnames[] = { | |
23281 | (char *) "self",(char *) "size", NULL | |
23282 | }; | |
23283 | ||
23284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_SetBestFittingSize",kwnames,&obj0,&obj1)) goto fail; | |
23285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23287 | if (obj1) { | |
23288 | { | |
23289 | arg2 = &temp2; | |
23290 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23291 | } | |
23292 | } | |
23293 | { | |
23294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23295 | (arg1)->SetBestFittingSize((wxSize const &)*arg2); | |
23296 | ||
23297 | wxPyEndAllowThreads(__tstate); | |
23298 | if (PyErr_Occurred()) SWIG_fail; | |
23299 | } | |
23300 | Py_INCREF(Py_None); resultobj = Py_None; | |
23301 | return resultobj; | |
23302 | fail: | |
23303 | return NULL; | |
23304 | } | |
23305 | ||
23306 | ||
c370783e | 23307 | static PyObject *_wrap_Window_Raise(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23308 | PyObject *resultobj; |
23309 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23310 | PyObject * obj0 = 0 ; | |
23311 | char *kwnames[] = { | |
23312 | (char *) "self", NULL | |
23313 | }; | |
23314 | ||
23315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail; | |
23316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23318 | { | |
23319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23320 | (arg1)->Raise(); | |
23321 | ||
23322 | wxPyEndAllowThreads(__tstate); | |
23323 | if (PyErr_Occurred()) SWIG_fail; | |
23324 | } | |
23325 | Py_INCREF(Py_None); resultobj = Py_None; | |
23326 | return resultobj; | |
23327 | fail: | |
23328 | return NULL; | |
23329 | } | |
23330 | ||
23331 | ||
c370783e | 23332 | static PyObject *_wrap_Window_Lower(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23333 | PyObject *resultobj; |
23334 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23335 | PyObject * obj0 = 0 ; | |
23336 | char *kwnames[] = { | |
23337 | (char *) "self", NULL | |
23338 | }; | |
23339 | ||
23340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail; | |
23341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23343 | { | |
23344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23345 | (arg1)->Lower(); | |
23346 | ||
23347 | wxPyEndAllowThreads(__tstate); | |
23348 | if (PyErr_Occurred()) SWIG_fail; | |
23349 | } | |
23350 | Py_INCREF(Py_None); resultobj = Py_None; | |
23351 | return resultobj; | |
23352 | fail: | |
23353 | return NULL; | |
23354 | } | |
23355 | ||
23356 | ||
c370783e | 23357 | static PyObject *_wrap_Window_SetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23358 | PyObject *resultobj; |
23359 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23360 | wxSize *arg2 = 0 ; | |
23361 | wxSize temp2 ; | |
23362 | PyObject * obj0 = 0 ; | |
23363 | PyObject * obj1 = 0 ; | |
23364 | char *kwnames[] = { | |
23365 | (char *) "self",(char *) "size", NULL | |
23366 | }; | |
23367 | ||
23368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail; | |
23369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23371 | { | |
23372 | arg2 = &temp2; | |
23373 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
23374 | } | |
23375 | { | |
23376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23377 | (arg1)->SetClientSize((wxSize const &)*arg2); | |
23378 | ||
23379 | wxPyEndAllowThreads(__tstate); | |
23380 | if (PyErr_Occurred()) SWIG_fail; | |
23381 | } | |
23382 | Py_INCREF(Py_None); resultobj = Py_None; | |
23383 | return resultobj; | |
23384 | fail: | |
23385 | return NULL; | |
23386 | } | |
23387 | ||
23388 | ||
c370783e | 23389 | static PyObject *_wrap_Window_SetClientSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23390 | PyObject *resultobj; |
23391 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23392 | int arg2 ; | |
23393 | int arg3 ; | |
23394 | PyObject * obj0 = 0 ; | |
23395 | PyObject * obj1 = 0 ; | |
23396 | PyObject * obj2 = 0 ; | |
23397 | char *kwnames[] = { | |
23398 | (char *) "self",(char *) "width",(char *) "height", NULL | |
23399 | }; | |
23400 | ||
23401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 23404 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 23405 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 23406 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
23407 | if (PyErr_Occurred()) SWIG_fail; |
23408 | { | |
23409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23410 | (arg1)->SetClientSize(arg2,arg3); | |
23411 | ||
23412 | wxPyEndAllowThreads(__tstate); | |
23413 | if (PyErr_Occurred()) SWIG_fail; | |
23414 | } | |
23415 | Py_INCREF(Py_None); resultobj = Py_None; | |
23416 | return resultobj; | |
23417 | fail: | |
23418 | return NULL; | |
23419 | } | |
23420 | ||
23421 | ||
c370783e | 23422 | static PyObject *_wrap_Window_SetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23423 | PyObject *resultobj; |
23424 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23425 | wxRect *arg2 = 0 ; | |
23426 | wxRect temp2 ; | |
23427 | PyObject * obj0 = 0 ; | |
23428 | PyObject * obj1 = 0 ; | |
23429 | char *kwnames[] = { | |
23430 | (char *) "self",(char *) "rect", NULL | |
23431 | }; | |
23432 | ||
23433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail; | |
23434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23436 | { | |
23437 | arg2 = &temp2; | |
23438 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
23439 | } | |
23440 | { | |
23441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23442 | (arg1)->SetClientSize((wxRect const &)*arg2); | |
23443 | ||
23444 | wxPyEndAllowThreads(__tstate); | |
23445 | if (PyErr_Occurred()) SWIG_fail; | |
23446 | } | |
23447 | Py_INCREF(Py_None); resultobj = Py_None; | |
23448 | return resultobj; | |
23449 | fail: | |
23450 | return NULL; | |
23451 | } | |
23452 | ||
23453 | ||
c370783e | 23454 | static PyObject *_wrap_Window_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23455 | PyObject *resultobj; |
23456 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23457 | wxPoint result; | |
23458 | PyObject * obj0 = 0 ; | |
23459 | char *kwnames[] = { | |
23460 | (char *) "self", NULL | |
23461 | }; | |
23462 | ||
23463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail; | |
23464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23466 | { | |
23467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23468 | result = (arg1)->GetPosition(); | |
23469 | ||
23470 | wxPyEndAllowThreads(__tstate); | |
23471 | if (PyErr_Occurred()) SWIG_fail; | |
23472 | } | |
23473 | { | |
23474 | wxPoint * resultptr; | |
23475 | resultptr = new wxPoint((wxPoint &) result); | |
23476 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
23477 | } | |
23478 | return resultobj; | |
23479 | fail: | |
23480 | return NULL; | |
23481 | } | |
23482 | ||
23483 | ||
c370783e | 23484 | static PyObject *_wrap_Window_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23485 | PyObject *resultobj; |
23486 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23487 | int *arg2 = (int *) 0 ; | |
23488 | int *arg3 = (int *) 0 ; | |
23489 | int temp2 ; | |
c370783e | 23490 | int res2 = 0 ; |
d55e5bfc | 23491 | int temp3 ; |
c370783e | 23492 | int res3 = 0 ; |
d55e5bfc RD |
23493 | PyObject * obj0 = 0 ; |
23494 | char *kwnames[] = { | |
23495 | (char *) "self", NULL | |
23496 | }; | |
23497 | ||
c370783e RD |
23498 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23499 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail; |
23501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23503 | { | |
23504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23505 | (arg1)->GetPosition(arg2,arg3); | |
23506 | ||
23507 | wxPyEndAllowThreads(__tstate); | |
23508 | if (PyErr_Occurred()) SWIG_fail; | |
23509 | } | |
23510 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
23511 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23512 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23513 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23514 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23515 | return resultobj; |
23516 | fail: | |
23517 | return NULL; | |
23518 | } | |
23519 | ||
23520 | ||
c370783e | 23521 | static PyObject *_wrap_Window_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23522 | PyObject *resultobj; |
23523 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23524 | wxSize result; | |
23525 | PyObject * obj0 = 0 ; | |
23526 | char *kwnames[] = { | |
23527 | (char *) "self", NULL | |
23528 | }; | |
23529 | ||
23530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail; | |
23531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23533 | { | |
23534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23535 | result = ((wxWindow const *)arg1)->GetSize(); | |
23536 | ||
23537 | wxPyEndAllowThreads(__tstate); | |
23538 | if (PyErr_Occurred()) SWIG_fail; | |
23539 | } | |
23540 | { | |
23541 | wxSize * resultptr; | |
23542 | resultptr = new wxSize((wxSize &) result); | |
23543 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23544 | } | |
23545 | return resultobj; | |
23546 | fail: | |
23547 | return NULL; | |
23548 | } | |
23549 | ||
23550 | ||
c370783e | 23551 | static PyObject *_wrap_Window_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23552 | PyObject *resultobj; |
23553 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23554 | int *arg2 = (int *) 0 ; | |
23555 | int *arg3 = (int *) 0 ; | |
23556 | int temp2 ; | |
c370783e | 23557 | int res2 = 0 ; |
d55e5bfc | 23558 | int temp3 ; |
c370783e | 23559 | int res3 = 0 ; |
d55e5bfc RD |
23560 | PyObject * obj0 = 0 ; |
23561 | char *kwnames[] = { | |
23562 | (char *) "self", NULL | |
23563 | }; | |
23564 | ||
c370783e RD |
23565 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23566 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail; |
23568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23570 | { | |
23571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23572 | ((wxWindow const *)arg1)->GetSize(arg2,arg3); | |
23573 | ||
23574 | wxPyEndAllowThreads(__tstate); | |
23575 | if (PyErr_Occurred()) SWIG_fail; | |
23576 | } | |
23577 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
23578 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23579 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23580 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23581 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23582 | return resultobj; |
23583 | fail: | |
23584 | return NULL; | |
23585 | } | |
23586 | ||
23587 | ||
c370783e | 23588 | static PyObject *_wrap_Window_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23589 | PyObject *resultobj; |
23590 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23591 | wxRect result; | |
23592 | PyObject * obj0 = 0 ; | |
23593 | char *kwnames[] = { | |
23594 | (char *) "self", NULL | |
23595 | }; | |
23596 | ||
23597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail; | |
23598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23600 | { | |
23601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23602 | result = ((wxWindow const *)arg1)->GetRect(); | |
23603 | ||
23604 | wxPyEndAllowThreads(__tstate); | |
23605 | if (PyErr_Occurred()) SWIG_fail; | |
23606 | } | |
23607 | { | |
23608 | wxRect * resultptr; | |
23609 | resultptr = new wxRect((wxRect &) result); | |
23610 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
23611 | } | |
23612 | return resultobj; | |
23613 | fail: | |
23614 | return NULL; | |
23615 | } | |
23616 | ||
23617 | ||
c370783e | 23618 | static PyObject *_wrap_Window_GetClientSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23619 | PyObject *resultobj; |
23620 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23621 | wxSize result; | |
23622 | PyObject * obj0 = 0 ; | |
23623 | char *kwnames[] = { | |
23624 | (char *) "self", NULL | |
23625 | }; | |
23626 | ||
23627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail; | |
23628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23630 | { | |
23631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23632 | result = ((wxWindow const *)arg1)->GetClientSize(); | |
23633 | ||
23634 | wxPyEndAllowThreads(__tstate); | |
23635 | if (PyErr_Occurred()) SWIG_fail; | |
23636 | } | |
23637 | { | |
23638 | wxSize * resultptr; | |
23639 | resultptr = new wxSize((wxSize &) result); | |
23640 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23641 | } | |
23642 | return resultobj; | |
23643 | fail: | |
23644 | return NULL; | |
23645 | } | |
23646 | ||
23647 | ||
c370783e | 23648 | static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23649 | PyObject *resultobj; |
23650 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23651 | int *arg2 = (int *) 0 ; | |
23652 | int *arg3 = (int *) 0 ; | |
23653 | int temp2 ; | |
c370783e | 23654 | int res2 = 0 ; |
d55e5bfc | 23655 | int temp3 ; |
c370783e | 23656 | int res3 = 0 ; |
d55e5bfc RD |
23657 | PyObject * obj0 = 0 ; |
23658 | char *kwnames[] = { | |
23659 | (char *) "self", NULL | |
23660 | }; | |
23661 | ||
c370783e RD |
23662 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23663 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail; |
23665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23667 | { | |
23668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23669 | ((wxWindow const *)arg1)->GetClientSize(arg2,arg3); | |
23670 | ||
23671 | wxPyEndAllowThreads(__tstate); | |
23672 | if (PyErr_Occurred()) SWIG_fail; | |
23673 | } | |
23674 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
23675 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23676 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23677 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23678 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23679 | return resultobj; |
23680 | fail: | |
23681 | return NULL; | |
23682 | } | |
23683 | ||
23684 | ||
c370783e | 23685 | static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23686 | PyObject *resultobj; |
23687 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23688 | wxPoint result; | |
23689 | PyObject * obj0 = 0 ; | |
23690 | char *kwnames[] = { | |
23691 | (char *) "self", NULL | |
23692 | }; | |
23693 | ||
23694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail; | |
23695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23697 | { | |
23698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23699 | result = ((wxWindow const *)arg1)->GetClientAreaOrigin(); | |
23700 | ||
23701 | wxPyEndAllowThreads(__tstate); | |
23702 | if (PyErr_Occurred()) SWIG_fail; | |
23703 | } | |
23704 | { | |
23705 | wxPoint * resultptr; | |
23706 | resultptr = new wxPoint((wxPoint &) result); | |
23707 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
23708 | } | |
23709 | return resultobj; | |
23710 | fail: | |
23711 | return NULL; | |
23712 | } | |
23713 | ||
23714 | ||
c370783e | 23715 | static PyObject *_wrap_Window_GetClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23716 | PyObject *resultobj; |
23717 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23718 | wxRect result; | |
23719 | PyObject * obj0 = 0 ; | |
23720 | char *kwnames[] = { | |
23721 | (char *) "self", NULL | |
23722 | }; | |
23723 | ||
23724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail; | |
23725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23727 | { | |
23728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23729 | result = ((wxWindow const *)arg1)->GetClientRect(); | |
23730 | ||
23731 | wxPyEndAllowThreads(__tstate); | |
23732 | if (PyErr_Occurred()) SWIG_fail; | |
23733 | } | |
23734 | { | |
23735 | wxRect * resultptr; | |
23736 | resultptr = new wxRect((wxRect &) result); | |
23737 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
23738 | } | |
23739 | return resultobj; | |
23740 | fail: | |
23741 | return NULL; | |
23742 | } | |
23743 | ||
23744 | ||
c370783e | 23745 | static PyObject *_wrap_Window_GetBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23746 | PyObject *resultobj; |
23747 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23748 | wxSize result; | |
23749 | PyObject * obj0 = 0 ; | |
23750 | char *kwnames[] = { | |
23751 | (char *) "self", NULL | |
23752 | }; | |
23753 | ||
23754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail; | |
23755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23757 | { | |
23758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23759 | result = ((wxWindow const *)arg1)->GetBestSize(); | |
23760 | ||
23761 | wxPyEndAllowThreads(__tstate); | |
23762 | if (PyErr_Occurred()) SWIG_fail; | |
23763 | } | |
23764 | { | |
23765 | wxSize * resultptr; | |
23766 | resultptr = new wxSize((wxSize &) result); | |
23767 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23768 | } | |
23769 | return resultobj; | |
23770 | fail: | |
23771 | return NULL; | |
23772 | } | |
23773 | ||
23774 | ||
c370783e | 23775 | static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23776 | PyObject *resultobj; |
23777 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23778 | int *arg2 = (int *) 0 ; | |
23779 | int *arg3 = (int *) 0 ; | |
23780 | int temp2 ; | |
c370783e | 23781 | int res2 = 0 ; |
d55e5bfc | 23782 | int temp3 ; |
c370783e | 23783 | int res3 = 0 ; |
d55e5bfc RD |
23784 | PyObject * obj0 = 0 ; |
23785 | char *kwnames[] = { | |
23786 | (char *) "self", NULL | |
23787 | }; | |
23788 | ||
c370783e RD |
23789 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
23790 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
23791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail; |
23792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23794 | { | |
23795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23796 | ((wxWindow const *)arg1)->GetBestSize(arg2,arg3); | |
23797 | ||
23798 | wxPyEndAllowThreads(__tstate); | |
23799 | if (PyErr_Occurred()) SWIG_fail; | |
23800 | } | |
23801 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
23802 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
23803 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
23804 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
23805 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
23806 | return resultobj; |
23807 | fail: | |
23808 | return NULL; | |
23809 | } | |
23810 | ||
23811 | ||
c370783e | 23812 | static PyObject *_wrap_Window_InvalidateBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
23813 | PyObject *resultobj; |
23814 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23815 | PyObject * obj0 = 0 ; | |
23816 | char *kwnames[] = { | |
23817 | (char *) "self", NULL | |
23818 | }; | |
23819 | ||
23820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InvalidateBestSize",kwnames,&obj0)) goto fail; | |
23821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23823 | { | |
23824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23825 | (arg1)->InvalidateBestSize(); | |
23826 | ||
23827 | wxPyEndAllowThreads(__tstate); | |
23828 | if (PyErr_Occurred()) SWIG_fail; | |
23829 | } | |
23830 | Py_INCREF(Py_None); resultobj = Py_None; | |
23831 | return resultobj; | |
23832 | fail: | |
23833 | return NULL; | |
23834 | } | |
23835 | ||
23836 | ||
c370783e | 23837 | static PyObject *_wrap_Window_GetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
23838 | PyObject *resultobj; |
23839 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23840 | wxSize result; | |
23841 | PyObject * obj0 = 0 ; | |
23842 | char *kwnames[] = { | |
23843 | (char *) "self", NULL | |
23844 | }; | |
23845 | ||
23846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestFittingSize",kwnames,&obj0)) goto fail; | |
23847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23849 | { | |
23850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23851 | result = ((wxWindow const *)arg1)->GetBestFittingSize(); | |
23852 | ||
23853 | wxPyEndAllowThreads(__tstate); | |
23854 | if (PyErr_Occurred()) SWIG_fail; | |
23855 | } | |
23856 | { | |
23857 | wxSize * resultptr; | |
23858 | resultptr = new wxSize((wxSize &) result); | |
23859 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23860 | } | |
23861 | return resultobj; | |
23862 | fail: | |
23863 | return NULL; | |
23864 | } | |
23865 | ||
23866 | ||
c370783e | 23867 | static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23868 | PyObject *resultobj; |
23869 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23870 | wxSize result; | |
23871 | PyObject * obj0 = 0 ; | |
23872 | char *kwnames[] = { | |
23873 | (char *) "self", NULL | |
23874 | }; | |
23875 | ||
23876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail; | |
23877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23879 | { | |
23880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23881 | result = ((wxWindow const *)arg1)->GetAdjustedBestSize(); | |
23882 | ||
23883 | wxPyEndAllowThreads(__tstate); | |
23884 | if (PyErr_Occurred()) SWIG_fail; | |
23885 | } | |
23886 | { | |
23887 | wxSize * resultptr; | |
23888 | resultptr = new wxSize((wxSize &) result); | |
23889 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
23890 | } | |
23891 | return resultobj; | |
23892 | fail: | |
23893 | return NULL; | |
23894 | } | |
23895 | ||
23896 | ||
c370783e | 23897 | static PyObject *_wrap_Window_Center(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23898 | PyObject *resultobj; |
23899 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23900 | int arg2 = (int) wxBOTH ; | |
23901 | PyObject * obj0 = 0 ; | |
23902 | PyObject * obj1 = 0 ; | |
23903 | char *kwnames[] = { | |
23904 | (char *) "self",(char *) "direction", NULL | |
23905 | }; | |
23906 | ||
23907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail; | |
23908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23910 | if (obj1) { | |
c370783e | 23911 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23912 | if (PyErr_Occurred()) SWIG_fail; |
23913 | } | |
23914 | { | |
23915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23916 | (arg1)->Center(arg2); | |
23917 | ||
23918 | wxPyEndAllowThreads(__tstate); | |
23919 | if (PyErr_Occurred()) SWIG_fail; | |
23920 | } | |
23921 | Py_INCREF(Py_None); resultobj = Py_None; | |
23922 | return resultobj; | |
23923 | fail: | |
23924 | return NULL; | |
23925 | } | |
23926 | ||
23927 | ||
c370783e | 23928 | static PyObject *_wrap_Window_CenterOnScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23929 | PyObject *resultobj; |
23930 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23931 | int arg2 = (int) wxBOTH ; | |
23932 | PyObject * obj0 = 0 ; | |
23933 | PyObject * obj1 = 0 ; | |
23934 | char *kwnames[] = { | |
23935 | (char *) "self",(char *) "dir", NULL | |
23936 | }; | |
23937 | ||
23938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail; | |
23939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23941 | if (obj1) { | |
c370783e | 23942 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23943 | if (PyErr_Occurred()) SWIG_fail; |
23944 | } | |
23945 | { | |
23946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23947 | (arg1)->CenterOnScreen(arg2); | |
23948 | ||
23949 | wxPyEndAllowThreads(__tstate); | |
23950 | if (PyErr_Occurred()) SWIG_fail; | |
23951 | } | |
23952 | Py_INCREF(Py_None); resultobj = Py_None; | |
23953 | return resultobj; | |
23954 | fail: | |
23955 | return NULL; | |
23956 | } | |
23957 | ||
23958 | ||
c370783e | 23959 | static PyObject *_wrap_Window_CenterOnParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23960 | PyObject *resultobj; |
23961 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23962 | int arg2 = (int) wxBOTH ; | |
23963 | PyObject * obj0 = 0 ; | |
23964 | PyObject * obj1 = 0 ; | |
23965 | char *kwnames[] = { | |
23966 | (char *) "self",(char *) "dir", NULL | |
23967 | }; | |
23968 | ||
23969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail; | |
23970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23972 | if (obj1) { | |
c370783e | 23973 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
23974 | if (PyErr_Occurred()) SWIG_fail; |
23975 | } | |
23976 | { | |
23977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23978 | (arg1)->CenterOnParent(arg2); | |
23979 | ||
23980 | wxPyEndAllowThreads(__tstate); | |
23981 | if (PyErr_Occurred()) SWIG_fail; | |
23982 | } | |
23983 | Py_INCREF(Py_None); resultobj = Py_None; | |
23984 | return resultobj; | |
23985 | fail: | |
23986 | return NULL; | |
23987 | } | |
23988 | ||
23989 | ||
c370783e | 23990 | static PyObject *_wrap_Window_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
23991 | PyObject *resultobj; |
23992 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23993 | PyObject * obj0 = 0 ; | |
23994 | char *kwnames[] = { | |
23995 | (char *) "self", NULL | |
23996 | }; | |
23997 | ||
23998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail; | |
23999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24001 | { | |
24002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24003 | (arg1)->Fit(); | |
24004 | ||
24005 | wxPyEndAllowThreads(__tstate); | |
24006 | if (PyErr_Occurred()) SWIG_fail; | |
24007 | } | |
24008 | Py_INCREF(Py_None); resultobj = Py_None; | |
24009 | return resultobj; | |
24010 | fail: | |
24011 | return NULL; | |
24012 | } | |
24013 | ||
24014 | ||
c370783e | 24015 | static PyObject *_wrap_Window_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24016 | PyObject *resultobj; |
24017 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24018 | PyObject * obj0 = 0 ; | |
24019 | char *kwnames[] = { | |
24020 | (char *) "self", NULL | |
24021 | }; | |
24022 | ||
24023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail; | |
24024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24026 | { | |
24027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24028 | (arg1)->FitInside(); | |
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_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24041 | PyObject *resultobj; |
24042 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24043 | int arg2 ; | |
24044 | int arg3 ; | |
24045 | int arg4 = (int) -1 ; | |
24046 | int arg5 = (int) -1 ; | |
24047 | int arg6 = (int) -1 ; | |
24048 | int arg7 = (int) -1 ; | |
24049 | PyObject * obj0 = 0 ; | |
24050 | PyObject * obj1 = 0 ; | |
24051 | PyObject * obj2 = 0 ; | |
24052 | PyObject * obj3 = 0 ; | |
24053 | PyObject * obj4 = 0 ; | |
24054 | PyObject * obj5 = 0 ; | |
24055 | PyObject * obj6 = 0 ; | |
03837c5c RD |
24056 | char *kwnames[] = { |
24057 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL | |
24058 | }; | |
d55e5bfc | 24059 | |
03837c5c | 24060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
24061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24063 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 24064 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24065 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
24066 | if (PyErr_Occurred()) SWIG_fail; |
24067 | if (obj3) { | |
c370783e | 24068 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
24069 | if (PyErr_Occurred()) SWIG_fail; |
24070 | } | |
24071 | if (obj4) { | |
c370783e | 24072 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
24073 | if (PyErr_Occurred()) SWIG_fail; |
24074 | } | |
24075 | if (obj5) { | |
c370783e | 24076 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
24077 | if (PyErr_Occurred()) SWIG_fail; |
24078 | } | |
24079 | if (obj6) { | |
c370783e | 24080 | arg7 = (int)SWIG_As_int(obj6); |
d55e5bfc RD |
24081 | if (PyErr_Occurred()) SWIG_fail; |
24082 | } | |
24083 | { | |
24084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24085 | (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7); | |
24086 | ||
24087 | wxPyEndAllowThreads(__tstate); | |
24088 | if (PyErr_Occurred()) SWIG_fail; | |
24089 | } | |
24090 | Py_INCREF(Py_None); resultobj = Py_None; | |
24091 | return resultobj; | |
24092 | fail: | |
24093 | return NULL; | |
24094 | } | |
24095 | ||
24096 | ||
c370783e | 24097 | static PyObject *_wrap_Window_SetSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24098 | PyObject *resultobj; |
24099 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
24100 | wxSize *arg2 = 0 ; |
24101 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
24102 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
03837c5c RD |
24103 | wxSize const &arg4_defvalue = wxDefaultSize ; |
24104 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
908b74cd RD |
24105 | wxSize temp2 ; |
24106 | wxSize temp3 ; | |
03837c5c | 24107 | wxSize temp4 ; |
d55e5bfc RD |
24108 | PyObject * obj0 = 0 ; |
24109 | PyObject * obj1 = 0 ; | |
24110 | PyObject * obj2 = 0 ; | |
03837c5c RD |
24111 | PyObject * obj3 = 0 ; |
24112 | char *kwnames[] = { | |
24113 | (char *) "self",(char *) "minSize",(char *) "maxSize",(char *) "incSize", NULL | |
24114 | }; | |
d55e5bfc | 24115 | |
03837c5c | 24116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_SetSizeHintsSz",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
24117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
908b74cd RD |
24119 | { |
24120 | arg2 = &temp2; | |
24121 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 24122 | } |
908b74cd RD |
24123 | if (obj2) { |
24124 | { | |
24125 | arg3 = &temp3; | |
24126 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
24127 | } | |
d55e5bfc | 24128 | } |
03837c5c RD |
24129 | if (obj3) { |
24130 | { | |
24131 | arg4 = &temp4; | |
24132 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24133 | } | |
24134 | } | |
d55e5bfc RD |
24135 | { |
24136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
03837c5c | 24137 | (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4); |
d55e5bfc RD |
24138 | |
24139 | wxPyEndAllowThreads(__tstate); | |
24140 | if (PyErr_Occurred()) SWIG_fail; | |
24141 | } | |
24142 | Py_INCREF(Py_None); resultobj = Py_None; | |
24143 | return resultobj; | |
24144 | fail: | |
24145 | return NULL; | |
24146 | } | |
24147 | ||
24148 | ||
c370783e | 24149 | static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24150 | PyObject *resultobj; |
24151 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd RD |
24152 | int arg2 ; |
24153 | int arg3 ; | |
24154 | int arg4 = (int) -1 ; | |
24155 | int arg5 = (int) -1 ; | |
d55e5bfc RD |
24156 | PyObject * obj0 = 0 ; |
24157 | PyObject * obj1 = 0 ; | |
24158 | PyObject * obj2 = 0 ; | |
908b74cd RD |
24159 | PyObject * obj3 = 0 ; |
24160 | PyObject * obj4 = 0 ; | |
03837c5c RD |
24161 | char *kwnames[] = { |
24162 | (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL | |
24163 | }; | |
d55e5bfc | 24164 | |
03837c5c | 24165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
24166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24168 | arg2 = (int)SWIG_As_int(obj1); |
908b74cd | 24169 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24170 | arg3 = (int)SWIG_As_int(obj2); |
908b74cd RD |
24171 | if (PyErr_Occurred()) SWIG_fail; |
24172 | if (obj3) { | |
c370783e | 24173 | arg4 = (int)SWIG_As_int(obj3); |
908b74cd | 24174 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 24175 | } |
908b74cd | 24176 | if (obj4) { |
c370783e | 24177 | arg5 = (int)SWIG_As_int(obj4); |
908b74cd | 24178 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
24179 | } |
24180 | { | |
24181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24182 | (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5); |
d55e5bfc RD |
24183 | |
24184 | wxPyEndAllowThreads(__tstate); | |
24185 | if (PyErr_Occurred()) SWIG_fail; | |
24186 | } | |
24187 | Py_INCREF(Py_None); resultobj = Py_None; | |
24188 | return resultobj; | |
24189 | fail: | |
24190 | return NULL; | |
24191 | } | |
24192 | ||
24193 | ||
c370783e | 24194 | static PyObject *_wrap_Window_SetVirtualSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) { |
03837c5c RD |
24195 | PyObject *resultobj; |
24196 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24197 | wxSize *arg2 = 0 ; | |
24198 | wxSize const &arg3_defvalue = wxDefaultSize ; | |
24199 | wxSize *arg3 = (wxSize *) &arg3_defvalue ; | |
24200 | wxSize temp2 ; | |
24201 | wxSize temp3 ; | |
24202 | PyObject * obj0 = 0 ; | |
24203 | PyObject * obj1 = 0 ; | |
24204 | PyObject * obj2 = 0 ; | |
24205 | char *kwnames[] = { | |
24206 | (char *) "self",(char *) "minSize",(char *) "maxSize", NULL | |
24207 | }; | |
d55e5bfc | 24208 | |
03837c5c RD |
24209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetVirtualSizeHintsSz",kwnames,&obj0,&obj1,&obj2)) goto fail; |
24210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24212 | { | |
24213 | arg2 = &temp2; | |
24214 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 24215 | } |
03837c5c | 24216 | if (obj2) { |
d55e5bfc | 24217 | { |
03837c5c RD |
24218 | arg3 = &temp3; |
24219 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
d55e5bfc RD |
24220 | } |
24221 | } | |
03837c5c RD |
24222 | { |
24223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24224 | (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3); | |
24225 | ||
24226 | wxPyEndAllowThreads(__tstate); | |
24227 | if (PyErr_Occurred()) SWIG_fail; | |
d55e5bfc | 24228 | } |
03837c5c RD |
24229 | Py_INCREF(Py_None); resultobj = Py_None; |
24230 | return resultobj; | |
24231 | fail: | |
d55e5bfc RD |
24232 | return NULL; |
24233 | } | |
24234 | ||
24235 | ||
c370783e | 24236 | static PyObject *_wrap_Window_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24237 | PyObject *resultobj; |
24238 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24239 | wxSize result; |
d55e5bfc RD |
24240 | PyObject * obj0 = 0 ; |
24241 | char *kwnames[] = { | |
24242 | (char *) "self", NULL | |
24243 | }; | |
24244 | ||
908b74cd | 24245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24248 | { | |
24249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24250 | result = ((wxWindow const *)arg1)->GetMaxSize(); |
d55e5bfc RD |
24251 | |
24252 | wxPyEndAllowThreads(__tstate); | |
24253 | if (PyErr_Occurred()) SWIG_fail; | |
24254 | } | |
908b74cd RD |
24255 | { |
24256 | wxSize * resultptr; | |
24257 | resultptr = new wxSize((wxSize &) result); | |
24258 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24259 | } | |
d55e5bfc RD |
24260 | return resultobj; |
24261 | fail: | |
24262 | return NULL; | |
24263 | } | |
24264 | ||
24265 | ||
c370783e | 24266 | static PyObject *_wrap_Window_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24267 | PyObject *resultobj; |
24268 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24269 | wxSize result; |
d55e5bfc RD |
24270 | PyObject * obj0 = 0 ; |
24271 | char *kwnames[] = { | |
24272 | (char *) "self", NULL | |
24273 | }; | |
24274 | ||
908b74cd | 24275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24278 | { | |
24279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24280 | result = ((wxWindow const *)arg1)->GetMinSize(); |
d55e5bfc RD |
24281 | |
24282 | wxPyEndAllowThreads(__tstate); | |
24283 | if (PyErr_Occurred()) SWIG_fail; | |
24284 | } | |
908b74cd RD |
24285 | { |
24286 | wxSize * resultptr; | |
24287 | resultptr = new wxSize((wxSize &) result); | |
24288 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24289 | } | |
d55e5bfc RD |
24290 | return resultobj; |
24291 | fail: | |
24292 | return NULL; | |
24293 | } | |
24294 | ||
24295 | ||
c370783e | 24296 | static PyObject *_wrap_Window_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
24297 | PyObject *resultobj; |
24298 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24299 | wxSize *arg2 = 0 ; | |
24300 | wxSize temp2 ; | |
24301 | PyObject * obj0 = 0 ; | |
24302 | PyObject * obj1 = 0 ; | |
24303 | char *kwnames[] = { | |
24304 | (char *) "self",(char *) "minSize", NULL | |
24305 | }; | |
24306 | ||
24307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
24308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24310 | { | |
24311 | arg2 = &temp2; | |
24312 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24313 | } | |
24314 | { | |
24315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24316 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
24317 | ||
24318 | wxPyEndAllowThreads(__tstate); | |
24319 | if (PyErr_Occurred()) SWIG_fail; | |
24320 | } | |
24321 | Py_INCREF(Py_None); resultobj = Py_None; | |
24322 | return resultobj; | |
24323 | fail: | |
24324 | return NULL; | |
24325 | } | |
24326 | ||
24327 | ||
c370783e | 24328 | static PyObject *_wrap_Window_SetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
24329 | PyObject *resultobj; |
24330 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24331 | wxSize *arg2 = 0 ; | |
24332 | wxSize temp2 ; | |
24333 | PyObject * obj0 = 0 ; | |
24334 | PyObject * obj1 = 0 ; | |
24335 | char *kwnames[] = { | |
24336 | (char *) "self",(char *) "maxSize", NULL | |
24337 | }; | |
24338 | ||
24339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) goto fail; | |
24340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24342 | { | |
24343 | arg2 = &temp2; | |
24344 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24345 | } | |
24346 | { | |
24347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24348 | (arg1)->SetMaxSize((wxSize const &)*arg2); | |
24349 | ||
24350 | wxPyEndAllowThreads(__tstate); | |
24351 | if (PyErr_Occurred()) SWIG_fail; | |
24352 | } | |
24353 | Py_INCREF(Py_None); resultobj = Py_None; | |
24354 | return resultobj; | |
24355 | fail: | |
24356 | return NULL; | |
24357 | } | |
24358 | ||
24359 | ||
c370783e | 24360 | static PyObject *_wrap_Window_GetMinWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24361 | PyObject *resultobj; |
24362 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24363 | int result; | |
24364 | PyObject * obj0 = 0 ; | |
24365 | char *kwnames[] = { | |
24366 | (char *) "self", NULL | |
24367 | }; | |
24368 | ||
908b74cd | 24369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24372 | { | |
24373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24374 | result = (int)((wxWindow const *)arg1)->GetMinWidth(); |
d55e5bfc RD |
24375 | |
24376 | wxPyEndAllowThreads(__tstate); | |
24377 | if (PyErr_Occurred()) SWIG_fail; | |
24378 | } | |
c370783e | 24379 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24380 | return resultobj; |
24381 | fail: | |
24382 | return NULL; | |
24383 | } | |
24384 | ||
24385 | ||
c370783e | 24386 | static PyObject *_wrap_Window_GetMinHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24387 | PyObject *resultobj; |
24388 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24389 | int result; | |
24390 | PyObject * obj0 = 0 ; | |
24391 | char *kwnames[] = { | |
24392 | (char *) "self", NULL | |
24393 | }; | |
24394 | ||
908b74cd | 24395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24398 | { | |
24399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24400 | result = (int)((wxWindow const *)arg1)->GetMinHeight(); |
d55e5bfc RD |
24401 | |
24402 | wxPyEndAllowThreads(__tstate); | |
24403 | if (PyErr_Occurred()) SWIG_fail; | |
24404 | } | |
c370783e | 24405 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24406 | return resultobj; |
24407 | fail: | |
24408 | return NULL; | |
24409 | } | |
24410 | ||
24411 | ||
c370783e | 24412 | static PyObject *_wrap_Window_GetMaxWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24413 | PyObject *resultobj; |
24414 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24415 | int result; |
d55e5bfc RD |
24416 | PyObject * obj0 = 0 ; |
24417 | char *kwnames[] = { | |
24418 | (char *) "self", NULL | |
24419 | }; | |
24420 | ||
908b74cd | 24421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24424 | { | |
24425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24426 | result = (int)((wxWindow const *)arg1)->GetMaxWidth(); |
d55e5bfc RD |
24427 | |
24428 | wxPyEndAllowThreads(__tstate); | |
24429 | if (PyErr_Occurred()) SWIG_fail; | |
24430 | } | |
c370783e | 24431 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24432 | return resultobj; |
24433 | fail: | |
24434 | return NULL; | |
24435 | } | |
24436 | ||
24437 | ||
c370783e | 24438 | static PyObject *_wrap_Window_GetMaxHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24439 | PyObject *resultobj; |
24440 | wxWindow *arg1 = (wxWindow *) 0 ; | |
908b74cd | 24441 | int result; |
d55e5bfc RD |
24442 | PyObject * obj0 = 0 ; |
24443 | char *kwnames[] = { | |
24444 | (char *) "self", NULL | |
24445 | }; | |
24446 | ||
908b74cd | 24447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
24448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24450 | { | |
24451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
908b74cd | 24452 | result = (int)((wxWindow const *)arg1)->GetMaxHeight(); |
d55e5bfc RD |
24453 | |
24454 | wxPyEndAllowThreads(__tstate); | |
24455 | if (PyErr_Occurred()) SWIG_fail; | |
24456 | } | |
c370783e | 24457 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
24458 | return resultobj; |
24459 | fail: | |
24460 | return NULL; | |
24461 | } | |
24462 | ||
24463 | ||
c370783e | 24464 | static PyObject *_wrap_Window_SetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24465 | PyObject *resultobj; |
24466 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24467 | wxSize *arg2 = 0 ; | |
24468 | wxSize temp2 ; | |
24469 | PyObject * obj0 = 0 ; | |
24470 | PyObject * obj1 = 0 ; | |
24471 | char *kwnames[] = { | |
24472 | (char *) "self",(char *) "size", NULL | |
24473 | }; | |
24474 | ||
24475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail; | |
24476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24478 | { | |
24479 | arg2 = &temp2; | |
24480 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
24481 | } | |
24482 | { | |
24483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24484 | (arg1)->SetVirtualSize((wxSize const &)*arg2); | |
24485 | ||
24486 | wxPyEndAllowThreads(__tstate); | |
24487 | if (PyErr_Occurred()) SWIG_fail; | |
24488 | } | |
24489 | Py_INCREF(Py_None); resultobj = Py_None; | |
24490 | return resultobj; | |
24491 | fail: | |
24492 | return NULL; | |
24493 | } | |
24494 | ||
24495 | ||
c370783e | 24496 | static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24497 | PyObject *resultobj; |
24498 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24499 | int arg2 ; | |
24500 | int arg3 ; | |
24501 | PyObject * obj0 = 0 ; | |
24502 | PyObject * obj1 = 0 ; | |
24503 | PyObject * obj2 = 0 ; | |
24504 | char *kwnames[] = { | |
24505 | (char *) "self",(char *) "w",(char *) "h", NULL | |
24506 | }; | |
24507 | ||
24508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24511 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 24512 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 24513 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
24514 | if (PyErr_Occurred()) SWIG_fail; |
24515 | { | |
24516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24517 | (arg1)->SetVirtualSize(arg2,arg3); | |
24518 | ||
24519 | wxPyEndAllowThreads(__tstate); | |
24520 | if (PyErr_Occurred()) SWIG_fail; | |
24521 | } | |
24522 | Py_INCREF(Py_None); resultobj = Py_None; | |
24523 | return resultobj; | |
24524 | fail: | |
24525 | return NULL; | |
24526 | } | |
24527 | ||
24528 | ||
c370783e | 24529 | static PyObject *_wrap_Window_GetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24530 | PyObject *resultobj; |
24531 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24532 | wxSize result; | |
24533 | PyObject * obj0 = 0 ; | |
24534 | char *kwnames[] = { | |
24535 | (char *) "self", NULL | |
24536 | }; | |
24537 | ||
24538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail; | |
24539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24541 | { | |
24542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24543 | result = ((wxWindow const *)arg1)->GetVirtualSize(); | |
24544 | ||
24545 | wxPyEndAllowThreads(__tstate); | |
24546 | if (PyErr_Occurred()) SWIG_fail; | |
24547 | } | |
24548 | { | |
24549 | wxSize * resultptr; | |
24550 | resultptr = new wxSize((wxSize &) result); | |
24551 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24552 | } | |
24553 | return resultobj; | |
24554 | fail: | |
24555 | return NULL; | |
24556 | } | |
24557 | ||
24558 | ||
c370783e | 24559 | static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24560 | PyObject *resultobj; |
24561 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24562 | int *arg2 = (int *) 0 ; | |
24563 | int *arg3 = (int *) 0 ; | |
24564 | int temp2 ; | |
c370783e | 24565 | int res2 = 0 ; |
d55e5bfc | 24566 | int temp3 ; |
c370783e | 24567 | int res3 = 0 ; |
d55e5bfc RD |
24568 | PyObject * obj0 = 0 ; |
24569 | char *kwnames[] = { | |
24570 | (char *) "self", NULL | |
24571 | }; | |
24572 | ||
c370783e RD |
24573 | arg2 = &temp2; res2 = SWIG_NEWOBJ; |
24574 | arg3 = &temp3; res3 = SWIG_NEWOBJ; | |
d55e5bfc RD |
24575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail; |
24576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24578 | { | |
24579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24580 | ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3); | |
24581 | ||
24582 | wxPyEndAllowThreads(__tstate); | |
24583 | if (PyErr_Occurred()) SWIG_fail; | |
24584 | } | |
24585 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
24586 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
24587 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
24588 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
24589 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
24590 | return resultobj; |
24591 | fail: | |
24592 | return NULL; | |
24593 | } | |
24594 | ||
24595 | ||
c370783e | 24596 | static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24597 | PyObject *resultobj; |
24598 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24599 | wxSize result; | |
24600 | PyObject * obj0 = 0 ; | |
24601 | char *kwnames[] = { | |
24602 | (char *) "self", NULL | |
24603 | }; | |
24604 | ||
24605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail; | |
24606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24608 | { | |
24609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24610 | result = ((wxWindow const *)arg1)->GetBestVirtualSize(); | |
24611 | ||
24612 | wxPyEndAllowThreads(__tstate); | |
24613 | if (PyErr_Occurred()) SWIG_fail; | |
24614 | } | |
24615 | { | |
24616 | wxSize * resultptr; | |
24617 | resultptr = new wxSize((wxSize &) result); | |
24618 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
24619 | } | |
24620 | return resultobj; | |
24621 | fail: | |
24622 | return NULL; | |
24623 | } | |
24624 | ||
24625 | ||
c370783e | 24626 | static PyObject *_wrap_Window_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24627 | PyObject *resultobj; |
24628 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b411df4a | 24629 | bool arg2 = (bool) true ; |
d55e5bfc RD |
24630 | bool result; |
24631 | PyObject * obj0 = 0 ; | |
24632 | PyObject * obj1 = 0 ; | |
24633 | char *kwnames[] = { | |
24634 | (char *) "self",(char *) "show", NULL | |
24635 | }; | |
24636 | ||
24637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail; | |
24638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24640 | if (obj1) { | |
c370783e | 24641 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24642 | if (PyErr_Occurred()) SWIG_fail; |
24643 | } | |
24644 | { | |
24645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24646 | result = (bool)(arg1)->Show(arg2); | |
24647 | ||
24648 | wxPyEndAllowThreads(__tstate); | |
24649 | if (PyErr_Occurred()) SWIG_fail; | |
24650 | } | |
24651 | { | |
24652 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24653 | } | |
24654 | return resultobj; | |
24655 | fail: | |
24656 | return NULL; | |
24657 | } | |
24658 | ||
24659 | ||
c370783e | 24660 | static PyObject *_wrap_Window_Hide(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24661 | PyObject *resultobj; |
24662 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24663 | bool result; | |
24664 | PyObject * obj0 = 0 ; | |
24665 | char *kwnames[] = { | |
24666 | (char *) "self", NULL | |
24667 | }; | |
24668 | ||
24669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail; | |
24670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24672 | { | |
24673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24674 | result = (bool)(arg1)->Hide(); | |
24675 | ||
24676 | wxPyEndAllowThreads(__tstate); | |
24677 | if (PyErr_Occurred()) SWIG_fail; | |
24678 | } | |
24679 | { | |
24680 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24681 | } | |
24682 | return resultobj; | |
24683 | fail: | |
24684 | return NULL; | |
24685 | } | |
24686 | ||
24687 | ||
c370783e | 24688 | static PyObject *_wrap_Window_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24689 | PyObject *resultobj; |
24690 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b411df4a | 24691 | bool arg2 = (bool) true ; |
d55e5bfc RD |
24692 | bool result; |
24693 | PyObject * obj0 = 0 ; | |
24694 | PyObject * obj1 = 0 ; | |
24695 | char *kwnames[] = { | |
24696 | (char *) "self",(char *) "enable", NULL | |
24697 | }; | |
24698 | ||
24699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail; | |
24700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24702 | if (obj1) { | |
c370783e | 24703 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24704 | if (PyErr_Occurred()) SWIG_fail; |
24705 | } | |
24706 | { | |
24707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24708 | result = (bool)(arg1)->Enable(arg2); | |
24709 | ||
24710 | wxPyEndAllowThreads(__tstate); | |
24711 | if (PyErr_Occurred()) SWIG_fail; | |
24712 | } | |
24713 | { | |
24714 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24715 | } | |
24716 | return resultobj; | |
24717 | fail: | |
24718 | return NULL; | |
24719 | } | |
24720 | ||
24721 | ||
c370783e | 24722 | static PyObject *_wrap_Window_Disable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24723 | PyObject *resultobj; |
24724 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24725 | bool result; | |
24726 | PyObject * obj0 = 0 ; | |
24727 | char *kwnames[] = { | |
24728 | (char *) "self", NULL | |
24729 | }; | |
24730 | ||
24731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail; | |
24732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24734 | { | |
24735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24736 | result = (bool)(arg1)->Disable(); | |
24737 | ||
24738 | wxPyEndAllowThreads(__tstate); | |
24739 | if (PyErr_Occurred()) SWIG_fail; | |
24740 | } | |
24741 | { | |
24742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24743 | } | |
24744 | return resultobj; | |
24745 | fail: | |
24746 | return NULL; | |
24747 | } | |
24748 | ||
24749 | ||
c370783e | 24750 | static PyObject *_wrap_Window_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24751 | PyObject *resultobj; |
24752 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24753 | bool result; | |
24754 | PyObject * obj0 = 0 ; | |
24755 | char *kwnames[] = { | |
24756 | (char *) "self", NULL | |
24757 | }; | |
24758 | ||
24759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail; | |
24760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24762 | { | |
24763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24764 | result = (bool)((wxWindow const *)arg1)->IsShown(); | |
24765 | ||
24766 | wxPyEndAllowThreads(__tstate); | |
24767 | if (PyErr_Occurred()) SWIG_fail; | |
24768 | } | |
24769 | { | |
24770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24771 | } | |
24772 | return resultobj; | |
24773 | fail: | |
24774 | return NULL; | |
24775 | } | |
24776 | ||
24777 | ||
c370783e | 24778 | static PyObject *_wrap_Window_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24779 | PyObject *resultobj; |
24780 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24781 | bool result; | |
24782 | PyObject * obj0 = 0 ; | |
24783 | char *kwnames[] = { | |
24784 | (char *) "self", NULL | |
24785 | }; | |
24786 | ||
24787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail; | |
24788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24790 | { | |
24791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24792 | result = (bool)((wxWindow const *)arg1)->IsEnabled(); | |
24793 | ||
24794 | wxPyEndAllowThreads(__tstate); | |
24795 | if (PyErr_Occurred()) SWIG_fail; | |
24796 | } | |
24797 | { | |
24798 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24799 | } | |
24800 | return resultobj; | |
24801 | fail: | |
24802 | return NULL; | |
24803 | } | |
24804 | ||
24805 | ||
c370783e | 24806 | static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24807 | PyObject *resultobj; |
24808 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24809 | long arg2 ; | |
24810 | PyObject * obj0 = 0 ; | |
24811 | PyObject * obj1 = 0 ; | |
24812 | char *kwnames[] = { | |
24813 | (char *) "self",(char *) "style", NULL | |
24814 | }; | |
24815 | ||
24816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
24817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24819 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24820 | if (PyErr_Occurred()) SWIG_fail; |
24821 | { | |
24822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24823 | (arg1)->SetWindowStyleFlag(arg2); | |
24824 | ||
24825 | wxPyEndAllowThreads(__tstate); | |
24826 | if (PyErr_Occurred()) SWIG_fail; | |
24827 | } | |
24828 | Py_INCREF(Py_None); resultobj = Py_None; | |
24829 | return resultobj; | |
24830 | fail: | |
24831 | return NULL; | |
24832 | } | |
24833 | ||
24834 | ||
c370783e | 24835 | static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24836 | PyObject *resultobj; |
24837 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24838 | long result; | |
24839 | PyObject * obj0 = 0 ; | |
24840 | char *kwnames[] = { | |
24841 | (char *) "self", NULL | |
24842 | }; | |
24843 | ||
24844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail; | |
24845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24847 | { | |
24848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24849 | result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag(); | |
24850 | ||
24851 | wxPyEndAllowThreads(__tstate); | |
24852 | if (PyErr_Occurred()) SWIG_fail; | |
24853 | } | |
c370783e | 24854 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24855 | return resultobj; |
24856 | fail: | |
24857 | return NULL; | |
24858 | } | |
24859 | ||
24860 | ||
c370783e | 24861 | static PyObject *_wrap_Window_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24862 | PyObject *resultobj; |
24863 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24864 | int arg2 ; | |
24865 | bool result; | |
24866 | PyObject * obj0 = 0 ; | |
24867 | PyObject * obj1 = 0 ; | |
24868 | char *kwnames[] = { | |
24869 | (char *) "self",(char *) "flag", NULL | |
24870 | }; | |
24871 | ||
24872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
24873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24875 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
24876 | if (PyErr_Occurred()) SWIG_fail; |
24877 | { | |
24878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24879 | result = (bool)((wxWindow const *)arg1)->HasFlag(arg2); | |
24880 | ||
24881 | wxPyEndAllowThreads(__tstate); | |
24882 | if (PyErr_Occurred()) SWIG_fail; | |
24883 | } | |
24884 | { | |
24885 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24886 | } | |
24887 | return resultobj; | |
24888 | fail: | |
24889 | return NULL; | |
24890 | } | |
24891 | ||
24892 | ||
c370783e | 24893 | static PyObject *_wrap_Window_IsRetained(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24894 | PyObject *resultobj; |
24895 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24896 | bool result; | |
24897 | PyObject * obj0 = 0 ; | |
24898 | char *kwnames[] = { | |
24899 | (char *) "self", NULL | |
24900 | }; | |
24901 | ||
24902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail; | |
24903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24905 | { | |
24906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24907 | result = (bool)((wxWindow const *)arg1)->IsRetained(); | |
24908 | ||
24909 | wxPyEndAllowThreads(__tstate); | |
24910 | if (PyErr_Occurred()) SWIG_fail; | |
24911 | } | |
24912 | { | |
24913 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24914 | } | |
24915 | return resultobj; | |
24916 | fail: | |
24917 | return NULL; | |
24918 | } | |
24919 | ||
24920 | ||
c370783e | 24921 | static PyObject *_wrap_Window_SetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24922 | PyObject *resultobj; |
24923 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24924 | long arg2 ; | |
24925 | PyObject * obj0 = 0 ; | |
24926 | PyObject * obj1 = 0 ; | |
24927 | char *kwnames[] = { | |
24928 | (char *) "self",(char *) "exStyle", NULL | |
24929 | }; | |
24930 | ||
24931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail; | |
24932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 24934 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
24935 | if (PyErr_Occurred()) SWIG_fail; |
24936 | { | |
24937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24938 | (arg1)->SetExtraStyle(arg2); | |
24939 | ||
24940 | wxPyEndAllowThreads(__tstate); | |
24941 | if (PyErr_Occurred()) SWIG_fail; | |
24942 | } | |
24943 | Py_INCREF(Py_None); resultobj = Py_None; | |
24944 | return resultobj; | |
24945 | fail: | |
24946 | return NULL; | |
24947 | } | |
24948 | ||
24949 | ||
c370783e | 24950 | static PyObject *_wrap_Window_GetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24951 | PyObject *resultobj; |
24952 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24953 | long result; | |
24954 | PyObject * obj0 = 0 ; | |
24955 | char *kwnames[] = { | |
24956 | (char *) "self", NULL | |
24957 | }; | |
24958 | ||
24959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail; | |
24960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24962 | { | |
24963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24964 | result = (long)((wxWindow const *)arg1)->GetExtraStyle(); | |
24965 | ||
24966 | wxPyEndAllowThreads(__tstate); | |
24967 | if (PyErr_Occurred()) SWIG_fail; | |
24968 | } | |
c370783e | 24969 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
24970 | return resultobj; |
24971 | fail: | |
24972 | return NULL; | |
24973 | } | |
24974 | ||
24975 | ||
c370783e | 24976 | static PyObject *_wrap_Window_MakeModal(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
24977 | PyObject *resultobj; |
24978 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b411df4a | 24979 | bool arg2 = (bool) true ; |
d55e5bfc RD |
24980 | PyObject * obj0 = 0 ; |
24981 | PyObject * obj1 = 0 ; | |
24982 | char *kwnames[] = { | |
24983 | (char *) "self",(char *) "modal", NULL | |
24984 | }; | |
24985 | ||
24986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail; | |
24987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24989 | if (obj1) { | |
c370783e | 24990 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
24991 | if (PyErr_Occurred()) SWIG_fail; |
24992 | } | |
24993 | { | |
24994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24995 | (arg1)->MakeModal(arg2); | |
24996 | ||
24997 | wxPyEndAllowThreads(__tstate); | |
24998 | if (PyErr_Occurred()) SWIG_fail; | |
24999 | } | |
25000 | Py_INCREF(Py_None); resultobj = Py_None; | |
25001 | return resultobj; | |
25002 | fail: | |
25003 | return NULL; | |
25004 | } | |
25005 | ||
25006 | ||
c370783e | 25007 | static PyObject *_wrap_Window_SetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25008 | PyObject *resultobj; |
25009 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25010 | bool arg2 ; | |
25011 | PyObject * obj0 = 0 ; | |
25012 | PyObject * obj1 = 0 ; | |
25013 | char *kwnames[] = { | |
25014 | (char *) "self",(char *) "enableTheme", NULL | |
25015 | }; | |
25016 | ||
25017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail; | |
25018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25020 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
25021 | if (PyErr_Occurred()) SWIG_fail; |
25022 | { | |
25023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25024 | (arg1)->SetThemeEnabled(arg2); | |
25025 | ||
25026 | wxPyEndAllowThreads(__tstate); | |
25027 | if (PyErr_Occurred()) SWIG_fail; | |
25028 | } | |
25029 | Py_INCREF(Py_None); resultobj = Py_None; | |
25030 | return resultobj; | |
25031 | fail: | |
25032 | return NULL; | |
25033 | } | |
25034 | ||
25035 | ||
c370783e | 25036 | static PyObject *_wrap_Window_GetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25037 | PyObject *resultobj; |
25038 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25039 | bool result; | |
25040 | PyObject * obj0 = 0 ; | |
25041 | char *kwnames[] = { | |
25042 | (char *) "self", NULL | |
25043 | }; | |
25044 | ||
25045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail; | |
25046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25048 | { | |
25049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25050 | result = (bool)((wxWindow const *)arg1)->GetThemeEnabled(); | |
25051 | ||
25052 | wxPyEndAllowThreads(__tstate); | |
25053 | if (PyErr_Occurred()) SWIG_fail; | |
25054 | } | |
25055 | { | |
25056 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25057 | } | |
25058 | return resultobj; | |
25059 | fail: | |
25060 | return NULL; | |
25061 | } | |
25062 | ||
25063 | ||
c370783e | 25064 | static PyObject *_wrap_Window_SetFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25065 | PyObject *resultobj; |
25066 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25067 | PyObject * obj0 = 0 ; | |
25068 | char *kwnames[] = { | |
25069 | (char *) "self", NULL | |
25070 | }; | |
25071 | ||
25072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail; | |
25073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25075 | { | |
25076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25077 | (arg1)->SetFocus(); | |
25078 | ||
25079 | wxPyEndAllowThreads(__tstate); | |
25080 | if (PyErr_Occurred()) SWIG_fail; | |
25081 | } | |
25082 | Py_INCREF(Py_None); resultobj = Py_None; | |
25083 | return resultobj; | |
25084 | fail: | |
25085 | return NULL; | |
25086 | } | |
25087 | ||
25088 | ||
c370783e | 25089 | static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25090 | PyObject *resultobj; |
25091 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25092 | PyObject * obj0 = 0 ; | |
25093 | char *kwnames[] = { | |
25094 | (char *) "self", NULL | |
25095 | }; | |
25096 | ||
25097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",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 | (arg1)->SetFocusFromKbd(); | |
25103 | ||
25104 | wxPyEndAllowThreads(__tstate); | |
25105 | if (PyErr_Occurred()) SWIG_fail; | |
25106 | } | |
25107 | Py_INCREF(Py_None); resultobj = Py_None; | |
25108 | return resultobj; | |
25109 | fail: | |
25110 | return NULL; | |
25111 | } | |
25112 | ||
25113 | ||
c370783e | 25114 | static PyObject *_wrap_Window_FindFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25115 | PyObject *resultobj; |
25116 | wxWindow *result; | |
25117 | char *kwnames[] = { | |
25118 | NULL | |
25119 | }; | |
25120 | ||
25121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail; | |
25122 | { | |
0439c23b | 25123 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
25124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25125 | result = (wxWindow *)wxWindow::FindFocus(); | |
25126 | ||
25127 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25128 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
25129 | } |
25130 | { | |
412d302d | 25131 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25132 | } |
25133 | return resultobj; | |
25134 | fail: | |
25135 | return NULL; | |
25136 | } | |
25137 | ||
25138 | ||
c370783e | 25139 | static PyObject *_wrap_Window_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25140 | PyObject *resultobj; |
25141 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25142 | bool result; | |
25143 | PyObject * obj0 = 0 ; | |
25144 | char *kwnames[] = { | |
25145 | (char *) "self", NULL | |
25146 | }; | |
25147 | ||
25148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail; | |
25149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25151 | { | |
25152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25153 | result = (bool)((wxWindow const *)arg1)->AcceptsFocus(); | |
25154 | ||
25155 | wxPyEndAllowThreads(__tstate); | |
25156 | if (PyErr_Occurred()) SWIG_fail; | |
25157 | } | |
25158 | { | |
25159 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25160 | } | |
25161 | return resultobj; | |
25162 | fail: | |
25163 | return NULL; | |
25164 | } | |
25165 | ||
25166 | ||
c370783e | 25167 | static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25168 | PyObject *resultobj; |
25169 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25170 | bool result; | |
25171 | PyObject * obj0 = 0 ; | |
25172 | char *kwnames[] = { | |
25173 | (char *) "self", NULL | |
25174 | }; | |
25175 | ||
25176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
25177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25179 | { | |
25180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25181 | result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard(); | |
25182 | ||
25183 | wxPyEndAllowThreads(__tstate); | |
25184 | if (PyErr_Occurred()) SWIG_fail; | |
25185 | } | |
25186 | { | |
25187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25188 | } | |
25189 | return resultobj; | |
25190 | fail: | |
25191 | return NULL; | |
25192 | } | |
25193 | ||
25194 | ||
c370783e | 25195 | static PyObject *_wrap_Window_GetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25196 | PyObject *resultobj; |
25197 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25198 | wxWindow *result; | |
25199 | PyObject * obj0 = 0 ; | |
25200 | char *kwnames[] = { | |
25201 | (char *) "self", NULL | |
25202 | }; | |
25203 | ||
25204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail; | |
25205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25207 | { | |
25208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25209 | result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem(); | |
25210 | ||
25211 | wxPyEndAllowThreads(__tstate); | |
25212 | if (PyErr_Occurred()) SWIG_fail; | |
25213 | } | |
25214 | { | |
412d302d | 25215 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25216 | } |
25217 | return resultobj; | |
25218 | fail: | |
25219 | return NULL; | |
25220 | } | |
25221 | ||
25222 | ||
c370783e | 25223 | static PyObject *_wrap_Window_SetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25224 | PyObject *resultobj; |
25225 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25226 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25227 | wxWindow *result; | |
25228 | PyObject * obj0 = 0 ; | |
25229 | PyObject * obj1 = 0 ; | |
25230 | char *kwnames[] = { | |
25231 | (char *) "self",(char *) "child", NULL | |
25232 | }; | |
25233 | ||
25234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
25235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25237 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25239 | { | |
25240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25241 | result = (wxWindow *)(arg1)->SetDefaultItem(arg2); | |
25242 | ||
25243 | wxPyEndAllowThreads(__tstate); | |
25244 | if (PyErr_Occurred()) SWIG_fail; | |
25245 | } | |
25246 | { | |
412d302d | 25247 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25248 | } |
25249 | return resultobj; | |
25250 | fail: | |
25251 | return NULL; | |
25252 | } | |
25253 | ||
25254 | ||
c370783e | 25255 | static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25256 | PyObject *resultobj; |
25257 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25258 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25259 | PyObject * obj0 = 0 ; | |
25260 | PyObject * obj1 = 0 ; | |
25261 | char *kwnames[] = { | |
25262 | (char *) "self",(char *) "win", NULL | |
25263 | }; | |
25264 | ||
25265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail; | |
25266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25268 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25270 | { | |
25271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25272 | (arg1)->SetTmpDefaultItem(arg2); | |
25273 | ||
25274 | wxPyEndAllowThreads(__tstate); | |
25275 | if (PyErr_Occurred()) SWIG_fail; | |
25276 | } | |
25277 | Py_INCREF(Py_None); resultobj = Py_None; | |
25278 | return resultobj; | |
25279 | fail: | |
25280 | return NULL; | |
25281 | } | |
25282 | ||
25283 | ||
c370783e | 25284 | static PyObject *_wrap_Window_Navigate(PyObject *, PyObject *args, PyObject *kwargs) { |
908b74cd RD |
25285 | PyObject *resultobj; |
25286 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25287 | int arg2 = (int) wxNavigationKeyEvent::IsForward ; | |
25288 | bool result; | |
25289 | PyObject * obj0 = 0 ; | |
25290 | PyObject * obj1 = 0 ; | |
25291 | char *kwnames[] = { | |
25292 | (char *) "self",(char *) "flags", NULL | |
25293 | }; | |
25294 | ||
25295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) goto fail; | |
25296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25298 | if (obj1) { | |
c370783e | 25299 | arg2 = (int)SWIG_As_int(obj1); |
908b74cd RD |
25300 | if (PyErr_Occurred()) SWIG_fail; |
25301 | } | |
25302 | { | |
25303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25304 | result = (bool)(arg1)->Navigate(arg2); | |
25305 | ||
25306 | wxPyEndAllowThreads(__tstate); | |
25307 | if (PyErr_Occurred()) SWIG_fail; | |
25308 | } | |
25309 | { | |
25310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25311 | } | |
25312 | return resultobj; | |
25313 | fail: | |
25314 | return NULL; | |
25315 | } | |
25316 | ||
25317 | ||
c370783e | 25318 | static PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
25319 | PyObject *resultobj; |
25320 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25321 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25322 | PyObject * obj0 = 0 ; | |
25323 | PyObject * obj1 = 0 ; | |
25324 | char *kwnames[] = { | |
25325 | (char *) "self",(char *) "win", NULL | |
25326 | }; | |
25327 | ||
25328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
25329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25331 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25333 | { | |
25334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25335 | (arg1)->MoveAfterInTabOrder(arg2); | |
25336 | ||
25337 | wxPyEndAllowThreads(__tstate); | |
25338 | if (PyErr_Occurred()) SWIG_fail; | |
25339 | } | |
25340 | Py_INCREF(Py_None); resultobj = Py_None; | |
25341 | return resultobj; | |
25342 | fail: | |
25343 | return NULL; | |
25344 | } | |
25345 | ||
25346 | ||
c370783e | 25347 | static PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) { |
bf26d883 RD |
25348 | PyObject *resultobj; |
25349 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25350 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25351 | PyObject * obj0 = 0 ; | |
25352 | PyObject * obj1 = 0 ; | |
25353 | char *kwnames[] = { | |
25354 | (char *) "self",(char *) "win", NULL | |
25355 | }; | |
25356 | ||
25357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) goto fail; | |
25358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25360 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25362 | { | |
25363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25364 | (arg1)->MoveBeforeInTabOrder(arg2); | |
25365 | ||
25366 | wxPyEndAllowThreads(__tstate); | |
25367 | if (PyErr_Occurred()) SWIG_fail; | |
25368 | } | |
25369 | Py_INCREF(Py_None); resultobj = Py_None; | |
25370 | return resultobj; | |
25371 | fail: | |
25372 | return NULL; | |
25373 | } | |
25374 | ||
25375 | ||
c370783e | 25376 | static PyObject *_wrap_Window_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25377 | PyObject *resultobj; |
25378 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25379 | PyObject *result; | |
25380 | PyObject * obj0 = 0 ; | |
25381 | char *kwnames[] = { | |
25382 | (char *) "self", NULL | |
25383 | }; | |
25384 | ||
25385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail; | |
25386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25388 | { | |
25389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25390 | result = (PyObject *)wxWindow_GetChildren(arg1); | |
25391 | ||
25392 | wxPyEndAllowThreads(__tstate); | |
25393 | if (PyErr_Occurred()) SWIG_fail; | |
25394 | } | |
25395 | resultobj = result; | |
25396 | return resultobj; | |
25397 | fail: | |
25398 | return NULL; | |
25399 | } | |
25400 | ||
25401 | ||
c370783e | 25402 | static PyObject *_wrap_Window_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25403 | PyObject *resultobj; |
25404 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25405 | wxWindow *result; | |
25406 | PyObject * obj0 = 0 ; | |
25407 | char *kwnames[] = { | |
25408 | (char *) "self", NULL | |
25409 | }; | |
25410 | ||
25411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail; | |
25412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25414 | { | |
25415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25416 | result = (wxWindow *)((wxWindow const *)arg1)->GetParent(); | |
25417 | ||
25418 | wxPyEndAllowThreads(__tstate); | |
25419 | if (PyErr_Occurred()) SWIG_fail; | |
25420 | } | |
25421 | { | |
412d302d | 25422 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25423 | } |
25424 | return resultobj; | |
25425 | fail: | |
25426 | return NULL; | |
25427 | } | |
25428 | ||
25429 | ||
c370783e | 25430 | static PyObject *_wrap_Window_GetGrandParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25431 | PyObject *resultobj; |
25432 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25433 | wxWindow *result; | |
25434 | PyObject * obj0 = 0 ; | |
25435 | char *kwnames[] = { | |
25436 | (char *) "self", NULL | |
25437 | }; | |
25438 | ||
25439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail; | |
25440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25442 | { | |
25443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25444 | result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent(); | |
25445 | ||
25446 | wxPyEndAllowThreads(__tstate); | |
25447 | if (PyErr_Occurred()) SWIG_fail; | |
25448 | } | |
25449 | { | |
412d302d | 25450 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25451 | } |
25452 | return resultobj; | |
25453 | fail: | |
25454 | return NULL; | |
25455 | } | |
25456 | ||
25457 | ||
c370783e | 25458 | static PyObject *_wrap_Window_IsTopLevel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25459 | PyObject *resultobj; |
25460 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25461 | bool result; | |
25462 | PyObject * obj0 = 0 ; | |
25463 | char *kwnames[] = { | |
25464 | (char *) "self", NULL | |
25465 | }; | |
25466 | ||
25467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail; | |
25468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25470 | { | |
25471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25472 | result = (bool)((wxWindow const *)arg1)->IsTopLevel(); | |
25473 | ||
25474 | wxPyEndAllowThreads(__tstate); | |
25475 | if (PyErr_Occurred()) SWIG_fail; | |
25476 | } | |
25477 | { | |
25478 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25479 | } | |
25480 | return resultobj; | |
25481 | fail: | |
25482 | return NULL; | |
25483 | } | |
25484 | ||
25485 | ||
c370783e | 25486 | static PyObject *_wrap_Window_Reparent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25487 | PyObject *resultobj; |
25488 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25489 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25490 | bool result; | |
25491 | PyObject * obj0 = 0 ; | |
25492 | PyObject * obj1 = 0 ; | |
25493 | char *kwnames[] = { | |
25494 | (char *) "self",(char *) "newParent", NULL | |
25495 | }; | |
25496 | ||
25497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail; | |
25498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25500 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25502 | { | |
25503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25504 | result = (bool)(arg1)->Reparent(arg2); | |
25505 | ||
25506 | wxPyEndAllowThreads(__tstate); | |
25507 | if (PyErr_Occurred()) SWIG_fail; | |
25508 | } | |
25509 | { | |
25510 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25511 | } | |
25512 | return resultobj; | |
25513 | fail: | |
25514 | return NULL; | |
25515 | } | |
25516 | ||
25517 | ||
c370783e | 25518 | static PyObject *_wrap_Window_AddChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25519 | PyObject *resultobj; |
25520 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25521 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25522 | PyObject * obj0 = 0 ; | |
25523 | PyObject * obj1 = 0 ; | |
25524 | char *kwnames[] = { | |
25525 | (char *) "self",(char *) "child", NULL | |
25526 | }; | |
25527 | ||
25528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
25529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25531 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25533 | { | |
25534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25535 | (arg1)->AddChild(arg2); | |
25536 | ||
25537 | wxPyEndAllowThreads(__tstate); | |
25538 | if (PyErr_Occurred()) SWIG_fail; | |
25539 | } | |
25540 | Py_INCREF(Py_None); resultobj = Py_None; | |
25541 | return resultobj; | |
25542 | fail: | |
25543 | return NULL; | |
25544 | } | |
25545 | ||
25546 | ||
c370783e | 25547 | static PyObject *_wrap_Window_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25548 | PyObject *resultobj; |
25549 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25550 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25551 | PyObject * obj0 = 0 ; | |
25552 | PyObject * obj1 = 0 ; | |
25553 | char *kwnames[] = { | |
25554 | (char *) "self",(char *) "child", NULL | |
25555 | }; | |
25556 | ||
25557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
25558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25560 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25562 | { | |
25563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25564 | (arg1)->RemoveChild(arg2); | |
25565 | ||
25566 | wxPyEndAllowThreads(__tstate); | |
25567 | if (PyErr_Occurred()) SWIG_fail; | |
25568 | } | |
25569 | Py_INCREF(Py_None); resultobj = Py_None; | |
25570 | return resultobj; | |
25571 | fail: | |
25572 | return NULL; | |
25573 | } | |
25574 | ||
25575 | ||
c370783e | 25576 | static PyObject *_wrap_Window_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25577 | PyObject *resultobj; |
25578 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25579 | long arg2 ; | |
25580 | wxWindow *result; | |
25581 | PyObject * obj0 = 0 ; | |
25582 | PyObject * obj1 = 0 ; | |
25583 | char *kwnames[] = { | |
25584 | (char *) "self",(char *) "winid", NULL | |
25585 | }; | |
25586 | ||
25587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
25588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 25590 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
25591 | if (PyErr_Occurred()) SWIG_fail; |
25592 | { | |
25593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25594 | result = (wxWindow *)(arg1)->FindWindow(arg2); | |
25595 | ||
25596 | wxPyEndAllowThreads(__tstate); | |
25597 | if (PyErr_Occurred()) SWIG_fail; | |
25598 | } | |
25599 | { | |
412d302d | 25600 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25601 | } |
25602 | return resultobj; | |
25603 | fail: | |
25604 | return NULL; | |
25605 | } | |
25606 | ||
25607 | ||
c370783e | 25608 | static PyObject *_wrap_Window_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25609 | PyObject *resultobj; |
25610 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25611 | wxString *arg2 = 0 ; | |
25612 | wxWindow *result; | |
b411df4a | 25613 | bool temp2 = false ; |
d55e5bfc RD |
25614 | PyObject * obj0 = 0 ; |
25615 | PyObject * obj1 = 0 ; | |
25616 | char *kwnames[] = { | |
25617 | (char *) "self",(char *) "name", NULL | |
25618 | }; | |
25619 | ||
25620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
25621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25623 | { | |
25624 | arg2 = wxString_in_helper(obj1); | |
25625 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 25626 | temp2 = true; |
d55e5bfc RD |
25627 | } |
25628 | { | |
25629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25630 | result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2); | |
25631 | ||
25632 | wxPyEndAllowThreads(__tstate); | |
25633 | if (PyErr_Occurred()) SWIG_fail; | |
25634 | } | |
25635 | { | |
412d302d | 25636 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25637 | } |
25638 | { | |
25639 | if (temp2) | |
25640 | delete arg2; | |
25641 | } | |
25642 | return resultobj; | |
25643 | fail: | |
25644 | { | |
25645 | if (temp2) | |
25646 | delete arg2; | |
25647 | } | |
25648 | return NULL; | |
25649 | } | |
25650 | ||
25651 | ||
c370783e | 25652 | static PyObject *_wrap_Window_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25653 | PyObject *resultobj; |
25654 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25655 | wxEvtHandler *result; | |
25656 | PyObject * obj0 = 0 ; | |
25657 | char *kwnames[] = { | |
25658 | (char *) "self", NULL | |
25659 | }; | |
25660 | ||
25661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail; | |
25662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25664 | { | |
25665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25666 | result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler(); | |
25667 | ||
25668 | wxPyEndAllowThreads(__tstate); | |
25669 | if (PyErr_Occurred()) SWIG_fail; | |
25670 | } | |
25671 | { | |
412d302d | 25672 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25673 | } |
25674 | return resultobj; | |
25675 | fail: | |
25676 | return NULL; | |
25677 | } | |
25678 | ||
25679 | ||
c370783e | 25680 | static PyObject *_wrap_Window_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25681 | PyObject *resultobj; |
25682 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25683 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25684 | PyObject * obj0 = 0 ; | |
25685 | PyObject * obj1 = 0 ; | |
25686 | char *kwnames[] = { | |
25687 | (char *) "self",(char *) "handler", NULL | |
25688 | }; | |
25689 | ||
25690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25693 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25695 | { | |
25696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25697 | (arg1)->SetEventHandler(arg2); | |
25698 | ||
25699 | wxPyEndAllowThreads(__tstate); | |
25700 | if (PyErr_Occurred()) SWIG_fail; | |
25701 | } | |
25702 | Py_INCREF(Py_None); resultobj = Py_None; | |
25703 | return resultobj; | |
25704 | fail: | |
25705 | return NULL; | |
25706 | } | |
25707 | ||
25708 | ||
c370783e | 25709 | static PyObject *_wrap_Window_PushEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25710 | PyObject *resultobj; |
25711 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25712 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25713 | PyObject * obj0 = 0 ; | |
25714 | PyObject * obj1 = 0 ; | |
25715 | char *kwnames[] = { | |
25716 | (char *) "self",(char *) "handler", NULL | |
25717 | }; | |
25718 | ||
25719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25722 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25724 | { | |
25725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25726 | (arg1)->PushEventHandler(arg2); | |
25727 | ||
25728 | wxPyEndAllowThreads(__tstate); | |
25729 | if (PyErr_Occurred()) SWIG_fail; | |
25730 | } | |
25731 | Py_INCREF(Py_None); resultobj = Py_None; | |
25732 | return resultobj; | |
25733 | fail: | |
25734 | return NULL; | |
25735 | } | |
25736 | ||
25737 | ||
c370783e | 25738 | static PyObject *_wrap_Window_PopEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25739 | PyObject *resultobj; |
25740 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b411df4a | 25741 | bool arg2 = (bool) false ; |
d55e5bfc RD |
25742 | wxEvtHandler *result; |
25743 | PyObject * obj0 = 0 ; | |
25744 | PyObject * obj1 = 0 ; | |
25745 | char *kwnames[] = { | |
25746 | (char *) "self",(char *) "deleteHandler", NULL | |
25747 | }; | |
25748 | ||
25749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25752 | if (obj1) { | |
c370783e | 25753 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
25754 | if (PyErr_Occurred()) SWIG_fail; |
25755 | } | |
25756 | { | |
25757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25758 | result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2); | |
25759 | ||
25760 | wxPyEndAllowThreads(__tstate); | |
25761 | if (PyErr_Occurred()) SWIG_fail; | |
25762 | } | |
25763 | { | |
412d302d | 25764 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25765 | } |
25766 | return resultobj; | |
25767 | fail: | |
25768 | return NULL; | |
25769 | } | |
25770 | ||
25771 | ||
c370783e | 25772 | static PyObject *_wrap_Window_RemoveEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25773 | PyObject *resultobj; |
25774 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25775 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
25776 | bool result; | |
25777 | PyObject * obj0 = 0 ; | |
25778 | PyObject * obj1 = 0 ; | |
25779 | char *kwnames[] = { | |
25780 | (char *) "self",(char *) "handler", NULL | |
25781 | }; | |
25782 | ||
25783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
25784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25786 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
25787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25788 | { | |
25789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25790 | result = (bool)(arg1)->RemoveEventHandler(arg2); | |
25791 | ||
25792 | wxPyEndAllowThreads(__tstate); | |
25793 | if (PyErr_Occurred()) SWIG_fail; | |
25794 | } | |
25795 | { | |
25796 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25797 | } | |
25798 | return resultobj; | |
25799 | fail: | |
25800 | return NULL; | |
25801 | } | |
25802 | ||
25803 | ||
c370783e | 25804 | static PyObject *_wrap_Window_SetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25805 | PyObject *resultobj; |
25806 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25807 | wxValidator *arg2 = 0 ; | |
25808 | PyObject * obj0 = 0 ; | |
25809 | PyObject * obj1 = 0 ; | |
25810 | char *kwnames[] = { | |
25811 | (char *) "self",(char *) "validator", NULL | |
25812 | }; | |
25813 | ||
25814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail; | |
25815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25817 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator, | |
25818 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25819 | SWIG_fail; | |
25820 | if (arg2 == NULL) { | |
25821 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25822 | SWIG_fail; | |
25823 | } | |
25824 | { | |
25825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25826 | (arg1)->SetValidator((wxValidator const &)*arg2); | |
25827 | ||
25828 | wxPyEndAllowThreads(__tstate); | |
25829 | if (PyErr_Occurred()) SWIG_fail; | |
25830 | } | |
25831 | Py_INCREF(Py_None); resultobj = Py_None; | |
25832 | return resultobj; | |
25833 | fail: | |
25834 | return NULL; | |
25835 | } | |
25836 | ||
25837 | ||
c370783e | 25838 | static PyObject *_wrap_Window_GetValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25839 | PyObject *resultobj; |
25840 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25841 | wxValidator *result; | |
25842 | PyObject * obj0 = 0 ; | |
25843 | char *kwnames[] = { | |
25844 | (char *) "self", NULL | |
25845 | }; | |
25846 | ||
25847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail; | |
25848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25850 | { | |
25851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25852 | result = (wxValidator *)(arg1)->GetValidator(); | |
25853 | ||
25854 | wxPyEndAllowThreads(__tstate); | |
25855 | if (PyErr_Occurred()) SWIG_fail; | |
25856 | } | |
25857 | { | |
412d302d | 25858 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25859 | } |
25860 | return resultobj; | |
25861 | fail: | |
25862 | return NULL; | |
25863 | } | |
25864 | ||
25865 | ||
c370783e | 25866 | static PyObject *_wrap_Window_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25867 | PyObject *resultobj; |
25868 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25869 | bool result; | |
25870 | PyObject * obj0 = 0 ; | |
25871 | char *kwnames[] = { | |
25872 | (char *) "self", NULL | |
25873 | }; | |
25874 | ||
25875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail; | |
25876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25878 | { | |
25879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25880 | result = (bool)(arg1)->Validate(); | |
25881 | ||
25882 | wxPyEndAllowThreads(__tstate); | |
25883 | if (PyErr_Occurred()) SWIG_fail; | |
25884 | } | |
25885 | { | |
25886 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25887 | } | |
25888 | return resultobj; | |
25889 | fail: | |
25890 | return NULL; | |
25891 | } | |
25892 | ||
25893 | ||
c370783e | 25894 | static PyObject *_wrap_Window_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25895 | PyObject *resultobj; |
25896 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25897 | bool result; | |
25898 | PyObject * obj0 = 0 ; | |
25899 | char *kwnames[] = { | |
25900 | (char *) "self", NULL | |
25901 | }; | |
25902 | ||
25903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
25904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25906 | { | |
25907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25908 | result = (bool)(arg1)->TransferDataToWindow(); | |
25909 | ||
25910 | wxPyEndAllowThreads(__tstate); | |
25911 | if (PyErr_Occurred()) SWIG_fail; | |
25912 | } | |
25913 | { | |
25914 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25915 | } | |
25916 | return resultobj; | |
25917 | fail: | |
25918 | return NULL; | |
25919 | } | |
25920 | ||
25921 | ||
c370783e | 25922 | static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25923 | PyObject *resultobj; |
25924 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25925 | bool result; | |
25926 | PyObject * obj0 = 0 ; | |
25927 | char *kwnames[] = { | |
25928 | (char *) "self", NULL | |
25929 | }; | |
25930 | ||
25931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
25932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25934 | { | |
25935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25936 | result = (bool)(arg1)->TransferDataFromWindow(); | |
25937 | ||
25938 | wxPyEndAllowThreads(__tstate); | |
25939 | if (PyErr_Occurred()) SWIG_fail; | |
25940 | } | |
25941 | { | |
25942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25943 | } | |
25944 | return resultobj; | |
25945 | fail: | |
25946 | return NULL; | |
25947 | } | |
25948 | ||
25949 | ||
c370783e | 25950 | static PyObject *_wrap_Window_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25951 | PyObject *resultobj; |
25952 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25953 | PyObject * obj0 = 0 ; | |
25954 | char *kwnames[] = { | |
25955 | (char *) "self", NULL | |
25956 | }; | |
25957 | ||
25958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail; | |
25959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25961 | { | |
25962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25963 | (arg1)->InitDialog(); | |
25964 | ||
25965 | wxPyEndAllowThreads(__tstate); | |
25966 | if (PyErr_Occurred()) SWIG_fail; | |
25967 | } | |
25968 | Py_INCREF(Py_None); resultobj = Py_None; | |
25969 | return resultobj; | |
25970 | fail: | |
25971 | return NULL; | |
25972 | } | |
25973 | ||
25974 | ||
c370783e | 25975 | static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
25976 | PyObject *resultobj; |
25977 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25978 | wxAcceleratorTable *arg2 = 0 ; | |
25979 | PyObject * obj0 = 0 ; | |
25980 | PyObject * obj1 = 0 ; | |
25981 | char *kwnames[] = { | |
25982 | (char *) "self",(char *) "accel", NULL | |
25983 | }; | |
25984 | ||
25985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail; | |
25986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25988 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable, | |
25989 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25990 | SWIG_fail; | |
25991 | if (arg2 == NULL) { | |
25992 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25993 | SWIG_fail; | |
25994 | } | |
25995 | { | |
25996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25997 | (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2); | |
25998 | ||
25999 | wxPyEndAllowThreads(__tstate); | |
26000 | if (PyErr_Occurred()) SWIG_fail; | |
26001 | } | |
26002 | Py_INCREF(Py_None); resultobj = Py_None; | |
26003 | return resultobj; | |
26004 | fail: | |
26005 | return NULL; | |
26006 | } | |
26007 | ||
26008 | ||
c370783e | 26009 | static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26010 | PyObject *resultobj; |
26011 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26012 | wxAcceleratorTable *result; | |
26013 | PyObject * obj0 = 0 ; | |
26014 | char *kwnames[] = { | |
26015 | (char *) "self", NULL | |
26016 | }; | |
26017 | ||
26018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail; | |
26019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26021 | { | |
26022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26023 | result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable(); | |
26024 | ||
26025 | wxPyEndAllowThreads(__tstate); | |
26026 | if (PyErr_Occurred()) SWIG_fail; | |
26027 | } | |
26028 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0); | |
26029 | return resultobj; | |
26030 | fail: | |
26031 | return NULL; | |
26032 | } | |
26033 | ||
26034 | ||
c370783e | 26035 | static PyObject *_wrap_Window_RegisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26036 | PyObject *resultobj; |
26037 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26038 | int arg2 ; | |
26039 | int arg3 ; | |
26040 | int arg4 ; | |
26041 | bool result; | |
26042 | PyObject * obj0 = 0 ; | |
26043 | PyObject * obj1 = 0 ; | |
26044 | PyObject * obj2 = 0 ; | |
26045 | PyObject * obj3 = 0 ; | |
26046 | char *kwnames[] = { | |
26047 | (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL | |
26048 | }; | |
26049 | ||
26050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26053 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26054 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26055 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 26056 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26057 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26058 | if (PyErr_Occurred()) SWIG_fail; |
26059 | { | |
26060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26061 | result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4); | |
26062 | ||
26063 | wxPyEndAllowThreads(__tstate); | |
26064 | if (PyErr_Occurred()) SWIG_fail; | |
26065 | } | |
26066 | { | |
26067 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26068 | } | |
26069 | return resultobj; | |
26070 | fail: | |
26071 | return NULL; | |
26072 | } | |
26073 | ||
26074 | ||
c370783e | 26075 | static PyObject *_wrap_Window_UnregisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26076 | PyObject *resultobj; |
26077 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26078 | int arg2 ; | |
26079 | bool result; | |
26080 | PyObject * obj0 = 0 ; | |
26081 | PyObject * obj1 = 0 ; | |
26082 | char *kwnames[] = { | |
26083 | (char *) "self",(char *) "hotkeyId", NULL | |
26084 | }; | |
26085 | ||
26086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail; | |
26087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26089 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
26090 | if (PyErr_Occurred()) SWIG_fail; |
26091 | { | |
26092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26093 | result = (bool)wxWindow_UnregisterHotKey(arg1,arg2); | |
26094 | ||
26095 | wxPyEndAllowThreads(__tstate); | |
26096 | if (PyErr_Occurred()) SWIG_fail; | |
26097 | } | |
26098 | { | |
26099 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26100 | } | |
26101 | return resultobj; | |
26102 | fail: | |
26103 | return NULL; | |
26104 | } | |
26105 | ||
26106 | ||
c370783e | 26107 | static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26108 | PyObject *resultobj; |
26109 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26110 | wxPoint *arg2 = 0 ; | |
26111 | wxPoint result; | |
26112 | wxPoint temp2 ; | |
26113 | PyObject * obj0 = 0 ; | |
26114 | PyObject * obj1 = 0 ; | |
26115 | char *kwnames[] = { | |
26116 | (char *) "self",(char *) "pt", NULL | |
26117 | }; | |
26118 | ||
26119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail; | |
26120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26122 | { | |
26123 | arg2 = &temp2; | |
26124 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26125 | } | |
26126 | { | |
26127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26128 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
26129 | ||
26130 | wxPyEndAllowThreads(__tstate); | |
26131 | if (PyErr_Occurred()) SWIG_fail; | |
26132 | } | |
26133 | { | |
26134 | wxPoint * resultptr; | |
26135 | resultptr = new wxPoint((wxPoint &) result); | |
26136 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
26137 | } | |
26138 | return resultobj; | |
26139 | fail: | |
26140 | return NULL; | |
26141 | } | |
26142 | ||
26143 | ||
c370783e | 26144 | static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26145 | PyObject *resultobj; |
26146 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26147 | wxSize *arg2 = 0 ; | |
26148 | wxSize result; | |
26149 | wxSize temp2 ; | |
26150 | PyObject * obj0 = 0 ; | |
26151 | PyObject * obj1 = 0 ; | |
26152 | char *kwnames[] = { | |
26153 | (char *) "self",(char *) "sz", NULL | |
26154 | }; | |
26155 | ||
26156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail; | |
26157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26159 | { | |
26160 | arg2 = &temp2; | |
26161 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
26162 | } | |
26163 | { | |
26164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26165 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
26166 | ||
26167 | wxPyEndAllowThreads(__tstate); | |
26168 | if (PyErr_Occurred()) SWIG_fail; | |
26169 | } | |
26170 | { | |
26171 | wxSize * resultptr; | |
26172 | resultptr = new wxSize((wxSize &) result); | |
26173 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
26174 | } | |
26175 | return resultobj; | |
26176 | fail: | |
26177 | return NULL; | |
26178 | } | |
26179 | ||
26180 | ||
c370783e | 26181 | static PyObject *_wrap_Window_DLG_PNT(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26182 | PyObject *resultobj; |
26183 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26184 | wxPoint *arg2 = 0 ; | |
26185 | wxPoint result; | |
26186 | wxPoint temp2 ; | |
26187 | PyObject * obj0 = 0 ; | |
26188 | PyObject * obj1 = 0 ; | |
26189 | char *kwnames[] = { | |
26190 | (char *) "self",(char *) "pt", NULL | |
26191 | }; | |
26192 | ||
26193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail; | |
26194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26196 | { | |
26197 | arg2 = &temp2; | |
26198 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26199 | } | |
26200 | { | |
26201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26202 | result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2); | |
26203 | ||
26204 | wxPyEndAllowThreads(__tstate); | |
26205 | if (PyErr_Occurred()) SWIG_fail; | |
26206 | } | |
26207 | { | |
26208 | wxPoint * resultptr; | |
26209 | resultptr = new wxPoint((wxPoint &) result); | |
26210 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
26211 | } | |
26212 | return resultobj; | |
26213 | fail: | |
26214 | return NULL; | |
26215 | } | |
26216 | ||
26217 | ||
c370783e | 26218 | static PyObject *_wrap_Window_DLG_SZE(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26219 | PyObject *resultobj; |
26220 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26221 | wxSize *arg2 = 0 ; | |
26222 | wxSize result; | |
26223 | wxSize temp2 ; | |
26224 | PyObject * obj0 = 0 ; | |
26225 | PyObject * obj1 = 0 ; | |
26226 | char *kwnames[] = { | |
26227 | (char *) "self",(char *) "sz", NULL | |
26228 | }; | |
26229 | ||
26230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail; | |
26231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26233 | { | |
26234 | arg2 = &temp2; | |
26235 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
26236 | } | |
26237 | { | |
26238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26239 | result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2); | |
26240 | ||
26241 | wxPyEndAllowThreads(__tstate); | |
26242 | if (PyErr_Occurred()) SWIG_fail; | |
26243 | } | |
26244 | { | |
26245 | wxSize * resultptr; | |
26246 | resultptr = new wxSize((wxSize &) result); | |
26247 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
26248 | } | |
26249 | return resultobj; | |
26250 | fail: | |
26251 | return NULL; | |
26252 | } | |
26253 | ||
26254 | ||
c370783e | 26255 | static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26256 | PyObject *resultobj; |
26257 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26258 | wxPoint *arg2 = 0 ; | |
26259 | wxPoint result; | |
26260 | wxPoint temp2 ; | |
26261 | PyObject * obj0 = 0 ; | |
26262 | PyObject * obj1 = 0 ; | |
26263 | char *kwnames[] = { | |
26264 | (char *) "self",(char *) "pt", NULL | |
26265 | }; | |
26266 | ||
26267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail; | |
26268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26270 | { | |
26271 | arg2 = &temp2; | |
26272 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26273 | } | |
26274 | { | |
26275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26276 | result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2); | |
26277 | ||
26278 | wxPyEndAllowThreads(__tstate); | |
26279 | if (PyErr_Occurred()) SWIG_fail; | |
26280 | } | |
26281 | { | |
26282 | wxPoint * resultptr; | |
26283 | resultptr = new wxPoint((wxPoint &) result); | |
26284 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
26285 | } | |
26286 | return resultobj; | |
26287 | fail: | |
26288 | return NULL; | |
26289 | } | |
26290 | ||
26291 | ||
c370783e | 26292 | static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26293 | PyObject *resultobj; |
26294 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26295 | wxSize *arg2 = 0 ; | |
26296 | wxSize result; | |
26297 | wxSize temp2 ; | |
26298 | PyObject * obj0 = 0 ; | |
26299 | PyObject * obj1 = 0 ; | |
26300 | char *kwnames[] = { | |
26301 | (char *) "self",(char *) "sz", NULL | |
26302 | }; | |
26303 | ||
26304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail; | |
26305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26307 | { | |
26308 | arg2 = &temp2; | |
26309 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
26310 | } | |
26311 | { | |
26312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26313 | result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2); | |
26314 | ||
26315 | wxPyEndAllowThreads(__tstate); | |
26316 | if (PyErr_Occurred()) SWIG_fail; | |
26317 | } | |
26318 | { | |
26319 | wxSize * resultptr; | |
26320 | resultptr = new wxSize((wxSize &) result); | |
26321 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
26322 | } | |
26323 | return resultobj; | |
26324 | fail: | |
26325 | return NULL; | |
26326 | } | |
26327 | ||
26328 | ||
c370783e | 26329 | static PyObject *_wrap_Window_WarpPointer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26330 | PyObject *resultobj; |
26331 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26332 | int arg2 ; | |
26333 | int arg3 ; | |
26334 | PyObject * obj0 = 0 ; | |
26335 | PyObject * obj1 = 0 ; | |
26336 | PyObject * obj2 = 0 ; | |
26337 | char *kwnames[] = { | |
26338 | (char *) "self",(char *) "x",(char *) "y", NULL | |
26339 | }; | |
26340 | ||
26341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26344 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26345 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26346 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26347 | if (PyErr_Occurred()) SWIG_fail; |
26348 | { | |
26349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26350 | (arg1)->WarpPointer(arg2,arg3); | |
26351 | ||
26352 | wxPyEndAllowThreads(__tstate); | |
26353 | if (PyErr_Occurred()) SWIG_fail; | |
26354 | } | |
26355 | Py_INCREF(Py_None); resultobj = Py_None; | |
26356 | return resultobj; | |
26357 | fail: | |
26358 | return NULL; | |
26359 | } | |
26360 | ||
26361 | ||
c370783e | 26362 | static PyObject *_wrap_Window_CaptureMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26363 | PyObject *resultobj; |
26364 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26365 | PyObject * obj0 = 0 ; | |
26366 | char *kwnames[] = { | |
26367 | (char *) "self", NULL | |
26368 | }; | |
26369 | ||
26370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail; | |
26371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26373 | { | |
26374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26375 | (arg1)->CaptureMouse(); | |
26376 | ||
26377 | wxPyEndAllowThreads(__tstate); | |
26378 | if (PyErr_Occurred()) SWIG_fail; | |
26379 | } | |
26380 | Py_INCREF(Py_None); resultobj = Py_None; | |
26381 | return resultobj; | |
26382 | fail: | |
26383 | return NULL; | |
26384 | } | |
26385 | ||
26386 | ||
c370783e | 26387 | static PyObject *_wrap_Window_ReleaseMouse(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26388 | PyObject *resultobj; |
26389 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26390 | PyObject * obj0 = 0 ; | |
26391 | char *kwnames[] = { | |
26392 | (char *) "self", NULL | |
26393 | }; | |
26394 | ||
26395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail; | |
26396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26398 | { | |
26399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26400 | (arg1)->ReleaseMouse(); | |
26401 | ||
26402 | wxPyEndAllowThreads(__tstate); | |
26403 | if (PyErr_Occurred()) SWIG_fail; | |
26404 | } | |
26405 | Py_INCREF(Py_None); resultobj = Py_None; | |
26406 | return resultobj; | |
26407 | fail: | |
26408 | return NULL; | |
26409 | } | |
26410 | ||
26411 | ||
c370783e | 26412 | static PyObject *_wrap_Window_GetCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26413 | PyObject *resultobj; |
26414 | wxWindow *result; | |
26415 | char *kwnames[] = { | |
26416 | NULL | |
26417 | }; | |
26418 | ||
26419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail; | |
26420 | { | |
0439c23b | 26421 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
26422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26423 | result = (wxWindow *)wxWindow::GetCapture(); | |
26424 | ||
26425 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26426 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
26427 | } |
26428 | { | |
412d302d | 26429 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
26430 | } |
26431 | return resultobj; | |
26432 | fail: | |
26433 | return NULL; | |
26434 | } | |
26435 | ||
26436 | ||
c370783e | 26437 | static PyObject *_wrap_Window_HasCapture(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26438 | PyObject *resultobj; |
26439 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26440 | bool result; | |
26441 | PyObject * obj0 = 0 ; | |
26442 | char *kwnames[] = { | |
26443 | (char *) "self", NULL | |
26444 | }; | |
26445 | ||
26446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail; | |
26447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26449 | { | |
26450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26451 | result = (bool)((wxWindow const *)arg1)->HasCapture(); | |
26452 | ||
26453 | wxPyEndAllowThreads(__tstate); | |
26454 | if (PyErr_Occurred()) SWIG_fail; | |
26455 | } | |
26456 | { | |
26457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26458 | } | |
26459 | return resultobj; | |
26460 | fail: | |
26461 | return NULL; | |
26462 | } | |
26463 | ||
26464 | ||
c370783e | 26465 | static PyObject *_wrap_Window_Refresh(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26466 | PyObject *resultobj; |
26467 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b411df4a | 26468 | bool arg2 = (bool) true ; |
d55e5bfc RD |
26469 | wxRect *arg3 = (wxRect *) NULL ; |
26470 | PyObject * obj0 = 0 ; | |
26471 | PyObject * obj1 = 0 ; | |
26472 | PyObject * obj2 = 0 ; | |
26473 | char *kwnames[] = { | |
26474 | (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL | |
26475 | }; | |
26476 | ||
26477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26480 | if (obj1) { | |
c370783e | 26481 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
26482 | if (PyErr_Occurred()) SWIG_fail; |
26483 | } | |
26484 | if (obj2) { | |
26485 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect, | |
26486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26487 | } | |
26488 | { | |
26489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26490 | (arg1)->Refresh(arg2,(wxRect const *)arg3); | |
26491 | ||
26492 | wxPyEndAllowThreads(__tstate); | |
26493 | if (PyErr_Occurred()) SWIG_fail; | |
26494 | } | |
26495 | Py_INCREF(Py_None); resultobj = Py_None; | |
26496 | return resultobj; | |
26497 | fail: | |
26498 | return NULL; | |
26499 | } | |
26500 | ||
26501 | ||
c370783e | 26502 | static PyObject *_wrap_Window_RefreshRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26503 | PyObject *resultobj; |
26504 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26505 | wxRect *arg2 = 0 ; | |
26506 | wxRect temp2 ; | |
26507 | PyObject * obj0 = 0 ; | |
26508 | PyObject * obj1 = 0 ; | |
26509 | char *kwnames[] = { | |
26510 | (char *) "self",(char *) "rect", NULL | |
26511 | }; | |
26512 | ||
26513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail; | |
26514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26516 | { | |
26517 | arg2 = &temp2; | |
26518 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
26519 | } | |
26520 | { | |
26521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26522 | (arg1)->RefreshRect((wxRect const &)*arg2); | |
26523 | ||
26524 | wxPyEndAllowThreads(__tstate); | |
26525 | if (PyErr_Occurred()) SWIG_fail; | |
26526 | } | |
26527 | Py_INCREF(Py_None); resultobj = Py_None; | |
26528 | return resultobj; | |
26529 | fail: | |
26530 | return NULL; | |
26531 | } | |
26532 | ||
26533 | ||
c370783e | 26534 | static PyObject *_wrap_Window_Update(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26535 | PyObject *resultobj; |
26536 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26537 | PyObject * obj0 = 0 ; | |
26538 | char *kwnames[] = { | |
26539 | (char *) "self", NULL | |
26540 | }; | |
26541 | ||
26542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail; | |
26543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26545 | { | |
26546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26547 | (arg1)->Update(); | |
26548 | ||
26549 | wxPyEndAllowThreads(__tstate); | |
26550 | if (PyErr_Occurred()) SWIG_fail; | |
26551 | } | |
26552 | Py_INCREF(Py_None); resultobj = Py_None; | |
26553 | return resultobj; | |
26554 | fail: | |
26555 | return NULL; | |
26556 | } | |
26557 | ||
26558 | ||
c370783e | 26559 | static PyObject *_wrap_Window_ClearBackground(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26560 | PyObject *resultobj; |
26561 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26562 | PyObject * obj0 = 0 ; | |
26563 | char *kwnames[] = { | |
26564 | (char *) "self", NULL | |
26565 | }; | |
26566 | ||
26567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail; | |
26568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26570 | { | |
26571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26572 | (arg1)->ClearBackground(); | |
26573 | ||
26574 | wxPyEndAllowThreads(__tstate); | |
26575 | if (PyErr_Occurred()) SWIG_fail; | |
26576 | } | |
26577 | Py_INCREF(Py_None); resultobj = Py_None; | |
26578 | return resultobj; | |
26579 | fail: | |
26580 | return NULL; | |
26581 | } | |
26582 | ||
26583 | ||
c370783e | 26584 | static PyObject *_wrap_Window_Freeze(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26585 | PyObject *resultobj; |
26586 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26587 | PyObject * obj0 = 0 ; | |
26588 | char *kwnames[] = { | |
26589 | (char *) "self", NULL | |
26590 | }; | |
26591 | ||
26592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail; | |
26593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26595 | { | |
26596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26597 | (arg1)->Freeze(); | |
26598 | ||
26599 | wxPyEndAllowThreads(__tstate); | |
26600 | if (PyErr_Occurred()) SWIG_fail; | |
26601 | } | |
26602 | Py_INCREF(Py_None); resultobj = Py_None; | |
26603 | return resultobj; | |
26604 | fail: | |
26605 | return NULL; | |
26606 | } | |
26607 | ||
26608 | ||
c370783e | 26609 | static PyObject *_wrap_Window_Thaw(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26610 | PyObject *resultobj; |
26611 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26612 | PyObject * obj0 = 0 ; | |
26613 | char *kwnames[] = { | |
26614 | (char *) "self", NULL | |
26615 | }; | |
26616 | ||
26617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail; | |
26618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26620 | { | |
26621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26622 | (arg1)->Thaw(); | |
26623 | ||
26624 | wxPyEndAllowThreads(__tstate); | |
26625 | if (PyErr_Occurred()) SWIG_fail; | |
26626 | } | |
26627 | Py_INCREF(Py_None); resultobj = Py_None; | |
26628 | return resultobj; | |
26629 | fail: | |
26630 | return NULL; | |
26631 | } | |
26632 | ||
26633 | ||
c370783e | 26634 | static PyObject *_wrap_Window_PrepareDC(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26635 | PyObject *resultobj; |
26636 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26637 | wxDC *arg2 = 0 ; | |
26638 | PyObject * obj0 = 0 ; | |
26639 | PyObject * obj1 = 0 ; | |
26640 | char *kwnames[] = { | |
26641 | (char *) "self",(char *) "dc", NULL | |
26642 | }; | |
26643 | ||
26644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail; | |
26645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26647 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
26648 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26649 | SWIG_fail; | |
26650 | if (arg2 == NULL) { | |
26651 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26652 | SWIG_fail; | |
26653 | } | |
26654 | { | |
26655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26656 | (arg1)->PrepareDC(*arg2); | |
26657 | ||
26658 | wxPyEndAllowThreads(__tstate); | |
26659 | if (PyErr_Occurred()) SWIG_fail; | |
26660 | } | |
26661 | Py_INCREF(Py_None); resultobj = Py_None; | |
26662 | return resultobj; | |
26663 | fail: | |
26664 | return NULL; | |
26665 | } | |
26666 | ||
26667 | ||
c370783e | 26668 | static PyObject *_wrap_Window_GetUpdateRegion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26669 | PyObject *resultobj; |
26670 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26671 | wxRegion *result; | |
26672 | PyObject * obj0 = 0 ; | |
26673 | char *kwnames[] = { | |
26674 | (char *) "self", NULL | |
26675 | }; | |
26676 | ||
26677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail; | |
26678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26680 | { | |
26681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26682 | { | |
26683 | wxRegion &_result_ref = (arg1)->GetUpdateRegion(); | |
26684 | result = (wxRegion *) &_result_ref; | |
26685 | } | |
26686 | ||
26687 | wxPyEndAllowThreads(__tstate); | |
26688 | if (PyErr_Occurred()) SWIG_fail; | |
26689 | } | |
26690 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0); | |
26691 | return resultobj; | |
26692 | fail: | |
26693 | return NULL; | |
26694 | } | |
26695 | ||
26696 | ||
c370783e | 26697 | static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26698 | PyObject *resultobj; |
26699 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26700 | wxRect result; | |
26701 | PyObject * obj0 = 0 ; | |
26702 | char *kwnames[] = { | |
26703 | (char *) "self", NULL | |
26704 | }; | |
26705 | ||
26706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail; | |
26707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26709 | { | |
26710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26711 | result = ((wxWindow const *)arg1)->GetUpdateClientRect(); | |
26712 | ||
26713 | wxPyEndAllowThreads(__tstate); | |
26714 | if (PyErr_Occurred()) SWIG_fail; | |
26715 | } | |
26716 | { | |
26717 | wxRect * resultptr; | |
26718 | resultptr = new wxRect((wxRect &) result); | |
26719 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
26720 | } | |
26721 | return resultobj; | |
26722 | fail: | |
26723 | return NULL; | |
26724 | } | |
26725 | ||
26726 | ||
c370783e | 26727 | static PyObject *_wrap_Window_IsExposed(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26728 | PyObject *resultobj; |
26729 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26730 | int arg2 ; | |
26731 | int arg3 ; | |
26732 | int arg4 = (int) 1 ; | |
26733 | int arg5 = (int) 1 ; | |
26734 | bool result; | |
26735 | PyObject * obj0 = 0 ; | |
26736 | PyObject * obj1 = 0 ; | |
26737 | PyObject * obj2 = 0 ; | |
26738 | PyObject * obj3 = 0 ; | |
26739 | PyObject * obj4 = 0 ; | |
26740 | char *kwnames[] = { | |
26741 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
26742 | }; | |
26743 | ||
26744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 26747 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 26748 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 26749 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
26750 | if (PyErr_Occurred()) SWIG_fail; |
26751 | if (obj3) { | |
c370783e | 26752 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
26753 | if (PyErr_Occurred()) SWIG_fail; |
26754 | } | |
26755 | if (obj4) { | |
c370783e | 26756 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
26757 | if (PyErr_Occurred()) SWIG_fail; |
26758 | } | |
26759 | { | |
26760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26761 | result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5); | |
26762 | ||
26763 | wxPyEndAllowThreads(__tstate); | |
26764 | if (PyErr_Occurred()) SWIG_fail; | |
26765 | } | |
26766 | { | |
26767 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26768 | } | |
26769 | return resultobj; | |
26770 | fail: | |
26771 | return NULL; | |
26772 | } | |
26773 | ||
26774 | ||
c370783e | 26775 | static PyObject *_wrap_Window_IsExposedPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26776 | PyObject *resultobj; |
26777 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26778 | wxPoint *arg2 = 0 ; | |
26779 | bool result; | |
26780 | wxPoint temp2 ; | |
26781 | PyObject * obj0 = 0 ; | |
26782 | PyObject * obj1 = 0 ; | |
26783 | char *kwnames[] = { | |
26784 | (char *) "self",(char *) "pt", NULL | |
26785 | }; | |
26786 | ||
26787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail; | |
26788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26790 | { | |
26791 | arg2 = &temp2; | |
26792 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26793 | } | |
26794 | { | |
26795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26796 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2); | |
26797 | ||
26798 | wxPyEndAllowThreads(__tstate); | |
26799 | if (PyErr_Occurred()) SWIG_fail; | |
26800 | } | |
26801 | { | |
26802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26803 | } | |
26804 | return resultobj; | |
26805 | fail: | |
26806 | return NULL; | |
26807 | } | |
26808 | ||
26809 | ||
c370783e | 26810 | static PyObject *_wrap_Window_IsExposedRect(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26811 | PyObject *resultobj; |
26812 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26813 | wxRect *arg2 = 0 ; | |
26814 | bool result; | |
26815 | wxRect temp2 ; | |
26816 | PyObject * obj0 = 0 ; | |
26817 | PyObject * obj1 = 0 ; | |
26818 | char *kwnames[] = { | |
26819 | (char *) "self",(char *) "rect", NULL | |
26820 | }; | |
26821 | ||
26822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail; | |
26823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26825 | { | |
26826 | arg2 = &temp2; | |
26827 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
26828 | } | |
26829 | { | |
26830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26831 | result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2); | |
26832 | ||
26833 | wxPyEndAllowThreads(__tstate); | |
26834 | if (PyErr_Occurred()) SWIG_fail; | |
26835 | } | |
26836 | { | |
26837 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26838 | } | |
26839 | return resultobj; | |
26840 | fail: | |
26841 | return NULL; | |
26842 | } | |
26843 | ||
26844 | ||
c370783e | 26845 | static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26846 | PyObject *resultobj; |
26847 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26848 | wxVisualAttributes result; | |
26849 | PyObject * obj0 = 0 ; | |
26850 | char *kwnames[] = { | |
26851 | (char *) "self", NULL | |
26852 | }; | |
26853 | ||
26854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
26855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26857 | { | |
26858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26859 | result = ((wxWindow const *)arg1)->GetDefaultAttributes(); | |
26860 | ||
26861 | wxPyEndAllowThreads(__tstate); | |
26862 | if (PyErr_Occurred()) SWIG_fail; | |
26863 | } | |
26864 | { | |
26865 | wxVisualAttributes * resultptr; | |
26866 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
26867 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
26868 | } | |
26869 | return resultobj; | |
26870 | fail: | |
26871 | return NULL; | |
26872 | } | |
26873 | ||
26874 | ||
c370783e | 26875 | static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26876 | PyObject *resultobj; |
26877 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
26878 | wxVisualAttributes result; | |
26879 | PyObject * obj0 = 0 ; | |
26880 | char *kwnames[] = { | |
26881 | (char *) "variant", NULL | |
26882 | }; | |
26883 | ||
26884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
26885 | if (obj0) { | |
c370783e | 26886 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
26887 | if (PyErr_Occurred()) SWIG_fail; |
26888 | } | |
26889 | { | |
0439c23b | 26890 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
26891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
26892 | result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
26893 | ||
26894 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 26895 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
26896 | } |
26897 | { | |
26898 | wxVisualAttributes * resultptr; | |
26899 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
26900 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
26901 | } | |
26902 | return resultobj; | |
26903 | fail: | |
26904 | return NULL; | |
26905 | } | |
26906 | ||
26907 | ||
c370783e | 26908 | static PyObject *_wrap_Window_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26909 | PyObject *resultobj; |
26910 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26911 | wxColour *arg2 = 0 ; | |
26912 | bool result; | |
26913 | wxColour temp2 ; | |
26914 | PyObject * obj0 = 0 ; | |
26915 | PyObject * obj1 = 0 ; | |
26916 | char *kwnames[] = { | |
26917 | (char *) "self",(char *) "colour", NULL | |
26918 | }; | |
26919 | ||
26920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
26921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26923 | { | |
26924 | arg2 = &temp2; | |
26925 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26926 | } | |
26927 | { | |
26928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26929 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
26930 | ||
26931 | wxPyEndAllowThreads(__tstate); | |
26932 | if (PyErr_Occurred()) SWIG_fail; | |
26933 | } | |
26934 | { | |
26935 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26936 | } | |
26937 | return resultobj; | |
26938 | fail: | |
26939 | return NULL; | |
26940 | } | |
26941 | ||
26942 | ||
c370783e | 26943 | static PyObject *_wrap_Window_SetOwnBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26944 | PyObject *resultobj; |
26945 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26946 | wxColour *arg2 = 0 ; | |
26947 | wxColour temp2 ; | |
26948 | PyObject * obj0 = 0 ; | |
26949 | PyObject * obj1 = 0 ; | |
26950 | char *kwnames[] = { | |
26951 | (char *) "self",(char *) "colour", NULL | |
26952 | }; | |
26953 | ||
412d302d | 26954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
26955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
26956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26957 | { | |
26958 | arg2 = &temp2; | |
26959 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26960 | } | |
26961 | { | |
26962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
412d302d | 26963 | (arg1)->SetOwnBackgroundColour((wxColour const &)*arg2); |
d55e5bfc RD |
26964 | |
26965 | wxPyEndAllowThreads(__tstate); | |
26966 | if (PyErr_Occurred()) SWIG_fail; | |
26967 | } | |
26968 | Py_INCREF(Py_None); resultobj = Py_None; | |
26969 | return resultobj; | |
26970 | fail: | |
26971 | return NULL; | |
26972 | } | |
26973 | ||
26974 | ||
c370783e | 26975 | static PyObject *_wrap_Window_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
26976 | PyObject *resultobj; |
26977 | wxWindow *arg1 = (wxWindow *) 0 ; | |
26978 | wxColour *arg2 = 0 ; | |
26979 | bool result; | |
26980 | wxColour temp2 ; | |
26981 | PyObject * obj0 = 0 ; | |
26982 | PyObject * obj1 = 0 ; | |
26983 | char *kwnames[] = { | |
26984 | (char *) "self",(char *) "colour", NULL | |
26985 | }; | |
26986 | ||
26987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
26988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
26989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26990 | { | |
26991 | arg2 = &temp2; | |
26992 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26993 | } | |
26994 | { | |
26995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26996 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
26997 | ||
26998 | wxPyEndAllowThreads(__tstate); | |
26999 | if (PyErr_Occurred()) SWIG_fail; | |
27000 | } | |
27001 | { | |
27002 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27003 | } | |
27004 | return resultobj; | |
27005 | fail: | |
27006 | return NULL; | |
27007 | } | |
27008 | ||
27009 | ||
c370783e | 27010 | static PyObject *_wrap_Window_SetOwnForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27011 | PyObject *resultobj; |
27012 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27013 | wxColour *arg2 = 0 ; | |
27014 | wxColour temp2 ; | |
27015 | PyObject * obj0 = 0 ; | |
27016 | PyObject * obj1 = 0 ; | |
27017 | char *kwnames[] = { | |
27018 | (char *) "self",(char *) "colour", NULL | |
27019 | }; | |
27020 | ||
fa47d7a7 | 27021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnForegroundColour",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
27022 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27023 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27024 | { | |
27025 | arg2 = &temp2; | |
27026 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
27027 | } | |
27028 | { | |
27029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 27030 | (arg1)->SetOwnForegroundColour((wxColour const &)*arg2); |
d55e5bfc RD |
27031 | |
27032 | wxPyEndAllowThreads(__tstate); | |
27033 | if (PyErr_Occurred()) SWIG_fail; | |
27034 | } | |
27035 | Py_INCREF(Py_None); resultobj = Py_None; | |
27036 | return resultobj; | |
27037 | fail: | |
27038 | return NULL; | |
27039 | } | |
27040 | ||
27041 | ||
c370783e | 27042 | static PyObject *_wrap_Window_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27043 | PyObject *resultobj; |
27044 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27045 | wxColour result; | |
27046 | PyObject * obj0 = 0 ; | |
27047 | char *kwnames[] = { | |
27048 | (char *) "self", NULL | |
27049 | }; | |
27050 | ||
27051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
27052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27054 | { | |
27055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27056 | result = ((wxWindow const *)arg1)->GetBackgroundColour(); | |
27057 | ||
27058 | wxPyEndAllowThreads(__tstate); | |
27059 | if (PyErr_Occurred()) SWIG_fail; | |
27060 | } | |
27061 | { | |
27062 | wxColour * resultptr; | |
27063 | resultptr = new wxColour((wxColour &) result); | |
27064 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
27065 | } | |
27066 | return resultobj; | |
27067 | fail: | |
27068 | return NULL; | |
27069 | } | |
27070 | ||
27071 | ||
c370783e | 27072 | static PyObject *_wrap_Window_GetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27073 | PyObject *resultobj; |
27074 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27075 | wxColour result; | |
27076 | PyObject * obj0 = 0 ; | |
27077 | char *kwnames[] = { | |
27078 | (char *) "self", NULL | |
27079 | }; | |
27080 | ||
27081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail; | |
27082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27084 | { | |
27085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27086 | result = ((wxWindow const *)arg1)->GetForegroundColour(); | |
27087 | ||
27088 | wxPyEndAllowThreads(__tstate); | |
27089 | if (PyErr_Occurred()) SWIG_fail; | |
27090 | } | |
27091 | { | |
27092 | wxColour * resultptr; | |
27093 | resultptr = new wxColour((wxColour &) result); | |
27094 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
27095 | } | |
27096 | return resultobj; | |
27097 | fail: | |
27098 | return NULL; | |
27099 | } | |
27100 | ||
27101 | ||
c370783e | 27102 | static PyObject *_wrap_Window_SetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
0f63ec68 RD |
27103 | PyObject *resultobj; |
27104 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27105 | int arg2 ; | |
27106 | bool result; | |
27107 | PyObject * obj0 = 0 ; | |
27108 | PyObject * obj1 = 0 ; | |
27109 | char *kwnames[] = { | |
27110 | (char *) "self",(char *) "style", NULL | |
27111 | }; | |
27112 | ||
27113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundStyle",kwnames,&obj0,&obj1)) goto fail; | |
27114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27116 | arg2 = (int)SWIG_As_int(obj1); |
0f63ec68 RD |
27117 | if (PyErr_Occurred()) SWIG_fail; |
27118 | { | |
27119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27120 | result = (bool)(arg1)->SetBackgroundStyle((wxBackgroundStyle )arg2); | |
27121 | ||
27122 | wxPyEndAllowThreads(__tstate); | |
27123 | if (PyErr_Occurred()) SWIG_fail; | |
27124 | } | |
27125 | { | |
27126 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27127 | } | |
27128 | return resultobj; | |
27129 | fail: | |
27130 | return NULL; | |
27131 | } | |
27132 | ||
27133 | ||
c370783e | 27134 | static PyObject *_wrap_Window_GetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
0f63ec68 RD |
27135 | PyObject *resultobj; |
27136 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27137 | int result; | |
27138 | PyObject * obj0 = 0 ; | |
27139 | char *kwnames[] = { | |
27140 | (char *) "self", NULL | |
27141 | }; | |
27142 | ||
27143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundStyle",kwnames,&obj0)) goto fail; | |
27144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27146 | { | |
27147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27148 | result = (int)((wxWindow const *)arg1)->GetBackgroundStyle(); | |
27149 | ||
27150 | wxPyEndAllowThreads(__tstate); | |
27151 | if (PyErr_Occurred()) SWIG_fail; | |
27152 | } | |
c370783e | 27153 | resultobj = SWIG_From_int((int)result); |
0f63ec68 RD |
27154 | return resultobj; |
27155 | fail: | |
27156 | return NULL; | |
27157 | } | |
27158 | ||
27159 | ||
c370783e | 27160 | static PyObject *_wrap_Window_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27161 | PyObject *resultobj; |
27162 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27163 | wxCursor *arg2 = 0 ; | |
27164 | bool result; | |
27165 | PyObject * obj0 = 0 ; | |
27166 | PyObject * obj1 = 0 ; | |
27167 | char *kwnames[] = { | |
27168 | (char *) "self",(char *) "cursor", NULL | |
27169 | }; | |
27170 | ||
27171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail; | |
27172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27174 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
27175 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27176 | SWIG_fail; | |
27177 | if (arg2 == NULL) { | |
27178 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27179 | SWIG_fail; | |
27180 | } | |
27181 | { | |
27182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27183 | result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2); | |
27184 | ||
27185 | wxPyEndAllowThreads(__tstate); | |
27186 | if (PyErr_Occurred()) SWIG_fail; | |
27187 | } | |
27188 | { | |
27189 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27190 | } | |
27191 | return resultobj; | |
27192 | fail: | |
27193 | return NULL; | |
27194 | } | |
27195 | ||
27196 | ||
c370783e | 27197 | static PyObject *_wrap_Window_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27198 | PyObject *resultobj; |
27199 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a001823c | 27200 | wxCursor result; |
d55e5bfc RD |
27201 | PyObject * obj0 = 0 ; |
27202 | char *kwnames[] = { | |
27203 | (char *) "self", NULL | |
27204 | }; | |
27205 | ||
27206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail; | |
27207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27209 | { | |
27210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a001823c | 27211 | result = (arg1)->GetCursor(); |
d55e5bfc RD |
27212 | |
27213 | wxPyEndAllowThreads(__tstate); | |
27214 | if (PyErr_Occurred()) SWIG_fail; | |
27215 | } | |
27216 | { | |
a001823c RD |
27217 | wxCursor * resultptr; |
27218 | resultptr = new wxCursor((wxCursor &) result); | |
27219 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxCursor, 1); | |
d55e5bfc RD |
27220 | } |
27221 | return resultobj; | |
27222 | fail: | |
27223 | return NULL; | |
27224 | } | |
27225 | ||
27226 | ||
c370783e | 27227 | static PyObject *_wrap_Window_SetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27228 | PyObject *resultobj; |
27229 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27230 | wxFont *arg2 = 0 ; | |
27231 | bool result; | |
27232 | PyObject * obj0 = 0 ; | |
27233 | PyObject * obj1 = 0 ; | |
27234 | char *kwnames[] = { | |
27235 | (char *) "self",(char *) "font", NULL | |
27236 | }; | |
27237 | ||
27238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
27239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27241 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
27242 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27243 | SWIG_fail; | |
27244 | if (arg2 == NULL) { | |
27245 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27246 | SWIG_fail; | |
27247 | } | |
27248 | { | |
27249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27250 | result = (bool)(arg1)->SetFont((wxFont const &)*arg2); | |
27251 | ||
27252 | wxPyEndAllowThreads(__tstate); | |
27253 | if (PyErr_Occurred()) SWIG_fail; | |
27254 | } | |
27255 | { | |
27256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27257 | } | |
27258 | return resultobj; | |
27259 | fail: | |
27260 | return NULL; | |
27261 | } | |
27262 | ||
27263 | ||
c370783e | 27264 | static PyObject *_wrap_Window_SetOwnFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27265 | PyObject *resultobj; |
27266 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27267 | wxFont *arg2 = 0 ; | |
27268 | PyObject * obj0 = 0 ; | |
27269 | PyObject * obj1 = 0 ; | |
27270 | char *kwnames[] = { | |
27271 | (char *) "self",(char *) "font", NULL | |
27272 | }; | |
27273 | ||
fa47d7a7 | 27274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnFont",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
27275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27277 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
27278 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27279 | SWIG_fail; | |
27280 | if (arg2 == NULL) { | |
27281 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27282 | SWIG_fail; | |
27283 | } | |
27284 | { | |
27285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fa47d7a7 | 27286 | (arg1)->SetOwnFont((wxFont const &)*arg2); |
d55e5bfc RD |
27287 | |
27288 | wxPyEndAllowThreads(__tstate); | |
27289 | if (PyErr_Occurred()) SWIG_fail; | |
27290 | } | |
27291 | Py_INCREF(Py_None); resultobj = Py_None; | |
27292 | return resultobj; | |
27293 | fail: | |
27294 | return NULL; | |
27295 | } | |
27296 | ||
27297 | ||
c370783e | 27298 | static PyObject *_wrap_Window_GetFont(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27299 | PyObject *resultobj; |
27300 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a001823c | 27301 | wxFont result; |
d55e5bfc RD |
27302 | PyObject * obj0 = 0 ; |
27303 | char *kwnames[] = { | |
27304 | (char *) "self", NULL | |
27305 | }; | |
27306 | ||
27307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail; | |
27308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27310 | { | |
27311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a001823c | 27312 | result = (arg1)->GetFont(); |
d55e5bfc RD |
27313 | |
27314 | wxPyEndAllowThreads(__tstate); | |
27315 | if (PyErr_Occurred()) SWIG_fail; | |
27316 | } | |
27317 | { | |
a001823c RD |
27318 | wxFont * resultptr; |
27319 | resultptr = new wxFont((wxFont &) result); | |
27320 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
d55e5bfc RD |
27321 | } |
27322 | return resultobj; | |
27323 | fail: | |
27324 | return NULL; | |
27325 | } | |
27326 | ||
27327 | ||
c370783e | 27328 | static PyObject *_wrap_Window_SetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27329 | PyObject *resultobj; |
27330 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27331 | wxCaret *arg2 = (wxCaret *) 0 ; | |
27332 | PyObject * obj0 = 0 ; | |
27333 | PyObject * obj1 = 0 ; | |
27334 | char *kwnames[] = { | |
27335 | (char *) "self",(char *) "caret", NULL | |
27336 | }; | |
27337 | ||
27338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail; | |
27339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27341 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret, | |
27342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27343 | { | |
27344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27345 | (arg1)->SetCaret(arg2); | |
27346 | ||
27347 | wxPyEndAllowThreads(__tstate); | |
27348 | if (PyErr_Occurred()) SWIG_fail; | |
27349 | } | |
27350 | Py_INCREF(Py_None); resultobj = Py_None; | |
27351 | return resultobj; | |
27352 | fail: | |
27353 | return NULL; | |
27354 | } | |
27355 | ||
27356 | ||
c370783e | 27357 | static PyObject *_wrap_Window_GetCaret(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27358 | PyObject *resultobj; |
27359 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27360 | wxCaret *result; | |
27361 | PyObject * obj0 = 0 ; | |
27362 | char *kwnames[] = { | |
27363 | (char *) "self", NULL | |
27364 | }; | |
27365 | ||
27366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail; | |
27367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27369 | { | |
27370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27371 | result = (wxCaret *)((wxWindow const *)arg1)->GetCaret(); | |
27372 | ||
27373 | wxPyEndAllowThreads(__tstate); | |
27374 | if (PyErr_Occurred()) SWIG_fail; | |
27375 | } | |
27376 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0); | |
27377 | return resultobj; | |
27378 | fail: | |
27379 | return NULL; | |
27380 | } | |
27381 | ||
27382 | ||
c370783e | 27383 | static PyObject *_wrap_Window_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27384 | PyObject *resultobj; |
27385 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27386 | int result; | |
27387 | PyObject * obj0 = 0 ; | |
27388 | char *kwnames[] = { | |
27389 | (char *) "self", NULL | |
27390 | }; | |
27391 | ||
27392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail; | |
27393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27395 | { | |
27396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27397 | result = (int)((wxWindow const *)arg1)->GetCharHeight(); | |
27398 | ||
27399 | wxPyEndAllowThreads(__tstate); | |
27400 | if (PyErr_Occurred()) SWIG_fail; | |
27401 | } | |
c370783e | 27402 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27403 | return resultobj; |
27404 | fail: | |
27405 | return NULL; | |
27406 | } | |
27407 | ||
27408 | ||
c370783e | 27409 | static PyObject *_wrap_Window_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27410 | PyObject *resultobj; |
27411 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27412 | int result; | |
27413 | PyObject * obj0 = 0 ; | |
27414 | char *kwnames[] = { | |
27415 | (char *) "self", NULL | |
27416 | }; | |
27417 | ||
27418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail; | |
27419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27421 | { | |
27422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27423 | result = (int)((wxWindow const *)arg1)->GetCharWidth(); | |
27424 | ||
27425 | wxPyEndAllowThreads(__tstate); | |
27426 | if (PyErr_Occurred()) SWIG_fail; | |
27427 | } | |
c370783e | 27428 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27429 | return resultobj; |
27430 | fail: | |
27431 | return NULL; | |
27432 | } | |
27433 | ||
27434 | ||
c370783e | 27435 | static PyObject *_wrap_Window_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27436 | PyObject *resultobj; |
27437 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27438 | wxString *arg2 = 0 ; | |
27439 | int *arg3 = (int *) 0 ; | |
27440 | int *arg4 = (int *) 0 ; | |
b411df4a | 27441 | bool temp2 = false ; |
d55e5bfc | 27442 | int temp3 ; |
c370783e | 27443 | int res3 = 0 ; |
d55e5bfc | 27444 | int temp4 ; |
c370783e | 27445 | int res4 = 0 ; |
d55e5bfc RD |
27446 | PyObject * obj0 = 0 ; |
27447 | PyObject * obj1 = 0 ; | |
27448 | char *kwnames[] = { | |
27449 | (char *) "self",(char *) "string", NULL | |
27450 | }; | |
27451 | ||
c370783e RD |
27452 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
27453 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
d55e5bfc RD |
27454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail; |
27455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27457 | { | |
27458 | arg2 = wxString_in_helper(obj1); | |
27459 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 27460 | temp2 = true; |
d55e5bfc RD |
27461 | } |
27462 | { | |
27463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27464 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
27465 | ||
27466 | wxPyEndAllowThreads(__tstate); | |
27467 | if (PyErr_Occurred()) SWIG_fail; | |
27468 | } | |
27469 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
27470 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
27471 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
27472 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
27473 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27474 | { |
27475 | if (temp2) | |
27476 | delete arg2; | |
27477 | } | |
27478 | return resultobj; | |
27479 | fail: | |
27480 | { | |
27481 | if (temp2) | |
27482 | delete arg2; | |
27483 | } | |
27484 | return NULL; | |
27485 | } | |
27486 | ||
27487 | ||
c370783e | 27488 | static PyObject *_wrap_Window_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27489 | PyObject *resultobj; |
27490 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27491 | wxString *arg2 = 0 ; | |
27492 | int *arg3 = (int *) 0 ; | |
27493 | int *arg4 = (int *) 0 ; | |
27494 | int *arg5 = (int *) 0 ; | |
27495 | int *arg6 = (int *) 0 ; | |
27496 | wxFont *arg7 = (wxFont *) NULL ; | |
b411df4a | 27497 | bool temp2 = false ; |
d55e5bfc | 27498 | int temp3 ; |
c370783e | 27499 | int res3 = 0 ; |
d55e5bfc | 27500 | int temp4 ; |
c370783e | 27501 | int res4 = 0 ; |
d55e5bfc | 27502 | int temp5 ; |
c370783e | 27503 | int res5 = 0 ; |
d55e5bfc | 27504 | int temp6 ; |
c370783e | 27505 | int res6 = 0 ; |
d55e5bfc RD |
27506 | PyObject * obj0 = 0 ; |
27507 | PyObject * obj1 = 0 ; | |
27508 | PyObject * obj2 = 0 ; | |
27509 | char *kwnames[] = { | |
27510 | (char *) "self",(char *) "string",(char *) "font", NULL | |
27511 | }; | |
27512 | ||
c370783e RD |
27513 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
27514 | arg4 = &temp4; res4 = SWIG_NEWOBJ; | |
27515 | arg5 = &temp5; res5 = SWIG_NEWOBJ; | |
27516 | arg6 = &temp6; res6 = SWIG_NEWOBJ; | |
d55e5bfc RD |
27517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
27518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27520 | { | |
27521 | arg2 = wxString_in_helper(obj1); | |
27522 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 27523 | temp2 = true; |
d55e5bfc RD |
27524 | } |
27525 | if (obj2) { | |
27526 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont, | |
27527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27528 | } | |
27529 | { | |
27530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27531 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7); | |
27532 | ||
27533 | wxPyEndAllowThreads(__tstate); | |
27534 | if (PyErr_Occurred()) SWIG_fail; | |
27535 | } | |
27536 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
27537 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
27538 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
27539 | resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ? | |
27540 | SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0))); | |
27541 | resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ? | |
27542 | SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0))); | |
27543 | resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ? | |
27544 | SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27545 | { |
27546 | if (temp2) | |
27547 | delete arg2; | |
27548 | } | |
27549 | return resultobj; | |
27550 | fail: | |
27551 | { | |
27552 | if (temp2) | |
27553 | delete arg2; | |
27554 | } | |
27555 | return NULL; | |
27556 | } | |
27557 | ||
27558 | ||
c370783e | 27559 | static PyObject *_wrap_Window_ClientToScreenXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27560 | PyObject *resultobj; |
27561 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27562 | int *arg2 = (int *) 0 ; | |
27563 | int *arg3 = (int *) 0 ; | |
27564 | int temp2 ; | |
c370783e | 27565 | int res2 = 0 ; |
d55e5bfc | 27566 | int temp3 ; |
c370783e | 27567 | int res3 = 0 ; |
d55e5bfc RD |
27568 | PyObject * obj0 = 0 ; |
27569 | PyObject * obj1 = 0 ; | |
27570 | PyObject * obj2 = 0 ; | |
27571 | char *kwnames[] = { | |
27572 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27573 | }; | |
27574 | ||
27575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27578 | { | |
c370783e RD |
27579 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) { |
27580 | temp2 = SWIG_As_int(obj1); | |
27581 | if (PyErr_Occurred()) SWIG_fail; | |
27582 | arg2 = &temp2; | |
27583 | res2 = SWIG_NEWOBJ; | |
27584 | } | |
d55e5bfc RD |
27585 | } |
27586 | { | |
c370783e RD |
27587 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) { |
27588 | temp3 = SWIG_As_int(obj2); | |
27589 | if (PyErr_Occurred()) SWIG_fail; | |
27590 | arg3 = &temp3; | |
27591 | res3 = SWIG_NEWOBJ; | |
27592 | } | |
d55e5bfc RD |
27593 | } |
27594 | { | |
27595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27596 | ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3); | |
27597 | ||
27598 | wxPyEndAllowThreads(__tstate); | |
27599 | if (PyErr_Occurred()) SWIG_fail; | |
27600 | } | |
27601 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
27602 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
27603 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
27604 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
27605 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27606 | return resultobj; |
27607 | fail: | |
27608 | return NULL; | |
27609 | } | |
27610 | ||
27611 | ||
c370783e | 27612 | static PyObject *_wrap_Window_ScreenToClientXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27613 | PyObject *resultobj; |
27614 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27615 | int *arg2 = (int *) 0 ; | |
27616 | int *arg3 = (int *) 0 ; | |
27617 | int temp2 ; | |
c370783e | 27618 | int res2 = 0 ; |
d55e5bfc | 27619 | int temp3 ; |
c370783e | 27620 | int res3 = 0 ; |
d55e5bfc RD |
27621 | PyObject * obj0 = 0 ; |
27622 | PyObject * obj1 = 0 ; | |
27623 | PyObject * obj2 = 0 ; | |
27624 | char *kwnames[] = { | |
27625 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27626 | }; | |
27627 | ||
27628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27631 | { | |
c370783e RD |
27632 | if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) { |
27633 | temp2 = SWIG_As_int(obj1); | |
27634 | if (PyErr_Occurred()) SWIG_fail; | |
27635 | arg2 = &temp2; | |
27636 | res2 = SWIG_NEWOBJ; | |
27637 | } | |
d55e5bfc RD |
27638 | } |
27639 | { | |
c370783e RD |
27640 | if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) { |
27641 | temp3 = SWIG_As_int(obj2); | |
27642 | if (PyErr_Occurred()) SWIG_fail; | |
27643 | arg3 = &temp3; | |
27644 | res3 = SWIG_NEWOBJ; | |
27645 | } | |
d55e5bfc RD |
27646 | } |
27647 | { | |
27648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27649 | ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3); | |
27650 | ||
27651 | wxPyEndAllowThreads(__tstate); | |
27652 | if (PyErr_Occurred()) SWIG_fail; | |
27653 | } | |
27654 | Py_INCREF(Py_None); resultobj = Py_None; | |
c370783e RD |
27655 | resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ? |
27656 | SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0))); | |
27657 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? | |
27658 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
27659 | return resultobj; |
27660 | fail: | |
27661 | return NULL; | |
27662 | } | |
27663 | ||
27664 | ||
c370783e | 27665 | static PyObject *_wrap_Window_ClientToScreen(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27666 | PyObject *resultobj; |
27667 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27668 | wxPoint *arg2 = 0 ; | |
27669 | wxPoint result; | |
27670 | wxPoint temp2 ; | |
27671 | PyObject * obj0 = 0 ; | |
27672 | PyObject * obj1 = 0 ; | |
27673 | char *kwnames[] = { | |
27674 | (char *) "self",(char *) "pt", NULL | |
27675 | }; | |
27676 | ||
27677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail; | |
27678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27680 | { | |
27681 | arg2 = &temp2; | |
27682 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27683 | } | |
27684 | { | |
27685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27686 | result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2); | |
27687 | ||
27688 | wxPyEndAllowThreads(__tstate); | |
27689 | if (PyErr_Occurred()) SWIG_fail; | |
27690 | } | |
27691 | { | |
27692 | wxPoint * resultptr; | |
27693 | resultptr = new wxPoint((wxPoint &) result); | |
27694 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
27695 | } | |
27696 | return resultobj; | |
27697 | fail: | |
27698 | return NULL; | |
27699 | } | |
27700 | ||
27701 | ||
c370783e | 27702 | static PyObject *_wrap_Window_ScreenToClient(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27703 | PyObject *resultobj; |
27704 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27705 | wxPoint *arg2 = 0 ; | |
27706 | wxPoint result; | |
27707 | wxPoint temp2 ; | |
27708 | PyObject * obj0 = 0 ; | |
27709 | PyObject * obj1 = 0 ; | |
27710 | char *kwnames[] = { | |
27711 | (char *) "self",(char *) "pt", NULL | |
27712 | }; | |
27713 | ||
27714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail; | |
27715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27717 | { | |
27718 | arg2 = &temp2; | |
27719 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27720 | } | |
27721 | { | |
27722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27723 | result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2); | |
27724 | ||
27725 | wxPyEndAllowThreads(__tstate); | |
27726 | if (PyErr_Occurred()) SWIG_fail; | |
27727 | } | |
27728 | { | |
27729 | wxPoint * resultptr; | |
27730 | resultptr = new wxPoint((wxPoint &) result); | |
27731 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
27732 | } | |
27733 | return resultobj; | |
27734 | fail: | |
27735 | return NULL; | |
27736 | } | |
27737 | ||
27738 | ||
c370783e | 27739 | static PyObject *_wrap_Window_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27740 | PyObject *resultobj; |
27741 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27742 | int arg2 ; | |
27743 | int arg3 ; | |
27744 | int result; | |
27745 | PyObject * obj0 = 0 ; | |
27746 | PyObject * obj1 = 0 ; | |
27747 | PyObject * obj2 = 0 ; | |
27748 | char *kwnames[] = { | |
27749 | (char *) "self",(char *) "x",(char *) "y", NULL | |
27750 | }; | |
27751 | ||
27752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27755 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 27756 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 27757 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
27758 | if (PyErr_Occurred()) SWIG_fail; |
27759 | { | |
27760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27761 | result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3); | |
27762 | ||
27763 | wxPyEndAllowThreads(__tstate); | |
27764 | if (PyErr_Occurred()) SWIG_fail; | |
27765 | } | |
c370783e | 27766 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27767 | return resultobj; |
27768 | fail: | |
27769 | return NULL; | |
27770 | } | |
27771 | ||
27772 | ||
c370783e | 27773 | static PyObject *_wrap_Window_HitTest(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27774 | PyObject *resultobj; |
27775 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27776 | wxPoint *arg2 = 0 ; | |
27777 | int result; | |
27778 | wxPoint temp2 ; | |
27779 | PyObject * obj0 = 0 ; | |
27780 | PyObject * obj1 = 0 ; | |
27781 | char *kwnames[] = { | |
27782 | (char *) "self",(char *) "pt", NULL | |
27783 | }; | |
27784 | ||
27785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
27786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27788 | { | |
27789 | arg2 = &temp2; | |
27790 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27791 | } | |
27792 | { | |
27793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27794 | result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2); | |
27795 | ||
27796 | wxPyEndAllowThreads(__tstate); | |
27797 | if (PyErr_Occurred()) SWIG_fail; | |
27798 | } | |
c370783e | 27799 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27800 | return resultobj; |
27801 | fail: | |
27802 | return NULL; | |
27803 | } | |
27804 | ||
27805 | ||
c370783e | 27806 | static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
27807 | PyObject *resultobj; |
27808 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27809 | long arg2 ; | |
27810 | int result; | |
27811 | PyObject * obj0 = 0 ; | |
27812 | PyObject * obj1 = 0 ; | |
27813 | ||
27814 | if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail; | |
27815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 27817 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
27818 | if (PyErr_Occurred()) SWIG_fail; |
27819 | { | |
27820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27821 | result = (int)((wxWindow const *)arg1)->GetBorder(arg2); | |
27822 | ||
27823 | wxPyEndAllowThreads(__tstate); | |
27824 | if (PyErr_Occurred()) SWIG_fail; | |
27825 | } | |
c370783e | 27826 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27827 | return resultobj; |
27828 | fail: | |
27829 | return NULL; | |
27830 | } | |
27831 | ||
27832 | ||
c370783e | 27833 | static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
27834 | PyObject *resultobj; |
27835 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27836 | int result; | |
27837 | PyObject * obj0 = 0 ; | |
27838 | ||
27839 | if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail; | |
27840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27842 | { | |
27843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27844 | result = (int)((wxWindow const *)arg1)->GetBorder(); | |
27845 | ||
27846 | wxPyEndAllowThreads(__tstate); | |
27847 | if (PyErr_Occurred()) SWIG_fail; | |
27848 | } | |
c370783e | 27849 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
27850 | return resultobj; |
27851 | fail: | |
27852 | return NULL; | |
27853 | } | |
27854 | ||
27855 | ||
27856 | static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) { | |
27857 | int argc; | |
27858 | PyObject *argv[3]; | |
27859 | int ii; | |
27860 | ||
27861 | argc = PyObject_Length(args); | |
27862 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
27863 | argv[ii] = PyTuple_GetItem(args,ii); | |
27864 | } | |
27865 | if (argc == 1) { | |
27866 | int _v; | |
27867 | { | |
27868 | void *ptr; | |
27869 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
27870 | _v = 0; | |
27871 | PyErr_Clear(); | |
27872 | } else { | |
27873 | _v = 1; | |
27874 | } | |
27875 | } | |
27876 | if (_v) { | |
27877 | return _wrap_Window_GetBorder__SWIG_1(self,args); | |
27878 | } | |
27879 | } | |
27880 | if (argc == 2) { | |
27881 | int _v; | |
27882 | { | |
27883 | void *ptr; | |
27884 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
27885 | _v = 0; | |
27886 | PyErr_Clear(); | |
27887 | } else { | |
27888 | _v = 1; | |
27889 | } | |
27890 | } | |
27891 | if (_v) { | |
c370783e | 27892 | _v = SWIG_Check_long(argv[1]); |
d55e5bfc RD |
27893 | if (_v) { |
27894 | return _wrap_Window_GetBorder__SWIG_0(self,args); | |
27895 | } | |
27896 | } | |
27897 | } | |
27898 | ||
27899 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'"); | |
27900 | return NULL; | |
27901 | } | |
27902 | ||
27903 | ||
c370783e | 27904 | static PyObject *_wrap_Window_UpdateWindowUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27905 | PyObject *resultobj; |
27906 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27907 | long arg2 = (long) wxUPDATE_UI_NONE ; | |
27908 | PyObject * obj0 = 0 ; | |
27909 | PyObject * obj1 = 0 ; | |
27910 | char *kwnames[] = { | |
27911 | (char *) "self",(char *) "flags", NULL | |
27912 | }; | |
27913 | ||
27914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail; | |
27915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27917 | if (obj1) { | |
c370783e | 27918 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
27919 | if (PyErr_Occurred()) SWIG_fail; |
27920 | } | |
27921 | { | |
27922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27923 | (arg1)->UpdateWindowUI(arg2); | |
27924 | ||
27925 | wxPyEndAllowThreads(__tstate); | |
27926 | if (PyErr_Occurred()) SWIG_fail; | |
27927 | } | |
27928 | Py_INCREF(Py_None); resultobj = Py_None; | |
27929 | return resultobj; | |
27930 | fail: | |
27931 | return NULL; | |
27932 | } | |
27933 | ||
27934 | ||
c370783e | 27935 | static PyObject *_wrap_Window_PopupMenuXY(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27936 | PyObject *resultobj; |
27937 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27938 | wxMenu *arg2 = (wxMenu *) 0 ; | |
b0503257 RD |
27939 | int arg3 = (int) -1 ; |
27940 | int arg4 = (int) -1 ; | |
d55e5bfc RD |
27941 | bool result; |
27942 | PyObject * obj0 = 0 ; | |
27943 | PyObject * obj1 = 0 ; | |
27944 | PyObject * obj2 = 0 ; | |
27945 | PyObject * obj3 = 0 ; | |
27946 | char *kwnames[] = { | |
27947 | (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL | |
27948 | }; | |
27949 | ||
b0503257 | 27950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
27951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27953 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
27954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b0503257 | 27955 | if (obj2) { |
c370783e | 27956 | arg3 = (int)SWIG_As_int(obj2); |
b0503257 RD |
27957 | if (PyErr_Occurred()) SWIG_fail; |
27958 | } | |
27959 | if (obj3) { | |
c370783e | 27960 | arg4 = (int)SWIG_As_int(obj3); |
b0503257 RD |
27961 | if (PyErr_Occurred()) SWIG_fail; |
27962 | } | |
d55e5bfc RD |
27963 | { |
27964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27965 | result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4); | |
27966 | ||
27967 | wxPyEndAllowThreads(__tstate); | |
27968 | if (PyErr_Occurred()) SWIG_fail; | |
27969 | } | |
27970 | { | |
27971 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27972 | } | |
27973 | return resultobj; | |
27974 | fail: | |
27975 | return NULL; | |
27976 | } | |
27977 | ||
27978 | ||
c370783e | 27979 | static PyObject *_wrap_Window_PopupMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
27980 | PyObject *resultobj; |
27981 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27982 | wxMenu *arg2 = (wxMenu *) 0 ; | |
b0503257 RD |
27983 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27984 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
d55e5bfc RD |
27985 | bool result; |
27986 | wxPoint temp3 ; | |
27987 | PyObject * obj0 = 0 ; | |
27988 | PyObject * obj1 = 0 ; | |
27989 | PyObject * obj2 = 0 ; | |
27990 | char *kwnames[] = { | |
27991 | (char *) "self",(char *) "menu",(char *) "pos", NULL | |
27992 | }; | |
27993 | ||
b0503257 | 27994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
27995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27997 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
27998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
b0503257 RD |
27999 | if (obj2) { |
28000 | { | |
28001 | arg3 = &temp3; | |
28002 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28003 | } | |
d55e5bfc RD |
28004 | } |
28005 | { | |
28006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28007 | result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3); | |
28008 | ||
28009 | wxPyEndAllowThreads(__tstate); | |
28010 | if (PyErr_Occurred()) SWIG_fail; | |
28011 | } | |
28012 | { | |
28013 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28014 | } | |
28015 | return resultobj; | |
28016 | fail: | |
28017 | return NULL; | |
28018 | } | |
28019 | ||
28020 | ||
c370783e | 28021 | static PyObject *_wrap_Window_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28022 | PyObject *resultobj; |
28023 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28024 | long result; | |
28025 | PyObject * obj0 = 0 ; | |
28026 | char *kwnames[] = { | |
28027 | (char *) "self", NULL | |
28028 | }; | |
28029 | ||
28030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail; | |
28031 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28032 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28033 | { | |
28034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28035 | result = (long)wxWindow_GetHandle(arg1); | |
28036 | ||
28037 | wxPyEndAllowThreads(__tstate); | |
28038 | if (PyErr_Occurred()) SWIG_fail; | |
28039 | } | |
c370783e | 28040 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
28041 | return resultobj; |
28042 | fail: | |
28043 | return NULL; | |
28044 | } | |
28045 | ||
28046 | ||
629e65c2 RD |
28047 | static PyObject *_wrap_Window_AssociateHandle(PyObject *, PyObject *args, PyObject *kwargs) { |
28048 | PyObject *resultobj; | |
28049 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28050 | long arg2 ; | |
28051 | PyObject * obj0 = 0 ; | |
28052 | PyObject * obj1 = 0 ; | |
28053 | char *kwnames[] = { | |
28054 | (char *) "self",(char *) "handle", NULL | |
28055 | }; | |
28056 | ||
28057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AssociateHandle",kwnames,&obj0,&obj1)) goto fail; | |
28058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28060 | arg2 = (long)SWIG_As_long(obj1); | |
28061 | if (PyErr_Occurred()) SWIG_fail; | |
28062 | { | |
28063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28064 | wxWindow_AssociateHandle(arg1,arg2); | |
28065 | ||
28066 | wxPyEndAllowThreads(__tstate); | |
28067 | if (PyErr_Occurred()) SWIG_fail; | |
28068 | } | |
28069 | Py_INCREF(Py_None); resultobj = Py_None; | |
28070 | return resultobj; | |
28071 | fail: | |
28072 | return NULL; | |
28073 | } | |
28074 | ||
28075 | ||
28076 | static PyObject *_wrap_Window_DissociateHandle(PyObject *, PyObject *args, PyObject *kwargs) { | |
28077 | PyObject *resultobj; | |
28078 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28079 | PyObject * obj0 = 0 ; | |
28080 | char *kwnames[] = { | |
28081 | (char *) "self", NULL | |
28082 | }; | |
28083 | ||
28084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DissociateHandle",kwnames,&obj0)) goto fail; | |
28085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28087 | { | |
28088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28089 | (arg1)->DissociateHandle(); | |
28090 | ||
28091 | wxPyEndAllowThreads(__tstate); | |
28092 | if (PyErr_Occurred()) SWIG_fail; | |
28093 | } | |
28094 | Py_INCREF(Py_None); resultobj = Py_None; | |
28095 | return resultobj; | |
28096 | fail: | |
28097 | return NULL; | |
28098 | } | |
28099 | ||
28100 | ||
c370783e | 28101 | static PyObject *_wrap_Window_HasScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28102 | PyObject *resultobj; |
28103 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28104 | int arg2 ; | |
28105 | bool result; | |
28106 | PyObject * obj0 = 0 ; | |
28107 | PyObject * obj1 = 0 ; | |
28108 | char *kwnames[] = { | |
28109 | (char *) "self",(char *) "orient", NULL | |
28110 | }; | |
28111 | ||
28112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail; | |
28113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28115 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28116 | if (PyErr_Occurred()) SWIG_fail; |
28117 | { | |
28118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28119 | result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2); | |
28120 | ||
28121 | wxPyEndAllowThreads(__tstate); | |
28122 | if (PyErr_Occurred()) SWIG_fail; | |
28123 | } | |
28124 | { | |
28125 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28126 | } | |
28127 | return resultobj; | |
28128 | fail: | |
28129 | return NULL; | |
28130 | } | |
28131 | ||
28132 | ||
c370783e | 28133 | static PyObject *_wrap_Window_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28134 | PyObject *resultobj; |
28135 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28136 | int arg2 ; | |
28137 | int arg3 ; | |
28138 | int arg4 ; | |
28139 | int arg5 ; | |
b411df4a | 28140 | bool arg6 = (bool) true ; |
d55e5bfc RD |
28141 | PyObject * obj0 = 0 ; |
28142 | PyObject * obj1 = 0 ; | |
28143 | PyObject * obj2 = 0 ; | |
28144 | PyObject * obj3 = 0 ; | |
28145 | PyObject * obj4 = 0 ; | |
28146 | PyObject * obj5 = 0 ; | |
28147 | char *kwnames[] = { | |
15817c7e | 28148 | (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL |
d55e5bfc RD |
28149 | }; |
28150 | ||
28151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
28152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28154 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 28155 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 28156 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 28157 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 28158 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 28159 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 28160 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
28161 | if (PyErr_Occurred()) SWIG_fail; |
28162 | if (obj5) { | |
c370783e | 28163 | arg6 = (bool)SWIG_As_bool(obj5); |
d55e5bfc RD |
28164 | if (PyErr_Occurred()) SWIG_fail; |
28165 | } | |
28166 | { | |
28167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28168 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
28169 | ||
28170 | wxPyEndAllowThreads(__tstate); | |
28171 | if (PyErr_Occurred()) SWIG_fail; | |
28172 | } | |
28173 | Py_INCREF(Py_None); resultobj = Py_None; | |
28174 | return resultobj; | |
28175 | fail: | |
28176 | return NULL; | |
28177 | } | |
28178 | ||
28179 | ||
c370783e | 28180 | static PyObject *_wrap_Window_SetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28181 | PyObject *resultobj; |
28182 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28183 | int arg2 ; | |
28184 | int arg3 ; | |
b411df4a | 28185 | bool arg4 = (bool) true ; |
d55e5bfc RD |
28186 | PyObject * obj0 = 0 ; |
28187 | PyObject * obj1 = 0 ; | |
28188 | PyObject * obj2 = 0 ; | |
28189 | PyObject * obj3 = 0 ; | |
28190 | char *kwnames[] = { | |
28191 | (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL | |
28192 | }; | |
28193 | ||
28194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28197 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 28198 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 28199 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
28200 | if (PyErr_Occurred()) SWIG_fail; |
28201 | if (obj3) { | |
c370783e | 28202 | arg4 = (bool)SWIG_As_bool(obj3); |
d55e5bfc RD |
28203 | if (PyErr_Occurred()) SWIG_fail; |
28204 | } | |
28205 | { | |
28206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28207 | (arg1)->SetScrollPos(arg2,arg3,arg4); | |
28208 | ||
28209 | wxPyEndAllowThreads(__tstate); | |
28210 | if (PyErr_Occurred()) SWIG_fail; | |
28211 | } | |
28212 | Py_INCREF(Py_None); resultobj = Py_None; | |
28213 | return resultobj; | |
28214 | fail: | |
28215 | return NULL; | |
28216 | } | |
28217 | ||
28218 | ||
c370783e | 28219 | static PyObject *_wrap_Window_GetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28220 | PyObject *resultobj; |
28221 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28222 | int arg2 ; | |
28223 | int result; | |
28224 | PyObject * obj0 = 0 ; | |
28225 | PyObject * obj1 = 0 ; | |
28226 | char *kwnames[] = { | |
28227 | (char *) "self",(char *) "orientation", NULL | |
28228 | }; | |
28229 | ||
28230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail; | |
28231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28233 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28234 | if (PyErr_Occurred()) SWIG_fail; |
28235 | { | |
28236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28237 | result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2); | |
28238 | ||
28239 | wxPyEndAllowThreads(__tstate); | |
28240 | if (PyErr_Occurred()) SWIG_fail; | |
28241 | } | |
c370783e | 28242 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28243 | return resultobj; |
28244 | fail: | |
28245 | return NULL; | |
28246 | } | |
28247 | ||
28248 | ||
c370783e | 28249 | static PyObject *_wrap_Window_GetScrollThumb(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28250 | PyObject *resultobj; |
28251 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28252 | int arg2 ; | |
28253 | int result; | |
28254 | PyObject * obj0 = 0 ; | |
28255 | PyObject * obj1 = 0 ; | |
28256 | char *kwnames[] = { | |
28257 | (char *) "self",(char *) "orientation", NULL | |
28258 | }; | |
28259 | ||
28260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail; | |
28261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28263 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28264 | if (PyErr_Occurred()) SWIG_fail; |
28265 | { | |
28266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28267 | result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2); | |
28268 | ||
28269 | wxPyEndAllowThreads(__tstate); | |
28270 | if (PyErr_Occurred()) SWIG_fail; | |
28271 | } | |
c370783e | 28272 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28273 | return resultobj; |
28274 | fail: | |
28275 | return NULL; | |
28276 | } | |
28277 | ||
28278 | ||
c370783e | 28279 | static PyObject *_wrap_Window_GetScrollRange(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28280 | PyObject *resultobj; |
28281 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28282 | int arg2 ; | |
28283 | int result; | |
28284 | PyObject * obj0 = 0 ; | |
28285 | PyObject * obj1 = 0 ; | |
28286 | char *kwnames[] = { | |
28287 | (char *) "self",(char *) "orientation", NULL | |
28288 | }; | |
28289 | ||
28290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail; | |
28291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28293 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28294 | if (PyErr_Occurred()) SWIG_fail; |
28295 | { | |
28296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28297 | result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2); | |
28298 | ||
28299 | wxPyEndAllowThreads(__tstate); | |
28300 | if (PyErr_Occurred()) SWIG_fail; | |
28301 | } | |
c370783e | 28302 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
28303 | return resultobj; |
28304 | fail: | |
28305 | return NULL; | |
28306 | } | |
28307 | ||
28308 | ||
c370783e | 28309 | static PyObject *_wrap_Window_ScrollWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28310 | PyObject *resultobj; |
28311 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28312 | int arg2 ; | |
28313 | int arg3 ; | |
28314 | wxRect *arg4 = (wxRect *) NULL ; | |
28315 | PyObject * obj0 = 0 ; | |
28316 | PyObject * obj1 = 0 ; | |
28317 | PyObject * obj2 = 0 ; | |
28318 | PyObject * obj3 = 0 ; | |
28319 | char *kwnames[] = { | |
28320 | (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL | |
28321 | }; | |
28322 | ||
28323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
28324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28326 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 28327 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 28328 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
28329 | if (PyErr_Occurred()) SWIG_fail; |
28330 | if (obj3) { | |
28331 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect, | |
28332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28333 | } | |
28334 | { | |
28335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28336 | (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4); | |
28337 | ||
28338 | wxPyEndAllowThreads(__tstate); | |
28339 | if (PyErr_Occurred()) SWIG_fail; | |
28340 | } | |
28341 | Py_INCREF(Py_None); resultobj = Py_None; | |
28342 | return resultobj; | |
28343 | fail: | |
28344 | return NULL; | |
28345 | } | |
28346 | ||
28347 | ||
c370783e | 28348 | static PyObject *_wrap_Window_ScrollLines(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28349 | PyObject *resultobj; |
28350 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28351 | int arg2 ; | |
28352 | bool result; | |
28353 | PyObject * obj0 = 0 ; | |
28354 | PyObject * obj1 = 0 ; | |
28355 | char *kwnames[] = { | |
28356 | (char *) "self",(char *) "lines", NULL | |
28357 | }; | |
28358 | ||
28359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail; | |
28360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28362 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28363 | if (PyErr_Occurred()) SWIG_fail; |
28364 | { | |
28365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28366 | result = (bool)(arg1)->ScrollLines(arg2); | |
28367 | ||
28368 | wxPyEndAllowThreads(__tstate); | |
28369 | if (PyErr_Occurred()) SWIG_fail; | |
28370 | } | |
28371 | { | |
28372 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28373 | } | |
28374 | return resultobj; | |
28375 | fail: | |
28376 | return NULL; | |
28377 | } | |
28378 | ||
28379 | ||
c370783e | 28380 | static PyObject *_wrap_Window_ScrollPages(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28381 | PyObject *resultobj; |
28382 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28383 | int arg2 ; | |
28384 | bool result; | |
28385 | PyObject * obj0 = 0 ; | |
28386 | PyObject * obj1 = 0 ; | |
28387 | char *kwnames[] = { | |
28388 | (char *) "self",(char *) "pages", NULL | |
28389 | }; | |
28390 | ||
28391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail; | |
28392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28394 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
28395 | if (PyErr_Occurred()) SWIG_fail; |
28396 | { | |
28397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28398 | result = (bool)(arg1)->ScrollPages(arg2); | |
28399 | ||
28400 | wxPyEndAllowThreads(__tstate); | |
28401 | if (PyErr_Occurred()) SWIG_fail; | |
28402 | } | |
28403 | { | |
28404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28405 | } | |
28406 | return resultobj; | |
28407 | fail: | |
28408 | return NULL; | |
28409 | } | |
28410 | ||
28411 | ||
c370783e | 28412 | static PyObject *_wrap_Window_LineUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28413 | PyObject *resultobj; |
28414 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28415 | bool result; | |
28416 | PyObject * obj0 = 0 ; | |
28417 | char *kwnames[] = { | |
28418 | (char *) "self", NULL | |
28419 | }; | |
28420 | ||
28421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail; | |
28422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28424 | { | |
28425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28426 | result = (bool)(arg1)->LineUp(); | |
28427 | ||
28428 | wxPyEndAllowThreads(__tstate); | |
28429 | if (PyErr_Occurred()) SWIG_fail; | |
28430 | } | |
28431 | { | |
28432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28433 | } | |
28434 | return resultobj; | |
28435 | fail: | |
28436 | return NULL; | |
28437 | } | |
28438 | ||
28439 | ||
c370783e | 28440 | static PyObject *_wrap_Window_LineDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28441 | PyObject *resultobj; |
28442 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28443 | bool result; | |
28444 | PyObject * obj0 = 0 ; | |
28445 | char *kwnames[] = { | |
28446 | (char *) "self", NULL | |
28447 | }; | |
28448 | ||
28449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail; | |
28450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28452 | { | |
28453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28454 | result = (bool)(arg1)->LineDown(); | |
28455 | ||
28456 | wxPyEndAllowThreads(__tstate); | |
28457 | if (PyErr_Occurred()) SWIG_fail; | |
28458 | } | |
28459 | { | |
28460 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28461 | } | |
28462 | return resultobj; | |
28463 | fail: | |
28464 | return NULL; | |
28465 | } | |
28466 | ||
28467 | ||
c370783e | 28468 | static PyObject *_wrap_Window_PageUp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28469 | PyObject *resultobj; |
28470 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28471 | bool result; | |
28472 | PyObject * obj0 = 0 ; | |
28473 | char *kwnames[] = { | |
28474 | (char *) "self", NULL | |
28475 | }; | |
28476 | ||
28477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail; | |
28478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28480 | { | |
28481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28482 | result = (bool)(arg1)->PageUp(); | |
28483 | ||
28484 | wxPyEndAllowThreads(__tstate); | |
28485 | if (PyErr_Occurred()) SWIG_fail; | |
28486 | } | |
28487 | { | |
28488 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28489 | } | |
28490 | return resultobj; | |
28491 | fail: | |
28492 | return NULL; | |
28493 | } | |
28494 | ||
28495 | ||
c370783e | 28496 | static PyObject *_wrap_Window_PageDown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28497 | PyObject *resultobj; |
28498 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28499 | bool result; | |
28500 | PyObject * obj0 = 0 ; | |
28501 | char *kwnames[] = { | |
28502 | (char *) "self", NULL | |
28503 | }; | |
28504 | ||
28505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail; | |
28506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28508 | { | |
28509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28510 | result = (bool)(arg1)->PageDown(); | |
28511 | ||
28512 | wxPyEndAllowThreads(__tstate); | |
28513 | if (PyErr_Occurred()) SWIG_fail; | |
28514 | } | |
28515 | { | |
28516 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28517 | } | |
28518 | return resultobj; | |
28519 | fail: | |
28520 | return NULL; | |
28521 | } | |
28522 | ||
28523 | ||
c370783e | 28524 | static PyObject *_wrap_Window_SetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28525 | PyObject *resultobj; |
28526 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28527 | wxString *arg2 = 0 ; | |
b411df4a | 28528 | bool temp2 = false ; |
d55e5bfc RD |
28529 | PyObject * obj0 = 0 ; |
28530 | PyObject * obj1 = 0 ; | |
28531 | char *kwnames[] = { | |
28532 | (char *) "self",(char *) "text", NULL | |
28533 | }; | |
28534 | ||
28535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail; | |
28536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28538 | { | |
28539 | arg2 = wxString_in_helper(obj1); | |
28540 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 28541 | temp2 = true; |
d55e5bfc RD |
28542 | } |
28543 | { | |
28544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28545 | (arg1)->SetHelpText((wxString const &)*arg2); | |
28546 | ||
28547 | wxPyEndAllowThreads(__tstate); | |
28548 | if (PyErr_Occurred()) SWIG_fail; | |
28549 | } | |
28550 | Py_INCREF(Py_None); resultobj = Py_None; | |
28551 | { | |
28552 | if (temp2) | |
28553 | delete arg2; | |
28554 | } | |
28555 | return resultobj; | |
28556 | fail: | |
28557 | { | |
28558 | if (temp2) | |
28559 | delete arg2; | |
28560 | } | |
28561 | return NULL; | |
28562 | } | |
28563 | ||
28564 | ||
c370783e | 28565 | static PyObject *_wrap_Window_SetHelpTextForId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28566 | PyObject *resultobj; |
28567 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28568 | wxString *arg2 = 0 ; | |
b411df4a | 28569 | bool temp2 = false ; |
d55e5bfc RD |
28570 | PyObject * obj0 = 0 ; |
28571 | PyObject * obj1 = 0 ; | |
28572 | char *kwnames[] = { | |
28573 | (char *) "self",(char *) "text", NULL | |
28574 | }; | |
28575 | ||
28576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail; | |
28577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28579 | { | |
28580 | arg2 = wxString_in_helper(obj1); | |
28581 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 28582 | temp2 = true; |
d55e5bfc RD |
28583 | } |
28584 | { | |
28585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28586 | (arg1)->SetHelpTextForId((wxString const &)*arg2); | |
28587 | ||
28588 | wxPyEndAllowThreads(__tstate); | |
28589 | if (PyErr_Occurred()) SWIG_fail; | |
28590 | } | |
28591 | Py_INCREF(Py_None); resultobj = Py_None; | |
28592 | { | |
28593 | if (temp2) | |
28594 | delete arg2; | |
28595 | } | |
28596 | return resultobj; | |
28597 | fail: | |
28598 | { | |
28599 | if (temp2) | |
28600 | delete arg2; | |
28601 | } | |
28602 | return NULL; | |
28603 | } | |
28604 | ||
28605 | ||
c370783e | 28606 | static PyObject *_wrap_Window_GetHelpText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28607 | PyObject *resultobj; |
28608 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28609 | wxString result; | |
28610 | PyObject * obj0 = 0 ; | |
28611 | char *kwnames[] = { | |
28612 | (char *) "self", NULL | |
28613 | }; | |
28614 | ||
28615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail; | |
28616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28618 | { | |
28619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28620 | result = ((wxWindow const *)arg1)->GetHelpText(); | |
28621 | ||
28622 | wxPyEndAllowThreads(__tstate); | |
28623 | if (PyErr_Occurred()) SWIG_fail; | |
28624 | } | |
28625 | { | |
28626 | #if wxUSE_UNICODE | |
28627 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28628 | #else | |
28629 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28630 | #endif | |
28631 | } | |
28632 | return resultobj; | |
28633 | fail: | |
28634 | return NULL; | |
28635 | } | |
28636 | ||
28637 | ||
c370783e | 28638 | static PyObject *_wrap_Window_SetToolTipString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28639 | PyObject *resultobj; |
28640 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28641 | wxString *arg2 = 0 ; | |
b411df4a | 28642 | bool temp2 = false ; |
d55e5bfc RD |
28643 | PyObject * obj0 = 0 ; |
28644 | PyObject * obj1 = 0 ; | |
28645 | char *kwnames[] = { | |
28646 | (char *) "self",(char *) "tip", NULL | |
28647 | }; | |
28648 | ||
28649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail; | |
28650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28652 | { | |
28653 | arg2 = wxString_in_helper(obj1); | |
28654 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 28655 | temp2 = true; |
d55e5bfc RD |
28656 | } |
28657 | { | |
28658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28659 | (arg1)->SetToolTip((wxString const &)*arg2); | |
28660 | ||
28661 | wxPyEndAllowThreads(__tstate); | |
28662 | if (PyErr_Occurred()) SWIG_fail; | |
28663 | } | |
28664 | Py_INCREF(Py_None); resultobj = Py_None; | |
28665 | { | |
28666 | if (temp2) | |
28667 | delete arg2; | |
28668 | } | |
28669 | return resultobj; | |
28670 | fail: | |
28671 | { | |
28672 | if (temp2) | |
28673 | delete arg2; | |
28674 | } | |
28675 | return NULL; | |
28676 | } | |
28677 | ||
28678 | ||
c370783e | 28679 | static PyObject *_wrap_Window_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28680 | PyObject *resultobj; |
28681 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28682 | wxToolTip *arg2 = (wxToolTip *) 0 ; | |
28683 | PyObject * obj0 = 0 ; | |
28684 | PyObject * obj1 = 0 ; | |
28685 | char *kwnames[] = { | |
28686 | (char *) "self",(char *) "tip", NULL | |
28687 | }; | |
28688 | ||
28689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
28690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28692 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip, | |
28693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28694 | { | |
28695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28696 | (arg1)->SetToolTip(arg2); | |
28697 | ||
28698 | wxPyEndAllowThreads(__tstate); | |
28699 | if (PyErr_Occurred()) SWIG_fail; | |
28700 | } | |
28701 | Py_INCREF(Py_None); resultobj = Py_None; | |
28702 | return resultobj; | |
28703 | fail: | |
28704 | return NULL; | |
28705 | } | |
28706 | ||
28707 | ||
c370783e | 28708 | static PyObject *_wrap_Window_GetToolTip(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28709 | PyObject *resultobj; |
28710 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28711 | wxToolTip *result; | |
28712 | PyObject * obj0 = 0 ; | |
28713 | char *kwnames[] = { | |
28714 | (char *) "self", NULL | |
28715 | }; | |
28716 | ||
28717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail; | |
28718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28720 | { | |
28721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28722 | result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip(); | |
28723 | ||
28724 | wxPyEndAllowThreads(__tstate); | |
28725 | if (PyErr_Occurred()) SWIG_fail; | |
28726 | } | |
28727 | { | |
412d302d | 28728 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28729 | } |
28730 | return resultobj; | |
28731 | fail: | |
28732 | return NULL; | |
28733 | } | |
28734 | ||
28735 | ||
c370783e | 28736 | static PyObject *_wrap_Window_SetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28737 | PyObject *resultobj; |
28738 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28739 | wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ; | |
28740 | PyObject * obj0 = 0 ; | |
28741 | PyObject * obj1 = 0 ; | |
28742 | char *kwnames[] = { | |
28743 | (char *) "self",(char *) "dropTarget", NULL | |
28744 | }; | |
28745 | ||
28746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail; | |
28747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28749 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget, | |
28750 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
28751 | { | |
28752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28753 | (arg1)->SetDropTarget(arg2); | |
28754 | ||
28755 | wxPyEndAllowThreads(__tstate); | |
28756 | if (PyErr_Occurred()) SWIG_fail; | |
28757 | } | |
28758 | Py_INCREF(Py_None); resultobj = Py_None; | |
28759 | return resultobj; | |
28760 | fail: | |
28761 | return NULL; | |
28762 | } | |
28763 | ||
28764 | ||
c370783e | 28765 | static PyObject *_wrap_Window_GetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28766 | PyObject *resultobj; |
28767 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28768 | wxPyDropTarget *result; | |
28769 | PyObject * obj0 = 0 ; | |
28770 | char *kwnames[] = { | |
28771 | (char *) "self", NULL | |
28772 | }; | |
28773 | ||
28774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail; | |
28775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28777 | { | |
28778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28779 | result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget(); | |
28780 | ||
28781 | wxPyEndAllowThreads(__tstate); | |
28782 | if (PyErr_Occurred()) SWIG_fail; | |
28783 | } | |
28784 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0); | |
28785 | return resultobj; | |
28786 | fail: | |
28787 | return NULL; | |
28788 | } | |
28789 | ||
28790 | ||
c370783e | 28791 | static PyObject *_wrap_Window_SetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28792 | PyObject *resultobj; |
28793 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28794 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
28795 | PyObject * obj0 = 0 ; | |
28796 | PyObject * obj1 = 0 ; | |
28797 | char *kwnames[] = { | |
28798 | (char *) "self",(char *) "constraints", NULL | |
28799 | }; | |
28800 | ||
28801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail; | |
28802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28804 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
28805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28806 | { | |
28807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28808 | (arg1)->SetConstraints(arg2); | |
28809 | ||
28810 | wxPyEndAllowThreads(__tstate); | |
28811 | if (PyErr_Occurred()) SWIG_fail; | |
28812 | } | |
28813 | Py_INCREF(Py_None); resultobj = Py_None; | |
28814 | return resultobj; | |
28815 | fail: | |
28816 | return NULL; | |
28817 | } | |
28818 | ||
28819 | ||
c370783e | 28820 | static PyObject *_wrap_Window_GetConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28821 | PyObject *resultobj; |
28822 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28823 | wxLayoutConstraints *result; | |
28824 | PyObject * obj0 = 0 ; | |
28825 | char *kwnames[] = { | |
28826 | (char *) "self", NULL | |
28827 | }; | |
28828 | ||
28829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail; | |
28830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28832 | { | |
28833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28834 | result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints(); | |
28835 | ||
28836 | wxPyEndAllowThreads(__tstate); | |
28837 | if (PyErr_Occurred()) SWIG_fail; | |
28838 | } | |
28839 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0); | |
28840 | return resultobj; | |
28841 | fail: | |
28842 | return NULL; | |
28843 | } | |
28844 | ||
28845 | ||
c370783e | 28846 | static PyObject *_wrap_Window_SetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28847 | PyObject *resultobj; |
28848 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28849 | bool arg2 ; | |
28850 | PyObject * obj0 = 0 ; | |
28851 | PyObject * obj1 = 0 ; | |
28852 | char *kwnames[] = { | |
28853 | (char *) "self",(char *) "autoLayout", NULL | |
28854 | }; | |
28855 | ||
28856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail; | |
28857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 28859 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
28860 | if (PyErr_Occurred()) SWIG_fail; |
28861 | { | |
28862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28863 | (arg1)->SetAutoLayout(arg2); | |
28864 | ||
28865 | wxPyEndAllowThreads(__tstate); | |
28866 | if (PyErr_Occurred()) SWIG_fail; | |
28867 | } | |
28868 | Py_INCREF(Py_None); resultobj = Py_None; | |
28869 | return resultobj; | |
28870 | fail: | |
28871 | return NULL; | |
28872 | } | |
28873 | ||
28874 | ||
c370783e | 28875 | static PyObject *_wrap_Window_GetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28876 | PyObject *resultobj; |
28877 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28878 | bool result; | |
28879 | PyObject * obj0 = 0 ; | |
28880 | char *kwnames[] = { | |
28881 | (char *) "self", NULL | |
28882 | }; | |
28883 | ||
28884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail; | |
28885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28887 | { | |
28888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28889 | result = (bool)((wxWindow const *)arg1)->GetAutoLayout(); | |
28890 | ||
28891 | wxPyEndAllowThreads(__tstate); | |
28892 | if (PyErr_Occurred()) SWIG_fail; | |
28893 | } | |
28894 | { | |
28895 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28896 | } | |
28897 | return resultobj; | |
28898 | fail: | |
28899 | return NULL; | |
28900 | } | |
28901 | ||
28902 | ||
c370783e | 28903 | static PyObject *_wrap_Window_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28904 | PyObject *resultobj; |
28905 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28906 | bool result; | |
28907 | PyObject * obj0 = 0 ; | |
28908 | char *kwnames[] = { | |
28909 | (char *) "self", NULL | |
28910 | }; | |
28911 | ||
28912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail; | |
28913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28915 | { | |
28916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28917 | result = (bool)(arg1)->Layout(); | |
28918 | ||
28919 | wxPyEndAllowThreads(__tstate); | |
28920 | if (PyErr_Occurred()) SWIG_fail; | |
28921 | } | |
28922 | { | |
28923 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28924 | } | |
28925 | return resultobj; | |
28926 | fail: | |
28927 | return NULL; | |
28928 | } | |
28929 | ||
28930 | ||
c370783e | 28931 | static PyObject *_wrap_Window_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28932 | PyObject *resultobj; |
28933 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28934 | wxSizer *arg2 = (wxSizer *) 0 ; | |
b411df4a | 28935 | bool arg3 = (bool) true ; |
d55e5bfc RD |
28936 | PyObject * obj0 = 0 ; |
28937 | PyObject * obj1 = 0 ; | |
28938 | PyObject * obj2 = 0 ; | |
28939 | char *kwnames[] = { | |
28940 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
28941 | }; | |
28942 | ||
28943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28946 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28948 | if (obj2) { | |
c370783e | 28949 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
28950 | if (PyErr_Occurred()) SWIG_fail; |
28951 | } | |
28952 | { | |
28953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28954 | (arg1)->SetSizer(arg2,arg3); | |
28955 | ||
28956 | wxPyEndAllowThreads(__tstate); | |
28957 | if (PyErr_Occurred()) SWIG_fail; | |
28958 | } | |
28959 | Py_INCREF(Py_None); resultobj = Py_None; | |
28960 | return resultobj; | |
28961 | fail: | |
28962 | return NULL; | |
28963 | } | |
28964 | ||
28965 | ||
c370783e | 28966 | static PyObject *_wrap_Window_SetSizerAndFit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
28967 | PyObject *resultobj; |
28968 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28969 | wxSizer *arg2 = (wxSizer *) 0 ; | |
b411df4a | 28970 | bool arg3 = (bool) true ; |
d55e5bfc RD |
28971 | PyObject * obj0 = 0 ; |
28972 | PyObject * obj1 = 0 ; | |
28973 | PyObject * obj2 = 0 ; | |
28974 | char *kwnames[] = { | |
28975 | (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL | |
28976 | }; | |
28977 | ||
28978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28981 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
28982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28983 | if (obj2) { | |
c370783e | 28984 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
28985 | if (PyErr_Occurred()) SWIG_fail; |
28986 | } | |
28987 | { | |
28988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28989 | (arg1)->SetSizerAndFit(arg2,arg3); | |
28990 | ||
28991 | wxPyEndAllowThreads(__tstate); | |
28992 | if (PyErr_Occurred()) SWIG_fail; | |
28993 | } | |
28994 | Py_INCREF(Py_None); resultobj = Py_None; | |
28995 | return resultobj; | |
28996 | fail: | |
28997 | return NULL; | |
28998 | } | |
28999 | ||
29000 | ||
c370783e | 29001 | static PyObject *_wrap_Window_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29002 | PyObject *resultobj; |
29003 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29004 | wxSizer *result; | |
29005 | PyObject * obj0 = 0 ; | |
29006 | char *kwnames[] = { | |
29007 | (char *) "self", NULL | |
29008 | }; | |
29009 | ||
29010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail; | |
29011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29013 | { | |
29014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29015 | result = (wxSizer *)((wxWindow const *)arg1)->GetSizer(); | |
29016 | ||
29017 | wxPyEndAllowThreads(__tstate); | |
29018 | if (PyErr_Occurred()) SWIG_fail; | |
29019 | } | |
29020 | { | |
412d302d | 29021 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
29022 | } |
29023 | return resultobj; | |
29024 | fail: | |
29025 | return NULL; | |
29026 | } | |
29027 | ||
29028 | ||
c370783e | 29029 | static PyObject *_wrap_Window_SetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29030 | PyObject *resultobj; |
29031 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29032 | wxSizer *arg2 = (wxSizer *) 0 ; | |
29033 | PyObject * obj0 = 0 ; | |
29034 | PyObject * obj1 = 0 ; | |
29035 | char *kwnames[] = { | |
29036 | (char *) "self",(char *) "sizer", NULL | |
29037 | }; | |
29038 | ||
29039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail; | |
29040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29042 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
29043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29044 | { | |
29045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29046 | (arg1)->SetContainingSizer(arg2); | |
29047 | ||
29048 | wxPyEndAllowThreads(__tstate); | |
29049 | if (PyErr_Occurred()) SWIG_fail; | |
29050 | } | |
29051 | Py_INCREF(Py_None); resultobj = Py_None; | |
29052 | return resultobj; | |
29053 | fail: | |
29054 | return NULL; | |
29055 | } | |
29056 | ||
29057 | ||
c370783e | 29058 | static PyObject *_wrap_Window_GetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29059 | PyObject *resultobj; |
29060 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29061 | wxSizer *result; | |
29062 | PyObject * obj0 = 0 ; | |
29063 | char *kwnames[] = { | |
29064 | (char *) "self", NULL | |
29065 | }; | |
29066 | ||
29067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail; | |
29068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29070 | { | |
29071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29072 | result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer(); | |
29073 | ||
29074 | wxPyEndAllowThreads(__tstate); | |
29075 | if (PyErr_Occurred()) SWIG_fail; | |
29076 | } | |
29077 | { | |
412d302d | 29078 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
29079 | } |
29080 | return resultobj; | |
29081 | fail: | |
29082 | return NULL; | |
29083 | } | |
29084 | ||
29085 | ||
c370783e | 29086 | static PyObject *_wrap_Window_InheritAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29087 | PyObject *resultobj; |
29088 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29089 | PyObject * obj0 = 0 ; | |
29090 | char *kwnames[] = { | |
29091 | (char *) "self", NULL | |
29092 | }; | |
29093 | ||
29094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail; | |
29095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29097 | { | |
29098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29099 | (arg1)->InheritAttributes(); | |
29100 | ||
29101 | wxPyEndAllowThreads(__tstate); | |
29102 | if (PyErr_Occurred()) SWIG_fail; | |
29103 | } | |
29104 | Py_INCREF(Py_None); resultobj = Py_None; | |
29105 | return resultobj; | |
29106 | fail: | |
29107 | return NULL; | |
29108 | } | |
29109 | ||
29110 | ||
c370783e | 29111 | static PyObject *_wrap_Window_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29112 | PyObject *resultobj; |
29113 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29114 | bool result; | |
29115 | PyObject * obj0 = 0 ; | |
29116 | char *kwnames[] = { | |
29117 | (char *) "self", NULL | |
29118 | }; | |
29119 | ||
29120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
29121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29123 | { | |
29124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29125 | result = (bool)((wxWindow const *)arg1)->ShouldInheritColours(); | |
29126 | ||
29127 | wxPyEndAllowThreads(__tstate); | |
29128 | if (PyErr_Occurred()) SWIG_fail; | |
29129 | } | |
29130 | { | |
29131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29132 | } | |
29133 | return resultobj; | |
29134 | fail: | |
29135 | return NULL; | |
29136 | } | |
29137 | ||
29138 | ||
c370783e | 29139 | static PyObject * Window_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29140 | PyObject *obj; |
29141 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29142 | SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj); | |
29143 | Py_INCREF(obj); | |
29144 | return Py_BuildValue((char *)""); | |
29145 | } | |
c370783e | 29146 | static PyObject *_wrap_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29147 | PyObject *resultobj; |
29148 | long arg1 ; | |
29149 | wxWindow *arg2 = (wxWindow *) NULL ; | |
29150 | wxWindow *result; | |
29151 | PyObject * obj0 = 0 ; | |
29152 | PyObject * obj1 = 0 ; | |
29153 | char *kwnames[] = { | |
29154 | (char *) "id",(char *) "parent", NULL | |
29155 | }; | |
29156 | ||
29157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail; | |
c370783e | 29158 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
29159 | if (PyErr_Occurred()) SWIG_fail; |
29160 | if (obj1) { | |
29161 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29163 | } | |
29164 | { | |
0439c23b | 29165 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29167 | result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2); | |
29168 | ||
29169 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29170 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29171 | } |
29172 | { | |
412d302d | 29173 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29174 | } |
29175 | return resultobj; | |
29176 | fail: | |
29177 | return NULL; | |
29178 | } | |
29179 | ||
29180 | ||
c370783e | 29181 | static PyObject *_wrap_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29182 | PyObject *resultobj; |
29183 | wxString *arg1 = 0 ; | |
29184 | wxWindow *arg2 = (wxWindow *) NULL ; | |
29185 | wxWindow *result; | |
b411df4a | 29186 | bool temp1 = false ; |
d55e5bfc RD |
29187 | PyObject * obj0 = 0 ; |
29188 | PyObject * obj1 = 0 ; | |
29189 | char *kwnames[] = { | |
29190 | (char *) "name",(char *) "parent", NULL | |
29191 | }; | |
29192 | ||
29193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail; | |
29194 | { | |
29195 | arg1 = wxString_in_helper(obj0); | |
29196 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 29197 | temp1 = true; |
d55e5bfc RD |
29198 | } |
29199 | if (obj1) { | |
29200 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29202 | } | |
29203 | { | |
0439c23b | 29204 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29206 | result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2); | |
29207 | ||
29208 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29209 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29210 | } |
29211 | { | |
412d302d | 29212 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29213 | } |
29214 | { | |
29215 | if (temp1) | |
29216 | delete arg1; | |
29217 | } | |
29218 | return resultobj; | |
29219 | fail: | |
29220 | { | |
29221 | if (temp1) | |
29222 | delete arg1; | |
29223 | } | |
29224 | return NULL; | |
29225 | } | |
29226 | ||
29227 | ||
c370783e | 29228 | static PyObject *_wrap_FindWindowByLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29229 | PyObject *resultobj; |
29230 | wxString *arg1 = 0 ; | |
29231 | wxWindow *arg2 = (wxWindow *) NULL ; | |
29232 | wxWindow *result; | |
b411df4a | 29233 | bool temp1 = false ; |
d55e5bfc RD |
29234 | PyObject * obj0 = 0 ; |
29235 | PyObject * obj1 = 0 ; | |
29236 | char *kwnames[] = { | |
29237 | (char *) "label",(char *) "parent", NULL | |
29238 | }; | |
29239 | ||
29240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail; | |
29241 | { | |
29242 | arg1 = wxString_in_helper(obj0); | |
29243 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 29244 | temp1 = true; |
d55e5bfc RD |
29245 | } |
29246 | if (obj1) { | |
29247 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29249 | } | |
29250 | { | |
0439c23b | 29251 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29253 | result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2); | |
29254 | ||
29255 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29256 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29257 | } |
29258 | { | |
412d302d | 29259 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29260 | } |
29261 | { | |
29262 | if (temp1) | |
29263 | delete arg1; | |
29264 | } | |
29265 | return resultobj; | |
29266 | fail: | |
29267 | { | |
29268 | if (temp1) | |
29269 | delete arg1; | |
29270 | } | |
29271 | return NULL; | |
29272 | } | |
29273 | ||
29274 | ||
c370783e | 29275 | static PyObject *_wrap_Window_FromHWND(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29276 | PyObject *resultobj; |
29277 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29278 | unsigned long arg2 ; | |
29279 | wxWindow *result; | |
29280 | PyObject * obj0 = 0 ; | |
29281 | PyObject * obj1 = 0 ; | |
29282 | char *kwnames[] = { | |
29283 | (char *) "parent",(char *) "_hWnd", NULL | |
29284 | }; | |
29285 | ||
29286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail; | |
29287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29289 | arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
29290 | if (PyErr_Occurred()) SWIG_fail; |
29291 | { | |
29292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29293 | result = (wxWindow *)wxWindow_FromHWND(arg1,arg2); | |
29294 | ||
29295 | wxPyEndAllowThreads(__tstate); | |
29296 | if (PyErr_Occurred()) SWIG_fail; | |
29297 | } | |
29298 | { | |
412d302d | 29299 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29300 | } |
29301 | return resultobj; | |
29302 | fail: | |
29303 | return NULL; | |
29304 | } | |
29305 | ||
29306 | ||
c370783e | 29307 | static PyObject *_wrap_new_Validator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29308 | PyObject *resultobj; |
29309 | wxValidator *result; | |
29310 | char *kwnames[] = { | |
29311 | NULL | |
29312 | }; | |
29313 | ||
29314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail; | |
29315 | { | |
29316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29317 | result = (wxValidator *)new wxValidator(); | |
29318 | ||
29319 | wxPyEndAllowThreads(__tstate); | |
29320 | if (PyErr_Occurred()) SWIG_fail; | |
29321 | } | |
b0f7404b | 29322 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxValidator, 1); |
d55e5bfc RD |
29323 | return resultobj; |
29324 | fail: | |
29325 | return NULL; | |
29326 | } | |
29327 | ||
29328 | ||
c370783e | 29329 | static PyObject *_wrap_Validator_Clone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29330 | PyObject *resultobj; |
29331 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29332 | wxValidator *result; | |
29333 | PyObject * obj0 = 0 ; | |
29334 | char *kwnames[] = { | |
29335 | (char *) "self", NULL | |
29336 | }; | |
29337 | ||
29338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail; | |
29339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29341 | { | |
29342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29343 | result = (wxValidator *)(arg1)->Clone(); | |
29344 | ||
29345 | wxPyEndAllowThreads(__tstate); | |
29346 | if (PyErr_Occurred()) SWIG_fail; | |
29347 | } | |
29348 | { | |
412d302d | 29349 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29350 | } |
29351 | return resultobj; | |
29352 | fail: | |
29353 | return NULL; | |
29354 | } | |
29355 | ||
29356 | ||
c370783e | 29357 | static PyObject *_wrap_Validator_Validate(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29358 | PyObject *resultobj; |
29359 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29360 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29361 | bool result; | |
29362 | PyObject * obj0 = 0 ; | |
29363 | PyObject * obj1 = 0 ; | |
29364 | char *kwnames[] = { | |
29365 | (char *) "self",(char *) "parent", NULL | |
29366 | }; | |
29367 | ||
29368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail; | |
29369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29371 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29373 | { | |
29374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29375 | result = (bool)(arg1)->Validate(arg2); | |
29376 | ||
29377 | wxPyEndAllowThreads(__tstate); | |
29378 | if (PyErr_Occurred()) SWIG_fail; | |
29379 | } | |
29380 | { | |
29381 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29382 | } | |
29383 | return resultobj; | |
29384 | fail: | |
29385 | return NULL; | |
29386 | } | |
29387 | ||
29388 | ||
c370783e | 29389 | static PyObject *_wrap_Validator_TransferToWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29390 | PyObject *resultobj; |
29391 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29392 | bool result; | |
29393 | PyObject * obj0 = 0 ; | |
29394 | char *kwnames[] = { | |
29395 | (char *) "self", NULL | |
29396 | }; | |
29397 | ||
29398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail; | |
29399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29401 | { | |
29402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29403 | result = (bool)(arg1)->TransferToWindow(); | |
29404 | ||
29405 | wxPyEndAllowThreads(__tstate); | |
29406 | if (PyErr_Occurred()) SWIG_fail; | |
29407 | } | |
29408 | { | |
29409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29410 | } | |
29411 | return resultobj; | |
29412 | fail: | |
29413 | return NULL; | |
29414 | } | |
29415 | ||
29416 | ||
c370783e | 29417 | static PyObject *_wrap_Validator_TransferFromWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29418 | PyObject *resultobj; |
29419 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29420 | bool result; | |
29421 | PyObject * obj0 = 0 ; | |
29422 | char *kwnames[] = { | |
29423 | (char *) "self", NULL | |
29424 | }; | |
29425 | ||
29426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail; | |
29427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29429 | { | |
29430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29431 | result = (bool)(arg1)->TransferFromWindow(); | |
29432 | ||
29433 | wxPyEndAllowThreads(__tstate); | |
29434 | if (PyErr_Occurred()) SWIG_fail; | |
29435 | } | |
29436 | { | |
29437 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29438 | } | |
29439 | return resultobj; | |
29440 | fail: | |
29441 | return NULL; | |
29442 | } | |
29443 | ||
29444 | ||
c370783e | 29445 | static PyObject *_wrap_Validator_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29446 | PyObject *resultobj; |
29447 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29448 | wxWindow *result; | |
29449 | PyObject * obj0 = 0 ; | |
29450 | char *kwnames[] = { | |
29451 | (char *) "self", NULL | |
29452 | }; | |
29453 | ||
29454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail; | |
29455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29457 | { | |
29458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29459 | result = (wxWindow *)(arg1)->GetWindow(); | |
29460 | ||
29461 | wxPyEndAllowThreads(__tstate); | |
29462 | if (PyErr_Occurred()) SWIG_fail; | |
29463 | } | |
29464 | { | |
412d302d | 29465 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29466 | } |
29467 | return resultobj; | |
29468 | fail: | |
29469 | return NULL; | |
29470 | } | |
29471 | ||
29472 | ||
c370783e | 29473 | static PyObject *_wrap_Validator_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29474 | PyObject *resultobj; |
29475 | wxValidator *arg1 = (wxValidator *) 0 ; | |
29476 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29477 | PyObject * obj0 = 0 ; | |
29478 | PyObject * obj1 = 0 ; | |
29479 | char *kwnames[] = { | |
29480 | (char *) "self",(char *) "window", NULL | |
29481 | }; | |
29482 | ||
29483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
29484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator, | |
29485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29486 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29488 | { | |
29489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29490 | (arg1)->SetWindow(arg2); | |
29491 | ||
29492 | wxPyEndAllowThreads(__tstate); | |
29493 | if (PyErr_Occurred()) SWIG_fail; | |
29494 | } | |
29495 | Py_INCREF(Py_None); resultobj = Py_None; | |
29496 | return resultobj; | |
29497 | fail: | |
29498 | return NULL; | |
29499 | } | |
29500 | ||
29501 | ||
c370783e | 29502 | static PyObject *_wrap_Validator_IsSilent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29503 | PyObject *resultobj; |
29504 | bool result; | |
29505 | char *kwnames[] = { | |
29506 | NULL | |
29507 | }; | |
29508 | ||
29509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail; | |
29510 | { | |
29511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29512 | result = (bool)wxValidator::IsSilent(); | |
29513 | ||
29514 | wxPyEndAllowThreads(__tstate); | |
29515 | if (PyErr_Occurred()) SWIG_fail; | |
29516 | } | |
29517 | { | |
29518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29519 | } | |
29520 | return resultobj; | |
29521 | fail: | |
29522 | return NULL; | |
29523 | } | |
29524 | ||
29525 | ||
c370783e | 29526 | static PyObject *_wrap_Validator_SetBellOnError(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 29527 | PyObject *resultobj; |
b411df4a | 29528 | int arg1 = (int) true ; |
d55e5bfc RD |
29529 | PyObject * obj0 = 0 ; |
29530 | char *kwnames[] = { | |
29531 | (char *) "doIt", NULL | |
29532 | }; | |
29533 | ||
29534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail; | |
29535 | if (obj0) { | |
c370783e | 29536 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
29537 | if (PyErr_Occurred()) SWIG_fail; |
29538 | } | |
29539 | { | |
29540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29541 | wxValidator::SetBellOnError(arg1); | |
29542 | ||
29543 | wxPyEndAllowThreads(__tstate); | |
29544 | if (PyErr_Occurred()) SWIG_fail; | |
29545 | } | |
29546 | Py_INCREF(Py_None); resultobj = Py_None; | |
29547 | return resultobj; | |
29548 | fail: | |
29549 | return NULL; | |
29550 | } | |
29551 | ||
29552 | ||
c370783e | 29553 | static PyObject * Validator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29554 | PyObject *obj; |
29555 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29556 | SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj); | |
29557 | Py_INCREF(obj); | |
29558 | return Py_BuildValue((char *)""); | |
29559 | } | |
c370783e | 29560 | static PyObject *_wrap_new_PyValidator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29561 | PyObject *resultobj; |
29562 | wxPyValidator *result; | |
29563 | char *kwnames[] = { | |
29564 | NULL | |
29565 | }; | |
29566 | ||
29567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail; | |
29568 | { | |
29569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29570 | result = (wxPyValidator *)new wxPyValidator(); | |
29571 | ||
29572 | wxPyEndAllowThreads(__tstate); | |
29573 | if (PyErr_Occurred()) SWIG_fail; | |
29574 | } | |
29575 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1); | |
29576 | return resultobj; | |
29577 | fail: | |
29578 | return NULL; | |
29579 | } | |
29580 | ||
29581 | ||
c370783e | 29582 | static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29583 | PyObject *resultobj; |
29584 | wxPyValidator *arg1 = (wxPyValidator *) 0 ; | |
29585 | PyObject *arg2 = (PyObject *) 0 ; | |
29586 | PyObject *arg3 = (PyObject *) 0 ; | |
b411df4a | 29587 | int arg4 = (int) true ; |
d55e5bfc RD |
29588 | PyObject * obj0 = 0 ; |
29589 | PyObject * obj1 = 0 ; | |
29590 | PyObject * obj2 = 0 ; | |
29591 | PyObject * obj3 = 0 ; | |
29592 | char *kwnames[] = { | |
29593 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
29594 | }; | |
29595 | ||
29596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator, | |
29598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29599 | arg2 = obj1; | |
29600 | arg3 = obj2; | |
29601 | if (obj3) { | |
c370783e | 29602 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
29603 | if (PyErr_Occurred()) SWIG_fail; |
29604 | } | |
29605 | { | |
29606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29607 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
29608 | ||
29609 | wxPyEndAllowThreads(__tstate); | |
29610 | if (PyErr_Occurred()) SWIG_fail; | |
29611 | } | |
29612 | Py_INCREF(Py_None); resultobj = Py_None; | |
29613 | return resultobj; | |
29614 | fail: | |
29615 | return NULL; | |
29616 | } | |
29617 | ||
29618 | ||
c370783e | 29619 | static PyObject * PyValidator_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
29620 | PyObject *obj; |
29621 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29622 | SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj); | |
29623 | Py_INCREF(obj); | |
29624 | return Py_BuildValue((char *)""); | |
29625 | } | |
c370783e | 29626 | static int _wrap_DefaultValidator_set(PyObject *) { |
d55e5bfc RD |
29627 | PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only."); |
29628 | return 1; | |
29629 | } | |
29630 | ||
29631 | ||
29632 | static PyObject *_wrap_DefaultValidator_get() { | |
29633 | PyObject *pyobj; | |
29634 | ||
29635 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0); | |
29636 | return pyobj; | |
29637 | } | |
29638 | ||
29639 | ||
c370783e | 29640 | static PyObject *_wrap_new_Menu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29641 | PyObject *resultobj; |
29642 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
29643 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
29644 | long arg2 = (long) 0 ; | |
29645 | wxMenu *result; | |
b411df4a | 29646 | bool temp1 = false ; |
d55e5bfc RD |
29647 | PyObject * obj0 = 0 ; |
29648 | PyObject * obj1 = 0 ; | |
29649 | char *kwnames[] = { | |
29650 | (char *) "title",(char *) "style", NULL | |
29651 | }; | |
29652 | ||
29653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail; | |
29654 | if (obj0) { | |
29655 | { | |
29656 | arg1 = wxString_in_helper(obj0); | |
29657 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 29658 | temp1 = true; |
d55e5bfc RD |
29659 | } |
29660 | } | |
29661 | if (obj1) { | |
c370783e | 29662 | arg2 = (long)SWIG_As_long(obj1); |
d55e5bfc RD |
29663 | if (PyErr_Occurred()) SWIG_fail; |
29664 | } | |
29665 | { | |
0439c23b | 29666 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29668 | result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2); | |
29669 | ||
29670 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29671 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 29672 | } |
b0f7404b | 29673 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenu, 1); |
d55e5bfc RD |
29674 | { |
29675 | if (temp1) | |
29676 | delete arg1; | |
29677 | } | |
29678 | return resultobj; | |
29679 | fail: | |
29680 | { | |
29681 | if (temp1) | |
29682 | delete arg1; | |
29683 | } | |
29684 | return NULL; | |
29685 | } | |
29686 | ||
29687 | ||
c370783e | 29688 | static PyObject *_wrap_Menu_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29689 | PyObject *resultobj; |
29690 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29691 | int arg2 ; | |
29692 | wxString *arg3 = 0 ; | |
29693 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29694 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29695 | int arg5 = (int) wxITEM_NORMAL ; | |
29696 | wxMenuItem *result; | |
b411df4a RD |
29697 | bool temp3 = false ; |
29698 | bool temp4 = false ; | |
d55e5bfc RD |
29699 | PyObject * obj0 = 0 ; |
29700 | PyObject * obj1 = 0 ; | |
29701 | PyObject * obj2 = 0 ; | |
29702 | PyObject * obj3 = 0 ; | |
29703 | PyObject * obj4 = 0 ; | |
29704 | char *kwnames[] = { | |
29705 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
29706 | }; | |
29707 | ||
29708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29711 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29712 | if (PyErr_Occurred()) SWIG_fail; |
29713 | { | |
29714 | arg3 = wxString_in_helper(obj2); | |
29715 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 29716 | temp3 = true; |
d55e5bfc RD |
29717 | } |
29718 | if (obj3) { | |
29719 | { | |
29720 | arg4 = wxString_in_helper(obj3); | |
29721 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 29722 | temp4 = true; |
d55e5bfc RD |
29723 | } |
29724 | } | |
29725 | if (obj4) { | |
c370783e | 29726 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
29727 | if (PyErr_Occurred()) SWIG_fail; |
29728 | } | |
29729 | { | |
29730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29731 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
29732 | ||
29733 | wxPyEndAllowThreads(__tstate); | |
29734 | if (PyErr_Occurred()) SWIG_fail; | |
29735 | } | |
29736 | { | |
412d302d | 29737 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29738 | } |
29739 | { | |
29740 | if (temp3) | |
29741 | delete arg3; | |
29742 | } | |
29743 | { | |
29744 | if (temp4) | |
29745 | delete arg4; | |
29746 | } | |
29747 | return resultobj; | |
29748 | fail: | |
29749 | { | |
29750 | if (temp3) | |
29751 | delete arg3; | |
29752 | } | |
29753 | { | |
29754 | if (temp4) | |
29755 | delete arg4; | |
29756 | } | |
29757 | return NULL; | |
29758 | } | |
29759 | ||
29760 | ||
c370783e | 29761 | static PyObject *_wrap_Menu_AppendSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29762 | PyObject *resultobj; |
29763 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29764 | wxMenuItem *result; | |
29765 | PyObject * obj0 = 0 ; | |
29766 | char *kwnames[] = { | |
29767 | (char *) "self", NULL | |
29768 | }; | |
29769 | ||
29770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail; | |
29771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29773 | { | |
29774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29775 | result = (wxMenuItem *)(arg1)->AppendSeparator(); | |
29776 | ||
29777 | wxPyEndAllowThreads(__tstate); | |
29778 | if (PyErr_Occurred()) SWIG_fail; | |
29779 | } | |
29780 | { | |
412d302d | 29781 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29782 | } |
29783 | return resultobj; | |
29784 | fail: | |
29785 | return NULL; | |
29786 | } | |
29787 | ||
29788 | ||
c370783e | 29789 | static PyObject *_wrap_Menu_AppendCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29790 | PyObject *resultobj; |
29791 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29792 | int arg2 ; | |
29793 | wxString *arg3 = 0 ; | |
29794 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29795 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29796 | wxMenuItem *result; | |
b411df4a RD |
29797 | bool temp3 = false ; |
29798 | bool temp4 = false ; | |
d55e5bfc RD |
29799 | PyObject * obj0 = 0 ; |
29800 | PyObject * obj1 = 0 ; | |
29801 | PyObject * obj2 = 0 ; | |
29802 | PyObject * obj3 = 0 ; | |
29803 | char *kwnames[] = { | |
29804 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29805 | }; | |
29806 | ||
29807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29810 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29811 | if (PyErr_Occurred()) SWIG_fail; |
29812 | { | |
29813 | arg3 = wxString_in_helper(obj2); | |
29814 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 29815 | temp3 = true; |
d55e5bfc RD |
29816 | } |
29817 | if (obj3) { | |
29818 | { | |
29819 | arg4 = wxString_in_helper(obj3); | |
29820 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 29821 | temp4 = true; |
d55e5bfc RD |
29822 | } |
29823 | } | |
29824 | { | |
29825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29826 | result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29827 | ||
29828 | wxPyEndAllowThreads(__tstate); | |
29829 | if (PyErr_Occurred()) SWIG_fail; | |
29830 | } | |
29831 | { | |
412d302d | 29832 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29833 | } |
29834 | { | |
29835 | if (temp3) | |
29836 | delete arg3; | |
29837 | } | |
29838 | { | |
29839 | if (temp4) | |
29840 | delete arg4; | |
29841 | } | |
29842 | return resultobj; | |
29843 | fail: | |
29844 | { | |
29845 | if (temp3) | |
29846 | delete arg3; | |
29847 | } | |
29848 | { | |
29849 | if (temp4) | |
29850 | delete arg4; | |
29851 | } | |
29852 | return NULL; | |
29853 | } | |
29854 | ||
29855 | ||
c370783e | 29856 | static PyObject *_wrap_Menu_AppendRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29857 | PyObject *resultobj; |
29858 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29859 | int arg2 ; | |
29860 | wxString *arg3 = 0 ; | |
29861 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
29862 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
29863 | wxMenuItem *result; | |
b411df4a RD |
29864 | bool temp3 = false ; |
29865 | bool temp4 = false ; | |
d55e5bfc RD |
29866 | PyObject * obj0 = 0 ; |
29867 | PyObject * obj1 = 0 ; | |
29868 | PyObject * obj2 = 0 ; | |
29869 | PyObject * obj3 = 0 ; | |
29870 | char *kwnames[] = { | |
29871 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
29872 | }; | |
29873 | ||
29874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
29875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29877 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29878 | if (PyErr_Occurred()) SWIG_fail; |
29879 | { | |
29880 | arg3 = wxString_in_helper(obj2); | |
29881 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 29882 | temp3 = true; |
d55e5bfc RD |
29883 | } |
29884 | if (obj3) { | |
29885 | { | |
29886 | arg4 = wxString_in_helper(obj3); | |
29887 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 29888 | temp4 = true; |
d55e5bfc RD |
29889 | } |
29890 | } | |
29891 | { | |
29892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29893 | result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
29894 | ||
29895 | wxPyEndAllowThreads(__tstate); | |
29896 | if (PyErr_Occurred()) SWIG_fail; | |
29897 | } | |
29898 | { | |
412d302d | 29899 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29900 | } |
29901 | { | |
29902 | if (temp3) | |
29903 | delete arg3; | |
29904 | } | |
29905 | { | |
29906 | if (temp4) | |
29907 | delete arg4; | |
29908 | } | |
29909 | return resultobj; | |
29910 | fail: | |
29911 | { | |
29912 | if (temp3) | |
29913 | delete arg3; | |
29914 | } | |
29915 | { | |
29916 | if (temp4) | |
29917 | delete arg4; | |
29918 | } | |
29919 | return NULL; | |
29920 | } | |
29921 | ||
29922 | ||
c370783e | 29923 | static PyObject *_wrap_Menu_AppendMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29924 | PyObject *resultobj; |
29925 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29926 | int arg2 ; | |
29927 | wxString *arg3 = 0 ; | |
29928 | wxMenu *arg4 = (wxMenu *) 0 ; | |
29929 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
29930 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
29931 | wxMenuItem *result; | |
b411df4a RD |
29932 | bool temp3 = false ; |
29933 | bool temp5 = false ; | |
d55e5bfc RD |
29934 | PyObject * obj0 = 0 ; |
29935 | PyObject * obj1 = 0 ; | |
29936 | PyObject * obj2 = 0 ; | |
29937 | PyObject * obj3 = 0 ; | |
29938 | PyObject * obj4 = 0 ; | |
29939 | char *kwnames[] = { | |
29940 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
29941 | }; | |
29942 | ||
29943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
29945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 29946 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
29947 | if (PyErr_Occurred()) SWIG_fail; |
29948 | { | |
29949 | arg3 = wxString_in_helper(obj2); | |
29950 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 29951 | temp3 = true; |
d55e5bfc RD |
29952 | } |
29953 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, | |
29954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29955 | if (obj4) { | |
29956 | { | |
29957 | arg5 = wxString_in_helper(obj4); | |
29958 | if (arg5 == NULL) SWIG_fail; | |
b411df4a | 29959 | temp5 = true; |
d55e5bfc RD |
29960 | } |
29961 | } | |
29962 | { | |
29963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29964 | result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
29965 | ||
29966 | wxPyEndAllowThreads(__tstate); | |
29967 | if (PyErr_Occurred()) SWIG_fail; | |
29968 | } | |
29969 | { | |
412d302d | 29970 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
29971 | } |
29972 | { | |
29973 | if (temp3) | |
29974 | delete arg3; | |
29975 | } | |
29976 | { | |
29977 | if (temp5) | |
29978 | delete arg5; | |
29979 | } | |
29980 | return resultobj; | |
29981 | fail: | |
29982 | { | |
29983 | if (temp3) | |
29984 | delete arg3; | |
29985 | } | |
29986 | { | |
29987 | if (temp5) | |
29988 | delete arg5; | |
29989 | } | |
29990 | return NULL; | |
29991 | } | |
29992 | ||
29993 | ||
c370783e | 29994 | static PyObject *_wrap_Menu_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
29995 | PyObject *resultobj; |
29996 | wxMenu *arg1 = (wxMenu *) 0 ; | |
29997 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
29998 | wxMenuItem *result; | |
29999 | PyObject * obj0 = 0 ; | |
30000 | PyObject * obj1 = 0 ; | |
30001 | char *kwnames[] = { | |
30002 | (char *) "self",(char *) "item", NULL | |
30003 | }; | |
30004 | ||
30005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail; | |
30006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30008 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30010 | { | |
30011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30012 | result = (wxMenuItem *)(arg1)->Append(arg2); | |
30013 | ||
30014 | wxPyEndAllowThreads(__tstate); | |
30015 | if (PyErr_Occurred()) SWIG_fail; | |
30016 | } | |
30017 | { | |
412d302d | 30018 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30019 | } |
30020 | return resultobj; | |
30021 | fail: | |
30022 | return NULL; | |
30023 | } | |
30024 | ||
30025 | ||
c370783e | 30026 | static PyObject *_wrap_Menu_Break(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30027 | PyObject *resultobj; |
30028 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30029 | PyObject * obj0 = 0 ; | |
30030 | char *kwnames[] = { | |
30031 | (char *) "self", NULL | |
30032 | }; | |
30033 | ||
30034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail; | |
30035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30037 | { | |
30038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30039 | (arg1)->Break(); | |
30040 | ||
30041 | wxPyEndAllowThreads(__tstate); | |
30042 | if (PyErr_Occurred()) SWIG_fail; | |
30043 | } | |
30044 | Py_INCREF(Py_None); resultobj = Py_None; | |
30045 | return resultobj; | |
30046 | fail: | |
30047 | return NULL; | |
30048 | } | |
30049 | ||
30050 | ||
c370783e | 30051 | static PyObject *_wrap_Menu_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30052 | PyObject *resultobj; |
30053 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30054 | size_t arg2 ; | |
30055 | wxMenuItem *arg3 = (wxMenuItem *) 0 ; | |
30056 | wxMenuItem *result; | |
30057 | PyObject * obj0 = 0 ; | |
30058 | PyObject * obj1 = 0 ; | |
30059 | PyObject * obj2 = 0 ; | |
30060 | char *kwnames[] = { | |
30061 | (char *) "self",(char *) "pos",(char *) "item", NULL | |
30062 | }; | |
30063 | ||
30064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30067 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
30068 | if (PyErr_Occurred()) SWIG_fail; |
30069 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem, | |
30070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30071 | { | |
30072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30073 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3); | |
30074 | ||
30075 | wxPyEndAllowThreads(__tstate); | |
30076 | if (PyErr_Occurred()) SWIG_fail; | |
30077 | } | |
30078 | { | |
412d302d | 30079 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30080 | } |
30081 | return resultobj; | |
30082 | fail: | |
30083 | return NULL; | |
30084 | } | |
30085 | ||
30086 | ||
c370783e | 30087 | static PyObject *_wrap_Menu_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30088 | PyObject *resultobj; |
30089 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30090 | size_t arg2 ; | |
30091 | int arg3 ; | |
30092 | wxString *arg4 = 0 ; | |
30093 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
30094 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
30095 | int arg6 = (int) wxITEM_NORMAL ; | |
30096 | wxMenuItem *result; | |
b411df4a RD |
30097 | bool temp4 = false ; |
30098 | bool temp5 = false ; | |
d55e5bfc RD |
30099 | PyObject * obj0 = 0 ; |
30100 | PyObject * obj1 = 0 ; | |
30101 | PyObject * obj2 = 0 ; | |
30102 | PyObject * obj3 = 0 ; | |
30103 | PyObject * obj4 = 0 ; | |
30104 | PyObject * obj5 = 0 ; | |
30105 | char *kwnames[] = { | |
30106 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
30107 | }; | |
30108 | ||
30109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
30110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30112 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 30113 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30114 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
30115 | if (PyErr_Occurred()) SWIG_fail; |
30116 | { | |
30117 | arg4 = wxString_in_helper(obj3); | |
30118 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 30119 | temp4 = true; |
d55e5bfc RD |
30120 | } |
30121 | if (obj4) { | |
30122 | { | |
30123 | arg5 = wxString_in_helper(obj4); | |
30124 | if (arg5 == NULL) SWIG_fail; | |
b411df4a | 30125 | temp5 = true; |
d55e5bfc RD |
30126 | } |
30127 | } | |
30128 | if (obj5) { | |
c370783e | 30129 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
30130 | if (PyErr_Occurred()) SWIG_fail; |
30131 | } | |
30132 | { | |
30133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30134 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6); | |
30135 | ||
30136 | wxPyEndAllowThreads(__tstate); | |
30137 | if (PyErr_Occurred()) SWIG_fail; | |
30138 | } | |
30139 | { | |
412d302d | 30140 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30141 | } |
30142 | { | |
30143 | if (temp4) | |
30144 | delete arg4; | |
30145 | } | |
30146 | { | |
30147 | if (temp5) | |
30148 | delete arg5; | |
30149 | } | |
30150 | return resultobj; | |
30151 | fail: | |
30152 | { | |
30153 | if (temp4) | |
30154 | delete arg4; | |
30155 | } | |
30156 | { | |
30157 | if (temp5) | |
30158 | delete arg5; | |
30159 | } | |
30160 | return NULL; | |
30161 | } | |
30162 | ||
30163 | ||
c370783e | 30164 | static PyObject *_wrap_Menu_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30165 | PyObject *resultobj; |
30166 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30167 | size_t arg2 ; | |
30168 | wxMenuItem *result; | |
30169 | PyObject * obj0 = 0 ; | |
30170 | PyObject * obj1 = 0 ; | |
30171 | char *kwnames[] = { | |
30172 | (char *) "self",(char *) "pos", NULL | |
30173 | }; | |
30174 | ||
30175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
30176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30178 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
30179 | if (PyErr_Occurred()) SWIG_fail; |
30180 | { | |
30181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30182 | result = (wxMenuItem *)(arg1)->InsertSeparator(arg2); | |
30183 | ||
30184 | wxPyEndAllowThreads(__tstate); | |
30185 | if (PyErr_Occurred()) SWIG_fail; | |
30186 | } | |
30187 | { | |
412d302d | 30188 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30189 | } |
30190 | return resultobj; | |
30191 | fail: | |
30192 | return NULL; | |
30193 | } | |
30194 | ||
30195 | ||
c370783e | 30196 | static PyObject *_wrap_Menu_InsertCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30197 | PyObject *resultobj; |
30198 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30199 | size_t arg2 ; | |
30200 | int arg3 ; | |
30201 | wxString *arg4 = 0 ; | |
30202 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
30203 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
30204 | wxMenuItem *result; | |
b411df4a RD |
30205 | bool temp4 = false ; |
30206 | bool temp5 = false ; | |
d55e5bfc RD |
30207 | PyObject * obj0 = 0 ; |
30208 | PyObject * obj1 = 0 ; | |
30209 | PyObject * obj2 = 0 ; | |
30210 | PyObject * obj3 = 0 ; | |
30211 | PyObject * obj4 = 0 ; | |
30212 | char *kwnames[] = { | |
30213 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
30214 | }; | |
30215 | ||
30216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30219 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 30220 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30221 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
30222 | if (PyErr_Occurred()) SWIG_fail; |
30223 | { | |
30224 | arg4 = wxString_in_helper(obj3); | |
30225 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 30226 | temp4 = true; |
d55e5bfc RD |
30227 | } |
30228 | if (obj4) { | |
30229 | { | |
30230 | arg5 = wxString_in_helper(obj4); | |
30231 | if (arg5 == NULL) SWIG_fail; | |
b411df4a | 30232 | temp5 = true; |
d55e5bfc RD |
30233 | } |
30234 | } | |
30235 | { | |
30236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30237 | result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
30238 | ||
30239 | wxPyEndAllowThreads(__tstate); | |
30240 | if (PyErr_Occurred()) SWIG_fail; | |
30241 | } | |
30242 | { | |
412d302d | 30243 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30244 | } |
30245 | { | |
30246 | if (temp4) | |
30247 | delete arg4; | |
30248 | } | |
30249 | { | |
30250 | if (temp5) | |
30251 | delete arg5; | |
30252 | } | |
30253 | return resultobj; | |
30254 | fail: | |
30255 | { | |
30256 | if (temp4) | |
30257 | delete arg4; | |
30258 | } | |
30259 | { | |
30260 | if (temp5) | |
30261 | delete arg5; | |
30262 | } | |
30263 | return NULL; | |
30264 | } | |
30265 | ||
30266 | ||
c370783e | 30267 | static PyObject *_wrap_Menu_InsertRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30268 | PyObject *resultobj; |
30269 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30270 | size_t arg2 ; | |
30271 | int arg3 ; | |
30272 | wxString *arg4 = 0 ; | |
30273 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
30274 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
30275 | wxMenuItem *result; | |
b411df4a RD |
30276 | bool temp4 = false ; |
30277 | bool temp5 = false ; | |
d55e5bfc RD |
30278 | PyObject * obj0 = 0 ; |
30279 | PyObject * obj1 = 0 ; | |
30280 | PyObject * obj2 = 0 ; | |
30281 | PyObject * obj3 = 0 ; | |
30282 | PyObject * obj4 = 0 ; | |
30283 | char *kwnames[] = { | |
30284 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL | |
30285 | }; | |
30286 | ||
30287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30290 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 30291 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30292 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
30293 | if (PyErr_Occurred()) SWIG_fail; |
30294 | { | |
30295 | arg4 = wxString_in_helper(obj3); | |
30296 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 30297 | temp4 = true; |
d55e5bfc RD |
30298 | } |
30299 | if (obj4) { | |
30300 | { | |
30301 | arg5 = wxString_in_helper(obj4); | |
30302 | if (arg5 == NULL) SWIG_fail; | |
b411df4a | 30303 | temp5 = true; |
d55e5bfc RD |
30304 | } |
30305 | } | |
30306 | { | |
30307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30308 | result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5); | |
30309 | ||
30310 | wxPyEndAllowThreads(__tstate); | |
30311 | if (PyErr_Occurred()) SWIG_fail; | |
30312 | } | |
30313 | { | |
412d302d | 30314 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30315 | } |
30316 | { | |
30317 | if (temp4) | |
30318 | delete arg4; | |
30319 | } | |
30320 | { | |
30321 | if (temp5) | |
30322 | delete arg5; | |
30323 | } | |
30324 | return resultobj; | |
30325 | fail: | |
30326 | { | |
30327 | if (temp4) | |
30328 | delete arg4; | |
30329 | } | |
30330 | { | |
30331 | if (temp5) | |
30332 | delete arg5; | |
30333 | } | |
30334 | return NULL; | |
30335 | } | |
30336 | ||
30337 | ||
c370783e | 30338 | static PyObject *_wrap_Menu_InsertMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30339 | PyObject *resultobj; |
30340 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30341 | size_t arg2 ; | |
30342 | int arg3 ; | |
30343 | wxString *arg4 = 0 ; | |
30344 | wxMenu *arg5 = (wxMenu *) 0 ; | |
30345 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
30346 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
30347 | wxMenuItem *result; | |
b411df4a RD |
30348 | bool temp4 = false ; |
30349 | bool temp6 = false ; | |
d55e5bfc RD |
30350 | PyObject * obj0 = 0 ; |
30351 | PyObject * obj1 = 0 ; | |
30352 | PyObject * obj2 = 0 ; | |
30353 | PyObject * obj3 = 0 ; | |
30354 | PyObject * obj4 = 0 ; | |
30355 | PyObject * obj5 = 0 ; | |
30356 | char *kwnames[] = { | |
30357 | (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
30358 | }; | |
30359 | ||
30360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
30361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30363 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 30364 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 30365 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
30366 | if (PyErr_Occurred()) SWIG_fail; |
30367 | { | |
30368 | arg4 = wxString_in_helper(obj3); | |
30369 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 30370 | temp4 = true; |
d55e5bfc RD |
30371 | } |
30372 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu, | |
30373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30374 | if (obj5) { | |
30375 | { | |
30376 | arg6 = wxString_in_helper(obj5); | |
30377 | if (arg6 == NULL) SWIG_fail; | |
b411df4a | 30378 | temp6 = true; |
d55e5bfc RD |
30379 | } |
30380 | } | |
30381 | { | |
30382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30383 | result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6); | |
30384 | ||
30385 | wxPyEndAllowThreads(__tstate); | |
30386 | if (PyErr_Occurred()) SWIG_fail; | |
30387 | } | |
30388 | { | |
412d302d | 30389 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30390 | } |
30391 | { | |
30392 | if (temp4) | |
30393 | delete arg4; | |
30394 | } | |
30395 | { | |
30396 | if (temp6) | |
30397 | delete arg6; | |
30398 | } | |
30399 | return resultobj; | |
30400 | fail: | |
30401 | { | |
30402 | if (temp4) | |
30403 | delete arg4; | |
30404 | } | |
30405 | { | |
30406 | if (temp6) | |
30407 | delete arg6; | |
30408 | } | |
30409 | return NULL; | |
30410 | } | |
30411 | ||
30412 | ||
c370783e | 30413 | static PyObject *_wrap_Menu_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30414 | PyObject *resultobj; |
30415 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30416 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30417 | wxMenuItem *result; | |
30418 | PyObject * obj0 = 0 ; | |
30419 | PyObject * obj1 = 0 ; | |
30420 | char *kwnames[] = { | |
30421 | (char *) "self",(char *) "item", NULL | |
30422 | }; | |
30423 | ||
30424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
30425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30427 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30429 | { | |
30430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30431 | result = (wxMenuItem *)(arg1)->Prepend(arg2); | |
30432 | ||
30433 | wxPyEndAllowThreads(__tstate); | |
30434 | if (PyErr_Occurred()) SWIG_fail; | |
30435 | } | |
30436 | { | |
412d302d | 30437 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30438 | } |
30439 | return resultobj; | |
30440 | fail: | |
30441 | return NULL; | |
30442 | } | |
30443 | ||
30444 | ||
c370783e | 30445 | static PyObject *_wrap_Menu_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30446 | PyObject *resultobj; |
30447 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30448 | int arg2 ; | |
30449 | wxString *arg3 = 0 ; | |
30450 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30451 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30452 | int arg5 = (int) wxITEM_NORMAL ; | |
30453 | wxMenuItem *result; | |
b411df4a RD |
30454 | bool temp3 = false ; |
30455 | bool temp4 = false ; | |
d55e5bfc RD |
30456 | PyObject * obj0 = 0 ; |
30457 | PyObject * obj1 = 0 ; | |
30458 | PyObject * obj2 = 0 ; | |
30459 | PyObject * obj3 = 0 ; | |
30460 | PyObject * obj4 = 0 ; | |
30461 | char *kwnames[] = { | |
30462 | (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL | |
30463 | }; | |
30464 | ||
30465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30468 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30469 | if (PyErr_Occurred()) SWIG_fail; |
30470 | { | |
30471 | arg3 = wxString_in_helper(obj2); | |
30472 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 30473 | temp3 = true; |
d55e5bfc RD |
30474 | } |
30475 | if (obj3) { | |
30476 | { | |
30477 | arg4 = wxString_in_helper(obj3); | |
30478 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 30479 | temp4 = true; |
d55e5bfc RD |
30480 | } |
30481 | } | |
30482 | if (obj4) { | |
c370783e | 30483 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
30484 | if (PyErr_Occurred()) SWIG_fail; |
30485 | } | |
30486 | { | |
30487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30488 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5); | |
30489 | ||
30490 | wxPyEndAllowThreads(__tstate); | |
30491 | if (PyErr_Occurred()) SWIG_fail; | |
30492 | } | |
30493 | { | |
412d302d | 30494 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30495 | } |
30496 | { | |
30497 | if (temp3) | |
30498 | delete arg3; | |
30499 | } | |
30500 | { | |
30501 | if (temp4) | |
30502 | delete arg4; | |
30503 | } | |
30504 | return resultobj; | |
30505 | fail: | |
30506 | { | |
30507 | if (temp3) | |
30508 | delete arg3; | |
30509 | } | |
30510 | { | |
30511 | if (temp4) | |
30512 | delete arg4; | |
30513 | } | |
30514 | return NULL; | |
30515 | } | |
30516 | ||
30517 | ||
c370783e | 30518 | static PyObject *_wrap_Menu_PrependSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30519 | PyObject *resultobj; |
30520 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30521 | wxMenuItem *result; | |
30522 | PyObject * obj0 = 0 ; | |
30523 | char *kwnames[] = { | |
30524 | (char *) "self", NULL | |
30525 | }; | |
30526 | ||
30527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail; | |
30528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30530 | { | |
30531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30532 | result = (wxMenuItem *)(arg1)->PrependSeparator(); | |
30533 | ||
30534 | wxPyEndAllowThreads(__tstate); | |
30535 | if (PyErr_Occurred()) SWIG_fail; | |
30536 | } | |
30537 | { | |
412d302d | 30538 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30539 | } |
30540 | return resultobj; | |
30541 | fail: | |
30542 | return NULL; | |
30543 | } | |
30544 | ||
30545 | ||
c370783e | 30546 | static PyObject *_wrap_Menu_PrependCheckItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30547 | PyObject *resultobj; |
30548 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30549 | int arg2 ; | |
30550 | wxString *arg3 = 0 ; | |
30551 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30552 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30553 | wxMenuItem *result; | |
b411df4a RD |
30554 | bool temp3 = false ; |
30555 | bool temp4 = false ; | |
d55e5bfc RD |
30556 | PyObject * obj0 = 0 ; |
30557 | PyObject * obj1 = 0 ; | |
30558 | PyObject * obj2 = 0 ; | |
30559 | PyObject * obj3 = 0 ; | |
30560 | char *kwnames[] = { | |
30561 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
30562 | }; | |
30563 | ||
30564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30567 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30568 | if (PyErr_Occurred()) SWIG_fail; |
30569 | { | |
30570 | arg3 = wxString_in_helper(obj2); | |
30571 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 30572 | temp3 = true; |
d55e5bfc RD |
30573 | } |
30574 | if (obj3) { | |
30575 | { | |
30576 | arg4 = wxString_in_helper(obj3); | |
30577 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 30578 | temp4 = true; |
d55e5bfc RD |
30579 | } |
30580 | } | |
30581 | { | |
30582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30583 | result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
30584 | ||
30585 | wxPyEndAllowThreads(__tstate); | |
30586 | if (PyErr_Occurred()) SWIG_fail; | |
30587 | } | |
30588 | { | |
412d302d | 30589 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30590 | } |
30591 | { | |
30592 | if (temp3) | |
30593 | delete arg3; | |
30594 | } | |
30595 | { | |
30596 | if (temp4) | |
30597 | delete arg4; | |
30598 | } | |
30599 | return resultobj; | |
30600 | fail: | |
30601 | { | |
30602 | if (temp3) | |
30603 | delete arg3; | |
30604 | } | |
30605 | { | |
30606 | if (temp4) | |
30607 | delete arg4; | |
30608 | } | |
30609 | return NULL; | |
30610 | } | |
30611 | ||
30612 | ||
c370783e | 30613 | static PyObject *_wrap_Menu_PrependRadioItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30614 | PyObject *resultobj; |
30615 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30616 | int arg2 ; | |
30617 | wxString *arg3 = 0 ; | |
30618 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
30619 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
30620 | wxMenuItem *result; | |
b411df4a RD |
30621 | bool temp3 = false ; |
30622 | bool temp4 = false ; | |
d55e5bfc RD |
30623 | PyObject * obj0 = 0 ; |
30624 | PyObject * obj1 = 0 ; | |
30625 | PyObject * obj2 = 0 ; | |
30626 | PyObject * obj3 = 0 ; | |
30627 | char *kwnames[] = { | |
30628 | (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL | |
30629 | }; | |
30630 | ||
30631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30634 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30635 | if (PyErr_Occurred()) SWIG_fail; |
30636 | { | |
30637 | arg3 = wxString_in_helper(obj2); | |
30638 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 30639 | temp3 = true; |
d55e5bfc RD |
30640 | } |
30641 | if (obj3) { | |
30642 | { | |
30643 | arg4 = wxString_in_helper(obj3); | |
30644 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 30645 | temp4 = true; |
d55e5bfc RD |
30646 | } |
30647 | } | |
30648 | { | |
30649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30650 | result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4); | |
30651 | ||
30652 | wxPyEndAllowThreads(__tstate); | |
30653 | if (PyErr_Occurred()) SWIG_fail; | |
30654 | } | |
30655 | { | |
412d302d | 30656 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30657 | } |
30658 | { | |
30659 | if (temp3) | |
30660 | delete arg3; | |
30661 | } | |
30662 | { | |
30663 | if (temp4) | |
30664 | delete arg4; | |
30665 | } | |
30666 | return resultobj; | |
30667 | fail: | |
30668 | { | |
30669 | if (temp3) | |
30670 | delete arg3; | |
30671 | } | |
30672 | { | |
30673 | if (temp4) | |
30674 | delete arg4; | |
30675 | } | |
30676 | return NULL; | |
30677 | } | |
30678 | ||
30679 | ||
c370783e | 30680 | static PyObject *_wrap_Menu_PrependMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30681 | PyObject *resultobj; |
30682 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30683 | int arg2 ; | |
30684 | wxString *arg3 = 0 ; | |
30685 | wxMenu *arg4 = (wxMenu *) 0 ; | |
30686 | wxString const &arg5_defvalue = wxPyEmptyString ; | |
30687 | wxString *arg5 = (wxString *) &arg5_defvalue ; | |
30688 | wxMenuItem *result; | |
b411df4a RD |
30689 | bool temp3 = false ; |
30690 | bool temp5 = false ; | |
d55e5bfc RD |
30691 | PyObject * obj0 = 0 ; |
30692 | PyObject * obj1 = 0 ; | |
30693 | PyObject * obj2 = 0 ; | |
30694 | PyObject * obj3 = 0 ; | |
30695 | PyObject * obj4 = 0 ; | |
30696 | char *kwnames[] = { | |
30697 | (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL | |
30698 | }; | |
30699 | ||
30700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30703 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30704 | if (PyErr_Occurred()) SWIG_fail; |
30705 | { | |
30706 | arg3 = wxString_in_helper(obj2); | |
30707 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 30708 | temp3 = true; |
d55e5bfc RD |
30709 | } |
30710 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu, | |
30711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30712 | if (obj4) { | |
30713 | { | |
30714 | arg5 = wxString_in_helper(obj4); | |
30715 | if (arg5 == NULL) SWIG_fail; | |
b411df4a | 30716 | temp5 = true; |
d55e5bfc RD |
30717 | } |
30718 | } | |
30719 | { | |
30720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30721 | result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5); | |
30722 | ||
30723 | wxPyEndAllowThreads(__tstate); | |
30724 | if (PyErr_Occurred()) SWIG_fail; | |
30725 | } | |
30726 | { | |
412d302d | 30727 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30728 | } |
30729 | { | |
30730 | if (temp3) | |
30731 | delete arg3; | |
30732 | } | |
30733 | { | |
30734 | if (temp5) | |
30735 | delete arg5; | |
30736 | } | |
30737 | return resultobj; | |
30738 | fail: | |
30739 | { | |
30740 | if (temp3) | |
30741 | delete arg3; | |
30742 | } | |
30743 | { | |
30744 | if (temp5) | |
30745 | delete arg5; | |
30746 | } | |
30747 | return NULL; | |
30748 | } | |
30749 | ||
30750 | ||
c370783e | 30751 | static PyObject *_wrap_Menu_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30752 | PyObject *resultobj; |
30753 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30754 | int arg2 ; | |
30755 | wxMenuItem *result; | |
30756 | PyObject * obj0 = 0 ; | |
30757 | PyObject * obj1 = 0 ; | |
30758 | char *kwnames[] = { | |
30759 | (char *) "self",(char *) "id", NULL | |
30760 | }; | |
30761 | ||
30762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail; | |
30763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30765 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30766 | if (PyErr_Occurred()) SWIG_fail; |
30767 | { | |
30768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30769 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
30770 | ||
30771 | wxPyEndAllowThreads(__tstate); | |
30772 | if (PyErr_Occurred()) SWIG_fail; | |
30773 | } | |
30774 | { | |
412d302d | 30775 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30776 | } |
30777 | return resultobj; | |
30778 | fail: | |
30779 | return NULL; | |
30780 | } | |
30781 | ||
30782 | ||
c370783e | 30783 | static PyObject *_wrap_Menu_RemoveItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30784 | PyObject *resultobj; |
30785 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30786 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30787 | wxMenuItem *result; | |
30788 | PyObject * obj0 = 0 ; | |
30789 | PyObject * obj1 = 0 ; | |
30790 | char *kwnames[] = { | |
30791 | (char *) "self",(char *) "item", NULL | |
30792 | }; | |
30793 | ||
30794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail; | |
30795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30797 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30799 | { | |
30800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30801 | result = (wxMenuItem *)(arg1)->Remove(arg2); | |
30802 | ||
30803 | wxPyEndAllowThreads(__tstate); | |
30804 | if (PyErr_Occurred()) SWIG_fail; | |
30805 | } | |
30806 | { | |
412d302d | 30807 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
30808 | } |
30809 | return resultobj; | |
30810 | fail: | |
30811 | return NULL; | |
30812 | } | |
30813 | ||
30814 | ||
c370783e | 30815 | static PyObject *_wrap_Menu_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30816 | PyObject *resultobj; |
30817 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30818 | int arg2 ; | |
30819 | bool result; | |
30820 | PyObject * obj0 = 0 ; | |
30821 | PyObject * obj1 = 0 ; | |
30822 | char *kwnames[] = { | |
30823 | (char *) "self",(char *) "id", NULL | |
30824 | }; | |
30825 | ||
30826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail; | |
30827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 30829 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
30830 | if (PyErr_Occurred()) SWIG_fail; |
30831 | { | |
30832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30833 | result = (bool)(arg1)->Delete(arg2); | |
30834 | ||
30835 | wxPyEndAllowThreads(__tstate); | |
30836 | if (PyErr_Occurred()) SWIG_fail; | |
30837 | } | |
30838 | { | |
30839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30840 | } | |
30841 | return resultobj; | |
30842 | fail: | |
30843 | return NULL; | |
30844 | } | |
30845 | ||
30846 | ||
c370783e | 30847 | static PyObject *_wrap_Menu_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30848 | PyObject *resultobj; |
30849 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30850 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30851 | bool result; | |
30852 | PyObject * obj0 = 0 ; | |
30853 | PyObject * obj1 = 0 ; | |
30854 | char *kwnames[] = { | |
30855 | (char *) "self",(char *) "item", NULL | |
30856 | }; | |
30857 | ||
30858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
30859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30861 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30863 | { | |
30864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30865 | result = (bool)(arg1)->Delete(arg2); | |
30866 | ||
30867 | wxPyEndAllowThreads(__tstate); | |
30868 | if (PyErr_Occurred()) SWIG_fail; | |
30869 | } | |
30870 | { | |
30871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30872 | } | |
30873 | return resultobj; | |
30874 | fail: | |
30875 | return NULL; | |
30876 | } | |
30877 | ||
30878 | ||
c370783e | 30879 | static PyObject *_wrap_Menu_Destroy(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30880 | PyObject *resultobj; |
30881 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30882 | PyObject * obj0 = 0 ; | |
30883 | char *kwnames[] = { | |
30884 | (char *) "self", NULL | |
30885 | }; | |
30886 | ||
30887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail; | |
30888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30890 | { | |
30891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30892 | wxMenu_Destroy(arg1); | |
30893 | ||
30894 | wxPyEndAllowThreads(__tstate); | |
30895 | if (PyErr_Occurred()) SWIG_fail; | |
30896 | } | |
30897 | Py_INCREF(Py_None); resultobj = Py_None; | |
30898 | return resultobj; | |
30899 | fail: | |
30900 | return NULL; | |
30901 | } | |
30902 | ||
30903 | ||
c370783e | 30904 | static PyObject *_wrap_Menu_DestroyId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30905 | PyObject *resultobj; |
30906 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30907 | int arg2 ; | |
30908 | bool result; | |
30909 | PyObject * obj0 = 0 ; | |
30910 | PyObject * obj1 = 0 ; | |
30911 | char *kwnames[] = { | |
30912 | (char *) "self",(char *) "id", NULL | |
30913 | }; | |
30914 | ||
30915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) 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 RD |
30919 | if (PyErr_Occurred()) SWIG_fail; |
30920 | { | |
30921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30922 | result = (bool)(arg1)->Destroy(arg2); | |
30923 | ||
30924 | wxPyEndAllowThreads(__tstate); | |
30925 | if (PyErr_Occurred()) SWIG_fail; | |
30926 | } | |
30927 | { | |
30928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30929 | } | |
30930 | return resultobj; | |
30931 | fail: | |
30932 | return NULL; | |
30933 | } | |
30934 | ||
30935 | ||
c370783e | 30936 | static PyObject *_wrap_Menu_DestroyItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30937 | PyObject *resultobj; |
30938 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30939 | wxMenuItem *arg2 = (wxMenuItem *) 0 ; | |
30940 | bool result; | |
30941 | PyObject * obj0 = 0 ; | |
30942 | PyObject * obj1 = 0 ; | |
30943 | char *kwnames[] = { | |
30944 | (char *) "self",(char *) "item", NULL | |
30945 | }; | |
30946 | ||
30947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail; | |
30948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30950 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem, | |
30951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30952 | { | |
30953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30954 | result = (bool)(arg1)->Destroy(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_GetMenuItemCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30969 | PyObject *resultobj; |
30970 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30971 | size_t result; | |
30972 | PyObject * obj0 = 0 ; | |
30973 | char *kwnames[] = { | |
30974 | (char *) "self", NULL | |
30975 | }; | |
30976 | ||
30977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail; | |
30978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
30979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30980 | { | |
30981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30982 | result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount(); | |
30983 | ||
30984 | wxPyEndAllowThreads(__tstate); | |
30985 | if (PyErr_Occurred()) SWIG_fail; | |
30986 | } | |
c370783e | 30987 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
30988 | return resultobj; |
30989 | fail: | |
30990 | return NULL; | |
30991 | } | |
30992 | ||
30993 | ||
c370783e | 30994 | static PyObject *_wrap_Menu_GetMenuItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
30995 | PyObject *resultobj; |
30996 | wxMenu *arg1 = (wxMenu *) 0 ; | |
30997 | PyObject *result; | |
30998 | PyObject * obj0 = 0 ; | |
30999 | char *kwnames[] = { | |
31000 | (char *) "self", NULL | |
31001 | }; | |
31002 | ||
31003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail; | |
31004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31006 | { | |
31007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31008 | result = (PyObject *)wxMenu_GetMenuItems(arg1); | |
31009 | ||
31010 | wxPyEndAllowThreads(__tstate); | |
31011 | if (PyErr_Occurred()) SWIG_fail; | |
31012 | } | |
31013 | resultobj = result; | |
31014 | return resultobj; | |
31015 | fail: | |
31016 | return NULL; | |
31017 | } | |
31018 | ||
31019 | ||
c370783e | 31020 | static PyObject *_wrap_Menu_FindItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31021 | PyObject *resultobj; |
31022 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31023 | wxString *arg2 = 0 ; | |
31024 | int result; | |
b411df4a | 31025 | bool temp2 = false ; |
d55e5bfc RD |
31026 | PyObject * obj0 = 0 ; |
31027 | PyObject * obj1 = 0 ; | |
31028 | char *kwnames[] = { | |
31029 | (char *) "self",(char *) "item", NULL | |
31030 | }; | |
31031 | ||
31032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail; | |
31033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31035 | { | |
31036 | arg2 = wxString_in_helper(obj1); | |
31037 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 31038 | temp2 = true; |
d55e5bfc RD |
31039 | } |
31040 | { | |
31041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31042 | result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2); | |
31043 | ||
31044 | wxPyEndAllowThreads(__tstate); | |
31045 | if (PyErr_Occurred()) SWIG_fail; | |
31046 | } | |
c370783e | 31047 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
31048 | { |
31049 | if (temp2) | |
31050 | delete arg2; | |
31051 | } | |
31052 | return resultobj; | |
31053 | fail: | |
31054 | { | |
31055 | if (temp2) | |
31056 | delete arg2; | |
31057 | } | |
31058 | return NULL; | |
31059 | } | |
31060 | ||
31061 | ||
c370783e | 31062 | static PyObject *_wrap_Menu_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31063 | PyObject *resultobj; |
31064 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31065 | int arg2 ; | |
31066 | wxMenuItem *result; | |
31067 | PyObject * obj0 = 0 ; | |
31068 | PyObject * obj1 = 0 ; | |
31069 | char *kwnames[] = { | |
31070 | (char *) "self",(char *) "id", NULL | |
31071 | }; | |
31072 | ||
31073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
31074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31076 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31077 | if (PyErr_Occurred()) SWIG_fail; |
31078 | { | |
31079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31080 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2); | |
31081 | ||
31082 | wxPyEndAllowThreads(__tstate); | |
31083 | if (PyErr_Occurred()) SWIG_fail; | |
31084 | } | |
31085 | { | |
412d302d | 31086 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31087 | } |
31088 | return resultobj; | |
31089 | fail: | |
31090 | return NULL; | |
31091 | } | |
31092 | ||
31093 | ||
c370783e | 31094 | static PyObject *_wrap_Menu_FindItemByPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31095 | PyObject *resultobj; |
31096 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31097 | size_t arg2 ; | |
31098 | wxMenuItem *result; | |
31099 | PyObject * obj0 = 0 ; | |
31100 | PyObject * obj1 = 0 ; | |
31101 | char *kwnames[] = { | |
31102 | (char *) "self",(char *) "position", NULL | |
31103 | }; | |
31104 | ||
31105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",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 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31109 | if (PyErr_Occurred()) SWIG_fail; |
31110 | { | |
31111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31112 | result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2); | |
31113 | ||
31114 | wxPyEndAllowThreads(__tstate); | |
31115 | if (PyErr_Occurred()) SWIG_fail; | |
31116 | } | |
31117 | { | |
412d302d | 31118 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31119 | } |
31120 | return resultobj; | |
31121 | fail: | |
31122 | return NULL; | |
31123 | } | |
31124 | ||
31125 | ||
c370783e | 31126 | static PyObject *_wrap_Menu_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31127 | PyObject *resultobj; |
31128 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31129 | int arg2 ; | |
31130 | bool arg3 ; | |
31131 | PyObject * obj0 = 0 ; | |
31132 | PyObject * obj1 = 0 ; | |
31133 | PyObject * obj2 = 0 ; | |
31134 | char *kwnames[] = { | |
31135 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
31136 | }; | |
31137 | ||
31138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31141 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 31142 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 31143 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
31144 | if (PyErr_Occurred()) SWIG_fail; |
31145 | { | |
31146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31147 | (arg1)->Enable(arg2,arg3); | |
31148 | ||
31149 | wxPyEndAllowThreads(__tstate); | |
31150 | if (PyErr_Occurred()) SWIG_fail; | |
31151 | } | |
31152 | Py_INCREF(Py_None); resultobj = Py_None; | |
31153 | return resultobj; | |
31154 | fail: | |
31155 | return NULL; | |
31156 | } | |
31157 | ||
31158 | ||
c370783e | 31159 | static PyObject *_wrap_Menu_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31160 | PyObject *resultobj; |
31161 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31162 | int arg2 ; | |
31163 | bool result; | |
31164 | PyObject * obj0 = 0 ; | |
31165 | PyObject * obj1 = 0 ; | |
31166 | char *kwnames[] = { | |
31167 | (char *) "self",(char *) "id", NULL | |
31168 | }; | |
31169 | ||
31170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
31171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31173 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31174 | if (PyErr_Occurred()) SWIG_fail; |
31175 | { | |
31176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31177 | result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2); | |
31178 | ||
31179 | wxPyEndAllowThreads(__tstate); | |
31180 | if (PyErr_Occurred()) SWIG_fail; | |
31181 | } | |
31182 | { | |
31183 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31184 | } | |
31185 | return resultobj; | |
31186 | fail: | |
31187 | return NULL; | |
31188 | } | |
31189 | ||
31190 | ||
c370783e | 31191 | static PyObject *_wrap_Menu_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31192 | PyObject *resultobj; |
31193 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31194 | int arg2 ; | |
31195 | bool arg3 ; | |
31196 | PyObject * obj0 = 0 ; | |
31197 | PyObject * obj1 = 0 ; | |
31198 | PyObject * obj2 = 0 ; | |
31199 | char *kwnames[] = { | |
31200 | (char *) "self",(char *) "id",(char *) "check", NULL | |
31201 | }; | |
31202 | ||
31203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31206 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 31207 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 31208 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
31209 | if (PyErr_Occurred()) SWIG_fail; |
31210 | { | |
31211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31212 | (arg1)->Check(arg2,arg3); | |
31213 | ||
31214 | wxPyEndAllowThreads(__tstate); | |
31215 | if (PyErr_Occurred()) SWIG_fail; | |
31216 | } | |
31217 | Py_INCREF(Py_None); resultobj = Py_None; | |
31218 | return resultobj; | |
31219 | fail: | |
31220 | return NULL; | |
31221 | } | |
31222 | ||
31223 | ||
c370783e | 31224 | static PyObject *_wrap_Menu_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31225 | PyObject *resultobj; |
31226 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31227 | int arg2 ; | |
31228 | bool result; | |
31229 | PyObject * obj0 = 0 ; | |
31230 | PyObject * obj1 = 0 ; | |
31231 | char *kwnames[] = { | |
31232 | (char *) "self",(char *) "id", NULL | |
31233 | }; | |
31234 | ||
31235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
31236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31238 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31239 | if (PyErr_Occurred()) SWIG_fail; |
31240 | { | |
31241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31242 | result = (bool)((wxMenu const *)arg1)->IsChecked(arg2); | |
31243 | ||
31244 | wxPyEndAllowThreads(__tstate); | |
31245 | if (PyErr_Occurred()) SWIG_fail; | |
31246 | } | |
31247 | { | |
31248 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31249 | } | |
31250 | return resultobj; | |
31251 | fail: | |
31252 | return NULL; | |
31253 | } | |
31254 | ||
31255 | ||
c370783e | 31256 | static PyObject *_wrap_Menu_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31257 | PyObject *resultobj; |
31258 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31259 | int arg2 ; | |
31260 | wxString *arg3 = 0 ; | |
b411df4a | 31261 | bool temp3 = false ; |
d55e5bfc RD |
31262 | PyObject * obj0 = 0 ; |
31263 | PyObject * obj1 = 0 ; | |
31264 | PyObject * obj2 = 0 ; | |
31265 | char *kwnames[] = { | |
31266 | (char *) "self",(char *) "id",(char *) "label", NULL | |
31267 | }; | |
31268 | ||
31269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31272 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31273 | if (PyErr_Occurred()) SWIG_fail; |
31274 | { | |
31275 | arg3 = wxString_in_helper(obj2); | |
31276 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 31277 | temp3 = true; |
d55e5bfc RD |
31278 | } |
31279 | { | |
31280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31281 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
31282 | ||
31283 | wxPyEndAllowThreads(__tstate); | |
31284 | if (PyErr_Occurred()) SWIG_fail; | |
31285 | } | |
31286 | Py_INCREF(Py_None); resultobj = Py_None; | |
31287 | { | |
31288 | if (temp3) | |
31289 | delete arg3; | |
31290 | } | |
31291 | return resultobj; | |
31292 | fail: | |
31293 | { | |
31294 | if (temp3) | |
31295 | delete arg3; | |
31296 | } | |
31297 | return NULL; | |
31298 | } | |
31299 | ||
31300 | ||
c370783e | 31301 | static PyObject *_wrap_Menu_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31302 | PyObject *resultobj; |
31303 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31304 | int arg2 ; | |
31305 | wxString result; | |
31306 | PyObject * obj0 = 0 ; | |
31307 | PyObject * obj1 = 0 ; | |
31308 | char *kwnames[] = { | |
31309 | (char *) "self",(char *) "id", NULL | |
31310 | }; | |
31311 | ||
31312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
31313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31315 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31316 | if (PyErr_Occurred()) SWIG_fail; |
31317 | { | |
31318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31319 | result = ((wxMenu const *)arg1)->GetLabel(arg2); | |
31320 | ||
31321 | wxPyEndAllowThreads(__tstate); | |
31322 | if (PyErr_Occurred()) SWIG_fail; | |
31323 | } | |
31324 | { | |
31325 | #if wxUSE_UNICODE | |
31326 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31327 | #else | |
31328 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31329 | #endif | |
31330 | } | |
31331 | return resultobj; | |
31332 | fail: | |
31333 | return NULL; | |
31334 | } | |
31335 | ||
31336 | ||
c370783e | 31337 | static PyObject *_wrap_Menu_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31338 | PyObject *resultobj; |
31339 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31340 | int arg2 ; | |
31341 | wxString *arg3 = 0 ; | |
b411df4a | 31342 | bool temp3 = false ; |
d55e5bfc RD |
31343 | PyObject * obj0 = 0 ; |
31344 | PyObject * obj1 = 0 ; | |
31345 | PyObject * obj2 = 0 ; | |
31346 | char *kwnames[] = { | |
31347 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
31348 | }; | |
31349 | ||
31350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31353 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31354 | if (PyErr_Occurred()) SWIG_fail; |
31355 | { | |
31356 | arg3 = wxString_in_helper(obj2); | |
31357 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 31358 | temp3 = true; |
d55e5bfc RD |
31359 | } |
31360 | { | |
31361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31362 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
31363 | ||
31364 | wxPyEndAllowThreads(__tstate); | |
31365 | if (PyErr_Occurred()) SWIG_fail; | |
31366 | } | |
31367 | Py_INCREF(Py_None); resultobj = Py_None; | |
31368 | { | |
31369 | if (temp3) | |
31370 | delete arg3; | |
31371 | } | |
31372 | return resultobj; | |
31373 | fail: | |
31374 | { | |
31375 | if (temp3) | |
31376 | delete arg3; | |
31377 | } | |
31378 | return NULL; | |
31379 | } | |
31380 | ||
31381 | ||
c370783e | 31382 | static PyObject *_wrap_Menu_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31383 | PyObject *resultobj; |
31384 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31385 | int arg2 ; | |
31386 | wxString result; | |
31387 | PyObject * obj0 = 0 ; | |
31388 | PyObject * obj1 = 0 ; | |
31389 | char *kwnames[] = { | |
31390 | (char *) "self",(char *) "id", NULL | |
31391 | }; | |
31392 | ||
31393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
31394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31396 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
31397 | if (PyErr_Occurred()) SWIG_fail; |
31398 | { | |
31399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31400 | result = ((wxMenu const *)arg1)->GetHelpString(arg2); | |
31401 | ||
31402 | wxPyEndAllowThreads(__tstate); | |
31403 | if (PyErr_Occurred()) SWIG_fail; | |
31404 | } | |
31405 | { | |
31406 | #if wxUSE_UNICODE | |
31407 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31408 | #else | |
31409 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31410 | #endif | |
31411 | } | |
31412 | return resultobj; | |
31413 | fail: | |
31414 | return NULL; | |
31415 | } | |
31416 | ||
31417 | ||
c370783e | 31418 | static PyObject *_wrap_Menu_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31419 | PyObject *resultobj; |
31420 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31421 | wxString *arg2 = 0 ; | |
b411df4a | 31422 | bool temp2 = false ; |
d55e5bfc RD |
31423 | PyObject * obj0 = 0 ; |
31424 | PyObject * obj1 = 0 ; | |
31425 | char *kwnames[] = { | |
31426 | (char *) "self",(char *) "title", NULL | |
31427 | }; | |
31428 | ||
31429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail; | |
31430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31432 | { | |
31433 | arg2 = wxString_in_helper(obj1); | |
31434 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 31435 | temp2 = true; |
d55e5bfc RD |
31436 | } |
31437 | { | |
31438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31439 | (arg1)->SetTitle((wxString const &)*arg2); | |
31440 | ||
31441 | wxPyEndAllowThreads(__tstate); | |
31442 | if (PyErr_Occurred()) SWIG_fail; | |
31443 | } | |
31444 | Py_INCREF(Py_None); resultobj = Py_None; | |
31445 | { | |
31446 | if (temp2) | |
31447 | delete arg2; | |
31448 | } | |
31449 | return resultobj; | |
31450 | fail: | |
31451 | { | |
31452 | if (temp2) | |
31453 | delete arg2; | |
31454 | } | |
31455 | return NULL; | |
31456 | } | |
31457 | ||
31458 | ||
c370783e | 31459 | static PyObject *_wrap_Menu_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31460 | PyObject *resultobj; |
31461 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31462 | wxString result; | |
31463 | PyObject * obj0 = 0 ; | |
31464 | char *kwnames[] = { | |
31465 | (char *) "self", NULL | |
31466 | }; | |
31467 | ||
31468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail; | |
31469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31471 | { | |
31472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31473 | result = ((wxMenu const *)arg1)->GetTitle(); | |
31474 | ||
31475 | wxPyEndAllowThreads(__tstate); | |
31476 | if (PyErr_Occurred()) SWIG_fail; | |
31477 | } | |
31478 | { | |
31479 | #if wxUSE_UNICODE | |
31480 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
31481 | #else | |
31482 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
31483 | #endif | |
31484 | } | |
31485 | return resultobj; | |
31486 | fail: | |
31487 | return NULL; | |
31488 | } | |
31489 | ||
31490 | ||
c370783e | 31491 | static PyObject *_wrap_Menu_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31492 | PyObject *resultobj; |
31493 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31494 | wxEvtHandler *arg2 = (wxEvtHandler *) 0 ; | |
31495 | PyObject * obj0 = 0 ; | |
31496 | PyObject * obj1 = 0 ; | |
31497 | char *kwnames[] = { | |
31498 | (char *) "self",(char *) "handler", NULL | |
31499 | }; | |
31500 | ||
31501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail; | |
31502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31504 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
31505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31506 | { | |
31507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31508 | (arg1)->SetEventHandler(arg2); | |
31509 | ||
31510 | wxPyEndAllowThreads(__tstate); | |
31511 | if (PyErr_Occurred()) SWIG_fail; | |
31512 | } | |
31513 | Py_INCREF(Py_None); resultobj = Py_None; | |
31514 | return resultobj; | |
31515 | fail: | |
31516 | return NULL; | |
31517 | } | |
31518 | ||
31519 | ||
c370783e | 31520 | static PyObject *_wrap_Menu_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31521 | PyObject *resultobj; |
31522 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31523 | wxEvtHandler *result; | |
31524 | PyObject * obj0 = 0 ; | |
31525 | char *kwnames[] = { | |
31526 | (char *) "self", NULL | |
31527 | }; | |
31528 | ||
31529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail; | |
31530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31532 | { | |
31533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31534 | result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler(); | |
31535 | ||
31536 | wxPyEndAllowThreads(__tstate); | |
31537 | if (PyErr_Occurred()) SWIG_fail; | |
31538 | } | |
31539 | { | |
412d302d | 31540 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31541 | } |
31542 | return resultobj; | |
31543 | fail: | |
31544 | return NULL; | |
31545 | } | |
31546 | ||
31547 | ||
c370783e | 31548 | static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31549 | PyObject *resultobj; |
31550 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31551 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31552 | PyObject * obj0 = 0 ; | |
31553 | PyObject * obj1 = 0 ; | |
31554 | char *kwnames[] = { | |
31555 | (char *) "self",(char *) "win", NULL | |
31556 | }; | |
31557 | ||
31558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail; | |
31559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31561 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
31562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31563 | { | |
31564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31565 | (arg1)->SetInvokingWindow(arg2); | |
31566 | ||
31567 | wxPyEndAllowThreads(__tstate); | |
31568 | if (PyErr_Occurred()) SWIG_fail; | |
31569 | } | |
31570 | Py_INCREF(Py_None); resultobj = Py_None; | |
31571 | return resultobj; | |
31572 | fail: | |
31573 | return NULL; | |
31574 | } | |
31575 | ||
31576 | ||
c370783e | 31577 | static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31578 | PyObject *resultobj; |
31579 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31580 | wxWindow *result; | |
31581 | PyObject * obj0 = 0 ; | |
31582 | char *kwnames[] = { | |
31583 | (char *) "self", NULL | |
31584 | }; | |
31585 | ||
31586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail; | |
31587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31589 | { | |
31590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31591 | result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow(); | |
31592 | ||
31593 | wxPyEndAllowThreads(__tstate); | |
31594 | if (PyErr_Occurred()) SWIG_fail; | |
31595 | } | |
31596 | { | |
412d302d | 31597 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31598 | } |
31599 | return resultobj; | |
31600 | fail: | |
31601 | return NULL; | |
31602 | } | |
31603 | ||
31604 | ||
c370783e | 31605 | static PyObject *_wrap_Menu_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31606 | PyObject *resultobj; |
31607 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31608 | long result; | |
31609 | PyObject * obj0 = 0 ; | |
31610 | char *kwnames[] = { | |
31611 | (char *) "self", NULL | |
31612 | }; | |
31613 | ||
31614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail; | |
31615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31617 | { | |
31618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31619 | result = (long)((wxMenu const *)arg1)->GetStyle(); | |
31620 | ||
31621 | wxPyEndAllowThreads(__tstate); | |
31622 | if (PyErr_Occurred()) SWIG_fail; | |
31623 | } | |
c370783e | 31624 | resultobj = SWIG_From_long((long)result); |
d55e5bfc RD |
31625 | return resultobj; |
31626 | fail: | |
31627 | return NULL; | |
31628 | } | |
31629 | ||
31630 | ||
c370783e | 31631 | static PyObject *_wrap_Menu_UpdateUI(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31632 | PyObject *resultobj; |
31633 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31634 | wxEvtHandler *arg2 = (wxEvtHandler *) NULL ; | |
31635 | PyObject * obj0 = 0 ; | |
31636 | PyObject * obj1 = 0 ; | |
31637 | char *kwnames[] = { | |
31638 | (char *) "self",(char *) "source", NULL | |
31639 | }; | |
31640 | ||
31641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail; | |
31642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31644 | if (obj1) { | |
31645 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler, | |
31646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31647 | } | |
31648 | { | |
31649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31650 | (arg1)->UpdateUI(arg2); | |
31651 | ||
31652 | wxPyEndAllowThreads(__tstate); | |
31653 | if (PyErr_Occurred()) SWIG_fail; | |
31654 | } | |
31655 | Py_INCREF(Py_None); resultobj = Py_None; | |
31656 | return resultobj; | |
31657 | fail: | |
31658 | return NULL; | |
31659 | } | |
31660 | ||
31661 | ||
c370783e | 31662 | static PyObject *_wrap_Menu_GetMenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31663 | PyObject *resultobj; |
31664 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31665 | wxMenuBar *result; | |
31666 | PyObject * obj0 = 0 ; | |
31667 | char *kwnames[] = { | |
31668 | (char *) "self", NULL | |
31669 | }; | |
31670 | ||
31671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail; | |
31672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31674 | { | |
31675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31676 | result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar(); | |
31677 | ||
31678 | wxPyEndAllowThreads(__tstate); | |
31679 | if (PyErr_Occurred()) SWIG_fail; | |
31680 | } | |
31681 | { | |
412d302d | 31682 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31683 | } |
31684 | return resultobj; | |
31685 | fail: | |
31686 | return NULL; | |
31687 | } | |
31688 | ||
31689 | ||
c370783e | 31690 | static PyObject *_wrap_Menu_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31691 | PyObject *resultobj; |
31692 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31693 | wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ; | |
31694 | PyObject * obj0 = 0 ; | |
31695 | PyObject * obj1 = 0 ; | |
31696 | char *kwnames[] = { | |
31697 | (char *) "self",(char *) "menubar", NULL | |
31698 | }; | |
31699 | ||
31700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail; | |
31701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31703 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase, | |
31704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31705 | { | |
31706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31707 | (arg1)->Attach(arg2); | |
31708 | ||
31709 | wxPyEndAllowThreads(__tstate); | |
31710 | if (PyErr_Occurred()) SWIG_fail; | |
31711 | } | |
31712 | Py_INCREF(Py_None); resultobj = Py_None; | |
31713 | return resultobj; | |
31714 | fail: | |
31715 | return NULL; | |
31716 | } | |
31717 | ||
31718 | ||
c370783e | 31719 | static PyObject *_wrap_Menu_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31720 | PyObject *resultobj; |
31721 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31722 | PyObject * obj0 = 0 ; | |
31723 | char *kwnames[] = { | |
31724 | (char *) "self", NULL | |
31725 | }; | |
31726 | ||
31727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail; | |
31728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31730 | { | |
31731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31732 | (arg1)->Detach(); | |
31733 | ||
31734 | wxPyEndAllowThreads(__tstate); | |
31735 | if (PyErr_Occurred()) SWIG_fail; | |
31736 | } | |
31737 | Py_INCREF(Py_None); resultobj = Py_None; | |
31738 | return resultobj; | |
31739 | fail: | |
31740 | return NULL; | |
31741 | } | |
31742 | ||
31743 | ||
c370783e | 31744 | static PyObject *_wrap_Menu_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31745 | PyObject *resultobj; |
31746 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31747 | bool result; | |
31748 | PyObject * obj0 = 0 ; | |
31749 | char *kwnames[] = { | |
31750 | (char *) "self", NULL | |
31751 | }; | |
31752 | ||
31753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail; | |
31754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31756 | { | |
31757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31758 | result = (bool)((wxMenu const *)arg1)->IsAttached(); | |
31759 | ||
31760 | wxPyEndAllowThreads(__tstate); | |
31761 | if (PyErr_Occurred()) SWIG_fail; | |
31762 | } | |
31763 | { | |
31764 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31765 | } | |
31766 | return resultobj; | |
31767 | fail: | |
31768 | return NULL; | |
31769 | } | |
31770 | ||
31771 | ||
c370783e | 31772 | static PyObject *_wrap_Menu_SetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31773 | PyObject *resultobj; |
31774 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31775 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31776 | PyObject * obj0 = 0 ; | |
31777 | PyObject * obj1 = 0 ; | |
31778 | char *kwnames[] = { | |
31779 | (char *) "self",(char *) "parent", NULL | |
31780 | }; | |
31781 | ||
31782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail; | |
31783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31785 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31787 | { | |
31788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31789 | (arg1)->SetParent(arg2); | |
31790 | ||
31791 | wxPyEndAllowThreads(__tstate); | |
31792 | if (PyErr_Occurred()) SWIG_fail; | |
31793 | } | |
31794 | Py_INCREF(Py_None); resultobj = Py_None; | |
31795 | return resultobj; | |
31796 | fail: | |
31797 | return NULL; | |
31798 | } | |
31799 | ||
31800 | ||
c370783e | 31801 | static PyObject *_wrap_Menu_GetParent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31802 | PyObject *resultobj; |
31803 | wxMenu *arg1 = (wxMenu *) 0 ; | |
31804 | wxMenu *result; | |
31805 | PyObject * obj0 = 0 ; | |
31806 | char *kwnames[] = { | |
31807 | (char *) "self", NULL | |
31808 | }; | |
31809 | ||
31810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail; | |
31811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
31812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31813 | { | |
31814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31815 | result = (wxMenu *)((wxMenu const *)arg1)->GetParent(); | |
31816 | ||
31817 | wxPyEndAllowThreads(__tstate); | |
31818 | if (PyErr_Occurred()) SWIG_fail; | |
31819 | } | |
31820 | { | |
412d302d | 31821 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
31822 | } |
31823 | return resultobj; | |
31824 | fail: | |
31825 | return NULL; | |
31826 | } | |
31827 | ||
31828 | ||
c370783e | 31829 | static PyObject * Menu_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
31830 | PyObject *obj; |
31831 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31832 | SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj); | |
31833 | Py_INCREF(obj); | |
31834 | return Py_BuildValue((char *)""); | |
31835 | } | |
c370783e | 31836 | static PyObject *_wrap_new_MenuBar(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31837 | PyObject *resultobj; |
31838 | long arg1 = (long) 0 ; | |
31839 | wxMenuBar *result; | |
31840 | PyObject * obj0 = 0 ; | |
31841 | char *kwnames[] = { | |
31842 | (char *) "style", NULL | |
31843 | }; | |
31844 | ||
31845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail; | |
31846 | if (obj0) { | |
c370783e | 31847 | arg1 = (long)SWIG_As_long(obj0); |
d55e5bfc RD |
31848 | if (PyErr_Occurred()) SWIG_fail; |
31849 | } | |
31850 | { | |
0439c23b | 31851 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
31852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
31853 | result = (wxMenuBar *)new wxMenuBar(arg1); | |
31854 | ||
31855 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 31856 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 31857 | } |
b0f7404b | 31858 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuBar, 1); |
d55e5bfc RD |
31859 | return resultobj; |
31860 | fail: | |
31861 | return NULL; | |
31862 | } | |
31863 | ||
31864 | ||
c370783e | 31865 | static PyObject *_wrap_MenuBar_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31866 | PyObject *resultobj; |
31867 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31868 | wxMenu *arg2 = (wxMenu *) 0 ; | |
31869 | wxString *arg3 = 0 ; | |
31870 | bool result; | |
b411df4a | 31871 | bool temp3 = false ; |
d55e5bfc RD |
31872 | PyObject * obj0 = 0 ; |
31873 | PyObject * obj1 = 0 ; | |
31874 | PyObject * obj2 = 0 ; | |
31875 | char *kwnames[] = { | |
31876 | (char *) "self",(char *) "menu",(char *) "title", NULL | |
31877 | }; | |
31878 | ||
31879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31882 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
31883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31884 | { | |
31885 | arg3 = wxString_in_helper(obj2); | |
31886 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 31887 | temp3 = true; |
d55e5bfc RD |
31888 | } |
31889 | { | |
31890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31891 | result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3); | |
31892 | ||
31893 | wxPyEndAllowThreads(__tstate); | |
31894 | if (PyErr_Occurred()) SWIG_fail; | |
31895 | } | |
31896 | { | |
31897 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31898 | } | |
31899 | { | |
31900 | if (temp3) | |
31901 | delete arg3; | |
31902 | } | |
31903 | return resultobj; | |
31904 | fail: | |
31905 | { | |
31906 | if (temp3) | |
31907 | delete arg3; | |
31908 | } | |
31909 | return NULL; | |
31910 | } | |
31911 | ||
31912 | ||
c370783e | 31913 | static PyObject *_wrap_MenuBar_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31914 | PyObject *resultobj; |
31915 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31916 | size_t arg2 ; | |
31917 | wxMenu *arg3 = (wxMenu *) 0 ; | |
31918 | wxString *arg4 = 0 ; | |
31919 | bool result; | |
b411df4a | 31920 | bool temp4 = false ; |
d55e5bfc RD |
31921 | PyObject * obj0 = 0 ; |
31922 | PyObject * obj1 = 0 ; | |
31923 | PyObject * obj2 = 0 ; | |
31924 | PyObject * obj3 = 0 ; | |
31925 | char *kwnames[] = { | |
31926 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
31927 | }; | |
31928 | ||
31929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
31930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 31932 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
31933 | if (PyErr_Occurred()) SWIG_fail; |
31934 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
31935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31936 | { | |
31937 | arg4 = wxString_in_helper(obj3); | |
31938 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 31939 | temp4 = true; |
d55e5bfc RD |
31940 | } |
31941 | { | |
31942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31943 | result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4); | |
31944 | ||
31945 | wxPyEndAllowThreads(__tstate); | |
31946 | if (PyErr_Occurred()) SWIG_fail; | |
31947 | } | |
31948 | { | |
31949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31950 | } | |
31951 | { | |
31952 | if (temp4) | |
31953 | delete arg4; | |
31954 | } | |
31955 | return resultobj; | |
31956 | fail: | |
31957 | { | |
31958 | if (temp4) | |
31959 | delete arg4; | |
31960 | } | |
31961 | return NULL; | |
31962 | } | |
31963 | ||
31964 | ||
c370783e | 31965 | static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31966 | PyObject *resultobj; |
31967 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31968 | size_t result; | |
31969 | PyObject * obj0 = 0 ; | |
31970 | char *kwnames[] = { | |
31971 | (char *) "self", NULL | |
31972 | }; | |
31973 | ||
31974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail; | |
31975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
31976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31977 | { | |
31978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31979 | result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount(); | |
31980 | ||
31981 | wxPyEndAllowThreads(__tstate); | |
31982 | if (PyErr_Occurred()) SWIG_fail; | |
31983 | } | |
c370783e | 31984 | resultobj = SWIG_From_unsigned_SS_long((unsigned long)result); |
d55e5bfc RD |
31985 | return resultobj; |
31986 | fail: | |
31987 | return NULL; | |
31988 | } | |
31989 | ||
31990 | ||
c370783e | 31991 | static PyObject *_wrap_MenuBar_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
31992 | PyObject *resultobj; |
31993 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
31994 | size_t arg2 ; | |
31995 | wxMenu *result; | |
31996 | PyObject * obj0 = 0 ; | |
31997 | PyObject * obj1 = 0 ; | |
31998 | char *kwnames[] = { | |
31999 | (char *) "self",(char *) "pos", NULL | |
32000 | }; | |
32001 | ||
32002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail; | |
32003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32005 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
32006 | if (PyErr_Occurred()) SWIG_fail; |
32007 | { | |
32008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32009 | result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2); | |
32010 | ||
32011 | wxPyEndAllowThreads(__tstate); | |
32012 | if (PyErr_Occurred()) SWIG_fail; | |
32013 | } | |
32014 | { | |
412d302d | 32015 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32016 | } |
32017 | return resultobj; | |
32018 | fail: | |
32019 | return NULL; | |
32020 | } | |
32021 | ||
32022 | ||
c370783e | 32023 | static PyObject *_wrap_MenuBar_Replace(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32024 | PyObject *resultobj; |
32025 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32026 | size_t arg2 ; | |
32027 | wxMenu *arg3 = (wxMenu *) 0 ; | |
32028 | wxString *arg4 = 0 ; | |
32029 | wxMenu *result; | |
b411df4a | 32030 | bool temp4 = false ; |
d55e5bfc RD |
32031 | PyObject * obj0 = 0 ; |
32032 | PyObject * obj1 = 0 ; | |
32033 | PyObject * obj2 = 0 ; | |
32034 | PyObject * obj3 = 0 ; | |
32035 | char *kwnames[] = { | |
32036 | (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL | |
32037 | }; | |
32038 | ||
32039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
32040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32042 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
32043 | if (PyErr_Occurred()) SWIG_fail; |
32044 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu, | |
32045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32046 | { | |
32047 | arg4 = wxString_in_helper(obj3); | |
32048 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 32049 | temp4 = true; |
d55e5bfc RD |
32050 | } |
32051 | { | |
32052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32053 | result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
32054 | ||
32055 | wxPyEndAllowThreads(__tstate); | |
32056 | if (PyErr_Occurred()) SWIG_fail; | |
32057 | } | |
32058 | { | |
412d302d | 32059 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32060 | } |
32061 | { | |
32062 | if (temp4) | |
32063 | delete arg4; | |
32064 | } | |
32065 | return resultobj; | |
32066 | fail: | |
32067 | { | |
32068 | if (temp4) | |
32069 | delete arg4; | |
32070 | } | |
32071 | return NULL; | |
32072 | } | |
32073 | ||
32074 | ||
c370783e | 32075 | static PyObject *_wrap_MenuBar_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32076 | PyObject *resultobj; |
32077 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32078 | size_t arg2 ; | |
32079 | wxMenu *result; | |
32080 | PyObject * obj0 = 0 ; | |
32081 | PyObject * obj1 = 0 ; | |
32082 | char *kwnames[] = { | |
32083 | (char *) "self",(char *) "pos", NULL | |
32084 | }; | |
32085 | ||
32086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail; | |
32087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32089 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
32090 | if (PyErr_Occurred()) SWIG_fail; |
32091 | { | |
32092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32093 | result = (wxMenu *)(arg1)->Remove(arg2); | |
32094 | ||
32095 | wxPyEndAllowThreads(__tstate); | |
32096 | if (PyErr_Occurred()) SWIG_fail; | |
32097 | } | |
32098 | { | |
412d302d | 32099 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32100 | } |
32101 | return resultobj; | |
32102 | fail: | |
32103 | return NULL; | |
32104 | } | |
32105 | ||
32106 | ||
c370783e | 32107 | static PyObject *_wrap_MenuBar_EnableTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32108 | PyObject *resultobj; |
32109 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32110 | size_t arg2 ; | |
32111 | bool arg3 ; | |
32112 | PyObject * obj0 = 0 ; | |
32113 | PyObject * obj1 = 0 ; | |
32114 | PyObject * obj2 = 0 ; | |
32115 | char *kwnames[] = { | |
32116 | (char *) "self",(char *) "pos",(char *) "enable", NULL | |
32117 | }; | |
32118 | ||
32119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32122 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc | 32123 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 32124 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
32125 | if (PyErr_Occurred()) SWIG_fail; |
32126 | { | |
32127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32128 | (arg1)->EnableTop(arg2,arg3); | |
32129 | ||
32130 | wxPyEndAllowThreads(__tstate); | |
32131 | if (PyErr_Occurred()) SWIG_fail; | |
32132 | } | |
32133 | Py_INCREF(Py_None); resultobj = Py_None; | |
32134 | return resultobj; | |
32135 | fail: | |
32136 | return NULL; | |
32137 | } | |
32138 | ||
32139 | ||
c370783e | 32140 | static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32141 | PyObject *resultobj; |
32142 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32143 | size_t arg2 ; | |
32144 | bool result; | |
32145 | PyObject * obj0 = 0 ; | |
32146 | PyObject * obj1 = 0 ; | |
32147 | char *kwnames[] = { | |
32148 | (char *) "self",(char *) "pos", NULL | |
32149 | }; | |
32150 | ||
32151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail; | |
32152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32154 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
32155 | if (PyErr_Occurred()) SWIG_fail; |
32156 | { | |
32157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32158 | result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2); | |
32159 | ||
32160 | wxPyEndAllowThreads(__tstate); | |
32161 | if (PyErr_Occurred()) SWIG_fail; | |
32162 | } | |
32163 | { | |
32164 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32165 | } | |
32166 | return resultobj; | |
32167 | fail: | |
32168 | return NULL; | |
32169 | } | |
32170 | ||
32171 | ||
c370783e | 32172 | static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32173 | PyObject *resultobj; |
32174 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32175 | size_t arg2 ; | |
32176 | wxString *arg3 = 0 ; | |
b411df4a | 32177 | bool temp3 = false ; |
d55e5bfc RD |
32178 | PyObject * obj0 = 0 ; |
32179 | PyObject * obj1 = 0 ; | |
32180 | PyObject * obj2 = 0 ; | |
32181 | char *kwnames[] = { | |
32182 | (char *) "self",(char *) "pos",(char *) "label", NULL | |
32183 | }; | |
32184 | ||
32185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32188 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
32189 | if (PyErr_Occurred()) SWIG_fail; |
32190 | { | |
32191 | arg3 = wxString_in_helper(obj2); | |
32192 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 32193 | temp3 = true; |
d55e5bfc RD |
32194 | } |
32195 | { | |
32196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32197 | (arg1)->SetLabelTop(arg2,(wxString const &)*arg3); | |
32198 | ||
32199 | wxPyEndAllowThreads(__tstate); | |
32200 | if (PyErr_Occurred()) SWIG_fail; | |
32201 | } | |
32202 | Py_INCREF(Py_None); resultobj = Py_None; | |
32203 | { | |
32204 | if (temp3) | |
32205 | delete arg3; | |
32206 | } | |
32207 | return resultobj; | |
32208 | fail: | |
32209 | { | |
32210 | if (temp3) | |
32211 | delete arg3; | |
32212 | } | |
32213 | return NULL; | |
32214 | } | |
32215 | ||
32216 | ||
c370783e | 32217 | static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32218 | PyObject *resultobj; |
32219 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32220 | size_t arg2 ; | |
32221 | wxString result; | |
32222 | PyObject * obj0 = 0 ; | |
32223 | PyObject * obj1 = 0 ; | |
32224 | char *kwnames[] = { | |
32225 | (char *) "self",(char *) "pos", NULL | |
32226 | }; | |
32227 | ||
32228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail; | |
32229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32231 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
32232 | if (PyErr_Occurred()) SWIG_fail; |
32233 | { | |
32234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32235 | result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2); | |
32236 | ||
32237 | wxPyEndAllowThreads(__tstate); | |
32238 | if (PyErr_Occurred()) SWIG_fail; | |
32239 | } | |
32240 | { | |
32241 | #if wxUSE_UNICODE | |
32242 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32243 | #else | |
32244 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32245 | #endif | |
32246 | } | |
32247 | return resultobj; | |
32248 | fail: | |
32249 | return NULL; | |
32250 | } | |
32251 | ||
32252 | ||
c370783e | 32253 | static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32254 | PyObject *resultobj; |
32255 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32256 | wxString *arg2 = 0 ; | |
32257 | wxString *arg3 = 0 ; | |
32258 | int result; | |
b411df4a RD |
32259 | bool temp2 = false ; |
32260 | bool temp3 = false ; | |
d55e5bfc RD |
32261 | PyObject * obj0 = 0 ; |
32262 | PyObject * obj1 = 0 ; | |
32263 | PyObject * obj2 = 0 ; | |
32264 | char *kwnames[] = { | |
32265 | (char *) "self",(char *) "menu",(char *) "item", NULL | |
32266 | }; | |
32267 | ||
32268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32271 | { | |
32272 | arg2 = wxString_in_helper(obj1); | |
32273 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 32274 | temp2 = true; |
d55e5bfc RD |
32275 | } |
32276 | { | |
32277 | arg3 = wxString_in_helper(obj2); | |
32278 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 32279 | temp3 = true; |
d55e5bfc RD |
32280 | } |
32281 | { | |
32282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32283 | result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3); | |
32284 | ||
32285 | wxPyEndAllowThreads(__tstate); | |
32286 | if (PyErr_Occurred()) SWIG_fail; | |
32287 | } | |
c370783e | 32288 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
32289 | { |
32290 | if (temp2) | |
32291 | delete arg2; | |
32292 | } | |
32293 | { | |
32294 | if (temp3) | |
32295 | delete arg3; | |
32296 | } | |
32297 | return resultobj; | |
32298 | fail: | |
32299 | { | |
32300 | if (temp2) | |
32301 | delete arg2; | |
32302 | } | |
32303 | { | |
32304 | if (temp3) | |
32305 | delete arg3; | |
32306 | } | |
32307 | return NULL; | |
32308 | } | |
32309 | ||
32310 | ||
c370783e | 32311 | static PyObject *_wrap_MenuBar_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32312 | PyObject *resultobj; |
32313 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32314 | int arg2 ; | |
32315 | wxMenuItem *result; | |
32316 | PyObject * obj0 = 0 ; | |
32317 | PyObject * obj1 = 0 ; | |
32318 | char *kwnames[] = { | |
32319 | (char *) "self",(char *) "id", NULL | |
32320 | }; | |
32321 | ||
32322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail; | |
32323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32325 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32326 | if (PyErr_Occurred()) SWIG_fail; |
32327 | { | |
32328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32329 | result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2); | |
32330 | ||
32331 | wxPyEndAllowThreads(__tstate); | |
32332 | if (PyErr_Occurred()) SWIG_fail; | |
32333 | } | |
32334 | { | |
412d302d | 32335 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32336 | } |
32337 | return resultobj; | |
32338 | fail: | |
32339 | return NULL; | |
32340 | } | |
32341 | ||
32342 | ||
c370783e | 32343 | static PyObject *_wrap_MenuBar_FindMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32344 | PyObject *resultobj; |
32345 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32346 | wxString *arg2 = 0 ; | |
32347 | int result; | |
b411df4a | 32348 | bool temp2 = false ; |
d55e5bfc RD |
32349 | PyObject * obj0 = 0 ; |
32350 | PyObject * obj1 = 0 ; | |
32351 | char *kwnames[] = { | |
32352 | (char *) "self",(char *) "title", NULL | |
32353 | }; | |
32354 | ||
32355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail; | |
32356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32358 | { | |
32359 | arg2 = wxString_in_helper(obj1); | |
32360 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 32361 | temp2 = true; |
d55e5bfc RD |
32362 | } |
32363 | { | |
32364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32365 | result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2); | |
32366 | ||
32367 | wxPyEndAllowThreads(__tstate); | |
32368 | if (PyErr_Occurred()) SWIG_fail; | |
32369 | } | |
c370783e | 32370 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
32371 | { |
32372 | if (temp2) | |
32373 | delete arg2; | |
32374 | } | |
32375 | return resultobj; | |
32376 | fail: | |
32377 | { | |
32378 | if (temp2) | |
32379 | delete arg2; | |
32380 | } | |
32381 | return NULL; | |
32382 | } | |
32383 | ||
32384 | ||
c370783e | 32385 | static PyObject *_wrap_MenuBar_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32386 | PyObject *resultobj; |
32387 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32388 | int arg2 ; | |
32389 | bool arg3 ; | |
32390 | PyObject * obj0 = 0 ; | |
32391 | PyObject * obj1 = 0 ; | |
32392 | PyObject * obj2 = 0 ; | |
32393 | char *kwnames[] = { | |
32394 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
32395 | }; | |
32396 | ||
32397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32400 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 32401 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 32402 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
32403 | if (PyErr_Occurred()) SWIG_fail; |
32404 | { | |
32405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32406 | (arg1)->Enable(arg2,arg3); | |
32407 | ||
32408 | wxPyEndAllowThreads(__tstate); | |
32409 | if (PyErr_Occurred()) SWIG_fail; | |
32410 | } | |
32411 | Py_INCREF(Py_None); resultobj = Py_None; | |
32412 | return resultobj; | |
32413 | fail: | |
32414 | return NULL; | |
32415 | } | |
32416 | ||
32417 | ||
c370783e | 32418 | static PyObject *_wrap_MenuBar_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32419 | PyObject *resultobj; |
32420 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32421 | int arg2 ; | |
32422 | bool arg3 ; | |
32423 | PyObject * obj0 = 0 ; | |
32424 | PyObject * obj1 = 0 ; | |
32425 | PyObject * obj2 = 0 ; | |
32426 | char *kwnames[] = { | |
32427 | (char *) "self",(char *) "id",(char *) "check", NULL | |
32428 | }; | |
32429 | ||
32430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32433 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 32434 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 32435 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
32436 | if (PyErr_Occurred()) SWIG_fail; |
32437 | { | |
32438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32439 | (arg1)->Check(arg2,arg3); | |
32440 | ||
32441 | wxPyEndAllowThreads(__tstate); | |
32442 | if (PyErr_Occurred()) SWIG_fail; | |
32443 | } | |
32444 | Py_INCREF(Py_None); resultobj = Py_None; | |
32445 | return resultobj; | |
32446 | fail: | |
32447 | return NULL; | |
32448 | } | |
32449 | ||
32450 | ||
c370783e | 32451 | static PyObject *_wrap_MenuBar_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32452 | PyObject *resultobj; |
32453 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32454 | int arg2 ; | |
32455 | bool result; | |
32456 | PyObject * obj0 = 0 ; | |
32457 | PyObject * obj1 = 0 ; | |
32458 | char *kwnames[] = { | |
32459 | (char *) "self",(char *) "id", NULL | |
32460 | }; | |
32461 | ||
32462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
32463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32465 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32466 | if (PyErr_Occurred()) SWIG_fail; |
32467 | { | |
32468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32469 | result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2); | |
32470 | ||
32471 | wxPyEndAllowThreads(__tstate); | |
32472 | if (PyErr_Occurred()) SWIG_fail; | |
32473 | } | |
32474 | { | |
32475 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32476 | } | |
32477 | return resultobj; | |
32478 | fail: | |
32479 | return NULL; | |
32480 | } | |
32481 | ||
32482 | ||
c370783e | 32483 | static PyObject *_wrap_MenuBar_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32484 | PyObject *resultobj; |
32485 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32486 | int arg2 ; | |
32487 | bool result; | |
32488 | PyObject * obj0 = 0 ; | |
32489 | PyObject * obj1 = 0 ; | |
32490 | char *kwnames[] = { | |
32491 | (char *) "self",(char *) "id", NULL | |
32492 | }; | |
32493 | ||
32494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail; | |
32495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32497 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32498 | if (PyErr_Occurred()) SWIG_fail; |
32499 | { | |
32500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32501 | result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2); | |
32502 | ||
32503 | wxPyEndAllowThreads(__tstate); | |
32504 | if (PyErr_Occurred()) SWIG_fail; | |
32505 | } | |
32506 | { | |
32507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32508 | } | |
32509 | return resultobj; | |
32510 | fail: | |
32511 | return NULL; | |
32512 | } | |
32513 | ||
32514 | ||
c370783e | 32515 | static PyObject *_wrap_MenuBar_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32516 | PyObject *resultobj; |
32517 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32518 | int arg2 ; | |
32519 | wxString *arg3 = 0 ; | |
b411df4a | 32520 | bool temp3 = false ; |
d55e5bfc RD |
32521 | PyObject * obj0 = 0 ; |
32522 | PyObject * obj1 = 0 ; | |
32523 | PyObject * obj2 = 0 ; | |
32524 | char *kwnames[] = { | |
32525 | (char *) "self",(char *) "id",(char *) "label", NULL | |
32526 | }; | |
32527 | ||
32528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32531 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32532 | if (PyErr_Occurred()) SWIG_fail; |
32533 | { | |
32534 | arg3 = wxString_in_helper(obj2); | |
32535 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 32536 | temp3 = true; |
d55e5bfc RD |
32537 | } |
32538 | { | |
32539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32540 | (arg1)->SetLabel(arg2,(wxString const &)*arg3); | |
32541 | ||
32542 | wxPyEndAllowThreads(__tstate); | |
32543 | if (PyErr_Occurred()) SWIG_fail; | |
32544 | } | |
32545 | Py_INCREF(Py_None); resultobj = Py_None; | |
32546 | { | |
32547 | if (temp3) | |
32548 | delete arg3; | |
32549 | } | |
32550 | return resultobj; | |
32551 | fail: | |
32552 | { | |
32553 | if (temp3) | |
32554 | delete arg3; | |
32555 | } | |
32556 | return NULL; | |
32557 | } | |
32558 | ||
32559 | ||
c370783e | 32560 | static PyObject *_wrap_MenuBar_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32561 | PyObject *resultobj; |
32562 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32563 | int arg2 ; | |
32564 | wxString result; | |
32565 | PyObject * obj0 = 0 ; | |
32566 | PyObject * obj1 = 0 ; | |
32567 | char *kwnames[] = { | |
32568 | (char *) "self",(char *) "id", NULL | |
32569 | }; | |
32570 | ||
32571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail; | |
32572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32574 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32575 | if (PyErr_Occurred()) SWIG_fail; |
32576 | { | |
32577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32578 | result = ((wxMenuBar const *)arg1)->GetLabel(arg2); | |
32579 | ||
32580 | wxPyEndAllowThreads(__tstate); | |
32581 | if (PyErr_Occurred()) SWIG_fail; | |
32582 | } | |
32583 | { | |
32584 | #if wxUSE_UNICODE | |
32585 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32586 | #else | |
32587 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32588 | #endif | |
32589 | } | |
32590 | return resultobj; | |
32591 | fail: | |
32592 | return NULL; | |
32593 | } | |
32594 | ||
32595 | ||
c370783e | 32596 | static PyObject *_wrap_MenuBar_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32597 | PyObject *resultobj; |
32598 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32599 | int arg2 ; | |
32600 | wxString *arg3 = 0 ; | |
b411df4a | 32601 | bool temp3 = false ; |
d55e5bfc RD |
32602 | PyObject * obj0 = 0 ; |
32603 | PyObject * obj1 = 0 ; | |
32604 | PyObject * obj2 = 0 ; | |
32605 | char *kwnames[] = { | |
32606 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
32607 | }; | |
32608 | ||
32609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
32610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32612 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32613 | if (PyErr_Occurred()) SWIG_fail; |
32614 | { | |
32615 | arg3 = wxString_in_helper(obj2); | |
32616 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 32617 | temp3 = true; |
d55e5bfc RD |
32618 | } |
32619 | { | |
32620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32621 | (arg1)->SetHelpString(arg2,(wxString const &)*arg3); | |
32622 | ||
32623 | wxPyEndAllowThreads(__tstate); | |
32624 | if (PyErr_Occurred()) SWIG_fail; | |
32625 | } | |
32626 | Py_INCREF(Py_None); resultobj = Py_None; | |
32627 | { | |
32628 | if (temp3) | |
32629 | delete arg3; | |
32630 | } | |
32631 | return resultobj; | |
32632 | fail: | |
32633 | { | |
32634 | if (temp3) | |
32635 | delete arg3; | |
32636 | } | |
32637 | return NULL; | |
32638 | } | |
32639 | ||
32640 | ||
c370783e | 32641 | static PyObject *_wrap_MenuBar_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32642 | PyObject *resultobj; |
32643 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32644 | int arg2 ; | |
32645 | wxString result; | |
32646 | PyObject * obj0 = 0 ; | |
32647 | PyObject * obj1 = 0 ; | |
32648 | char *kwnames[] = { | |
32649 | (char *) "self",(char *) "id", NULL | |
32650 | }; | |
32651 | ||
32652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail; | |
32653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32655 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32656 | if (PyErr_Occurred()) SWIG_fail; |
32657 | { | |
32658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32659 | result = ((wxMenuBar const *)arg1)->GetHelpString(arg2); | |
32660 | ||
32661 | wxPyEndAllowThreads(__tstate); | |
32662 | if (PyErr_Occurred()) SWIG_fail; | |
32663 | } | |
32664 | { | |
32665 | #if wxUSE_UNICODE | |
32666 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
32667 | #else | |
32668 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
32669 | #endif | |
32670 | } | |
32671 | return resultobj; | |
32672 | fail: | |
32673 | return NULL; | |
32674 | } | |
32675 | ||
32676 | ||
c370783e | 32677 | static PyObject *_wrap_MenuBar_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32678 | PyObject *resultobj; |
32679 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32680 | wxFrame *result; | |
32681 | PyObject * obj0 = 0 ; | |
32682 | char *kwnames[] = { | |
32683 | (char *) "self", NULL | |
32684 | }; | |
32685 | ||
32686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail; | |
32687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32689 | { | |
32690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32691 | result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame(); | |
32692 | ||
32693 | wxPyEndAllowThreads(__tstate); | |
32694 | if (PyErr_Occurred()) SWIG_fail; | |
32695 | } | |
32696 | { | |
412d302d | 32697 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32698 | } |
32699 | return resultobj; | |
32700 | fail: | |
32701 | return NULL; | |
32702 | } | |
32703 | ||
32704 | ||
c370783e | 32705 | static PyObject *_wrap_MenuBar_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32706 | PyObject *resultobj; |
32707 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32708 | bool result; | |
32709 | PyObject * obj0 = 0 ; | |
32710 | char *kwnames[] = { | |
32711 | (char *) "self", NULL | |
32712 | }; | |
32713 | ||
32714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail; | |
32715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32717 | { | |
32718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32719 | result = (bool)((wxMenuBar const *)arg1)->IsAttached(); | |
32720 | ||
32721 | wxPyEndAllowThreads(__tstate); | |
32722 | if (PyErr_Occurred()) SWIG_fail; | |
32723 | } | |
32724 | { | |
32725 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32726 | } | |
32727 | return resultobj; | |
32728 | fail: | |
32729 | return NULL; | |
32730 | } | |
32731 | ||
32732 | ||
c370783e | 32733 | static PyObject *_wrap_MenuBar_Attach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32734 | PyObject *resultobj; |
32735 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32736 | wxFrame *arg2 = (wxFrame *) 0 ; | |
32737 | PyObject * obj0 = 0 ; | |
32738 | PyObject * obj1 = 0 ; | |
32739 | char *kwnames[] = { | |
32740 | (char *) "self",(char *) "frame", NULL | |
32741 | }; | |
32742 | ||
32743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail; | |
32744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32746 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame, | |
32747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32748 | { | |
32749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32750 | (arg1)->Attach(arg2); | |
32751 | ||
32752 | wxPyEndAllowThreads(__tstate); | |
32753 | if (PyErr_Occurred()) SWIG_fail; | |
32754 | } | |
32755 | Py_INCREF(Py_None); resultobj = Py_None; | |
32756 | return resultobj; | |
32757 | fail: | |
32758 | return NULL; | |
32759 | } | |
32760 | ||
32761 | ||
c370783e | 32762 | static PyObject *_wrap_MenuBar_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32763 | PyObject *resultobj; |
32764 | wxMenuBar *arg1 = (wxMenuBar *) 0 ; | |
32765 | PyObject * obj0 = 0 ; | |
32766 | char *kwnames[] = { | |
32767 | (char *) "self", NULL | |
32768 | }; | |
32769 | ||
32770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail; | |
32771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar, | |
32772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32773 | { | |
32774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32775 | (arg1)->Detach(); | |
32776 | ||
32777 | wxPyEndAllowThreads(__tstate); | |
32778 | if (PyErr_Occurred()) SWIG_fail; | |
32779 | } | |
32780 | Py_INCREF(Py_None); resultobj = Py_None; | |
32781 | return resultobj; | |
32782 | fail: | |
32783 | return NULL; | |
32784 | } | |
32785 | ||
32786 | ||
c370783e | 32787 | static PyObject * MenuBar_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
32788 | PyObject *obj; |
32789 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
32790 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj); | |
32791 | Py_INCREF(obj); | |
32792 | return Py_BuildValue((char *)""); | |
32793 | } | |
c370783e | 32794 | static PyObject *_wrap_new_MenuItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32795 | PyObject *resultobj; |
32796 | wxMenu *arg1 = (wxMenu *) NULL ; | |
32797 | int arg2 = (int) wxID_ANY ; | |
32798 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
32799 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
32800 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
32801 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
32802 | int arg5 = (int) wxITEM_NORMAL ; | |
32803 | wxMenu *arg6 = (wxMenu *) NULL ; | |
32804 | wxMenuItem *result; | |
b411df4a RD |
32805 | bool temp3 = false ; |
32806 | bool temp4 = false ; | |
d55e5bfc RD |
32807 | PyObject * obj0 = 0 ; |
32808 | PyObject * obj1 = 0 ; | |
32809 | PyObject * obj2 = 0 ; | |
32810 | PyObject * obj3 = 0 ; | |
32811 | PyObject * obj4 = 0 ; | |
32812 | PyObject * obj5 = 0 ; | |
32813 | char *kwnames[] = { | |
32814 | (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL | |
32815 | }; | |
32816 | ||
32817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
32818 | if (obj0) { | |
32819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu, | |
32820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32821 | } | |
32822 | if (obj1) { | |
c370783e | 32823 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32824 | if (PyErr_Occurred()) SWIG_fail; |
32825 | } | |
32826 | if (obj2) { | |
32827 | { | |
32828 | arg3 = wxString_in_helper(obj2); | |
32829 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 32830 | temp3 = true; |
d55e5bfc RD |
32831 | } |
32832 | } | |
32833 | if (obj3) { | |
32834 | { | |
32835 | arg4 = wxString_in_helper(obj3); | |
32836 | if (arg4 == NULL) SWIG_fail; | |
b411df4a | 32837 | temp4 = true; |
d55e5bfc RD |
32838 | } |
32839 | } | |
32840 | if (obj4) { | |
c370783e | 32841 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
32842 | if (PyErr_Occurred()) SWIG_fail; |
32843 | } | |
32844 | if (obj5) { | |
32845 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu, | |
32846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32847 | } | |
32848 | { | |
32849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32850 | result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6); | |
32851 | ||
32852 | wxPyEndAllowThreads(__tstate); | |
32853 | if (PyErr_Occurred()) SWIG_fail; | |
32854 | } | |
32855 | { | |
412d302d | 32856 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
32857 | } |
32858 | { | |
32859 | if (temp3) | |
32860 | delete arg3; | |
32861 | } | |
32862 | { | |
32863 | if (temp4) | |
32864 | delete arg4; | |
32865 | } | |
32866 | return resultobj; | |
32867 | fail: | |
32868 | { | |
32869 | if (temp3) | |
32870 | delete arg3; | |
32871 | } | |
32872 | { | |
32873 | if (temp4) | |
32874 | delete arg4; | |
32875 | } | |
32876 | return NULL; | |
32877 | } | |
32878 | ||
32879 | ||
c370783e | 32880 | static PyObject *_wrap_MenuItem_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32881 | PyObject *resultobj; |
32882 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32883 | wxMenu *result; | |
32884 | PyObject * obj0 = 0 ; | |
32885 | char *kwnames[] = { | |
32886 | (char *) "self", NULL | |
32887 | }; | |
32888 | ||
32889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail; | |
32890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32892 | { | |
32893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32894 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu(); | |
32895 | ||
32896 | wxPyEndAllowThreads(__tstate); | |
32897 | if (PyErr_Occurred()) SWIG_fail; | |
32898 | } | |
32899 | { | |
412d302d | 32900 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
32901 | } |
32902 | return resultobj; | |
32903 | fail: | |
32904 | return NULL; | |
32905 | } | |
32906 | ||
32907 | ||
c370783e | 32908 | static PyObject *_wrap_MenuItem_SetMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32909 | PyObject *resultobj; |
32910 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32911 | wxMenu *arg2 = (wxMenu *) 0 ; | |
32912 | PyObject * obj0 = 0 ; | |
32913 | PyObject * obj1 = 0 ; | |
32914 | char *kwnames[] = { | |
32915 | (char *) "self",(char *) "menu", NULL | |
32916 | }; | |
32917 | ||
32918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail; | |
32919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32921 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
32922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32923 | { | |
32924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32925 | (arg1)->SetMenu(arg2); | |
32926 | ||
32927 | wxPyEndAllowThreads(__tstate); | |
32928 | if (PyErr_Occurred()) SWIG_fail; | |
32929 | } | |
32930 | Py_INCREF(Py_None); resultobj = Py_None; | |
32931 | return resultobj; | |
32932 | fail: | |
32933 | return NULL; | |
32934 | } | |
32935 | ||
32936 | ||
c370783e | 32937 | static PyObject *_wrap_MenuItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32938 | PyObject *resultobj; |
32939 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32940 | int arg2 ; | |
32941 | PyObject * obj0 = 0 ; | |
32942 | PyObject * obj1 = 0 ; | |
32943 | char *kwnames[] = { | |
32944 | (char *) "self",(char *) "id", NULL | |
32945 | }; | |
32946 | ||
32947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
32948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 32950 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
32951 | if (PyErr_Occurred()) SWIG_fail; |
32952 | { | |
32953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32954 | (arg1)->SetId(arg2); | |
32955 | ||
32956 | wxPyEndAllowThreads(__tstate); | |
32957 | if (PyErr_Occurred()) SWIG_fail; | |
32958 | } | |
32959 | Py_INCREF(Py_None); resultobj = Py_None; | |
32960 | return resultobj; | |
32961 | fail: | |
32962 | return NULL; | |
32963 | } | |
32964 | ||
32965 | ||
c370783e | 32966 | static PyObject *_wrap_MenuItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32967 | PyObject *resultobj; |
32968 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32969 | int result; | |
32970 | PyObject * obj0 = 0 ; | |
32971 | char *kwnames[] = { | |
32972 | (char *) "self", NULL | |
32973 | }; | |
32974 | ||
32975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail; | |
32976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
32977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
32978 | { | |
32979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32980 | result = (int)((wxMenuItem const *)arg1)->GetId(); | |
32981 | ||
32982 | wxPyEndAllowThreads(__tstate); | |
32983 | if (PyErr_Occurred()) SWIG_fail; | |
32984 | } | |
c370783e | 32985 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
32986 | return resultobj; |
32987 | fail: | |
32988 | return NULL; | |
32989 | } | |
32990 | ||
32991 | ||
c370783e | 32992 | static PyObject *_wrap_MenuItem_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
32993 | PyObject *resultobj; |
32994 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
32995 | bool result; | |
32996 | PyObject * obj0 = 0 ; | |
32997 | char *kwnames[] = { | |
32998 | (char *) "self", NULL | |
32999 | }; | |
33000 | ||
33001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail; | |
33002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33004 | { | |
33005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33006 | result = (bool)((wxMenuItem const *)arg1)->IsSeparator(); | |
33007 | ||
33008 | wxPyEndAllowThreads(__tstate); | |
33009 | if (PyErr_Occurred()) SWIG_fail; | |
33010 | } | |
33011 | { | |
33012 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33013 | } | |
33014 | return resultobj; | |
33015 | fail: | |
33016 | return NULL; | |
33017 | } | |
33018 | ||
33019 | ||
c370783e | 33020 | static PyObject *_wrap_MenuItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33021 | PyObject *resultobj; |
33022 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33023 | wxString *arg2 = 0 ; | |
b411df4a | 33024 | bool temp2 = false ; |
d55e5bfc RD |
33025 | PyObject * obj0 = 0 ; |
33026 | PyObject * obj1 = 0 ; | |
33027 | char *kwnames[] = { | |
33028 | (char *) "self",(char *) "str", NULL | |
33029 | }; | |
33030 | ||
33031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
33032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33034 | { | |
33035 | arg2 = wxString_in_helper(obj1); | |
33036 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 33037 | temp2 = true; |
d55e5bfc RD |
33038 | } |
33039 | { | |
33040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33041 | (arg1)->SetText((wxString const &)*arg2); | |
33042 | ||
33043 | wxPyEndAllowThreads(__tstate); | |
33044 | if (PyErr_Occurred()) SWIG_fail; | |
33045 | } | |
33046 | Py_INCREF(Py_None); resultobj = Py_None; | |
33047 | { | |
33048 | if (temp2) | |
33049 | delete arg2; | |
33050 | } | |
33051 | return resultobj; | |
33052 | fail: | |
33053 | { | |
33054 | if (temp2) | |
33055 | delete arg2; | |
33056 | } | |
33057 | return NULL; | |
33058 | } | |
33059 | ||
33060 | ||
c370783e | 33061 | static PyObject *_wrap_MenuItem_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33062 | PyObject *resultobj; |
33063 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33064 | wxString result; | |
33065 | PyObject * obj0 = 0 ; | |
33066 | char *kwnames[] = { | |
33067 | (char *) "self", NULL | |
33068 | }; | |
33069 | ||
33070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail; | |
33071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33073 | { | |
33074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33075 | result = ((wxMenuItem const *)arg1)->GetLabel(); | |
33076 | ||
33077 | wxPyEndAllowThreads(__tstate); | |
33078 | if (PyErr_Occurred()) SWIG_fail; | |
33079 | } | |
33080 | { | |
33081 | #if wxUSE_UNICODE | |
33082 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33083 | #else | |
33084 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33085 | #endif | |
33086 | } | |
33087 | return resultobj; | |
33088 | fail: | |
33089 | return NULL; | |
33090 | } | |
33091 | ||
33092 | ||
c370783e | 33093 | static PyObject *_wrap_MenuItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33094 | PyObject *resultobj; |
33095 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33096 | wxString *result; | |
33097 | PyObject * obj0 = 0 ; | |
33098 | char *kwnames[] = { | |
33099 | (char *) "self", NULL | |
33100 | }; | |
33101 | ||
33102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail; | |
33103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33105 | { | |
33106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33107 | { | |
33108 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText(); | |
33109 | result = (wxString *) &_result_ref; | |
33110 | } | |
33111 | ||
33112 | wxPyEndAllowThreads(__tstate); | |
33113 | if (PyErr_Occurred()) SWIG_fail; | |
33114 | } | |
33115 | { | |
33116 | #if wxUSE_UNICODE | |
33117 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33118 | #else | |
33119 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33120 | #endif | |
33121 | } | |
33122 | return resultobj; | |
33123 | fail: | |
33124 | return NULL; | |
33125 | } | |
33126 | ||
33127 | ||
c370783e | 33128 | static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33129 | PyObject *resultobj; |
33130 | wxString *arg1 = 0 ; | |
33131 | wxString result; | |
b411df4a | 33132 | bool temp1 = false ; |
d55e5bfc RD |
33133 | PyObject * obj0 = 0 ; |
33134 | char *kwnames[] = { | |
33135 | (char *) "text", NULL | |
33136 | }; | |
33137 | ||
33138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail; | |
33139 | { | |
33140 | arg1 = wxString_in_helper(obj0); | |
33141 | if (arg1 == NULL) SWIG_fail; | |
b411df4a | 33142 | temp1 = true; |
d55e5bfc RD |
33143 | } |
33144 | { | |
33145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33146 | result = wxMenuItem::GetLabelFromText((wxString const &)*arg1); | |
33147 | ||
33148 | wxPyEndAllowThreads(__tstate); | |
33149 | if (PyErr_Occurred()) SWIG_fail; | |
33150 | } | |
33151 | { | |
33152 | #if wxUSE_UNICODE | |
33153 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33154 | #else | |
33155 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33156 | #endif | |
33157 | } | |
33158 | { | |
33159 | if (temp1) | |
33160 | delete arg1; | |
33161 | } | |
33162 | return resultobj; | |
33163 | fail: | |
33164 | { | |
33165 | if (temp1) | |
33166 | delete arg1; | |
33167 | } | |
33168 | return NULL; | |
33169 | } | |
33170 | ||
33171 | ||
c370783e | 33172 | static PyObject *_wrap_MenuItem_GetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33173 | PyObject *resultobj; |
33174 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33175 | int result; | |
33176 | PyObject * obj0 = 0 ; | |
33177 | char *kwnames[] = { | |
33178 | (char *) "self", NULL | |
33179 | }; | |
33180 | ||
33181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail; | |
33182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33184 | { | |
33185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33186 | result = (int)((wxMenuItem const *)arg1)->GetKind(); | |
33187 | ||
33188 | wxPyEndAllowThreads(__tstate); | |
33189 | if (PyErr_Occurred()) SWIG_fail; | |
33190 | } | |
c370783e | 33191 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
33192 | return resultobj; |
33193 | fail: | |
33194 | return NULL; | |
33195 | } | |
33196 | ||
33197 | ||
c370783e | 33198 | static PyObject *_wrap_MenuItem_SetKind(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33199 | PyObject *resultobj; |
33200 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33201 | int arg2 ; | |
33202 | PyObject * obj0 = 0 ; | |
33203 | PyObject * obj1 = 0 ; | |
33204 | char *kwnames[] = { | |
33205 | (char *) "self",(char *) "kind", NULL | |
33206 | }; | |
33207 | ||
33208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail; | |
33209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 33211 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
33212 | if (PyErr_Occurred()) SWIG_fail; |
33213 | { | |
33214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33215 | (arg1)->SetKind((wxItemKind )arg2); | |
33216 | ||
33217 | wxPyEndAllowThreads(__tstate); | |
33218 | if (PyErr_Occurred()) SWIG_fail; | |
33219 | } | |
33220 | Py_INCREF(Py_None); resultobj = Py_None; | |
33221 | return resultobj; | |
33222 | fail: | |
33223 | return NULL; | |
33224 | } | |
33225 | ||
33226 | ||
c370783e | 33227 | static PyObject *_wrap_MenuItem_SetCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33228 | PyObject *resultobj; |
33229 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33230 | bool arg2 ; | |
33231 | PyObject * obj0 = 0 ; | |
33232 | PyObject * obj1 = 0 ; | |
33233 | char *kwnames[] = { | |
33234 | (char *) "self",(char *) "checkable", NULL | |
33235 | }; | |
33236 | ||
33237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail; | |
33238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 33240 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
33241 | if (PyErr_Occurred()) SWIG_fail; |
33242 | { | |
33243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33244 | (arg1)->SetCheckable(arg2); | |
33245 | ||
33246 | wxPyEndAllowThreads(__tstate); | |
33247 | if (PyErr_Occurred()) SWIG_fail; | |
33248 | } | |
33249 | Py_INCREF(Py_None); resultobj = Py_None; | |
33250 | return resultobj; | |
33251 | fail: | |
33252 | return NULL; | |
33253 | } | |
33254 | ||
33255 | ||
c370783e | 33256 | static PyObject *_wrap_MenuItem_IsCheckable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33257 | PyObject *resultobj; |
33258 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33259 | bool result; | |
33260 | PyObject * obj0 = 0 ; | |
33261 | char *kwnames[] = { | |
33262 | (char *) "self", NULL | |
33263 | }; | |
33264 | ||
33265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail; | |
33266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33268 | { | |
33269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33270 | result = (bool)((wxMenuItem const *)arg1)->IsCheckable(); | |
33271 | ||
33272 | wxPyEndAllowThreads(__tstate); | |
33273 | if (PyErr_Occurred()) SWIG_fail; | |
33274 | } | |
33275 | { | |
33276 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33277 | } | |
33278 | return resultobj; | |
33279 | fail: | |
33280 | return NULL; | |
33281 | } | |
33282 | ||
33283 | ||
c370783e | 33284 | static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33285 | PyObject *resultobj; |
33286 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33287 | bool result; | |
33288 | PyObject * obj0 = 0 ; | |
33289 | char *kwnames[] = { | |
33290 | (char *) "self", NULL | |
33291 | }; | |
33292 | ||
33293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail; | |
33294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33296 | { | |
33297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33298 | result = (bool)((wxMenuItem const *)arg1)->IsSubMenu(); | |
33299 | ||
33300 | wxPyEndAllowThreads(__tstate); | |
33301 | if (PyErr_Occurred()) SWIG_fail; | |
33302 | } | |
33303 | { | |
33304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33305 | } | |
33306 | return resultobj; | |
33307 | fail: | |
33308 | return NULL; | |
33309 | } | |
33310 | ||
33311 | ||
c370783e | 33312 | static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33313 | PyObject *resultobj; |
33314 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33315 | wxMenu *arg2 = (wxMenu *) 0 ; | |
33316 | PyObject * obj0 = 0 ; | |
33317 | PyObject * obj1 = 0 ; | |
33318 | char *kwnames[] = { | |
33319 | (char *) "self",(char *) "menu", NULL | |
33320 | }; | |
33321 | ||
33322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail; | |
33323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33325 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu, | |
33326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33327 | { | |
33328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33329 | (arg1)->SetSubMenu(arg2); | |
33330 | ||
33331 | wxPyEndAllowThreads(__tstate); | |
33332 | if (PyErr_Occurred()) SWIG_fail; | |
33333 | } | |
33334 | Py_INCREF(Py_None); resultobj = Py_None; | |
33335 | return resultobj; | |
33336 | fail: | |
33337 | return NULL; | |
33338 | } | |
33339 | ||
33340 | ||
c370783e | 33341 | static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33342 | PyObject *resultobj; |
33343 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33344 | wxMenu *result; | |
33345 | PyObject * obj0 = 0 ; | |
33346 | char *kwnames[] = { | |
33347 | (char *) "self", NULL | |
33348 | }; | |
33349 | ||
33350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail; | |
33351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33353 | { | |
33354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33355 | result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu(); | |
33356 | ||
33357 | wxPyEndAllowThreads(__tstate); | |
33358 | if (PyErr_Occurred()) SWIG_fail; | |
33359 | } | |
33360 | { | |
412d302d | 33361 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
33362 | } |
33363 | return resultobj; | |
33364 | fail: | |
33365 | return NULL; | |
33366 | } | |
33367 | ||
33368 | ||
c370783e | 33369 | static PyObject *_wrap_MenuItem_Enable(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33370 | PyObject *resultobj; |
33371 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
b411df4a | 33372 | bool arg2 = (bool) true ; |
d55e5bfc RD |
33373 | PyObject * obj0 = 0 ; |
33374 | PyObject * obj1 = 0 ; | |
33375 | char *kwnames[] = { | |
33376 | (char *) "self",(char *) "enable", NULL | |
33377 | }; | |
33378 | ||
33379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail; | |
33380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33382 | if (obj1) { | |
c370783e | 33383 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
33384 | if (PyErr_Occurred()) SWIG_fail; |
33385 | } | |
33386 | { | |
33387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33388 | (arg1)->Enable(arg2); | |
33389 | ||
33390 | wxPyEndAllowThreads(__tstate); | |
33391 | if (PyErr_Occurred()) SWIG_fail; | |
33392 | } | |
33393 | Py_INCREF(Py_None); resultobj = Py_None; | |
33394 | return resultobj; | |
33395 | fail: | |
33396 | return NULL; | |
33397 | } | |
33398 | ||
33399 | ||
c370783e | 33400 | static PyObject *_wrap_MenuItem_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33401 | PyObject *resultobj; |
33402 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33403 | bool result; | |
33404 | PyObject * obj0 = 0 ; | |
33405 | char *kwnames[] = { | |
33406 | (char *) "self", NULL | |
33407 | }; | |
33408 | ||
33409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail; | |
33410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33412 | { | |
33413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33414 | result = (bool)((wxMenuItem const *)arg1)->IsEnabled(); | |
33415 | ||
33416 | wxPyEndAllowThreads(__tstate); | |
33417 | if (PyErr_Occurred()) SWIG_fail; | |
33418 | } | |
33419 | { | |
33420 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33421 | } | |
33422 | return resultobj; | |
33423 | fail: | |
33424 | return NULL; | |
33425 | } | |
33426 | ||
33427 | ||
c370783e | 33428 | static PyObject *_wrap_MenuItem_Check(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33429 | PyObject *resultobj; |
33430 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
b411df4a | 33431 | bool arg2 = (bool) true ; |
d55e5bfc RD |
33432 | PyObject * obj0 = 0 ; |
33433 | PyObject * obj1 = 0 ; | |
33434 | char *kwnames[] = { | |
33435 | (char *) "self",(char *) "check", NULL | |
33436 | }; | |
33437 | ||
33438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail; | |
33439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33441 | if (obj1) { | |
c370783e | 33442 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
33443 | if (PyErr_Occurred()) SWIG_fail; |
33444 | } | |
33445 | { | |
33446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33447 | (arg1)->Check(arg2); | |
33448 | ||
33449 | wxPyEndAllowThreads(__tstate); | |
33450 | if (PyErr_Occurred()) SWIG_fail; | |
33451 | } | |
33452 | Py_INCREF(Py_None); resultobj = Py_None; | |
33453 | return resultobj; | |
33454 | fail: | |
33455 | return NULL; | |
33456 | } | |
33457 | ||
33458 | ||
c370783e | 33459 | static PyObject *_wrap_MenuItem_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33460 | PyObject *resultobj; |
33461 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33462 | bool result; | |
33463 | PyObject * obj0 = 0 ; | |
33464 | char *kwnames[] = { | |
33465 | (char *) "self", NULL | |
33466 | }; | |
33467 | ||
33468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail; | |
33469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33471 | { | |
33472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33473 | result = (bool)((wxMenuItem const *)arg1)->IsChecked(); | |
33474 | ||
33475 | wxPyEndAllowThreads(__tstate); | |
33476 | if (PyErr_Occurred()) SWIG_fail; | |
33477 | } | |
33478 | { | |
33479 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33480 | } | |
33481 | return resultobj; | |
33482 | fail: | |
33483 | return NULL; | |
33484 | } | |
33485 | ||
33486 | ||
c370783e | 33487 | static PyObject *_wrap_MenuItem_Toggle(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33488 | PyObject *resultobj; |
33489 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33490 | PyObject * obj0 = 0 ; | |
33491 | char *kwnames[] = { | |
33492 | (char *) "self", NULL | |
33493 | }; | |
33494 | ||
33495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail; | |
33496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33498 | { | |
33499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33500 | (arg1)->Toggle(); | |
33501 | ||
33502 | wxPyEndAllowThreads(__tstate); | |
33503 | if (PyErr_Occurred()) SWIG_fail; | |
33504 | } | |
33505 | Py_INCREF(Py_None); resultobj = Py_None; | |
33506 | return resultobj; | |
33507 | fail: | |
33508 | return NULL; | |
33509 | } | |
33510 | ||
33511 | ||
c370783e | 33512 | static PyObject *_wrap_MenuItem_SetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33513 | PyObject *resultobj; |
33514 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33515 | wxString *arg2 = 0 ; | |
b411df4a | 33516 | bool temp2 = false ; |
d55e5bfc RD |
33517 | PyObject * obj0 = 0 ; |
33518 | PyObject * obj1 = 0 ; | |
33519 | char *kwnames[] = { | |
33520 | (char *) "self",(char *) "str", NULL | |
33521 | }; | |
33522 | ||
33523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail; | |
33524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33526 | { | |
33527 | arg2 = wxString_in_helper(obj1); | |
33528 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 33529 | temp2 = true; |
d55e5bfc RD |
33530 | } |
33531 | { | |
33532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33533 | (arg1)->SetHelp((wxString const &)*arg2); | |
33534 | ||
33535 | wxPyEndAllowThreads(__tstate); | |
33536 | if (PyErr_Occurred()) SWIG_fail; | |
33537 | } | |
33538 | Py_INCREF(Py_None); resultobj = Py_None; | |
33539 | { | |
33540 | if (temp2) | |
33541 | delete arg2; | |
33542 | } | |
33543 | return resultobj; | |
33544 | fail: | |
33545 | { | |
33546 | if (temp2) | |
33547 | delete arg2; | |
33548 | } | |
33549 | return NULL; | |
33550 | } | |
33551 | ||
33552 | ||
c370783e | 33553 | static PyObject *_wrap_MenuItem_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33554 | PyObject *resultobj; |
33555 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33556 | wxString *result; | |
33557 | PyObject * obj0 = 0 ; | |
33558 | char *kwnames[] = { | |
33559 | (char *) "self", NULL | |
33560 | }; | |
33561 | ||
33562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail; | |
33563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33565 | { | |
33566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33567 | { | |
33568 | wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp(); | |
33569 | result = (wxString *) &_result_ref; | |
33570 | } | |
33571 | ||
33572 | wxPyEndAllowThreads(__tstate); | |
33573 | if (PyErr_Occurred()) SWIG_fail; | |
33574 | } | |
33575 | { | |
33576 | #if wxUSE_UNICODE | |
33577 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
33578 | #else | |
33579 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
33580 | #endif | |
33581 | } | |
33582 | return resultobj; | |
33583 | fail: | |
33584 | return NULL; | |
33585 | } | |
33586 | ||
33587 | ||
c370783e | 33588 | static PyObject *_wrap_MenuItem_GetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33589 | PyObject *resultobj; |
33590 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33591 | wxAcceleratorEntry *result; | |
33592 | PyObject * obj0 = 0 ; | |
33593 | char *kwnames[] = { | |
33594 | (char *) "self", NULL | |
33595 | }; | |
33596 | ||
33597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail; | |
33598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33600 | { | |
33601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33602 | result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel(); | |
33603 | ||
33604 | wxPyEndAllowThreads(__tstate); | |
33605 | if (PyErr_Occurred()) SWIG_fail; | |
33606 | } | |
33607 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0); | |
33608 | return resultobj; | |
33609 | fail: | |
33610 | return NULL; | |
33611 | } | |
33612 | ||
33613 | ||
c370783e | 33614 | static PyObject *_wrap_MenuItem_SetAccel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33615 | PyObject *resultobj; |
33616 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33617 | wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ; | |
33618 | PyObject * obj0 = 0 ; | |
33619 | PyObject * obj1 = 0 ; | |
33620 | char *kwnames[] = { | |
33621 | (char *) "self",(char *) "accel", NULL | |
33622 | }; | |
33623 | ||
33624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail; | |
33625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33627 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry, | |
33628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33629 | { | |
33630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33631 | (arg1)->SetAccel(arg2); | |
33632 | ||
33633 | wxPyEndAllowThreads(__tstate); | |
33634 | if (PyErr_Occurred()) SWIG_fail; | |
33635 | } | |
33636 | Py_INCREF(Py_None); resultobj = Py_None; | |
33637 | return resultobj; | |
33638 | fail: | |
33639 | return NULL; | |
33640 | } | |
33641 | ||
33642 | ||
c370783e | 33643 | static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33644 | PyObject *resultobj; |
33645 | int result; | |
33646 | char *kwnames[] = { | |
33647 | NULL | |
33648 | }; | |
33649 | ||
33650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail; | |
33651 | { | |
33652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33653 | result = (int)MenuItem_GetDefaultMarginWidth(); | |
33654 | ||
33655 | wxPyEndAllowThreads(__tstate); | |
33656 | if (PyErr_Occurred()) SWIG_fail; | |
33657 | } | |
c370783e | 33658 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
33659 | return resultobj; |
33660 | fail: | |
33661 | return NULL; | |
33662 | } | |
33663 | ||
33664 | ||
c370783e | 33665 | static PyObject *_wrap_MenuItem_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33666 | PyObject *resultobj; |
33667 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33668 | wxBitmap *arg2 = 0 ; | |
33669 | PyObject * obj0 = 0 ; | |
33670 | PyObject * obj1 = 0 ; | |
33671 | char *kwnames[] = { | |
33672 | (char *) "self",(char *) "bitmap", NULL | |
33673 | }; | |
33674 | ||
33675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
33676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33678 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
33679 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33680 | SWIG_fail; | |
33681 | if (arg2 == NULL) { | |
33682 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33683 | SWIG_fail; | |
33684 | } | |
33685 | { | |
33686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33687 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
33688 | ||
33689 | wxPyEndAllowThreads(__tstate); | |
33690 | if (PyErr_Occurred()) SWIG_fail; | |
33691 | } | |
33692 | Py_INCREF(Py_None); resultobj = Py_None; | |
33693 | return resultobj; | |
33694 | fail: | |
33695 | return NULL; | |
33696 | } | |
33697 | ||
33698 | ||
c370783e | 33699 | static PyObject *_wrap_MenuItem_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33700 | PyObject *resultobj; |
33701 | wxMenuItem *arg1 = (wxMenuItem *) 0 ; | |
33702 | wxBitmap *result; | |
33703 | PyObject * obj0 = 0 ; | |
33704 | char *kwnames[] = { | |
33705 | (char *) "self", NULL | |
33706 | }; | |
33707 | ||
33708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail; | |
33709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem, | |
33710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33711 | { | |
33712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33713 | { | |
33714 | wxBitmap const &_result_ref = (arg1)->GetBitmap(); | |
33715 | result = (wxBitmap *) &_result_ref; | |
33716 | } | |
33717 | ||
33718 | wxPyEndAllowThreads(__tstate); | |
33719 | if (PyErr_Occurred()) SWIG_fail; | |
33720 | } | |
33721 | { | |
33722 | wxBitmap* resultptr = new wxBitmap(*result); | |
33723 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
33724 | } | |
33725 | return resultobj; | |
33726 | fail: | |
33727 | return NULL; | |
33728 | } | |
33729 | ||
33730 | ||
c370783e | 33731 | static PyObject * MenuItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
33732 | PyObject *obj; |
33733 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
33734 | SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj); | |
33735 | Py_INCREF(obj); | |
33736 | return Py_BuildValue((char *)""); | |
33737 | } | |
c370783e | 33738 | static int _wrap_ControlNameStr_set(PyObject *) { |
d55e5bfc RD |
33739 | PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only."); |
33740 | return 1; | |
33741 | } | |
33742 | ||
33743 | ||
33744 | static PyObject *_wrap_ControlNameStr_get() { | |
33745 | PyObject *pyobj; | |
33746 | ||
33747 | { | |
33748 | #if wxUSE_UNICODE | |
33749 | pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
33750 | #else | |
33751 | pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len()); | |
33752 | #endif | |
33753 | } | |
33754 | return pyobj; | |
33755 | } | |
33756 | ||
33757 | ||
c370783e | 33758 | static PyObject *_wrap_new_Control(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33759 | PyObject *resultobj; |
33760 | wxWindow *arg1 = (wxWindow *) 0 ; | |
bfddbb17 | 33761 | int arg2 = (int) -1 ; |
d55e5bfc RD |
33762 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
33763 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
33764 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
33765 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
33766 | long arg5 = (long) 0 ; | |
33767 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
33768 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
33769 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
33770 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
33771 | wxControl *result; | |
33772 | wxPoint temp3 ; | |
33773 | wxSize temp4 ; | |
b411df4a | 33774 | bool temp7 = false ; |
d55e5bfc RD |
33775 | PyObject * obj0 = 0 ; |
33776 | PyObject * obj1 = 0 ; | |
33777 | PyObject * obj2 = 0 ; | |
33778 | PyObject * obj3 = 0 ; | |
33779 | PyObject * obj4 = 0 ; | |
33780 | PyObject * obj5 = 0 ; | |
33781 | PyObject * obj6 = 0 ; | |
33782 | char *kwnames[] = { | |
33783 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33784 | }; | |
33785 | ||
bfddbb17 | 33786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
33787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
33788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 33789 | if (obj1) { |
c370783e | 33790 | arg2 = (int)SWIG_As_int(obj1); |
bfddbb17 RD |
33791 | if (PyErr_Occurred()) SWIG_fail; |
33792 | } | |
d55e5bfc RD |
33793 | if (obj2) { |
33794 | { | |
33795 | arg3 = &temp3; | |
33796 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
33797 | } | |
33798 | } | |
33799 | if (obj3) { | |
33800 | { | |
33801 | arg4 = &temp4; | |
33802 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
33803 | } | |
33804 | } | |
33805 | if (obj4) { | |
c370783e | 33806 | arg5 = (long)SWIG_As_long(obj4); |
d55e5bfc RD |
33807 | if (PyErr_Occurred()) SWIG_fail; |
33808 | } | |
33809 | if (obj5) { | |
33810 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
33811 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33812 | SWIG_fail; | |
33813 | if (arg6 == NULL) { | |
33814 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33815 | SWIG_fail; | |
33816 | } | |
33817 | } | |
33818 | if (obj6) { | |
33819 | { | |
33820 | arg7 = wxString_in_helper(obj6); | |
33821 | if (arg7 == NULL) SWIG_fail; | |
b411df4a | 33822 | temp7 = true; |
d55e5bfc RD |
33823 | } |
33824 | } | |
33825 | { | |
0439c23b | 33826 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
33827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33828 | result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
33829 | ||
33830 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33831 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 33832 | } |
b0f7404b | 33833 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d55e5bfc RD |
33834 | { |
33835 | if (temp7) | |
33836 | delete arg7; | |
33837 | } | |
33838 | return resultobj; | |
33839 | fail: | |
33840 | { | |
33841 | if (temp7) | |
33842 | delete arg7; | |
33843 | } | |
33844 | return NULL; | |
33845 | } | |
33846 | ||
33847 | ||
c370783e | 33848 | static PyObject *_wrap_new_PreControl(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33849 | PyObject *resultobj; |
33850 | wxControl *result; | |
33851 | char *kwnames[] = { | |
33852 | NULL | |
33853 | }; | |
33854 | ||
33855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail; | |
33856 | { | |
0439c23b | 33857 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
33858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
33859 | result = (wxControl *)new wxControl(); | |
33860 | ||
33861 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 33862 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 33863 | } |
b0f7404b | 33864 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1); |
d55e5bfc RD |
33865 | return resultobj; |
33866 | fail: | |
33867 | return NULL; | |
33868 | } | |
33869 | ||
33870 | ||
c370783e | 33871 | static PyObject *_wrap_Control_Create(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33872 | PyObject *resultobj; |
33873 | wxControl *arg1 = (wxControl *) 0 ; | |
33874 | wxWindow *arg2 = (wxWindow *) 0 ; | |
bfddbb17 | 33875 | int arg3 = (int) -1 ; |
d55e5bfc RD |
33876 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
33877 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
33878 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
33879 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
33880 | long arg6 = (long) 0 ; | |
33881 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
33882 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
33883 | wxString const &arg8_defvalue = wxPyControlNameStr ; | |
33884 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
33885 | bool result; | |
33886 | wxPoint temp4 ; | |
33887 | wxSize temp5 ; | |
b411df4a | 33888 | bool temp8 = false ; |
d55e5bfc RD |
33889 | PyObject * obj0 = 0 ; |
33890 | PyObject * obj1 = 0 ; | |
33891 | PyObject * obj2 = 0 ; | |
33892 | PyObject * obj3 = 0 ; | |
33893 | PyObject * obj4 = 0 ; | |
33894 | PyObject * obj5 = 0 ; | |
33895 | PyObject * obj6 = 0 ; | |
33896 | PyObject * obj7 = 0 ; | |
33897 | char *kwnames[] = { | |
33898 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
33899 | }; | |
33900 | ||
bfddbb17 | 33901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
33902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, |
33903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33904 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
33905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
bfddbb17 | 33906 | if (obj2) { |
c370783e | 33907 | arg3 = (int)SWIG_As_int(obj2); |
bfddbb17 RD |
33908 | if (PyErr_Occurred()) SWIG_fail; |
33909 | } | |
d55e5bfc RD |
33910 | if (obj3) { |
33911 | { | |
33912 | arg4 = &temp4; | |
33913 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
33914 | } | |
33915 | } | |
33916 | if (obj4) { | |
33917 | { | |
33918 | arg5 = &temp5; | |
33919 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
33920 | } | |
33921 | } | |
33922 | if (obj5) { | |
c370783e | 33923 | arg6 = (long)SWIG_As_long(obj5); |
d55e5bfc RD |
33924 | if (PyErr_Occurred()) SWIG_fail; |
33925 | } | |
33926 | if (obj6) { | |
33927 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
33928 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33929 | SWIG_fail; | |
33930 | if (arg7 == NULL) { | |
33931 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33932 | SWIG_fail; | |
33933 | } | |
33934 | } | |
33935 | if (obj7) { | |
33936 | { | |
33937 | arg8 = wxString_in_helper(obj7); | |
33938 | if (arg8 == NULL) SWIG_fail; | |
b411df4a | 33939 | temp8 = true; |
d55e5bfc RD |
33940 | } |
33941 | } | |
33942 | { | |
33943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33944 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
33945 | ||
33946 | wxPyEndAllowThreads(__tstate); | |
33947 | if (PyErr_Occurred()) SWIG_fail; | |
33948 | } | |
33949 | { | |
33950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
33951 | } | |
33952 | { | |
33953 | if (temp8) | |
33954 | delete arg8; | |
33955 | } | |
33956 | return resultobj; | |
33957 | fail: | |
33958 | { | |
33959 | if (temp8) | |
33960 | delete arg8; | |
33961 | } | |
33962 | return NULL; | |
33963 | } | |
33964 | ||
33965 | ||
c370783e | 33966 | static PyObject *_wrap_Control_Command(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
33967 | PyObject *resultobj; |
33968 | wxControl *arg1 = (wxControl *) 0 ; | |
33969 | wxCommandEvent *arg2 = 0 ; | |
33970 | PyObject * obj0 = 0 ; | |
33971 | PyObject * obj1 = 0 ; | |
33972 | char *kwnames[] = { | |
33973 | (char *) "self",(char *) "event", NULL | |
33974 | }; | |
33975 | ||
33976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail; | |
33977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
33978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
33979 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent, | |
33980 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
33981 | SWIG_fail; | |
33982 | if (arg2 == NULL) { | |
33983 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
33984 | SWIG_fail; | |
33985 | } | |
33986 | { | |
33987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33988 | (arg1)->Command(*arg2); | |
33989 | ||
33990 | wxPyEndAllowThreads(__tstate); | |
33991 | if (PyErr_Occurred()) SWIG_fail; | |
33992 | } | |
33993 | Py_INCREF(Py_None); resultobj = Py_None; | |
33994 | return resultobj; | |
33995 | fail: | |
33996 | return NULL; | |
33997 | } | |
33998 | ||
33999 | ||
c370783e | 34000 | static PyObject *_wrap_Control_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34001 | PyObject *resultobj; |
34002 | wxControl *arg1 = (wxControl *) 0 ; | |
34003 | wxString result; | |
34004 | PyObject * obj0 = 0 ; | |
34005 | char *kwnames[] = { | |
34006 | (char *) "self", NULL | |
34007 | }; | |
34008 | ||
34009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail; | |
34010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
34011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34012 | { | |
34013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34014 | result = (arg1)->GetLabel(); | |
34015 | ||
34016 | wxPyEndAllowThreads(__tstate); | |
34017 | if (PyErr_Occurred()) SWIG_fail; | |
34018 | } | |
34019 | { | |
34020 | #if wxUSE_UNICODE | |
34021 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34022 | #else | |
34023 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34024 | #endif | |
34025 | } | |
34026 | return resultobj; | |
34027 | fail: | |
34028 | return NULL; | |
34029 | } | |
34030 | ||
34031 | ||
c370783e | 34032 | static PyObject *_wrap_Control_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34033 | PyObject *resultobj; |
34034 | wxControl *arg1 = (wxControl *) 0 ; | |
34035 | wxString *arg2 = 0 ; | |
b411df4a | 34036 | bool temp2 = false ; |
d55e5bfc RD |
34037 | PyObject * obj0 = 0 ; |
34038 | PyObject * obj1 = 0 ; | |
34039 | char *kwnames[] = { | |
34040 | (char *) "self",(char *) "label", NULL | |
34041 | }; | |
34042 | ||
34043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
34044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl, | |
34045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34046 | { | |
34047 | arg2 = wxString_in_helper(obj1); | |
34048 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 34049 | temp2 = true; |
d55e5bfc RD |
34050 | } |
34051 | { | |
34052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34053 | (arg1)->SetLabel((wxString const &)*arg2); | |
34054 | ||
34055 | wxPyEndAllowThreads(__tstate); | |
34056 | if (PyErr_Occurred()) SWIG_fail; | |
34057 | } | |
34058 | Py_INCREF(Py_None); resultobj = Py_None; | |
34059 | { | |
34060 | if (temp2) | |
34061 | delete arg2; | |
34062 | } | |
34063 | return resultobj; | |
34064 | fail: | |
34065 | { | |
34066 | if (temp2) | |
34067 | delete arg2; | |
34068 | } | |
34069 | return NULL; | |
34070 | } | |
34071 | ||
34072 | ||
c370783e | 34073 | static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34074 | PyObject *resultobj; |
34075 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
34076 | wxVisualAttributes result; | |
34077 | PyObject * obj0 = 0 ; | |
34078 | char *kwnames[] = { | |
34079 | (char *) "variant", NULL | |
34080 | }; | |
34081 | ||
34082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
34083 | if (obj0) { | |
c370783e | 34084 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
34085 | if (PyErr_Occurred()) SWIG_fail; |
34086 | } | |
34087 | { | |
110da5b0 | 34088 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
34089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
34090 | result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
34091 | ||
34092 | wxPyEndAllowThreads(__tstate); | |
a001823c | 34093 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
34094 | } |
34095 | { | |
34096 | wxVisualAttributes * resultptr; | |
34097 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
34098 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
34099 | } | |
34100 | return resultobj; | |
34101 | fail: | |
34102 | return NULL; | |
34103 | } | |
34104 | ||
34105 | ||
c370783e | 34106 | static PyObject * Control_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
34107 | PyObject *obj; |
34108 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34109 | SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj); | |
34110 | Py_INCREF(obj); | |
34111 | return Py_BuildValue((char *)""); | |
34112 | } | |
c370783e | 34113 | static PyObject *_wrap_ItemContainer_Append(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34114 | PyObject *resultobj; |
34115 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34116 | wxString *arg2 = 0 ; | |
34117 | PyObject *arg3 = (PyObject *) NULL ; | |
34118 | int result; | |
b411df4a | 34119 | bool temp2 = false ; |
d55e5bfc RD |
34120 | PyObject * obj0 = 0 ; |
34121 | PyObject * obj1 = 0 ; | |
34122 | PyObject * obj2 = 0 ; | |
34123 | char *kwnames[] = { | |
34124 | (char *) "self",(char *) "item",(char *) "clientData", NULL | |
34125 | }; | |
34126 | ||
34127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34130 | { | |
34131 | arg2 = wxString_in_helper(obj1); | |
34132 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 34133 | temp2 = true; |
d55e5bfc RD |
34134 | } |
34135 | if (obj2) { | |
34136 | arg3 = obj2; | |
34137 | } | |
34138 | { | |
34139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34140 | result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3); | |
34141 | ||
34142 | wxPyEndAllowThreads(__tstate); | |
34143 | if (PyErr_Occurred()) SWIG_fail; | |
34144 | } | |
c370783e | 34145 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34146 | { |
34147 | if (temp2) | |
34148 | delete arg2; | |
34149 | } | |
34150 | return resultobj; | |
34151 | fail: | |
34152 | { | |
34153 | if (temp2) | |
34154 | delete arg2; | |
34155 | } | |
34156 | return NULL; | |
34157 | } | |
34158 | ||
34159 | ||
c370783e | 34160 | static PyObject *_wrap_ItemContainer_AppendItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34161 | PyObject *resultobj; |
34162 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34163 | wxArrayString *arg2 = 0 ; | |
b411df4a | 34164 | bool temp2 = false ; |
d55e5bfc RD |
34165 | PyObject * obj0 = 0 ; |
34166 | PyObject * obj1 = 0 ; | |
34167 | char *kwnames[] = { | |
34168 | (char *) "self",(char *) "strings", NULL | |
34169 | }; | |
34170 | ||
34171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail; | |
34172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34174 | { | |
34175 | if (! PySequence_Check(obj1)) { | |
34176 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
34177 | SWIG_fail; | |
34178 | } | |
34179 | arg2 = new wxArrayString; | |
b411df4a | 34180 | temp2 = true; |
d55e5bfc RD |
34181 | int i, len=PySequence_Length(obj1); |
34182 | for (i=0; i<len; i++) { | |
34183 | PyObject* item = PySequence_GetItem(obj1, i); | |
34184 | #if wxUSE_UNICODE | |
34185 | PyObject* str = PyObject_Unicode(item); | |
34186 | #else | |
34187 | PyObject* str = PyObject_Str(item); | |
34188 | #endif | |
34189 | if (PyErr_Occurred()) SWIG_fail; | |
34190 | arg2->Add(Py2wxString(str)); | |
34191 | Py_DECREF(item); | |
34192 | Py_DECREF(str); | |
34193 | } | |
34194 | } | |
34195 | { | |
34196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34197 | (arg1)->Append((wxArrayString const &)*arg2); | |
34198 | ||
34199 | wxPyEndAllowThreads(__tstate); | |
34200 | if (PyErr_Occurred()) SWIG_fail; | |
34201 | } | |
34202 | Py_INCREF(Py_None); resultobj = Py_None; | |
34203 | { | |
34204 | if (temp2) delete arg2; | |
34205 | } | |
34206 | return resultobj; | |
34207 | fail: | |
34208 | { | |
34209 | if (temp2) delete arg2; | |
34210 | } | |
34211 | return NULL; | |
34212 | } | |
34213 | ||
34214 | ||
c370783e | 34215 | static PyObject *_wrap_ItemContainer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34216 | PyObject *resultobj; |
34217 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34218 | wxString *arg2 = 0 ; | |
34219 | int arg3 ; | |
34220 | PyObject *arg4 = (PyObject *) NULL ; | |
34221 | int result; | |
b411df4a | 34222 | bool temp2 = false ; |
d55e5bfc RD |
34223 | PyObject * obj0 = 0 ; |
34224 | PyObject * obj1 = 0 ; | |
34225 | PyObject * obj2 = 0 ; | |
34226 | PyObject * obj3 = 0 ; | |
34227 | char *kwnames[] = { | |
34228 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
34229 | }; | |
34230 | ||
34231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
34232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34234 | { | |
34235 | arg2 = wxString_in_helper(obj1); | |
34236 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 34237 | temp2 = true; |
d55e5bfc | 34238 | } |
c370783e | 34239 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
34240 | if (PyErr_Occurred()) SWIG_fail; |
34241 | if (obj3) { | |
34242 | arg4 = obj3; | |
34243 | } | |
34244 | { | |
34245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34246 | result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
34247 | ||
34248 | wxPyEndAllowThreads(__tstate); | |
34249 | if (PyErr_Occurred()) SWIG_fail; | |
34250 | } | |
c370783e | 34251 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34252 | { |
34253 | if (temp2) | |
34254 | delete arg2; | |
34255 | } | |
34256 | return resultobj; | |
34257 | fail: | |
34258 | { | |
34259 | if (temp2) | |
34260 | delete arg2; | |
34261 | } | |
34262 | return NULL; | |
34263 | } | |
34264 | ||
34265 | ||
c370783e | 34266 | static PyObject *_wrap_ItemContainer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34267 | PyObject *resultobj; |
34268 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34269 | PyObject * obj0 = 0 ; | |
34270 | char *kwnames[] = { | |
34271 | (char *) "self", NULL | |
34272 | }; | |
34273 | ||
34274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail; | |
34275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34277 | { | |
34278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34279 | (arg1)->Clear(); | |
34280 | ||
34281 | wxPyEndAllowThreads(__tstate); | |
34282 | if (PyErr_Occurred()) SWIG_fail; | |
34283 | } | |
34284 | Py_INCREF(Py_None); resultobj = Py_None; | |
34285 | return resultobj; | |
34286 | fail: | |
34287 | return NULL; | |
34288 | } | |
34289 | ||
34290 | ||
c370783e | 34291 | static PyObject *_wrap_ItemContainer_Delete(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34292 | PyObject *resultobj; |
34293 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34294 | int arg2 ; | |
34295 | PyObject * obj0 = 0 ; | |
34296 | PyObject * obj1 = 0 ; | |
34297 | char *kwnames[] = { | |
34298 | (char *) "self",(char *) "n", NULL | |
34299 | }; | |
34300 | ||
34301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail; | |
34302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34304 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34305 | if (PyErr_Occurred()) SWIG_fail; |
34306 | { | |
34307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34308 | (arg1)->Delete(arg2); | |
34309 | ||
34310 | wxPyEndAllowThreads(__tstate); | |
34311 | if (PyErr_Occurred()) SWIG_fail; | |
34312 | } | |
34313 | Py_INCREF(Py_None); resultobj = Py_None; | |
34314 | return resultobj; | |
34315 | fail: | |
34316 | return NULL; | |
34317 | } | |
34318 | ||
34319 | ||
c370783e | 34320 | static PyObject *_wrap_ItemContainer_GetCount(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34321 | PyObject *resultobj; |
34322 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34323 | int result; | |
34324 | PyObject * obj0 = 0 ; | |
34325 | char *kwnames[] = { | |
34326 | (char *) "self", NULL | |
34327 | }; | |
34328 | ||
34329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail; | |
34330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34332 | { | |
34333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34334 | result = (int)((wxItemContainer const *)arg1)->GetCount(); | |
34335 | ||
34336 | wxPyEndAllowThreads(__tstate); | |
34337 | if (PyErr_Occurred()) SWIG_fail; | |
34338 | } | |
c370783e | 34339 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34340 | return resultobj; |
34341 | fail: | |
34342 | return NULL; | |
34343 | } | |
34344 | ||
34345 | ||
c370783e | 34346 | static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34347 | PyObject *resultobj; |
34348 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34349 | bool result; | |
34350 | PyObject * obj0 = 0 ; | |
34351 | char *kwnames[] = { | |
34352 | (char *) "self", NULL | |
34353 | }; | |
34354 | ||
34355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail; | |
34356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34358 | { | |
34359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34360 | result = (bool)((wxItemContainer const *)arg1)->IsEmpty(); | |
34361 | ||
34362 | wxPyEndAllowThreads(__tstate); | |
34363 | if (PyErr_Occurred()) SWIG_fail; | |
34364 | } | |
34365 | { | |
34366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34367 | } | |
34368 | return resultobj; | |
34369 | fail: | |
34370 | return NULL; | |
34371 | } | |
34372 | ||
34373 | ||
c370783e | 34374 | static PyObject *_wrap_ItemContainer_GetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34375 | PyObject *resultobj; |
34376 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34377 | int arg2 ; | |
34378 | wxString result; | |
34379 | PyObject * obj0 = 0 ; | |
34380 | PyObject * obj1 = 0 ; | |
34381 | char *kwnames[] = { | |
34382 | (char *) "self",(char *) "n", NULL | |
34383 | }; | |
34384 | ||
34385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail; | |
34386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34388 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34389 | if (PyErr_Occurred()) SWIG_fail; |
34390 | { | |
34391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34392 | result = ((wxItemContainer const *)arg1)->GetString(arg2); | |
34393 | ||
34394 | wxPyEndAllowThreads(__tstate); | |
34395 | if (PyErr_Occurred()) SWIG_fail; | |
34396 | } | |
34397 | { | |
34398 | #if wxUSE_UNICODE | |
34399 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34400 | #else | |
34401 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34402 | #endif | |
34403 | } | |
34404 | return resultobj; | |
34405 | fail: | |
34406 | return NULL; | |
34407 | } | |
34408 | ||
34409 | ||
c370783e | 34410 | static PyObject *_wrap_ItemContainer_GetStrings(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34411 | PyObject *resultobj; |
34412 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34413 | wxArrayString result; | |
34414 | PyObject * obj0 = 0 ; | |
34415 | char *kwnames[] = { | |
34416 | (char *) "self", NULL | |
34417 | }; | |
34418 | ||
34419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail; | |
34420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34422 | { | |
34423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34424 | result = ((wxItemContainer const *)arg1)->GetStrings(); | |
34425 | ||
34426 | wxPyEndAllowThreads(__tstate); | |
34427 | if (PyErr_Occurred()) SWIG_fail; | |
34428 | } | |
34429 | { | |
34430 | resultobj = wxArrayString2PyList_helper(result); | |
34431 | } | |
34432 | return resultobj; | |
34433 | fail: | |
34434 | return NULL; | |
34435 | } | |
34436 | ||
34437 | ||
c370783e | 34438 | static PyObject *_wrap_ItemContainer_SetString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34439 | PyObject *resultobj; |
34440 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34441 | int arg2 ; | |
34442 | wxString *arg3 = 0 ; | |
b411df4a | 34443 | bool temp3 = false ; |
d55e5bfc RD |
34444 | PyObject * obj0 = 0 ; |
34445 | PyObject * obj1 = 0 ; | |
34446 | PyObject * obj2 = 0 ; | |
34447 | char *kwnames[] = { | |
34448 | (char *) "self",(char *) "n",(char *) "s", NULL | |
34449 | }; | |
34450 | ||
34451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34454 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34455 | if (PyErr_Occurred()) SWIG_fail; |
34456 | { | |
34457 | arg3 = wxString_in_helper(obj2); | |
34458 | if (arg3 == NULL) SWIG_fail; | |
b411df4a | 34459 | temp3 = true; |
d55e5bfc RD |
34460 | } |
34461 | { | |
34462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34463 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
34464 | ||
34465 | wxPyEndAllowThreads(__tstate); | |
34466 | if (PyErr_Occurred()) SWIG_fail; | |
34467 | } | |
34468 | Py_INCREF(Py_None); resultobj = Py_None; | |
34469 | { | |
34470 | if (temp3) | |
34471 | delete arg3; | |
34472 | } | |
34473 | return resultobj; | |
34474 | fail: | |
34475 | { | |
34476 | if (temp3) | |
34477 | delete arg3; | |
34478 | } | |
34479 | return NULL; | |
34480 | } | |
34481 | ||
34482 | ||
c370783e | 34483 | static PyObject *_wrap_ItemContainer_FindString(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34484 | PyObject *resultobj; |
34485 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34486 | wxString *arg2 = 0 ; | |
34487 | int result; | |
b411df4a | 34488 | bool temp2 = false ; |
d55e5bfc RD |
34489 | PyObject * obj0 = 0 ; |
34490 | PyObject * obj1 = 0 ; | |
34491 | char *kwnames[] = { | |
34492 | (char *) "self",(char *) "s", NULL | |
34493 | }; | |
34494 | ||
34495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail; | |
34496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34498 | { | |
34499 | arg2 = wxString_in_helper(obj1); | |
34500 | if (arg2 == NULL) SWIG_fail; | |
b411df4a | 34501 | temp2 = true; |
d55e5bfc RD |
34502 | } |
34503 | { | |
34504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34505 | result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2); | |
34506 | ||
34507 | wxPyEndAllowThreads(__tstate); | |
34508 | if (PyErr_Occurred()) SWIG_fail; | |
34509 | } | |
c370783e | 34510 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34511 | { |
34512 | if (temp2) | |
34513 | delete arg2; | |
34514 | } | |
34515 | return resultobj; | |
34516 | fail: | |
34517 | { | |
34518 | if (temp2) | |
34519 | delete arg2; | |
34520 | } | |
34521 | return NULL; | |
34522 | } | |
34523 | ||
34524 | ||
c370783e | 34525 | static PyObject *_wrap_ItemContainer_Select(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34526 | PyObject *resultobj; |
34527 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34528 | int arg2 ; | |
34529 | PyObject * obj0 = 0 ; | |
34530 | PyObject * obj1 = 0 ; | |
34531 | char *kwnames[] = { | |
34532 | (char *) "self",(char *) "n", NULL | |
34533 | }; | |
34534 | ||
34535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail; | |
34536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34538 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34539 | if (PyErr_Occurred()) SWIG_fail; |
34540 | { | |
34541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34542 | (arg1)->Select(arg2); | |
34543 | ||
34544 | wxPyEndAllowThreads(__tstate); | |
34545 | if (PyErr_Occurred()) SWIG_fail; | |
34546 | } | |
34547 | Py_INCREF(Py_None); resultobj = Py_None; | |
34548 | return resultobj; | |
34549 | fail: | |
34550 | return NULL; | |
34551 | } | |
34552 | ||
34553 | ||
c370783e | 34554 | static PyObject *_wrap_ItemContainer_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34555 | PyObject *resultobj; |
34556 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34557 | int result; | |
34558 | PyObject * obj0 = 0 ; | |
34559 | char *kwnames[] = { | |
34560 | (char *) "self", NULL | |
34561 | }; | |
34562 | ||
34563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail; | |
34564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34566 | { | |
34567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34568 | result = (int)((wxItemContainer const *)arg1)->GetSelection(); | |
34569 | ||
34570 | wxPyEndAllowThreads(__tstate); | |
34571 | if (PyErr_Occurred()) SWIG_fail; | |
34572 | } | |
c370783e | 34573 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
34574 | return resultobj; |
34575 | fail: | |
34576 | return NULL; | |
34577 | } | |
34578 | ||
34579 | ||
c370783e | 34580 | static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34581 | PyObject *resultobj; |
34582 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34583 | wxString result; | |
34584 | PyObject * obj0 = 0 ; | |
34585 | char *kwnames[] = { | |
34586 | (char *) "self", NULL | |
34587 | }; | |
34588 | ||
34589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail; | |
34590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34592 | { | |
34593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34594 | result = ((wxItemContainer const *)arg1)->GetStringSelection(); | |
34595 | ||
34596 | wxPyEndAllowThreads(__tstate); | |
34597 | if (PyErr_Occurred()) SWIG_fail; | |
34598 | } | |
34599 | { | |
34600 | #if wxUSE_UNICODE | |
34601 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
34602 | #else | |
34603 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
34604 | #endif | |
34605 | } | |
34606 | return resultobj; | |
34607 | fail: | |
34608 | return NULL; | |
34609 | } | |
34610 | ||
34611 | ||
c370783e | 34612 | static PyObject *_wrap_ItemContainer_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34613 | PyObject *resultobj; |
34614 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34615 | int arg2 ; | |
34616 | PyObject *result; | |
34617 | PyObject * obj0 = 0 ; | |
34618 | PyObject * obj1 = 0 ; | |
34619 | char *kwnames[] = { | |
34620 | (char *) "self",(char *) "n", NULL | |
34621 | }; | |
34622 | ||
34623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail; | |
34624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34626 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34627 | if (PyErr_Occurred()) SWIG_fail; |
34628 | { | |
34629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34630 | result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2); | |
34631 | ||
34632 | wxPyEndAllowThreads(__tstate); | |
34633 | if (PyErr_Occurred()) SWIG_fail; | |
34634 | } | |
34635 | resultobj = result; | |
34636 | return resultobj; | |
34637 | fail: | |
34638 | return NULL; | |
34639 | } | |
34640 | ||
34641 | ||
c370783e | 34642 | static PyObject *_wrap_ItemContainer_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34643 | PyObject *resultobj; |
34644 | wxItemContainer *arg1 = (wxItemContainer *) 0 ; | |
34645 | int arg2 ; | |
34646 | PyObject *arg3 = (PyObject *) 0 ; | |
34647 | PyObject * obj0 = 0 ; | |
34648 | PyObject * obj1 = 0 ; | |
34649 | PyObject * obj2 = 0 ; | |
34650 | char *kwnames[] = { | |
34651 | (char *) "self",(char *) "n",(char *) "clientData", NULL | |
34652 | }; | |
34653 | ||
34654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer, | |
34656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34657 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
34658 | if (PyErr_Occurred()) SWIG_fail; |
34659 | arg3 = obj2; | |
34660 | { | |
34661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34662 | wxItemContainer_SetClientData(arg1,arg2,arg3); | |
34663 | ||
34664 | wxPyEndAllowThreads(__tstate); | |
34665 | if (PyErr_Occurred()) SWIG_fail; | |
34666 | } | |
34667 | Py_INCREF(Py_None); resultobj = Py_None; | |
34668 | return resultobj; | |
34669 | fail: | |
34670 | return NULL; | |
34671 | } | |
34672 | ||
34673 | ||
c370783e | 34674 | static PyObject * ItemContainer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
34675 | PyObject *obj; |
34676 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34677 | SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj); | |
34678 | Py_INCREF(obj); | |
34679 | return Py_BuildValue((char *)""); | |
34680 | } | |
c370783e | 34681 | static PyObject * ControlWithItems_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
34682 | PyObject *obj; |
34683 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
34684 | SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj); | |
34685 | Py_INCREF(obj); | |
34686 | return Py_BuildValue((char *)""); | |
34687 | } | |
c370783e | 34688 | static PyObject *_wrap_new_SizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34689 | PyObject *resultobj; |
34690 | wxSizerItem *result; | |
34691 | char *kwnames[] = { | |
34692 | NULL | |
34693 | }; | |
34694 | ||
34695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail; | |
34696 | { | |
34697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34698 | result = (wxSizerItem *)new wxSizerItem(); | |
34699 | ||
34700 | wxPyEndAllowThreads(__tstate); | |
34701 | if (PyErr_Occurred()) SWIG_fail; | |
34702 | } | |
34703 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34704 | return resultobj; | |
34705 | fail: | |
34706 | return NULL; | |
34707 | } | |
34708 | ||
34709 | ||
c370783e | 34710 | static PyObject *_wrap_new_SizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 34711 | PyObject *resultobj; |
bfddbb17 | 34712 | wxWindow *arg1 = (wxWindow *) 0 ; |
d55e5bfc RD |
34713 | int arg2 ; |
34714 | int arg3 ; | |
34715 | int arg4 ; | |
bfddbb17 | 34716 | PyObject *arg5 = (PyObject *) NULL ; |
d55e5bfc RD |
34717 | wxSizerItem *result; |
34718 | PyObject * obj0 = 0 ; | |
34719 | PyObject * obj1 = 0 ; | |
34720 | PyObject * obj2 = 0 ; | |
34721 | PyObject * obj3 = 0 ; | |
34722 | PyObject * obj4 = 0 ; | |
d55e5bfc | 34723 | char *kwnames[] = { |
bfddbb17 | 34724 | (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d55e5bfc RD |
34725 | }; |
34726 | ||
bfddbb17 RD |
34727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
34728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
34729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34730 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 34731 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34732 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 34733 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34734 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 34735 | if (PyErr_Occurred()) SWIG_fail; |
bfddbb17 RD |
34736 | if (obj4) { |
34737 | arg5 = obj4; | |
34738 | } | |
d55e5bfc RD |
34739 | { |
34740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bfddbb17 | 34741 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d55e5bfc RD |
34742 | |
34743 | wxPyEndAllowThreads(__tstate); | |
34744 | if (PyErr_Occurred()) SWIG_fail; | |
34745 | } | |
34746 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34747 | return resultobj; | |
34748 | fail: | |
34749 | return NULL; | |
34750 | } | |
34751 | ||
34752 | ||
c370783e | 34753 | static PyObject *_wrap_new_SizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 34754 | PyObject *resultobj; |
bfddbb17 | 34755 | int arg1 ; |
d55e5bfc RD |
34756 | int arg2 ; |
34757 | int arg3 ; | |
34758 | int arg4 ; | |
bfddbb17 RD |
34759 | int arg5 ; |
34760 | PyObject *arg6 = (PyObject *) NULL ; | |
d55e5bfc RD |
34761 | wxSizerItem *result; |
34762 | PyObject * obj0 = 0 ; | |
34763 | PyObject * obj1 = 0 ; | |
34764 | PyObject * obj2 = 0 ; | |
34765 | PyObject * obj3 = 0 ; | |
34766 | PyObject * obj4 = 0 ; | |
bfddbb17 | 34767 | PyObject * obj5 = 0 ; |
d55e5bfc | 34768 | char *kwnames[] = { |
bfddbb17 | 34769 | (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL |
d55e5bfc RD |
34770 | }; |
34771 | ||
bfddbb17 | 34772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
c370783e | 34773 | arg1 = (int)SWIG_As_int(obj0); |
bfddbb17 | 34774 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34775 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 34776 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34777 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 34778 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34779 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 34780 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34781 | arg5 = (int)SWIG_As_int(obj4); |
bfddbb17 RD |
34782 | if (PyErr_Occurred()) SWIG_fail; |
34783 | if (obj5) { | |
34784 | arg6 = obj5; | |
34785 | } | |
d55e5bfc RD |
34786 | { |
34787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bfddbb17 | 34788 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
34789 | |
34790 | wxPyEndAllowThreads(__tstate); | |
34791 | if (PyErr_Occurred()) SWIG_fail; | |
34792 | } | |
34793 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34794 | return resultobj; | |
34795 | fail: | |
34796 | return NULL; | |
34797 | } | |
34798 | ||
34799 | ||
c370783e | 34800 | static PyObject *_wrap_new_SizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34801 | PyObject *resultobj; |
34802 | wxSizer *arg1 = (wxSizer *) 0 ; | |
34803 | int arg2 ; | |
34804 | int arg3 ; | |
34805 | int arg4 ; | |
bfddbb17 | 34806 | PyObject *arg5 = (PyObject *) NULL ; |
d55e5bfc RD |
34807 | wxSizerItem *result; |
34808 | PyObject * obj0 = 0 ; | |
34809 | PyObject * obj1 = 0 ; | |
34810 | PyObject * obj2 = 0 ; | |
34811 | PyObject * obj3 = 0 ; | |
34812 | PyObject * obj4 = 0 ; | |
34813 | char *kwnames[] = { | |
34814 | (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
34815 | }; | |
34816 | ||
bfddbb17 | 34817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
d55e5bfc RD |
34818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
34819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 34820 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 34821 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34822 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 34823 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 34824 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 34825 | if (PyErr_Occurred()) SWIG_fail; |
bfddbb17 RD |
34826 | if (obj4) { |
34827 | arg5 = obj4; | |
34828 | } | |
d55e5bfc RD |
34829 | { |
34830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bfddbb17 | 34831 | result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5); |
d55e5bfc RD |
34832 | |
34833 | wxPyEndAllowThreads(__tstate); | |
34834 | if (PyErr_Occurred()) SWIG_fail; | |
34835 | } | |
34836 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1); | |
34837 | return resultobj; | |
34838 | fail: | |
34839 | return NULL; | |
34840 | } | |
34841 | ||
34842 | ||
c370783e | 34843 | static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34844 | PyObject *resultobj; |
34845 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34846 | PyObject * obj0 = 0 ; | |
34847 | char *kwnames[] = { | |
34848 | (char *) "self", NULL | |
34849 | }; | |
34850 | ||
34851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail; | |
34852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34854 | { | |
34855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34856 | (arg1)->DeleteWindows(); | |
34857 | ||
34858 | wxPyEndAllowThreads(__tstate); | |
34859 | if (PyErr_Occurred()) SWIG_fail; | |
34860 | } | |
34861 | Py_INCREF(Py_None); resultobj = Py_None; | |
34862 | return resultobj; | |
34863 | fail: | |
34864 | return NULL; | |
34865 | } | |
34866 | ||
34867 | ||
c370783e | 34868 | static PyObject *_wrap_SizerItem_DetachSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34869 | PyObject *resultobj; |
34870 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34871 | PyObject * obj0 = 0 ; | |
34872 | char *kwnames[] = { | |
34873 | (char *) "self", NULL | |
34874 | }; | |
34875 | ||
34876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail; | |
34877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34879 | { | |
34880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34881 | (arg1)->DetachSizer(); | |
34882 | ||
34883 | wxPyEndAllowThreads(__tstate); | |
34884 | if (PyErr_Occurred()) SWIG_fail; | |
34885 | } | |
34886 | Py_INCREF(Py_None); resultobj = Py_None; | |
34887 | return resultobj; | |
34888 | fail: | |
34889 | return NULL; | |
34890 | } | |
34891 | ||
34892 | ||
c370783e | 34893 | static PyObject *_wrap_SizerItem_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34894 | PyObject *resultobj; |
34895 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34896 | wxSize result; | |
34897 | PyObject * obj0 = 0 ; | |
34898 | char *kwnames[] = { | |
34899 | (char *) "self", NULL | |
34900 | }; | |
34901 | ||
34902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail; | |
34903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34905 | { | |
34906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34907 | result = (arg1)->GetSize(); | |
34908 | ||
34909 | wxPyEndAllowThreads(__tstate); | |
34910 | if (PyErr_Occurred()) SWIG_fail; | |
34911 | } | |
34912 | { | |
34913 | wxSize * resultptr; | |
34914 | resultptr = new wxSize((wxSize &) result); | |
34915 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34916 | } | |
34917 | return resultobj; | |
34918 | fail: | |
34919 | return NULL; | |
34920 | } | |
34921 | ||
34922 | ||
c370783e | 34923 | static PyObject *_wrap_SizerItem_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34924 | PyObject *resultobj; |
34925 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34926 | wxSize result; | |
34927 | PyObject * obj0 = 0 ; | |
34928 | char *kwnames[] = { | |
34929 | (char *) "self", NULL | |
34930 | }; | |
34931 | ||
34932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail; | |
34933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34935 | { | |
34936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34937 | result = (arg1)->CalcMin(); | |
34938 | ||
34939 | wxPyEndAllowThreads(__tstate); | |
34940 | if (PyErr_Occurred()) SWIG_fail; | |
34941 | } | |
34942 | { | |
34943 | wxSize * resultptr; | |
34944 | resultptr = new wxSize((wxSize &) result); | |
34945 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
34946 | } | |
34947 | return resultobj; | |
34948 | fail: | |
34949 | return NULL; | |
34950 | } | |
34951 | ||
34952 | ||
c370783e | 34953 | static PyObject *_wrap_SizerItem_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34954 | PyObject *resultobj; |
34955 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34956 | wxPoint arg2 ; | |
34957 | wxSize arg3 ; | |
34958 | wxPoint *argp2 ; | |
34959 | wxSize *argp3 ; | |
34960 | PyObject * obj0 = 0 ; | |
34961 | PyObject * obj1 = 0 ; | |
34962 | PyObject * obj2 = 0 ; | |
34963 | char *kwnames[] = { | |
34964 | (char *) "self",(char *) "pos",(char *) "size", NULL | |
34965 | }; | |
34966 | ||
34967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
34968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
34969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
34970 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint, | |
34971 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34972 | arg2 = *argp2; | |
34973 | if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize, | |
34974 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
34975 | arg3 = *argp3; | |
34976 | { | |
34977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34978 | (arg1)->SetDimension(arg2,arg3); | |
34979 | ||
34980 | wxPyEndAllowThreads(__tstate); | |
34981 | if (PyErr_Occurred()) SWIG_fail; | |
34982 | } | |
34983 | Py_INCREF(Py_None); resultobj = Py_None; | |
34984 | return resultobj; | |
34985 | fail: | |
34986 | return NULL; | |
34987 | } | |
34988 | ||
34989 | ||
c370783e | 34990 | static PyObject *_wrap_SizerItem_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
34991 | PyObject *resultobj; |
34992 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
34993 | wxSize result; | |
34994 | PyObject * obj0 = 0 ; | |
34995 | char *kwnames[] = { | |
34996 | (char *) "self", NULL | |
34997 | }; | |
34998 | ||
34999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail; | |
35000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35002 | { | |
35003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35004 | result = (arg1)->GetMinSize(); | |
35005 | ||
35006 | wxPyEndAllowThreads(__tstate); | |
35007 | if (PyErr_Occurred()) SWIG_fail; | |
35008 | } | |
35009 | { | |
35010 | wxSize * resultptr; | |
35011 | resultptr = new wxSize((wxSize &) result); | |
35012 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35013 | } | |
35014 | return resultobj; | |
35015 | fail: | |
35016 | return NULL; | |
35017 | } | |
35018 | ||
35019 | ||
c370783e | 35020 | static PyObject *_wrap_SizerItem_GetMinSizeWithBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
a001823c RD |
35021 | PyObject *resultobj; |
35022 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35023 | wxSize result; | |
35024 | PyObject * obj0 = 0 ; | |
35025 | char *kwnames[] = { | |
35026 | (char *) "self", NULL | |
35027 | }; | |
35028 | ||
35029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSizeWithBorder",kwnames,&obj0)) goto fail; | |
35030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35032 | { | |
35033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35034 | result = ((wxSizerItem const *)arg1)->GetMinSizeWithBorder(); | |
35035 | ||
35036 | wxPyEndAllowThreads(__tstate); | |
35037 | if (PyErr_Occurred()) SWIG_fail; | |
35038 | } | |
35039 | { | |
35040 | wxSize * resultptr; | |
35041 | resultptr = new wxSize((wxSize &) result); | |
35042 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
35043 | } | |
35044 | return resultobj; | |
35045 | fail: | |
35046 | return NULL; | |
35047 | } | |
35048 | ||
35049 | ||
c370783e | 35050 | static PyObject *_wrap_SizerItem_SetInitSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35051 | PyObject *resultobj; |
35052 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35053 | int arg2 ; | |
35054 | int arg3 ; | |
35055 | PyObject * obj0 = 0 ; | |
35056 | PyObject * obj1 = 0 ; | |
35057 | PyObject * obj2 = 0 ; | |
35058 | char *kwnames[] = { | |
35059 | (char *) "self",(char *) "x",(char *) "y", NULL | |
35060 | }; | |
35061 | ||
35062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 35065 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 35066 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 35067 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
35068 | if (PyErr_Occurred()) SWIG_fail; |
35069 | { | |
35070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35071 | (arg1)->SetInitSize(arg2,arg3); | |
35072 | ||
35073 | wxPyEndAllowThreads(__tstate); | |
35074 | if (PyErr_Occurred()) SWIG_fail; | |
35075 | } | |
35076 | Py_INCREF(Py_None); resultobj = Py_None; | |
35077 | return resultobj; | |
35078 | fail: | |
35079 | return NULL; | |
35080 | } | |
35081 | ||
35082 | ||
c370783e | 35083 | static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35084 | PyObject *resultobj; |
35085 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35086 | int arg2 ; | |
35087 | int arg3 ; | |
35088 | PyObject * obj0 = 0 ; | |
35089 | PyObject * obj1 = 0 ; | |
35090 | PyObject * obj2 = 0 ; | |
35091 | char *kwnames[] = { | |
35092 | (char *) "self",(char *) "width",(char *) "height", NULL | |
35093 | }; | |
35094 | ||
35095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
35096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 35098 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 35099 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 35100 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
35101 | if (PyErr_Occurred()) SWIG_fail; |
35102 | { | |
35103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35104 | (arg1)->SetRatio(arg2,arg3); | |
35105 | ||
35106 | wxPyEndAllowThreads(__tstate); | |
35107 | if (PyErr_Occurred()) SWIG_fail; | |
35108 | } | |
35109 | Py_INCREF(Py_None); resultobj = Py_None; | |
35110 | return resultobj; | |
35111 | fail: | |
35112 | return NULL; | |
35113 | } | |
35114 | ||
35115 | ||
c370783e | 35116 | static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35117 | PyObject *resultobj; |
35118 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35119 | wxSize arg2 ; | |
35120 | wxSize *argp2 ; | |
35121 | PyObject * obj0 = 0 ; | |
35122 | PyObject * obj1 = 0 ; | |
35123 | char *kwnames[] = { | |
35124 | (char *) "self",(char *) "size", NULL | |
35125 | }; | |
35126 | ||
35127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail; | |
35128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35130 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize, | |
35131 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
35132 | arg2 = *argp2; | |
35133 | { | |
35134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35135 | (arg1)->SetRatio(arg2); | |
35136 | ||
35137 | wxPyEndAllowThreads(__tstate); | |
35138 | if (PyErr_Occurred()) SWIG_fail; | |
35139 | } | |
35140 | Py_INCREF(Py_None); resultobj = Py_None; | |
35141 | return resultobj; | |
35142 | fail: | |
35143 | return NULL; | |
35144 | } | |
35145 | ||
35146 | ||
c370783e | 35147 | static PyObject *_wrap_SizerItem_SetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35148 | PyObject *resultobj; |
35149 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35150 | float arg2 ; | |
35151 | PyObject * obj0 = 0 ; | |
35152 | PyObject * obj1 = 0 ; | |
35153 | char *kwnames[] = { | |
35154 | (char *) "self",(char *) "ratio", NULL | |
35155 | }; | |
35156 | ||
35157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail; | |
35158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 35160 | arg2 = (float)SWIG_As_float(obj1); |
d55e5bfc RD |
35161 | if (PyErr_Occurred()) SWIG_fail; |
35162 | { | |
35163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35164 | (arg1)->SetRatio(arg2); | |
35165 | ||
35166 | wxPyEndAllowThreads(__tstate); | |
35167 | if (PyErr_Occurred()) SWIG_fail; | |
35168 | } | |
35169 | Py_INCREF(Py_None); resultobj = Py_None; | |
35170 | return resultobj; | |
35171 | fail: | |
35172 | return NULL; | |
35173 | } | |
35174 | ||
35175 | ||
c370783e | 35176 | static PyObject *_wrap_SizerItem_GetRatio(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35177 | PyObject *resultobj; |
35178 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35179 | float result; | |
35180 | PyObject * obj0 = 0 ; | |
35181 | char *kwnames[] = { | |
35182 | (char *) "self", NULL | |
35183 | }; | |
35184 | ||
35185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail; | |
35186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35188 | { | |
35189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35190 | result = (float)(arg1)->GetRatio(); | |
35191 | ||
35192 | wxPyEndAllowThreads(__tstate); | |
35193 | if (PyErr_Occurred()) SWIG_fail; | |
35194 | } | |
c370783e | 35195 | resultobj = SWIG_From_float((float)result); |
d55e5bfc RD |
35196 | return resultobj; |
35197 | fail: | |
35198 | return NULL; | |
35199 | } | |
35200 | ||
35201 | ||
070c48b4 RD |
35202 | static PyObject *_wrap_SizerItem_GetRect(PyObject *, PyObject *args, PyObject *kwargs) { |
35203 | PyObject *resultobj; | |
35204 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35205 | wxRect result; | |
35206 | PyObject * obj0 = 0 ; | |
35207 | char *kwnames[] = { | |
35208 | (char *) "self", NULL | |
35209 | }; | |
35210 | ||
35211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRect",kwnames,&obj0)) goto fail; | |
35212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35214 | { | |
35215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35216 | result = (arg1)->GetRect(); | |
35217 | ||
35218 | wxPyEndAllowThreads(__tstate); | |
35219 | if (PyErr_Occurred()) SWIG_fail; | |
35220 | } | |
35221 | { | |
35222 | wxRect * resultptr; | |
35223 | resultptr = new wxRect((wxRect &) result); | |
35224 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
35225 | } | |
35226 | return resultobj; | |
35227 | fail: | |
35228 | return NULL; | |
35229 | } | |
35230 | ||
35231 | ||
c370783e | 35232 | static PyObject *_wrap_SizerItem_IsWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35233 | PyObject *resultobj; |
35234 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35235 | bool result; | |
35236 | PyObject * obj0 = 0 ; | |
35237 | char *kwnames[] = { | |
35238 | (char *) "self", NULL | |
35239 | }; | |
35240 | ||
35241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail; | |
35242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35244 | { | |
35245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35246 | result = (bool)(arg1)->IsWindow(); | |
35247 | ||
35248 | wxPyEndAllowThreads(__tstate); | |
35249 | if (PyErr_Occurred()) SWIG_fail; | |
35250 | } | |
35251 | { | |
35252 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35253 | } | |
35254 | return resultobj; | |
35255 | fail: | |
35256 | return NULL; | |
35257 | } | |
35258 | ||
35259 | ||
c370783e | 35260 | static PyObject *_wrap_SizerItem_IsSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35261 | PyObject *resultobj; |
35262 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35263 | bool result; | |
35264 | PyObject * obj0 = 0 ; | |
35265 | char *kwnames[] = { | |
35266 | (char *) "self", NULL | |
35267 | }; | |
35268 | ||
35269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail; | |
35270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35272 | { | |
35273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35274 | result = (bool)(arg1)->IsSizer(); | |
35275 | ||
35276 | wxPyEndAllowThreads(__tstate); | |
35277 | if (PyErr_Occurred()) SWIG_fail; | |
35278 | } | |
35279 | { | |
35280 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35281 | } | |
35282 | return resultobj; | |
35283 | fail: | |
35284 | return NULL; | |
35285 | } | |
35286 | ||
35287 | ||
c370783e | 35288 | static PyObject *_wrap_SizerItem_IsSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35289 | PyObject *resultobj; |
35290 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35291 | bool result; | |
35292 | PyObject * obj0 = 0 ; | |
35293 | char *kwnames[] = { | |
35294 | (char *) "self", NULL | |
35295 | }; | |
35296 | ||
35297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail; | |
35298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35300 | { | |
35301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35302 | result = (bool)(arg1)->IsSpacer(); | |
35303 | ||
35304 | wxPyEndAllowThreads(__tstate); | |
35305 | if (PyErr_Occurred()) SWIG_fail; | |
35306 | } | |
35307 | { | |
35308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35309 | } | |
35310 | return resultobj; | |
35311 | fail: | |
35312 | return NULL; | |
35313 | } | |
35314 | ||
35315 | ||
c370783e | 35316 | static PyObject *_wrap_SizerItem_SetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35317 | PyObject *resultobj; |
35318 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35319 | int arg2 ; | |
35320 | PyObject * obj0 = 0 ; | |
35321 | PyObject * obj1 = 0 ; | |
35322 | char *kwnames[] = { | |
35323 | (char *) "self",(char *) "proportion", NULL | |
35324 | }; | |
35325 | ||
35326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail; | |
35327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 35329 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35330 | if (PyErr_Occurred()) SWIG_fail; |
35331 | { | |
35332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35333 | (arg1)->SetProportion(arg2); | |
35334 | ||
35335 | wxPyEndAllowThreads(__tstate); | |
35336 | if (PyErr_Occurred()) SWIG_fail; | |
35337 | } | |
35338 | Py_INCREF(Py_None); resultobj = Py_None; | |
35339 | return resultobj; | |
35340 | fail: | |
35341 | return NULL; | |
35342 | } | |
35343 | ||
35344 | ||
c370783e | 35345 | static PyObject *_wrap_SizerItem_GetProportion(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35346 | PyObject *resultobj; |
35347 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35348 | int result; | |
35349 | PyObject * obj0 = 0 ; | |
35350 | char *kwnames[] = { | |
35351 | (char *) "self", NULL | |
35352 | }; | |
35353 | ||
35354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail; | |
35355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35357 | { | |
35358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35359 | result = (int)(arg1)->GetProportion(); | |
35360 | ||
35361 | wxPyEndAllowThreads(__tstate); | |
35362 | if (PyErr_Occurred()) SWIG_fail; | |
35363 | } | |
c370783e | 35364 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35365 | return resultobj; |
35366 | fail: | |
35367 | return NULL; | |
35368 | } | |
35369 | ||
35370 | ||
c370783e | 35371 | static PyObject *_wrap_SizerItem_SetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35372 | PyObject *resultobj; |
35373 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35374 | int arg2 ; | |
35375 | PyObject * obj0 = 0 ; | |
35376 | PyObject * obj1 = 0 ; | |
35377 | char *kwnames[] = { | |
35378 | (char *) "self",(char *) "flag", NULL | |
35379 | }; | |
35380 | ||
35381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail; | |
35382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 35384 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35385 | if (PyErr_Occurred()) SWIG_fail; |
35386 | { | |
35387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35388 | (arg1)->SetFlag(arg2); | |
35389 | ||
35390 | wxPyEndAllowThreads(__tstate); | |
35391 | if (PyErr_Occurred()) SWIG_fail; | |
35392 | } | |
35393 | Py_INCREF(Py_None); resultobj = Py_None; | |
35394 | return resultobj; | |
35395 | fail: | |
35396 | return NULL; | |
35397 | } | |
35398 | ||
35399 | ||
c370783e | 35400 | static PyObject *_wrap_SizerItem_GetFlag(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35401 | PyObject *resultobj; |
35402 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35403 | int result; | |
35404 | PyObject * obj0 = 0 ; | |
35405 | char *kwnames[] = { | |
35406 | (char *) "self", NULL | |
35407 | }; | |
35408 | ||
35409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail; | |
35410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35412 | { | |
35413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35414 | result = (int)(arg1)->GetFlag(); | |
35415 | ||
35416 | wxPyEndAllowThreads(__tstate); | |
35417 | if (PyErr_Occurred()) SWIG_fail; | |
35418 | } | |
c370783e | 35419 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35420 | return resultobj; |
35421 | fail: | |
35422 | return NULL; | |
35423 | } | |
35424 | ||
35425 | ||
c370783e | 35426 | static PyObject *_wrap_SizerItem_SetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35427 | PyObject *resultobj; |
35428 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35429 | int arg2 ; | |
35430 | PyObject * obj0 = 0 ; | |
35431 | PyObject * obj1 = 0 ; | |
35432 | char *kwnames[] = { | |
35433 | (char *) "self",(char *) "border", NULL | |
35434 | }; | |
35435 | ||
35436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail; | |
35437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 35439 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35440 | if (PyErr_Occurred()) SWIG_fail; |
35441 | { | |
35442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35443 | (arg1)->SetBorder(arg2); | |
35444 | ||
35445 | wxPyEndAllowThreads(__tstate); | |
35446 | if (PyErr_Occurred()) SWIG_fail; | |
35447 | } | |
35448 | Py_INCREF(Py_None); resultobj = Py_None; | |
35449 | return resultobj; | |
35450 | fail: | |
35451 | return NULL; | |
35452 | } | |
35453 | ||
35454 | ||
c370783e | 35455 | static PyObject *_wrap_SizerItem_GetBorder(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35456 | PyObject *resultobj; |
35457 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35458 | int result; | |
35459 | PyObject * obj0 = 0 ; | |
35460 | char *kwnames[] = { | |
35461 | (char *) "self", NULL | |
35462 | }; | |
35463 | ||
35464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail; | |
35465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35467 | { | |
35468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35469 | result = (int)(arg1)->GetBorder(); | |
35470 | ||
35471 | wxPyEndAllowThreads(__tstate); | |
35472 | if (PyErr_Occurred()) SWIG_fail; | |
35473 | } | |
c370783e | 35474 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
35475 | return resultobj; |
35476 | fail: | |
35477 | return NULL; | |
35478 | } | |
35479 | ||
35480 | ||
c370783e | 35481 | static PyObject *_wrap_SizerItem_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35482 | PyObject *resultobj; |
35483 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35484 | wxWindow *result; | |
35485 | PyObject * obj0 = 0 ; | |
35486 | char *kwnames[] = { | |
35487 | (char *) "self", NULL | |
35488 | }; | |
35489 | ||
35490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail; | |
35491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35493 | { | |
35494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35495 | result = (wxWindow *)(arg1)->GetWindow(); | |
35496 | ||
35497 | wxPyEndAllowThreads(__tstate); | |
35498 | if (PyErr_Occurred()) SWIG_fail; | |
35499 | } | |
35500 | { | |
412d302d | 35501 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
35502 | } |
35503 | return resultobj; | |
35504 | fail: | |
35505 | return NULL; | |
35506 | } | |
35507 | ||
35508 | ||
c370783e | 35509 | static PyObject *_wrap_SizerItem_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35510 | PyObject *resultobj; |
35511 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35512 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35513 | PyObject * obj0 = 0 ; | |
35514 | PyObject * obj1 = 0 ; | |
35515 | char *kwnames[] = { | |
35516 | (char *) "self",(char *) "window", NULL | |
35517 | }; | |
35518 | ||
35519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail; | |
35520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35522 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
35523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35524 | { | |
35525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35526 | (arg1)->SetWindow(arg2); | |
35527 | ||
35528 | wxPyEndAllowThreads(__tstate); | |
35529 | if (PyErr_Occurred()) SWIG_fail; | |
35530 | } | |
35531 | Py_INCREF(Py_None); resultobj = Py_None; | |
35532 | return resultobj; | |
35533 | fail: | |
35534 | return NULL; | |
35535 | } | |
35536 | ||
35537 | ||
c370783e | 35538 | static PyObject *_wrap_SizerItem_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35539 | PyObject *resultobj; |
35540 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35541 | wxSizer *result; | |
35542 | PyObject * obj0 = 0 ; | |
35543 | char *kwnames[] = { | |
35544 | (char *) "self", NULL | |
35545 | }; | |
35546 | ||
35547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail; | |
35548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35550 | { | |
35551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35552 | result = (wxSizer *)(arg1)->GetSizer(); | |
35553 | ||
35554 | wxPyEndAllowThreads(__tstate); | |
35555 | if (PyErr_Occurred()) SWIG_fail; | |
35556 | } | |
35557 | { | |
412d302d | 35558 | resultobj = wxPyMake_wxSizer(result, 0); |
d55e5bfc RD |
35559 | } |
35560 | return resultobj; | |
35561 | fail: | |
35562 | return NULL; | |
35563 | } | |
35564 | ||
35565 | ||
c370783e | 35566 | static PyObject *_wrap_SizerItem_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35567 | PyObject *resultobj; |
35568 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35569 | wxSizer *arg2 = (wxSizer *) 0 ; | |
35570 | PyObject * obj0 = 0 ; | |
35571 | PyObject * obj1 = 0 ; | |
35572 | char *kwnames[] = { | |
35573 | (char *) "self",(char *) "sizer", NULL | |
35574 | }; | |
35575 | ||
35576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail; | |
35577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35579 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
35580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35581 | { | |
35582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35583 | (arg1)->SetSizer(arg2); | |
35584 | ||
35585 | wxPyEndAllowThreads(__tstate); | |
35586 | if (PyErr_Occurred()) SWIG_fail; | |
35587 | } | |
35588 | Py_INCREF(Py_None); resultobj = Py_None; | |
35589 | return resultobj; | |
35590 | fail: | |
35591 | return NULL; | |
35592 | } | |
35593 | ||
35594 | ||
c370783e | 35595 | static PyObject *_wrap_SizerItem_GetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35596 | PyObject *resultobj; |
35597 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35598 | wxSize *result; | |
35599 | PyObject * obj0 = 0 ; | |
35600 | char *kwnames[] = { | |
35601 | (char *) "self", NULL | |
35602 | }; | |
35603 | ||
35604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail; | |
35605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35607 | { | |
35608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35609 | { | |
35610 | wxSize const &_result_ref = (arg1)->GetSpacer(); | |
35611 | result = (wxSize *) &_result_ref; | |
35612 | } | |
35613 | ||
35614 | wxPyEndAllowThreads(__tstate); | |
35615 | if (PyErr_Occurred()) SWIG_fail; | |
35616 | } | |
35617 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0); | |
35618 | return resultobj; | |
35619 | fail: | |
35620 | return NULL; | |
35621 | } | |
35622 | ||
35623 | ||
c370783e | 35624 | static PyObject *_wrap_SizerItem_SetSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35625 | PyObject *resultobj; |
35626 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35627 | wxSize *arg2 = 0 ; | |
35628 | wxSize temp2 ; | |
35629 | PyObject * obj0 = 0 ; | |
35630 | PyObject * obj1 = 0 ; | |
35631 | char *kwnames[] = { | |
35632 | (char *) "self",(char *) "size", NULL | |
35633 | }; | |
35634 | ||
35635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail; | |
35636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35638 | { | |
35639 | arg2 = &temp2; | |
35640 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
35641 | } | |
35642 | { | |
35643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35644 | (arg1)->SetSpacer((wxSize const &)*arg2); | |
35645 | ||
35646 | wxPyEndAllowThreads(__tstate); | |
35647 | if (PyErr_Occurred()) SWIG_fail; | |
35648 | } | |
35649 | Py_INCREF(Py_None); resultobj = Py_None; | |
35650 | return resultobj; | |
35651 | fail: | |
35652 | return NULL; | |
35653 | } | |
35654 | ||
35655 | ||
c370783e | 35656 | static PyObject *_wrap_SizerItem_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35657 | PyObject *resultobj; |
35658 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35659 | bool arg2 ; | |
35660 | PyObject * obj0 = 0 ; | |
35661 | PyObject * obj1 = 0 ; | |
35662 | char *kwnames[] = { | |
35663 | (char *) "self",(char *) "show", NULL | |
35664 | }; | |
35665 | ||
35666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail; | |
35667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 35669 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
35670 | if (PyErr_Occurred()) SWIG_fail; |
35671 | { | |
35672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35673 | (arg1)->Show(arg2); | |
35674 | ||
35675 | wxPyEndAllowThreads(__tstate); | |
35676 | if (PyErr_Occurred()) SWIG_fail; | |
35677 | } | |
35678 | Py_INCREF(Py_None); resultobj = Py_None; | |
35679 | return resultobj; | |
35680 | fail: | |
35681 | return NULL; | |
35682 | } | |
35683 | ||
35684 | ||
c370783e | 35685 | static PyObject *_wrap_SizerItem_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35686 | PyObject *resultobj; |
35687 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35688 | bool result; | |
35689 | PyObject * obj0 = 0 ; | |
35690 | char *kwnames[] = { | |
35691 | (char *) "self", NULL | |
35692 | }; | |
35693 | ||
35694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail; | |
35695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35697 | { | |
35698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35699 | result = (bool)(arg1)->IsShown(); | |
35700 | ||
35701 | wxPyEndAllowThreads(__tstate); | |
35702 | if (PyErr_Occurred()) SWIG_fail; | |
35703 | } | |
35704 | { | |
35705 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35706 | } | |
35707 | return resultobj; | |
35708 | fail: | |
35709 | return NULL; | |
35710 | } | |
35711 | ||
35712 | ||
c370783e | 35713 | static PyObject *_wrap_SizerItem_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35714 | PyObject *resultobj; |
35715 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35716 | wxPoint result; | |
35717 | PyObject * obj0 = 0 ; | |
35718 | char *kwnames[] = { | |
35719 | (char *) "self", NULL | |
35720 | }; | |
35721 | ||
35722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail; | |
35723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35725 | { | |
35726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35727 | result = (arg1)->GetPosition(); | |
35728 | ||
35729 | wxPyEndAllowThreads(__tstate); | |
35730 | if (PyErr_Occurred()) SWIG_fail; | |
35731 | } | |
35732 | { | |
35733 | wxPoint * resultptr; | |
35734 | resultptr = new wxPoint((wxPoint &) result); | |
35735 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
35736 | } | |
35737 | return resultobj; | |
35738 | fail: | |
35739 | return NULL; | |
35740 | } | |
35741 | ||
35742 | ||
c370783e | 35743 | static PyObject *_wrap_SizerItem_GetUserData(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35744 | PyObject *resultobj; |
35745 | wxSizerItem *arg1 = (wxSizerItem *) 0 ; | |
35746 | PyObject *result; | |
35747 | PyObject * obj0 = 0 ; | |
35748 | char *kwnames[] = { | |
35749 | (char *) "self", NULL | |
35750 | }; | |
35751 | ||
35752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail; | |
35753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem, | |
35754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35755 | { | |
35756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35757 | result = (PyObject *)wxSizerItem_GetUserData(arg1); | |
35758 | ||
35759 | wxPyEndAllowThreads(__tstate); | |
35760 | if (PyErr_Occurred()) SWIG_fail; | |
35761 | } | |
35762 | resultobj = result; | |
35763 | return resultobj; | |
35764 | fail: | |
35765 | return NULL; | |
35766 | } | |
35767 | ||
35768 | ||
c370783e | 35769 | static PyObject * SizerItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
35770 | PyObject *obj; |
35771 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
35772 | SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj); | |
35773 | Py_INCREF(obj); | |
35774 | return Py_BuildValue((char *)""); | |
35775 | } | |
c370783e | 35776 | static PyObject *_wrap_Sizer__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35777 | PyObject *resultobj; |
35778 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35779 | PyObject *arg2 = (PyObject *) 0 ; | |
35780 | PyObject * obj0 = 0 ; | |
35781 | PyObject * obj1 = 0 ; | |
35782 | char *kwnames[] = { | |
35783 | (char *) "self",(char *) "_self", NULL | |
35784 | }; | |
35785 | ||
35786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail; | |
35787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35789 | arg2 = obj1; | |
35790 | { | |
35791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35792 | wxSizer__setOORInfo(arg1,arg2); | |
35793 | ||
35794 | wxPyEndAllowThreads(__tstate); | |
35795 | if (PyErr_Occurred()) SWIG_fail; | |
35796 | } | |
35797 | Py_INCREF(Py_None); resultobj = Py_None; | |
35798 | return resultobj; | |
35799 | fail: | |
35800 | return NULL; | |
35801 | } | |
35802 | ||
35803 | ||
c370783e | 35804 | static PyObject *_wrap_Sizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35805 | PyObject *resultobj; |
35806 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35807 | PyObject *arg2 = (PyObject *) 0 ; | |
35808 | int arg3 = (int) 0 ; | |
35809 | int arg4 = (int) 0 ; | |
35810 | int arg5 = (int) 0 ; | |
35811 | PyObject *arg6 = (PyObject *) NULL ; | |
070c48b4 | 35812 | wxSizerItem *result; |
d55e5bfc RD |
35813 | PyObject * obj0 = 0 ; |
35814 | PyObject * obj1 = 0 ; | |
35815 | PyObject * obj2 = 0 ; | |
35816 | PyObject * obj3 = 0 ; | |
35817 | PyObject * obj4 = 0 ; | |
35818 | PyObject * obj5 = 0 ; | |
35819 | char *kwnames[] = { | |
35820 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35821 | }; | |
35822 | ||
35823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
35824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35826 | arg2 = obj1; | |
35827 | if (obj2) { | |
c370783e | 35828 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
35829 | if (PyErr_Occurred()) SWIG_fail; |
35830 | } | |
35831 | if (obj3) { | |
c370783e | 35832 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
35833 | if (PyErr_Occurred()) SWIG_fail; |
35834 | } | |
35835 | if (obj4) { | |
c370783e | 35836 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
35837 | if (PyErr_Occurred()) SWIG_fail; |
35838 | } | |
35839 | if (obj5) { | |
35840 | arg6 = obj5; | |
35841 | } | |
35842 | { | |
35843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
070c48b4 | 35844 | result = (wxSizerItem *)wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
35845 | |
35846 | wxPyEndAllowThreads(__tstate); | |
35847 | if (PyErr_Occurred()) SWIG_fail; | |
35848 | } | |
070c48b4 | 35849 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
35850 | return resultobj; |
35851 | fail: | |
35852 | return NULL; | |
35853 | } | |
35854 | ||
35855 | ||
c370783e | 35856 | static PyObject *_wrap_Sizer_Insert(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35857 | PyObject *resultobj; |
35858 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35859 | int arg2 ; | |
35860 | PyObject *arg3 = (PyObject *) 0 ; | |
35861 | int arg4 = (int) 0 ; | |
35862 | int arg5 = (int) 0 ; | |
35863 | int arg6 = (int) 0 ; | |
35864 | PyObject *arg7 = (PyObject *) NULL ; | |
070c48b4 | 35865 | wxSizerItem *result; |
d55e5bfc RD |
35866 | PyObject * obj0 = 0 ; |
35867 | PyObject * obj1 = 0 ; | |
35868 | PyObject * obj2 = 0 ; | |
35869 | PyObject * obj3 = 0 ; | |
35870 | PyObject * obj4 = 0 ; | |
35871 | PyObject * obj5 = 0 ; | |
35872 | PyObject * obj6 = 0 ; | |
35873 | char *kwnames[] = { | |
35874 | (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35875 | }; | |
35876 | ||
35877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
35878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 35880 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
35881 | if (PyErr_Occurred()) SWIG_fail; |
35882 | arg3 = obj2; | |
35883 | if (obj3) { | |
c370783e | 35884 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
35885 | if (PyErr_Occurred()) SWIG_fail; |
35886 | } | |
35887 | if (obj4) { | |
c370783e | 35888 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
35889 | if (PyErr_Occurred()) SWIG_fail; |
35890 | } | |
35891 | if (obj5) { | |
c370783e | 35892 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
35893 | if (PyErr_Occurred()) SWIG_fail; |
35894 | } | |
35895 | if (obj6) { | |
35896 | arg7 = obj6; | |
35897 | } | |
35898 | { | |
35899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
070c48b4 | 35900 | result = (wxSizerItem *)wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7); |
d55e5bfc RD |
35901 | |
35902 | wxPyEndAllowThreads(__tstate); | |
35903 | if (PyErr_Occurred()) SWIG_fail; | |
35904 | } | |
070c48b4 | 35905 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
35906 | return resultobj; |
35907 | fail: | |
35908 | return NULL; | |
35909 | } | |
35910 | ||
35911 | ||
c370783e | 35912 | static PyObject *_wrap_Sizer_Prepend(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35913 | PyObject *resultobj; |
35914 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35915 | PyObject *arg2 = (PyObject *) 0 ; | |
35916 | int arg3 = (int) 0 ; | |
35917 | int arg4 = (int) 0 ; | |
35918 | int arg5 = (int) 0 ; | |
35919 | PyObject *arg6 = (PyObject *) NULL ; | |
070c48b4 | 35920 | wxSizerItem *result; |
d55e5bfc RD |
35921 | PyObject * obj0 = 0 ; |
35922 | PyObject * obj1 = 0 ; | |
35923 | PyObject * obj2 = 0 ; | |
35924 | PyObject * obj3 = 0 ; | |
35925 | PyObject * obj4 = 0 ; | |
35926 | PyObject * obj5 = 0 ; | |
35927 | char *kwnames[] = { | |
35928 | (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
35929 | }; | |
35930 | ||
35931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
35932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35934 | arg2 = obj1; | |
35935 | if (obj2) { | |
c370783e | 35936 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
35937 | if (PyErr_Occurred()) SWIG_fail; |
35938 | } | |
35939 | if (obj3) { | |
c370783e | 35940 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
35941 | if (PyErr_Occurred()) SWIG_fail; |
35942 | } | |
35943 | if (obj4) { | |
c370783e | 35944 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
35945 | if (PyErr_Occurred()) SWIG_fail; |
35946 | } | |
35947 | if (obj5) { | |
35948 | arg6 = obj5; | |
35949 | } | |
35950 | { | |
35951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
070c48b4 | 35952 | result = (wxSizerItem *)wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6); |
d55e5bfc RD |
35953 | |
35954 | wxPyEndAllowThreads(__tstate); | |
35955 | if (PyErr_Occurred()) SWIG_fail; | |
35956 | } | |
070c48b4 | 35957 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
35958 | return resultobj; |
35959 | fail: | |
35960 | return NULL; | |
35961 | } | |
35962 | ||
35963 | ||
c370783e | 35964 | static PyObject *_wrap_Sizer_Remove(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
35965 | PyObject *resultobj; |
35966 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35967 | PyObject *arg2 = (PyObject *) 0 ; | |
35968 | bool result; | |
35969 | PyObject * obj0 = 0 ; | |
35970 | PyObject * obj1 = 0 ; | |
35971 | char *kwnames[] = { | |
35972 | (char *) "self",(char *) "item", NULL | |
35973 | }; | |
35974 | ||
35975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail; | |
35976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
35977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
35978 | arg2 = obj1; | |
35979 | { | |
35980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35981 | result = (bool)wxSizer_Remove(arg1,arg2); | |
35982 | ||
35983 | wxPyEndAllowThreads(__tstate); | |
35984 | if (PyErr_Occurred()) SWIG_fail; | |
35985 | } | |
35986 | { | |
35987 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35988 | } | |
35989 | return resultobj; | |
35990 | fail: | |
35991 | return NULL; | |
35992 | } | |
35993 | ||
35994 | ||
c370783e | 35995 | static PyObject *_wrap_Sizer_Detach(PyObject *, PyObject *args, PyObject *kwargs) { |
1a6bba1e RD |
35996 | PyObject *resultobj; |
35997 | wxSizer *arg1 = (wxSizer *) 0 ; | |
35998 | PyObject *arg2 = (PyObject *) 0 ; | |
35999 | bool result; | |
36000 | PyObject * obj0 = 0 ; | |
36001 | PyObject * obj1 = 0 ; | |
36002 | char *kwnames[] = { | |
36003 | (char *) "self",(char *) "item", NULL | |
36004 | }; | |
36005 | ||
36006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail; | |
36007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36009 | arg2 = obj1; | |
36010 | { | |
36011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36012 | result = (bool)wxSizer_Detach(arg1,arg2); | |
36013 | ||
36014 | wxPyEndAllowThreads(__tstate); | |
36015 | if (PyErr_Occurred()) SWIG_fail; | |
36016 | } | |
36017 | { | |
36018 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36019 | } | |
36020 | return resultobj; | |
36021 | fail: | |
36022 | return NULL; | |
36023 | } | |
36024 | ||
36025 | ||
070c48b4 RD |
36026 | static PyObject *_wrap_Sizer_GetItem(PyObject *, PyObject *args, PyObject *kwargs) { |
36027 | PyObject *resultobj; | |
36028 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36029 | PyObject *arg2 = (PyObject *) 0 ; | |
36030 | wxSizerItem *result; | |
36031 | PyObject * obj0 = 0 ; | |
36032 | PyObject * obj1 = 0 ; | |
36033 | char *kwnames[] = { | |
36034 | (char *) "self",(char *) "item", NULL | |
36035 | }; | |
36036 | ||
36037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_GetItem",kwnames,&obj0,&obj1)) goto fail; | |
36038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36040 | arg2 = obj1; | |
36041 | { | |
36042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36043 | result = (wxSizerItem *)wxSizer_GetItem(arg1,arg2); | |
36044 | ||
36045 | wxPyEndAllowThreads(__tstate); | |
36046 | if (PyErr_Occurred()) SWIG_fail; | |
36047 | } | |
36048 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); | |
36049 | return resultobj; | |
36050 | fail: | |
36051 | return NULL; | |
36052 | } | |
36053 | ||
36054 | ||
c370783e | 36055 | static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36056 | PyObject *resultobj; |
36057 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36058 | PyObject *arg2 = (PyObject *) 0 ; | |
36059 | wxSize *arg3 = 0 ; | |
36060 | wxSize temp3 ; | |
36061 | PyObject * obj0 = 0 ; | |
36062 | PyObject * obj1 = 0 ; | |
36063 | PyObject * obj2 = 0 ; | |
36064 | char *kwnames[] = { | |
36065 | (char *) "self",(char *) "item",(char *) "size", NULL | |
36066 | }; | |
36067 | ||
36068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36071 | arg2 = obj1; | |
36072 | { | |
36073 | arg3 = &temp3; | |
36074 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
36075 | } | |
36076 | { | |
36077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36078 | wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3); | |
36079 | ||
36080 | wxPyEndAllowThreads(__tstate); | |
36081 | if (PyErr_Occurred()) SWIG_fail; | |
36082 | } | |
36083 | Py_INCREF(Py_None); resultobj = Py_None; | |
36084 | return resultobj; | |
36085 | fail: | |
36086 | return NULL; | |
36087 | } | |
36088 | ||
36089 | ||
c370783e | 36090 | static PyObject *_wrap_Sizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36091 | PyObject *resultobj; |
36092 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36093 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
070c48b4 | 36094 | wxSizerItem *result; |
d55e5bfc RD |
36095 | PyObject * obj0 = 0 ; |
36096 | PyObject * obj1 = 0 ; | |
36097 | char *kwnames[] = { | |
36098 | (char *) "self",(char *) "item", NULL | |
36099 | }; | |
36100 | ||
36101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
36102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36104 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
36105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36106 | { | |
36107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
070c48b4 | 36108 | result = (wxSizerItem *)(arg1)->Add(arg2); |
d55e5bfc RD |
36109 | |
36110 | wxPyEndAllowThreads(__tstate); | |
36111 | if (PyErr_Occurred()) SWIG_fail; | |
36112 | } | |
070c48b4 | 36113 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
36114 | return resultobj; |
36115 | fail: | |
36116 | return NULL; | |
36117 | } | |
36118 | ||
36119 | ||
c370783e | 36120 | static PyObject *_wrap_Sizer_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36121 | PyObject *resultobj; |
36122 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36123 | size_t arg2 ; | |
36124 | wxSizerItem *arg3 = (wxSizerItem *) 0 ; | |
070c48b4 | 36125 | wxSizerItem *result; |
d55e5bfc RD |
36126 | PyObject * obj0 = 0 ; |
36127 | PyObject * obj1 = 0 ; | |
36128 | PyObject * obj2 = 0 ; | |
36129 | char *kwnames[] = { | |
36130 | (char *) "self",(char *) "index",(char *) "item", NULL | |
36131 | }; | |
36132 | ||
36133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 36136 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
36137 | if (PyErr_Occurred()) SWIG_fail; |
36138 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem, | |
36139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36140 | { | |
36141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
070c48b4 | 36142 | result = (wxSizerItem *)(arg1)->Insert(arg2,arg3); |
d55e5bfc RD |
36143 | |
36144 | wxPyEndAllowThreads(__tstate); | |
36145 | if (PyErr_Occurred()) SWIG_fail; | |
36146 | } | |
070c48b4 | 36147 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
36148 | return resultobj; |
36149 | fail: | |
36150 | return NULL; | |
36151 | } | |
36152 | ||
36153 | ||
c370783e | 36154 | static PyObject *_wrap_Sizer_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36155 | PyObject *resultobj; |
36156 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36157 | wxSizerItem *arg2 = (wxSizerItem *) 0 ; | |
070c48b4 | 36158 | wxSizerItem *result; |
d55e5bfc RD |
36159 | PyObject * obj0 = 0 ; |
36160 | PyObject * obj1 = 0 ; | |
36161 | char *kwnames[] = { | |
36162 | (char *) "self",(char *) "item", NULL | |
36163 | }; | |
36164 | ||
36165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail; | |
36166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36168 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem, | |
36169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36170 | { | |
36171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
070c48b4 | 36172 | result = (wxSizerItem *)(arg1)->Prepend(arg2); |
d55e5bfc RD |
36173 | |
36174 | wxPyEndAllowThreads(__tstate); | |
36175 | if (PyErr_Occurred()) SWIG_fail; | |
36176 | } | |
070c48b4 | 36177 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 0); |
d55e5bfc RD |
36178 | return resultobj; |
36179 | fail: | |
36180 | return NULL; | |
36181 | } | |
36182 | ||
36183 | ||
c370783e | 36184 | static PyObject *_wrap_Sizer_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36185 | PyObject *resultobj; |
36186 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36187 | int arg2 ; | |
36188 | int arg3 ; | |
36189 | int arg4 ; | |
36190 | int arg5 ; | |
36191 | PyObject * obj0 = 0 ; | |
36192 | PyObject * obj1 = 0 ; | |
36193 | PyObject * obj2 = 0 ; | |
36194 | PyObject * obj3 = 0 ; | |
36195 | PyObject * obj4 = 0 ; | |
36196 | char *kwnames[] = { | |
36197 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
36198 | }; | |
36199 | ||
36200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
36201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 36203 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc | 36204 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 36205 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 36206 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 36207 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 36208 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 36209 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
36210 | if (PyErr_Occurred()) SWIG_fail; |
36211 | { | |
36212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36213 | (arg1)->SetDimension(arg2,arg3,arg4,arg5); | |
36214 | ||
36215 | wxPyEndAllowThreads(__tstate); | |
36216 | if (PyErr_Occurred()) SWIG_fail; | |
36217 | } | |
36218 | Py_INCREF(Py_None); resultobj = Py_None; | |
36219 | return resultobj; | |
36220 | fail: | |
36221 | return NULL; | |
36222 | } | |
36223 | ||
36224 | ||
c370783e | 36225 | static PyObject *_wrap_Sizer_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36226 | PyObject *resultobj; |
36227 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36228 | wxSize *arg2 = 0 ; | |
36229 | wxSize temp2 ; | |
36230 | PyObject * obj0 = 0 ; | |
36231 | PyObject * obj1 = 0 ; | |
36232 | char *kwnames[] = { | |
36233 | (char *) "self",(char *) "size", NULL | |
36234 | }; | |
36235 | ||
36236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail; | |
36237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36239 | { | |
36240 | arg2 = &temp2; | |
36241 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
36242 | } | |
36243 | { | |
36244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36245 | (arg1)->SetMinSize((wxSize const &)*arg2); | |
36246 | ||
36247 | wxPyEndAllowThreads(__tstate); | |
36248 | if (PyErr_Occurred()) SWIG_fail; | |
36249 | } | |
36250 | Py_INCREF(Py_None); resultobj = Py_None; | |
36251 | return resultobj; | |
36252 | fail: | |
36253 | return NULL; | |
36254 | } | |
36255 | ||
36256 | ||
c370783e | 36257 | static PyObject *_wrap_Sizer_GetSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36258 | PyObject *resultobj; |
36259 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36260 | wxSize result; | |
36261 | PyObject * obj0 = 0 ; | |
36262 | char *kwnames[] = { | |
36263 | (char *) "self", NULL | |
36264 | }; | |
36265 | ||
36266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail; | |
36267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36269 | { | |
36270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36271 | result = (arg1)->GetSize(); | |
36272 | ||
36273 | wxPyEndAllowThreads(__tstate); | |
36274 | if (PyErr_Occurred()) SWIG_fail; | |
36275 | } | |
36276 | { | |
36277 | wxSize * resultptr; | |
36278 | resultptr = new wxSize((wxSize &) result); | |
36279 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36280 | } | |
36281 | return resultobj; | |
36282 | fail: | |
36283 | return NULL; | |
36284 | } | |
36285 | ||
36286 | ||
c370783e | 36287 | static PyObject *_wrap_Sizer_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36288 | PyObject *resultobj; |
36289 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36290 | wxPoint result; | |
36291 | PyObject * obj0 = 0 ; | |
36292 | char *kwnames[] = { | |
36293 | (char *) "self", NULL | |
36294 | }; | |
36295 | ||
36296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail; | |
36297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36299 | { | |
36300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36301 | result = (arg1)->GetPosition(); | |
36302 | ||
36303 | wxPyEndAllowThreads(__tstate); | |
36304 | if (PyErr_Occurred()) SWIG_fail; | |
36305 | } | |
36306 | { | |
36307 | wxPoint * resultptr; | |
36308 | resultptr = new wxPoint((wxPoint &) result); | |
36309 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
36310 | } | |
36311 | return resultobj; | |
36312 | fail: | |
36313 | return NULL; | |
36314 | } | |
36315 | ||
36316 | ||
c370783e | 36317 | static PyObject *_wrap_Sizer_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36318 | PyObject *resultobj; |
36319 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36320 | wxSize result; | |
36321 | PyObject * obj0 = 0 ; | |
36322 | char *kwnames[] = { | |
36323 | (char *) "self", NULL | |
36324 | }; | |
36325 | ||
36326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail; | |
36327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36329 | { | |
36330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36331 | result = (arg1)->GetMinSize(); | |
36332 | ||
36333 | wxPyEndAllowThreads(__tstate); | |
36334 | if (PyErr_Occurred()) SWIG_fail; | |
36335 | } | |
36336 | { | |
36337 | wxSize * resultptr; | |
36338 | resultptr = new wxSize((wxSize &) result); | |
36339 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36340 | } | |
36341 | return resultobj; | |
36342 | fail: | |
36343 | return NULL; | |
36344 | } | |
36345 | ||
36346 | ||
c370783e | 36347 | static PyObject *_wrap_Sizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36348 | PyObject *resultobj; |
36349 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36350 | PyObject * obj0 = 0 ; | |
36351 | char *kwnames[] = { | |
36352 | (char *) "self", NULL | |
36353 | }; | |
36354 | ||
36355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
36356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36358 | { | |
36359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36360 | (arg1)->RecalcSizes(); | |
36361 | ||
36362 | wxPyEndAllowThreads(__tstate); | |
36363 | if (PyErr_Occurred()) SWIG_fail; | |
36364 | } | |
36365 | Py_INCREF(Py_None); resultobj = Py_None; | |
36366 | return resultobj; | |
36367 | fail: | |
36368 | return NULL; | |
36369 | } | |
36370 | ||
36371 | ||
c370783e | 36372 | static PyObject *_wrap_Sizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36373 | PyObject *resultobj; |
36374 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36375 | wxSize result; | |
36376 | PyObject * obj0 = 0 ; | |
36377 | char *kwnames[] = { | |
36378 | (char *) "self", NULL | |
36379 | }; | |
36380 | ||
36381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail; | |
36382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36384 | { | |
36385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36386 | result = (arg1)->CalcMin(); | |
36387 | ||
36388 | wxPyEndAllowThreads(__tstate); | |
36389 | if (PyErr_Occurred()) SWIG_fail; | |
36390 | } | |
36391 | { | |
36392 | wxSize * resultptr; | |
36393 | resultptr = new wxSize((wxSize &) result); | |
36394 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36395 | } | |
36396 | return resultobj; | |
36397 | fail: | |
36398 | return NULL; | |
36399 | } | |
36400 | ||
36401 | ||
c370783e | 36402 | static PyObject *_wrap_Sizer_Layout(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36403 | PyObject *resultobj; |
36404 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36405 | PyObject * obj0 = 0 ; | |
36406 | char *kwnames[] = { | |
36407 | (char *) "self", NULL | |
36408 | }; | |
36409 | ||
36410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail; | |
36411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36413 | { | |
36414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36415 | (arg1)->Layout(); | |
36416 | ||
36417 | wxPyEndAllowThreads(__tstate); | |
36418 | if (PyErr_Occurred()) SWIG_fail; | |
36419 | } | |
36420 | Py_INCREF(Py_None); resultobj = Py_None; | |
36421 | return resultobj; | |
36422 | fail: | |
36423 | return NULL; | |
36424 | } | |
36425 | ||
36426 | ||
c370783e | 36427 | static PyObject *_wrap_Sizer_Fit(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36428 | PyObject *resultobj; |
36429 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36430 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36431 | wxSize result; | |
36432 | PyObject * obj0 = 0 ; | |
36433 | PyObject * obj1 = 0 ; | |
36434 | char *kwnames[] = { | |
36435 | (char *) "self",(char *) "window", NULL | |
36436 | }; | |
36437 | ||
36438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail; | |
36439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36441 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36443 | { | |
36444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36445 | result = (arg1)->Fit(arg2); | |
36446 | ||
36447 | wxPyEndAllowThreads(__tstate); | |
36448 | if (PyErr_Occurred()) SWIG_fail; | |
36449 | } | |
36450 | { | |
36451 | wxSize * resultptr; | |
36452 | resultptr = new wxSize((wxSize &) result); | |
36453 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
36454 | } | |
36455 | return resultobj; | |
36456 | fail: | |
36457 | return NULL; | |
36458 | } | |
36459 | ||
36460 | ||
c370783e | 36461 | static PyObject *_wrap_Sizer_FitInside(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36462 | PyObject *resultobj; |
36463 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36464 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36465 | PyObject * obj0 = 0 ; | |
36466 | PyObject * obj1 = 0 ; | |
36467 | char *kwnames[] = { | |
36468 | (char *) "self",(char *) "window", NULL | |
36469 | }; | |
36470 | ||
36471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail; | |
36472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36474 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36476 | { | |
36477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36478 | (arg1)->FitInside(arg2); | |
36479 | ||
36480 | wxPyEndAllowThreads(__tstate); | |
36481 | if (PyErr_Occurred()) SWIG_fail; | |
36482 | } | |
36483 | Py_INCREF(Py_None); resultobj = Py_None; | |
36484 | return resultobj; | |
36485 | fail: | |
36486 | return NULL; | |
36487 | } | |
36488 | ||
36489 | ||
c370783e | 36490 | static PyObject *_wrap_Sizer_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36491 | PyObject *resultobj; |
36492 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36493 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36494 | PyObject * obj0 = 0 ; | |
36495 | PyObject * obj1 = 0 ; | |
36496 | char *kwnames[] = { | |
36497 | (char *) "self",(char *) "window", NULL | |
36498 | }; | |
36499 | ||
36500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
36501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36503 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36505 | { | |
36506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36507 | (arg1)->SetSizeHints(arg2); | |
36508 | ||
36509 | wxPyEndAllowThreads(__tstate); | |
36510 | if (PyErr_Occurred()) SWIG_fail; | |
36511 | } | |
36512 | Py_INCREF(Py_None); resultobj = Py_None; | |
36513 | return resultobj; | |
36514 | fail: | |
36515 | return NULL; | |
36516 | } | |
36517 | ||
36518 | ||
c370783e | 36519 | static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36520 | PyObject *resultobj; |
36521 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36522 | wxWindow *arg2 = (wxWindow *) 0 ; | |
36523 | PyObject * obj0 = 0 ; | |
36524 | PyObject * obj1 = 0 ; | |
36525 | char *kwnames[] = { | |
36526 | (char *) "self",(char *) "window", NULL | |
36527 | }; | |
36528 | ||
36529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail; | |
36530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36532 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
36533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36534 | { | |
36535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36536 | (arg1)->SetVirtualSizeHints(arg2); | |
36537 | ||
36538 | wxPyEndAllowThreads(__tstate); | |
36539 | if (PyErr_Occurred()) SWIG_fail; | |
36540 | } | |
36541 | Py_INCREF(Py_None); resultobj = Py_None; | |
36542 | return resultobj; | |
36543 | fail: | |
36544 | return NULL; | |
36545 | } | |
36546 | ||
36547 | ||
c370783e | 36548 | static PyObject *_wrap_Sizer_Clear(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36549 | PyObject *resultobj; |
36550 | wxSizer *arg1 = (wxSizer *) 0 ; | |
b411df4a | 36551 | bool arg2 = (bool) false ; |
d55e5bfc RD |
36552 | PyObject * obj0 = 0 ; |
36553 | PyObject * obj1 = 0 ; | |
36554 | char *kwnames[] = { | |
bfddbb17 | 36555 | (char *) "self",(char *) "deleteWindows", NULL |
d55e5bfc RD |
36556 | }; |
36557 | ||
36558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail; | |
36559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36561 | if (obj1) { | |
c370783e | 36562 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
36563 | if (PyErr_Occurred()) SWIG_fail; |
36564 | } | |
36565 | { | |
36566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36567 | (arg1)->Clear(arg2); | |
36568 | ||
36569 | wxPyEndAllowThreads(__tstate); | |
36570 | if (PyErr_Occurred()) SWIG_fail; | |
36571 | } | |
36572 | Py_INCREF(Py_None); resultobj = Py_None; | |
36573 | return resultobj; | |
36574 | fail: | |
36575 | return NULL; | |
36576 | } | |
36577 | ||
36578 | ||
c370783e | 36579 | static PyObject *_wrap_Sizer_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36580 | PyObject *resultobj; |
36581 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36582 | PyObject * obj0 = 0 ; | |
36583 | char *kwnames[] = { | |
36584 | (char *) "self", NULL | |
36585 | }; | |
36586 | ||
36587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail; | |
36588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36590 | { | |
36591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36592 | (arg1)->DeleteWindows(); | |
36593 | ||
36594 | wxPyEndAllowThreads(__tstate); | |
36595 | if (PyErr_Occurred()) SWIG_fail; | |
36596 | } | |
36597 | Py_INCREF(Py_None); resultobj = Py_None; | |
36598 | return resultobj; | |
36599 | fail: | |
36600 | return NULL; | |
36601 | } | |
36602 | ||
36603 | ||
c370783e | 36604 | static PyObject *_wrap_Sizer_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36605 | PyObject *resultobj; |
36606 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36607 | PyObject *result; | |
36608 | PyObject * obj0 = 0 ; | |
36609 | char *kwnames[] = { | |
36610 | (char *) "self", NULL | |
36611 | }; | |
36612 | ||
36613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail; | |
36614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36616 | { | |
36617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36618 | result = (PyObject *)wxSizer_GetChildren(arg1); | |
36619 | ||
36620 | wxPyEndAllowThreads(__tstate); | |
36621 | if (PyErr_Occurred()) SWIG_fail; | |
36622 | } | |
36623 | resultobj = result; | |
36624 | return resultobj; | |
36625 | fail: | |
36626 | return NULL; | |
36627 | } | |
36628 | ||
36629 | ||
c370783e | 36630 | static PyObject *_wrap_Sizer_Show(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36631 | PyObject *resultobj; |
36632 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36633 | PyObject *arg2 = (PyObject *) 0 ; | |
b411df4a RD |
36634 | bool arg3 = (bool) true ; |
36635 | bool arg4 = (bool) false ; | |
629e65c2 | 36636 | bool result; |
d55e5bfc RD |
36637 | PyObject * obj0 = 0 ; |
36638 | PyObject * obj1 = 0 ; | |
36639 | PyObject * obj2 = 0 ; | |
629e65c2 | 36640 | PyObject * obj3 = 0 ; |
d55e5bfc | 36641 | char *kwnames[] = { |
629e65c2 | 36642 | (char *) "self",(char *) "item",(char *) "show",(char *) "recursive", NULL |
d55e5bfc RD |
36643 | }; |
36644 | ||
629e65c2 | 36645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Sizer_Show",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
36646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
36647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36648 | arg2 = obj1; | |
36649 | if (obj2) { | |
c370783e | 36650 | arg3 = (bool)SWIG_As_bool(obj2); |
d55e5bfc RD |
36651 | if (PyErr_Occurred()) SWIG_fail; |
36652 | } | |
629e65c2 RD |
36653 | if (obj3) { |
36654 | arg4 = (bool)SWIG_As_bool(obj3); | |
36655 | if (PyErr_Occurred()) SWIG_fail; | |
36656 | } | |
d55e5bfc RD |
36657 | { |
36658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
629e65c2 | 36659 | result = (bool)wxSizer_Show(arg1,arg2,arg3,arg4); |
d55e5bfc RD |
36660 | |
36661 | wxPyEndAllowThreads(__tstate); | |
36662 | if (PyErr_Occurred()) SWIG_fail; | |
36663 | } | |
629e65c2 RD |
36664 | { |
36665 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36666 | } | |
d55e5bfc RD |
36667 | return resultobj; |
36668 | fail: | |
36669 | return NULL; | |
36670 | } | |
36671 | ||
36672 | ||
c370783e | 36673 | static PyObject *_wrap_Sizer_IsShown(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36674 | PyObject *resultobj; |
36675 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36676 | PyObject *arg2 = (PyObject *) 0 ; | |
36677 | bool result; | |
36678 | PyObject * obj0 = 0 ; | |
36679 | PyObject * obj1 = 0 ; | |
36680 | char *kwnames[] = { | |
36681 | (char *) "self",(char *) "item", NULL | |
36682 | }; | |
36683 | ||
36684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail; | |
36685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36687 | arg2 = obj1; | |
36688 | { | |
36689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36690 | result = (bool)wxSizer_IsShown(arg1,arg2); | |
36691 | ||
36692 | wxPyEndAllowThreads(__tstate); | |
36693 | if (PyErr_Occurred()) SWIG_fail; | |
36694 | } | |
36695 | { | |
36696 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36697 | } | |
36698 | return resultobj; | |
36699 | fail: | |
36700 | return NULL; | |
36701 | } | |
36702 | ||
36703 | ||
c370783e | 36704 | static PyObject *_wrap_Sizer_ShowItems(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36705 | PyObject *resultobj; |
36706 | wxSizer *arg1 = (wxSizer *) 0 ; | |
36707 | bool arg2 ; | |
36708 | PyObject * obj0 = 0 ; | |
36709 | PyObject * obj1 = 0 ; | |
36710 | char *kwnames[] = { | |
36711 | (char *) "self",(char *) "show", NULL | |
36712 | }; | |
36713 | ||
36714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail; | |
36715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, | |
36716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 36717 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
36718 | if (PyErr_Occurred()) SWIG_fail; |
36719 | { | |
36720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36721 | (arg1)->ShowItems(arg2); | |
36722 | ||
36723 | wxPyEndAllowThreads(__tstate); | |
36724 | if (PyErr_Occurred()) SWIG_fail; | |
36725 | } | |
36726 | Py_INCREF(Py_None); resultobj = Py_None; | |
36727 | return resultobj; | |
36728 | fail: | |
36729 | return NULL; | |
36730 | } | |
36731 | ||
36732 | ||
c370783e | 36733 | static PyObject * Sizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
36734 | PyObject *obj; |
36735 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36736 | SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj); | |
36737 | Py_INCREF(obj); | |
36738 | return Py_BuildValue((char *)""); | |
36739 | } | |
c370783e | 36740 | static PyObject *_wrap_new_PySizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36741 | PyObject *resultobj; |
36742 | wxPySizer *result; | |
36743 | char *kwnames[] = { | |
36744 | NULL | |
36745 | }; | |
36746 | ||
36747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail; | |
36748 | { | |
36749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36750 | result = (wxPySizer *)new wxPySizer(); | |
36751 | ||
36752 | wxPyEndAllowThreads(__tstate); | |
36753 | if (PyErr_Occurred()) SWIG_fail; | |
36754 | } | |
36755 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1); | |
36756 | return resultobj; | |
36757 | fail: | |
36758 | return NULL; | |
36759 | } | |
36760 | ||
36761 | ||
c370783e | 36762 | static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36763 | PyObject *resultobj; |
36764 | wxPySizer *arg1 = (wxPySizer *) 0 ; | |
36765 | PyObject *arg2 = (PyObject *) 0 ; | |
36766 | PyObject *arg3 = (PyObject *) 0 ; | |
36767 | PyObject * obj0 = 0 ; | |
36768 | PyObject * obj1 = 0 ; | |
36769 | PyObject * obj2 = 0 ; | |
36770 | char *kwnames[] = { | |
36771 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
36772 | }; | |
36773 | ||
36774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
36775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer, | |
36776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36777 | arg2 = obj1; | |
36778 | arg3 = obj2; | |
36779 | { | |
36780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36781 | (arg1)->_setCallbackInfo(arg2,arg3); | |
36782 | ||
36783 | wxPyEndAllowThreads(__tstate); | |
36784 | if (PyErr_Occurred()) SWIG_fail; | |
36785 | } | |
36786 | Py_INCREF(Py_None); resultobj = Py_None; | |
36787 | return resultobj; | |
36788 | fail: | |
36789 | return NULL; | |
36790 | } | |
36791 | ||
36792 | ||
c370783e | 36793 | static PyObject * PySizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
36794 | PyObject *obj; |
36795 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36796 | SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj); | |
36797 | Py_INCREF(obj); | |
36798 | return Py_BuildValue((char *)""); | |
36799 | } | |
c370783e | 36800 | static PyObject *_wrap_new_BoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36801 | PyObject *resultobj; |
36802 | int arg1 = (int) wxHORIZONTAL ; | |
36803 | wxBoxSizer *result; | |
36804 | PyObject * obj0 = 0 ; | |
36805 | char *kwnames[] = { | |
36806 | (char *) "orient", NULL | |
36807 | }; | |
36808 | ||
36809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail; | |
36810 | if (obj0) { | |
c370783e | 36811 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
36812 | if (PyErr_Occurred()) SWIG_fail; |
36813 | } | |
36814 | { | |
36815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36816 | result = (wxBoxSizer *)new wxBoxSizer(arg1); | |
36817 | ||
36818 | wxPyEndAllowThreads(__tstate); | |
36819 | if (PyErr_Occurred()) SWIG_fail; | |
36820 | } | |
36821 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1); | |
36822 | return resultobj; | |
36823 | fail: | |
36824 | return NULL; | |
36825 | } | |
36826 | ||
36827 | ||
c370783e | 36828 | static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36829 | PyObject *resultobj; |
36830 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
36831 | int result; | |
36832 | PyObject * obj0 = 0 ; | |
36833 | char *kwnames[] = { | |
36834 | (char *) "self", NULL | |
36835 | }; | |
36836 | ||
36837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail; | |
36838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
36839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36840 | { | |
36841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36842 | result = (int)(arg1)->GetOrientation(); | |
36843 | ||
36844 | wxPyEndAllowThreads(__tstate); | |
36845 | if (PyErr_Occurred()) SWIG_fail; | |
36846 | } | |
c370783e | 36847 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
36848 | return resultobj; |
36849 | fail: | |
36850 | return NULL; | |
36851 | } | |
36852 | ||
36853 | ||
c370783e | 36854 | static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36855 | PyObject *resultobj; |
36856 | wxBoxSizer *arg1 = (wxBoxSizer *) 0 ; | |
36857 | int arg2 ; | |
36858 | PyObject * obj0 = 0 ; | |
36859 | PyObject * obj1 = 0 ; | |
36860 | char *kwnames[] = { | |
36861 | (char *) "self",(char *) "orient", NULL | |
36862 | }; | |
36863 | ||
36864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail; | |
36865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer, | |
36866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 36867 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36868 | if (PyErr_Occurred()) SWIG_fail; |
36869 | { | |
36870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36871 | (arg1)->SetOrientation(arg2); | |
36872 | ||
36873 | wxPyEndAllowThreads(__tstate); | |
36874 | if (PyErr_Occurred()) SWIG_fail; | |
36875 | } | |
36876 | Py_INCREF(Py_None); resultobj = Py_None; | |
36877 | return resultobj; | |
36878 | fail: | |
36879 | return NULL; | |
36880 | } | |
36881 | ||
36882 | ||
c370783e | 36883 | static PyObject * BoxSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
36884 | PyObject *obj; |
36885 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36886 | SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj); | |
36887 | Py_INCREF(obj); | |
36888 | return Py_BuildValue((char *)""); | |
36889 | } | |
c370783e | 36890 | static PyObject *_wrap_new_StaticBoxSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36891 | PyObject *resultobj; |
36892 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
36893 | int arg2 = (int) wxHORIZONTAL ; | |
36894 | wxStaticBoxSizer *result; | |
36895 | PyObject * obj0 = 0 ; | |
36896 | PyObject * obj1 = 0 ; | |
36897 | char *kwnames[] = { | |
36898 | (char *) "box",(char *) "orient", NULL | |
36899 | }; | |
36900 | ||
36901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail; | |
36902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, | |
36903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36904 | if (obj1) { | |
c370783e | 36905 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36906 | if (PyErr_Occurred()) SWIG_fail; |
36907 | } | |
36908 | { | |
36909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36910 | result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2); | |
36911 | ||
36912 | wxPyEndAllowThreads(__tstate); | |
36913 | if (PyErr_Occurred()) SWIG_fail; | |
36914 | } | |
36915 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1); | |
36916 | return resultobj; | |
36917 | fail: | |
36918 | return NULL; | |
36919 | } | |
36920 | ||
36921 | ||
c370783e | 36922 | static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36923 | PyObject *resultobj; |
36924 | wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ; | |
36925 | wxStaticBox *result; | |
36926 | PyObject * obj0 = 0 ; | |
36927 | char *kwnames[] = { | |
36928 | (char *) "self", NULL | |
36929 | }; | |
36930 | ||
36931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail; | |
36932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer, | |
36933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
36934 | { | |
36935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36936 | result = (wxStaticBox *)(arg1)->GetStaticBox(); | |
36937 | ||
36938 | wxPyEndAllowThreads(__tstate); | |
36939 | if (PyErr_Occurred()) SWIG_fail; | |
36940 | } | |
36941 | { | |
412d302d | 36942 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
36943 | } |
36944 | return resultobj; | |
36945 | fail: | |
36946 | return NULL; | |
36947 | } | |
36948 | ||
36949 | ||
c370783e | 36950 | static PyObject * StaticBoxSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
36951 | PyObject *obj; |
36952 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
36953 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj); | |
36954 | Py_INCREF(obj); | |
36955 | return Py_BuildValue((char *)""); | |
36956 | } | |
c370783e | 36957 | static PyObject *_wrap_new_GridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
36958 | PyObject *resultobj; |
36959 | int arg1 = (int) 1 ; | |
36960 | int arg2 = (int) 0 ; | |
36961 | int arg3 = (int) 0 ; | |
36962 | int arg4 = (int) 0 ; | |
36963 | wxGridSizer *result; | |
36964 | PyObject * obj0 = 0 ; | |
36965 | PyObject * obj1 = 0 ; | |
36966 | PyObject * obj2 = 0 ; | |
36967 | PyObject * obj3 = 0 ; | |
36968 | char *kwnames[] = { | |
36969 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
36970 | }; | |
36971 | ||
36972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
36973 | if (obj0) { | |
c370783e | 36974 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
36975 | if (PyErr_Occurred()) SWIG_fail; |
36976 | } | |
36977 | if (obj1) { | |
c370783e | 36978 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
36979 | if (PyErr_Occurred()) SWIG_fail; |
36980 | } | |
36981 | if (obj2) { | |
c370783e | 36982 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
36983 | if (PyErr_Occurred()) SWIG_fail; |
36984 | } | |
36985 | if (obj3) { | |
c370783e | 36986 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
36987 | if (PyErr_Occurred()) SWIG_fail; |
36988 | } | |
36989 | { | |
36990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36991 | result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4); | |
36992 | ||
36993 | wxPyEndAllowThreads(__tstate); | |
36994 | if (PyErr_Occurred()) SWIG_fail; | |
36995 | } | |
36996 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1); | |
36997 | return resultobj; | |
36998 | fail: | |
36999 | return NULL; | |
37000 | } | |
37001 | ||
37002 | ||
c370783e | 37003 | static PyObject *_wrap_GridSizer_SetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37004 | PyObject *resultobj; |
37005 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37006 | int arg2 ; | |
37007 | PyObject * obj0 = 0 ; | |
37008 | PyObject * obj1 = 0 ; | |
37009 | char *kwnames[] = { | |
37010 | (char *) "self",(char *) "cols", NULL | |
37011 | }; | |
37012 | ||
37013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail; | |
37014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37016 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37017 | if (PyErr_Occurred()) SWIG_fail; |
37018 | { | |
37019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37020 | (arg1)->SetCols(arg2); | |
37021 | ||
37022 | wxPyEndAllowThreads(__tstate); | |
37023 | if (PyErr_Occurred()) SWIG_fail; | |
37024 | } | |
37025 | Py_INCREF(Py_None); resultobj = Py_None; | |
37026 | return resultobj; | |
37027 | fail: | |
37028 | return NULL; | |
37029 | } | |
37030 | ||
37031 | ||
c370783e | 37032 | static PyObject *_wrap_GridSizer_SetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37033 | PyObject *resultobj; |
37034 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37035 | int arg2 ; | |
37036 | PyObject * obj0 = 0 ; | |
37037 | PyObject * obj1 = 0 ; | |
37038 | char *kwnames[] = { | |
37039 | (char *) "self",(char *) "rows", NULL | |
37040 | }; | |
37041 | ||
37042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
37043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37045 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37046 | if (PyErr_Occurred()) SWIG_fail; |
37047 | { | |
37048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37049 | (arg1)->SetRows(arg2); | |
37050 | ||
37051 | wxPyEndAllowThreads(__tstate); | |
37052 | if (PyErr_Occurred()) SWIG_fail; | |
37053 | } | |
37054 | Py_INCREF(Py_None); resultobj = Py_None; | |
37055 | return resultobj; | |
37056 | fail: | |
37057 | return NULL; | |
37058 | } | |
37059 | ||
37060 | ||
c370783e | 37061 | static PyObject *_wrap_GridSizer_SetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37062 | PyObject *resultobj; |
37063 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37064 | int arg2 ; | |
37065 | PyObject * obj0 = 0 ; | |
37066 | PyObject * obj1 = 0 ; | |
37067 | char *kwnames[] = { | |
37068 | (char *) "self",(char *) "gap", NULL | |
37069 | }; | |
37070 | ||
37071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail; | |
37072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37074 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37075 | if (PyErr_Occurred()) SWIG_fail; |
37076 | { | |
37077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37078 | (arg1)->SetVGap(arg2); | |
37079 | ||
37080 | wxPyEndAllowThreads(__tstate); | |
37081 | if (PyErr_Occurred()) SWIG_fail; | |
37082 | } | |
37083 | Py_INCREF(Py_None); resultobj = Py_None; | |
37084 | return resultobj; | |
37085 | fail: | |
37086 | return NULL; | |
37087 | } | |
37088 | ||
37089 | ||
c370783e | 37090 | static PyObject *_wrap_GridSizer_SetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37091 | PyObject *resultobj; |
37092 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37093 | int arg2 ; | |
37094 | PyObject * obj0 = 0 ; | |
37095 | PyObject * obj1 = 0 ; | |
37096 | char *kwnames[] = { | |
37097 | (char *) "self",(char *) "gap", NULL | |
37098 | }; | |
37099 | ||
37100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail; | |
37101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37103 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37104 | if (PyErr_Occurred()) SWIG_fail; |
37105 | { | |
37106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37107 | (arg1)->SetHGap(arg2); | |
37108 | ||
37109 | wxPyEndAllowThreads(__tstate); | |
37110 | if (PyErr_Occurred()) SWIG_fail; | |
37111 | } | |
37112 | Py_INCREF(Py_None); resultobj = Py_None; | |
37113 | return resultobj; | |
37114 | fail: | |
37115 | return NULL; | |
37116 | } | |
37117 | ||
37118 | ||
c370783e | 37119 | static PyObject *_wrap_GridSizer_GetCols(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37120 | PyObject *resultobj; |
37121 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37122 | int result; | |
37123 | PyObject * obj0 = 0 ; | |
37124 | char *kwnames[] = { | |
37125 | (char *) "self", NULL | |
37126 | }; | |
37127 | ||
37128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail; | |
37129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37131 | { | |
37132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37133 | result = (int)(arg1)->GetCols(); | |
37134 | ||
37135 | wxPyEndAllowThreads(__tstate); | |
37136 | if (PyErr_Occurred()) SWIG_fail; | |
37137 | } | |
c370783e | 37138 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37139 | return resultobj; |
37140 | fail: | |
37141 | return NULL; | |
37142 | } | |
37143 | ||
37144 | ||
c370783e | 37145 | static PyObject *_wrap_GridSizer_GetRows(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37146 | PyObject *resultobj; |
37147 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37148 | int result; | |
37149 | PyObject * obj0 = 0 ; | |
37150 | char *kwnames[] = { | |
37151 | (char *) "self", NULL | |
37152 | }; | |
37153 | ||
37154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail; | |
37155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37157 | { | |
37158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37159 | result = (int)(arg1)->GetRows(); | |
37160 | ||
37161 | wxPyEndAllowThreads(__tstate); | |
37162 | if (PyErr_Occurred()) SWIG_fail; | |
37163 | } | |
c370783e | 37164 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37165 | return resultobj; |
37166 | fail: | |
37167 | return NULL; | |
37168 | } | |
37169 | ||
37170 | ||
c370783e | 37171 | static PyObject *_wrap_GridSizer_GetVGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37172 | PyObject *resultobj; |
37173 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37174 | int result; | |
37175 | PyObject * obj0 = 0 ; | |
37176 | char *kwnames[] = { | |
37177 | (char *) "self", NULL | |
37178 | }; | |
37179 | ||
37180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail; | |
37181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37183 | { | |
37184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37185 | result = (int)(arg1)->GetVGap(); | |
37186 | ||
37187 | wxPyEndAllowThreads(__tstate); | |
37188 | if (PyErr_Occurred()) SWIG_fail; | |
37189 | } | |
c370783e | 37190 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37191 | return resultobj; |
37192 | fail: | |
37193 | return NULL; | |
37194 | } | |
37195 | ||
37196 | ||
c370783e | 37197 | static PyObject *_wrap_GridSizer_GetHGap(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37198 | PyObject *resultobj; |
37199 | wxGridSizer *arg1 = (wxGridSizer *) 0 ; | |
37200 | int result; | |
37201 | PyObject * obj0 = 0 ; | |
37202 | char *kwnames[] = { | |
37203 | (char *) "self", NULL | |
37204 | }; | |
37205 | ||
37206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail; | |
37207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer, | |
37208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37209 | { | |
37210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37211 | result = (int)(arg1)->GetHGap(); | |
37212 | ||
37213 | wxPyEndAllowThreads(__tstate); | |
37214 | if (PyErr_Occurred()) SWIG_fail; | |
37215 | } | |
c370783e | 37216 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37217 | return resultobj; |
37218 | fail: | |
37219 | return NULL; | |
37220 | } | |
37221 | ||
37222 | ||
c370783e | 37223 | static PyObject * GridSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37224 | PyObject *obj; |
37225 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37226 | SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj); | |
37227 | Py_INCREF(obj); | |
37228 | return Py_BuildValue((char *)""); | |
37229 | } | |
c370783e | 37230 | static PyObject *_wrap_new_FlexGridSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37231 | PyObject *resultobj; |
37232 | int arg1 = (int) 1 ; | |
37233 | int arg2 = (int) 0 ; | |
37234 | int arg3 = (int) 0 ; | |
37235 | int arg4 = (int) 0 ; | |
37236 | wxFlexGridSizer *result; | |
37237 | PyObject * obj0 = 0 ; | |
37238 | PyObject * obj1 = 0 ; | |
37239 | PyObject * obj2 = 0 ; | |
37240 | PyObject * obj3 = 0 ; | |
37241 | char *kwnames[] = { | |
37242 | (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL | |
37243 | }; | |
37244 | ||
37245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
37246 | if (obj0) { | |
c370783e | 37247 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
37248 | if (PyErr_Occurred()) SWIG_fail; |
37249 | } | |
37250 | if (obj1) { | |
c370783e | 37251 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37252 | if (PyErr_Occurred()) SWIG_fail; |
37253 | } | |
37254 | if (obj2) { | |
c370783e | 37255 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37256 | if (PyErr_Occurred()) SWIG_fail; |
37257 | } | |
37258 | if (obj3) { | |
c370783e | 37259 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
37260 | if (PyErr_Occurred()) SWIG_fail; |
37261 | } | |
37262 | { | |
37263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37264 | result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4); | |
37265 | ||
37266 | wxPyEndAllowThreads(__tstate); | |
37267 | if (PyErr_Occurred()) SWIG_fail; | |
37268 | } | |
37269 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1); | |
37270 | return resultobj; | |
37271 | fail: | |
37272 | return NULL; | |
37273 | } | |
37274 | ||
37275 | ||
c370783e | 37276 | static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37277 | PyObject *resultobj; |
37278 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37279 | size_t arg2 ; | |
37280 | int arg3 = (int) 0 ; | |
37281 | PyObject * obj0 = 0 ; | |
37282 | PyObject * obj1 = 0 ; | |
37283 | PyObject * obj2 = 0 ; | |
37284 | char *kwnames[] = { | |
37285 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
37286 | }; | |
37287 | ||
37288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37291 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37292 | if (PyErr_Occurred()) SWIG_fail; |
37293 | if (obj2) { | |
c370783e | 37294 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37295 | if (PyErr_Occurred()) SWIG_fail; |
37296 | } | |
37297 | { | |
37298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37299 | (arg1)->AddGrowableRow(arg2,arg3); | |
37300 | ||
37301 | wxPyEndAllowThreads(__tstate); | |
37302 | if (PyErr_Occurred()) SWIG_fail; | |
37303 | } | |
37304 | Py_INCREF(Py_None); resultobj = Py_None; | |
37305 | return resultobj; | |
37306 | fail: | |
37307 | return NULL; | |
37308 | } | |
37309 | ||
37310 | ||
c370783e | 37311 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37312 | PyObject *resultobj; |
37313 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37314 | size_t arg2 ; | |
37315 | PyObject * obj0 = 0 ; | |
37316 | PyObject * obj1 = 0 ; | |
37317 | char *kwnames[] = { | |
37318 | (char *) "self",(char *) "idx", NULL | |
37319 | }; | |
37320 | ||
37321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail; | |
37322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37324 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37325 | if (PyErr_Occurred()) SWIG_fail; |
37326 | { | |
37327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37328 | (arg1)->RemoveGrowableRow(arg2); | |
37329 | ||
37330 | wxPyEndAllowThreads(__tstate); | |
37331 | if (PyErr_Occurred()) SWIG_fail; | |
37332 | } | |
37333 | Py_INCREF(Py_None); resultobj = Py_None; | |
37334 | return resultobj; | |
37335 | fail: | |
37336 | return NULL; | |
37337 | } | |
37338 | ||
37339 | ||
c370783e | 37340 | static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37341 | PyObject *resultobj; |
37342 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37343 | size_t arg2 ; | |
37344 | int arg3 = (int) 0 ; | |
37345 | PyObject * obj0 = 0 ; | |
37346 | PyObject * obj1 = 0 ; | |
37347 | PyObject * obj2 = 0 ; | |
37348 | char *kwnames[] = { | |
37349 | (char *) "self",(char *) "idx",(char *) "proportion", NULL | |
37350 | }; | |
37351 | ||
37352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37355 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37356 | if (PyErr_Occurred()) SWIG_fail; |
37357 | if (obj2) { | |
c370783e | 37358 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37359 | if (PyErr_Occurred()) SWIG_fail; |
37360 | } | |
37361 | { | |
37362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37363 | (arg1)->AddGrowableCol(arg2,arg3); | |
37364 | ||
37365 | wxPyEndAllowThreads(__tstate); | |
37366 | if (PyErr_Occurred()) SWIG_fail; | |
37367 | } | |
37368 | Py_INCREF(Py_None); resultobj = Py_None; | |
37369 | return resultobj; | |
37370 | fail: | |
37371 | return NULL; | |
37372 | } | |
37373 | ||
37374 | ||
c370783e | 37375 | static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37376 | PyObject *resultobj; |
37377 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37378 | size_t arg2 ; | |
37379 | PyObject * obj0 = 0 ; | |
37380 | PyObject * obj1 = 0 ; | |
37381 | char *kwnames[] = { | |
37382 | (char *) "self",(char *) "idx", NULL | |
37383 | }; | |
37384 | ||
37385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail; | |
37386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37388 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
37389 | if (PyErr_Occurred()) SWIG_fail; |
37390 | { | |
37391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37392 | (arg1)->RemoveGrowableCol(arg2); | |
37393 | ||
37394 | wxPyEndAllowThreads(__tstate); | |
37395 | if (PyErr_Occurred()) SWIG_fail; | |
37396 | } | |
37397 | Py_INCREF(Py_None); resultobj = Py_None; | |
37398 | return resultobj; | |
37399 | fail: | |
37400 | return NULL; | |
37401 | } | |
37402 | ||
37403 | ||
c370783e | 37404 | static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37405 | PyObject *resultobj; |
37406 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37407 | int arg2 ; | |
37408 | PyObject * obj0 = 0 ; | |
37409 | PyObject * obj1 = 0 ; | |
37410 | char *kwnames[] = { | |
37411 | (char *) "self",(char *) "direction", NULL | |
37412 | }; | |
37413 | ||
37414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail; | |
37415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37417 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37418 | if (PyErr_Occurred()) SWIG_fail; |
37419 | { | |
37420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37421 | (arg1)->SetFlexibleDirection(arg2); | |
37422 | ||
37423 | wxPyEndAllowThreads(__tstate); | |
37424 | if (PyErr_Occurred()) SWIG_fail; | |
37425 | } | |
37426 | Py_INCREF(Py_None); resultobj = Py_None; | |
37427 | return resultobj; | |
37428 | fail: | |
37429 | return NULL; | |
37430 | } | |
37431 | ||
37432 | ||
c370783e | 37433 | static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37434 | PyObject *resultobj; |
37435 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37436 | int result; | |
37437 | PyObject * obj0 = 0 ; | |
37438 | char *kwnames[] = { | |
37439 | (char *) "self", NULL | |
37440 | }; | |
37441 | ||
37442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail; | |
37443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37445 | { | |
37446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37447 | result = (int)(arg1)->GetFlexibleDirection(); | |
37448 | ||
37449 | wxPyEndAllowThreads(__tstate); | |
37450 | if (PyErr_Occurred()) SWIG_fail; | |
37451 | } | |
c370783e | 37452 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37453 | return resultobj; |
37454 | fail: | |
37455 | return NULL; | |
37456 | } | |
37457 | ||
37458 | ||
c370783e | 37459 | static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37460 | PyObject *resultobj; |
37461 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37462 | int arg2 ; | |
37463 | PyObject * obj0 = 0 ; | |
37464 | PyObject * obj1 = 0 ; | |
37465 | char *kwnames[] = { | |
37466 | (char *) "self",(char *) "mode", NULL | |
37467 | }; | |
37468 | ||
37469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail; | |
37470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37472 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37473 | if (PyErr_Occurred()) SWIG_fail; |
37474 | { | |
37475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37476 | (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2); | |
37477 | ||
37478 | wxPyEndAllowThreads(__tstate); | |
37479 | if (PyErr_Occurred()) SWIG_fail; | |
37480 | } | |
37481 | Py_INCREF(Py_None); resultobj = Py_None; | |
37482 | return resultobj; | |
37483 | fail: | |
37484 | return NULL; | |
37485 | } | |
37486 | ||
37487 | ||
c370783e | 37488 | static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37489 | PyObject *resultobj; |
37490 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37491 | int result; | |
37492 | PyObject * obj0 = 0 ; | |
37493 | char *kwnames[] = { | |
37494 | (char *) "self", NULL | |
37495 | }; | |
37496 | ||
37497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail; | |
37498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37500 | { | |
37501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37502 | result = (int)(arg1)->GetNonFlexibleGrowMode(); | |
37503 | ||
37504 | wxPyEndAllowThreads(__tstate); | |
37505 | if (PyErr_Occurred()) SWIG_fail; | |
37506 | } | |
c370783e | 37507 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37508 | return resultobj; |
37509 | fail: | |
37510 | return NULL; | |
37511 | } | |
37512 | ||
37513 | ||
c370783e | 37514 | static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37515 | PyObject *resultobj; |
37516 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37517 | wxArrayInt *result; | |
37518 | PyObject * obj0 = 0 ; | |
37519 | char *kwnames[] = { | |
37520 | (char *) "self", NULL | |
37521 | }; | |
37522 | ||
37523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail; | |
37524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37526 | { | |
37527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37528 | { | |
37529 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights(); | |
37530 | result = (wxArrayInt *) &_result_ref; | |
37531 | } | |
37532 | ||
37533 | wxPyEndAllowThreads(__tstate); | |
37534 | if (PyErr_Occurred()) SWIG_fail; | |
37535 | } | |
37536 | { | |
37537 | resultobj = PyList_New(0); | |
37538 | size_t idx; | |
37539 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
37540 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
37541 | PyList_Append(resultobj, val); | |
37542 | Py_DECREF(val); | |
37543 | } | |
37544 | } | |
37545 | return resultobj; | |
37546 | fail: | |
37547 | return NULL; | |
37548 | } | |
37549 | ||
37550 | ||
c370783e | 37551 | static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37552 | PyObject *resultobj; |
37553 | wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ; | |
37554 | wxArrayInt *result; | |
37555 | PyObject * obj0 = 0 ; | |
37556 | char *kwnames[] = { | |
37557 | (char *) "self", NULL | |
37558 | }; | |
37559 | ||
37560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail; | |
37561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer, | |
37562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37563 | { | |
37564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37565 | { | |
37566 | wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths(); | |
37567 | result = (wxArrayInt *) &_result_ref; | |
37568 | } | |
37569 | ||
37570 | wxPyEndAllowThreads(__tstate); | |
37571 | if (PyErr_Occurred()) SWIG_fail; | |
37572 | } | |
37573 | { | |
37574 | resultobj = PyList_New(0); | |
37575 | size_t idx; | |
37576 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
37577 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
37578 | PyList_Append(resultobj, val); | |
37579 | Py_DECREF(val); | |
37580 | } | |
37581 | } | |
37582 | return resultobj; | |
37583 | fail: | |
37584 | return NULL; | |
37585 | } | |
37586 | ||
37587 | ||
c370783e | 37588 | static PyObject * FlexGridSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37589 | PyObject *obj; |
37590 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37591 | SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj); | |
37592 | Py_INCREF(obj); | |
37593 | return Py_BuildValue((char *)""); | |
37594 | } | |
c370783e | 37595 | static PyObject *_wrap_new_GBPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37596 | PyObject *resultobj; |
37597 | int arg1 = (int) 0 ; | |
37598 | int arg2 = (int) 0 ; | |
37599 | wxGBPosition *result; | |
37600 | PyObject * obj0 = 0 ; | |
37601 | PyObject * obj1 = 0 ; | |
37602 | char *kwnames[] = { | |
37603 | (char *) "row",(char *) "col", NULL | |
37604 | }; | |
37605 | ||
37606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail; | |
37607 | if (obj0) { | |
c370783e | 37608 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
37609 | if (PyErr_Occurred()) SWIG_fail; |
37610 | } | |
37611 | if (obj1) { | |
c370783e | 37612 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37613 | if (PyErr_Occurred()) SWIG_fail; |
37614 | } | |
37615 | { | |
37616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37617 | result = (wxGBPosition *)new wxGBPosition(arg1,arg2); | |
37618 | ||
37619 | wxPyEndAllowThreads(__tstate); | |
37620 | if (PyErr_Occurred()) SWIG_fail; | |
37621 | } | |
37622 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1); | |
37623 | return resultobj; | |
37624 | fail: | |
37625 | return NULL; | |
37626 | } | |
37627 | ||
37628 | ||
c370783e | 37629 | static PyObject *_wrap_GBPosition_GetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37630 | PyObject *resultobj; |
37631 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37632 | int result; | |
37633 | PyObject * obj0 = 0 ; | |
37634 | char *kwnames[] = { | |
37635 | (char *) "self", NULL | |
37636 | }; | |
37637 | ||
37638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail; | |
37639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37641 | { | |
37642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37643 | result = (int)((wxGBPosition const *)arg1)->GetRow(); | |
37644 | ||
37645 | wxPyEndAllowThreads(__tstate); | |
37646 | if (PyErr_Occurred()) SWIG_fail; | |
37647 | } | |
c370783e | 37648 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37649 | return resultobj; |
37650 | fail: | |
37651 | return NULL; | |
37652 | } | |
37653 | ||
37654 | ||
c370783e | 37655 | static PyObject *_wrap_GBPosition_GetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37656 | PyObject *resultobj; |
37657 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37658 | int result; | |
37659 | PyObject * obj0 = 0 ; | |
37660 | char *kwnames[] = { | |
37661 | (char *) "self", NULL | |
37662 | }; | |
37663 | ||
37664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail; | |
37665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37667 | { | |
37668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37669 | result = (int)((wxGBPosition const *)arg1)->GetCol(); | |
37670 | ||
37671 | wxPyEndAllowThreads(__tstate); | |
37672 | if (PyErr_Occurred()) SWIG_fail; | |
37673 | } | |
c370783e | 37674 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37675 | return resultobj; |
37676 | fail: | |
37677 | return NULL; | |
37678 | } | |
37679 | ||
37680 | ||
c370783e | 37681 | static PyObject *_wrap_GBPosition_SetRow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37682 | PyObject *resultobj; |
37683 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37684 | int arg2 ; | |
37685 | PyObject * obj0 = 0 ; | |
37686 | PyObject * obj1 = 0 ; | |
37687 | char *kwnames[] = { | |
37688 | (char *) "self",(char *) "row", NULL | |
37689 | }; | |
37690 | ||
37691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail; | |
37692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37694 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37695 | if (PyErr_Occurred()) SWIG_fail; |
37696 | { | |
37697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37698 | (arg1)->SetRow(arg2); | |
37699 | ||
37700 | wxPyEndAllowThreads(__tstate); | |
37701 | if (PyErr_Occurred()) SWIG_fail; | |
37702 | } | |
37703 | Py_INCREF(Py_None); resultobj = Py_None; | |
37704 | return resultobj; | |
37705 | fail: | |
37706 | return NULL; | |
37707 | } | |
37708 | ||
37709 | ||
c370783e | 37710 | static PyObject *_wrap_GBPosition_SetCol(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37711 | PyObject *resultobj; |
37712 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37713 | int arg2 ; | |
37714 | PyObject * obj0 = 0 ; | |
37715 | PyObject * obj1 = 0 ; | |
37716 | char *kwnames[] = { | |
37717 | (char *) "self",(char *) "col", NULL | |
37718 | }; | |
37719 | ||
37720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail; | |
37721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37723 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37724 | if (PyErr_Occurred()) SWIG_fail; |
37725 | { | |
37726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37727 | (arg1)->SetCol(arg2); | |
37728 | ||
37729 | wxPyEndAllowThreads(__tstate); | |
37730 | if (PyErr_Occurred()) SWIG_fail; | |
37731 | } | |
37732 | Py_INCREF(Py_None); resultobj = Py_None; | |
37733 | return resultobj; | |
37734 | fail: | |
37735 | return NULL; | |
37736 | } | |
37737 | ||
37738 | ||
c370783e | 37739 | static PyObject *_wrap_GBPosition___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37740 | PyObject *resultobj; |
37741 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37742 | wxGBPosition *arg2 = 0 ; | |
37743 | bool result; | |
37744 | wxGBPosition temp2 ; | |
37745 | PyObject * obj0 = 0 ; | |
37746 | PyObject * obj1 = 0 ; | |
37747 | char *kwnames[] = { | |
37748 | (char *) "self",(char *) "other", NULL | |
37749 | }; | |
37750 | ||
37751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail; | |
37752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37754 | { | |
37755 | arg2 = &temp2; | |
37756 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37757 | } | |
37758 | { | |
37759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37760 | result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2); | |
37761 | ||
37762 | wxPyEndAllowThreads(__tstate); | |
37763 | if (PyErr_Occurred()) SWIG_fail; | |
37764 | } | |
37765 | { | |
37766 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37767 | } | |
37768 | return resultobj; | |
37769 | fail: | |
37770 | return NULL; | |
37771 | } | |
37772 | ||
37773 | ||
c370783e | 37774 | static PyObject *_wrap_GBPosition___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37775 | PyObject *resultobj; |
37776 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37777 | wxGBPosition *arg2 = 0 ; | |
37778 | bool result; | |
37779 | wxGBPosition temp2 ; | |
37780 | PyObject * obj0 = 0 ; | |
37781 | PyObject * obj1 = 0 ; | |
37782 | char *kwnames[] = { | |
37783 | (char *) "self",(char *) "other", NULL | |
37784 | }; | |
37785 | ||
37786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail; | |
37787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37789 | { | |
37790 | arg2 = &temp2; | |
37791 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
37792 | } | |
37793 | { | |
37794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37795 | result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2); | |
37796 | ||
37797 | wxPyEndAllowThreads(__tstate); | |
37798 | if (PyErr_Occurred()) SWIG_fail; | |
37799 | } | |
37800 | { | |
37801 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
37802 | } | |
37803 | return resultobj; | |
37804 | fail: | |
37805 | return NULL; | |
37806 | } | |
37807 | ||
37808 | ||
c370783e | 37809 | static PyObject *_wrap_GBPosition_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37810 | PyObject *resultobj; |
37811 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37812 | int arg2 = (int) 0 ; | |
37813 | int arg3 = (int) 0 ; | |
37814 | PyObject * obj0 = 0 ; | |
37815 | PyObject * obj1 = 0 ; | |
37816 | PyObject * obj2 = 0 ; | |
37817 | char *kwnames[] = { | |
37818 | (char *) "self",(char *) "row",(char *) "col", NULL | |
37819 | }; | |
37820 | ||
37821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
37822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37824 | if (obj1) { | |
c370783e | 37825 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37826 | if (PyErr_Occurred()) SWIG_fail; |
37827 | } | |
37828 | if (obj2) { | |
c370783e | 37829 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
37830 | if (PyErr_Occurred()) SWIG_fail; |
37831 | } | |
37832 | { | |
37833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37834 | wxGBPosition_Set(arg1,arg2,arg3); | |
37835 | ||
37836 | wxPyEndAllowThreads(__tstate); | |
37837 | if (PyErr_Occurred()) SWIG_fail; | |
37838 | } | |
37839 | Py_INCREF(Py_None); resultobj = Py_None; | |
37840 | return resultobj; | |
37841 | fail: | |
37842 | return NULL; | |
37843 | } | |
37844 | ||
37845 | ||
c370783e | 37846 | static PyObject *_wrap_GBPosition_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37847 | PyObject *resultobj; |
37848 | wxGBPosition *arg1 = (wxGBPosition *) 0 ; | |
37849 | PyObject *result; | |
37850 | PyObject * obj0 = 0 ; | |
37851 | char *kwnames[] = { | |
37852 | (char *) "self", NULL | |
37853 | }; | |
37854 | ||
37855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail; | |
37856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition, | |
37857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37858 | { | |
37859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37860 | result = (PyObject *)wxGBPosition_Get(arg1); | |
37861 | ||
37862 | wxPyEndAllowThreads(__tstate); | |
37863 | if (PyErr_Occurred()) SWIG_fail; | |
37864 | } | |
37865 | resultobj = result; | |
37866 | return resultobj; | |
37867 | fail: | |
37868 | return NULL; | |
37869 | } | |
37870 | ||
37871 | ||
c370783e | 37872 | static PyObject * GBPosition_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
37873 | PyObject *obj; |
37874 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
37875 | SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj); | |
37876 | Py_INCREF(obj); | |
37877 | return Py_BuildValue((char *)""); | |
37878 | } | |
c370783e | 37879 | static PyObject *_wrap_new_GBSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37880 | PyObject *resultobj; |
37881 | int arg1 = (int) 1 ; | |
37882 | int arg2 = (int) 1 ; | |
37883 | wxGBSpan *result; | |
37884 | PyObject * obj0 = 0 ; | |
37885 | PyObject * obj1 = 0 ; | |
37886 | char *kwnames[] = { | |
37887 | (char *) "rowspan",(char *) "colspan", NULL | |
37888 | }; | |
37889 | ||
37890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail; | |
37891 | if (obj0) { | |
c370783e | 37892 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
37893 | if (PyErr_Occurred()) SWIG_fail; |
37894 | } | |
37895 | if (obj1) { | |
c370783e | 37896 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37897 | if (PyErr_Occurred()) SWIG_fail; |
37898 | } | |
37899 | { | |
37900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37901 | result = (wxGBSpan *)new wxGBSpan(arg1,arg2); | |
37902 | ||
37903 | wxPyEndAllowThreads(__tstate); | |
37904 | if (PyErr_Occurred()) SWIG_fail; | |
37905 | } | |
37906 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1); | |
37907 | return resultobj; | |
37908 | fail: | |
37909 | return NULL; | |
37910 | } | |
37911 | ||
37912 | ||
c370783e | 37913 | static PyObject *_wrap_GBSpan_GetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37914 | PyObject *resultobj; |
37915 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37916 | int result; | |
37917 | PyObject * obj0 = 0 ; | |
37918 | char *kwnames[] = { | |
37919 | (char *) "self", NULL | |
37920 | }; | |
37921 | ||
37922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail; | |
37923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37925 | { | |
37926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37927 | result = (int)((wxGBSpan const *)arg1)->GetRowspan(); | |
37928 | ||
37929 | wxPyEndAllowThreads(__tstate); | |
37930 | if (PyErr_Occurred()) SWIG_fail; | |
37931 | } | |
c370783e | 37932 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37933 | return resultobj; |
37934 | fail: | |
37935 | return NULL; | |
37936 | } | |
37937 | ||
37938 | ||
c370783e | 37939 | static PyObject *_wrap_GBSpan_GetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37940 | PyObject *resultobj; |
37941 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37942 | int result; | |
37943 | PyObject * obj0 = 0 ; | |
37944 | char *kwnames[] = { | |
37945 | (char *) "self", NULL | |
37946 | }; | |
37947 | ||
37948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail; | |
37949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
37951 | { | |
37952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37953 | result = (int)((wxGBSpan const *)arg1)->GetColspan(); | |
37954 | ||
37955 | wxPyEndAllowThreads(__tstate); | |
37956 | if (PyErr_Occurred()) SWIG_fail; | |
37957 | } | |
c370783e | 37958 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
37959 | return resultobj; |
37960 | fail: | |
37961 | return NULL; | |
37962 | } | |
37963 | ||
37964 | ||
c370783e | 37965 | static PyObject *_wrap_GBSpan_SetRowspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37966 | PyObject *resultobj; |
37967 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37968 | int arg2 ; | |
37969 | PyObject * obj0 = 0 ; | |
37970 | PyObject * obj1 = 0 ; | |
37971 | char *kwnames[] = { | |
37972 | (char *) "self",(char *) "rowspan", NULL | |
37973 | }; | |
37974 | ||
37975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail; | |
37976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
37977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 37978 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
37979 | if (PyErr_Occurred()) SWIG_fail; |
37980 | { | |
37981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37982 | (arg1)->SetRowspan(arg2); | |
37983 | ||
37984 | wxPyEndAllowThreads(__tstate); | |
37985 | if (PyErr_Occurred()) SWIG_fail; | |
37986 | } | |
37987 | Py_INCREF(Py_None); resultobj = Py_None; | |
37988 | return resultobj; | |
37989 | fail: | |
37990 | return NULL; | |
37991 | } | |
37992 | ||
37993 | ||
c370783e | 37994 | static PyObject *_wrap_GBSpan_SetColspan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
37995 | PyObject *resultobj; |
37996 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
37997 | int arg2 ; | |
37998 | PyObject * obj0 = 0 ; | |
37999 | PyObject * obj1 = 0 ; | |
38000 | char *kwnames[] = { | |
38001 | (char *) "self",(char *) "colspan", NULL | |
38002 | }; | |
38003 | ||
38004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail; | |
38005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 38007 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38008 | if (PyErr_Occurred()) SWIG_fail; |
38009 | { | |
38010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38011 | (arg1)->SetColspan(arg2); | |
38012 | ||
38013 | wxPyEndAllowThreads(__tstate); | |
38014 | if (PyErr_Occurred()) SWIG_fail; | |
38015 | } | |
38016 | Py_INCREF(Py_None); resultobj = Py_None; | |
38017 | return resultobj; | |
38018 | fail: | |
38019 | return NULL; | |
38020 | } | |
38021 | ||
38022 | ||
c370783e | 38023 | static PyObject *_wrap_GBSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38024 | PyObject *resultobj; |
38025 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38026 | wxGBSpan *arg2 = 0 ; | |
38027 | bool result; | |
38028 | wxGBSpan temp2 ; | |
38029 | PyObject * obj0 = 0 ; | |
38030 | PyObject * obj1 = 0 ; | |
38031 | char *kwnames[] = { | |
38032 | (char *) "self",(char *) "other", NULL | |
38033 | }; | |
38034 | ||
38035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail; | |
38036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38038 | { | |
38039 | arg2 = &temp2; | |
38040 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
38041 | } | |
38042 | { | |
38043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38044 | result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2); | |
38045 | ||
38046 | wxPyEndAllowThreads(__tstate); | |
38047 | if (PyErr_Occurred()) SWIG_fail; | |
38048 | } | |
38049 | { | |
38050 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38051 | } | |
38052 | return resultobj; | |
38053 | fail: | |
38054 | return NULL; | |
38055 | } | |
38056 | ||
38057 | ||
c370783e | 38058 | static PyObject *_wrap_GBSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38059 | PyObject *resultobj; |
38060 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38061 | wxGBSpan *arg2 = 0 ; | |
38062 | bool result; | |
38063 | wxGBSpan temp2 ; | |
38064 | PyObject * obj0 = 0 ; | |
38065 | PyObject * obj1 = 0 ; | |
38066 | char *kwnames[] = { | |
38067 | (char *) "self",(char *) "other", NULL | |
38068 | }; | |
38069 | ||
38070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail; | |
38071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38073 | { | |
38074 | arg2 = &temp2; | |
38075 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
38076 | } | |
38077 | { | |
38078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38079 | result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2); | |
38080 | ||
38081 | wxPyEndAllowThreads(__tstate); | |
38082 | if (PyErr_Occurred()) SWIG_fail; | |
38083 | } | |
38084 | { | |
38085 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38086 | } | |
38087 | return resultobj; | |
38088 | fail: | |
38089 | return NULL; | |
38090 | } | |
38091 | ||
38092 | ||
c370783e | 38093 | static PyObject *_wrap_GBSpan_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38094 | PyObject *resultobj; |
38095 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38096 | int arg2 = (int) 1 ; | |
38097 | int arg3 = (int) 1 ; | |
38098 | PyObject * obj0 = 0 ; | |
38099 | PyObject * obj1 = 0 ; | |
38100 | PyObject * obj2 = 0 ; | |
38101 | char *kwnames[] = { | |
38102 | (char *) "self",(char *) "rowspan",(char *) "colspan", NULL | |
38103 | }; | |
38104 | ||
38105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
38106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38108 | if (obj1) { | |
c370783e | 38109 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38110 | if (PyErr_Occurred()) SWIG_fail; |
38111 | } | |
38112 | if (obj2) { | |
c370783e | 38113 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
38114 | if (PyErr_Occurred()) SWIG_fail; |
38115 | } | |
38116 | { | |
38117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38118 | wxGBSpan_Set(arg1,arg2,arg3); | |
38119 | ||
38120 | wxPyEndAllowThreads(__tstate); | |
38121 | if (PyErr_Occurred()) SWIG_fail; | |
38122 | } | |
38123 | Py_INCREF(Py_None); resultobj = Py_None; | |
38124 | return resultobj; | |
38125 | fail: | |
38126 | return NULL; | |
38127 | } | |
38128 | ||
38129 | ||
c370783e | 38130 | static PyObject *_wrap_GBSpan_Get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38131 | PyObject *resultobj; |
38132 | wxGBSpan *arg1 = (wxGBSpan *) 0 ; | |
38133 | PyObject *result; | |
38134 | PyObject * obj0 = 0 ; | |
38135 | char *kwnames[] = { | |
38136 | (char *) "self", NULL | |
38137 | }; | |
38138 | ||
38139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail; | |
38140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan, | |
38141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38142 | { | |
38143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38144 | result = (PyObject *)wxGBSpan_Get(arg1); | |
38145 | ||
38146 | wxPyEndAllowThreads(__tstate); | |
38147 | if (PyErr_Occurred()) SWIG_fail; | |
38148 | } | |
38149 | resultobj = result; | |
38150 | return resultobj; | |
38151 | fail: | |
38152 | return NULL; | |
38153 | } | |
38154 | ||
38155 | ||
c370783e | 38156 | static PyObject * GBSpan_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
38157 | PyObject *obj; |
38158 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38159 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj); | |
38160 | Py_INCREF(obj); | |
38161 | return Py_BuildValue((char *)""); | |
38162 | } | |
c370783e | 38163 | static int _wrap_DefaultSpan_set(PyObject *) { |
d55e5bfc RD |
38164 | PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only."); |
38165 | return 1; | |
38166 | } | |
38167 | ||
38168 | ||
38169 | static PyObject *_wrap_DefaultSpan_get() { | |
38170 | PyObject *pyobj; | |
38171 | ||
38172 | pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0); | |
38173 | return pyobj; | |
38174 | } | |
38175 | ||
38176 | ||
c370783e | 38177 | static PyObject *_wrap_new_GBSizerItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38178 | PyObject *resultobj; |
38179 | wxGBSizerItem *result; | |
38180 | char *kwnames[] = { | |
38181 | NULL | |
38182 | }; | |
38183 | ||
38184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail; | |
38185 | { | |
38186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38187 | result = (wxGBSizerItem *)new wxGBSizerItem(); | |
38188 | ||
38189 | wxPyEndAllowThreads(__tstate); | |
38190 | if (PyErr_Occurred()) SWIG_fail; | |
38191 | } | |
38192 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
38193 | return resultobj; | |
38194 | fail: | |
38195 | return NULL; | |
38196 | } | |
38197 | ||
38198 | ||
c370783e | 38199 | static PyObject *_wrap_new_GBSizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38200 | PyObject *resultobj; |
38201 | wxWindow *arg1 = (wxWindow *) 0 ; | |
38202 | wxGBPosition *arg2 = 0 ; | |
38203 | wxGBSpan *arg3 = 0 ; | |
38204 | int arg4 ; | |
38205 | int arg5 ; | |
bfddbb17 | 38206 | PyObject *arg6 = (PyObject *) NULL ; |
d55e5bfc RD |
38207 | wxGBSizerItem *result; |
38208 | wxGBPosition temp2 ; | |
38209 | wxGBSpan temp3 ; | |
38210 | PyObject * obj0 = 0 ; | |
38211 | PyObject * obj1 = 0 ; | |
38212 | PyObject * obj2 = 0 ; | |
38213 | PyObject * obj3 = 0 ; | |
38214 | PyObject * obj4 = 0 ; | |
38215 | PyObject * obj5 = 0 ; | |
38216 | char *kwnames[] = { | |
38217 | (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38218 | }; | |
38219 | ||
bfddbb17 | 38220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
38221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
38222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38223 | { | |
38224 | arg2 = &temp2; | |
38225 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38226 | } | |
38227 | { | |
38228 | arg3 = &temp3; | |
38229 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38230 | } | |
c370783e | 38231 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 38232 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 38233 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 38234 | if (PyErr_Occurred()) SWIG_fail; |
bfddbb17 RD |
38235 | if (obj5) { |
38236 | arg6 = obj5; | |
38237 | } | |
d55e5bfc RD |
38238 | { |
38239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bfddbb17 | 38240 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d55e5bfc RD |
38241 | |
38242 | wxPyEndAllowThreads(__tstate); | |
38243 | if (PyErr_Occurred()) SWIG_fail; | |
38244 | } | |
38245 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
38246 | return resultobj; | |
38247 | fail: | |
38248 | return NULL; | |
38249 | } | |
38250 | ||
38251 | ||
c370783e | 38252 | static PyObject *_wrap_new_GBSizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38253 | PyObject *resultobj; |
38254 | wxSizer *arg1 = (wxSizer *) 0 ; | |
38255 | wxGBPosition *arg2 = 0 ; | |
38256 | wxGBSpan *arg3 = 0 ; | |
38257 | int arg4 ; | |
38258 | int arg5 ; | |
bfddbb17 | 38259 | PyObject *arg6 = (PyObject *) NULL ; |
d55e5bfc RD |
38260 | wxGBSizerItem *result; |
38261 | wxGBPosition temp2 ; | |
38262 | wxGBSpan temp3 ; | |
38263 | PyObject * obj0 = 0 ; | |
38264 | PyObject * obj1 = 0 ; | |
38265 | PyObject * obj2 = 0 ; | |
38266 | PyObject * obj3 = 0 ; | |
38267 | PyObject * obj4 = 0 ; | |
38268 | PyObject * obj5 = 0 ; | |
38269 | char *kwnames[] = { | |
38270 | (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38271 | }; | |
38272 | ||
bfddbb17 | 38273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
38274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer, |
38275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38276 | { | |
38277 | arg2 = &temp2; | |
38278 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38279 | } | |
38280 | { | |
38281 | arg3 = &temp3; | |
38282 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38283 | } | |
c370783e | 38284 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc | 38285 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 38286 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 38287 | if (PyErr_Occurred()) SWIG_fail; |
bfddbb17 RD |
38288 | if (obj5) { |
38289 | arg6 = obj5; | |
38290 | } | |
d55e5bfc RD |
38291 | { |
38292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bfddbb17 | 38293 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6); |
d55e5bfc RD |
38294 | |
38295 | wxPyEndAllowThreads(__tstate); | |
38296 | if (PyErr_Occurred()) SWIG_fail; | |
38297 | } | |
38298 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
38299 | return resultobj; | |
38300 | fail: | |
38301 | return NULL; | |
38302 | } | |
38303 | ||
38304 | ||
c370783e | 38305 | static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38306 | PyObject *resultobj; |
38307 | int arg1 ; | |
38308 | int arg2 ; | |
38309 | wxGBPosition *arg3 = 0 ; | |
38310 | wxGBSpan *arg4 = 0 ; | |
38311 | int arg5 ; | |
38312 | int arg6 ; | |
bfddbb17 | 38313 | PyObject *arg7 = (PyObject *) NULL ; |
d55e5bfc RD |
38314 | wxGBSizerItem *result; |
38315 | wxGBPosition temp3 ; | |
38316 | wxGBSpan temp4 ; | |
38317 | PyObject * obj0 = 0 ; | |
38318 | PyObject * obj1 = 0 ; | |
38319 | PyObject * obj2 = 0 ; | |
38320 | PyObject * obj3 = 0 ; | |
38321 | PyObject * obj4 = 0 ; | |
38322 | PyObject * obj5 = 0 ; | |
38323 | PyObject * obj6 = 0 ; | |
38324 | char *kwnames[] = { | |
38325 | (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38326 | }; | |
38327 | ||
bfddbb17 | 38328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
c370783e | 38329 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc | 38330 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 38331 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38332 | if (PyErr_Occurred()) SWIG_fail; |
38333 | { | |
38334 | arg3 = &temp3; | |
38335 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38336 | } | |
38337 | { | |
38338 | arg4 = &temp4; | |
38339 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
38340 | } | |
c370783e | 38341 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc | 38342 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 38343 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc | 38344 | if (PyErr_Occurred()) SWIG_fail; |
bfddbb17 RD |
38345 | if (obj6) { |
38346 | arg7 = obj6; | |
38347 | } | |
d55e5bfc RD |
38348 | { |
38349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bfddbb17 | 38350 | result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); |
d55e5bfc RD |
38351 | |
38352 | wxPyEndAllowThreads(__tstate); | |
38353 | if (PyErr_Occurred()) SWIG_fail; | |
38354 | } | |
38355 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1); | |
38356 | return resultobj; | |
38357 | fail: | |
38358 | return NULL; | |
38359 | } | |
38360 | ||
38361 | ||
c370783e | 38362 | static PyObject *_wrap_GBSizerItem_GetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38363 | PyObject *resultobj; |
38364 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38365 | wxGBPosition result; | |
38366 | PyObject * obj0 = 0 ; | |
38367 | char *kwnames[] = { | |
38368 | (char *) "self", NULL | |
38369 | }; | |
38370 | ||
38371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail; | |
38372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38374 | { | |
38375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38376 | result = ((wxGBSizerItem const *)arg1)->GetPos(); | |
38377 | ||
38378 | wxPyEndAllowThreads(__tstate); | |
38379 | if (PyErr_Occurred()) SWIG_fail; | |
38380 | } | |
38381 | { | |
38382 | wxGBPosition * resultptr; | |
38383 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38384 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38385 | } | |
38386 | return resultobj; | |
38387 | fail: | |
38388 | return NULL; | |
38389 | } | |
38390 | ||
38391 | ||
c370783e | 38392 | static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38393 | PyObject *resultobj; |
38394 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38395 | wxGBSpan result; | |
38396 | PyObject * obj0 = 0 ; | |
38397 | char *kwnames[] = { | |
38398 | (char *) "self", NULL | |
38399 | }; | |
38400 | ||
38401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail; | |
38402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38404 | { | |
38405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38406 | result = ((wxGBSizerItem const *)arg1)->GetSpan(); | |
38407 | ||
38408 | wxPyEndAllowThreads(__tstate); | |
38409 | if (PyErr_Occurred()) SWIG_fail; | |
38410 | } | |
38411 | { | |
38412 | wxGBSpan * resultptr; | |
38413 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
38414 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
38415 | } | |
38416 | return resultobj; | |
38417 | fail: | |
38418 | return NULL; | |
38419 | } | |
38420 | ||
38421 | ||
c370783e | 38422 | static PyObject *_wrap_GBSizerItem_SetPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38423 | PyObject *resultobj; |
38424 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38425 | wxGBPosition *arg2 = 0 ; | |
38426 | bool result; | |
38427 | wxGBPosition temp2 ; | |
38428 | PyObject * obj0 = 0 ; | |
38429 | PyObject * obj1 = 0 ; | |
38430 | char *kwnames[] = { | |
38431 | (char *) "self",(char *) "pos", NULL | |
38432 | }; | |
38433 | ||
38434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail; | |
38435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38437 | { | |
38438 | arg2 = &temp2; | |
38439 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38440 | } | |
38441 | { | |
38442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38443 | result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2); | |
38444 | ||
38445 | wxPyEndAllowThreads(__tstate); | |
38446 | if (PyErr_Occurred()) SWIG_fail; | |
38447 | } | |
38448 | { | |
38449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38450 | } | |
38451 | return resultobj; | |
38452 | fail: | |
38453 | return NULL; | |
38454 | } | |
38455 | ||
38456 | ||
c370783e | 38457 | static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38458 | PyObject *resultobj; |
38459 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38460 | wxGBSpan *arg2 = 0 ; | |
38461 | bool result; | |
38462 | wxGBSpan temp2 ; | |
38463 | PyObject * obj0 = 0 ; | |
38464 | PyObject * obj1 = 0 ; | |
38465 | char *kwnames[] = { | |
38466 | (char *) "self",(char *) "span", NULL | |
38467 | }; | |
38468 | ||
38469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail; | |
38470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38472 | { | |
38473 | arg2 = &temp2; | |
38474 | if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail; | |
38475 | } | |
38476 | { | |
38477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38478 | result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2); | |
38479 | ||
38480 | wxPyEndAllowThreads(__tstate); | |
38481 | if (PyErr_Occurred()) SWIG_fail; | |
38482 | } | |
38483 | { | |
38484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38485 | } | |
38486 | return resultobj; | |
38487 | fail: | |
38488 | return NULL; | |
38489 | } | |
38490 | ||
38491 | ||
c370783e | 38492 | static PyObject *_wrap_GBSizerItem_Intersects(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38493 | PyObject *resultobj; |
38494 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38495 | wxGBSizerItem *arg2 = 0 ; | |
38496 | bool result; | |
38497 | PyObject * obj0 = 0 ; | |
38498 | PyObject * obj1 = 0 ; | |
bfddbb17 RD |
38499 | char *kwnames[] = { |
38500 | (char *) "self",(char *) "other", NULL | |
38501 | }; | |
d55e5bfc | 38502 | |
bfddbb17 | 38503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) goto fail; |
d55e5bfc RD |
38504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38506 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
38507 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
38508 | SWIG_fail; | |
38509 | if (arg2 == NULL) { | |
38510 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
38511 | SWIG_fail; | |
38512 | } | |
38513 | { | |
38514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38515 | result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2); | |
38516 | ||
38517 | wxPyEndAllowThreads(__tstate); | |
38518 | if (PyErr_Occurred()) SWIG_fail; | |
38519 | } | |
38520 | { | |
38521 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38522 | } | |
38523 | return resultobj; | |
38524 | fail: | |
38525 | return NULL; | |
38526 | } | |
38527 | ||
38528 | ||
c370783e | 38529 | static PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38530 | PyObject *resultobj; |
38531 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38532 | wxGBPosition *arg2 = 0 ; | |
38533 | wxGBSpan *arg3 = 0 ; | |
38534 | bool result; | |
38535 | wxGBPosition temp2 ; | |
38536 | wxGBSpan temp3 ; | |
38537 | PyObject * obj0 = 0 ; | |
38538 | PyObject * obj1 = 0 ; | |
38539 | PyObject * obj2 = 0 ; | |
bfddbb17 RD |
38540 | char *kwnames[] = { |
38541 | (char *) "self",(char *) "pos",(char *) "span", NULL | |
38542 | }; | |
d55e5bfc | 38543 | |
bfddbb17 | 38544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
38545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38547 | { | |
38548 | arg2 = &temp2; | |
38549 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
38550 | } | |
38551 | { | |
38552 | arg3 = &temp3; | |
38553 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
38554 | } | |
38555 | { | |
38556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38557 | result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3); | |
38558 | ||
38559 | wxPyEndAllowThreads(__tstate); | |
38560 | if (PyErr_Occurred()) SWIG_fail; | |
38561 | } | |
38562 | { | |
38563 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
38564 | } | |
38565 | return resultobj; | |
38566 | fail: | |
38567 | return NULL; | |
38568 | } | |
38569 | ||
38570 | ||
c370783e | 38571 | static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38572 | PyObject *resultobj; |
38573 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
bfddbb17 | 38574 | wxGBPosition result; |
d55e5bfc | 38575 | PyObject * obj0 = 0 ; |
d55e5bfc | 38576 | char *kwnames[] = { |
bfddbb17 | 38577 | (char *) "self", NULL |
d55e5bfc RD |
38578 | }; |
38579 | ||
bfddbb17 | 38580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetEndPos",kwnames,&obj0)) goto fail; |
d55e5bfc RD |
38581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, |
38582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d55e5bfc RD |
38583 | { |
38584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
bfddbb17 | 38585 | result = wxGBSizerItem_GetEndPos(arg1); |
d55e5bfc RD |
38586 | |
38587 | wxPyEndAllowThreads(__tstate); | |
38588 | if (PyErr_Occurred()) SWIG_fail; | |
38589 | } | |
bfddbb17 RD |
38590 | { |
38591 | wxGBPosition * resultptr; | |
38592 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38593 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38594 | } | |
d55e5bfc RD |
38595 | return resultobj; |
38596 | fail: | |
38597 | return NULL; | |
38598 | } | |
38599 | ||
38600 | ||
c370783e | 38601 | static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38602 | PyObject *resultobj; |
38603 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38604 | wxGridBagSizer *result; | |
38605 | PyObject * obj0 = 0 ; | |
38606 | char *kwnames[] = { | |
38607 | (char *) "self", NULL | |
38608 | }; | |
38609 | ||
38610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail; | |
38611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38613 | { | |
38614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38615 | result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer(); | |
38616 | ||
38617 | wxPyEndAllowThreads(__tstate); | |
38618 | if (PyErr_Occurred()) SWIG_fail; | |
38619 | } | |
38620 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0); | |
38621 | return resultobj; | |
38622 | fail: | |
38623 | return NULL; | |
38624 | } | |
38625 | ||
38626 | ||
c370783e | 38627 | static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38628 | PyObject *resultobj; |
38629 | wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ; | |
38630 | wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ; | |
38631 | PyObject * obj0 = 0 ; | |
38632 | PyObject * obj1 = 0 ; | |
38633 | char *kwnames[] = { | |
38634 | (char *) "self",(char *) "sizer", NULL | |
38635 | }; | |
38636 | ||
38637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail; | |
38638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem, | |
38639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38640 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer, | |
38641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38642 | { | |
38643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38644 | (arg1)->SetGBSizer(arg2); | |
38645 | ||
38646 | wxPyEndAllowThreads(__tstate); | |
38647 | if (PyErr_Occurred()) SWIG_fail; | |
38648 | } | |
38649 | Py_INCREF(Py_None); resultobj = Py_None; | |
38650 | return resultobj; | |
38651 | fail: | |
38652 | return NULL; | |
38653 | } | |
38654 | ||
38655 | ||
c370783e | 38656 | static PyObject * GBSizerItem_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
38657 | PyObject *obj; |
38658 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
38659 | SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj); | |
38660 | Py_INCREF(obj); | |
38661 | return Py_BuildValue((char *)""); | |
38662 | } | |
c370783e | 38663 | static PyObject *_wrap_new_GridBagSizer(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38664 | PyObject *resultobj; |
38665 | int arg1 = (int) 0 ; | |
38666 | int arg2 = (int) 0 ; | |
38667 | wxGridBagSizer *result; | |
38668 | PyObject * obj0 = 0 ; | |
38669 | PyObject * obj1 = 0 ; | |
38670 | char *kwnames[] = { | |
38671 | (char *) "vgap",(char *) "hgap", NULL | |
38672 | }; | |
38673 | ||
38674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail; | |
38675 | if (obj0) { | |
c370783e | 38676 | arg1 = (int)SWIG_As_int(obj0); |
d55e5bfc RD |
38677 | if (PyErr_Occurred()) SWIG_fail; |
38678 | } | |
38679 | if (obj1) { | |
c370783e | 38680 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
38681 | if (PyErr_Occurred()) SWIG_fail; |
38682 | } | |
38683 | { | |
38684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38685 | result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2); | |
38686 | ||
38687 | wxPyEndAllowThreads(__tstate); | |
38688 | if (PyErr_Occurred()) SWIG_fail; | |
38689 | } | |
38690 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1); | |
38691 | return resultobj; | |
38692 | fail: | |
38693 | return NULL; | |
38694 | } | |
38695 | ||
38696 | ||
c370783e | 38697 | static PyObject *_wrap_GridBagSizer_Add(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38698 | PyObject *resultobj; |
38699 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38700 | PyObject *arg2 = (PyObject *) 0 ; | |
38701 | wxGBPosition *arg3 = 0 ; | |
38702 | wxGBSpan const &arg4_defvalue = wxDefaultSpan ; | |
38703 | wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ; | |
38704 | int arg5 = (int) 0 ; | |
38705 | int arg6 = (int) 0 ; | |
38706 | PyObject *arg7 = (PyObject *) NULL ; | |
070c48b4 | 38707 | wxGBSizerItem *result; |
d55e5bfc RD |
38708 | wxGBPosition temp3 ; |
38709 | wxGBSpan temp4 ; | |
38710 | PyObject * obj0 = 0 ; | |
38711 | PyObject * obj1 = 0 ; | |
38712 | PyObject * obj2 = 0 ; | |
38713 | PyObject * obj3 = 0 ; | |
38714 | PyObject * obj4 = 0 ; | |
38715 | PyObject * obj5 = 0 ; | |
38716 | PyObject * obj6 = 0 ; | |
38717 | char *kwnames[] = { | |
38718 | (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL | |
38719 | }; | |
38720 | ||
38721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
38722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38724 | arg2 = obj1; | |
38725 | { | |
38726 | arg3 = &temp3; | |
38727 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
38728 | } | |
38729 | if (obj3) { | |
38730 | { | |
38731 | arg4 = &temp4; | |
38732 | if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail; | |
38733 | } | |
38734 | } | |
38735 | if (obj4) { | |
c370783e | 38736 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
38737 | if (PyErr_Occurred()) SWIG_fail; |
38738 | } | |
38739 | if (obj5) { | |
c370783e | 38740 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
38741 | if (PyErr_Occurred()) SWIG_fail; |
38742 | } | |
38743 | if (obj6) { | |
38744 | arg7 = obj6; | |
38745 | } | |
38746 | { | |
38747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
070c48b4 | 38748 | result = (wxGBSizerItem *)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7); |
d55e5bfc RD |
38749 | |
38750 | wxPyEndAllowThreads(__tstate); | |
38751 | if (PyErr_Occurred()) SWIG_fail; | |
38752 | } | |
070c48b4 | 38753 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d55e5bfc RD |
38754 | return resultobj; |
38755 | fail: | |
38756 | return NULL; | |
38757 | } | |
38758 | ||
38759 | ||
c370783e | 38760 | static PyObject *_wrap_GridBagSizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38761 | PyObject *resultobj; |
38762 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38763 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
070c48b4 | 38764 | wxGBSizerItem *result; |
d55e5bfc RD |
38765 | PyObject * obj0 = 0 ; |
38766 | PyObject * obj1 = 0 ; | |
38767 | char *kwnames[] = { | |
38768 | (char *) "self",(char *) "item", NULL | |
38769 | }; | |
38770 | ||
38771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail; | |
38772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38774 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
38775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38776 | { | |
38777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
070c48b4 | 38778 | result = (wxGBSizerItem *)(arg1)->Add(arg2); |
d55e5bfc RD |
38779 | |
38780 | wxPyEndAllowThreads(__tstate); | |
38781 | if (PyErr_Occurred()) SWIG_fail; | |
38782 | } | |
070c48b4 | 38783 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); |
d55e5bfc RD |
38784 | return resultobj; |
38785 | fail: | |
38786 | return NULL; | |
38787 | } | |
38788 | ||
38789 | ||
84f85550 RD |
38790 | static PyObject *_wrap_GridBagSizer_GetCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
38791 | PyObject *resultobj; | |
38792 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38793 | int arg2 ; | |
38794 | int arg3 ; | |
38795 | wxSize result; | |
38796 | PyObject * obj0 = 0 ; | |
38797 | PyObject * obj1 = 0 ; | |
38798 | PyObject * obj2 = 0 ; | |
38799 | char *kwnames[] = { | |
38800 | (char *) "self",(char *) "row",(char *) "col", NULL | |
38801 | }; | |
38802 | ||
38803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridBagSizer_GetCellSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
38804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38806 | arg2 = (int)SWIG_As_int(obj1); | |
38807 | if (PyErr_Occurred()) SWIG_fail; | |
38808 | arg3 = (int)SWIG_As_int(obj2); | |
38809 | if (PyErr_Occurred()) SWIG_fail; | |
38810 | { | |
38811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38812 | result = ((wxGridBagSizer const *)arg1)->GetCellSize(arg2,arg3); | |
38813 | ||
38814 | wxPyEndAllowThreads(__tstate); | |
38815 | if (PyErr_Occurred()) SWIG_fail; | |
38816 | } | |
38817 | { | |
38818 | wxSize * resultptr; | |
38819 | resultptr = new wxSize((wxSize &) result); | |
38820 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
38821 | } | |
38822 | return resultobj; | |
38823 | fail: | |
38824 | return NULL; | |
38825 | } | |
38826 | ||
38827 | ||
c370783e | 38828 | static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38829 | PyObject *resultobj; |
38830 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38831 | wxSize result; | |
38832 | PyObject * obj0 = 0 ; | |
38833 | char *kwnames[] = { | |
38834 | (char *) "self", NULL | |
38835 | }; | |
38836 | ||
38837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail; | |
38838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38840 | { | |
38841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38842 | result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize(); | |
38843 | ||
38844 | wxPyEndAllowThreads(__tstate); | |
38845 | if (PyErr_Occurred()) SWIG_fail; | |
38846 | } | |
38847 | { | |
38848 | wxSize * resultptr; | |
38849 | resultptr = new wxSize((wxSize &) result); | |
38850 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
38851 | } | |
38852 | return resultobj; | |
38853 | fail: | |
38854 | return NULL; | |
38855 | } | |
38856 | ||
38857 | ||
c370783e | 38858 | static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
38859 | PyObject *resultobj; |
38860 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38861 | wxSize *arg2 = 0 ; | |
38862 | wxSize temp2 ; | |
38863 | PyObject * obj0 = 0 ; | |
38864 | PyObject * obj1 = 0 ; | |
38865 | char *kwnames[] = { | |
38866 | (char *) "self",(char *) "sz", NULL | |
38867 | }; | |
38868 | ||
38869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail; | |
38870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38872 | { | |
38873 | arg2 = &temp2; | |
38874 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
38875 | } | |
38876 | { | |
38877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38878 | (arg1)->SetEmptyCellSize((wxSize const &)*arg2); | |
38879 | ||
38880 | wxPyEndAllowThreads(__tstate); | |
38881 | if (PyErr_Occurred()) SWIG_fail; | |
38882 | } | |
38883 | Py_INCREF(Py_None); resultobj = Py_None; | |
38884 | return resultobj; | |
38885 | fail: | |
38886 | return NULL; | |
38887 | } | |
38888 | ||
38889 | ||
c370783e | 38890 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
38891 | PyObject *resultobj; |
38892 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38893 | wxWindow *arg2 = (wxWindow *) 0 ; | |
38894 | wxGBPosition result; | |
38895 | PyObject * obj0 = 0 ; | |
38896 | PyObject * obj1 = 0 ; | |
38897 | ||
38898 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
38899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38901 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
38902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38903 | { | |
38904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38905 | result = (arg1)->GetItemPosition(arg2); | |
38906 | ||
38907 | wxPyEndAllowThreads(__tstate); | |
38908 | if (PyErr_Occurred()) SWIG_fail; | |
38909 | } | |
38910 | { | |
38911 | wxGBPosition * resultptr; | |
38912 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38913 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38914 | } | |
38915 | return resultobj; | |
38916 | fail: | |
38917 | return NULL; | |
38918 | } | |
38919 | ||
38920 | ||
c370783e | 38921 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
38922 | PyObject *resultobj; |
38923 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38924 | wxSizer *arg2 = (wxSizer *) 0 ; | |
38925 | wxGBPosition result; | |
38926 | PyObject * obj0 = 0 ; | |
38927 | PyObject * obj1 = 0 ; | |
38928 | ||
38929 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
38930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38932 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
38933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
38934 | { | |
38935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38936 | result = (arg1)->GetItemPosition(arg2); | |
38937 | ||
38938 | wxPyEndAllowThreads(__tstate); | |
38939 | if (PyErr_Occurred()) SWIG_fail; | |
38940 | } | |
38941 | { | |
38942 | wxGBPosition * resultptr; | |
38943 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38944 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38945 | } | |
38946 | return resultobj; | |
38947 | fail: | |
38948 | return NULL; | |
38949 | } | |
38950 | ||
38951 | ||
c370783e | 38952 | static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
38953 | PyObject *resultobj; |
38954 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
38955 | size_t arg2 ; | |
38956 | wxGBPosition result; | |
38957 | PyObject * obj0 = 0 ; | |
38958 | PyObject * obj1 = 0 ; | |
38959 | ||
38960 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail; | |
38961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
38962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 38963 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
38964 | if (PyErr_Occurred()) SWIG_fail; |
38965 | { | |
38966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38967 | result = (arg1)->GetItemPosition(arg2); | |
38968 | ||
38969 | wxPyEndAllowThreads(__tstate); | |
38970 | if (PyErr_Occurred()) SWIG_fail; | |
38971 | } | |
38972 | { | |
38973 | wxGBPosition * resultptr; | |
38974 | resultptr = new wxGBPosition((wxGBPosition &) result); | |
38975 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1); | |
38976 | } | |
38977 | return resultobj; | |
38978 | fail: | |
38979 | return NULL; | |
38980 | } | |
38981 | ||
38982 | ||
38983 | static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) { | |
38984 | int argc; | |
38985 | PyObject *argv[3]; | |
38986 | int ii; | |
38987 | ||
38988 | argc = PyObject_Length(args); | |
38989 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
38990 | argv[ii] = PyTuple_GetItem(args,ii); | |
38991 | } | |
38992 | if (argc == 2) { | |
38993 | int _v; | |
38994 | { | |
38995 | void *ptr; | |
38996 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
38997 | _v = 0; | |
38998 | PyErr_Clear(); | |
38999 | } else { | |
39000 | _v = 1; | |
39001 | } | |
39002 | } | |
39003 | if (_v) { | |
39004 | { | |
39005 | void *ptr; | |
39006 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39007 | _v = 0; | |
39008 | PyErr_Clear(); | |
39009 | } else { | |
39010 | _v = 1; | |
39011 | } | |
39012 | } | |
39013 | if (_v) { | |
39014 | return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args); | |
39015 | } | |
39016 | } | |
39017 | } | |
39018 | if (argc == 2) { | |
39019 | int _v; | |
39020 | { | |
39021 | void *ptr; | |
39022 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39023 | _v = 0; | |
39024 | PyErr_Clear(); | |
39025 | } else { | |
39026 | _v = 1; | |
39027 | } | |
39028 | } | |
39029 | if (_v) { | |
39030 | { | |
39031 | void *ptr; | |
39032 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39033 | _v = 0; | |
39034 | PyErr_Clear(); | |
39035 | } else { | |
39036 | _v = 1; | |
39037 | } | |
39038 | } | |
39039 | if (_v) { | |
39040 | return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args); | |
39041 | } | |
39042 | } | |
39043 | } | |
39044 | if (argc == 2) { | |
39045 | int _v; | |
39046 | { | |
39047 | void *ptr; | |
39048 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39049 | _v = 0; | |
39050 | PyErr_Clear(); | |
39051 | } else { | |
39052 | _v = 1; | |
39053 | } | |
39054 | } | |
39055 | if (_v) { | |
c370783e | 39056 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39057 | if (_v) { |
39058 | return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args); | |
39059 | } | |
39060 | } | |
39061 | } | |
39062 | ||
39063 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'"); | |
39064 | return NULL; | |
39065 | } | |
39066 | ||
39067 | ||
c370783e | 39068 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39069 | PyObject *resultobj; |
39070 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39071 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39072 | wxGBPosition *arg3 = 0 ; | |
39073 | bool result; | |
39074 | wxGBPosition temp3 ; | |
39075 | PyObject * obj0 = 0 ; | |
39076 | PyObject * obj1 = 0 ; | |
39077 | PyObject * obj2 = 0 ; | |
39078 | ||
39079 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
39080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39082 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39084 | { | |
39085 | arg3 = &temp3; | |
39086 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
39087 | } | |
39088 | { | |
39089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39090 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
39091 | ||
39092 | wxPyEndAllowThreads(__tstate); | |
39093 | if (PyErr_Occurred()) SWIG_fail; | |
39094 | } | |
39095 | { | |
39096 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39097 | } | |
39098 | return resultobj; | |
39099 | fail: | |
39100 | return NULL; | |
39101 | } | |
39102 | ||
39103 | ||
c370783e | 39104 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39105 | PyObject *resultobj; |
39106 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39107 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39108 | wxGBPosition *arg3 = 0 ; | |
39109 | bool result; | |
39110 | wxGBPosition temp3 ; | |
39111 | PyObject * obj0 = 0 ; | |
39112 | PyObject * obj1 = 0 ; | |
39113 | PyObject * obj2 = 0 ; | |
39114 | ||
39115 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
39116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39118 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39120 | { | |
39121 | arg3 = &temp3; | |
39122 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
39123 | } | |
39124 | { | |
39125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39126 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
39127 | ||
39128 | wxPyEndAllowThreads(__tstate); | |
39129 | if (PyErr_Occurred()) SWIG_fail; | |
39130 | } | |
39131 | { | |
39132 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39133 | } | |
39134 | return resultobj; | |
39135 | fail: | |
39136 | return NULL; | |
39137 | } | |
39138 | ||
39139 | ||
c370783e | 39140 | static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
39141 | PyObject *resultobj; |
39142 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39143 | size_t arg2 ; | |
39144 | wxGBPosition *arg3 = 0 ; | |
39145 | bool result; | |
39146 | wxGBPosition temp3 ; | |
39147 | PyObject * obj0 = 0 ; | |
39148 | PyObject * obj1 = 0 ; | |
39149 | PyObject * obj2 = 0 ; | |
39150 | ||
39151 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail; | |
39152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 39154 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
39155 | if (PyErr_Occurred()) SWIG_fail; |
39156 | { | |
39157 | arg3 = &temp3; | |
39158 | if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail; | |
39159 | } | |
39160 | { | |
39161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39162 | result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3); | |
39163 | ||
39164 | wxPyEndAllowThreads(__tstate); | |
39165 | if (PyErr_Occurred()) SWIG_fail; | |
39166 | } | |
39167 | { | |
39168 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39169 | } | |
39170 | return resultobj; | |
39171 | fail: | |
39172 | return NULL; | |
39173 | } | |
39174 | ||
39175 | ||
39176 | static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) { | |
39177 | int argc; | |
39178 | PyObject *argv[4]; | |
39179 | int ii; | |
39180 | ||
39181 | argc = PyObject_Length(args); | |
39182 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
39183 | argv[ii] = PyTuple_GetItem(args,ii); | |
39184 | } | |
39185 | if (argc == 3) { | |
39186 | int _v; | |
39187 | { | |
39188 | void *ptr; | |
39189 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39190 | _v = 0; | |
39191 | PyErr_Clear(); | |
39192 | } else { | |
39193 | _v = 1; | |
39194 | } | |
39195 | } | |
39196 | if (_v) { | |
39197 | { | |
39198 | void *ptr; | |
39199 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39200 | _v = 0; | |
39201 | PyErr_Clear(); | |
39202 | } else { | |
39203 | _v = 1; | |
39204 | } | |
39205 | } | |
39206 | if (_v) { | |
39207 | { | |
39208 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
39209 | } | |
39210 | if (_v) { | |
39211 | return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args); | |
39212 | } | |
39213 | } | |
39214 | } | |
39215 | } | |
39216 | if (argc == 3) { | |
39217 | int _v; | |
39218 | { | |
39219 | void *ptr; | |
39220 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39221 | _v = 0; | |
39222 | PyErr_Clear(); | |
39223 | } else { | |
39224 | _v = 1; | |
39225 | } | |
39226 | } | |
39227 | if (_v) { | |
39228 | { | |
39229 | void *ptr; | |
39230 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39231 | _v = 0; | |
39232 | PyErr_Clear(); | |
39233 | } else { | |
39234 | _v = 1; | |
39235 | } | |
39236 | } | |
39237 | if (_v) { | |
39238 | { | |
39239 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
39240 | } | |
39241 | if (_v) { | |
39242 | return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args); | |
39243 | } | |
39244 | } | |
39245 | } | |
39246 | } | |
39247 | if (argc == 3) { | |
39248 | int _v; | |
39249 | { | |
39250 | void *ptr; | |
39251 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39252 | _v = 0; | |
39253 | PyErr_Clear(); | |
39254 | } else { | |
39255 | _v = 1; | |
39256 | } | |
39257 | } | |
39258 | if (_v) { | |
c370783e | 39259 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39260 | if (_v) { |
39261 | { | |
39262 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2); | |
39263 | } | |
39264 | if (_v) { | |
39265 | return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args); | |
39266 | } | |
39267 | } | |
39268 | } | |
39269 | } | |
39270 | ||
39271 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'"); | |
39272 | return NULL; | |
39273 | } | |
39274 | ||
39275 | ||
c370783e | 39276 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39277 | PyObject *resultobj; |
39278 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39279 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39280 | wxGBSpan result; | |
39281 | PyObject * obj0 = 0 ; | |
39282 | PyObject * obj1 = 0 ; | |
39283 | ||
39284 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
39285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39287 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39289 | { | |
39290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39291 | result = (arg1)->GetItemSpan(arg2); | |
39292 | ||
39293 | wxPyEndAllowThreads(__tstate); | |
39294 | if (PyErr_Occurred()) SWIG_fail; | |
39295 | } | |
39296 | { | |
39297 | wxGBSpan * resultptr; | |
39298 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
39299 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
39300 | } | |
39301 | return resultobj; | |
39302 | fail: | |
39303 | return NULL; | |
39304 | } | |
39305 | ||
39306 | ||
c370783e | 39307 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39308 | PyObject *resultobj; |
39309 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39310 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39311 | wxGBSpan result; | |
39312 | PyObject * obj0 = 0 ; | |
39313 | PyObject * obj1 = 0 ; | |
39314 | ||
39315 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
39316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39318 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39320 | { | |
39321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39322 | result = (arg1)->GetItemSpan(arg2); | |
39323 | ||
39324 | wxPyEndAllowThreads(__tstate); | |
39325 | if (PyErr_Occurred()) SWIG_fail; | |
39326 | } | |
39327 | { | |
39328 | wxGBSpan * resultptr; | |
39329 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
39330 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
39331 | } | |
39332 | return resultobj; | |
39333 | fail: | |
39334 | return NULL; | |
39335 | } | |
39336 | ||
39337 | ||
c370783e | 39338 | static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
39339 | PyObject *resultobj; |
39340 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39341 | size_t arg2 ; | |
39342 | wxGBSpan result; | |
39343 | PyObject * obj0 = 0 ; | |
39344 | PyObject * obj1 = 0 ; | |
39345 | ||
39346 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail; | |
39347 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 39349 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
39350 | if (PyErr_Occurred()) SWIG_fail; |
39351 | { | |
39352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39353 | result = (arg1)->GetItemSpan(arg2); | |
39354 | ||
39355 | wxPyEndAllowThreads(__tstate); | |
39356 | if (PyErr_Occurred()) SWIG_fail; | |
39357 | } | |
39358 | { | |
39359 | wxGBSpan * resultptr; | |
39360 | resultptr = new wxGBSpan((wxGBSpan &) result); | |
39361 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1); | |
39362 | } | |
39363 | return resultobj; | |
39364 | fail: | |
39365 | return NULL; | |
39366 | } | |
39367 | ||
39368 | ||
39369 | static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) { | |
39370 | int argc; | |
39371 | PyObject *argv[3]; | |
39372 | int ii; | |
39373 | ||
39374 | argc = PyObject_Length(args); | |
39375 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
39376 | argv[ii] = PyTuple_GetItem(args,ii); | |
39377 | } | |
39378 | if (argc == 2) { | |
39379 | int _v; | |
39380 | { | |
39381 | void *ptr; | |
39382 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39383 | _v = 0; | |
39384 | PyErr_Clear(); | |
39385 | } else { | |
39386 | _v = 1; | |
39387 | } | |
39388 | } | |
39389 | if (_v) { | |
39390 | { | |
39391 | void *ptr; | |
39392 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39393 | _v = 0; | |
39394 | PyErr_Clear(); | |
39395 | } else { | |
39396 | _v = 1; | |
39397 | } | |
39398 | } | |
39399 | if (_v) { | |
39400 | return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args); | |
39401 | } | |
39402 | } | |
39403 | } | |
39404 | if (argc == 2) { | |
39405 | int _v; | |
39406 | { | |
39407 | void *ptr; | |
39408 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39409 | _v = 0; | |
39410 | PyErr_Clear(); | |
39411 | } else { | |
39412 | _v = 1; | |
39413 | } | |
39414 | } | |
39415 | if (_v) { | |
39416 | { | |
39417 | void *ptr; | |
39418 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39419 | _v = 0; | |
39420 | PyErr_Clear(); | |
39421 | } else { | |
39422 | _v = 1; | |
39423 | } | |
39424 | } | |
39425 | if (_v) { | |
39426 | return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args); | |
39427 | } | |
39428 | } | |
39429 | } | |
39430 | if (argc == 2) { | |
39431 | int _v; | |
39432 | { | |
39433 | void *ptr; | |
39434 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39435 | _v = 0; | |
39436 | PyErr_Clear(); | |
39437 | } else { | |
39438 | _v = 1; | |
39439 | } | |
39440 | } | |
39441 | if (_v) { | |
c370783e | 39442 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39443 | if (_v) { |
39444 | return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args); | |
39445 | } | |
39446 | } | |
39447 | } | |
39448 | ||
39449 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'"); | |
39450 | return NULL; | |
39451 | } | |
39452 | ||
39453 | ||
c370783e | 39454 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39455 | PyObject *resultobj; |
39456 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39457 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39458 | wxGBSpan *arg3 = 0 ; | |
39459 | bool result; | |
39460 | wxGBSpan temp3 ; | |
39461 | PyObject * obj0 = 0 ; | |
39462 | PyObject * obj1 = 0 ; | |
39463 | PyObject * obj2 = 0 ; | |
39464 | ||
39465 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
39466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39468 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39470 | { | |
39471 | arg3 = &temp3; | |
39472 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39473 | } | |
39474 | { | |
39475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39476 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39477 | ||
39478 | wxPyEndAllowThreads(__tstate); | |
39479 | if (PyErr_Occurred()) SWIG_fail; | |
39480 | } | |
39481 | { | |
39482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39483 | } | |
39484 | return resultobj; | |
39485 | fail: | |
39486 | return NULL; | |
39487 | } | |
39488 | ||
39489 | ||
c370783e | 39490 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39491 | PyObject *resultobj; |
39492 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39493 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39494 | wxGBSpan *arg3 = 0 ; | |
39495 | bool result; | |
39496 | wxGBSpan temp3 ; | |
39497 | PyObject * obj0 = 0 ; | |
39498 | PyObject * obj1 = 0 ; | |
39499 | PyObject * obj2 = 0 ; | |
39500 | ||
39501 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
39502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39504 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39506 | { | |
39507 | arg3 = &temp3; | |
39508 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39509 | } | |
39510 | { | |
39511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39512 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39513 | ||
39514 | wxPyEndAllowThreads(__tstate); | |
39515 | if (PyErr_Occurred()) SWIG_fail; | |
39516 | } | |
39517 | { | |
39518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39519 | } | |
39520 | return resultobj; | |
39521 | fail: | |
39522 | return NULL; | |
39523 | } | |
39524 | ||
39525 | ||
c370783e | 39526 | static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *, PyObject *args) { |
d55e5bfc RD |
39527 | PyObject *resultobj; |
39528 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39529 | size_t arg2 ; | |
39530 | wxGBSpan *arg3 = 0 ; | |
39531 | bool result; | |
39532 | wxGBSpan temp3 ; | |
39533 | PyObject * obj0 = 0 ; | |
39534 | PyObject * obj1 = 0 ; | |
39535 | PyObject * obj2 = 0 ; | |
39536 | ||
39537 | if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail; | |
39538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 39540 | arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1); |
d55e5bfc RD |
39541 | if (PyErr_Occurred()) SWIG_fail; |
39542 | { | |
39543 | arg3 = &temp3; | |
39544 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39545 | } | |
39546 | { | |
39547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39548 | result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3); | |
39549 | ||
39550 | wxPyEndAllowThreads(__tstate); | |
39551 | if (PyErr_Occurred()) SWIG_fail; | |
39552 | } | |
39553 | { | |
39554 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39555 | } | |
39556 | return resultobj; | |
39557 | fail: | |
39558 | return NULL; | |
39559 | } | |
39560 | ||
39561 | ||
39562 | static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) { | |
39563 | int argc; | |
39564 | PyObject *argv[4]; | |
39565 | int ii; | |
39566 | ||
39567 | argc = PyObject_Length(args); | |
39568 | for (ii = 0; (ii < argc) && (ii < 3); ii++) { | |
39569 | argv[ii] = PyTuple_GetItem(args,ii); | |
39570 | } | |
39571 | if (argc == 3) { | |
39572 | int _v; | |
39573 | { | |
39574 | void *ptr; | |
39575 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39576 | _v = 0; | |
39577 | PyErr_Clear(); | |
39578 | } else { | |
39579 | _v = 1; | |
39580 | } | |
39581 | } | |
39582 | if (_v) { | |
39583 | { | |
39584 | void *ptr; | |
39585 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39586 | _v = 0; | |
39587 | PyErr_Clear(); | |
39588 | } else { | |
39589 | _v = 1; | |
39590 | } | |
39591 | } | |
39592 | if (_v) { | |
39593 | { | |
39594 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39595 | } | |
39596 | if (_v) { | |
39597 | return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args); | |
39598 | } | |
39599 | } | |
39600 | } | |
39601 | } | |
39602 | if (argc == 3) { | |
39603 | int _v; | |
39604 | { | |
39605 | void *ptr; | |
39606 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39607 | _v = 0; | |
39608 | PyErr_Clear(); | |
39609 | } else { | |
39610 | _v = 1; | |
39611 | } | |
39612 | } | |
39613 | if (_v) { | |
39614 | { | |
39615 | void *ptr; | |
39616 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39617 | _v = 0; | |
39618 | PyErr_Clear(); | |
39619 | } else { | |
39620 | _v = 1; | |
39621 | } | |
39622 | } | |
39623 | if (_v) { | |
39624 | { | |
39625 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39626 | } | |
39627 | if (_v) { | |
39628 | return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args); | |
39629 | } | |
39630 | } | |
39631 | } | |
39632 | } | |
39633 | if (argc == 3) { | |
39634 | int _v; | |
39635 | { | |
39636 | void *ptr; | |
39637 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39638 | _v = 0; | |
39639 | PyErr_Clear(); | |
39640 | } else { | |
39641 | _v = 1; | |
39642 | } | |
39643 | } | |
39644 | if (_v) { | |
c370783e | 39645 | _v = SWIG_Check_unsigned_SS_long(argv[1]); |
d55e5bfc RD |
39646 | if (_v) { |
39647 | { | |
39648 | _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2); | |
39649 | } | |
39650 | if (_v) { | |
39651 | return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args); | |
39652 | } | |
39653 | } | |
39654 | } | |
39655 | } | |
39656 | ||
39657 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'"); | |
39658 | return NULL; | |
39659 | } | |
39660 | ||
39661 | ||
c370783e | 39662 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *, PyObject *args) { |
d55e5bfc RD |
39663 | PyObject *resultobj; |
39664 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39665 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39666 | wxGBSizerItem *result; | |
39667 | PyObject * obj0 = 0 ; | |
39668 | PyObject * obj1 = 0 ; | |
39669 | ||
39670 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
39671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39673 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
39674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39675 | { | |
39676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39677 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
39678 | ||
39679 | wxPyEndAllowThreads(__tstate); | |
39680 | if (PyErr_Occurred()) SWIG_fail; | |
39681 | } | |
39682 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39683 | return resultobj; | |
39684 | fail: | |
39685 | return NULL; | |
39686 | } | |
39687 | ||
39688 | ||
c370783e | 39689 | static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *, PyObject *args) { |
d55e5bfc RD |
39690 | PyObject *resultobj; |
39691 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39692 | wxSizer *arg2 = (wxSizer *) 0 ; | |
39693 | wxGBSizerItem *result; | |
39694 | PyObject * obj0 = 0 ; | |
39695 | PyObject * obj1 = 0 ; | |
39696 | ||
39697 | if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail; | |
39698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39700 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer, | |
39701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39702 | { | |
39703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39704 | result = (wxGBSizerItem *)(arg1)->FindItem(arg2); | |
39705 | ||
39706 | wxPyEndAllowThreads(__tstate); | |
39707 | if (PyErr_Occurred()) SWIG_fail; | |
39708 | } | |
39709 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39710 | return resultobj; | |
39711 | fail: | |
39712 | return NULL; | |
39713 | } | |
39714 | ||
39715 | ||
39716 | static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) { | |
39717 | int argc; | |
39718 | PyObject *argv[3]; | |
39719 | int ii; | |
39720 | ||
39721 | argc = PyObject_Length(args); | |
39722 | for (ii = 0; (ii < argc) && (ii < 2); ii++) { | |
39723 | argv[ii] = PyTuple_GetItem(args,ii); | |
39724 | } | |
39725 | if (argc == 2) { | |
39726 | int _v; | |
39727 | { | |
39728 | void *ptr; | |
39729 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39730 | _v = 0; | |
39731 | PyErr_Clear(); | |
39732 | } else { | |
39733 | _v = 1; | |
39734 | } | |
39735 | } | |
39736 | if (_v) { | |
39737 | { | |
39738 | void *ptr; | |
39739 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) { | |
39740 | _v = 0; | |
39741 | PyErr_Clear(); | |
39742 | } else { | |
39743 | _v = 1; | |
39744 | } | |
39745 | } | |
39746 | if (_v) { | |
39747 | return _wrap_GridBagSizer_FindItem__SWIG_0(self,args); | |
39748 | } | |
39749 | } | |
39750 | } | |
39751 | if (argc == 2) { | |
39752 | int _v; | |
39753 | { | |
39754 | void *ptr; | |
39755 | if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) { | |
39756 | _v = 0; | |
39757 | PyErr_Clear(); | |
39758 | } else { | |
39759 | _v = 1; | |
39760 | } | |
39761 | } | |
39762 | if (_v) { | |
39763 | { | |
39764 | void *ptr; | |
39765 | if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) { | |
39766 | _v = 0; | |
39767 | PyErr_Clear(); | |
39768 | } else { | |
39769 | _v = 1; | |
39770 | } | |
39771 | } | |
39772 | if (_v) { | |
39773 | return _wrap_GridBagSizer_FindItem__SWIG_1(self,args); | |
39774 | } | |
39775 | } | |
39776 | } | |
39777 | ||
39778 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'"); | |
39779 | return NULL; | |
39780 | } | |
39781 | ||
39782 | ||
c370783e | 39783 | static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39784 | PyObject *resultobj; |
39785 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39786 | wxGBPosition *arg2 = 0 ; | |
39787 | wxGBSizerItem *result; | |
39788 | wxGBPosition temp2 ; | |
39789 | PyObject * obj0 = 0 ; | |
39790 | PyObject * obj1 = 0 ; | |
39791 | char *kwnames[] = { | |
39792 | (char *) "self",(char *) "pos", NULL | |
39793 | }; | |
39794 | ||
39795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail; | |
39796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39798 | { | |
39799 | arg2 = &temp2; | |
39800 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
39801 | } | |
39802 | { | |
39803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39804 | result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2); | |
39805 | ||
39806 | wxPyEndAllowThreads(__tstate); | |
39807 | if (PyErr_Occurred()) SWIG_fail; | |
39808 | } | |
39809 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39810 | return resultobj; | |
39811 | fail: | |
39812 | return NULL; | |
39813 | } | |
39814 | ||
39815 | ||
c370783e | 39816 | static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39817 | PyObject *resultobj; |
39818 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39819 | wxPoint *arg2 = 0 ; | |
39820 | wxGBSizerItem *result; | |
39821 | wxPoint temp2 ; | |
39822 | PyObject * obj0 = 0 ; | |
39823 | PyObject * obj1 = 0 ; | |
39824 | char *kwnames[] = { | |
39825 | (char *) "self",(char *) "pt", NULL | |
39826 | }; | |
39827 | ||
39828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail; | |
39829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, | |
39830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39831 | { | |
39832 | arg2 = &temp2; | |
39833 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
39834 | } | |
39835 | { | |
39836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39837 | result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2); | |
39838 | ||
39839 | wxPyEndAllowThreads(__tstate); | |
39840 | if (PyErr_Occurred()) SWIG_fail; | |
39841 | } | |
39842 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0); | |
39843 | return resultobj; | |
39844 | fail: | |
39845 | return NULL; | |
39846 | } | |
39847 | ||
39848 | ||
c370783e | 39849 | static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39850 | PyObject *resultobj; |
39851 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39852 | wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ; | |
39853 | wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ; | |
39854 | bool result; | |
39855 | PyObject * obj0 = 0 ; | |
39856 | PyObject * obj1 = 0 ; | |
39857 | PyObject * obj2 = 0 ; | |
bfddbb17 RD |
39858 | char *kwnames[] = { |
39859 | (char *) "self",(char *) "item",(char *) "excludeItem", NULL | |
39860 | }; | |
d55e5bfc | 39861 | |
bfddbb17 | 39862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
39863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39865 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem, | |
39866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39867 | if (obj2) { | |
39868 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem, | |
39869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39870 | } | |
39871 | { | |
39872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39873 | result = (bool)(arg1)->CheckForIntersection(arg2,arg3); | |
39874 | ||
39875 | wxPyEndAllowThreads(__tstate); | |
39876 | if (PyErr_Occurred()) SWIG_fail; | |
39877 | } | |
39878 | { | |
39879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39880 | } | |
39881 | return resultobj; | |
39882 | fail: | |
39883 | return NULL; | |
39884 | } | |
39885 | ||
39886 | ||
c370783e | 39887 | static PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39888 | PyObject *resultobj; |
39889 | wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ; | |
39890 | wxGBPosition *arg2 = 0 ; | |
39891 | wxGBSpan *arg3 = 0 ; | |
39892 | wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ; | |
39893 | bool result; | |
39894 | wxGBPosition temp2 ; | |
39895 | wxGBSpan temp3 ; | |
39896 | PyObject * obj0 = 0 ; | |
39897 | PyObject * obj1 = 0 ; | |
39898 | PyObject * obj2 = 0 ; | |
39899 | PyObject * obj3 = 0 ; | |
bfddbb17 RD |
39900 | char *kwnames[] = { |
39901 | (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL | |
39902 | }; | |
d55e5bfc | 39903 | |
bfddbb17 | 39904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
d55e5bfc RD |
39905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer, |
39906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39907 | { | |
39908 | arg2 = &temp2; | |
39909 | if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail; | |
39910 | } | |
39911 | { | |
39912 | arg3 = &temp3; | |
39913 | if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail; | |
39914 | } | |
39915 | if (obj3) { | |
39916 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem, | |
39917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
39918 | } | |
39919 | { | |
39920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39921 | result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4); | |
39922 | ||
39923 | wxPyEndAllowThreads(__tstate); | |
39924 | if (PyErr_Occurred()) SWIG_fail; | |
39925 | } | |
39926 | { | |
39927 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
39928 | } | |
39929 | return resultobj; | |
39930 | fail: | |
39931 | return NULL; | |
39932 | } | |
39933 | ||
39934 | ||
c370783e | 39935 | static PyObject * GridBagSizer_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
39936 | PyObject *obj; |
39937 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
39938 | SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj); | |
39939 | Py_INCREF(obj); | |
39940 | return Py_BuildValue((char *)""); | |
39941 | } | |
c370783e | 39942 | static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39943 | PyObject *resultobj; |
39944 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39945 | int arg2 ; | |
39946 | wxWindow *arg3 = (wxWindow *) 0 ; | |
39947 | int arg4 ; | |
39948 | int arg5 = (int) 0 ; | |
39949 | int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ; | |
39950 | PyObject * obj0 = 0 ; | |
39951 | PyObject * obj1 = 0 ; | |
39952 | PyObject * obj2 = 0 ; | |
39953 | PyObject * obj3 = 0 ; | |
39954 | PyObject * obj4 = 0 ; | |
39955 | PyObject * obj5 = 0 ; | |
39956 | char *kwnames[] = { | |
39957 | (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL | |
39958 | }; | |
39959 | ||
39960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
39961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
39962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 39963 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
39964 | if (PyErr_Occurred()) SWIG_fail; |
39965 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
39966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 39967 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
39968 | if (PyErr_Occurred()) SWIG_fail; |
39969 | if (obj4) { | |
c370783e | 39970 | arg5 = (int)SWIG_As_int(obj4); |
d55e5bfc RD |
39971 | if (PyErr_Occurred()) SWIG_fail; |
39972 | } | |
39973 | if (obj5) { | |
c370783e | 39974 | arg6 = (int)SWIG_As_int(obj5); |
d55e5bfc RD |
39975 | if (PyErr_Occurred()) SWIG_fail; |
39976 | } | |
39977 | { | |
39978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39979 | (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6); | |
39980 | ||
39981 | wxPyEndAllowThreads(__tstate); | |
39982 | if (PyErr_Occurred()) SWIG_fail; | |
39983 | } | |
39984 | Py_INCREF(Py_None); resultobj = Py_None; | |
39985 | return resultobj; | |
39986 | fail: | |
39987 | return NULL; | |
39988 | } | |
39989 | ||
39990 | ||
c370783e | 39991 | static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
39992 | PyObject *resultobj; |
39993 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
39994 | wxWindow *arg2 = (wxWindow *) 0 ; | |
39995 | int arg3 = (int) 0 ; | |
39996 | PyObject * obj0 = 0 ; | |
39997 | PyObject * obj1 = 0 ; | |
39998 | PyObject * obj2 = 0 ; | |
39999 | char *kwnames[] = { | |
40000 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
40001 | }; | |
40002 | ||
40003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40006 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40008 | if (obj2) { | |
c370783e | 40009 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40010 | if (PyErr_Occurred()) SWIG_fail; |
40011 | } | |
40012 | { | |
40013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40014 | (arg1)->LeftOf(arg2,arg3); | |
40015 | ||
40016 | wxPyEndAllowThreads(__tstate); | |
40017 | if (PyErr_Occurred()) SWIG_fail; | |
40018 | } | |
40019 | Py_INCREF(Py_None); resultobj = Py_None; | |
40020 | return resultobj; | |
40021 | fail: | |
40022 | return NULL; | |
40023 | } | |
40024 | ||
40025 | ||
c370783e | 40026 | static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40027 | PyObject *resultobj; |
40028 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40029 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40030 | int arg3 = (int) 0 ; | |
40031 | PyObject * obj0 = 0 ; | |
40032 | PyObject * obj1 = 0 ; | |
40033 | PyObject * obj2 = 0 ; | |
40034 | char *kwnames[] = { | |
40035 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
40036 | }; | |
40037 | ||
40038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40041 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40043 | if (obj2) { | |
c370783e | 40044 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40045 | if (PyErr_Occurred()) SWIG_fail; |
40046 | } | |
40047 | { | |
40048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40049 | (arg1)->RightOf(arg2,arg3); | |
40050 | ||
40051 | wxPyEndAllowThreads(__tstate); | |
40052 | if (PyErr_Occurred()) SWIG_fail; | |
40053 | } | |
40054 | Py_INCREF(Py_None); resultobj = Py_None; | |
40055 | return resultobj; | |
40056 | fail: | |
40057 | return NULL; | |
40058 | } | |
40059 | ||
40060 | ||
c370783e | 40061 | static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40062 | PyObject *resultobj; |
40063 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40064 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40065 | int arg3 = (int) 0 ; | |
40066 | PyObject * obj0 = 0 ; | |
40067 | PyObject * obj1 = 0 ; | |
40068 | PyObject * obj2 = 0 ; | |
40069 | char *kwnames[] = { | |
40070 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
40071 | }; | |
40072 | ||
40073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40076 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40078 | if (obj2) { | |
c370783e | 40079 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40080 | if (PyErr_Occurred()) SWIG_fail; |
40081 | } | |
40082 | { | |
40083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40084 | (arg1)->Above(arg2,arg3); | |
40085 | ||
40086 | wxPyEndAllowThreads(__tstate); | |
40087 | if (PyErr_Occurred()) SWIG_fail; | |
40088 | } | |
40089 | Py_INCREF(Py_None); resultobj = Py_None; | |
40090 | return resultobj; | |
40091 | fail: | |
40092 | return NULL; | |
40093 | } | |
40094 | ||
40095 | ||
c370783e | 40096 | static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40097 | PyObject *resultobj; |
40098 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40099 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40100 | int arg3 = (int) 0 ; | |
40101 | PyObject * obj0 = 0 ; | |
40102 | PyObject * obj1 = 0 ; | |
40103 | PyObject * obj2 = 0 ; | |
40104 | char *kwnames[] = { | |
40105 | (char *) "self",(char *) "sibling",(char *) "marg", NULL | |
40106 | }; | |
40107 | ||
40108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40111 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40113 | if (obj2) { | |
c370783e | 40114 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40115 | if (PyErr_Occurred()) SWIG_fail; |
40116 | } | |
40117 | { | |
40118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40119 | (arg1)->Below(arg2,arg3); | |
40120 | ||
40121 | wxPyEndAllowThreads(__tstate); | |
40122 | if (PyErr_Occurred()) SWIG_fail; | |
40123 | } | |
40124 | Py_INCREF(Py_None); resultobj = Py_None; | |
40125 | return resultobj; | |
40126 | fail: | |
40127 | return NULL; | |
40128 | } | |
40129 | ||
40130 | ||
c370783e | 40131 | static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40132 | PyObject *resultobj; |
40133 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40134 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40135 | int arg3 ; | |
40136 | int arg4 = (int) 0 ; | |
40137 | PyObject * obj0 = 0 ; | |
40138 | PyObject * obj1 = 0 ; | |
40139 | PyObject * obj2 = 0 ; | |
40140 | PyObject * obj3 = 0 ; | |
40141 | char *kwnames[] = { | |
40142 | (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL | |
40143 | }; | |
40144 | ||
40145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
40146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40148 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 40150 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc RD |
40151 | if (PyErr_Occurred()) SWIG_fail; |
40152 | if (obj3) { | |
c370783e | 40153 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
40154 | if (PyErr_Occurred()) SWIG_fail; |
40155 | } | |
40156 | { | |
40157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40158 | (arg1)->SameAs(arg2,(wxEdge )arg3,arg4); | |
40159 | ||
40160 | wxPyEndAllowThreads(__tstate); | |
40161 | if (PyErr_Occurred()) SWIG_fail; | |
40162 | } | |
40163 | Py_INCREF(Py_None); resultobj = Py_None; | |
40164 | return resultobj; | |
40165 | fail: | |
40166 | return NULL; | |
40167 | } | |
40168 | ||
40169 | ||
c370783e | 40170 | static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40171 | PyObject *resultobj; |
40172 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40173 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40174 | int arg3 ; | |
40175 | int arg4 ; | |
40176 | PyObject * obj0 = 0 ; | |
40177 | PyObject * obj1 = 0 ; | |
40178 | PyObject * obj2 = 0 ; | |
40179 | PyObject * obj3 = 0 ; | |
40180 | char *kwnames[] = { | |
40181 | (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL | |
40182 | }; | |
40183 | ||
40184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
40185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40187 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 40189 | arg3 = (int)SWIG_As_int(obj2); |
d55e5bfc | 40190 | if (PyErr_Occurred()) SWIG_fail; |
c370783e | 40191 | arg4 = (int)SWIG_As_int(obj3); |
d55e5bfc RD |
40192 | if (PyErr_Occurred()) SWIG_fail; |
40193 | { | |
40194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40195 | (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4); | |
40196 | ||
40197 | wxPyEndAllowThreads(__tstate); | |
40198 | if (PyErr_Occurred()) SWIG_fail; | |
40199 | } | |
40200 | Py_INCREF(Py_None); resultobj = Py_None; | |
40201 | return resultobj; | |
40202 | fail: | |
40203 | return NULL; | |
40204 | } | |
40205 | ||
40206 | ||
c370783e | 40207 | static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40208 | PyObject *resultobj; |
40209 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40210 | int arg2 ; | |
40211 | PyObject * obj0 = 0 ; | |
40212 | PyObject * obj1 = 0 ; | |
40213 | char *kwnames[] = { | |
40214 | (char *) "self",(char *) "val", NULL | |
40215 | }; | |
40216 | ||
40217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail; | |
40218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 40220 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40221 | if (PyErr_Occurred()) SWIG_fail; |
40222 | { | |
40223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40224 | (arg1)->Absolute(arg2); | |
40225 | ||
40226 | wxPyEndAllowThreads(__tstate); | |
40227 | if (PyErr_Occurred()) SWIG_fail; | |
40228 | } | |
40229 | Py_INCREF(Py_None); resultobj = Py_None; | |
40230 | return resultobj; | |
40231 | fail: | |
40232 | return NULL; | |
40233 | } | |
40234 | ||
40235 | ||
c370783e | 40236 | static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40237 | PyObject *resultobj; |
40238 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40239 | PyObject * obj0 = 0 ; | |
40240 | char *kwnames[] = { | |
40241 | (char *) "self", NULL | |
40242 | }; | |
40243 | ||
40244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail; | |
40245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40247 | { | |
40248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40249 | (arg1)->Unconstrained(); | |
40250 | ||
40251 | wxPyEndAllowThreads(__tstate); | |
40252 | if (PyErr_Occurred()) SWIG_fail; | |
40253 | } | |
40254 | Py_INCREF(Py_None); resultobj = Py_None; | |
40255 | return resultobj; | |
40256 | fail: | |
40257 | return NULL; | |
40258 | } | |
40259 | ||
40260 | ||
c370783e | 40261 | static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40262 | PyObject *resultobj; |
40263 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40264 | PyObject * obj0 = 0 ; | |
40265 | char *kwnames[] = { | |
40266 | (char *) "self", NULL | |
40267 | }; | |
40268 | ||
40269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail; | |
40270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40272 | { | |
40273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40274 | (arg1)->AsIs(); | |
40275 | ||
40276 | wxPyEndAllowThreads(__tstate); | |
40277 | if (PyErr_Occurred()) SWIG_fail; | |
40278 | } | |
40279 | Py_INCREF(Py_None); resultobj = Py_None; | |
40280 | return resultobj; | |
40281 | fail: | |
40282 | return NULL; | |
40283 | } | |
40284 | ||
40285 | ||
c370783e | 40286 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40287 | PyObject *resultobj; |
40288 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40289 | wxWindow *result; | |
40290 | PyObject * obj0 = 0 ; | |
40291 | char *kwnames[] = { | |
40292 | (char *) "self", NULL | |
40293 | }; | |
40294 | ||
40295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail; | |
40296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40298 | { | |
40299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40300 | result = (wxWindow *)(arg1)->GetOtherWindow(); | |
40301 | ||
40302 | wxPyEndAllowThreads(__tstate); | |
40303 | if (PyErr_Occurred()) SWIG_fail; | |
40304 | } | |
40305 | { | |
412d302d | 40306 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
40307 | } |
40308 | return resultobj; | |
40309 | fail: | |
40310 | return NULL; | |
40311 | } | |
40312 | ||
40313 | ||
c370783e | 40314 | static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40315 | PyObject *resultobj; |
40316 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40317 | int result; | |
40318 | PyObject * obj0 = 0 ; | |
40319 | char *kwnames[] = { | |
40320 | (char *) "self", NULL | |
40321 | }; | |
40322 | ||
40323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail; | |
40324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40326 | { | |
40327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40328 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge(); | |
40329 | ||
40330 | wxPyEndAllowThreads(__tstate); | |
40331 | if (PyErr_Occurred()) SWIG_fail; | |
40332 | } | |
c370783e | 40333 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40334 | return resultobj; |
40335 | fail: | |
40336 | return NULL; | |
40337 | } | |
40338 | ||
40339 | ||
c370783e | 40340 | static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40341 | PyObject *resultobj; |
40342 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40343 | int arg2 ; | |
40344 | PyObject * obj0 = 0 ; | |
40345 | PyObject * obj1 = 0 ; | |
40346 | char *kwnames[] = { | |
40347 | (char *) "self",(char *) "which", NULL | |
40348 | }; | |
40349 | ||
40350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail; | |
40351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 40353 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40354 | if (PyErr_Occurred()) SWIG_fail; |
40355 | { | |
40356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40357 | (arg1)->SetEdge((wxEdge )arg2); | |
40358 | ||
40359 | wxPyEndAllowThreads(__tstate); | |
40360 | if (PyErr_Occurred()) SWIG_fail; | |
40361 | } | |
40362 | Py_INCREF(Py_None); resultobj = Py_None; | |
40363 | return resultobj; | |
40364 | fail: | |
40365 | return NULL; | |
40366 | } | |
40367 | ||
40368 | ||
c370783e | 40369 | static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40370 | PyObject *resultobj; |
40371 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40372 | int arg2 ; | |
40373 | PyObject * obj0 = 0 ; | |
40374 | PyObject * obj1 = 0 ; | |
40375 | char *kwnames[] = { | |
40376 | (char *) "self",(char *) "v", NULL | |
40377 | }; | |
40378 | ||
40379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
40380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 40382 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40383 | if (PyErr_Occurred()) SWIG_fail; |
40384 | { | |
40385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40386 | (arg1)->SetValue(arg2); | |
40387 | ||
40388 | wxPyEndAllowThreads(__tstate); | |
40389 | if (PyErr_Occurred()) SWIG_fail; | |
40390 | } | |
40391 | Py_INCREF(Py_None); resultobj = Py_None; | |
40392 | return resultobj; | |
40393 | fail: | |
40394 | return NULL; | |
40395 | } | |
40396 | ||
40397 | ||
c370783e | 40398 | static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40399 | PyObject *resultobj; |
40400 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40401 | int result; | |
40402 | PyObject * obj0 = 0 ; | |
40403 | char *kwnames[] = { | |
40404 | (char *) "self", NULL | |
40405 | }; | |
40406 | ||
40407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail; | |
40408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40410 | { | |
40411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40412 | result = (int)(arg1)->GetMargin(); | |
40413 | ||
40414 | wxPyEndAllowThreads(__tstate); | |
40415 | if (PyErr_Occurred()) SWIG_fail; | |
40416 | } | |
c370783e | 40417 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40418 | return resultobj; |
40419 | fail: | |
40420 | return NULL; | |
40421 | } | |
40422 | ||
40423 | ||
c370783e | 40424 | static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40425 | PyObject *resultobj; |
40426 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40427 | int arg2 ; | |
40428 | PyObject * obj0 = 0 ; | |
40429 | PyObject * obj1 = 0 ; | |
40430 | char *kwnames[] = { | |
40431 | (char *) "self",(char *) "m", NULL | |
40432 | }; | |
40433 | ||
40434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail; | |
40435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 40437 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40438 | if (PyErr_Occurred()) SWIG_fail; |
40439 | { | |
40440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40441 | (arg1)->SetMargin(arg2); | |
40442 | ||
40443 | wxPyEndAllowThreads(__tstate); | |
40444 | if (PyErr_Occurred()) SWIG_fail; | |
40445 | } | |
40446 | Py_INCREF(Py_None); resultobj = Py_None; | |
40447 | return resultobj; | |
40448 | fail: | |
40449 | return NULL; | |
40450 | } | |
40451 | ||
40452 | ||
c370783e | 40453 | static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40454 | PyObject *resultobj; |
40455 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40456 | int result; | |
40457 | PyObject * obj0 = 0 ; | |
40458 | char *kwnames[] = { | |
40459 | (char *) "self", NULL | |
40460 | }; | |
40461 | ||
40462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail; | |
40463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40465 | { | |
40466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40467 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue(); | |
40468 | ||
40469 | wxPyEndAllowThreads(__tstate); | |
40470 | if (PyErr_Occurred()) SWIG_fail; | |
40471 | } | |
c370783e | 40472 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40473 | return resultobj; |
40474 | fail: | |
40475 | return NULL; | |
40476 | } | |
40477 | ||
40478 | ||
c370783e | 40479 | static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40480 | PyObject *resultobj; |
40481 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40482 | int result; | |
40483 | PyObject * obj0 = 0 ; | |
40484 | char *kwnames[] = { | |
40485 | (char *) "self", NULL | |
40486 | }; | |
40487 | ||
40488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail; | |
40489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40491 | { | |
40492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40493 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent(); | |
40494 | ||
40495 | wxPyEndAllowThreads(__tstate); | |
40496 | if (PyErr_Occurred()) SWIG_fail; | |
40497 | } | |
c370783e | 40498 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40499 | return resultobj; |
40500 | fail: | |
40501 | return NULL; | |
40502 | } | |
40503 | ||
40504 | ||
c370783e | 40505 | static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40506 | PyObject *resultobj; |
40507 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40508 | int result; | |
40509 | PyObject * obj0 = 0 ; | |
40510 | char *kwnames[] = { | |
40511 | (char *) "self", NULL | |
40512 | }; | |
40513 | ||
40514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail; | |
40515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40517 | { | |
40518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40519 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge(); | |
40520 | ||
40521 | wxPyEndAllowThreads(__tstate); | |
40522 | if (PyErr_Occurred()) SWIG_fail; | |
40523 | } | |
c370783e | 40524 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40525 | return resultobj; |
40526 | fail: | |
40527 | return NULL; | |
40528 | } | |
40529 | ||
40530 | ||
c370783e | 40531 | static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40532 | PyObject *resultobj; |
40533 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40534 | bool result; | |
40535 | PyObject * obj0 = 0 ; | |
40536 | char *kwnames[] = { | |
40537 | (char *) "self", NULL | |
40538 | }; | |
40539 | ||
40540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail; | |
40541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40543 | { | |
40544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40545 | result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone(); | |
40546 | ||
40547 | wxPyEndAllowThreads(__tstate); | |
40548 | if (PyErr_Occurred()) SWIG_fail; | |
40549 | } | |
40550 | { | |
40551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40552 | } | |
40553 | return resultobj; | |
40554 | fail: | |
40555 | return NULL; | |
40556 | } | |
40557 | ||
40558 | ||
c370783e | 40559 | static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40560 | PyObject *resultobj; |
40561 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40562 | bool arg2 ; | |
40563 | PyObject * obj0 = 0 ; | |
40564 | PyObject * obj1 = 0 ; | |
40565 | char *kwnames[] = { | |
40566 | (char *) "self",(char *) "d", NULL | |
40567 | }; | |
40568 | ||
40569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail; | |
40570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 40572 | arg2 = (bool)SWIG_As_bool(obj1); |
d55e5bfc RD |
40573 | if (PyErr_Occurred()) SWIG_fail; |
40574 | { | |
40575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40576 | (arg1)->SetDone(arg2); | |
40577 | ||
40578 | wxPyEndAllowThreads(__tstate); | |
40579 | if (PyErr_Occurred()) SWIG_fail; | |
40580 | } | |
40581 | Py_INCREF(Py_None); resultobj = Py_None; | |
40582 | return resultobj; | |
40583 | fail: | |
40584 | return NULL; | |
40585 | } | |
40586 | ||
40587 | ||
c370783e | 40588 | static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40589 | PyObject *resultobj; |
40590 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40591 | int result; | |
40592 | PyObject * obj0 = 0 ; | |
40593 | char *kwnames[] = { | |
40594 | (char *) "self", NULL | |
40595 | }; | |
40596 | ||
40597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail; | |
40598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40600 | { | |
40601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40602 | result = (int)(arg1)->GetRelationship(); | |
40603 | ||
40604 | wxPyEndAllowThreads(__tstate); | |
40605 | if (PyErr_Occurred()) SWIG_fail; | |
40606 | } | |
c370783e | 40607 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40608 | return resultobj; |
40609 | fail: | |
40610 | return NULL; | |
40611 | } | |
40612 | ||
40613 | ||
c370783e | 40614 | static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40615 | PyObject *resultobj; |
40616 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40617 | int arg2 ; | |
40618 | PyObject * obj0 = 0 ; | |
40619 | PyObject * obj1 = 0 ; | |
40620 | char *kwnames[] = { | |
40621 | (char *) "self",(char *) "r", NULL | |
40622 | }; | |
40623 | ||
40624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail; | |
40625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 40627 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40628 | if (PyErr_Occurred()) SWIG_fail; |
40629 | { | |
40630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40631 | (arg1)->SetRelationship((wxRelationship )arg2); | |
40632 | ||
40633 | wxPyEndAllowThreads(__tstate); | |
40634 | if (PyErr_Occurred()) SWIG_fail; | |
40635 | } | |
40636 | Py_INCREF(Py_None); resultobj = Py_None; | |
40637 | return resultobj; | |
40638 | fail: | |
40639 | return NULL; | |
40640 | } | |
40641 | ||
40642 | ||
c370783e | 40643 | static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40644 | PyObject *resultobj; |
40645 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40646 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40647 | bool result; | |
40648 | PyObject * obj0 = 0 ; | |
40649 | PyObject * obj1 = 0 ; | |
40650 | char *kwnames[] = { | |
40651 | (char *) "self",(char *) "otherW", NULL | |
40652 | }; | |
40653 | ||
40654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail; | |
40655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40657 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40659 | { | |
40660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40661 | result = (bool)(arg1)->ResetIfWin(arg2); | |
40662 | ||
40663 | wxPyEndAllowThreads(__tstate); | |
40664 | if (PyErr_Occurred()) SWIG_fail; | |
40665 | } | |
40666 | { | |
40667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40668 | } | |
40669 | return resultobj; | |
40670 | fail: | |
40671 | return NULL; | |
40672 | } | |
40673 | ||
40674 | ||
c370783e | 40675 | static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40676 | PyObject *resultobj; |
40677 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40678 | wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ; | |
40679 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40680 | bool result; | |
40681 | PyObject * obj0 = 0 ; | |
40682 | PyObject * obj1 = 0 ; | |
40683 | PyObject * obj2 = 0 ; | |
40684 | char *kwnames[] = { | |
40685 | (char *) "self",(char *) "constraints",(char *) "win", NULL | |
40686 | }; | |
40687 | ||
40688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
40689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40691 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints, | |
40692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40693 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
40694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40695 | { | |
40696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40697 | result = (bool)(arg1)->SatisfyConstraint(arg2,arg3); | |
40698 | ||
40699 | wxPyEndAllowThreads(__tstate); | |
40700 | if (PyErr_Occurred()) SWIG_fail; | |
40701 | } | |
40702 | { | |
40703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40704 | } | |
40705 | return resultobj; | |
40706 | fail: | |
40707 | return NULL; | |
40708 | } | |
40709 | ||
40710 | ||
c370783e | 40711 | static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40712 | PyObject *resultobj; |
40713 | wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ; | |
40714 | int arg2 ; | |
40715 | wxWindow *arg3 = (wxWindow *) 0 ; | |
40716 | wxWindow *arg4 = (wxWindow *) 0 ; | |
40717 | int result; | |
40718 | PyObject * obj0 = 0 ; | |
40719 | PyObject * obj1 = 0 ; | |
40720 | PyObject * obj2 = 0 ; | |
40721 | PyObject * obj3 = 0 ; | |
40722 | char *kwnames[] = { | |
40723 | (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL | |
40724 | }; | |
40725 | ||
40726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
40727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint, | |
40728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c370783e | 40729 | arg2 = (int)SWIG_As_int(obj1); |
d55e5bfc RD |
40730 | if (PyErr_Occurred()) SWIG_fail; |
40731 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
40732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40733 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
40734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40735 | { | |
40736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40737 | result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4); | |
40738 | ||
40739 | wxPyEndAllowThreads(__tstate); | |
40740 | if (PyErr_Occurred()) SWIG_fail; | |
40741 | } | |
c370783e | 40742 | resultobj = SWIG_From_int((int)result); |
d55e5bfc RD |
40743 | return resultobj; |
40744 | fail: | |
40745 | return NULL; | |
40746 | } | |
40747 | ||
40748 | ||
c370783e | 40749 | static PyObject * IndividualLayoutConstraint_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
40750 | PyObject *obj; |
40751 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
40752 | SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj); | |
40753 | Py_INCREF(obj); | |
40754 | return Py_BuildValue((char *)""); | |
40755 | } | |
c370783e | 40756 | static PyObject *_wrap_LayoutConstraints_left_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40757 | PyObject *resultobj; |
40758 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40759 | wxIndividualLayoutConstraint *result; | |
40760 | PyObject * obj0 = 0 ; | |
40761 | char *kwnames[] = { | |
40762 | (char *) "self", NULL | |
40763 | }; | |
40764 | ||
40765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail; | |
40766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40768 | result = (wxIndividualLayoutConstraint *)& ((arg1)->left); | |
40769 | ||
40770 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40771 | return resultobj; | |
40772 | fail: | |
40773 | return NULL; | |
40774 | } | |
40775 | ||
40776 | ||
c370783e | 40777 | static PyObject *_wrap_LayoutConstraints_top_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40778 | PyObject *resultobj; |
40779 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40780 | wxIndividualLayoutConstraint *result; | |
40781 | PyObject * obj0 = 0 ; | |
40782 | char *kwnames[] = { | |
40783 | (char *) "self", NULL | |
40784 | }; | |
40785 | ||
40786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail; | |
40787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40789 | result = (wxIndividualLayoutConstraint *)& ((arg1)->top); | |
40790 | ||
40791 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40792 | return resultobj; | |
40793 | fail: | |
40794 | return NULL; | |
40795 | } | |
40796 | ||
40797 | ||
c370783e | 40798 | static PyObject *_wrap_LayoutConstraints_right_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40799 | PyObject *resultobj; |
40800 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40801 | wxIndividualLayoutConstraint *result; | |
40802 | PyObject * obj0 = 0 ; | |
40803 | char *kwnames[] = { | |
40804 | (char *) "self", NULL | |
40805 | }; | |
40806 | ||
40807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail; | |
40808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40810 | result = (wxIndividualLayoutConstraint *)& ((arg1)->right); | |
40811 | ||
40812 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40813 | return resultobj; | |
40814 | fail: | |
40815 | return NULL; | |
40816 | } | |
40817 | ||
40818 | ||
c370783e | 40819 | static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40820 | PyObject *resultobj; |
40821 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40822 | wxIndividualLayoutConstraint *result; | |
40823 | PyObject * obj0 = 0 ; | |
40824 | char *kwnames[] = { | |
40825 | (char *) "self", NULL | |
40826 | }; | |
40827 | ||
40828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail; | |
40829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40831 | result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom); | |
40832 | ||
40833 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40834 | return resultobj; | |
40835 | fail: | |
40836 | return NULL; | |
40837 | } | |
40838 | ||
40839 | ||
c370783e | 40840 | static PyObject *_wrap_LayoutConstraints_width_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40841 | PyObject *resultobj; |
40842 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40843 | wxIndividualLayoutConstraint *result; | |
40844 | PyObject * obj0 = 0 ; | |
40845 | char *kwnames[] = { | |
40846 | (char *) "self", NULL | |
40847 | }; | |
40848 | ||
40849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail; | |
40850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40852 | result = (wxIndividualLayoutConstraint *)& ((arg1)->width); | |
40853 | ||
40854 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40855 | return resultobj; | |
40856 | fail: | |
40857 | return NULL; | |
40858 | } | |
40859 | ||
40860 | ||
c370783e | 40861 | static PyObject *_wrap_LayoutConstraints_height_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40862 | PyObject *resultobj; |
40863 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40864 | wxIndividualLayoutConstraint *result; | |
40865 | PyObject * obj0 = 0 ; | |
40866 | char *kwnames[] = { | |
40867 | (char *) "self", NULL | |
40868 | }; | |
40869 | ||
40870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail; | |
40871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40873 | result = (wxIndividualLayoutConstraint *)& ((arg1)->height); | |
40874 | ||
40875 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40876 | return resultobj; | |
40877 | fail: | |
40878 | return NULL; | |
40879 | } | |
40880 | ||
40881 | ||
c370783e | 40882 | static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40883 | PyObject *resultobj; |
40884 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40885 | wxIndividualLayoutConstraint *result; | |
40886 | PyObject * obj0 = 0 ; | |
40887 | char *kwnames[] = { | |
40888 | (char *) "self", NULL | |
40889 | }; | |
40890 | ||
40891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail; | |
40892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40894 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX); | |
40895 | ||
40896 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40897 | return resultobj; | |
40898 | fail: | |
40899 | return NULL; | |
40900 | } | |
40901 | ||
40902 | ||
c370783e | 40903 | static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40904 | PyObject *resultobj; |
40905 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40906 | wxIndividualLayoutConstraint *result; | |
40907 | PyObject * obj0 = 0 ; | |
40908 | char *kwnames[] = { | |
40909 | (char *) "self", NULL | |
40910 | }; | |
40911 | ||
40912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail; | |
40913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40915 | result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY); | |
40916 | ||
40917 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0); | |
40918 | return resultobj; | |
40919 | fail: | |
40920 | return NULL; | |
40921 | } | |
40922 | ||
40923 | ||
c370783e | 40924 | static PyObject *_wrap_new_LayoutConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40925 | PyObject *resultobj; |
40926 | wxLayoutConstraints *result; | |
40927 | char *kwnames[] = { | |
40928 | NULL | |
40929 | }; | |
40930 | ||
40931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail; | |
40932 | { | |
40933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40934 | result = (wxLayoutConstraints *)new wxLayoutConstraints(); | |
40935 | ||
40936 | wxPyEndAllowThreads(__tstate); | |
40937 | if (PyErr_Occurred()) SWIG_fail; | |
40938 | } | |
40939 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1); | |
40940 | return resultobj; | |
40941 | fail: | |
40942 | return NULL; | |
40943 | } | |
40944 | ||
40945 | ||
c370783e | 40946 | static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40947 | PyObject *resultobj; |
40948 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40949 | wxWindow *arg2 = (wxWindow *) 0 ; | |
40950 | int *arg3 = (int *) 0 ; | |
40951 | bool result; | |
40952 | int temp3 ; | |
c370783e | 40953 | int res3 = 0 ; |
d55e5bfc RD |
40954 | PyObject * obj0 = 0 ; |
40955 | PyObject * obj1 = 0 ; | |
40956 | char *kwnames[] = { | |
40957 | (char *) "self",(char *) "win", NULL | |
40958 | }; | |
40959 | ||
c370783e | 40960 | arg3 = &temp3; res3 = SWIG_NEWOBJ; |
d55e5bfc RD |
40961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail; |
40962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40964 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
40965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40966 | { | |
40967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40968 | result = (bool)(arg1)->SatisfyConstraints(arg2,arg3); | |
40969 | ||
40970 | wxPyEndAllowThreads(__tstate); | |
40971 | if (PyErr_Occurred()) SWIG_fail; | |
40972 | } | |
40973 | { | |
40974 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
40975 | } | |
c370783e RD |
40976 | resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ? |
40977 | SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0))); | |
d55e5bfc RD |
40978 | return resultobj; |
40979 | fail: | |
40980 | return NULL; | |
40981 | } | |
40982 | ||
40983 | ||
c370783e | 40984 | static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *, PyObject *args, PyObject *kwargs) { |
d55e5bfc RD |
40985 | PyObject *resultobj; |
40986 | wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ; | |
40987 | bool result; | |
40988 | PyObject * obj0 = 0 ; | |
40989 | char *kwnames[] = { | |
40990 | (char *) "self", NULL | |
40991 | }; | |
40992 | ||
40993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail; | |
40994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints, | |
40995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
40996 | { | |
40997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
40998 | result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied(); | |
40999 | ||
41000 | wxPyEndAllowThreads(__tstate); | |
41001 | if (PyErr_Occurred()) SWIG_fail; | |
41002 | } | |
41003 | { | |
41004 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
41005 | } | |
41006 | return resultobj; | |
41007 | fail: | |
41008 | return NULL; | |
41009 | } | |
41010 | ||
41011 | ||
c370783e | 41012 | static PyObject * LayoutConstraints_swigregister(PyObject *, PyObject *args) { |
d55e5bfc RD |
41013 | PyObject *obj; |
41014 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
41015 | SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj); | |
41016 | Py_INCREF(obj); | |
41017 | return Py_BuildValue((char *)""); | |
41018 | } | |
41019 | static PyMethodDef SwigMethods[] = { | |
c370783e RD |
41020 | { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS, NULL }, |
41021 | { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS, NULL }, | |
41022 | { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41023 | { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41024 | { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS, NULL }, | |
41025 | { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41026 | { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41027 | { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41028 | { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41029 | { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41030 | { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41031 | { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41032 | { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41033 | { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41034 | { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41035 | { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41036 | { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41037 | { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41038 | { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41039 | { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41040 | { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41041 | { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41042 | { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41043 | { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41044 | { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41045 | { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS, NULL }, | |
41046 | { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41047 | { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41048 | { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41049 | { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41050 | { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41051 | { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41052 | { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41053 | { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41054 | { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41055 | { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41056 | { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41057 | { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41058 | { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS, NULL }, | |
41059 | { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41060 | { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41061 | { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41062 | { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41063 | { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41064 | { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41065 | { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41066 | { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41067 | { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41068 | { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41069 | { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41070 | { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41071 | { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41072 | { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41073 | { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS, NULL }, | |
41074 | { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41075 | { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41076 | { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS, NULL }, | |
070c48b4 | 41077 | { (char *)"new_RectS", (PyCFunction) _wrap_new_RectS, METH_VARARGS | METH_KEYWORDS, NULL }, |
c370783e RD |
41078 | { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS, NULL }, |
41079 | { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41080 | { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41081 | { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41082 | { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41083 | { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41084 | { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41085 | { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41086 | { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41087 | { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41088 | { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41089 | { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41090 | { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41091 | { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41092 | { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41093 | { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41094 | { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41095 | { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41096 | { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41097 | { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41098 | { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41099 | { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41100 | { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41101 | { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41102 | { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41103 | { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41104 | { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41105 | { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41106 | { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41107 | { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5cbf236d | 41108 | { (char *)"Rect_Union", (PyCFunction) _wrap_Rect_Union, METH_VARARGS | METH_KEYWORDS, NULL }, |
c370783e RD |
41109 | { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS, NULL }, |
41110 | { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41111 | { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41112 | { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41113 | { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41114 | { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41115 | { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41116 | { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41117 | { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41118 | { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41119 | { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41120 | { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41121 | { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41122 | { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41123 | { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41124 | { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41125 | { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41126 | { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS, NULL }, | |
41127 | { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41128 | { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41129 | { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41130 | { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41131 | { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41132 | { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41133 | { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41134 | { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41135 | { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41136 | { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41137 | { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41138 | { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41139 | { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41140 | { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41141 | { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41142 | { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41143 | { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41144 | { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41145 | { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41146 | { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41147 | { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41148 | { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41149 | { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41150 | { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41151 | { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41152 | { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41153 | { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41154 | { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS, NULL }, | |
41155 | { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
8fb0e70a | 41156 | { (char *)"delete_InputStream", (PyCFunction) _wrap_delete_InputStream, METH_VARARGS | METH_KEYWORDS, NULL }, |
c370783e RD |
41157 | { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS, NULL }, |
41158 | { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41159 | { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41160 | { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41161 | { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41162 | { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41163 | { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41164 | { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41165 | { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41166 | { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41167 | { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41168 | { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41169 | { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41170 | { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41171 | { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41172 | { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41173 | { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS, NULL }, | |
41174 | { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41175 | { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS, NULL }, | |
41176 | { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41177 | { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41178 | { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41179 | { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41180 | { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41181 | { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41182 | { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41183 | { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS, NULL }, | |
41184 | { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS, NULL }, | |
41185 | { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41186 | { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41187 | { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41188 | { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41189 | { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41190 | { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41191 | { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41192 | { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41193 | { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41194 | { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41195 | { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41196 | { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS, NULL }, | |
41197 | { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41198 | { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41199 | { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41200 | { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41201 | { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41202 | { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41203 | { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41204 | { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41205 | { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41206 | { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c370783e | 41207 | { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS, NULL }, |
b411df4a | 41208 | { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS, NULL }, |
c370783e RD |
41209 | { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, |
41210 | { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41211 | { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41212 | { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS, NULL }, | |
41213 | { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41214 | { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41215 | { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41216 | { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41217 | { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41218 | { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS, NULL }, | |
41219 | { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41220 | { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41221 | { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41222 | { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41223 | { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41224 | { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41225 | { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41226 | { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41227 | { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41228 | { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS, NULL }, | |
41229 | { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41230 | { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41231 | { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41232 | { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41233 | { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41234 | { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41235 | { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41236 | { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41237 | { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41238 | { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS, NULL }, | |
41239 | { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41240 | { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41241 | { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41242 | { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS, NULL }, | |
41243 | { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41244 | { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41245 | { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41246 | { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41247 | { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41248 | { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41249 | { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41250 | { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
03e46024 | 41251 | { (char *)"new_ImageFromDataWithAlpha", (PyCFunction) _wrap_new_ImageFromDataWithAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, |
c370783e RD |
41252 | { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS, NULL }, |
41253 | { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41254 | { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41255 | { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41256 | { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41257 | { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41258 | { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41259 | { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41260 | { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41261 | { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41262 | { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41263 | { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41264 | { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41265 | { (char *)"Image_ConvertAlphaToMask", (PyCFunction) _wrap_Image_ConvertAlphaToMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
8fb0e70a | 41266 | { (char *)"Image_ConvertColourToAlpha", (PyCFunction) _wrap_Image_ConvertColourToAlpha, METH_VARARGS | METH_KEYWORDS, NULL }, |
c370783e RD |
41267 | { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS, NULL }, |
41268 | { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41269 | { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41270 | { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41271 | { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41272 | { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41273 | { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41274 | { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41275 | { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41276 | { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41277 | { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41278 | { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41279 | { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41280 | { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41281 | { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41282 | { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41283 | { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41284 | { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41285 | { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41286 | { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41287 | { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41288 | { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41289 | { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41290 | { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41291 | { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41292 | { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41293 | { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41294 | { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41295 | { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41296 | { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41297 | { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41298 | { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41299 | { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41300 | { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41301 | { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41302 | { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41303 | { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41304 | { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41305 | { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41306 | { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41307 | { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41308 | { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41309 | { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41310 | { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41311 | { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41312 | { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41313 | { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41314 | { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41315 | { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41316 | { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS, NULL }, | |
41317 | { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41318 | { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS, NULL }, | |
41319 | { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41320 | { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS, NULL }, | |
41321 | { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41322 | { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS, NULL }, | |
41323 | { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41324 | { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS, NULL }, | |
41325 | { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41326 | { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS, NULL }, | |
41327 | { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41328 | { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS, NULL }, | |
41329 | { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41330 | { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS, NULL }, | |
41331 | { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41332 | { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS, NULL }, | |
41333 | { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41334 | { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS, NULL }, | |
41335 | { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41336 | { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS, NULL }, | |
41337 | { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41338 | { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS, NULL }, | |
41339 | { (char *)"Quantize_Quantize", (PyCFunction) _wrap_Quantize_Quantize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41340 | { (char *)"Quantize_swigregister", Quantize_swigregister, METH_VARARGS, NULL }, | |
41341 | { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41342 | { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41343 | { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41344 | { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41345 | { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41346 | { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41347 | { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41348 | { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41349 | { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41350 | { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41351 | { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41352 | { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41353 | { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41354 | { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS, NULL }, | |
41355 | { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41356 | { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41357 | { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41358 | { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41359 | { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41360 | { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41361 | { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41362 | { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41363 | { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41364 | { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41365 | { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41366 | { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41367 | { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41368 | { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41369 | { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41370 | { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41371 | { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41372 | { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS, NULL }, | |
41373 | { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41374 | { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41375 | { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS, NULL }, | |
41376 | { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41377 | { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41378 | { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS, NULL }, | |
41379 | { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41380 | { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41381 | { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41382 | { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41383 | { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41384 | { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41385 | { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41386 | { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41387 | { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41388 | { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41389 | { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41390 | { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS, NULL }, | |
41391 | { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41392 | { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41393 | { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41394 | { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41395 | { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS, NULL }, | |
41396 | { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41397 | { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41398 | { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41399 | { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41400 | { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41401 | { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS, NULL }, | |
41402 | { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41403 | { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41404 | { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41405 | { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41406 | { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41407 | { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS, NULL }, | |
41408 | { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41409 | { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41410 | { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41411 | { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41412 | { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41413 | { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41414 | { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41415 | { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41416 | { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41417 | { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41418 | { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41419 | { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41420 | { (char *)"MouseEvent_CmdDown", (PyCFunction) _wrap_MouseEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41421 | { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41422 | { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41423 | { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41424 | { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41425 | { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41426 | { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41427 | { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41428 | { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41429 | { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41430 | { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41431 | { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41432 | { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41433 | { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41434 | { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41435 | { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41436 | { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41437 | { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41438 | { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41439 | { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41440 | { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41441 | { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41442 | { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41443 | { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41444 | { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41445 | { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41446 | { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41447 | { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41448 | { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41449 | { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41450 | { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41451 | { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41452 | { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41453 | { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41454 | { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41455 | { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41456 | { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41457 | { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41458 | { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41459 | { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41460 | { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41461 | { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41462 | { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41463 | { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41464 | { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41465 | { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41466 | { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41467 | { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41468 | { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41469 | { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41470 | { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS, NULL }, | |
41471 | { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41472 | { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41473 | { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41474 | { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41475 | { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41476 | { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41477 | { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS, NULL }, | |
41478 | { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41479 | { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41480 | { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41481 | { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41482 | { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41483 | { (char *)"KeyEvent_CmdDown", (PyCFunction) _wrap_KeyEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41484 | { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41485 | { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41486 | { (char *)"KeyEvent_GetUnicodeKey", (PyCFunction) _wrap_KeyEvent_GetUnicodeKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41487 | { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41488 | { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41489 | { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41490 | { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41491 | { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41492 | { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41493 | { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41494 | { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41495 | { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41496 | { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41497 | { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41498 | { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41499 | { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41500 | { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41501 | { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41502 | { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41503 | { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41504 | { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41505 | { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41506 | { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41507 | { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41508 | { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41509 | { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41510 | { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41511 | { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41512 | { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41513 | { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS, NULL }, | |
41514 | { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41515 | { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41516 | { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41517 | { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41518 | { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41519 | { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41520 | { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41521 | { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41522 | { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41523 | { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS, NULL }, | |
41524 | { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41525 | { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41526 | { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41527 | { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41528 | { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41529 | { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41530 | { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41531 | { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41532 | { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41533 | { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS, NULL }, | |
41534 | { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41535 | { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS, NULL }, | |
41536 | { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41537 | { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS, NULL }, | |
41538 | { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41539 | { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41540 | { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS, NULL }, | |
41541 | { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41542 | { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41543 | { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41544 | { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS, NULL }, | |
41545 | { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41546 | { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41547 | { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS, NULL }, | |
41548 | { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41549 | { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41550 | { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS, NULL }, | |
41551 | { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41552 | { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS, NULL }, | |
41553 | { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41554 | { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41555 | { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41556 | { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41557 | { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS, NULL }, | |
41558 | { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41559 | { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41560 | { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41561 | { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41562 | { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41563 | { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41564 | { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41565 | { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS, NULL }, | |
41566 | { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41567 | { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41568 | { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41569 | { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS, NULL }, | |
41570 | { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41571 | { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41572 | { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS, NULL }, | |
41573 | { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41574 | { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS, NULL }, | |
41575 | { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41576 | { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41577 | { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41578 | { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS, NULL }, | |
41579 | { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41580 | { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41581 | { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41582 | { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41583 | { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41584 | { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41585 | { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41586 | { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41587 | { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41588 | { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41589 | { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41590 | { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41591 | { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41592 | { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41593 | { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41594 | { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41595 | { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS, NULL }, | |
41596 | { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41597 | { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41598 | { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41599 | { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41600 | { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41601 | { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41602 | { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41603 | { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41604 | { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41605 | { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41606 | { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS, NULL }, | |
41607 | { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41608 | { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41609 | { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41610 | { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS, NULL }, | |
41611 | { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41612 | { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41613 | { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41614 | { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41615 | { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41616 | { (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41617 | { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41618 | { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41619 | { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS, NULL }, | |
41620 | { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41621 | { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41622 | { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS, NULL }, | |
41623 | { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41624 | { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41625 | { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS, NULL }, | |
41626 | { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41627 | { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41628 | { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41629 | { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS, NULL }, | |
41630 | { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41631 | { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41632 | { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41633 | { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41634 | { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41635 | { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41636 | { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS, NULL }, | |
41637 | { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41638 | { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41639 | { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41640 | { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41641 | { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS, NULL }, | |
41642 | { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41643 | { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41644 | { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41645 | { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41646 | { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS, NULL }, | |
41647 | { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41648 | { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41649 | { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41650 | { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41651 | { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41652 | { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41653 | { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41654 | { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41655 | { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41656 | { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41657 | { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41658 | { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41659 | { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
84f85550 | 41660 | { (char *)"PyApp_IsMainLoopRunning", (PyCFunction) _wrap_PyApp_IsMainLoopRunning, METH_VARARGS | METH_KEYWORDS, NULL }, |
c370783e RD |
41661 | { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS, NULL }, |
41662 | { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41663 | { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41664 | { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41665 | { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41666 | { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41667 | { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41668 | { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41669 | { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41670 | { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41671 | { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41672 | { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41673 | { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41674 | { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41675 | { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41676 | { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41677 | { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41678 | { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41679 | { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41680 | { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41681 | { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41682 | { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41683 | { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41684 | { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41685 | { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41686 | { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41687 | { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41688 | { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41689 | { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41690 | { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41691 | { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS, NULL }, | |
41692 | { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41693 | { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41694 | { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41695 | { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41696 | { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41697 | { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41698 | { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41699 | { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
5cbf236d RD |
41700 | { (char *)"SetDefaultPyEncoding", (PyCFunction) _wrap_SetDefaultPyEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, |
41701 | { (char *)"GetDefaultPyEncoding", (PyCFunction) _wrap_GetDefaultPyEncoding, METH_VARARGS | METH_KEYWORDS, NULL }, | |
b411df4a RD |
41702 | { (char *)"new_EventLoop", (PyCFunction) _wrap_new_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL }, |
41703 | { (char *)"delete_EventLoop", (PyCFunction) _wrap_delete_EventLoop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41704 | { (char *)"EventLoop_Run", (PyCFunction) _wrap_EventLoop_Run, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41705 | { (char *)"EventLoop_Exit", (PyCFunction) _wrap_EventLoop_Exit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41706 | { (char *)"EventLoop_Pending", (PyCFunction) _wrap_EventLoop_Pending, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41707 | { (char *)"EventLoop_Dispatch", (PyCFunction) _wrap_EventLoop_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41708 | { (char *)"EventLoop_IsRunning", (PyCFunction) _wrap_EventLoop_IsRunning, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41709 | { (char *)"EventLoop_GetActive", (PyCFunction) _wrap_EventLoop_GetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41710 | { (char *)"EventLoop_SetActive", (PyCFunction) _wrap_EventLoop_SetActive, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41711 | { (char *)"EventLoop_swigregister", EventLoop_swigregister, METH_VARARGS, NULL }, | |
c370783e RD |
41712 | { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL }, |
41713 | { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41714 | { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41715 | { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41716 | { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41717 | { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41718 | { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS, NULL }, | |
41719 | { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41720 | { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41721 | { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41722 | { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS, NULL }, | |
41723 | { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41724 | { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41725 | { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41726 | { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41727 | { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41728 | { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41729 | { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41730 | { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41731 | { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41732 | { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS, NULL }, | |
41733 | { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41734 | { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41735 | { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41736 | { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41737 | { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41738 | { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41739 | { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41740 | { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41741 | { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41742 | { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41743 | { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41744 | { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41745 | { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41746 | { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41747 | { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41748 | { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41749 | { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41750 | { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41751 | { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41752 | { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41753 | { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41754 | { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41755 | { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41756 | { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41757 | { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41758 | { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41759 | { (char *)"Window_SetBestFittingSize", (PyCFunction) _wrap_Window_SetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41760 | { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41761 | { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41762 | { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41763 | { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41764 | { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41765 | { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41766 | { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41767 | { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41768 | { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41769 | { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41770 | { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41771 | { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41772 | { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41773 | { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41774 | { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41775 | { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41776 | { (char *)"Window_InvalidateBestSize", (PyCFunction) _wrap_Window_InvalidateBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41777 | { (char *)"Window_GetBestFittingSize", (PyCFunction) _wrap_Window_GetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41778 | { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41779 | { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41780 | { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41781 | { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41782 | { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41783 | { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41784 | { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41785 | { (char *)"Window_SetSizeHintsSz", (PyCFunction) _wrap_Window_SetSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41786 | { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41787 | { (char *)"Window_SetVirtualSizeHintsSz", (PyCFunction) _wrap_Window_SetVirtualSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41788 | { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41789 | { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41790 | { (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41791 | { (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41792 | { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41793 | { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41794 | { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41795 | { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41796 | { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41797 | { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41798 | { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41799 | { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41800 | { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41801 | { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41802 | { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41803 | { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41804 | { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41805 | { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41806 | { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41807 | { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41808 | { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41809 | { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41810 | { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41811 | { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41812 | { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41813 | { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41814 | { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41815 | { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41816 | { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41817 | { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41818 | { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41819 | { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41820 | { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41821 | { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41822 | { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41823 | { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41824 | { (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41825 | { (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41826 | { (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41827 | { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41828 | { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41829 | { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41830 | { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41831 | { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41832 | { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41833 | { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41834 | { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41835 | { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41836 | { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41837 | { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41838 | { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41839 | { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41840 | { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41841 | { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41842 | { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41843 | { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41844 | { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41845 | { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41846 | { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41847 | { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41848 | { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41849 | { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41850 | { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41851 | { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41852 | { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41853 | { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41854 | { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41855 | { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41856 | { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41857 | { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41858 | { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41859 | { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41860 | { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41861 | { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41862 | { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41863 | { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41864 | { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41865 | { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41866 | { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41867 | { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41868 | { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41869 | { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41870 | { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41871 | { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41872 | { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41873 | { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41874 | { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41875 | { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41876 | { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41877 | { (char *)"Window_SetOwnBackgroundColour", (PyCFunction) _wrap_Window_SetOwnBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41878 | { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41879 | { (char *)"Window_SetOwnForegroundColour", (PyCFunction) _wrap_Window_SetOwnForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41880 | { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41881 | { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41882 | { (char *)"Window_SetBackgroundStyle", (PyCFunction) _wrap_Window_SetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41883 | { (char *)"Window_GetBackgroundStyle", (PyCFunction) _wrap_Window_GetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41884 | { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41885 | { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41886 | { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41887 | { (char *)"Window_SetOwnFont", (PyCFunction) _wrap_Window_SetOwnFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41888 | { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41889 | { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41890 | { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41891 | { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41892 | { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41893 | { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41894 | { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41895 | { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41896 | { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41897 | { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41898 | { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41899 | { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41900 | { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41901 | { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS, NULL }, | |
41902 | { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41903 | { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41904 | { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41905 | { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
629e65c2 RD |
41906 | { (char *)"Window_AssociateHandle", (PyCFunction) _wrap_Window_AssociateHandle, METH_VARARGS | METH_KEYWORDS, NULL }, |
41907 | { (char *)"Window_DissociateHandle", (PyCFunction) _wrap_Window_DissociateHandle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
c370783e RD |
41908 | { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, |
41909 | { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41910 | { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41911 | { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41912 | { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41913 | { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41914 | { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41915 | { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41916 | { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41917 | { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41918 | { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41919 | { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41920 | { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41921 | { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41922 | { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41923 | { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41924 | { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41925 | { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41926 | { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41927 | { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41928 | { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41929 | { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41930 | { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41931 | { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41932 | { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41933 | { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41934 | { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41935 | { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41936 | { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41937 | { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41938 | { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41939 | { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41940 | { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41941 | { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS, NULL }, | |
41942 | { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41943 | { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41944 | { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41945 | { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41946 | { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41947 | { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41948 | { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41949 | { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41950 | { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41951 | { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41952 | { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41953 | { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41954 | { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41955 | { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS, NULL }, | |
41956 | { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41957 | { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41958 | { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS, NULL }, | |
41959 | { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41960 | { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41961 | { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41962 | { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41963 | { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41964 | { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41965 | { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41966 | { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41967 | { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41968 | { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41969 | { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41970 | { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41971 | { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41972 | { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41973 | { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41974 | { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41975 | { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41976 | { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41977 | { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41978 | { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41979 | { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41980 | { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41981 | { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41982 | { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41983 | { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41984 | { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41985 | { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41986 | { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41987 | { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41988 | { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41989 | { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41990 | { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41991 | { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41992 | { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41993 | { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41994 | { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41995 | { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41996 | { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41997 | { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41998 | { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
41999 | { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42000 | { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42001 | { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42002 | { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42003 | { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42004 | { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42005 | { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42006 | { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42007 | { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42008 | { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42009 | { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42010 | { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42011 | { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42012 | { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42013 | { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS, NULL }, | |
42014 | { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42015 | { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42016 | { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42017 | { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42018 | { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42019 | { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42020 | { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42021 | { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42022 | { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42023 | { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42024 | { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42025 | { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42026 | { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42027 | { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42028 | { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42029 | { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42030 | { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42031 | { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42032 | { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42033 | { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42034 | { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42035 | { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42036 | { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42037 | { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42038 | { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42039 | { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42040 | { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS, NULL }, | |
42041 | { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42042 | { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42043 | { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42044 | { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42045 | { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42046 | { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42047 | { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42048 | { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42049 | { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42050 | { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42051 | { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42052 | { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42053 | { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42054 | { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42055 | { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42056 | { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42057 | { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42058 | { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42059 | { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42060 | { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42061 | { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42062 | { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42063 | { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42064 | { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42065 | { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42066 | { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42067 | { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42068 | { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42069 | { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42070 | { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS, NULL }, | |
42071 | { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42072 | { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42073 | { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42074 | { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42075 | { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42076 | { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42077 | { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42078 | { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS, NULL }, | |
42079 | { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42080 | { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42081 | { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42082 | { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42083 | { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42084 | { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42085 | { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42086 | { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42087 | { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42088 | { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42089 | { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42090 | { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42091 | { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42092 | { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42093 | { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42094 | { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42095 | { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS, NULL }, | |
42096 | { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS, NULL }, | |
42097 | { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42098 | { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42099 | { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42100 | { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42101 | { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42102 | { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42103 | { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42104 | { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42105 | { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42106 | { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42107 | { (char *)"SizerItem_GetMinSizeWithBorder", (PyCFunction) _wrap_SizerItem_GetMinSizeWithBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42108 | { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42109 | { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42110 | { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42111 | { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42112 | { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS, NULL }, | |
070c48b4 | 42113 | { (char *)"SizerItem_GetRect", (PyCFunction) _wrap_SizerItem_GetRect, METH_VARARGS | METH_KEYWORDS, NULL }, |
c370783e RD |
42114 | { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS, NULL }, |
42115 | { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42116 | { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42117 | { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42118 | { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42119 | { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42120 | { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42121 | { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42122 | { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42123 | { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42124 | { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42125 | { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42126 | { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42127 | { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42128 | { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42129 | { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42130 | { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42131 | { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42132 | { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42133 | { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS, NULL }, | |
42134 | { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42135 | { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42136 | { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42137 | { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42138 | { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42139 | { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS, NULL }, | |
070c48b4 | 42140 | { (char *)"Sizer_GetItem", (PyCFunction) _wrap_Sizer_GetItem, METH_VARARGS | METH_KEYWORDS, NULL }, |
c370783e RD |
42141 | { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
42142 | { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42143 | { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42144 | { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42145 | { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42146 | { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42147 | { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42148 | { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42149 | { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42150 | { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42151 | { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42152 | { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42153 | { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42154 | { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42155 | { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42156 | { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42157 | { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42158 | { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42159 | { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42160 | { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42161 | { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42162 | { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42163 | { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS, NULL }, | |
42164 | { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42165 | { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42166 | { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS, NULL }, | |
42167 | { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42168 | { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42169 | { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42170 | { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS, NULL }, | |
42171 | { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42172 | { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42173 | { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS, NULL }, | |
42174 | { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42175 | { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42176 | { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42177 | { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42178 | { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42179 | { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42180 | { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42181 | { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42182 | { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42183 | { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS, NULL }, | |
42184 | { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42185 | { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42186 | { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42187 | { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42188 | { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42189 | { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42190 | { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42191 | { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42192 | { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42193 | { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42194 | { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42195 | { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS, NULL }, | |
42196 | { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42197 | { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42198 | { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42199 | { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42200 | { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42201 | { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42202 | { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42203 | { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42204 | { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42205 | { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS, NULL }, | |
42206 | { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42207 | { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42208 | { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42209 | { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42210 | { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42211 | { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42212 | { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42213 | { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42214 | { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42215 | { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS, NULL }, | |
42216 | { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42217 | { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42218 | { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42219 | { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42220 | { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42221 | { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42222 | { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42223 | { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42224 | { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42225 | { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42226 | { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42227 | { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42228 | { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42229 | { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS, NULL }, | |
42230 | { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42231 | { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42232 | { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL }, | |
84f85550 | 42233 | { (char *)"GridBagSizer_GetCellSize", (PyCFunction) _wrap_GridBagSizer_GetCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
c370783e RD |
42234 | { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, |
42235 | { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42236 | { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS, NULL }, | |
42237 | { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS, NULL }, | |
42238 | { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS, NULL }, | |
42239 | { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS, NULL }, | |
42240 | { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS, NULL }, | |
42241 | { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42242 | { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42243 | { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42244 | { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42245 | { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS, NULL }, | |
42246 | { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42247 | { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42248 | { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42249 | { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42250 | { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42251 | { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42252 | { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42253 | { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42254 | { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42255 | { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42256 | { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42257 | { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42258 | { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42259 | { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42260 | { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42261 | { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42262 | { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42263 | { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42264 | { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42265 | { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42266 | { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42267 | { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42268 | { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42269 | { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42270 | { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42271 | { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42272 | { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS, NULL }, | |
42273 | { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42274 | { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42275 | { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42276 | { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42277 | { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42278 | { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42279 | { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42280 | { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42281 | { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42282 | { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42283 | { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS, NULL }, | |
42284 | { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS, NULL }, | |
42285 | { NULL, NULL, 0, NULL } | |
d55e5bfc RD |
42286 | }; |
42287 | ||
42288 | ||
42289 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
42290 | ||
42291 | static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) { | |
42292 | return (void *)((wxSizerItem *) ((wxGBSizerItem *) x)); | |
42293 | } | |
42294 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
42295 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
42296 | } | |
42297 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
42298 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42299 | } | |
42300 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
42301 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42302 | } | |
42303 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
42304 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
42305 | } | |
42306 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
42307 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42308 | } | |
42309 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
42310 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
42311 | } | |
42312 | static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) { | |
42313 | return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42314 | } | |
42315 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
42316 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42317 | } | |
42318 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
42319 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
42320 | } | |
42321 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
42322 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
42323 | } | |
42324 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
42325 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
42326 | } | |
42327 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
42328 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
42329 | } | |
42330 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
42331 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
42332 | } | |
42333 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
42334 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
42335 | } | |
42336 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
42337 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
42338 | } | |
42339 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
42340 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
42341 | } | |
42342 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
42343 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42344 | } | |
42345 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
42346 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
42347 | } | |
42348 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
42349 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42350 | } | |
42351 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
42352 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
42353 | } | |
42354 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
42355 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
42356 | } | |
42357 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
42358 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
42359 | } | |
42360 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
42361 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
42362 | } | |
42363 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
42364 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
42365 | } | |
42366 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
42367 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
42368 | } | |
42369 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
42370 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
42371 | } | |
42372 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
42373 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
42374 | } | |
42375 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
42376 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42377 | } | |
42378 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
42379 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
42380 | } | |
42381 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
42382 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
42383 | } | |
42384 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
42385 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
42386 | } | |
42387 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
42388 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
42389 | } | |
42390 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
42391 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
42392 | } | |
42393 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
42394 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
42395 | } | |
42396 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
42397 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42398 | } | |
42399 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
42400 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
42401 | } | |
42402 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
42403 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
42404 | } | |
42405 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
42406 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42407 | } | |
42408 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
42409 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42410 | } | |
42411 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
42412 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
42413 | } | |
42414 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
42415 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
42416 | } | |
42417 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
42418 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
42419 | } | |
42420 | static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) { | |
42421 | return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42422 | } | |
42423 | static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) { | |
42424 | return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42425 | } | |
42426 | static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) { | |
42427 | return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42428 | } | |
42429 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
42430 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
42431 | } | |
42432 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
42433 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
42434 | } | |
42435 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
42436 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
42437 | } | |
42438 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
42439 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
42440 | } | |
42441 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
42442 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42443 | } | |
42444 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
42445 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
42446 | } | |
42447 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
42448 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
42449 | } | |
42450 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
42451 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
42452 | } | |
42453 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
42454 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
42455 | } | |
42456 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
42457 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
42458 | } | |
42459 | static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) { | |
42460 | return (void *)((wxCURHandler *) ((wxANIHandler *) x)); | |
42461 | } | |
42462 | static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) { | |
42463 | return (void *)((wxICOHandler *) ((wxCURHandler *) x)); | |
42464 | } | |
42465 | static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) { | |
42466 | return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x)); | |
42467 | } | |
42468 | static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) { | |
42469 | return (void *)((wxBMPHandler *) ((wxICOHandler *) x)); | |
42470 | } | |
42471 | static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) { | |
42472 | return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x)); | |
42473 | } | |
42474 | static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) { | |
42475 | return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42476 | } | |
42477 | static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) { | |
42478 | return (void *)((wxImageHandler *) ((wxBMPHandler *) x)); | |
42479 | } | |
42480 | static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) { | |
42481 | return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x)); | |
42482 | } | |
42483 | static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) { | |
42484 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
42485 | } | |
42486 | static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) { | |
42487 | return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42488 | } | |
42489 | static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) { | |
42490 | return (void *)((wxImageHandler *) ((wxPNGHandler *) x)); | |
42491 | } | |
42492 | static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) { | |
42493 | return (void *)((wxImageHandler *) ((wxGIFHandler *) x)); | |
42494 | } | |
42495 | static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) { | |
42496 | return (void *)((wxImageHandler *) ((wxPCXHandler *) x)); | |
42497 | } | |
42498 | static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) { | |
42499 | return (void *)((wxImageHandler *) ((wxJPEGHandler *) x)); | |
42500 | } | |
42501 | static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) { | |
42502 | return (void *)((wxImageHandler *) ((wxPNMHandler *) x)); | |
42503 | } | |
42504 | static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) { | |
42505 | return (void *)((wxImageHandler *) ((wxXPMHandler *) x)); | |
42506 | } | |
42507 | static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) { | |
42508 | return (void *)((wxImageHandler *) ((wxTIFFHandler *) x)); | |
42509 | } | |
42510 | static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) { | |
42511 | return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x)); | |
42512 | } | |
42513 | static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42514 | return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x)); | |
42515 | } | |
42516 | static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42517 | return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x)); | |
42518 | } | |
42519 | static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) { | |
42520 | return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x)); | |
42521 | } | |
42522 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
42523 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
42524 | } | |
42525 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
42526 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
42527 | } | |
42528 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
42529 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42530 | } | |
42531 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
42532 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
42533 | } | |
42534 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
42535 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
42536 | } | |
42537 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
42538 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
42539 | } | |
42540 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
42541 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
42542 | } | |
42543 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
42544 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
42545 | } | |
42546 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
42547 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
42548 | } | |
42549 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
42550 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
42551 | } | |
42552 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
42553 | return (void *)((wxObject *) ((wxSizer *) x)); | |
42554 | } | |
42555 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
42556 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
42557 | } | |
42558 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
42559 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
42560 | } | |
42561 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
42562 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
42563 | } | |
42564 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
42565 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
42566 | } | |
42567 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
42568 | return (void *)((wxObject *) ((wxImage *) x)); | |
42569 | } | |
42570 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
42571 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
42572 | } | |
42573 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
42574 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42575 | } | |
42576 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
42577 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
42578 | } | |
42579 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
42580 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
42581 | } | |
42582 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
42583 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
42584 | } | |
42585 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
42586 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
42587 | } | |
42588 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
42589 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
42590 | } | |
42591 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
42592 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
42593 | } | |
42594 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
42595 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
42596 | } | |
42597 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
42598 | return (void *)((wxObject *) ((wxEvent *) x)); | |
42599 | } | |
42600 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
42601 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
42602 | } | |
42603 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
42604 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
42605 | } | |
42606 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
42607 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
42608 | } | |
42609 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
42610 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
42611 | } | |
42612 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
42613 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
42614 | } | |
42615 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
42616 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
42617 | } | |
42618 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
42619 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42620 | } | |
42621 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
42622 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
42623 | } | |
42624 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
42625 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
42626 | } | |
42627 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
42628 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
42629 | } | |
42630 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
42631 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
42632 | } | |
42633 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
42634 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
42635 | } | |
42636 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
42637 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
42638 | } | |
42639 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
42640 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
42641 | } | |
42642 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
42643 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
42644 | } | |
42645 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
42646 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
42647 | } | |
42648 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
42649 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
42650 | } | |
42651 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
42652 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
42653 | } | |
42654 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
42655 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
42656 | } | |
42657 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
42658 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
42659 | } | |
42660 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
42661 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
42662 | } | |
42663 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
42664 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
42665 | } | |
42666 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
42667 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
42668 | } | |
42669 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
42670 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
42671 | } | |
42672 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
42673 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42674 | } | |
42675 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
42676 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
42677 | } | |
42678 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
42679 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
42680 | } | |
42681 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
42682 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
42683 | } | |
42684 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
42685 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
42686 | } | |
42687 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
42688 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
42689 | } | |
42690 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
42691 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
42692 | } | |
42693 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
42694 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42695 | } | |
42696 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
42697 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
42698 | } | |
42699 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
42700 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
42701 | } | |
42702 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
42703 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
42704 | } | |
42705 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
42706 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
42707 | } | |
42708 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
42709 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
42710 | } | |
42711 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
42712 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
42713 | } | |
42714 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
42715 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
42716 | } | |
42717 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
42718 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42719 | } | |
42720 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
42721 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
42722 | } | |
42723 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
42724 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
42725 | } | |
42726 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
42727 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42728 | } | |
42729 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
42730 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
42731 | } | |
42732 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
42733 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
42734 | } | |
42735 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
42736 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
42737 | } | |
42738 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
42739 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
42740 | } | |
42741 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
42742 | return (void *)((wxWindow *) ((wxControl *) x)); | |
42743 | } | |
42744 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
42745 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
42746 | } | |
42747 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
42748 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
42749 | } | |
42750 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
42751 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
42752 | } | |
42753 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
42754 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
42755 | } | |
42756 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
42757 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
42758 | } | |
42759 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
42760 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
42761 | } | |
42762 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
42763 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
42764 | } | |
42765 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
42766 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
42767 | } | |
42768 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
42769 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
42770 | } | |
42771 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
42772 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
42773 | } | |
42774 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
42775 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
42776 | } | |
42777 | 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}}; | |
42778 | 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}}; | |
42779 | 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}}; | |
42780 | 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}}; | |
42781 | 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 | 42782 | 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 |
42783 | 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}}; |
42784 | 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}}; | |
42785 | 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}}; | |
42786 | 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}}; | |
42787 | 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}}; | |
42788 | 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}}; | |
42789 | 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}}; | |
42790 | 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}}; | |
42791 | 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}}; | |
42792 | 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}}; | |
42793 | 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}}; | |
42794 | 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}}; | |
42795 | 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}}; | |
42796 | 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}}; | |
42797 | 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}}; | |
42798 | 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}}; | |
42799 | 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}}; | |
42800 | 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}}; | |
42801 | 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}}; | |
42802 | 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}}; | |
42803 | 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}}; | |
42804 | 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}}; | |
42805 | 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}}; | |
42806 | 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}}; | |
42807 | 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}}; | |
42808 | 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}}; | |
42809 | 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}}; | |
42810 | 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}}; | |
42811 | 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}}; | |
42812 | 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}}; | |
42813 | 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}}; | |
42814 | 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}}; | |
42815 | 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}}; | |
42816 | 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}}; | |
42817 | 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}}; | |
42818 | 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}}; | |
42819 | 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}}; | |
42820 | 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}}; | |
42821 | 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 |
42822 | 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}}; |
42823 | 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}}; | |
42824 | 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}}; | |
42825 | 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 | 42826 | 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 |
42827 | 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}}; |
42828 | 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}}; | |
42829 | 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}}; | |
42830 | 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}}; | |
42831 | 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}}; | |
42832 | 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}}; | |
42833 | 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}}; | |
42834 | 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}}; | |
42835 | 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}}; | |
42836 | 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}}; | |
42837 | 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}}; | |
42838 | 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}}; | |
42839 | 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}}; | |
42840 | 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}}; | |
42841 | 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}}; | |
42842 | 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}}; | |
42843 | 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}}; | |
42844 | 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}}; | |
42845 | 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}}; | |
42846 | 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}}; | |
42847 | 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}}; | |
42848 | 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}}; | |
42849 | 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}}; | |
42850 | 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}}; | |
42851 | 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}}; | |
42852 | 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}}; | |
42853 | 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}}; | |
42854 | 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}}; | |
42855 | 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}}; | |
42856 | 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}}; | |
42857 | 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}}; | |
42858 | 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}}; | |
42859 | 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}}; | |
42860 | 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}}; | |
42861 | 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}}; | |
42862 | 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}}; | |
42863 | 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}}; | |
42864 | 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}}; | |
42865 | 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}}; | |
42866 | 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}}; | |
42867 | 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}}; | |
42868 | 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}}; | |
42869 | 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}}; | |
42870 | 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}}; | |
42871 | 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}}; | |
42872 | 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}}; | |
42873 | 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}}; | |
42874 | 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}}; | |
42875 | 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}}; | |
42876 | 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}}; | |
42877 | 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}}; | |
42878 | 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}}; | |
42879 | 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}}; | |
42880 | 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}}; | |
42881 | 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}}; | |
42882 | 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}}; | |
42883 | 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}}; | |
42884 | 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}}; | |
42885 | 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 | 42886 | 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 |
42887 | 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}}; |
42888 | 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}}; | |
42889 | 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}}; | |
42890 | 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}}; | |
42891 | 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}}; | |
42892 | 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}}; | |
42893 | 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}}; | |
42894 | ||
42895 | static swig_type_info *swig_types_initial[] = { | |
42896 | _swigt__p_wxLayoutConstraints, | |
42897 | _swigt__p_wxRealPoint, | |
42898 | _swigt__p_wxSizerItem, | |
42899 | _swigt__p_wxGBSizerItem, | |
42900 | _swigt__p_wxScrollEvent, | |
b411df4a | 42901 | _swigt__p_wxEventLoop, |
d55e5bfc RD |
42902 | _swigt__p_wxIndividualLayoutConstraint, |
42903 | _swigt__p_wxSizer, | |
42904 | _swigt__p_wxBoxSizer, | |
42905 | _swigt__p_wxStaticBoxSizer, | |
42906 | _swigt__p_wxGridBagSizer, | |
42907 | _swigt__p_wxAcceleratorEntry, | |
42908 | _swigt__p_wxUpdateUIEvent, | |
42909 | _swigt__p_wxMenu, | |
42910 | _swigt__p_wxEvent, | |
42911 | _swigt__p_wxGridSizer, | |
42912 | _swigt__p_wxFlexGridSizer, | |
42913 | _swigt__p_wxInitDialogEvent, | |
42914 | _swigt__p_wxItemContainer, | |
42915 | _swigt__p_wxNcPaintEvent, | |
42916 | _swigt__p_wxPaintEvent, | |
42917 | _swigt__p_wxSysColourChangedEvent, | |
42918 | _swigt__p_wxMouseCaptureChangedEvent, | |
42919 | _swigt__p_wxDisplayChangedEvent, | |
42920 | _swigt__p_wxPaletteChangedEvent, | |
42921 | _swigt__p_wxControl, | |
42922 | _swigt__p_wxFont, | |
42923 | _swigt__p_wxMenuBarBase, | |
42924 | _swigt__p_wxSetCursorEvent, | |
42925 | _swigt__p_wxFSFile, | |
42926 | _swigt__p_wxCaret, | |
42927 | _swigt__p_wxRegion, | |
42928 | _swigt__p_wxPoint2D, | |
42929 | _swigt__p_int, | |
42930 | _swigt__p_wxSize, | |
42931 | _swigt__p_wxDC, | |
42932 | _swigt__p_wxPySizer, | |
42933 | _swigt__p_wxVisualAttributes, | |
42934 | _swigt__p_wxNotifyEvent, | |
42935 | _swigt__p_wxPyEvent, | |
42936 | _swigt__p_wxPropagationDisabler, | |
42937 | _swigt__p_wxAppTraits, | |
42938 | _swigt__p_wxArrayString, | |
42939 | _swigt__p_wxShowEvent, | |
42940 | _swigt__p_wxToolTip, | |
d55e5bfc RD |
42941 | _swigt__p_wxIconizeEvent, |
42942 | _swigt__p_wxActivateEvent, | |
42943 | _swigt__p_wxMoveEvent, | |
42944 | _swigt__p_wxSizeEvent, | |
c0de73ae | 42945 | _swigt__p_wxMaximizeEvent, |
d55e5bfc RD |
42946 | _swigt__p_wxQueryNewPaletteEvent, |
42947 | _swigt__p_wxWindowCreateEvent, | |
42948 | _swigt__p_wxIdleEvent, | |
42949 | _swigt__p_wxMenuItem, | |
42950 | _swigt__p_wxStaticBox, | |
42951 | _swigt__p_long, | |
42952 | _swigt__p_wxTIFFHandler, | |
42953 | _swigt__p_wxXPMHandler, | |
42954 | _swigt__p_wxPNMHandler, | |
42955 | _swigt__p_wxJPEGHandler, | |
42956 | _swigt__p_wxPCXHandler, | |
42957 | _swigt__p_wxGIFHandler, | |
42958 | _swigt__p_wxPNGHandler, | |
42959 | _swigt__p_wxANIHandler, | |
42960 | _swigt__p_wxMemoryFSHandler, | |
42961 | _swigt__p_wxEvtHandler, | |
42962 | _swigt__p_wxCURHandler, | |
42963 | _swigt__p_wxICOHandler, | |
42964 | _swigt__p_wxBMPHandler, | |
42965 | _swigt__p_wxImageHandler, | |
42966 | _swigt__p_wxFileSystemHandler, | |
42967 | _swigt__p_wxPyFileSystemHandler, | |
42968 | _swigt__p_wxInternetFSHandler, | |
42969 | _swigt__p_wxZipFSHandler, | |
42970 | _swigt__p_wxRect, | |
42971 | _swigt__p_wxGBSpan, | |
42972 | _swigt__p_wxPropagateOnce, | |
42973 | _swigt__p_wxAcceleratorTable, | |
42974 | _swigt__p_char, | |
42975 | _swigt__p_wxGBPosition, | |
42976 | _swigt__p_wxImage, | |
42977 | _swigt__p_wxFrame, | |
42978 | _swigt__p_wxScrollWinEvent, | |
42979 | _swigt__p_wxImageHistogram, | |
42980 | _swigt__p_byte, | |
42981 | _swigt__p_wxPoint, | |
42982 | _swigt__p_wxCursor, | |
42983 | _swigt__p_wxObject, | |
42984 | _swigt__p_wxPyInputStream, | |
42985 | _swigt__p_wxOutputStream, | |
42986 | _swigt__p_wxInputStream, | |
42987 | _swigt__p_wxDateTime, | |
42988 | _swigt__p_wxKeyEvent, | |
42989 | _swigt__p_wxNavigationKeyEvent, | |
42990 | _swigt__p_wxWindowDestroyEvent, | |
42991 | _swigt__p_wxWindow, | |
42992 | _swigt__p_wxMenuBar, | |
42993 | _swigt__p_wxFileSystem, | |
42994 | _swigt__p_wxBitmap, | |
42995 | _swigt__p_wxMenuEvent, | |
42996 | _swigt__p_wxContextMenuEvent, | |
42997 | _swigt__p_unsigned_char, | |
42998 | _swigt__p_wxCloseEvent, | |
42999 | _swigt__p_wxEraseEvent, | |
43000 | _swigt__p_wxMouseEvent, | |
43001 | _swigt__p_wxPyApp, | |
43002 | _swigt__p_wxCommandEvent, | |
43003 | _swigt__p_wxPyCommandEvent, | |
43004 | _swigt__p_wxPyDropTarget, | |
c0de73ae | 43005 | _swigt__p_wxQuantize, |
d55e5bfc RD |
43006 | _swigt__p_wxChildFocusEvent, |
43007 | _swigt__p_wxFocusEvent, | |
43008 | _swigt__p_wxDropFilesEvent, | |
43009 | _swigt__p_wxControlWithItems, | |
43010 | _swigt__p_wxColour, | |
43011 | _swigt__p_wxValidator, | |
43012 | _swigt__p_wxPyValidator, | |
43013 | 0 | |
43014 | }; | |
43015 | ||
43016 | ||
43017 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
43018 | ||
43019 | static swig_const_info swig_const_table[] = { | |
c370783e | 43020 | {0, 0, 0, 0.0, 0, 0}}; |
d55e5bfc RD |
43021 | |
43022 | #ifdef __cplusplus | |
43023 | } | |
43024 | #endif | |
43025 | ||
43026 | #ifdef __cplusplus | |
43027 | extern "C" | |
43028 | #endif | |
43029 | SWIGEXPORT(void) SWIG_init(void) { | |
43030 | static PyObject *SWIG_globals = 0; | |
43031 | static int typeinit = 0; | |
43032 | PyObject *m, *d; | |
43033 | int i; | |
43034 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
43035 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
43036 | d = PyModule_GetDict(m); | |
43037 | ||
43038 | if (!typeinit) { | |
43039 | for (i = 0; swig_types_initial[i]; i++) { | |
43040 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
43041 | } | |
43042 | typeinit = 1; | |
43043 | } | |
43044 | SWIG_InstallConstants(d,swig_const_table); | |
43045 | ||
43046 | ||
43047 | #ifndef wxPyUSE_EXPORT | |
43048 | // Make our API structure a CObject so other modules can import it | |
43049 | // from this module. | |
43050 | PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL); | |
43051 | PyDict_SetItemString(d,"_wxPyCoreAPI", cobj); | |
43052 | Py_XDECREF(cobj); | |
43053 | #endif | |
43054 | ||
c370783e RD |
43055 | PyDict_SetItemString(d,"NOT_FOUND", SWIG_From_int((int)wxNOT_FOUND)); |
43056 | PyDict_SetItemString(d,"VSCROLL", SWIG_From_int((int)wxVSCROLL)); | |
43057 | PyDict_SetItemString(d,"HSCROLL", SWIG_From_int((int)wxHSCROLL)); | |
43058 | PyDict_SetItemString(d,"CAPTION", SWIG_From_int((int)wxCAPTION)); | |
43059 | PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_From_int((int)wxDOUBLE_BORDER)); | |
43060 | PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_From_int((int)wxSUNKEN_BORDER)); | |
43061 | PyDict_SetItemString(d,"RAISED_BORDER", SWIG_From_int((int)wxRAISED_BORDER)); | |
43062 | PyDict_SetItemString(d,"BORDER", SWIG_From_int((int)wxBORDER)); | |
43063 | PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_From_int((int)wxSIMPLE_BORDER)); | |
43064 | PyDict_SetItemString(d,"STATIC_BORDER", SWIG_From_int((int)wxSTATIC_BORDER)); | |
43065 | PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_From_int((int)wxTRANSPARENT_WINDOW)); | |
43066 | PyDict_SetItemString(d,"NO_BORDER", SWIG_From_int((int)wxNO_BORDER)); | |
43067 | PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_From_int((int)wxTAB_TRAVERSAL)); | |
43068 | PyDict_SetItemString(d,"WANTS_CHARS", SWIG_From_int((int)wxWANTS_CHARS)); | |
43069 | PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_From_int((int)wxPOPUP_WINDOW)); | |
43070 | PyDict_SetItemString(d,"CENTER_FRAME", SWIG_From_int((int)wxCENTER_FRAME)); | |
43071 | PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_From_int((int)wxCENTRE_ON_SCREEN)); | |
43072 | PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_From_int((int)wxCENTER_ON_SCREEN)); | |
43073 | PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_From_int((int)wxED_CLIENT_MARGIN)); | |
43074 | PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_From_int((int)wxED_BUTTONS_BOTTOM)); | |
43075 | PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_From_int((int)wxED_BUTTONS_RIGHT)); | |
43076 | PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_From_int((int)wxED_STATIC_LINE)); | |
43077 | PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_From_int((int)wxEXT_DIALOG_STYLE)); | |
43078 | PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_From_int((int)wxCLIP_CHILDREN)); | |
43079 | PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_From_int((int)wxCLIP_SIBLINGS)); | |
43080 | PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_From_int((int)wxALWAYS_SHOW_SB)); | |
43081 | PyDict_SetItemString(d,"RETAINED", SWIG_From_int((int)wxRETAINED)); | |
43082 | PyDict_SetItemString(d,"BACKINGSTORE", SWIG_From_int((int)wxBACKINGSTORE)); | |
43083 | PyDict_SetItemString(d,"COLOURED", SWIG_From_int((int)wxCOLOURED)); | |
43084 | PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_From_int((int)wxFIXED_LENGTH)); | |
43085 | PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_From_int((int)wxLB_NEEDED_SB)); | |
43086 | PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_From_int((int)wxLB_ALWAYS_SB)); | |
43087 | PyDict_SetItemString(d,"LB_SORT", SWIG_From_int((int)wxLB_SORT)); | |
43088 | PyDict_SetItemString(d,"LB_SINGLE", SWIG_From_int((int)wxLB_SINGLE)); | |
43089 | PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_From_int((int)wxLB_MULTIPLE)); | |
43090 | PyDict_SetItemString(d,"LB_EXTENDED", SWIG_From_int((int)wxLB_EXTENDED)); | |
43091 | PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_From_int((int)wxLB_OWNERDRAW)); | |
43092 | PyDict_SetItemString(d,"LB_HSCROLL", SWIG_From_int((int)wxLB_HSCROLL)); | |
43093 | PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_From_int((int)wxPROCESS_ENTER)); | |
43094 | PyDict_SetItemString(d,"PASSWORD", SWIG_From_int((int)wxPASSWORD)); | |
43095 | PyDict_SetItemString(d,"CB_SIMPLE", SWIG_From_int((int)wxCB_SIMPLE)); | |
43096 | PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_From_int((int)wxCB_DROPDOWN)); | |
43097 | PyDict_SetItemString(d,"CB_SORT", SWIG_From_int((int)wxCB_SORT)); | |
43098 | PyDict_SetItemString(d,"CB_READONLY", SWIG_From_int((int)wxCB_READONLY)); | |
43099 | PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_From_int((int)wxRA_HORIZONTAL)); | |
43100 | PyDict_SetItemString(d,"RA_VERTICAL", SWIG_From_int((int)wxRA_VERTICAL)); | |
43101 | PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_From_int((int)wxRA_SPECIFY_ROWS)); | |
43102 | PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_From_int((int)wxRA_SPECIFY_COLS)); | |
43103 | PyDict_SetItemString(d,"RB_GROUP", SWIG_From_int((int)wxRB_GROUP)); | |
43104 | PyDict_SetItemString(d,"RB_SINGLE", SWIG_From_int((int)wxRB_SINGLE)); | |
43105 | PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_From_int((int)wxSL_HORIZONTAL)); | |
43106 | PyDict_SetItemString(d,"SL_VERTICAL", SWIG_From_int((int)wxSL_VERTICAL)); | |
43107 | PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_From_int((int)wxSL_AUTOTICKS)); | |
43108 | PyDict_SetItemString(d,"SL_LABELS", SWIG_From_int((int)wxSL_LABELS)); | |
43109 | PyDict_SetItemString(d,"SL_LEFT", SWIG_From_int((int)wxSL_LEFT)); | |
43110 | PyDict_SetItemString(d,"SL_TOP", SWIG_From_int((int)wxSL_TOP)); | |
43111 | PyDict_SetItemString(d,"SL_RIGHT", SWIG_From_int((int)wxSL_RIGHT)); | |
43112 | PyDict_SetItemString(d,"SL_BOTTOM", SWIG_From_int((int)wxSL_BOTTOM)); | |
43113 | PyDict_SetItemString(d,"SL_BOTH", SWIG_From_int((int)wxSL_BOTH)); | |
43114 | PyDict_SetItemString(d,"SL_SELRANGE", SWIG_From_int((int)wxSL_SELRANGE)); | |
43115 | PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_From_int((int)wxSB_HORIZONTAL)); | |
43116 | PyDict_SetItemString(d,"SB_VERTICAL", SWIG_From_int((int)wxSB_VERTICAL)); | |
43117 | PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_From_int((int)wxST_SIZEGRIP)); | |
43118 | PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_From_int((int)wxST_NO_AUTORESIZE)); | |
43119 | PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_From_int((int)wxFLOOD_SURFACE)); | |
43120 | PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_From_int((int)wxFLOOD_BORDER)); | |
43121 | PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_From_int((int)wxODDEVEN_RULE)); | |
43122 | PyDict_SetItemString(d,"WINDING_RULE", SWIG_From_int((int)wxWINDING_RULE)); | |
43123 | PyDict_SetItemString(d,"TOOL_TOP", SWIG_From_int((int)wxTOOL_TOP)); | |
43124 | PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_From_int((int)wxTOOL_BOTTOM)); | |
43125 | PyDict_SetItemString(d,"TOOL_LEFT", SWIG_From_int((int)wxTOOL_LEFT)); | |
43126 | PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_From_int((int)wxTOOL_RIGHT)); | |
43127 | PyDict_SetItemString(d,"OK", SWIG_From_int((int)wxOK)); | |
43128 | PyDict_SetItemString(d,"YES_NO", SWIG_From_int((int)wxYES_NO)); | |
43129 | PyDict_SetItemString(d,"CANCEL", SWIG_From_int((int)wxCANCEL)); | |
43130 | PyDict_SetItemString(d,"YES", SWIG_From_int((int)wxYES)); | |
43131 | PyDict_SetItemString(d,"NO", SWIG_From_int((int)wxNO)); | |
43132 | PyDict_SetItemString(d,"NO_DEFAULT", SWIG_From_int((int)wxNO_DEFAULT)); | |
43133 | PyDict_SetItemString(d,"YES_DEFAULT", SWIG_From_int((int)wxYES_DEFAULT)); | |
43134 | PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_From_int((int)wxICON_EXCLAMATION)); | |
43135 | PyDict_SetItemString(d,"ICON_HAND", SWIG_From_int((int)wxICON_HAND)); | |
43136 | PyDict_SetItemString(d,"ICON_QUESTION", SWIG_From_int((int)wxICON_QUESTION)); | |
43137 | PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_From_int((int)wxICON_INFORMATION)); | |
43138 | PyDict_SetItemString(d,"ICON_STOP", SWIG_From_int((int)wxICON_STOP)); | |
43139 | PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_From_int((int)wxICON_ASTERISK)); | |
43140 | PyDict_SetItemString(d,"ICON_MASK", SWIG_From_int((int)wxICON_MASK)); | |
43141 | PyDict_SetItemString(d,"ICON_WARNING", SWIG_From_int((int)wxICON_WARNING)); | |
43142 | PyDict_SetItemString(d,"ICON_ERROR", SWIG_From_int((int)wxICON_ERROR)); | |
43143 | PyDict_SetItemString(d,"FORWARD", SWIG_From_int((int)wxFORWARD)); | |
43144 | PyDict_SetItemString(d,"BACKWARD", SWIG_From_int((int)wxBACKWARD)); | |
43145 | PyDict_SetItemString(d,"RESET", SWIG_From_int((int)wxRESET)); | |
43146 | PyDict_SetItemString(d,"HELP", SWIG_From_int((int)wxHELP)); | |
43147 | PyDict_SetItemString(d,"MORE", SWIG_From_int((int)wxMORE)); | |
43148 | PyDict_SetItemString(d,"SETUP", SWIG_From_int((int)wxSETUP)); | |
43149 | PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_From_int((int)wxSIZE_AUTO_WIDTH)); | |
43150 | PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_From_int((int)wxSIZE_AUTO_HEIGHT)); | |
43151 | PyDict_SetItemString(d,"SIZE_AUTO", SWIG_From_int((int)wxSIZE_AUTO)); | |
43152 | PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_From_int((int)wxSIZE_USE_EXISTING)); | |
43153 | PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_From_int((int)wxSIZE_ALLOW_MINUS_ONE)); | |
43154 | PyDict_SetItemString(d,"PORTRAIT", SWIG_From_int((int)wxPORTRAIT)); | |
43155 | PyDict_SetItemString(d,"LANDSCAPE", SWIG_From_int((int)wxLANDSCAPE)); | |
43156 | PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_From_int((int)wxPRINT_QUALITY_HIGH)); | |
43157 | PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_From_int((int)wxPRINT_QUALITY_MEDIUM)); | |
43158 | PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_From_int((int)wxPRINT_QUALITY_LOW)); | |
43159 | PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_From_int((int)wxPRINT_QUALITY_DRAFT)); | |
43160 | PyDict_SetItemString(d,"ID_ANY", SWIG_From_int((int)wxID_ANY)); | |
43161 | PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_From_int((int)wxID_SEPARATOR)); | |
43162 | PyDict_SetItemString(d,"ID_LOWEST", SWIG_From_int((int)wxID_LOWEST)); | |
43163 | PyDict_SetItemString(d,"ID_OPEN", SWIG_From_int((int)wxID_OPEN)); | |
43164 | PyDict_SetItemString(d,"ID_CLOSE", SWIG_From_int((int)wxID_CLOSE)); | |
43165 | PyDict_SetItemString(d,"ID_NEW", SWIG_From_int((int)wxID_NEW)); | |
43166 | PyDict_SetItemString(d,"ID_SAVE", SWIG_From_int((int)wxID_SAVE)); | |
43167 | PyDict_SetItemString(d,"ID_SAVEAS", SWIG_From_int((int)wxID_SAVEAS)); | |
43168 | PyDict_SetItemString(d,"ID_REVERT", SWIG_From_int((int)wxID_REVERT)); | |
43169 | PyDict_SetItemString(d,"ID_EXIT", SWIG_From_int((int)wxID_EXIT)); | |
43170 | PyDict_SetItemString(d,"ID_UNDO", SWIG_From_int((int)wxID_UNDO)); | |
43171 | PyDict_SetItemString(d,"ID_REDO", SWIG_From_int((int)wxID_REDO)); | |
43172 | PyDict_SetItemString(d,"ID_HELP", SWIG_From_int((int)wxID_HELP)); | |
43173 | PyDict_SetItemString(d,"ID_PRINT", SWIG_From_int((int)wxID_PRINT)); | |
43174 | PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_From_int((int)wxID_PRINT_SETUP)); | |
43175 | PyDict_SetItemString(d,"ID_PREVIEW", SWIG_From_int((int)wxID_PREVIEW)); | |
43176 | PyDict_SetItemString(d,"ID_ABOUT", SWIG_From_int((int)wxID_ABOUT)); | |
43177 | PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_From_int((int)wxID_HELP_CONTENTS)); | |
43178 | PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_From_int((int)wxID_HELP_COMMANDS)); | |
43179 | PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_From_int((int)wxID_HELP_PROCEDURES)); | |
43180 | PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_From_int((int)wxID_HELP_CONTEXT)); | |
43181 | PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_From_int((int)wxID_CLOSE_ALL)); | |
43182 | PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_From_int((int)wxID_PREFERENCES)); | |
43183 | PyDict_SetItemString(d,"ID_CUT", SWIG_From_int((int)wxID_CUT)); | |
43184 | PyDict_SetItemString(d,"ID_COPY", SWIG_From_int((int)wxID_COPY)); | |
43185 | PyDict_SetItemString(d,"ID_PASTE", SWIG_From_int((int)wxID_PASTE)); | |
43186 | PyDict_SetItemString(d,"ID_CLEAR", SWIG_From_int((int)wxID_CLEAR)); | |
43187 | PyDict_SetItemString(d,"ID_FIND", SWIG_From_int((int)wxID_FIND)); | |
43188 | PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_From_int((int)wxID_DUPLICATE)); | |
43189 | PyDict_SetItemString(d,"ID_SELECTALL", SWIG_From_int((int)wxID_SELECTALL)); | |
43190 | PyDict_SetItemString(d,"ID_DELETE", SWIG_From_int((int)wxID_DELETE)); | |
43191 | PyDict_SetItemString(d,"ID_REPLACE", SWIG_From_int((int)wxID_REPLACE)); | |
43192 | PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_From_int((int)wxID_REPLACE_ALL)); | |
43193 | PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_From_int((int)wxID_PROPERTIES)); | |
43194 | PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_From_int((int)wxID_VIEW_DETAILS)); | |
43195 | PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_From_int((int)wxID_VIEW_LARGEICONS)); | |
43196 | PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_From_int((int)wxID_VIEW_SMALLICONS)); | |
43197 | PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_From_int((int)wxID_VIEW_LIST)); | |
43198 | PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_From_int((int)wxID_VIEW_SORTDATE)); | |
43199 | PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_From_int((int)wxID_VIEW_SORTNAME)); | |
43200 | PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_From_int((int)wxID_VIEW_SORTSIZE)); | |
43201 | PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_From_int((int)wxID_VIEW_SORTTYPE)); | |
43202 | PyDict_SetItemString(d,"ID_FILE1", SWIG_From_int((int)wxID_FILE1)); | |
43203 | PyDict_SetItemString(d,"ID_FILE2", SWIG_From_int((int)wxID_FILE2)); | |
43204 | PyDict_SetItemString(d,"ID_FILE3", SWIG_From_int((int)wxID_FILE3)); | |
43205 | PyDict_SetItemString(d,"ID_FILE4", SWIG_From_int((int)wxID_FILE4)); | |
43206 | PyDict_SetItemString(d,"ID_FILE5", SWIG_From_int((int)wxID_FILE5)); | |
43207 | PyDict_SetItemString(d,"ID_FILE6", SWIG_From_int((int)wxID_FILE6)); | |
43208 | PyDict_SetItemString(d,"ID_FILE7", SWIG_From_int((int)wxID_FILE7)); | |
43209 | PyDict_SetItemString(d,"ID_FILE8", SWIG_From_int((int)wxID_FILE8)); | |
43210 | PyDict_SetItemString(d,"ID_FILE9", SWIG_From_int((int)wxID_FILE9)); | |
43211 | PyDict_SetItemString(d,"ID_OK", SWIG_From_int((int)wxID_OK)); | |
43212 | PyDict_SetItemString(d,"ID_CANCEL", SWIG_From_int((int)wxID_CANCEL)); | |
43213 | PyDict_SetItemString(d,"ID_APPLY", SWIG_From_int((int)wxID_APPLY)); | |
43214 | PyDict_SetItemString(d,"ID_YES", SWIG_From_int((int)wxID_YES)); | |
43215 | PyDict_SetItemString(d,"ID_NO", SWIG_From_int((int)wxID_NO)); | |
43216 | PyDict_SetItemString(d,"ID_STATIC", SWIG_From_int((int)wxID_STATIC)); | |
43217 | PyDict_SetItemString(d,"ID_FORWARD", SWIG_From_int((int)wxID_FORWARD)); | |
43218 | PyDict_SetItemString(d,"ID_BACKWARD", SWIG_From_int((int)wxID_BACKWARD)); | |
43219 | PyDict_SetItemString(d,"ID_DEFAULT", SWIG_From_int((int)wxID_DEFAULT)); | |
43220 | PyDict_SetItemString(d,"ID_MORE", SWIG_From_int((int)wxID_MORE)); | |
43221 | PyDict_SetItemString(d,"ID_SETUP", SWIG_From_int((int)wxID_SETUP)); | |
43222 | PyDict_SetItemString(d,"ID_RESET", SWIG_From_int((int)wxID_RESET)); | |
43223 | PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_From_int((int)wxID_CONTEXT_HELP)); | |
43224 | PyDict_SetItemString(d,"ID_YESTOALL", SWIG_From_int((int)wxID_YESTOALL)); | |
43225 | PyDict_SetItemString(d,"ID_NOTOALL", SWIG_From_int((int)wxID_NOTOALL)); | |
43226 | PyDict_SetItemString(d,"ID_ABORT", SWIG_From_int((int)wxID_ABORT)); | |
43227 | PyDict_SetItemString(d,"ID_RETRY", SWIG_From_int((int)wxID_RETRY)); | |
43228 | PyDict_SetItemString(d,"ID_IGNORE", SWIG_From_int((int)wxID_IGNORE)); | |
43229 | PyDict_SetItemString(d,"ID_ADD", SWIG_From_int((int)wxID_ADD)); | |
43230 | PyDict_SetItemString(d,"ID_REMOVE", SWIG_From_int((int)wxID_REMOVE)); | |
43231 | PyDict_SetItemString(d,"ID_UP", SWIG_From_int((int)wxID_UP)); | |
43232 | PyDict_SetItemString(d,"ID_DOWN", SWIG_From_int((int)wxID_DOWN)); | |
43233 | PyDict_SetItemString(d,"ID_HOME", SWIG_From_int((int)wxID_HOME)); | |
43234 | PyDict_SetItemString(d,"ID_REFRESH", SWIG_From_int((int)wxID_REFRESH)); | |
43235 | PyDict_SetItemString(d,"ID_STOP", SWIG_From_int((int)wxID_STOP)); | |
43236 | PyDict_SetItemString(d,"ID_INDEX", SWIG_From_int((int)wxID_INDEX)); | |
43237 | PyDict_SetItemString(d,"ID_BOLD", SWIG_From_int((int)wxID_BOLD)); | |
43238 | PyDict_SetItemString(d,"ID_ITALIC", SWIG_From_int((int)wxID_ITALIC)); | |
43239 | PyDict_SetItemString(d,"ID_JUSTIFY_CENTER", SWIG_From_int((int)wxID_JUSTIFY_CENTER)); | |
43240 | PyDict_SetItemString(d,"ID_JUSTIFY_FILL", SWIG_From_int((int)wxID_JUSTIFY_FILL)); | |
43241 | PyDict_SetItemString(d,"ID_JUSTIFY_RIGHT", SWIG_From_int((int)wxID_JUSTIFY_RIGHT)); | |
43242 | PyDict_SetItemString(d,"ID_JUSTIFY_LEFT", SWIG_From_int((int)wxID_JUSTIFY_LEFT)); | |
43243 | PyDict_SetItemString(d,"ID_UNDERLINE", SWIG_From_int((int)wxID_UNDERLINE)); | |
43244 | PyDict_SetItemString(d,"ID_INDENT", SWIG_From_int((int)wxID_INDENT)); | |
43245 | PyDict_SetItemString(d,"ID_UNINDENT", SWIG_From_int((int)wxID_UNINDENT)); | |
43246 | PyDict_SetItemString(d,"ID_ZOOM_100", SWIG_From_int((int)wxID_ZOOM_100)); | |
43247 | PyDict_SetItemString(d,"ID_ZOOM_FIT", SWIG_From_int((int)wxID_ZOOM_FIT)); | |
43248 | PyDict_SetItemString(d,"ID_ZOOM_IN", SWIG_From_int((int)wxID_ZOOM_IN)); | |
43249 | PyDict_SetItemString(d,"ID_ZOOM_OUT", SWIG_From_int((int)wxID_ZOOM_OUT)); | |
43250 | PyDict_SetItemString(d,"ID_UNDELETE", SWIG_From_int((int)wxID_UNDELETE)); | |
43251 | PyDict_SetItemString(d,"ID_REVERT_TO_SAVED", SWIG_From_int((int)wxID_REVERT_TO_SAVED)); | |
43252 | PyDict_SetItemString(d,"ID_HIGHEST", SWIG_From_int((int)wxID_HIGHEST)); | |
43253 | PyDict_SetItemString(d,"OPEN", SWIG_From_int((int)wxOPEN)); | |
43254 | PyDict_SetItemString(d,"SAVE", SWIG_From_int((int)wxSAVE)); | |
43255 | PyDict_SetItemString(d,"HIDE_READONLY", SWIG_From_int((int)wxHIDE_READONLY)); | |
43256 | PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_From_int((int)wxOVERWRITE_PROMPT)); | |
43257 | PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_From_int((int)wxFILE_MUST_EXIST)); | |
43258 | PyDict_SetItemString(d,"MULTIPLE", SWIG_From_int((int)wxMULTIPLE)); | |
43259 | PyDict_SetItemString(d,"CHANGE_DIR", SWIG_From_int((int)wxCHANGE_DIR)); | |
43260 | PyDict_SetItemString(d,"ACCEL_ALT", SWIG_From_int((int)wxACCEL_ALT)); | |
43261 | PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_From_int((int)wxACCEL_CTRL)); | |
43262 | PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_From_int((int)wxACCEL_SHIFT)); | |
43263 | PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_From_int((int)wxACCEL_NORMAL)); | |
43264 | PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_From_int((int)wxPD_AUTO_HIDE)); | |
43265 | PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_From_int((int)wxPD_APP_MODAL)); | |
43266 | PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_From_int((int)wxPD_CAN_ABORT)); | |
43267 | PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_From_int((int)wxPD_ELAPSED_TIME)); | |
43268 | PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_From_int((int)wxPD_ESTIMATED_TIME)); | |
43269 | PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_From_int((int)wxPD_REMAINING_TIME)); | |
43270 | PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_From_int((int)wxDD_NEW_DIR_BUTTON)); | |
43271 | PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_From_int((int)wxDD_DEFAULT_STYLE)); | |
43272 | PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_From_int((int)wxMENU_TEAROFF)); | |
43273 | PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_From_int((int)wxMB_DOCKABLE)); | |
43274 | PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)wxNO_FULL_REPAINT_ON_RESIZE)); | |
43275 | PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)wxFULL_REPAINT_ON_RESIZE)); | |
43276 | PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_From_int((int)wxLI_HORIZONTAL)); | |
43277 | PyDict_SetItemString(d,"LI_VERTICAL", SWIG_From_int((int)wxLI_VERTICAL)); | |
43278 | PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_From_int((int)wxWS_EX_VALIDATE_RECURSIVELY)); | |
43279 | PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_From_int((int)wxWS_EX_BLOCK_EVENTS)); | |
43280 | PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_From_int((int)wxWS_EX_TRANSIENT)); | |
43281 | PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_From_int((int)wxWS_EX_THEMED_BACKGROUND)); | |
43282 | PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_From_int((int)wxWS_EX_PROCESS_IDLE)); | |
43283 | PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_From_int((int)wxWS_EX_PROCESS_UI_UPDATES)); | |
43284 | PyDict_SetItemString(d,"MM_TEXT", SWIG_From_int((int)wxMM_TEXT)); | |
43285 | PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_From_int((int)wxMM_LOMETRIC)); | |
43286 | PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_From_int((int)wxMM_HIMETRIC)); | |
43287 | PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_From_int((int)wxMM_LOENGLISH)); | |
43288 | PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_From_int((int)wxMM_HIENGLISH)); | |
43289 | PyDict_SetItemString(d,"MM_TWIPS", SWIG_From_int((int)wxMM_TWIPS)); | |
43290 | PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_From_int((int)wxMM_ISOTROPIC)); | |
43291 | PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_From_int((int)wxMM_ANISOTROPIC)); | |
43292 | PyDict_SetItemString(d,"MM_POINTS", SWIG_From_int((int)wxMM_POINTS)); | |
43293 | PyDict_SetItemString(d,"MM_METRIC", SWIG_From_int((int)wxMM_METRIC)); | |
43294 | PyDict_SetItemString(d,"CENTRE", SWIG_From_int((int)wxCENTRE)); | |
43295 | PyDict_SetItemString(d,"CENTER", SWIG_From_int((int)wxCENTER)); | |
43296 | PyDict_SetItemString(d,"HORIZONTAL", SWIG_From_int((int)wxHORIZONTAL)); | |
43297 | PyDict_SetItemString(d,"VERTICAL", SWIG_From_int((int)wxVERTICAL)); | |
43298 | PyDict_SetItemString(d,"BOTH", SWIG_From_int((int)wxBOTH)); | |
43299 | PyDict_SetItemString(d,"LEFT", SWIG_From_int((int)wxLEFT)); | |
43300 | PyDict_SetItemString(d,"RIGHT", SWIG_From_int((int)wxRIGHT)); | |
43301 | PyDict_SetItemString(d,"UP", SWIG_From_int((int)wxUP)); | |
43302 | PyDict_SetItemString(d,"DOWN", SWIG_From_int((int)wxDOWN)); | |
43303 | PyDict_SetItemString(d,"TOP", SWIG_From_int((int)wxTOP)); | |
43304 | PyDict_SetItemString(d,"BOTTOM", SWIG_From_int((int)wxBOTTOM)); | |
43305 | PyDict_SetItemString(d,"NORTH", SWIG_From_int((int)wxNORTH)); | |
43306 | PyDict_SetItemString(d,"SOUTH", SWIG_From_int((int)wxSOUTH)); | |
43307 | PyDict_SetItemString(d,"WEST", SWIG_From_int((int)wxWEST)); | |
43308 | PyDict_SetItemString(d,"EAST", SWIG_From_int((int)wxEAST)); | |
43309 | PyDict_SetItemString(d,"ALL", SWIG_From_int((int)wxALL)); | |
43310 | PyDict_SetItemString(d,"ALIGN_NOT", SWIG_From_int((int)wxALIGN_NOT)); | |
43311 | PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_From_int((int)wxALIGN_CENTER_HORIZONTAL)); | |
43312 | PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_From_int((int)wxALIGN_CENTRE_HORIZONTAL)); | |
43313 | PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_From_int((int)wxALIGN_LEFT)); | |
43314 | PyDict_SetItemString(d,"ALIGN_TOP", SWIG_From_int((int)wxALIGN_TOP)); | |
43315 | PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_From_int((int)wxALIGN_RIGHT)); | |
43316 | PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_From_int((int)wxALIGN_BOTTOM)); | |
43317 | PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_From_int((int)wxALIGN_CENTER_VERTICAL)); | |
43318 | PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_From_int((int)wxALIGN_CENTRE_VERTICAL)); | |
43319 | PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_From_int((int)wxALIGN_CENTER)); | |
43320 | PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_From_int((int)wxALIGN_CENTRE)); | |
43321 | PyDict_SetItemString(d,"ALIGN_MASK", SWIG_From_int((int)wxALIGN_MASK)); | |
43322 | PyDict_SetItemString(d,"STRETCH_NOT", SWIG_From_int((int)wxSTRETCH_NOT)); | |
43323 | PyDict_SetItemString(d,"SHRINK", SWIG_From_int((int)wxSHRINK)); | |
43324 | PyDict_SetItemString(d,"GROW", SWIG_From_int((int)wxGROW)); | |
43325 | PyDict_SetItemString(d,"EXPAND", SWIG_From_int((int)wxEXPAND)); | |
43326 | PyDict_SetItemString(d,"SHAPED", SWIG_From_int((int)wxSHAPED)); | |
43327 | PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_From_int((int)wxFIXED_MINSIZE)); | |
43328 | PyDict_SetItemString(d,"TILE", SWIG_From_int((int)wxTILE)); | |
43329 | PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_From_int((int)wxADJUST_MINSIZE)); | |
43330 | PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_From_int((int)wxBORDER_DEFAULT)); | |
43331 | PyDict_SetItemString(d,"BORDER_NONE", SWIG_From_int((int)wxBORDER_NONE)); | |
43332 | PyDict_SetItemString(d,"BORDER_STATIC", SWIG_From_int((int)wxBORDER_STATIC)); | |
43333 | PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_From_int((int)wxBORDER_SIMPLE)); | |
43334 | PyDict_SetItemString(d,"BORDER_RAISED", SWIG_From_int((int)wxBORDER_RAISED)); | |
43335 | PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_From_int((int)wxBORDER_SUNKEN)); | |
43336 | PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_From_int((int)wxBORDER_DOUBLE)); | |
43337 | PyDict_SetItemString(d,"BORDER_MASK", SWIG_From_int((int)wxBORDER_MASK)); | |
43338 | PyDict_SetItemString(d,"BG_STYLE_SYSTEM", SWIG_From_int((int)wxBG_STYLE_SYSTEM)); | |
43339 | PyDict_SetItemString(d,"BG_STYLE_COLOUR", SWIG_From_int((int)wxBG_STYLE_COLOUR)); | |
43340 | PyDict_SetItemString(d,"BG_STYLE_CUSTOM", SWIG_From_int((int)wxBG_STYLE_CUSTOM)); | |
43341 | PyDict_SetItemString(d,"DEFAULT", SWIG_From_int((int)wxDEFAULT)); | |
43342 | PyDict_SetItemString(d,"DECORATIVE", SWIG_From_int((int)wxDECORATIVE)); | |
43343 | PyDict_SetItemString(d,"ROMAN", SWIG_From_int((int)wxROMAN)); | |
43344 | PyDict_SetItemString(d,"SCRIPT", SWIG_From_int((int)wxSCRIPT)); | |
43345 | PyDict_SetItemString(d,"SWISS", SWIG_From_int((int)wxSWISS)); | |
43346 | PyDict_SetItemString(d,"MODERN", SWIG_From_int((int)wxMODERN)); | |
43347 | PyDict_SetItemString(d,"TELETYPE", SWIG_From_int((int)wxTELETYPE)); | |
43348 | PyDict_SetItemString(d,"VARIABLE", SWIG_From_int((int)wxVARIABLE)); | |
43349 | PyDict_SetItemString(d,"FIXED", SWIG_From_int((int)wxFIXED)); | |
43350 | PyDict_SetItemString(d,"NORMAL", SWIG_From_int((int)wxNORMAL)); | |
43351 | PyDict_SetItemString(d,"LIGHT", SWIG_From_int((int)wxLIGHT)); | |
43352 | PyDict_SetItemString(d,"BOLD", SWIG_From_int((int)wxBOLD)); | |
43353 | PyDict_SetItemString(d,"ITALIC", SWIG_From_int((int)wxITALIC)); | |
43354 | PyDict_SetItemString(d,"SLANT", SWIG_From_int((int)wxSLANT)); | |
43355 | PyDict_SetItemString(d,"SOLID", SWIG_From_int((int)wxSOLID)); | |
43356 | PyDict_SetItemString(d,"DOT", SWIG_From_int((int)wxDOT)); | |
43357 | PyDict_SetItemString(d,"LONG_DASH", SWIG_From_int((int)wxLONG_DASH)); | |
43358 | PyDict_SetItemString(d,"SHORT_DASH", SWIG_From_int((int)wxSHORT_DASH)); | |
43359 | PyDict_SetItemString(d,"DOT_DASH", SWIG_From_int((int)wxDOT_DASH)); | |
43360 | PyDict_SetItemString(d,"USER_DASH", SWIG_From_int((int)wxUSER_DASH)); | |
43361 | PyDict_SetItemString(d,"TRANSPARENT", SWIG_From_int((int)wxTRANSPARENT)); | |
43362 | PyDict_SetItemString(d,"STIPPLE", SWIG_From_int((int)wxSTIPPLE)); | |
43363 | PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_From_int((int)wxBDIAGONAL_HATCH)); | |
43364 | PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_From_int((int)wxCROSSDIAG_HATCH)); | |
43365 | PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_From_int((int)wxFDIAGONAL_HATCH)); | |
43366 | PyDict_SetItemString(d,"CROSS_HATCH", SWIG_From_int((int)wxCROSS_HATCH)); | |
43367 | PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_From_int((int)wxHORIZONTAL_HATCH)); | |
43368 | PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_From_int((int)wxVERTICAL_HATCH)); | |
43369 | PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_From_int((int)wxJOIN_BEVEL)); | |
43370 | PyDict_SetItemString(d,"JOIN_MITER", SWIG_From_int((int)wxJOIN_MITER)); | |
43371 | PyDict_SetItemString(d,"JOIN_ROUND", SWIG_From_int((int)wxJOIN_ROUND)); | |
43372 | PyDict_SetItemString(d,"CAP_ROUND", SWIG_From_int((int)wxCAP_ROUND)); | |
43373 | PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_From_int((int)wxCAP_PROJECTING)); | |
43374 | PyDict_SetItemString(d,"CAP_BUTT", SWIG_From_int((int)wxCAP_BUTT)); | |
43375 | PyDict_SetItemString(d,"CLEAR", SWIG_From_int((int)wxCLEAR)); | |
43376 | PyDict_SetItemString(d,"XOR", SWIG_From_int((int)wxXOR)); | |
43377 | PyDict_SetItemString(d,"INVERT", SWIG_From_int((int)wxINVERT)); | |
43378 | PyDict_SetItemString(d,"OR_REVERSE", SWIG_From_int((int)wxOR_REVERSE)); | |
43379 | PyDict_SetItemString(d,"AND_REVERSE", SWIG_From_int((int)wxAND_REVERSE)); | |
43380 | PyDict_SetItemString(d,"COPY", SWIG_From_int((int)wxCOPY)); | |
43381 | PyDict_SetItemString(d,"AND", SWIG_From_int((int)wxAND)); | |
43382 | PyDict_SetItemString(d,"AND_INVERT", SWIG_From_int((int)wxAND_INVERT)); | |
43383 | PyDict_SetItemString(d,"NO_OP", SWIG_From_int((int)wxNO_OP)); | |
43384 | PyDict_SetItemString(d,"NOR", SWIG_From_int((int)wxNOR)); | |
43385 | PyDict_SetItemString(d,"EQUIV", SWIG_From_int((int)wxEQUIV)); | |
43386 | PyDict_SetItemString(d,"SRC_INVERT", SWIG_From_int((int)wxSRC_INVERT)); | |
43387 | PyDict_SetItemString(d,"OR_INVERT", SWIG_From_int((int)wxOR_INVERT)); | |
43388 | PyDict_SetItemString(d,"NAND", SWIG_From_int((int)wxNAND)); | |
43389 | PyDict_SetItemString(d,"OR", SWIG_From_int((int)wxOR)); | |
43390 | PyDict_SetItemString(d,"SET", SWIG_From_int((int)wxSET)); | |
43391 | PyDict_SetItemString(d,"WXK_BACK", SWIG_From_int((int)WXK_BACK)); | |
43392 | PyDict_SetItemString(d,"WXK_TAB", SWIG_From_int((int)WXK_TAB)); | |
43393 | PyDict_SetItemString(d,"WXK_RETURN", SWIG_From_int((int)WXK_RETURN)); | |
43394 | PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_From_int((int)WXK_ESCAPE)); | |
43395 | PyDict_SetItemString(d,"WXK_SPACE", SWIG_From_int((int)WXK_SPACE)); | |
43396 | PyDict_SetItemString(d,"WXK_DELETE", SWIG_From_int((int)WXK_DELETE)); | |
43397 | PyDict_SetItemString(d,"WXK_START", SWIG_From_int((int)WXK_START)); | |
43398 | PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_From_int((int)WXK_LBUTTON)); | |
43399 | PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_From_int((int)WXK_RBUTTON)); | |
43400 | PyDict_SetItemString(d,"WXK_CANCEL", SWIG_From_int((int)WXK_CANCEL)); | |
43401 | PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_From_int((int)WXK_MBUTTON)); | |
43402 | PyDict_SetItemString(d,"WXK_CLEAR", SWIG_From_int((int)WXK_CLEAR)); | |
43403 | PyDict_SetItemString(d,"WXK_SHIFT", SWIG_From_int((int)WXK_SHIFT)); | |
43404 | PyDict_SetItemString(d,"WXK_ALT", SWIG_From_int((int)WXK_ALT)); | |
43405 | PyDict_SetItemString(d,"WXK_CONTROL", SWIG_From_int((int)WXK_CONTROL)); | |
43406 | PyDict_SetItemString(d,"WXK_MENU", SWIG_From_int((int)WXK_MENU)); | |
43407 | PyDict_SetItemString(d,"WXK_PAUSE", SWIG_From_int((int)WXK_PAUSE)); | |
43408 | PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_From_int((int)WXK_CAPITAL)); | |
43409 | PyDict_SetItemString(d,"WXK_PRIOR", SWIG_From_int((int)WXK_PRIOR)); | |
43410 | PyDict_SetItemString(d,"WXK_NEXT", SWIG_From_int((int)WXK_NEXT)); | |
43411 | PyDict_SetItemString(d,"WXK_END", SWIG_From_int((int)WXK_END)); | |
43412 | PyDict_SetItemString(d,"WXK_HOME", SWIG_From_int((int)WXK_HOME)); | |
43413 | PyDict_SetItemString(d,"WXK_LEFT", SWIG_From_int((int)WXK_LEFT)); | |
43414 | PyDict_SetItemString(d,"WXK_UP", SWIG_From_int((int)WXK_UP)); | |
43415 | PyDict_SetItemString(d,"WXK_RIGHT", SWIG_From_int((int)WXK_RIGHT)); | |
43416 | PyDict_SetItemString(d,"WXK_DOWN", SWIG_From_int((int)WXK_DOWN)); | |
43417 | PyDict_SetItemString(d,"WXK_SELECT", SWIG_From_int((int)WXK_SELECT)); | |
43418 | PyDict_SetItemString(d,"WXK_PRINT", SWIG_From_int((int)WXK_PRINT)); | |
43419 | PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_From_int((int)WXK_EXECUTE)); | |
43420 | PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_From_int((int)WXK_SNAPSHOT)); | |
43421 | PyDict_SetItemString(d,"WXK_INSERT", SWIG_From_int((int)WXK_INSERT)); | |
43422 | PyDict_SetItemString(d,"WXK_HELP", SWIG_From_int((int)WXK_HELP)); | |
43423 | PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_From_int((int)WXK_NUMPAD0)); | |
43424 | PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_From_int((int)WXK_NUMPAD1)); | |
43425 | PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_From_int((int)WXK_NUMPAD2)); | |
43426 | PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_From_int((int)WXK_NUMPAD3)); | |
43427 | PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_From_int((int)WXK_NUMPAD4)); | |
43428 | PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_From_int((int)WXK_NUMPAD5)); | |
43429 | PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_From_int((int)WXK_NUMPAD6)); | |
43430 | PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_From_int((int)WXK_NUMPAD7)); | |
43431 | PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_From_int((int)WXK_NUMPAD8)); | |
43432 | PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_From_int((int)WXK_NUMPAD9)); | |
43433 | PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_From_int((int)WXK_MULTIPLY)); | |
43434 | PyDict_SetItemString(d,"WXK_ADD", SWIG_From_int((int)WXK_ADD)); | |
43435 | PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_From_int((int)WXK_SEPARATOR)); | |
43436 | PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_From_int((int)WXK_SUBTRACT)); | |
43437 | PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_From_int((int)WXK_DECIMAL)); | |
43438 | PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_From_int((int)WXK_DIVIDE)); | |
43439 | PyDict_SetItemString(d,"WXK_F1", SWIG_From_int((int)WXK_F1)); | |
43440 | PyDict_SetItemString(d,"WXK_F2", SWIG_From_int((int)WXK_F2)); | |
43441 | PyDict_SetItemString(d,"WXK_F3", SWIG_From_int((int)WXK_F3)); | |
43442 | PyDict_SetItemString(d,"WXK_F4", SWIG_From_int((int)WXK_F4)); | |
43443 | PyDict_SetItemString(d,"WXK_F5", SWIG_From_int((int)WXK_F5)); | |
43444 | PyDict_SetItemString(d,"WXK_F6", SWIG_From_int((int)WXK_F6)); | |
43445 | PyDict_SetItemString(d,"WXK_F7", SWIG_From_int((int)WXK_F7)); | |
43446 | PyDict_SetItemString(d,"WXK_F8", SWIG_From_int((int)WXK_F8)); | |
43447 | PyDict_SetItemString(d,"WXK_F9", SWIG_From_int((int)WXK_F9)); | |
43448 | PyDict_SetItemString(d,"WXK_F10", SWIG_From_int((int)WXK_F10)); | |
43449 | PyDict_SetItemString(d,"WXK_F11", SWIG_From_int((int)WXK_F11)); | |
43450 | PyDict_SetItemString(d,"WXK_F12", SWIG_From_int((int)WXK_F12)); | |
43451 | PyDict_SetItemString(d,"WXK_F13", SWIG_From_int((int)WXK_F13)); | |
43452 | PyDict_SetItemString(d,"WXK_F14", SWIG_From_int((int)WXK_F14)); | |
43453 | PyDict_SetItemString(d,"WXK_F15", SWIG_From_int((int)WXK_F15)); | |
43454 | PyDict_SetItemString(d,"WXK_F16", SWIG_From_int((int)WXK_F16)); | |
43455 | PyDict_SetItemString(d,"WXK_F17", SWIG_From_int((int)WXK_F17)); | |
43456 | PyDict_SetItemString(d,"WXK_F18", SWIG_From_int((int)WXK_F18)); | |
43457 | PyDict_SetItemString(d,"WXK_F19", SWIG_From_int((int)WXK_F19)); | |
43458 | PyDict_SetItemString(d,"WXK_F20", SWIG_From_int((int)WXK_F20)); | |
43459 | PyDict_SetItemString(d,"WXK_F21", SWIG_From_int((int)WXK_F21)); | |
43460 | PyDict_SetItemString(d,"WXK_F22", SWIG_From_int((int)WXK_F22)); | |
43461 | PyDict_SetItemString(d,"WXK_F23", SWIG_From_int((int)WXK_F23)); | |
43462 | PyDict_SetItemString(d,"WXK_F24", SWIG_From_int((int)WXK_F24)); | |
43463 | PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_From_int((int)WXK_NUMLOCK)); | |
43464 | PyDict_SetItemString(d,"WXK_SCROLL", SWIG_From_int((int)WXK_SCROLL)); | |
43465 | PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_From_int((int)WXK_PAGEUP)); | |
43466 | PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_From_int((int)WXK_PAGEDOWN)); | |
43467 | PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_From_int((int)WXK_NUMPAD_SPACE)); | |
43468 | PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_From_int((int)WXK_NUMPAD_TAB)); | |
43469 | PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_From_int((int)WXK_NUMPAD_ENTER)); | |
43470 | PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_From_int((int)WXK_NUMPAD_F1)); | |
43471 | PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_From_int((int)WXK_NUMPAD_F2)); | |
43472 | PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_From_int((int)WXK_NUMPAD_F3)); | |
43473 | PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_From_int((int)WXK_NUMPAD_F4)); | |
43474 | PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_From_int((int)WXK_NUMPAD_HOME)); | |
43475 | PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_From_int((int)WXK_NUMPAD_LEFT)); | |
43476 | PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_From_int((int)WXK_NUMPAD_UP)); | |
43477 | PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_From_int((int)WXK_NUMPAD_RIGHT)); | |
43478 | PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_From_int((int)WXK_NUMPAD_DOWN)); | |
43479 | PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_From_int((int)WXK_NUMPAD_PRIOR)); | |
43480 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_From_int((int)WXK_NUMPAD_PAGEUP)); | |
43481 | PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_From_int((int)WXK_NUMPAD_NEXT)); | |
43482 | PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_From_int((int)WXK_NUMPAD_PAGEDOWN)); | |
43483 | PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_From_int((int)WXK_NUMPAD_END)); | |
43484 | PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_From_int((int)WXK_NUMPAD_BEGIN)); | |
43485 | PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_From_int((int)WXK_NUMPAD_INSERT)); | |
43486 | PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_From_int((int)WXK_NUMPAD_DELETE)); | |
43487 | PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_From_int((int)WXK_NUMPAD_EQUAL)); | |
43488 | PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_From_int((int)WXK_NUMPAD_MULTIPLY)); | |
43489 | PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_From_int((int)WXK_NUMPAD_ADD)); | |
43490 | PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_From_int((int)WXK_NUMPAD_SEPARATOR)); | |
43491 | PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_From_int((int)WXK_NUMPAD_SUBTRACT)); | |
43492 | PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_From_int((int)WXK_NUMPAD_DECIMAL)); | |
43493 | PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_From_int((int)WXK_NUMPAD_DIVIDE)); | |
43494 | PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_From_int((int)WXK_WINDOWS_LEFT)); | |
43495 | PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_From_int((int)WXK_WINDOWS_RIGHT)); | |
43496 | PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_From_int((int)WXK_WINDOWS_MENU)); | |
43497 | PyDict_SetItemString(d,"PAPER_NONE", SWIG_From_int((int)wxPAPER_NONE)); | |
43498 | PyDict_SetItemString(d,"PAPER_LETTER", SWIG_From_int((int)wxPAPER_LETTER)); | |
43499 | PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_From_int((int)wxPAPER_LEGAL)); | |
43500 | PyDict_SetItemString(d,"PAPER_A4", SWIG_From_int((int)wxPAPER_A4)); | |
43501 | PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_From_int((int)wxPAPER_CSHEET)); | |
43502 | PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_From_int((int)wxPAPER_DSHEET)); | |
43503 | PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_From_int((int)wxPAPER_ESHEET)); | |
43504 | PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_From_int((int)wxPAPER_LETTERSMALL)); | |
43505 | PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_From_int((int)wxPAPER_TABLOID)); | |
43506 | PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_From_int((int)wxPAPER_LEDGER)); | |
43507 | PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_From_int((int)wxPAPER_STATEMENT)); | |
43508 | PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_From_int((int)wxPAPER_EXECUTIVE)); | |
43509 | PyDict_SetItemString(d,"PAPER_A3", SWIG_From_int((int)wxPAPER_A3)); | |
43510 | PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_From_int((int)wxPAPER_A4SMALL)); | |
43511 | PyDict_SetItemString(d,"PAPER_A5", SWIG_From_int((int)wxPAPER_A5)); | |
43512 | PyDict_SetItemString(d,"PAPER_B4", SWIG_From_int((int)wxPAPER_B4)); | |
43513 | PyDict_SetItemString(d,"PAPER_B5", SWIG_From_int((int)wxPAPER_B5)); | |
43514 | PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_From_int((int)wxPAPER_FOLIO)); | |
43515 | PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_From_int((int)wxPAPER_QUARTO)); | |
43516 | PyDict_SetItemString(d,"PAPER_10X14", SWIG_From_int((int)wxPAPER_10X14)); | |
43517 | PyDict_SetItemString(d,"PAPER_11X17", SWIG_From_int((int)wxPAPER_11X17)); | |
43518 | PyDict_SetItemString(d,"PAPER_NOTE", SWIG_From_int((int)wxPAPER_NOTE)); | |
43519 | PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_From_int((int)wxPAPER_ENV_9)); | |
43520 | PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_From_int((int)wxPAPER_ENV_10)); | |
43521 | PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_From_int((int)wxPAPER_ENV_11)); | |
43522 | PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_From_int((int)wxPAPER_ENV_12)); | |
43523 | PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_From_int((int)wxPAPER_ENV_14)); | |
43524 | PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_From_int((int)wxPAPER_ENV_DL)); | |
43525 | PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_From_int((int)wxPAPER_ENV_C5)); | |
43526 | PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_From_int((int)wxPAPER_ENV_C3)); | |
43527 | PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_From_int((int)wxPAPER_ENV_C4)); | |
43528 | PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_From_int((int)wxPAPER_ENV_C6)); | |
43529 | PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_From_int((int)wxPAPER_ENV_C65)); | |
43530 | PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_From_int((int)wxPAPER_ENV_B4)); | |
43531 | PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_From_int((int)wxPAPER_ENV_B5)); | |
43532 | PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_From_int((int)wxPAPER_ENV_B6)); | |
43533 | PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_From_int((int)wxPAPER_ENV_ITALY)); | |
43534 | PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_From_int((int)wxPAPER_ENV_MONARCH)); | |
43535 | PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_From_int((int)wxPAPER_ENV_PERSONAL)); | |
43536 | PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_From_int((int)wxPAPER_FANFOLD_US)); | |
43537 | PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_From_int((int)wxPAPER_FANFOLD_STD_GERMAN)); | |
43538 | PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_From_int((int)wxPAPER_FANFOLD_LGL_GERMAN)); | |
43539 | PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_From_int((int)wxPAPER_ISO_B4)); | |
43540 | PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_From_int((int)wxPAPER_JAPANESE_POSTCARD)); | |
43541 | PyDict_SetItemString(d,"PAPER_9X11", SWIG_From_int((int)wxPAPER_9X11)); | |
43542 | PyDict_SetItemString(d,"PAPER_10X11", SWIG_From_int((int)wxPAPER_10X11)); | |
43543 | PyDict_SetItemString(d,"PAPER_15X11", SWIG_From_int((int)wxPAPER_15X11)); | |
43544 | PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_From_int((int)wxPAPER_ENV_INVITE)); | |
43545 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_From_int((int)wxPAPER_LETTER_EXTRA)); | |
43546 | PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_From_int((int)wxPAPER_LEGAL_EXTRA)); | |
43547 | PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_From_int((int)wxPAPER_TABLOID_EXTRA)); | |
43548 | PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_From_int((int)wxPAPER_A4_EXTRA)); | |
43549 | PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_From_int((int)wxPAPER_LETTER_TRANSVERSE)); | |
43550 | PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_From_int((int)wxPAPER_A4_TRANSVERSE)); | |
43551 | PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_From_int((int)wxPAPER_LETTER_EXTRA_TRANSVERSE)); | |
43552 | PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_From_int((int)wxPAPER_A_PLUS)); | |
43553 | PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_From_int((int)wxPAPER_B_PLUS)); | |
43554 | PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_From_int((int)wxPAPER_LETTER_PLUS)); | |
43555 | PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_From_int((int)wxPAPER_A4_PLUS)); | |
43556 | PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_From_int((int)wxPAPER_A5_TRANSVERSE)); | |
43557 | PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_From_int((int)wxPAPER_B5_TRANSVERSE)); | |
43558 | PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_From_int((int)wxPAPER_A3_EXTRA)); | |
43559 | PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_From_int((int)wxPAPER_A5_EXTRA)); | |
43560 | PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_From_int((int)wxPAPER_B5_EXTRA)); | |
43561 | PyDict_SetItemString(d,"PAPER_A2", SWIG_From_int((int)wxPAPER_A2)); | |
43562 | PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_From_int((int)wxPAPER_A3_TRANSVERSE)); | |
43563 | PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_From_int((int)wxPAPER_A3_EXTRA_TRANSVERSE)); | |
43564 | PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_From_int((int)wxDUPLEX_SIMPLEX)); | |
43565 | PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_From_int((int)wxDUPLEX_HORIZONTAL)); | |
43566 | PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_From_int((int)wxDUPLEX_VERTICAL)); | |
43567 | PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_From_int((int)wxITEM_SEPARATOR)); | |
43568 | PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_From_int((int)wxITEM_NORMAL)); | |
43569 | PyDict_SetItemString(d,"ITEM_CHECK", SWIG_From_int((int)wxITEM_CHECK)); | |
43570 | PyDict_SetItemString(d,"ITEM_RADIO", SWIG_From_int((int)wxITEM_RADIO)); | |
43571 | PyDict_SetItemString(d,"ITEM_MAX", SWIG_From_int((int)wxITEM_MAX)); | |
43572 | PyDict_SetItemString(d,"HT_NOWHERE", SWIG_From_int((int)wxHT_NOWHERE)); | |
43573 | PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_From_int((int)wxHT_SCROLLBAR_FIRST)); | |
43574 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_LINE_1)); | |
43575 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_LINE_2)); | |
43576 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_PAGE_1)); | |
43577 | PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_PAGE_2)); | |
43578 | PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_From_int((int)wxHT_SCROLLBAR_THUMB)); | |
43579 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_From_int((int)wxHT_SCROLLBAR_BAR_1)); | |
43580 | PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_From_int((int)wxHT_SCROLLBAR_BAR_2)); | |
43581 | PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_From_int((int)wxHT_SCROLLBAR_LAST)); | |
43582 | PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_From_int((int)wxHT_WINDOW_OUTSIDE)); | |
43583 | PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_From_int((int)wxHT_WINDOW_INSIDE)); | |
43584 | PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_From_int((int)wxHT_WINDOW_VERT_SCROLLBAR)); | |
43585 | PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_From_int((int)wxHT_WINDOW_HORZ_SCROLLBAR)); | |
43586 | PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_From_int((int)wxHT_WINDOW_CORNER)); | |
43587 | PyDict_SetItemString(d,"HT_MAX", SWIG_From_int((int)wxHT_MAX)); | |
43588 | PyDict_SetItemString(d,"MOD_NONE", SWIG_From_int((int)wxMOD_NONE)); | |
43589 | PyDict_SetItemString(d,"MOD_ALT", SWIG_From_int((int)wxMOD_ALT)); | |
43590 | PyDict_SetItemString(d,"MOD_CONTROL", SWIG_From_int((int)wxMOD_CONTROL)); | |
43591 | PyDict_SetItemString(d,"MOD_SHIFT", SWIG_From_int((int)wxMOD_SHIFT)); | |
43592 | PyDict_SetItemString(d,"MOD_WIN", SWIG_From_int((int)wxMOD_WIN)); | |
43593 | PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_From_int((int)wxUPDATE_UI_NONE)); | |
43594 | PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_From_int((int)wxUPDATE_UI_RECURSE)); | |
43595 | PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_From_int((int)wxUPDATE_UI_FROMIDLE)); | |
d55e5bfc RD |
43596 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
43597 | SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set); | |
c370783e RD |
43598 | PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_From_int((int)wxBITMAP_TYPE_INVALID)); |
43599 | PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_From_int((int)wxBITMAP_TYPE_BMP)); | |
43600 | PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_From_int((int)wxBITMAP_TYPE_ICO)); | |
43601 | PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_From_int((int)wxBITMAP_TYPE_CUR)); | |
43602 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_From_int((int)wxBITMAP_TYPE_XBM)); | |
43603 | PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_From_int((int)wxBITMAP_TYPE_XBM_DATA)); | |
43604 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_From_int((int)wxBITMAP_TYPE_XPM)); | |
43605 | PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_From_int((int)wxBITMAP_TYPE_XPM_DATA)); | |
43606 | PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_From_int((int)wxBITMAP_TYPE_TIF)); | |
43607 | PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_From_int((int)wxBITMAP_TYPE_GIF)); | |
43608 | PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_From_int((int)wxBITMAP_TYPE_PNG)); | |
43609 | PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_From_int((int)wxBITMAP_TYPE_JPEG)); | |
43610 | PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_From_int((int)wxBITMAP_TYPE_PNM)); | |
43611 | PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_From_int((int)wxBITMAP_TYPE_PCX)); | |
43612 | PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_From_int((int)wxBITMAP_TYPE_PICT)); | |
43613 | PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_From_int((int)wxBITMAP_TYPE_ICON)); | |
43614 | PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_From_int((int)wxBITMAP_TYPE_ANI)); | |
43615 | PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_From_int((int)wxBITMAP_TYPE_IFF)); | |
43616 | PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_From_int((int)wxBITMAP_TYPE_MACCURSOR)); | |
43617 | PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_From_int((int)wxBITMAP_TYPE_ANY)); | |
43618 | PyDict_SetItemString(d,"CURSOR_NONE", SWIG_From_int((int)wxCURSOR_NONE)); | |
43619 | PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_From_int((int)wxCURSOR_ARROW)); | |
43620 | PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_From_int((int)wxCURSOR_RIGHT_ARROW)); | |
43621 | PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_From_int((int)wxCURSOR_BULLSEYE)); | |
43622 | PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_From_int((int)wxCURSOR_CHAR)); | |
43623 | PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_From_int((int)wxCURSOR_CROSS)); | |
43624 | PyDict_SetItemString(d,"CURSOR_HAND", SWIG_From_int((int)wxCURSOR_HAND)); | |
43625 | PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_From_int((int)wxCURSOR_IBEAM)); | |
43626 | PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_From_int((int)wxCURSOR_LEFT_BUTTON)); | |
43627 | PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_From_int((int)wxCURSOR_MAGNIFIER)); | |
43628 | PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_From_int((int)wxCURSOR_MIDDLE_BUTTON)); | |
43629 | PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_From_int((int)wxCURSOR_NO_ENTRY)); | |
43630 | PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_From_int((int)wxCURSOR_PAINT_BRUSH)); | |
43631 | PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_From_int((int)wxCURSOR_PENCIL)); | |
43632 | PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_From_int((int)wxCURSOR_POINT_LEFT)); | |
43633 | PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_From_int((int)wxCURSOR_POINT_RIGHT)); | |
43634 | PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_From_int((int)wxCURSOR_QUESTION_ARROW)); | |
43635 | PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_From_int((int)wxCURSOR_RIGHT_BUTTON)); | |
43636 | PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_From_int((int)wxCURSOR_SIZENESW)); | |
43637 | PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_From_int((int)wxCURSOR_SIZENS)); | |
43638 | PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_From_int((int)wxCURSOR_SIZENWSE)); | |
43639 | PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_From_int((int)wxCURSOR_SIZEWE)); | |
43640 | PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_From_int((int)wxCURSOR_SIZING)); | |
43641 | PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_From_int((int)wxCURSOR_SPRAYCAN)); | |
43642 | PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_From_int((int)wxCURSOR_WAIT)); | |
43643 | PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_From_int((int)wxCURSOR_WATCH)); | |
43644 | PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_From_int((int)wxCURSOR_BLANK)); | |
43645 | PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_From_int((int)wxCURSOR_DEFAULT)); | |
43646 | PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_From_int((int)wxCURSOR_COPY_ARROW)); | |
43647 | PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_From_int((int)wxCURSOR_ARROWWAIT)); | |
43648 | PyDict_SetItemString(d,"CURSOR_MAX", SWIG_From_int((int)wxCURSOR_MAX)); | |
d55e5bfc RD |
43649 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set); |
43650 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set); | |
c370783e RD |
43651 | PyDict_SetItemString(d,"FromStart", SWIG_From_int((int)wxFromStart)); |
43652 | PyDict_SetItemString(d,"FromCurrent", SWIG_From_int((int)wxFromCurrent)); | |
43653 | PyDict_SetItemString(d,"FromEnd", SWIG_From_int((int)wxFromEnd)); | |
d55e5bfc RD |
43654 | |
43655 | wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream"); | |
43656 | ||
43657 | ||
43658 | wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler"); | |
43659 | ||
43660 | SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set); | |
43661 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set); | |
43662 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set); | |
43663 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set); | |
43664 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set); | |
43665 | SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set); | |
c370783e RD |
43666 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_From_int((int)wxIMAGE_RESOLUTION_INCHES)); |
43667 | PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_From_int((int)wxIMAGE_RESOLUTION_CM)); | |
43668 | PyDict_SetItemString(d,"BMP_24BPP", SWIG_From_int((int)wxBMP_24BPP)); | |
43669 | PyDict_SetItemString(d,"BMP_8BPP", SWIG_From_int((int)wxBMP_8BPP)); | |
43670 | PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_From_int((int)wxBMP_8BPP_GREY)); | |
43671 | PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_From_int((int)wxBMP_8BPP_GRAY)); | |
43672 | PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_From_int((int)wxBMP_8BPP_RED)); | |
43673 | PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_From_int((int)wxBMP_8BPP_PALETTE)); | |
43674 | PyDict_SetItemString(d,"BMP_4BPP", SWIG_From_int((int)wxBMP_4BPP)); | |
43675 | PyDict_SetItemString(d,"BMP_1BPP", SWIG_From_int((int)wxBMP_1BPP)); | |
43676 | PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_From_int((int)wxBMP_1BPP_BW)); | |
43677 | PyDict_SetItemString(d,"QUANTIZE_INCLUDE_WINDOWS_COLOURS", SWIG_From_int((int)wxQUANTIZE_INCLUDE_WINDOWS_COLOURS)); | |
43678 | PyDict_SetItemString(d,"QUANTIZE_FILL_DESTINATION_IMAGE", SWIG_From_int((int)wxQUANTIZE_FILL_DESTINATION_IMAGE)); | |
43679 | PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_From_int((int)wxEVENT_PROPAGATE_NONE)); | |
43680 | PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_From_int((int)wxEVENT_PROPAGATE_MAX)); | |
d55e5bfc RD |
43681 | PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL)); |
43682 | PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST)); | |
43683 | PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST)); | |
43684 | PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED)); | |
43685 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED)); | |
43686 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED)); | |
43687 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED)); | |
43688 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED)); | |
43689 | PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED)); | |
43690 | PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED)); | |
43691 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED)); | |
43692 | PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED)); | |
43693 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED)); | |
43694 | PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED)); | |
43695 | PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED)); | |
43696 | PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED)); | |
43697 | PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED)); | |
43698 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED)); | |
43699 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER)); | |
43700 | PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN)); | |
43701 | PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP)); | |
43702 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN)); | |
43703 | PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP)); | |
43704 | PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN)); | |
43705 | PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP)); | |
43706 | PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION)); | |
43707 | PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW)); | |
43708 | PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW)); | |
43709 | PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK)); | |
43710 | PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK)); | |
43711 | PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK)); | |
43712 | PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS)); | |
43713 | PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS)); | |
43714 | PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS)); | |
43715 | PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL)); | |
43716 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN)); | |
43717 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP)); | |
43718 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN)); | |
43719 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP)); | |
43720 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN)); | |
43721 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP)); | |
43722 | PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION)); | |
43723 | PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW)); | |
43724 | PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW)); | |
43725 | PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK)); | |
43726 | PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK)); | |
43727 | PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK)); | |
43728 | PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR)); | |
43729 | PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK)); | |
43730 | PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY)); | |
43731 | PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN)); | |
43732 | PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP)); | |
43733 | PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY)); | |
43734 | PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR)); | |
43735 | PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP)); | |
43736 | PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM)); | |
43737 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP)); | |
43738 | PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN)); | |
43739 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP)); | |
43740 | PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN)); | |
43741 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK)); | |
43742 | PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE)); | |
43743 | PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL)); | |
43744 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP)); | |
43745 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM)); | |
43746 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP)); | |
43747 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN)); | |
43748 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP)); | |
43749 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN)); | |
43750 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK)); | |
43751 | PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE)); | |
43752 | PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE)); | |
43753 | PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE)); | |
43754 | PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW)); | |
43755 | PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION)); | |
43756 | PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION)); | |
43757 | PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP)); | |
43758 | PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER)); | |
43759 | PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE)); | |
43760 | PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE)); | |
43761 | PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY)); | |
43762 | PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW)); | |
43763 | PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE)); | |
43764 | PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE)); | |
43765 | PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED)); | |
43766 | PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT)); | |
43767 | PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND)); | |
43768 | PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT)); | |
43769 | PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON)); | |
43770 | PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN)); | |
43771 | PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE)); | |
43772 | PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT)); | |
43773 | PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU)); | |
43774 | PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED)); | |
43775 | PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED)); | |
43776 | PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED)); | |
43777 | PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE)); | |
43778 | PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED)); | |
43779 | PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES)); | |
43780 | PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM)); | |
43781 | PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM)); | |
43782 | PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM)); | |
43783 | PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG)); | |
43784 | PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE)); | |
43785 | PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI)); | |
43786 | PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING)); | |
43787 | PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING)); | |
43788 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK)); | |
43789 | PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK)); | |
43790 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK)); | |
43791 | PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK)); | |
43792 | PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS)); | |
43793 | PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS)); | |
43794 | PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER)); | |
c370783e RD |
43795 | PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_From_int((int)wxMOUSE_BTN_ANY)); |
43796 | PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_From_int((int)wxMOUSE_BTN_NONE)); | |
43797 | PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_From_int((int)wxMOUSE_BTN_LEFT)); | |
43798 | PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_From_int((int)wxMOUSE_BTN_MIDDLE)); | |
43799 | PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_From_int((int)wxMOUSE_BTN_RIGHT)); | |
43800 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_From_int((int)wxUPDATE_UI_PROCESS_ALL)); | |
43801 | PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_From_int((int)wxUPDATE_UI_PROCESS_SPECIFIED)); | |
43802 | PyDict_SetItemString(d,"NavigationKeyEvent_IsBackward", SWIG_From_int((int)wxNavigationKeyEvent::IsBackward)); | |
43803 | PyDict_SetItemString(d,"NavigationKeyEvent_IsForward", SWIG_From_int((int)wxNavigationKeyEvent::IsForward)); | |
43804 | PyDict_SetItemString(d,"NavigationKeyEvent_WinChange", SWIG_From_int((int)wxNavigationKeyEvent::WinChange)); | |
43805 | PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_From_int((int)wxIDLE_PROCESS_ALL)); | |
43806 | PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_From_int((int)wxIDLE_PROCESS_SPECIFIED)); | |
43807 | PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_From_int((int)wxPYAPP_ASSERT_SUPPRESS)); | |
43808 | PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_From_int((int)wxPYAPP_ASSERT_EXCEPTION)); | |
43809 | PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_From_int((int)wxPYAPP_ASSERT_DIALOG)); | |
43810 | PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_From_int((int)wxPYAPP_ASSERT_LOG)); | |
43811 | PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_From_int((int)wxPRINT_WINDOWS)); | |
43812 | PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_From_int((int)wxPRINT_POSTSCRIPT)); | |
d55e5bfc RD |
43813 | SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set); |
43814 | SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set); | |
c370783e RD |
43815 | PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_From_int((int)wxWINDOW_VARIANT_NORMAL)); |
43816 | PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_From_int((int)wxWINDOW_VARIANT_SMALL)); | |
43817 | PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_From_int((int)wxWINDOW_VARIANT_MINI)); | |
43818 | PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_From_int((int)wxWINDOW_VARIANT_LARGE)); | |
43819 | PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_From_int((int)wxWINDOW_VARIANT_MAX)); | |
d55e5bfc RD |
43820 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set); |
43821 | SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set); | |
c370783e RD |
43822 | PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_From_int((int)wxFLEX_GROWMODE_NONE)); |
43823 | PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_From_int((int)wxFLEX_GROWMODE_SPECIFIED)); | |
43824 | PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_From_int((int)wxFLEX_GROWMODE_ALL)); | |
d55e5bfc | 43825 | SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set); |
c370783e RD |
43826 | PyDict_SetItemString(d,"Left", SWIG_From_int((int)wxLeft)); |
43827 | PyDict_SetItemString(d,"Top", SWIG_From_int((int)wxTop)); | |
43828 | PyDict_SetItemString(d,"Right", SWIG_From_int((int)wxRight)); | |
43829 | PyDict_SetItemString(d,"Bottom", SWIG_From_int((int)wxBottom)); | |
43830 | PyDict_SetItemString(d,"Width", SWIG_From_int((int)wxWidth)); | |
43831 | PyDict_SetItemString(d,"Height", SWIG_From_int((int)wxHeight)); | |
43832 | PyDict_SetItemString(d,"Centre", SWIG_From_int((int)wxCentre)); | |
43833 | PyDict_SetItemString(d,"Center", SWIG_From_int((int)wxCenter)); | |
43834 | PyDict_SetItemString(d,"CentreX", SWIG_From_int((int)wxCentreX)); | |
43835 | PyDict_SetItemString(d,"CentreY", SWIG_From_int((int)wxCentreY)); | |
43836 | PyDict_SetItemString(d,"Unconstrained", SWIG_From_int((int)wxUnconstrained)); | |
43837 | PyDict_SetItemString(d,"AsIs", SWIG_From_int((int)wxAsIs)); | |
43838 | PyDict_SetItemString(d,"PercentOf", SWIG_From_int((int)wxPercentOf)); | |
43839 | PyDict_SetItemString(d,"Above", SWIG_From_int((int)wxAbove)); | |
43840 | PyDict_SetItemString(d,"Below", SWIG_From_int((int)wxBelow)); | |
43841 | PyDict_SetItemString(d,"LeftOf", SWIG_From_int((int)wxLeftOf)); | |
43842 | PyDict_SetItemString(d,"RightOf", SWIG_From_int((int)wxRightOf)); | |
43843 | PyDict_SetItemString(d,"SameAs", SWIG_From_int((int)wxSameAs)); | |
43844 | PyDict_SetItemString(d,"Absolute", SWIG_From_int((int)wxAbsolute)); | |
d55e5bfc RD |
43845 | |
43846 | // Initialize threading, some globals and such | |
43847 | __wxPyPreStart(d); | |
43848 | ||
43849 | ||
43850 | // Although these are defined in __version__ they need to be here too so | |
43851 | // that an assert can be done to ensure that the wxPython and the wxWindows | |
43852 | // versions match. | |
43853 | PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION )); | |
43854 | PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION )); | |
43855 | PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER )); | |
43856 | ||
43857 | } | |
43858 |